6d6fb098793a791b9bff64848911b1827ef36189
[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 GDB_NM_FILE
595 frags
596 target_subdir
597 CONFIG_UNINSTALL
598 CONFIG_INSTALL
599 CONFIG_CLEAN
600 CONFIG_ALL
601 CONFIG_SRCS
602 CONFIG_DEPS
603 CONFIG_OBS
604 PROFILE_CFLAGS
605 ENABLE_CFLAGS
606 SIM_OBS
607 SIM
608 XMKMF
609 GDBTK_SRC_DIR
610 GDBTK_CFLAGS
611 GDBTKLIBS
612 X_LIBS
613 X_LDFLAGS
614 X_CFLAGS
615 TK_XINCLUDES
616 TK_DEPS
617 TK_LIBRARY
618 TK_INCLUDE
619 TK_STUB_LIB_SPEC
620 TK_STUB_LIB_FLAG
621 TK_STUB_LIB_FILE
622 TK_LIB_SPEC
623 TK_LIB_FLAG
624 TK_LIB_FILE
625 TK_SRC_DIR
626 TK_BIN_DIR
627 TK_VERSION
628 TCL_DEPS
629 TCL_LIBRARY
630 TCL_INCLUDE
631 TCL_STUB_LIB_SPEC
632 TCL_STUB_LIB_FLAG
633 TCL_STUB_LIB_FILE
634 TCL_LIB_SPEC
635 TCL_LIB_FLAG
636 TCL_LIB_FILE
637 TCL_SRC_DIR
638 TCL_BIN_DIR
639 TCL_PATCH_LEVEL
640 TCL_VERSION
641 WIN32LDAPP
642 GUI_CFLAGS_X
643 LIBGUI
644 WIN32LIBS
645 SER_HARDWIRE
646 WERROR_CFLAGS
647 WARN_CFLAGS
648 SYSTEM_GDBINIT
649 TARGET_SYSTEM_ROOT
650 CONFIG_LDFLAGS
651 RDYNAMIC
652 ALLOCA
653 PYTHON_LIBS
654 PYTHON_CPPFLAGS
655 PYTHON_CFLAGS
656 python_prog_path
657 LTLIBEXPAT
658 LIBEXPAT
659 HAVE_LIBEXPAT
660 JIT_READER_DIR
661 TARGET_PTR
662 READLINE_TEXI_INCFLAG
663 READLINE_CFLAGS
664 READLINE_DEPS
665 READLINE
666 MIG
667 WINDRES
668 DLLTOOL
669 AR
670 YFLAGS
671 YACC
672 RANLIB
673 LN_S
674 INSTALL_DATA
675 INSTALL_SCRIPT
676 INSTALL_PROGRAM
677 AWK
678 REPORT_BUGS_TEXI
679 REPORT_BUGS_TO
680 PKGVERSION
681 TARGET_OBS
682 subdirs
683 GDB_DATADIR
684 DEBUGDIR
685 MAKEINFO_EXTRA_FLAGS
686 MAKEINFOFLAGS
687 MAKEINFO
688 PACKAGE
689 GNULIB_STDINT_H
690 CATOBJEXT
691 GENCAT
692 INSTOBJEXT
693 DATADIRNAME
694 CATALOGS
695 POSUB
696 GMSGFMT
697 XGETTEXT
698 INCINTL
699 LIBINTL_DEP
700 LIBINTL
701 USE_NLS
702 SET_MAKE
703 GMAKE_FALSE
704 GMAKE_TRUE
705 MAKE
706 CCDEPMODE
707 DEPDIR
708 am__leading_dot
709 target_os
710 target_vendor
711 target_cpu
712 target
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 EGREP
722 GREP
723 CPP
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files='host_makefile_frag'
773 ac_user_opts='
774 enable_option_checking
775 enable_maintainer_mode
776 enable_plugins
777 enable_largefile
778 with_separate_debug_dir
779 with_gdb_datadir
780 with_relocated_sources
781 with_auto_load_dir
782 with_auto_load_safe_path
783 enable_targets
784 enable_64_bit_bfd
785 enable_gdbcli
786 enable_gdbmi
787 enable_tui
788 enable_gdbtk
789 with_libunwind_ia64
790 with_curses
791 enable_profiling
792 with_pkgversion
793 with_bugurl
794 with_zlib
795 with_libiconv_prefix
796 with_iconv_bin
797 with_system_readline
798 with_jit_reader_dir
799 with_expat
800 with_gnu_ld
801 enable_rpath
802 with_libexpat_prefix
803 with_python
804 enable_libmcheck
805 with_included_regex
806 with_sysroot
807 with_system_gdbinit
808 enable_werror
809 enable_build_warnings
810 enable_gdb_build_warnings
811 with_tcl
812 with_tk
813 with_x
814 enable_sim
815 enable_multi_ice
816 enable_gdbserver
817 '
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
826 CPP
827 MAKEINFO
828 MAKEINFOFLAGS
829 YACC
830 YFLAGS
831 XMKMF'
832 ac_subdirs_all='testsuite
833 gdbtk
834 multi-ice
835 gdbserver'
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
911
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
926
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
931
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
964
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1000
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1005
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1035
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1109
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1168
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1184
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1218
1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information."
1221 ;;
1222
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1232
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239 ;;
1240
1241 esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1262 do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1340 fi
1341 else
1342 ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures this package to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1430
1431 cat <<\_ACEOF
1432
1433 Program names:
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437
1438 X features:
1439 --x-includes=DIR X include files are in DIR
1440 --x-libraries=DIR X library files are in DIR
1441
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 --target=TARGET configure for building compilers for TARGET [HOST]
1446 _ACEOF
1447 fi
1448
1449 if test -n "$ac_init_help"; then
1450
1451 cat <<\_ACEOF
1452
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-maintainer-mode enable make rules and dependencies not useful
1458 (and sometimes confusing) to the casual installer
1459 --enable-plugins Enable support for plugins (defaults no)
1460 --disable-largefile omit support for large files
1461 --enable-targets=TARGETS
1462 alternative target configurations
1463 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1464 --disable-gdbcli disable command-line interface (CLI)
1465 --disable-gdbmi disable machine-interface (MI)
1466 --enable-tui enable full-screen terminal user interface (TUI)
1467 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1468 --enable-profiling enable profiling of GDB
1469 --disable-rpath do not hardcode runtime library paths
1470 --enable-libmcheck Try building GDB with -lmcheck if available
1471 --enable-werror treat compile warnings as errors
1472 --enable-build-warnings enable build-time compiler warnings if gcc is used
1473 --enable-gdb-build-warnings
1474 enable GDB specific build-time compiler warnings if
1475 gcc is used
1476 --enable-sim link gdb with simulator
1477 --enable-multi-ice build the multi-ice-gdb-server
1478 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1479 is auto)
1480
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-separate-debug-dir=PATH
1485 look for global separate debug info in this path
1486 [LIBDIR/debug]
1487 --with-gdb-datadir=PATH look for global separate data files in this path
1488 [DATADIR/gdb]
1489 --with-relocated-sources=PATH
1490 automatically relocate this path for source files
1491 --with-auto-load-dir=PATH
1492 directories from which to load auto-loaded scripts
1493 [$debugdir:$datadir/auto-load]
1494 --with-auto-load-safe-path=PATH
1495 directories safe to hold auto-loaded files
1496 [--with-auto-load-dir]
1497 --without-auto-load-safe-path
1498 do not restrict auto-loaded files locations
1499 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1500 --with-curses use the curses library instead of the termcap
1501 library
1502 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1503 --with-bugurl=URL Direct users to URL to report a bug
1504 --with-zlib include zlib support (auto/yes/no) default=auto
1505 --with-libiconv-prefix=DIR
1506 search for libiconv in DIR/include and DIR/lib
1507 --with-iconv-bin=PATH specify where to find the iconv program
1508 --with-system-readline use installed readline library
1509 --with-jit-reader-dir=PATH
1510 directory to load the JIT readers from
1511 --with-expat include expat support (auto/yes/no)
1512 --with-gnu-ld assume the C compiler uses GNU ld default=no
1513 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1514 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1515 --with-python[=PYTHON] include python support
1516 (auto/yes/no/<python-program>)
1517 --without-included-regex
1518 don't use included regex; this is the default on
1519 systems with version 2 of the GNU C library (use
1520 with caution on other system)
1521 --with-sysroot[=DIR] search for usr/lib et al within DIR
1522 --with-system-gdbinit=PATH
1523 automatically load a system-wide gdbinit file
1524 --with-tcl directory containing tcl configuration (tclConfig.sh)
1525 --with-tk directory containing tk configuration (tkConfig.sh)
1526 --with-x use the X Window System
1527
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 CPP C preprocessor
1537 MAKEINFO Parent configure detects if it is of sufficient version.
1538 MAKEINFOFLAGS
1539 Parameters for MAKEINFO.
1540 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1541 the first program found out of: `bison -y', `byacc', `yacc'.
1542 YFLAGS The list of arguments that will be passed by default to $YACC.
1543 This script will default YFLAGS to the empty string to avoid a
1544 default value of `-d' given by some make applications.
1545 XMKMF Path to xmkmf, Makefile generator for X Window System
1546
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to the package provider.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
1561 ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1603 else
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1607 done
1608 fi
1609
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612 cat <<\_ACEOF
1613 configure
1614 generated by GNU Autoconf 2.64
1615
1616 Copyright (C) 2009 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619 _ACEOF
1620 exit
1621 fi
1622
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1626
1627 # ac_fn_c_try_compile LINENO
1628 # --------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1647 fi
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659 fi
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 return $ac_retval
1662
1663 } # ac_fn_c_try_compile
1664
1665 # ac_fn_c_try_cpp LINENO
1666 # ----------------------
1667 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_cpp ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } >/dev/null && {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 return $ac_retval
1699
1700 } # ac_fn_c_try_cpp
1701
1702 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1705 # the include files in INCLUDES and setting the cache variable VAR
1706 # accordingly.
1707 ac_fn_c_check_header_mongrel ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715 fi
1716 eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 else
1720 # Is the header compilable?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1722 $as_echo_n "checking $2 usability... " >&6; }
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $4
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 ac_header_compiler=yes
1730 else
1731 ac_header_compiler=no
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1735 $as_echo "$ac_header_compiler" >&6; }
1736
1737 # Is the header present?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1739 $as_echo_n "checking $2 presence... " >&6; }
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_cpp "$LINENO"; then :
1745 ac_header_preproc=yes
1746 else
1747 ac_header_preproc=no
1748 fi
1749 rm -f conftest.err conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1751 $as_echo "$ac_header_preproc" >&6; }
1752
1753 # So? What about this header?
1754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1755 yes:no: )
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1757 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1759 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1760 ;;
1761 no:yes:* )
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1763 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1765 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1767 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1769 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 ;;
1773 esac
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 eval "$3=\$ac_header_compiler"
1780 fi
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 fi
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786
1787 } # ac_fn_c_check_header_mongrel
1788
1789 # ac_fn_c_try_run LINENO
1790 # ----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792 # that executables *can* be run.
1793 ac_fn_c_try_run ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1814 ac_status=$?
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=$ac_status
1824 fi
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 return $ac_retval
1828
1829 } # ac_fn_c_try_run
1830
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 $4
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
1860 } # ac_fn_c_check_header_compile
1861
1862 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1863 # --------------------------------------------
1864 # Tries to find the compile-time value of EXPR in a program that includes
1865 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1866 # computed
1867 ac_fn_c_compute_int ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if test "$cross_compiling" = yes; then
1871 # Depending upon the size, compute the lo and hi bounds.
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 $4
1875 int
1876 main ()
1877 {
1878 static int test_array [1 - 2 * !(($2) >= 0)];
1879 test_array [0] = 0
1880
1881 ;
1882 return 0;
1883 }
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 ac_lo=0 ac_mid=0
1887 while :; do
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 int
1892 main ()
1893 {
1894 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1895 test_array [0] = 0
1896
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_hi=$ac_mid; break
1903 else
1904 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1905 if test $ac_lo -le $ac_mid; then
1906 ac_lo= ac_hi=
1907 break
1908 fi
1909 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 done
1913 else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 $4
1917 int
1918 main ()
1919 {
1920 static int test_array [1 - 2 * !(($2) < 0)];
1921 test_array [0] = 0
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"; then :
1928 ac_hi=-1 ac_mid=-1
1929 while :; do
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 $4
1933 int
1934 main ()
1935 {
1936 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1937 test_array [0] = 0
1938
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_lo=$ac_mid; break
1945 else
1946 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1947 if test $ac_mid -le $ac_hi; then
1948 ac_lo= ac_hi=
1949 break
1950 fi
1951 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 done
1955 else
1956 ac_lo= ac_hi=
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 # Binary search between lo and hi bounds.
1962 while test "x$ac_lo" != "x$ac_hi"; do
1963 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $4
1967 int
1968 main ()
1969 {
1970 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1971 test_array [0] = 0
1972
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 ac_hi=$ac_mid
1979 else
1980 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 done
1984 case $ac_lo in #((
1985 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1986 '') ac_retval=1 ;;
1987 esac
1988 else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $4
1992 static long int longval () { return $2; }
1993 static unsigned long int ulongval () { return $2; }
1994 #include <stdio.h>
1995 #include <stdlib.h>
1996 int
1997 main ()
1998 {
1999
2000 FILE *f = fopen ("conftest.val", "w");
2001 if (! f)
2002 return 1;
2003 if (($2) < 0)
2004 {
2005 long int i = longval ();
2006 if (i != ($2))
2007 return 1;
2008 fprintf (f, "%ld", i);
2009 }
2010 else
2011 {
2012 unsigned long int i = ulongval ();
2013 if (i != ($2))
2014 return 1;
2015 fprintf (f, "%lu", i);
2016 }
2017 /* Do not output a trailing newline, as this causes \r\n confusion
2018 on some platforms. */
2019 return ferror (f) || fclose (f) != 0;
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_run "$LINENO"; then :
2026 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2027 else
2028 ac_retval=1
2029 fi
2030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2031 conftest.$ac_objext conftest.beam conftest.$ac_ext
2032 rm -f conftest.val
2033
2034 fi
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036 return $ac_retval
2037
2038 } # ac_fn_c_compute_int
2039
2040 # ac_fn_c_try_link LINENO
2041 # -----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded.
2043 ac_fn_c_try_link ()
2044 {
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 rm -f conftest.$ac_objext conftest$ac_exeext
2047 if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>conftest.err
2055 ac_status=$?
2056 if test -s conftest.err; then
2057 grep -v '^ *+' conftest.err >conftest.er1
2058 cat conftest.er1 >&5
2059 mv -f conftest.er1 conftest.err
2060 fi
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } && {
2063 test -z "$ac_c_werror_flag" ||
2064 test ! -s conftest.err
2065 } && test -s conftest$ac_exeext && {
2066 test "$cross_compiling" = yes ||
2067 $as_test_x conftest$ac_exeext
2068 }; then :
2069 ac_retval=0
2070 else
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_retval=1
2075 fi
2076 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2077 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2078 # interfere with the next link command; also delete a directory that is
2079 # left behind by Apple's compiler. We do this before executing the actions.
2080 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 return $ac_retval
2083
2084 } # ac_fn_c_try_link
2085
2086 # ac_fn_c_check_func LINENO FUNC VAR
2087 # ----------------------------------
2088 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2089 ac_fn_c_check_func ()
2090 {
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2095 $as_echo_n "(cached) " >&6
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2101 #define $2 innocuous_$2
2102
2103 /* System header to define __stub macros and hopefully few prototypes,
2104 which can conflict with char $2 (); below.
2105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2106 <limits.h> exists even on freestanding compilers. */
2107
2108 #ifdef __STDC__
2109 # include <limits.h>
2110 #else
2111 # include <assert.h>
2112 #endif
2113
2114 #undef $2
2115
2116 /* Override any GCC internal prototype to avoid an error.
2117 Use char because int might match the return type of a GCC
2118 builtin and then its argument prototype would still apply. */
2119 #ifdef __cplusplus
2120 extern "C"
2121 #endif
2122 char $2 ();
2123 /* The GNU C library defines this for functions which it implements
2124 to always fail with ENOSYS. Some functions are actually named
2125 something starting with __ and the normal name is an alias. */
2126 #if defined __stub_$2 || defined __stub___$2
2127 choke me
2128 #endif
2129
2130 int
2131 main ()
2132 {
2133 return $2 ();
2134 ;
2135 return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_link "$LINENO"; then :
2139 eval "$3=yes"
2140 else
2141 eval "$3=no"
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext \
2144 conftest$ac_exeext conftest.$ac_ext
2145 fi
2146 eval ac_res=\$$3
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151 } # ac_fn_c_check_func
2152
2153 # ac_fn_c_check_decl LINENO SYMBOL VAR
2154 # ------------------------------------
2155 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2156 ac_fn_c_check_decl ()
2157 {
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 as_decl_name=`echo $2|sed 's/ *(.*//'`
2160 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2162 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2163 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164 $as_echo_n "(cached) " >&6
2165 else
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2168 $4
2169 int
2170 main ()
2171 {
2172 #ifndef $as_decl_name
2173 #ifdef __cplusplus
2174 (void) $as_decl_use;
2175 #else
2176 (void) $as_decl_name;
2177 #endif
2178 #endif
2179
2180 ;
2181 return 0;
2182 }
2183 _ACEOF
2184 if ac_fn_c_try_compile "$LINENO"; then :
2185 eval "$3=yes"
2186 else
2187 eval "$3=no"
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 fi
2191 eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195
2196 } # ac_fn_c_check_decl
2197
2198 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2199 # ----------------------------------------------------
2200 # Tries to find if the field MEMBER exists in type AGGR, after including
2201 # INCLUDES, setting cache variable VAR accordingly.
2202 ac_fn_c_check_member ()
2203 {
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2206 $as_echo_n "checking for $2.$3... " >&6; }
2207 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 $as_echo_n "(cached) " >&6
2209 else
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 $5
2213 int
2214 main ()
2215 {
2216 static $2 ac_aggr;
2217 if (ac_aggr.$3)
2218 return 0;
2219 ;
2220 return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224 eval "$4=yes"
2225 else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 $5
2229 int
2230 main ()
2231 {
2232 static $2 ac_aggr;
2233 if (sizeof ac_aggr.$3)
2234 return 0;
2235 ;
2236 return 0;
2237 }
2238 _ACEOF
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 eval "$4=yes"
2241 else
2242 eval "$4=no"
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 fi
2248 eval ac_res=\$$4
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2250 $as_echo "$ac_res" >&6; }
2251 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252
2253 } # ac_fn_c_check_member
2254
2255 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2256 # -------------------------------------------
2257 # Tests whether TYPE exists after having included INCLUDES, setting cache
2258 # variable VAR accordingly.
2259 ac_fn_c_check_type ()
2260 {
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263 $as_echo_n "checking for $2... " >&6; }
2264 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2265 $as_echo_n "(cached) " >&6
2266 else
2267 eval "$3=no"
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2270 $4
2271 int
2272 main ()
2273 {
2274 if (sizeof ($2))
2275 return 0;
2276 ;
2277 return 0;
2278 }
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2283 $4
2284 int
2285 main ()
2286 {
2287 if (sizeof (($2)))
2288 return 0;
2289 ;
2290 return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294
2295 else
2296 eval "$3=yes"
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
2302 eval ac_res=\$$3
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306
2307 } # ac_fn_c_check_type
2308 cat >config.log <<_ACEOF
2309 This file contains any messages produced by compilers while
2310 running configure, to aid debugging if configure makes a mistake.
2311
2312 It was created by $as_me, which was
2313 generated by GNU Autoconf 2.64. Invocation command line was
2314
2315 $ $0 $@
2316
2317 _ACEOF
2318 exec 5>>config.log
2319 {
2320 cat <<_ASUNAME
2321 ## --------- ##
2322 ## Platform. ##
2323 ## --------- ##
2324
2325 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2326 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2327 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2328 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2329 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330
2331 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2332 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333
2334 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2335 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2336 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2337 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2338 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2339 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2340 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2341
2342 _ASUNAME
2343
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 $as_echo "PATH: $as_dir"
2350 done
2351 IFS=$as_save_IFS
2352
2353 } >&5
2354
2355 cat >&5 <<_ACEOF
2356
2357
2358 ## ----------- ##
2359 ## Core tests. ##
2360 ## ----------- ##
2361
2362 _ACEOF
2363
2364
2365 # Keep a trace of the command line.
2366 # Strip out --no-create and --no-recursion so they do not pile up.
2367 # Strip out --silent because we don't want to record it for future runs.
2368 # Also quote any args containing shell meta-characters.
2369 # Make two passes to allow for proper duplicate-argument suppression.
2370 ac_configure_args=
2371 ac_configure_args0=
2372 ac_configure_args1=
2373 ac_must_keep_next=false
2374 for ac_pass in 1 2
2375 do
2376 for ac_arg
2377 do
2378 case $ac_arg in
2379 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2381 | -silent | --silent | --silen | --sile | --sil)
2382 continue ;;
2383 *\'*)
2384 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 esac
2386 case $ac_pass in
2387 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2388 2)
2389 as_fn_append ac_configure_args1 " '$ac_arg'"
2390 if test $ac_must_keep_next = true; then
2391 ac_must_keep_next=false # Got value, back to normal.
2392 else
2393 case $ac_arg in
2394 *=* | --config-cache | -C | -disable-* | --disable-* \
2395 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2396 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2397 | -with-* | --with-* | -without-* | --without-* | --x)
2398 case "$ac_configure_args0 " in
2399 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2400 esac
2401 ;;
2402 -* ) ac_must_keep_next=true ;;
2403 esac
2404 fi
2405 as_fn_append ac_configure_args " '$ac_arg'"
2406 ;;
2407 esac
2408 done
2409 done
2410 { ac_configure_args0=; unset ac_configure_args0;}
2411 { ac_configure_args1=; unset ac_configure_args1;}
2412
2413 # When interrupted or exit'd, cleanup temporary files, and complete
2414 # config.log. We remove comments because anyway the quotes in there
2415 # would cause problems or look ugly.
2416 # WARNING: Use '\'' to represent an apostrophe within the trap.
2417 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2418 trap 'exit_status=$?
2419 # Save into config.log some information that might help in debugging.
2420 {
2421 echo
2422
2423 cat <<\_ASBOX
2424 ## ---------------- ##
2425 ## Cache variables. ##
2426 ## ---------------- ##
2427 _ASBOX
2428 echo
2429 # The following way of writing the cache mishandles newlines in values,
2430 (
2431 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2432 eval ac_val=\$$ac_var
2433 case $ac_val in #(
2434 *${as_nl}*)
2435 case $ac_var in #(
2436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2438 esac
2439 case $ac_var in #(
2440 _ | IFS | as_nl) ;; #(
2441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2442 *) { eval $ac_var=; unset $ac_var;} ;;
2443 esac ;;
2444 esac
2445 done
2446 (set) 2>&1 |
2447 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2448 *${as_nl}ac_space=\ *)
2449 sed -n \
2450 "s/'\''/'\''\\\\'\'''\''/g;
2451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2452 ;; #(
2453 *)
2454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2455 ;;
2456 esac |
2457 sort
2458 )
2459 echo
2460
2461 cat <<\_ASBOX
2462 ## ----------------- ##
2463 ## Output variables. ##
2464 ## ----------------- ##
2465 _ASBOX
2466 echo
2467 for ac_var in $ac_subst_vars
2468 do
2469 eval ac_val=\$$ac_var
2470 case $ac_val in
2471 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472 esac
2473 $as_echo "$ac_var='\''$ac_val'\''"
2474 done | sort
2475 echo
2476
2477 if test -n "$ac_subst_files"; then
2478 cat <<\_ASBOX
2479 ## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##
2482 _ASBOX
2483 echo
2484 for ac_var in $ac_subst_files
2485 do
2486 eval ac_val=\$$ac_var
2487 case $ac_val in
2488 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 esac
2490 $as_echo "$ac_var='\''$ac_val'\''"
2491 done | sort
2492 echo
2493 fi
2494
2495 if test -s confdefs.h; then
2496 cat <<\_ASBOX
2497 ## ----------- ##
2498 ## confdefs.h. ##
2499 ## ----------- ##
2500 _ASBOX
2501 echo
2502 cat confdefs.h
2503 echo
2504 fi
2505 test "$ac_signal" != 0 &&
2506 $as_echo "$as_me: caught signal $ac_signal"
2507 $as_echo "$as_me: exit $exit_status"
2508 } >&5
2509 rm -f core *.core core.conftest.* &&
2510 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2511 exit $exit_status
2512 ' 0
2513 for ac_signal in 1 2 13 15; do
2514 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2515 done
2516 ac_signal=0
2517
2518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2519 rm -f -r conftest* confdefs.h
2520
2521 $as_echo "/* confdefs.h */" > confdefs.h
2522
2523 # Predefined preprocessor variables.
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_NAME "$PACKAGE_NAME"
2527 _ACEOF
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2531 _ACEOF
2532
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2535 _ACEOF
2536
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_STRING "$PACKAGE_STRING"
2539 _ACEOF
2540
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2543 _ACEOF
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_URL "$PACKAGE_URL"
2547 _ACEOF
2548
2549
2550 # Let the site file select an alternate cache file if it wants to.
2551 # Prefer an explicitly selected file to automatically selected ones.
2552 ac_site_file1=NONE
2553 ac_site_file2=NONE
2554 if test -n "$CONFIG_SITE"; then
2555 ac_site_file1=$CONFIG_SITE
2556 elif test "x$prefix" != xNONE; then
2557 ac_site_file1=$prefix/share/config.site
2558 ac_site_file2=$prefix/etc/config.site
2559 else
2560 ac_site_file1=$ac_default_prefix/share/config.site
2561 ac_site_file2=$ac_default_prefix/etc/config.site
2562 fi
2563 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2564 do
2565 test "x$ac_site_file" = xNONE && continue
2566 if test -r "$ac_site_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2568 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2569 sed 's/^/| /' "$ac_site_file" >&5
2570 . "$ac_site_file"
2571 fi
2572 done
2573
2574 if test -r "$cache_file"; then
2575 # Some versions of bash will fail to source /dev/null (special
2576 # files actually), so we avoid doing that.
2577 if test -f "$cache_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2580 case $cache_file in
2581 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582 *) . "./$cache_file";;
2583 esac
2584 fi
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2588 >$cache_file
2589 fi
2590
2591 # Check that the precious variables saved in the cache have kept the same
2592 # value.
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2600 set,)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,set)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,);;
2609 *)
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2627 fi;;
2628 esac
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2631 case $ac_new_val in
2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2634 esac
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638 esac
2639 fi
2640 done
2641 if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647 fi
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2651
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657
2658
2659
2660
2661
2662 ac_config_headers="$ac_config_headers config.h:config.in"
2663
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2666 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2667 # Check whether --enable-maintainer-mode was given.
2668 if test "${enable_maintainer_mode+set}" = set; then :
2669 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2670 else
2671 USE_MAINTAINER_MODE=no
2672 fi
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2675 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2676 if test $USE_MAINTAINER_MODE = yes; then
2677 MAINTAINER_MODE_TRUE=
2678 MAINTAINER_MODE_FALSE='#'
2679 else
2680 MAINTAINER_MODE_TRUE='#'
2681 MAINTAINER_MODE_FALSE=
2682 fi
2683
2684 MAINT=$MAINTAINER_MODE_TRUE
2685
2686
2687
2688 # Provide more thorough testing by -lmcheck.
2689 # Set it to 'true' for development snapshots, 'false' for releases or
2690 # pre-releases.
2691 development=true
2692
2693 ac_ext=c
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if test "${ac_cv_prog_CC+set}" = set; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729 $as_echo "$CC" >&6; }
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735
2736 fi
2737 if test -z "$ac_cv_prog_CC"; then
2738 ac_ct_CC=$CC
2739 # Extract the first word of "gcc", so it can be a program name with args.
2740 set dummy gcc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$ac_ct_CC"; then
2747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_ac_ct_CC="gcc"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767 if test -n "$ac_ct_CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2769 $as_echo "$ac_ct_CC" >&6; }
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775 if test "x$ac_ct_CC" = x; then
2776 CC=""
2777 else
2778 case $cross_compiling:$ac_tool_warned in
2779 yes:)
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782 ac_tool_warned=yes ;;
2783 esac
2784 CC=$ac_ct_CC
2785 fi
2786 else
2787 CC="$ac_cv_prog_CC"
2788 fi
2789
2790 if test -z "$CC"; then
2791 if test -n "$ac_tool_prefix"; then
2792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2793 set dummy ${ac_tool_prefix}cc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if test "${ac_cv_prog_CC+set}" = set; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CC="${ac_tool_prefix}cc"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829 fi
2830 fi
2831 if test -z "$CC"; then
2832 # Extract the first word of "cc", so it can be a program name with args.
2833 set dummy cc; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_CC+set}" = set; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 ac_prog_rejected=no
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2851 ac_prog_rejected=yes
2852 continue
2853 fi
2854 ac_cv_prog_CC="cc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 if test $ac_prog_rejected = yes; then
2863 # We found a bogon in the path, so make sure we never use it.
2864 set dummy $ac_cv_prog_CC
2865 shift
2866 if test $# != 0; then
2867 # We chose a different compiler from the bogus one.
2868 # However, it has the same basename, so the bogon will be chosen
2869 # first if we set CC to just the basename; use the full file name.
2870 shift
2871 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2872 fi
2873 fi
2874 fi
2875 fi
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2880 else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$CC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 for ac_prog in cl.exe
2890 do
2891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if test "${ac_cv_prog_CC+set}" = set; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2922 else
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2925 fi
2926
2927
2928 test -n "$CC" && break
2929 done
2930 fi
2931 if test -z "$CC"; then
2932 ac_ct_CC=$CC
2933 for ac_prog in cl.exe
2934 do
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_ac_ct_CC="$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963 if test -n "$ac_ct_CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965 $as_echo "$ac_ct_CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971
2972 test -n "$ac_ct_CC" && break
2973 done
2974
2975 if test "x$ac_ct_CC" = x; then
2976 CC=""
2977 else
2978 case $cross_compiling:$ac_tool_warned in
2979 yes:)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982 ac_tool_warned=yes ;;
2983 esac
2984 CC=$ac_ct_CC
2985 fi
2986 fi
2987
2988 fi
2989
2990
2991 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 as_fn_error "no acceptable C compiler found in \$PATH
2994 See \`config.log' for more details." "$LINENO" 5; }
2995
2996 # Provide some information about the compiler.
2997 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2998 set X $ac_compile
2999 ac_compiler=$2
3000 for ac_option in --version -v -V -qversion; do
3001 { { ac_try="$ac_compiler $ac_option >&5"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3009 ac_status=$?
3010 if test -s conftest.err; then
3011 sed '10a\
3012 ... rest of stderr output deleted ...
3013 10q' conftest.err >conftest.er1
3014 cat conftest.er1 >&5
3015 rm -f conftest.er1 conftest.err
3016 fi
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }
3019 done
3020
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023
3024 int
3025 main ()
3026 {
3027
3028 ;
3029 return 0;
3030 }
3031 _ACEOF
3032 ac_clean_files_save=$ac_clean_files
3033 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3034 # Try to create an executable without -o first, disregard a.out.
3035 # It will help us diagnose broken compilers, and finding out an intuition
3036 # of exeext.
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3038 $as_echo_n "checking for C compiler default output file name... " >&6; }
3039 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3040
3041 # The possible output files:
3042 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3043
3044 ac_rmfiles=
3045 for ac_file in $ac_files
3046 do
3047 case $ac_file in
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3049 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3050 esac
3051 done
3052 rm -f $ac_rmfiles
3053
3054 if { { ac_try="$ac_link_default"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link_default") 2>&5
3062 ac_status=$?
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then :
3065 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3066 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3067 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3068 # so that the user can short-circuit this test for compilers unknown to
3069 # Autoconf.
3070 for ac_file in $ac_files ''
3071 do
3072 test -f "$ac_file" || continue
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3075 ;;
3076 [ab].out )
3077 # We found the default executable, but exeext='' is most
3078 # certainly right.
3079 break;;
3080 *.* )
3081 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3082 then :; else
3083 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 fi
3085 # We set ac_cv_exeext here because the later test for it is not
3086 # safe: cross compilers may not add the suffix if given an `-o'
3087 # argument, so we may need to know it at that point already.
3088 # Even if this section looks crufty: it has the advantage of
3089 # actually working.
3090 break;;
3091 * )
3092 break;;
3093 esac
3094 done
3095 test "$ac_cv_exeext" = no && ac_cv_exeext=
3096
3097 else
3098 ac_file=''
3099 fi
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3101 $as_echo "$ac_file" >&6; }
3102 if test -z "$ac_file"; then :
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 { as_fn_set_status 77
3109 as_fn_error "C compiler cannot create executables
3110 See \`config.log' for more details." "$LINENO" 5; }; }
3111 fi
3112 ac_exeext=$ac_cv_exeext
3113
3114 # Check that the compiler produces executables we can run. If not, either
3115 # the compiler is broken, or we cross compile.
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117 $as_echo_n "checking whether the C compiler works... " >&6; }
3118 # If not cross compiling, check that we can run a simple program.
3119 if test "$cross_compiling" != yes; then
3120 if { ac_try='./$ac_file'
3121 { { case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_try") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; }; then
3131 cross_compiling=no
3132 else
3133 if test "$cross_compiling" = maybe; then
3134 cross_compiling=yes
3135 else
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error "cannot run C compiled programs.
3139 If you meant to cross compile, use \`--host'.
3140 See \`config.log' for more details." "$LINENO" 5; }
3141 fi
3142 fi
3143 fi
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145 $as_echo "yes" >&6; }
3146
3147 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3148 ac_clean_files=$ac_clean_files_save
3149 # Check that the compiler produces executables we can run. If not, either
3150 # the compiler is broken, or we cross compile.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3152 $as_echo_n "checking whether we are cross compiling... " >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3154 $as_echo "$cross_compiling" >&6; }
3155
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3157 $as_echo_n "checking for suffix of executables... " >&6; }
3158 if { { ac_try="$ac_link"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link") 2>&5
3166 ac_status=$?
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }; then :
3169 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3170 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3171 # work properly (i.e., refer to `conftest.exe'), while it won't with
3172 # `rm'.
3173 for ac_file in conftest.exe conftest conftest.*; do
3174 test -f "$ac_file" || continue
3175 case $ac_file in
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3178 break;;
3179 * ) break;;
3180 esac
3181 done
3182 else
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error "cannot compute suffix of executables: cannot compile and link
3186 See \`config.log' for more details." "$LINENO" 5; }
3187 fi
3188 rm -f conftest$ac_cv_exeext
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3190 $as_echo "$ac_cv_exeext" >&6; }
3191
3192 rm -f conftest.$ac_ext
3193 EXEEXT=$ac_cv_exeext
3194 ac_exeext=$EXEEXT
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3196 $as_echo_n "checking for suffix of object files... " >&6; }
3197 if test "${ac_cv_objext+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3202
3203 int
3204 main ()
3205 {
3206
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 rm -f conftest.o conftest.obj
3212 if { { ac_try="$ac_compile"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_compile") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 for ac_file in conftest.o conftest.obj conftest.*; do
3224 test -f "$ac_file" || continue;
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3227 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3228 break;;
3229 esac
3230 done
3231 else
3232 $as_echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error "cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details." "$LINENO" 5; }
3239 fi
3240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3241 fi
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3243 $as_echo "$ac_cv_objext" >&6; }
3244 OBJEXT=$ac_cv_objext
3245 ac_objext=$OBJEXT
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3247 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3248 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253
3254 int
3255 main ()
3256 {
3257 #ifndef __GNUC__
3258 choke me
3259 #endif
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 if ac_fn_c_try_compile "$LINENO"; then :
3266 ac_compiler_gnu=yes
3267 else
3268 ac_compiler_gnu=no
3269 fi
3270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3272
3273 fi
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3275 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3276 if test $ac_compiler_gnu = yes; then
3277 GCC=yes
3278 else
3279 GCC=
3280 fi
3281 ac_test_CFLAGS=${CFLAGS+set}
3282 ac_save_CFLAGS=$CFLAGS
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3284 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3285 if test "${ac_cv_prog_cc_g+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 ac_save_c_werror_flag=$ac_c_werror_flag
3289 ac_c_werror_flag=yes
3290 ac_cv_prog_cc_g=no
3291 CFLAGS="-g"
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 if ac_fn_c_try_compile "$LINENO"; then :
3304 ac_cv_prog_cc_g=yes
3305 else
3306 CFLAGS=""
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309
3310 int
3311 main ()
3312 {
3313
3314 ;
3315 return 0;
3316 }
3317 _ACEOF
3318 if ac_fn_c_try_compile "$LINENO"; then :
3319
3320 else
3321 ac_c_werror_flag=$ac_save_c_werror_flag
3322 CFLAGS="-g"
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3325
3326 int
3327 main ()
3328 {
3329
3330 ;
3331 return 0;
3332 }
3333 _ACEOF
3334 if ac_fn_c_try_compile "$LINENO"; then :
3335 ac_cv_prog_cc_g=yes
3336 fi
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 fi
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 fi
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 ac_c_werror_flag=$ac_save_c_werror_flag
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3345 $as_echo "$ac_cv_prog_cc_g" >&6; }
3346 if test "$ac_test_CFLAGS" = set; then
3347 CFLAGS=$ac_save_CFLAGS
3348 elif test $ac_cv_prog_cc_g = yes; then
3349 if test "$GCC" = yes; then
3350 CFLAGS="-g -O2"
3351 else
3352 CFLAGS="-g"
3353 fi
3354 else
3355 if test "$GCC" = yes; then
3356 CFLAGS="-O2"
3357 else
3358 CFLAGS=
3359 fi
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3362 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3363 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 ac_cv_prog_cc_c89=no
3367 ac_save_CC=$CC
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3370 #include <stdarg.h>
3371 #include <stdio.h>
3372 #include <sys/types.h>
3373 #include <sys/stat.h>
3374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3375 struct buf { int x; };
3376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3377 static char *e (p, i)
3378 char **p;
3379 int i;
3380 {
3381 return p[i];
3382 }
3383 static char *f (char * (*g) (char **, int), char **p, ...)
3384 {
3385 char *s;
3386 va_list v;
3387 va_start (v,p);
3388 s = g (p, va_arg (v,int));
3389 va_end (v);
3390 return s;
3391 }
3392
3393 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3394 function prototypes and stuff, but not '\xHH' hex character constants.
3395 These don't provoke an error unfortunately, instead are silently treated
3396 as 'x'. The following induces an error, until -std is added to get
3397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3398 array size at least. It's necessary to write '\x00'==0 to get something
3399 that's true only with -std. */
3400 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401
3402 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3403 inside strings and character constants. */
3404 #define FOO(x) 'x'
3405 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406
3407 int test (int i, double x);
3408 struct s1 {int (*f) (int a);};
3409 struct s2 {int (*f) (double a);};
3410 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3411 int argc;
3412 char **argv;
3413 int
3414 main ()
3415 {
3416 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3422 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 do
3424 CC="$ac_save_CC $ac_arg"
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_cv_prog_cc_c89=$ac_arg
3427 fi
3428 rm -f core conftest.err conftest.$ac_objext
3429 test "x$ac_cv_prog_cc_c89" != "xno" && break
3430 done
3431 rm -f conftest.$ac_ext
3432 CC=$ac_save_CC
3433
3434 fi
3435 # AC_CACHE_VAL
3436 case "x$ac_cv_prog_cc_c89" in
3437 x)
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3439 $as_echo "none needed" >&6; } ;;
3440 xno)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3442 $as_echo "unsupported" >&6; } ;;
3443 *)
3444 CC="$CC $ac_cv_prog_cc_c89"
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3446 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3447 esac
3448 if test "x$ac_cv_prog_cc_c89" != xno; then :
3449
3450 fi
3451
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
3458
3459 ac_ext=c
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3465 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3466 # On Suns, sometimes $CPP names a directory.
3467 if test -n "$CPP" && test -d "$CPP"; then
3468 CPP=
3469 fi
3470 if test -z "$CPP"; then
3471 if test "${ac_cv_prog_CPP+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 # Double quotes because CPP needs to be expanded
3475 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3476 do
3477 ac_preproc_ok=false
3478 for ac_c_preproc_warn_flag in '' yes
3479 do
3480 # Use a header file that comes with gcc, so configuring glibc
3481 # with a fresh cross-compiler works.
3482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483 # <limits.h> exists even on freestanding compilers.
3484 # On the NeXT, cc -E runs the code through the compiler's parser,
3485 # not just through cpp. "Syntax error" is here to catch this case.
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488 #ifdef __STDC__
3489 # include <limits.h>
3490 #else
3491 # include <assert.h>
3492 #endif
3493 Syntax error
3494 _ACEOF
3495 if ac_fn_c_try_cpp "$LINENO"; then :
3496
3497 else
3498 # Broken: fails on valid input.
3499 continue
3500 fi
3501 rm -f conftest.err conftest.$ac_ext
3502
3503 # OK, works on sane cases. Now check whether nonexistent headers
3504 # can be detected and how.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #include <ac_nonexistent.h>
3508 _ACEOF
3509 if ac_fn_c_try_cpp "$LINENO"; then :
3510 # Broken: success on invalid input.
3511 continue
3512 else
3513 # Passes both tests.
3514 ac_preproc_ok=:
3515 break
3516 fi
3517 rm -f conftest.err conftest.$ac_ext
3518
3519 done
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then :
3523 break
3524 fi
3525
3526 done
3527 ac_cv_prog_CPP=$CPP
3528
3529 fi
3530 CPP=$ac_cv_prog_CPP
3531 else
3532 ac_cv_prog_CPP=$CPP
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3535 $as_echo "$CPP" >&6; }
3536 ac_preproc_ok=false
3537 for ac_c_preproc_warn_flag in '' yes
3538 do
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547 #ifdef __STDC__
3548 # include <limits.h>
3549 #else
3550 # include <assert.h>
3551 #endif
3552 Syntax error
3553 _ACEOF
3554 if ac_fn_c_try_cpp "$LINENO"; then :
3555
3556 else
3557 # Broken: fails on valid input.
3558 continue
3559 fi
3560 rm -f conftest.err conftest.$ac_ext
3561
3562 # OK, works on sane cases. Now check whether nonexistent headers
3563 # can be detected and how.
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <ac_nonexistent.h>
3567 _ACEOF
3568 if ac_fn_c_try_cpp "$LINENO"; then :
3569 # Broken: success on invalid input.
3570 continue
3571 else
3572 # Passes both tests.
3573 ac_preproc_ok=:
3574 break
3575 fi
3576 rm -f conftest.err conftest.$ac_ext
3577
3578 done
3579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3580 rm -f conftest.err conftest.$ac_ext
3581 if $ac_preproc_ok; then :
3582
3583 else
3584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3587 See \`config.log' for more details." "$LINENO" 5; }
3588 fi
3589
3590 ac_ext=c
3591 ac_cpp='$CPP $CPPFLAGS'
3592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595
3596
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3598 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3599 if test "${ac_cv_path_GREP+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 if test -z "$GREP"; then
3603 ac_path_GREP_found=false
3604 # Loop through the user's path and test for each of PROGNAME-LIST
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3607 do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_prog in grep ggrep; do
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3613 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3614 # Check for GNU ac_path_GREP and select it if it is found.
3615 # Check for GNU $ac_path_GREP
3616 case `"$ac_path_GREP" --version 2>&1` in
3617 *GNU*)
3618 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3619 *)
3620 ac_count=0
3621 $as_echo_n 0123456789 >"conftest.in"
3622 while :
3623 do
3624 cat "conftest.in" "conftest.in" >"conftest.tmp"
3625 mv "conftest.tmp" "conftest.in"
3626 cp "conftest.in" "conftest.nl"
3627 $as_echo 'GREP' >> "conftest.nl"
3628 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3630 as_fn_arith $ac_count + 1 && ac_count=$as_val
3631 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3632 # Best one so far, save it but keep looking for a better one
3633 ac_cv_path_GREP="$ac_path_GREP"
3634 ac_path_GREP_max=$ac_count
3635 fi
3636 # 10*(2^10) chars as input seems more than enough
3637 test $ac_count -gt 10 && break
3638 done
3639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3640 esac
3641
3642 $ac_path_GREP_found && break 3
3643 done
3644 done
3645 done
3646 IFS=$as_save_IFS
3647 if test -z "$ac_cv_path_GREP"; then
3648 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3649 fi
3650 else
3651 ac_cv_path_GREP=$GREP
3652 fi
3653
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3656 $as_echo "$ac_cv_path_GREP" >&6; }
3657 GREP="$ac_cv_path_GREP"
3658
3659
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3661 $as_echo_n "checking for egrep... " >&6; }
3662 if test "${ac_cv_path_EGREP+set}" = set; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3666 then ac_cv_path_EGREP="$GREP -E"
3667 else
3668 if test -z "$EGREP"; then
3669 ac_path_EGREP_found=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_prog in egrep; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3679 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3680 # Check for GNU ac_path_EGREP and select it if it is found.
3681 # Check for GNU $ac_path_EGREP
3682 case `"$ac_path_EGREP" --version 2>&1` in
3683 *GNU*)
3684 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3685 *)
3686 ac_count=0
3687 $as_echo_n 0123456789 >"conftest.in"
3688 while :
3689 do
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 $as_echo 'EGREP' >> "conftest.nl"
3694 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 as_fn_arith $ac_count + 1 && ac_count=$as_val
3697 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_EGREP="$ac_path_EGREP"
3700 ac_path_EGREP_max=$ac_count
3701 fi
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3704 done
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 esac
3707
3708 $ac_path_EGREP_found && break 3
3709 done
3710 done
3711 done
3712 IFS=$as_save_IFS
3713 if test -z "$ac_cv_path_EGREP"; then
3714 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3715 fi
3716 else
3717 ac_cv_path_EGREP=$EGREP
3718 fi
3719
3720 fi
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3723 $as_echo "$ac_cv_path_EGREP" >&6; }
3724 EGREP="$ac_cv_path_EGREP"
3725
3726
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3728 $as_echo_n "checking for ANSI C header files... " >&6; }
3729 if test "${ac_cv_header_stdc+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <stdlib.h>
3735 #include <stdarg.h>
3736 #include <string.h>
3737 #include <float.h>
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_cv_header_stdc=yes
3749 else
3750 ac_cv_header_stdc=no
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753
3754 if test $ac_cv_header_stdc = yes; then
3755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <string.h>
3759
3760 _ACEOF
3761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3762 $EGREP "memchr" >/dev/null 2>&1; then :
3763
3764 else
3765 ac_cv_header_stdc=no
3766 fi
3767 rm -f conftest*
3768
3769 fi
3770
3771 if test $ac_cv_header_stdc = yes; then
3772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 #include <stdlib.h>
3776
3777 _ACEOF
3778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3779 $EGREP "free" >/dev/null 2>&1; then :
3780
3781 else
3782 ac_cv_header_stdc=no
3783 fi
3784 rm -f conftest*
3785
3786 fi
3787
3788 if test $ac_cv_header_stdc = yes; then
3789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3790 if test "$cross_compiling" = yes; then :
3791 :
3792 else
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <ctype.h>
3796 #include <stdlib.h>
3797 #if ((' ' & 0x0FF) == 0x020)
3798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3800 #else
3801 # define ISLOWER(c) \
3802 (('a' <= (c) && (c) <= 'i') \
3803 || ('j' <= (c) && (c) <= 'r') \
3804 || ('s' <= (c) && (c) <= 'z'))
3805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3806 #endif
3807
3808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3809 int
3810 main ()
3811 {
3812 int i;
3813 for (i = 0; i < 256; i++)
3814 if (XOR (islower (i), ISLOWER (i))
3815 || toupper (i) != TOUPPER (i))
3816 return 2;
3817 return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_run "$LINENO"; then :
3821
3822 else
3823 ac_cv_header_stdc=no
3824 fi
3825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3826 conftest.$ac_objext conftest.beam conftest.$ac_ext
3827 fi
3828
3829 fi
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3832 $as_echo "$ac_cv_header_stdc" >&6; }
3833 if test $ac_cv_header_stdc = yes; then
3834
3835 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3836
3837 fi
3838
3839 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3840 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3841 inttypes.h stdint.h unistd.h
3842 do :
3843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3845 "
3846 eval as_val=\$$as_ac_Header
3847 if test "x$as_val" = x""yes; then :
3848 cat >>confdefs.h <<_ACEOF
3849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3850 _ACEOF
3851
3852 fi
3853
3854 done
3855
3856
3857
3858 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3859 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3860 MINIX=yes
3861 else
3862 MINIX=
3863 fi
3864
3865
3866 if test "$MINIX" = yes; then
3867
3868 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3869
3870
3871 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3872
3873
3874 $as_echo "#define _MINIX 1" >>confdefs.h
3875
3876 fi
3877
3878
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3880 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3881 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886
3887 # define __EXTENSIONS__ 1
3888 $ac_includes_default
3889 int
3890 main ()
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_safe_to_define___extensions__=yes
3899 else
3900 ac_cv_safe_to_define___extensions__=no
3901 fi
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3905 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3906 test $ac_cv_safe_to_define___extensions__ = yes &&
3907 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3908
3909 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3910
3911 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3912
3913 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3914
3915 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3916
3917
3918 ac_aux_dir=
3919 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3920 for ac_t in install-sh install.sh shtool; do
3921 if test -f "$ac_dir/$ac_t"; then
3922 ac_aux_dir=$ac_dir
3923 ac_install_sh="$ac_aux_dir/$ac_t -c"
3924 break 2
3925 fi
3926 done
3927 done
3928 if test -z "$ac_aux_dir"; then
3929 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3930 fi
3931
3932 # These three variables are undocumented and unsupported,
3933 # and are intended to be withdrawn in a future Autoconf release.
3934 # They can cause serious problems if a builder's source tree is in a directory
3935 # whose full name contains unusual characters.
3936 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3937 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3938 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3939
3940
3941 # Make sure we can run config.sub.
3942 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3943 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3946 $as_echo_n "checking build system type... " >&6; }
3947 if test "${ac_cv_build+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 ac_build_alias=$build_alias
3951 test "x$ac_build_alias" = x &&
3952 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3953 test "x$ac_build_alias" = x &&
3954 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3955 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3956 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3957
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3960 $as_echo "$ac_cv_build" >&6; }
3961 case $ac_cv_build in
3962 *-*-*) ;;
3963 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3964 esac
3965 build=$ac_cv_build
3966 ac_save_IFS=$IFS; IFS='-'
3967 set x $ac_cv_build
3968 shift
3969 build_cpu=$1
3970 build_vendor=$2
3971 shift; shift
3972 # Remember, the first character of IFS is used to create $*,
3973 # except with old shells:
3974 build_os=$*
3975 IFS=$ac_save_IFS
3976 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3977
3978
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3980 $as_echo_n "checking host system type... " >&6; }
3981 if test "${ac_cv_host+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 if test "x$host_alias" = x; then
3985 ac_cv_host=$ac_cv_build
3986 else
3987 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3988 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3989 fi
3990
3991 fi
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3993 $as_echo "$ac_cv_host" >&6; }
3994 case $ac_cv_host in
3995 *-*-*) ;;
3996 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3997 esac
3998 host=$ac_cv_host
3999 ac_save_IFS=$IFS; IFS='-'
4000 set x $ac_cv_host
4001 shift
4002 host_cpu=$1
4003 host_vendor=$2
4004 shift; shift
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4007 host_os=$*
4008 IFS=$ac_save_IFS
4009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4010
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4013 $as_echo_n "checking target system type... " >&6; }
4014 if test "${ac_cv_target+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if test "x$target_alias" = x; then
4018 ac_cv_target=$ac_cv_host
4019 else
4020 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4021 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4022 fi
4023
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4026 $as_echo "$ac_cv_target" >&6; }
4027 case $ac_cv_target in
4028 *-*-*) ;;
4029 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4030 esac
4031 target=$ac_cv_target
4032 ac_save_IFS=$IFS; IFS='-'
4033 set x $ac_cv_target
4034 shift
4035 target_cpu=$1
4036 target_vendor=$2
4037 shift; shift
4038 # Remember, the first character of IFS is used to create $*,
4039 # except with old shells:
4040 target_os=$*
4041 IFS=$ac_save_IFS
4042 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4043
4044
4045 # The aliases save the names the user supplied, while $host etc.
4046 # will get canonicalized.
4047 test -n "$target_alias" &&
4048 test "$program_prefix$program_suffix$program_transform_name" = \
4049 NONENONEs,x,x, &&
4050 program_prefix=${target_alias}-
4051
4052 # The tests for host and target for $enable_largefile require
4053 # canonical names.
4054
4055
4056
4057 # As the $enable_largefile decision depends on --enable-plugins we must set it
4058 # even in directories otherwise not depending on the $plugins option.
4059
4060
4061 # Check whether --enable-plugins was given.
4062 if test "${enable_plugins+set}" = set; then :
4063 enableval=$enable_plugins; case "${enableval}" in
4064 yes | "") plugins=yes ;;
4065 no) plugins=no ;;
4066 *) plugins=yes ;;
4067 esac
4068 else
4069 plugins=no
4070 fi
4071
4072
4073
4074 case "${host}" in
4075 sparc-*-solaris*|i[3-7]86-*-solaris*)
4076 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4077 # are mutually exclusive; and without procfs support, the bfd/ elf module
4078 # cannot provide certain routines such as elfcore_write_prpsinfo
4079 # or elfcore_write_prstatus. So unless the user explicitly requested
4080 # large-file support through the --enable-largefile switch, disable
4081 # large-file support in favor of procfs support.
4082 test "${target}" = "${host}" -a "x$plugins" = xno \
4083 && : ${enable_largefile="no"}
4084 ;;
4085 esac
4086
4087 # Check whether --enable-largefile was given.
4088 if test "${enable_largefile+set}" = set; then :
4089 enableval=$enable_largefile;
4090 fi
4091
4092 if test "$enable_largefile" != no; then
4093
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4095 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4096 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 ac_cv_sys_largefile_CC=no
4100 if test "$GCC" != yes; then
4101 ac_save_CC=$CC
4102 while :; do
4103 # IRIX 6.2 and later do not support large files by default,
4104 # so use the C compiler's -n32 option if that helps.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 /* Check that off_t can represent 2**63 - 1 correctly.
4109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4110 since some C++ compilers masquerading as C compilers
4111 incorrectly reject 9223372036854775807. */
4112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4114 && LARGE_OFF_T % 2147483647 == 1)
4115 ? 1 : -1];
4116 int
4117 main ()
4118 {
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 break
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext
4128 CC="$CC -n32"
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_sys_largefile_CC=' -n32'; break
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext
4133 break
4134 done
4135 CC=$ac_save_CC
4136 rm -f conftest.$ac_ext
4137 fi
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4140 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4141 if test "$ac_cv_sys_largefile_CC" != no; then
4142 CC=$CC$ac_cv_sys_largefile_CC
4143 fi
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4146 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4147 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 while :; do
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 /* Check that off_t can represent 2**63 - 1 correctly.
4155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4156 since some C++ compilers masquerading as C compilers
4157 incorrectly reject 9223372036854775807. */
4158 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4160 && LARGE_OFF_T % 2147483647 == 1)
4161 ? 1 : -1];
4162 int
4163 main ()
4164 {
4165
4166 ;
4167 return 0;
4168 }
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_sys_file_offset_bits=no; break
4172 fi
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4176 #define _FILE_OFFSET_BITS 64
4177 #include <sys/types.h>
4178 /* Check that off_t can represent 2**63 - 1 correctly.
4179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4180 since some C++ compilers masquerading as C compilers
4181 incorrectly reject 9223372036854775807. */
4182 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4184 && LARGE_OFF_T % 2147483647 == 1)
4185 ? 1 : -1];
4186 int
4187 main ()
4188 {
4189
4190 ;
4191 return 0;
4192 }
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_cv_sys_file_offset_bits=64; break
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 ac_cv_sys_file_offset_bits=unknown
4199 break
4200 done
4201 fi
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4203 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4204 case $ac_cv_sys_file_offset_bits in #(
4205 no | unknown) ;;
4206 *)
4207 cat >>confdefs.h <<_ACEOF
4208 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4209 _ACEOF
4210 ;;
4211 esac
4212 rm -rf conftest*
4213 if test $ac_cv_sys_file_offset_bits = unknown; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4215 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4216 if test "${ac_cv_sys_large_files+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 while :; do
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <sys/types.h>
4223 /* Check that off_t can represent 2**63 - 1 correctly.
4224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4225 since some C++ compilers masquerading as C compilers
4226 incorrectly reject 9223372036854775807. */
4227 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4229 && LARGE_OFF_T % 2147483647 == 1)
4230 ? 1 : -1];
4231 int
4232 main ()
4233 {
4234
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_sys_large_files=no; break
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 #define _LARGE_FILES 1
4246 #include <sys/types.h>
4247 /* Check that off_t can represent 2**63 - 1 correctly.
4248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4249 since some C++ compilers masquerading as C compilers
4250 incorrectly reject 9223372036854775807. */
4251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4253 && LARGE_OFF_T % 2147483647 == 1)
4254 ? 1 : -1];
4255 int
4256 main ()
4257 {
4258
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_sys_large_files=1; break
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 ac_cv_sys_large_files=unknown
4268 break
4269 done
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4272 $as_echo "$ac_cv_sys_large_files" >&6; }
4273 case $ac_cv_sys_large_files in #(
4274 no | unknown) ;;
4275 *)
4276 cat >>confdefs.h <<_ACEOF
4277 #define _LARGE_FILES $ac_cv_sys_large_files
4278 _ACEOF
4279 ;;
4280 esac
4281 rm -rf conftest*
4282 fi
4283 fi
4284
4285
4286
4287
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4290 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4291 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 am_cv_prog_cc_stdc=no
4295 ac_save_CC="$CC"
4296 # Don't try gcc -ansi; that turns off useful extensions and
4297 # breaks some systems' header files.
4298 # AIX -qlanglvl=ansi
4299 # Ultrix and OSF/1 -std1
4300 # HP-UX 10.20 and later -Ae
4301 # HP-UX older versions -Aa -D_HPUX_SOURCE
4302 # SVR4 -Xc -D__EXTENSIONS__
4303 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4304 do
4305 CC="$ac_save_CC $ac_arg"
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <stdarg.h>
4309 #include <stdio.h>
4310 #include <sys/types.h>
4311 #include <sys/stat.h>
4312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4313 struct buf { int x; };
4314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4315 static char *e (p, i)
4316 char **p;
4317 int i;
4318 {
4319 return p[i];
4320 }
4321 static char *f (char * (*g) (char **, int), char **p, ...)
4322 {
4323 char *s;
4324 va_list v;
4325 va_start (v,p);
4326 s = g (p, va_arg (v,int));
4327 va_end (v);
4328 return s;
4329 }
4330 int test (int i, double x);
4331 struct s1 {int (*f) (int a);};
4332 struct s2 {int (*f) (double a);};
4333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4334 int argc;
4335 char **argv;
4336
4337 int
4338 main ()
4339 {
4340
4341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 am_cv_prog_cc_stdc="$ac_arg"; break
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 done
4352 CC="$ac_save_CC"
4353
4354 fi
4355
4356 if test -z "$am_cv_prog_cc_stdc"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4358 $as_echo "none needed" >&6; }
4359 else
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4361 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4362 fi
4363 case "x$am_cv_prog_cc_stdc" in
4364 x|xno) ;;
4365 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4366 esac
4367
4368
4369 ac_aux_dir=
4370 for ac_dir in .. "$srcdir"/..; do
4371 for ac_t in install-sh install.sh shtool; do
4372 if test -f "$ac_dir/$ac_t"; then
4373 ac_aux_dir=$ac_dir
4374 ac_install_sh="$ac_aux_dir/$ac_t -c"
4375 break 2
4376 fi
4377 done
4378 done
4379 if test -z "$ac_aux_dir"; then
4380 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4381 fi
4382
4383 # These three variables are undocumented and unsupported,
4384 # and are intended to be withdrawn in a future Autoconf release.
4385 # They can cause serious problems if a builder's source tree is in a directory
4386 # whose full name contains unusual characters.
4387 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4388 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4389 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4390
4391
4392
4393 test "$program_prefix" != NONE &&
4394 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4395 # Use a double $ so make ignores it.
4396 test "$program_suffix" != NONE &&
4397 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4398 # Double any \ or $.
4399 # By default was `s,x,x', remove it if useless.
4400 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4401 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4402
4403
4404 # Dependency checking.
4405 rm -rf .tst 2>/dev/null
4406 mkdir .tst 2>/dev/null
4407 if test -d .tst; then
4408 am__leading_dot=.
4409 else
4410 am__leading_dot=_
4411 fi
4412 rmdir .tst 2>/dev/null
4413
4414 DEPDIR="${am__leading_dot}deps"
4415
4416 ac_config_commands="$ac_config_commands depdir"
4417
4418
4419 depcc="$CC" am_compiler_list=
4420
4421 am_depcomp=$ac_aux_dir/depcomp
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4423 $as_echo_n "checking dependency style of $depcc... " >&6; }
4424 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 if test -f "$am_depcomp"; then
4428 # We make a subdir and do the tests there. Otherwise we can end up
4429 # making bogus files that we don't know about and never remove. For
4430 # instance it was reported that on HP-UX the gcc test will end up
4431 # making a dummy file named `D' -- because `-MD' means `put the output
4432 # in D'.
4433 mkdir conftest.dir
4434 # Copy depcomp to subdir because otherwise we won't find it if we're
4435 # using a relative directory.
4436 cp "$am_depcomp" conftest.dir
4437 cd conftest.dir
4438 # We will build objects and dependencies in a subdirectory because
4439 # it helps to detect inapplicable dependency modes. For instance
4440 # both Tru64's cc and ICC support -MD to output dependencies as a
4441 # side effect of compilation, but ICC will put the dependencies in
4442 # the current directory while Tru64 will put them in the object
4443 # directory.
4444 mkdir sub
4445
4446 am_cv_CC_dependencies_compiler_type=none
4447 if test "$am_compiler_list" = ""; then
4448 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4449 fi
4450 for depmode in $am_compiler_list; do
4451 if test $depmode = none; then break; fi
4452
4453 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4454 # Setup a source with many dependencies, because some compilers
4455 # like to wrap large dependency lists on column 80 (with \), and
4456 # we should not choose a depcomp mode which is confused by this.
4457 #
4458 # We need to recreate these files for each test, as the compiler may
4459 # overwrite some of them when testing with obscure command lines.
4460 # This happens at least with the AIX C compiler.
4461 : > sub/conftest.c
4462 for i in 1 2 3 4 5 6; do
4463 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4464 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4465 # Solaris 8's {/usr,}/bin/sh.
4466 touch sub/conftst$i.h
4467 done
4468 echo "include sub/conftest.Po" > confmf
4469
4470 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4471 # mode. It turns out that the SunPro C++ compiler does not properly
4472 # handle `-M -o', and we need to detect this.
4473 depcmd="depmode=$depmode \
4474 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4475 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4476 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4477 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4478 if env $depcmd > conftest.err 2>&1 &&
4479 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4480 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4481 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4482 # icc doesn't choke on unknown options, it will just issue warnings
4483 # or remarks (even with -Werror). So we grep stderr for any message
4484 # that says an option was ignored or not supported.
4485 # When given -MP, icc 7.0 and 7.1 complain thusly:
4486 # icc: Command line warning: ignoring option '-M'; no argument required
4487 # The diagnosis changed in icc 8.0:
4488 # icc: Command line remark: option '-MP' not supported
4489 if (grep 'ignoring option' conftest.err ||
4490 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4491 am_cv_CC_dependencies_compiler_type=$depmode
4492 $as_echo "$as_me:$LINENO: success" >&5
4493 break
4494 fi
4495 fi
4496 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4497 sed -e 's/^/| /' < conftest.err >&5
4498 done
4499
4500 cd ..
4501 rm -rf conftest.dir
4502 else
4503 am_cv_CC_dependencies_compiler_type=none
4504 fi
4505
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4508 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4509 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4510 then as_fn_error "no usable dependency style found" "$LINENO" 5
4511 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4512
4513 fi
4514
4515
4516 # Check for the 'make' the user wants to use.
4517 for ac_prog in make
4518 do
4519 # Extract the first word of "$ac_prog", so it can be a program name with args.
4520 set dummy $ac_prog; ac_word=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_MAKE+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 if test -n "$MAKE"; then
4527 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_MAKE="$ac_prog"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4539 fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544 fi
4545 fi
4546 MAKE=$ac_cv_prog_MAKE
4547 if test -n "$MAKE"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4549 $as_echo "$MAKE" >&6; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4553 fi
4554
4555
4556 test -n "$MAKE" && break
4557 done
4558
4559 MAKE_IS_GNU=
4560 case "`$MAKE --version 2>&1 | sed 1q`" in
4561 *GNU*)
4562 MAKE_IS_GNU=yes
4563 ;;
4564 esac
4565 if test "$MAKE_IS_GNU" = yes; then
4566 GMAKE_TRUE=
4567 GMAKE_FALSE='#'
4568 else
4569 GMAKE_TRUE='#'
4570 GMAKE_FALSE=
4571 fi
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4574 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4575 set x ${MAKE-make}
4576 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4577 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 cat >conftest.make <<\_ACEOF
4581 SHELL = /bin/sh
4582 all:
4583 @echo '@@@%%%=$(MAKE)=@@@%%%'
4584 _ACEOF
4585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4586 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4587 *@@@%%%=?*=@@@%%%*)
4588 eval ac_cv_prog_make_${ac_make}_set=yes;;
4589 *)
4590 eval ac_cv_prog_make_${ac_make}_set=no;;
4591 esac
4592 rm -f conftest.make
4593 fi
4594 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4596 $as_echo "yes" >&6; }
4597 SET_MAKE=
4598 else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 SET_MAKE="MAKE=${MAKE-make}"
4602 fi
4603
4604
4605 # Configure gnulib. We need to build gnulib under some other
4606 # directory not "gnulib", to avoid the problem of both GDB and
4607 # GDBserver wanting to build it in the same directory, when building
4608 # in the source dir.
4609
4610 in_src="gnulib"
4611 in_build="build-gnulib"
4612
4613 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4614 # so they do not pile up.
4615 ac_sub_configure_args=
4616 ac_prev=
4617 eval "set x $ac_configure_args"
4618 shift
4619 for ac_arg
4620 do
4621 if test -n "$ac_prev"; then
4622 ac_prev=
4623 continue
4624 fi
4625 case $ac_arg in
4626 -cache-file | --cache-file | --cache-fil | --cache-fi \
4627 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4628 ac_prev=cache_file ;;
4629 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4630 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4631 | --c=*)
4632 ;;
4633 --config-cache | -C)
4634 ;;
4635 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4636 ac_prev=srcdir ;;
4637 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4638 ;;
4639 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4640 ac_prev=prefix ;;
4641 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4642 ;;
4643 --disable-option-checking)
4644 ;;
4645 *)
4646 case $ac_arg in
4647 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4648 esac
4649 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4650 esac
4651 done
4652
4653 # Always prepend --prefix to ensure using the same prefix
4654 # in subdir configurations.
4655 ac_arg="--prefix=$prefix"
4656 case $ac_arg in
4657 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4658 esac
4659 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4660
4661 # Pass --silent
4662 if test "$silent" = yes; then
4663 ac_sub_configure_args="--silent $ac_sub_configure_args"
4664 fi
4665
4666 # Always prepend --disable-option-checking to silence warnings, since
4667 # different subdirs can have different --enable and --with options.
4668 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4669
4670 ac_popdir=`pwd`
4671 ac_dir=$in_build
4672
4673 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4675 $as_echo "$ac_msg" >&6
4676 as_dir="$ac_dir"; as_fn_mkdir_p
4677
4678 case $srcdir in
4679 [\\/]* | ?:[\\/]* )
4680 ac_srcdir=$srcdir/$in_src ;;
4681 *) # Relative name.
4682 ac_srcdir=../$srcdir/$in_src ;;
4683 esac
4684
4685 cd "$ac_dir"
4686
4687 ac_sub_configure=$ac_srcdir/configure
4688
4689 # Make the cache file name correct relative to the subdirectory.
4690 case $cache_file in
4691 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4692 *) # Relative name.
4693 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4694 esac
4695
4696 { $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
4697 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4698 # The eval makes quoting arguments work.
4699 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4700 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4701 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4702
4703 cd "$ac_popdir"
4704
4705
4706
4707 CONFIG_OBS=
4708 CONFIG_DEPS=
4709 CONFIG_SRCS=
4710 ENABLE_CFLAGS=
4711
4712 CONFIG_ALL=
4713 CONFIG_CLEAN=
4714 CONFIG_INSTALL=
4715 CONFIG_UNINSTALL=
4716
4717 # If we haven't got the data from the intl directory,
4718 # assume NLS is disabled.
4719 USE_NLS=no
4720 LIBINTL=
4721 LIBINTL_DEP=
4722 INCINTL=
4723 XGETTEXT=
4724 GMSGFMT=
4725 POSUB=
4726
4727 if test -f ../intl/config.intl; then
4728 . ../intl/config.intl
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4731 $as_echo_n "checking whether NLS is requested... " >&6; }
4732 if test x"$USE_NLS" != xyes; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4737 $as_echo "yes" >&6; }
4738
4739 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4740
4741
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4743 $as_echo_n "checking for catalogs to be installed... " >&6; }
4744 # Look for .po and .gmo files in the source directory.
4745 CATALOGS=
4746 XLINGUAS=
4747 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4748 # If there aren't any .gmo files the shell will give us the
4749 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4750 # weeded out.
4751 case "$cat" in *\**)
4752 continue;;
4753 esac
4754 # The quadruple backslash is collapsed to a double backslash
4755 # by the backticks, then collapsed again by the double quotes,
4756 # leaving us with one backslash in the sed expression (right
4757 # before the dot that mustn't act as a wildcard).
4758 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4759 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4760 # The user is allowed to set LINGUAS to a list of languages to
4761 # install catalogs for. If it's empty that means "all of them."
4762 if test "x$LINGUAS" = x; then
4763 CATALOGS="$CATALOGS $cat"
4764 XLINGUAS="$XLINGUAS $lang"
4765 else
4766 case "$LINGUAS" in *$lang*)
4767 CATALOGS="$CATALOGS $cat"
4768 XLINGUAS="$XLINGUAS $lang"
4769 ;;
4770 esac
4771 fi
4772 done
4773 LINGUAS="$XLINGUAS"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4775 $as_echo "$LINGUAS" >&6; }
4776
4777
4778 DATADIRNAME=share
4779
4780 INSTOBJEXT=.mo
4781
4782 GENCAT=gencat
4783
4784 CATOBJEXT=.gmo
4785
4786 fi
4787
4788 localedir='${datadir}/locale'
4789
4790
4791 if test x"$USE_NLS" = xyes; then
4792 CONFIG_ALL="$CONFIG_ALL all-po"
4793 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4794 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4795 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4796 fi
4797
4798 GNULIB=build-gnulib/import
4799
4800 # For Makefile dependencies.
4801 GNULIB_STDINT_H=
4802 if test x"$STDINT_H" != x; then
4803 GNULIB_STDINT_H=$GNULIB/$STDINT_H
4804 fi
4805
4806
4807 PACKAGE=gdb
4808
4809 cat >>confdefs.h <<_ACEOF
4810 #define PACKAGE "$PACKAGE"
4811 _ACEOF
4812
4813
4814
4815 # We never need to detect it in this sub-configure.
4816 # But preserve it for config.status --recheck.
4817
4818
4819
4820 MAKEINFO_EXTRA_FLAGS=""
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4822 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4823 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4827 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4828 gdb_cv_have_makeinfo_click=yes
4829 else
4830 gdb_cv_have_makeinfo_click=no
4831 fi
4832 fi
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4834 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4835 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4836 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4837 fi
4838
4839
4840
4841
4842 # Check whether --with-separate-debug-dir was given.
4843 if test "${with_separate_debug_dir+set}" = set; then :
4844 withval=$with_separate_debug_dir;
4845 DEBUGDIR=$withval
4846 else
4847 DEBUGDIR=${libdir}/debug
4848 fi
4849
4850
4851 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4852 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4853 ac_define_dir=`eval echo $DEBUGDIR`
4854 ac_define_dir=`eval echo $ac_define_dir`
4855
4856 cat >>confdefs.h <<_ACEOF
4857 #define DEBUGDIR "$ac_define_dir"
4858 _ACEOF
4859
4860
4861
4862
4863 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4864 if test "x$prefix" = xNONE; then
4865 test_prefix=/usr/local
4866 else
4867 test_prefix=$prefix
4868 fi
4869 else
4870 test_prefix=$exec_prefix
4871 fi
4872 value=0
4873 case ${ac_define_dir} in
4874 "${test_prefix}"|"${test_prefix}/"*|\
4875 '${exec_prefix}'|'${exec_prefix}/'*)
4876 value=1
4877 ;;
4878 esac
4879
4880 cat >>confdefs.h <<_ACEOF
4881 #define DEBUGDIR_RELOCATABLE $value
4882 _ACEOF
4883
4884
4885
4886
4887 # We can't pass paths as command line arguments.
4888 # Mingw32 tries to be clever and will convert the paths for us.
4889 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4890 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4891 # This breaks GDB's relocatable path conversions since paths passed in
4892 # config.h would not get so translated, the path prefixes no longer match.
4893
4894 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4895 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4896 ac_define_dir=`eval echo $bindir`
4897 ac_define_dir=`eval echo $ac_define_dir`
4898
4899 cat >>confdefs.h <<_ACEOF
4900 #define BINDIR "$ac_define_dir"
4901 _ACEOF
4902
4903
4904
4905 # GDB's datadir relocation
4906
4907
4908
4909 # Check whether --with-gdb-datadir was given.
4910 if test "${with_gdb_datadir+set}" = set; then :
4911 withval=$with_gdb_datadir;
4912 GDB_DATADIR=$withval
4913 else
4914 GDB_DATADIR=${datadir}/gdb
4915 fi
4916
4917
4918 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4920 ac_define_dir=`eval echo $GDB_DATADIR`
4921 ac_define_dir=`eval echo $ac_define_dir`
4922
4923 cat >>confdefs.h <<_ACEOF
4924 #define GDB_DATADIR "$ac_define_dir"
4925 _ACEOF
4926
4927
4928
4929
4930 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4931 if test "x$prefix" = xNONE; then
4932 test_prefix=/usr/local
4933 else
4934 test_prefix=$prefix
4935 fi
4936 else
4937 test_prefix=$exec_prefix
4938 fi
4939 value=0
4940 case ${ac_define_dir} in
4941 "${test_prefix}"|"${test_prefix}/"*|\
4942 '${exec_prefix}'|'${exec_prefix}/'*)
4943 value=1
4944 ;;
4945 esac
4946
4947 cat >>confdefs.h <<_ACEOF
4948 #define GDB_DATADIR_RELOCATABLE $value
4949 _ACEOF
4950
4951
4952
4953
4954
4955 # Check whether --with-relocated-sources was given.
4956 if test "${with_relocated_sources+set}" = set; then :
4957 withval=$with_relocated_sources; reloc_srcdir="${withval}"
4958
4959 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4961 ac_define_dir=`eval echo $reloc_srcdir`
4962 ac_define_dir=`eval echo $ac_define_dir`
4963
4964 cat >>confdefs.h <<_ACEOF
4965 #define RELOC_SRCDIR "$ac_define_dir"
4966 _ACEOF
4967
4968
4969
4970 fi
4971
4972
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
4974 $as_echo_n "checking for default auto-load directory... " >&6; }
4975
4976 # Check whether --with-auto-load-dir was given.
4977 if test "${with_auto_load_dir+set}" = set; then :
4978 withval=$with_auto_load_dir;
4979 else
4980 with_auto_load_dir='$debugdir:$datadir/auto-load'
4981 fi
4982
4983 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
4984
4985 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4987 ac_define_dir=`eval echo $escape_dir`
4988 ac_define_dir=`eval echo $ac_define_dir`
4989
4990 cat >>confdefs.h <<_ACEOF
4991 #define AUTO_LOAD_DIR "$ac_define_dir"
4992 _ACEOF
4993
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
4996 $as_echo "$with_auto_load_dir" >&6; }
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
4999 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5000
5001 # Check whether --with-auto-load-safe-path was given.
5002 if test "${with_auto_load_safe_path+set}" = set; then :
5003 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5004 with_auto_load_safe_path="/"
5005 fi
5006 else
5007 with_auto_load_safe_path="$with_auto_load_dir"
5008 fi
5009
5010 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5011
5012 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5014 ac_define_dir=`eval echo $escape_dir`
5015 ac_define_dir=`eval echo $ac_define_dir`
5016
5017 cat >>confdefs.h <<_ACEOF
5018 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5019 _ACEOF
5020
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5023 $as_echo "$with_auto_load_safe_path" >&6; }
5024
5025
5026
5027 subdirs="$subdirs testsuite"
5028
5029
5030 # Check whether to support alternative target configurations
5031 # Check whether --enable-targets was given.
5032 if test "${enable_targets+set}" = set; then :
5033 enableval=$enable_targets; case "${enableval}" in
5034 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5035 ;;
5036 no) enable_targets= ;;
5037 *) enable_targets=$enableval ;;
5038 esac
5039 fi
5040
5041
5042 # Check whether to enable 64-bit support on 32-bit hosts
5043 # Check whether --enable-64-bit-bfd was given.
5044 if test "${enable_64_bit_bfd+set}" = set; then :
5045 enableval=$enable_64_bit_bfd; case "${enableval}" in
5046 yes) want64=true ;;
5047 no) want64=false ;;
5048 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5049 esac
5050 else
5051 want64=false
5052 fi
5053
5054 # Provide defaults for some variables set by the per-host and per-target
5055 # configuration.
5056 gdb_host_obs=posix-hdep.o
5057
5058 if test "${target}" = "${host}"; then
5059 gdb_native=yes
5060 else
5061 gdb_native=no
5062 fi
5063
5064 . $srcdir/configure.host
5065
5066 # Accumulate some settings from configure.tgt over all enabled targets
5067
5068 TARGET_OBS=
5069 all_targets=
5070
5071 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5072 do
5073 if test "$targ_alias" = "all"; then
5074 all_targets=true
5075 else
5076 # Canonicalize the secondary target names.
5077 result=`$ac_config_sub $targ_alias 2>/dev/null`
5078 if test -n "$result"; then
5079 targ=$result
5080 else
5081 targ=$targ_alias
5082 fi
5083
5084 . ${srcdir}/configure.tgt
5085
5086 if test -z "${gdb_target_obs}"; then :
5087 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5088 fi
5089
5090 # Target-specific object files
5091 for i in ${gdb_target_obs}; do
5092 case " $TARGET_OBS " in
5093 *" ${i} "*) ;;
5094 *)
5095 TARGET_OBS="$TARGET_OBS ${i}"
5096 ;;
5097 esac
5098 done
5099
5100 # Check whether this target needs 64-bit CORE_ADDR
5101 if test x${want64} = xfalse; then
5102 . ${srcdir}/../bfd/config.bfd
5103 fi
5104 fi
5105 done
5106
5107 if test x${all_targets} = xtrue; then
5108
5109 # We want all 64-bit targets if we either:
5110 # - run on a 64-bit host or
5111 # - already require 64-bit support for some other target or
5112 # - the --enable-64-bit-bfd option was supplied
5113 # Otherwise we only support all 32-bit targets.
5114 #
5115 # NOTE: This test must be in sync with the corresponding
5116 # tests in BFD!
5117
5118 if test x${want64} = xfalse; then
5119 # The cast to long int works around a bug in the HP C Compiler
5120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5122 # This bug is HP SR number 8606223364.
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5124 $as_echo_n "checking size of long... " >&6; }
5125 if test "${ac_cv_sizeof_long+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5129
5130 else
5131 if test "$ac_cv_type_long" = yes; then
5132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5134 { as_fn_set_status 77
5135 as_fn_error "cannot compute sizeof (long)
5136 See \`config.log' for more details." "$LINENO" 5; }; }
5137 else
5138 ac_cv_sizeof_long=0
5139 fi
5140 fi
5141
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5144 $as_echo "$ac_cv_sizeof_long" >&6; }
5145
5146
5147
5148 cat >>confdefs.h <<_ACEOF
5149 #define SIZEOF_LONG $ac_cv_sizeof_long
5150 _ACEOF
5151
5152
5153 if test "x${ac_cv_sizeof_long}" = "x8"; then
5154 want64=true
5155 fi
5156 fi
5157 if test x${want64} = xtrue; then
5158 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5159 else
5160 TARGET_OBS='$(ALL_TARGET_OBS)'
5161 fi
5162 fi
5163
5164
5165
5166 # For other settings, only the main target counts.
5167 gdb_sim=
5168 gdb_osabi=
5169 build_gdbserver=
5170 targ=$target; . ${srcdir}/configure.tgt
5171
5172 # Fetch the default architecture and default target vector from BFD.
5173 targ=$target; . $srcdir/../bfd/config.bfd
5174
5175 # We only want the first architecture, so strip off the others if
5176 # there is more than one.
5177 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5178
5179 if test "x$targ_archs" != x; then
5180
5181 cat >>confdefs.h <<_ACEOF
5182 #define DEFAULT_BFD_ARCH $targ_archs
5183 _ACEOF
5184
5185 fi
5186 if test "x$targ_defvec" != x; then
5187
5188 cat >>confdefs.h <<_ACEOF
5189 #define DEFAULT_BFD_VEC $targ_defvec
5190 _ACEOF
5191
5192 fi
5193
5194 # The CLI cannot be disabled yet, but may be in the future.
5195
5196 # Enable CLI.
5197 # Check whether --enable-gdbcli was given.
5198 if test "${enable_gdbcli+set}" = set; then :
5199 enableval=$enable_gdbcli; case $enableval in
5200 yes)
5201 ;;
5202 no)
5203 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5204 *)
5205 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5206 esac
5207 else
5208 enable_gdbcli=yes
5209 fi
5210
5211 if test x"$enable_gdbcli" = xyes; then
5212 if test -d $srcdir/cli; then
5213 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5214 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5215 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5216 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5217 fi
5218 fi
5219
5220 # Enable MI.
5221 # Check whether --enable-gdbmi was given.
5222 if test "${enable_gdbmi+set}" = set; then :
5223 enableval=$enable_gdbmi; case $enableval in
5224 yes | no)
5225 ;;
5226 *)
5227 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5228 esac
5229 else
5230 enable_gdbmi=yes
5231 fi
5232
5233 if test x"$enable_gdbmi" = xyes; then
5234 if test -d $srcdir/mi; then
5235 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5236 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5237 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5238 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5239 fi
5240 fi
5241
5242 # Enable TUI.
5243 # Check whether --enable-tui was given.
5244 if test "${enable_tui+set}" = set; then :
5245 enableval=$enable_tui; case $enableval in
5246 yes | no | auto)
5247 ;;
5248 *)
5249 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5250 esac
5251 else
5252 enable_tui=auto
5253 fi
5254
5255
5256 # Enable gdbtk.
5257 # Check whether --enable-gdbtk was given.
5258 if test "${enable_gdbtk+set}" = set; then :
5259 enableval=$enable_gdbtk; case $enableval in
5260 yes | no)
5261 ;;
5262 *)
5263 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5264 esac
5265 else
5266 if test -d $srcdir/gdbtk; then
5267 enable_gdbtk=yes
5268 else
5269 enable_gdbtk=no
5270 fi
5271 fi
5272
5273 # We unconditionally disable gdbtk tests on selected platforms.
5274 case $host_os in
5275 go32* | windows*)
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5277 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5278 enable_gdbtk=no ;;
5279 esac
5280
5281 # Libunwind support for ia64.
5282
5283
5284 # Check whether --with-libunwind-ia64 was given.
5285 if test "${with_libunwind_ia64+set}" = set; then :
5286 withval=$with_libunwind_ia64;
5287 else
5288 with_libunwind_ia64=auto
5289 fi
5290
5291
5292 # Backward compatibility option.
5293 if test "${with_libunwind+set}" = set; then
5294 if test x"$with_libunwind_ia64" != xauto; then
5295 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5298 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5299 with_libunwind_ia64="$with_libunwind"
5300 fi
5301
5302 case "$with_libunwind_ia64" in
5303 yes | no)
5304 ;;
5305 auto)
5306 for ac_header in libunwind-ia64.h
5307 do :
5308 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5309 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5310 cat >>confdefs.h <<_ACEOF
5311 #define HAVE_LIBUNWIND_IA64_H 1
5312 _ACEOF
5313
5314 fi
5315
5316 done
5317
5318 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5319 ;;
5320 *)
5321 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5322 ;;
5323 esac
5324
5325 if test x"$with_libunwind_ia64" = xyes; then
5326 for ac_header in libunwind-ia64.h
5327 do :
5328 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5329 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5330 cat >>confdefs.h <<_ACEOF
5331 #define HAVE_LIBUNWIND_IA64_H 1
5332 _ACEOF
5333
5334 fi
5335
5336 done
5337
5338 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5339 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5340 fi
5341 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5342 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5343 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5344 fi
5345
5346 opt_curses=no
5347
5348 # Check whether --with-curses was given.
5349 if test "${with_curses+set}" = set; then :
5350 withval=$with_curses; opt_curses=$withval
5351 fi
5352
5353
5354 prefer_curses=no
5355 if test "$opt_curses" = "yes"; then
5356 prefer_curses=yes
5357 fi
5358
5359 # Profiling support.
5360 # Check whether --enable-profiling was given.
5361 if test "${enable_profiling+set}" = set; then :
5362 enableval=$enable_profiling; case $enableval in
5363 yes | no)
5364 ;;
5365 *)
5366 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5367 esac
5368 else
5369 enable_profiling=no
5370 fi
5371
5372
5373 for ac_func in monstartup _mcleanup
5374 do :
5375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5376 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5377 eval as_val=\$$as_ac_var
5378 if test "x$as_val" = x""yes; then :
5379 cat >>confdefs.h <<_ACEOF
5380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5381 _ACEOF
5382
5383 fi
5384 done
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5387 $as_echo_n "checking for _etext... " >&6; }
5388 if test "${ac_cv_var__etext+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 #include <stdlib.h>
5394 extern char _etext;
5395
5396 int
5397 main ()
5398 {
5399 free (&_etext);
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 if ac_fn_c_try_link "$LINENO"; then :
5405 ac_cv_var__etext=yes
5406 else
5407 ac_cv_var__etext=no
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext \
5410 conftest$ac_exeext conftest.$ac_ext
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5413 $as_echo "$ac_cv_var__etext" >&6; }
5414 if test $ac_cv_var__etext = yes; then
5415
5416 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5417
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5420 $as_echo_n "checking for etext... " >&6; }
5421 if test "${ac_cv_var_etext+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #include <stdlib.h>
5427 extern char etext;
5428
5429 int
5430 main ()
5431 {
5432 free (&etext);
5433 ;
5434 return 0;
5435 }
5436 _ACEOF
5437 if ac_fn_c_try_link "$LINENO"; then :
5438 ac_cv_var_etext=yes
5439 else
5440 ac_cv_var_etext=no
5441 fi
5442 rm -f core conftest.err conftest.$ac_objext \
5443 conftest$ac_exeext conftest.$ac_ext
5444 fi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5446 $as_echo "$ac_cv_var_etext" >&6; }
5447 if test $ac_cv_var_etext = yes; then
5448
5449 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5450
5451 fi
5452 if test "$enable_profiling" = yes ; then
5453 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5454 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5455 fi
5456 PROFILE_CFLAGS=-pg
5457 OLD_CFLAGS="$CFLAGS"
5458 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5461 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5462 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467
5468 int
5469 main ()
5470 {
5471 int x;
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_cc_supports_pg=yes
5478 else
5479 ac_cv_cc_supports_pg=no
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5484 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5485
5486 if test $ac_cv_cc_supports_pg = no; then
5487 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5488 fi
5489
5490 CFLAGS="$OLD_CFLAGS"
5491 fi
5492
5493
5494
5495 # Check whether --with-pkgversion was given.
5496 if test "${with_pkgversion+set}" = set; then :
5497 withval=$with_pkgversion; case "$withval" in
5498 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5499 no) PKGVERSION= ;;
5500 *) PKGVERSION="($withval) " ;;
5501 esac
5502 else
5503 PKGVERSION="(GDB) "
5504
5505 fi
5506
5507
5508
5509
5510
5511 # Check whether --with-bugurl was given.
5512 if test "${with_bugurl+set}" = set; then :
5513 withval=$with_bugurl; case "$withval" in
5514 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5515 no) BUGURL=
5516 ;;
5517 *) BUGURL="$withval"
5518 ;;
5519 esac
5520 else
5521 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5522
5523 fi
5524
5525 case ${BUGURL} in
5526 "")
5527 REPORT_BUGS_TO=
5528 REPORT_BUGS_TEXI=
5529 ;;
5530 *)
5531 REPORT_BUGS_TO="<$BUGURL>"
5532 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5533 ;;
5534 esac;
5535
5536
5537
5538
5539 cat >>confdefs.h <<_ACEOF
5540 #define PKGVERSION "$PKGVERSION"
5541 _ACEOF
5542
5543
5544 cat >>confdefs.h <<_ACEOF
5545 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5546 _ACEOF
5547
5548
5549 # --------------------- #
5550 # Checks for programs. #
5551 # --------------------- #
5552
5553 for ac_prog in gawk mawk nawk awk
5554 do
5555 # Extract the first word of "$ac_prog", so it can be a program name with args.
5556 set dummy $ac_prog; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if test "${ac_cv_prog_AWK+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test -n "$AWK"; then
5563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_AWK="$ac_prog"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5575 fi
5576 done
5577 done
5578 IFS=$as_save_IFS
5579
5580 fi
5581 fi
5582 AWK=$ac_cv_prog_AWK
5583 if test -n "$AWK"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5585 $as_echo "$AWK" >&6; }
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 fi
5590
5591
5592 test -n "$AWK" && break
5593 done
5594
5595 # Find a good install program. We prefer a C program (faster),
5596 # so one script is as good as another. But avoid the broken or
5597 # incompatible versions:
5598 # SysV /etc/install, /usr/sbin/install
5599 # SunOS /usr/etc/install
5600 # IRIX /sbin/install
5601 # AIX /bin/install
5602 # AmigaOS /C/install, which installs bootblocks on floppy discs
5603 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5604 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5605 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5606 # OS/2's system install, which has a completely different semantic
5607 # ./install, which can be erroneously created by make from ./install.sh.
5608 # Reject install programs that cannot install multiple files.
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5610 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5611 if test -z "$INSTALL"; then
5612 if test "${ac_cv_path_install+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 # Account for people who put trailing slashes in PATH elements.
5621 case $as_dir/ in #((
5622 ./ | .// | /[cC]/* | \
5623 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5624 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5625 /usr/ucb/* ) ;;
5626 *)
5627 # OSF1 and SCO ODT 3.0 have their own names for install.
5628 # Don't use installbsd from OSF since it installs stuff as root
5629 # by default.
5630 for ac_prog in ginstall scoinst install; do
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5633 if test $ac_prog = install &&
5634 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5635 # AIX install. It has an incompatible calling convention.
5636 :
5637 elif test $ac_prog = install &&
5638 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5639 # program-specific install script used by HP pwplus--don't use.
5640 :
5641 else
5642 rm -rf conftest.one conftest.two conftest.dir
5643 echo one > conftest.one
5644 echo two > conftest.two
5645 mkdir conftest.dir
5646 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5647 test -s conftest.one && test -s conftest.two &&
5648 test -s conftest.dir/conftest.one &&
5649 test -s conftest.dir/conftest.two
5650 then
5651 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5652 break 3
5653 fi
5654 fi
5655 fi
5656 done
5657 done
5658 ;;
5659 esac
5660
5661 done
5662 IFS=$as_save_IFS
5663
5664 rm -rf conftest.one conftest.two conftest.dir
5665
5666 fi
5667 if test "${ac_cv_path_install+set}" = set; then
5668 INSTALL=$ac_cv_path_install
5669 else
5670 # As a last resort, use the slow shell script. Don't cache a
5671 # value for INSTALL within a source directory, because that will
5672 # break other packages using the cache if that directory is
5673 # removed, or if the value is a relative name.
5674 INSTALL=$ac_install_sh
5675 fi
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5678 $as_echo "$INSTALL" >&6; }
5679
5680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5681 # It thinks the first close brace ends the variable substitution.
5682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5683
5684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5685
5686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5689 $as_echo_n "checking whether ln -s works... " >&6; }
5690 LN_S=$as_ln_s
5691 if test "$LN_S" = "ln -s"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 $as_echo "yes" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5696 $as_echo "no, using $LN_S" >&6; }
5697 fi
5698
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$RANLIB"; then
5708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 RANLIB=$ac_cv_prog_RANLIB
5728 if test -n "$RANLIB"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5730 $as_echo "$RANLIB" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737 fi
5738 if test -z "$ac_cv_prog_RANLIB"; then
5739 ac_ct_RANLIB=$RANLIB
5740 # Extract the first word of "ranlib", so it can be a program name with args.
5741 set dummy ranlib; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$ac_ct_RANLIB"; then
5748 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_prog_ac_ct_RANLIB="ranlib"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5764
5765 fi
5766 fi
5767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5768 if test -n "$ac_ct_RANLIB"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5770 $as_echo "$ac_ct_RANLIB" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776 if test "x$ac_ct_RANLIB" = x; then
5777 RANLIB=":"
5778 else
5779 case $cross_compiling:$ac_tool_warned in
5780 yes:)
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned=yes ;;
5784 esac
5785 RANLIB=$ac_ct_RANLIB
5786 fi
5787 else
5788 RANLIB="$ac_cv_prog_RANLIB"
5789 fi
5790
5791 for ac_prog in 'bison -y' byacc
5792 do
5793 # Extract the first word of "$ac_prog", so it can be a program name with args.
5794 set dummy $ac_prog; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if test "${ac_cv_prog_YACC+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$YACC"; then
5801 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_YACC="$ac_prog"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 YACC=$ac_cv_prog_YACC
5821 if test -n "$YACC"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5823 $as_echo "$YACC" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829
5830 test -n "$YACC" && break
5831 done
5832 test -n "$YACC" || YACC="yacc"
5833
5834
5835 if test -n "$ac_tool_prefix"; then
5836 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5837 set dummy ${ac_tool_prefix}ar; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if test "${ac_cv_prog_AR+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if test -n "$AR"; then
5844 ac_cv_prog_AR="$AR" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_prog_AR="${ac_tool_prefix}ar"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 AR=$ac_cv_prog_AR
5864 if test -n "$AR"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5866 $as_echo "$AR" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872
5873 fi
5874 if test -z "$ac_cv_prog_AR"; then
5875 ac_ct_AR=$AR
5876 # Extract the first word of "ar", so it can be a program name with args.
5877 set dummy ar; ac_word=$2
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5879 $as_echo_n "checking for $ac_word... " >&6; }
5880 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 if test -n "$ac_ct_AR"; then
5884 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5885 else
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_prog_ac_ct_AR="ar"
5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901 fi
5902 fi
5903 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5904 if test -n "$ac_ct_AR"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5906 $as_echo "$ac_ct_AR" >&6; }
5907 else
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5910 fi
5911
5912 if test "x$ac_ct_AR" = x; then
5913 AR=""
5914 else
5915 case $cross_compiling:$ac_tool_warned in
5916 yes:)
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5919 ac_tool_warned=yes ;;
5920 esac
5921 AR=$ac_ct_AR
5922 fi
5923 else
5924 AR="$ac_cv_prog_AR"
5925 fi
5926
5927 if test -n "$ac_tool_prefix"; then
5928 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 if test -n "$DLLTOOL"; then
5936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 break 2
5948 fi
5949 done
5950 done
5951 IFS=$as_save_IFS
5952
5953 fi
5954 fi
5955 DLLTOOL=$ac_cv_prog_DLLTOOL
5956 if test -n "$DLLTOOL"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5958 $as_echo "$DLLTOOL" >&6; }
5959 else
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5962 fi
5963
5964
5965 fi
5966 if test -z "$ac_cv_prog_DLLTOOL"; then
5967 ac_ct_DLLTOOL=$DLLTOOL
5968 # Extract the first word of "dlltool", so it can be a program name with args.
5969 set dummy dlltool; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -n "$ac_ct_DLLTOOL"; then
5976 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5996 if test -n "$ac_ct_DLLTOOL"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5998 $as_echo "$ac_ct_DLLTOOL" >&6; }
5999 else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003
6004 if test "x$ac_ct_DLLTOOL" = x; then
6005 DLLTOOL=""
6006 else
6007 case $cross_compiling:$ac_tool_warned in
6008 yes:)
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6011 ac_tool_warned=yes ;;
6012 esac
6013 DLLTOOL=$ac_ct_DLLTOOL
6014 fi
6015 else
6016 DLLTOOL="$ac_cv_prog_DLLTOOL"
6017 fi
6018
6019 if test -n "$ac_tool_prefix"; then
6020 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6021 set dummy ${ac_tool_prefix}windres; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -n "$WINDRES"; then
6028 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041 done
6042 done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 WINDRES=$ac_cv_prog_WINDRES
6048 if test -n "$WINDRES"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6050 $as_echo "$WINDRES" >&6; }
6051 else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6054 fi
6055
6056
6057 fi
6058 if test -z "$ac_cv_prog_WINDRES"; then
6059 ac_ct_WINDRES=$WINDRES
6060 # Extract the first word of "windres", so it can be a program name with args.
6061 set dummy windres; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$ac_ct_WINDRES"; then
6068 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_ac_ct_WINDRES="windres"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6080 fi
6081 done
6082 done
6083 IFS=$as_save_IFS
6084
6085 fi
6086 fi
6087 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6088 if test -n "$ac_ct_WINDRES"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6090 $as_echo "$ac_ct_WINDRES" >&6; }
6091 else
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095
6096 if test "x$ac_ct_WINDRES" = x; then
6097 WINDRES=""
6098 else
6099 case $cross_compiling:$ac_tool_warned in
6100 yes:)
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned=yes ;;
6104 esac
6105 WINDRES=$ac_ct_WINDRES
6106 fi
6107 else
6108 WINDRES="$ac_cv_prog_WINDRES"
6109 fi
6110
6111
6112 # Needed for GNU/Hurd.
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}mig; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if test "${ac_cv_prog_MIG+set}" = set; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$MIG"; then
6122 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 MIG=$ac_cv_prog_MIG
6142 if test -n "$MIG"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6144 $as_echo "$MIG" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150
6151 fi
6152 if test -z "$ac_cv_prog_MIG"; then
6153 ac_ct_MIG=$MIG
6154 # Extract the first word of "mig", so it can be a program name with args.
6155 set dummy mig; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$ac_ct_MIG"; then
6162 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_MIG="mig"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6182 if test -n "$ac_ct_MIG"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6184 $as_echo "$ac_ct_MIG" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6189
6190 if test "x$ac_ct_MIG" = x; then
6191 MIG=""
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199 MIG=$ac_ct_MIG
6200 fi
6201 else
6202 MIG="$ac_cv_prog_MIG"
6203 fi
6204
6205
6206 # ---------------------- #
6207 # Checks for libraries. #
6208 # ---------------------- #
6209
6210 # We might need to link with -lm; most simulators need it.
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6212 $as_echo_n "checking for main in -lm... " >&6; }
6213 if test "${ac_cv_lib_m_main+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 ac_check_lib_save_LIBS=$LIBS
6217 LIBS="-lm $LIBS"
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220
6221
6222 int
6223 main ()
6224 {
6225 return main ();
6226 ;
6227 return 0;
6228 }
6229 _ACEOF
6230 if ac_fn_c_try_link "$LINENO"; then :
6231 ac_cv_lib_m_main=yes
6232 else
6233 ac_cv_lib_m_main=no
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext \
6236 conftest$ac_exeext conftest.$ac_ext
6237 LIBS=$ac_check_lib_save_LIBS
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6240 $as_echo "$ac_cv_lib_m_main" >&6; }
6241 if test "x$ac_cv_lib_m_main" = x""yes; then :
6242 cat >>confdefs.h <<_ACEOF
6243 #define HAVE_LIBM 1
6244 _ACEOF
6245
6246 LIBS="-lm $LIBS"
6247
6248 fi
6249
6250
6251 # We need to link with -lw to get `wctype' on Solaris before Solaris
6252 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6253 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6254 # is known to have this problem). Therefore we avoid libw if we can.
6255 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6256 if test "x$ac_cv_func_wctype" = x""yes; then :
6257
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6260 $as_echo_n "checking for wctype in -lw... " >&6; }
6261 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 ac_check_lib_save_LIBS=$LIBS
6265 LIBS="-lw $LIBS"
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268
6269 /* Override any GCC internal prototype to avoid an error.
6270 Use char because int might match the return type of a GCC
6271 builtin and then its argument prototype would still apply. */
6272 #ifdef __cplusplus
6273 extern "C"
6274 #endif
6275 char wctype ();
6276 int
6277 main ()
6278 {
6279 return wctype ();
6280 ;
6281 return 0;
6282 }
6283 _ACEOF
6284 if ac_fn_c_try_link "$LINENO"; then :
6285 ac_cv_lib_w_wctype=yes
6286 else
6287 ac_cv_lib_w_wctype=no
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext \
6290 conftest$ac_exeext conftest.$ac_ext
6291 LIBS=$ac_check_lib_save_LIBS
6292 fi
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6294 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6295 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6296 cat >>confdefs.h <<_ACEOF
6297 #define HAVE_LIBW 1
6298 _ACEOF
6299
6300 LIBS="-lw $LIBS"
6301
6302 fi
6303
6304 fi
6305
6306
6307 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6309 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6310 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 ac_func_search_save_LIBS=$LIBS
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316
6317 /* Override any GCC internal prototype to avoid an error.
6318 Use char because int might match the return type of a GCC
6319 builtin and then its argument prototype would still apply. */
6320 #ifdef __cplusplus
6321 extern "C"
6322 #endif
6323 char gethostbyname ();
6324 int
6325 main ()
6326 {
6327 return gethostbyname ();
6328 ;
6329 return 0;
6330 }
6331 _ACEOF
6332 for ac_lib in '' nsl; do
6333 if test -z "$ac_lib"; then
6334 ac_res="none required"
6335 else
6336 ac_res=-l$ac_lib
6337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6338 fi
6339 if ac_fn_c_try_link "$LINENO"; then :
6340 ac_cv_search_gethostbyname=$ac_res
6341 fi
6342 rm -f core conftest.err conftest.$ac_objext \
6343 conftest$ac_exeext
6344 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6345 break
6346 fi
6347 done
6348 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6349
6350 else
6351 ac_cv_search_gethostbyname=no
6352 fi
6353 rm conftest.$ac_ext
6354 LIBS=$ac_func_search_save_LIBS
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6357 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6358 ac_res=$ac_cv_search_gethostbyname
6359 if test "$ac_res" != no; then :
6360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6361
6362 fi
6363
6364
6365 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6367 $as_echo_n "checking for library containing socketpair... " >&6; }
6368 if test "${ac_cv_search_socketpair+set}" = set; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 ac_func_search_save_LIBS=$LIBS
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374
6375 /* Override any GCC internal prototype to avoid an error.
6376 Use char because int might match the return type of a GCC
6377 builtin and then its argument prototype would still apply. */
6378 #ifdef __cplusplus
6379 extern "C"
6380 #endif
6381 char socketpair ();
6382 int
6383 main ()
6384 {
6385 return socketpair ();
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 for ac_lib in '' socket; do
6391 if test -z "$ac_lib"; then
6392 ac_res="none required"
6393 else
6394 ac_res=-l$ac_lib
6395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6396 fi
6397 if ac_fn_c_try_link "$LINENO"; then :
6398 ac_cv_search_socketpair=$ac_res
6399 fi
6400 rm -f core conftest.err conftest.$ac_objext \
6401 conftest$ac_exeext
6402 if test "${ac_cv_search_socketpair+set}" = set; then :
6403 break
6404 fi
6405 done
6406 if test "${ac_cv_search_socketpair+set}" = set; then :
6407
6408 else
6409 ac_cv_search_socketpair=no
6410 fi
6411 rm conftest.$ac_ext
6412 LIBS=$ac_func_search_save_LIBS
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6415 $as_echo "$ac_cv_search_socketpair" >&6; }
6416 ac_res=$ac_cv_search_socketpair
6417 if test "$ac_res" != no; then :
6418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6419
6420 fi
6421
6422
6423 # Link in zlib if we can. This allows us to read compressed debug sections.
6424
6425 # See if the user specified whether he wants zlib support or not.
6426
6427 # Check whether --with-zlib was given.
6428 if test "${with_zlib+set}" = set; then :
6429 withval=$with_zlib;
6430 else
6431 with_zlib=auto
6432 fi
6433
6434
6435 if test "$with_zlib" != "no"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6437 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6438 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 ac_func_search_save_LIBS=$LIBS
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444
6445 /* Override any GCC internal prototype to avoid an error.
6446 Use char because int might match the return type of a GCC
6447 builtin and then its argument prototype would still apply. */
6448 #ifdef __cplusplus
6449 extern "C"
6450 #endif
6451 char zlibVersion ();
6452 int
6453 main ()
6454 {
6455 return zlibVersion ();
6456 ;
6457 return 0;
6458 }
6459 _ACEOF
6460 for ac_lib in '' z; do
6461 if test -z "$ac_lib"; then
6462 ac_res="none required"
6463 else
6464 ac_res=-l$ac_lib
6465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6466 fi
6467 if ac_fn_c_try_link "$LINENO"; then :
6468 ac_cv_search_zlibVersion=$ac_res
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext
6472 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6473 break
6474 fi
6475 done
6476 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6477
6478 else
6479 ac_cv_search_zlibVersion=no
6480 fi
6481 rm conftest.$ac_ext
6482 LIBS=$ac_func_search_save_LIBS
6483 fi
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6485 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6486 ac_res=$ac_cv_search_zlibVersion
6487 if test "$ac_res" != no; then :
6488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6489 for ac_header in zlib.h
6490 do :
6491 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6492 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6493 cat >>confdefs.h <<_ACEOF
6494 #define HAVE_ZLIB_H 1
6495 _ACEOF
6496
6497 fi
6498
6499 done
6500
6501 fi
6502
6503 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6504 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6505 fi
6506 fi
6507
6508
6509 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6511 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6512 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 ac_func_search_save_LIBS=$LIBS
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6518
6519 /* Override any GCC internal prototype to avoid an error.
6520 Use char because int might match the return type of a GCC
6521 builtin and then its argument prototype would still apply. */
6522 #ifdef __cplusplus
6523 extern "C"
6524 #endif
6525 char dlgetmodinfo ();
6526 int
6527 main ()
6528 {
6529 return dlgetmodinfo ();
6530 ;
6531 return 0;
6532 }
6533 _ACEOF
6534 for ac_lib in '' dl xpdl; do
6535 if test -z "$ac_lib"; then
6536 ac_res="none required"
6537 else
6538 ac_res=-l$ac_lib
6539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6540 fi
6541 if ac_fn_c_try_link "$LINENO"; then :
6542 ac_cv_search_dlgetmodinfo=$ac_res
6543 fi
6544 rm -f core conftest.err conftest.$ac_objext \
6545 conftest$ac_exeext
6546 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6547 break
6548 fi
6549 done
6550 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6551
6552 else
6553 ac_cv_search_dlgetmodinfo=no
6554 fi
6555 rm conftest.$ac_ext
6556 LIBS=$ac_func_search_save_LIBS
6557 fi
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6559 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6560 ac_res=$ac_cv_search_dlgetmodinfo
6561 if test "$ac_res" != no; then :
6562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6563
6564 fi
6565
6566
6567
6568
6569
6570 # Check whether --with-libiconv-prefix was given.
6571 if test "${with_libiconv_prefix+set}" = set; then :
6572 withval=$with_libiconv_prefix;
6573 for dir in `echo "$withval" | tr : ' '`; do
6574 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6575 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6576 done
6577
6578 fi
6579
6580
6581 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6582 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6585 $as_echo_n "checking for iconv... " >&6; }
6586 if test "${am_cv_func_iconv+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589
6590 am_cv_func_iconv="no, consider installing GNU libiconv"
6591 am_cv_lib_iconv=no
6592 am_cv_use_build_libiconv=no
6593 am_cv_build_libiconv_path=
6594
6595 # If libiconv is part of the build tree, then try using it over
6596 # any system iconv.
6597 if test -d ../libiconv; then
6598 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6599 am_save_LIBS="$LIBS"
6600 am_save_CPPFLAGS="$CPPFLAGS"
6601 LIBS="$LIBS $lib_dir/libiconv.a"
6602 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 #include <stdlib.h>
6606 #include <iconv.h>
6607 int
6608 main ()
6609 {
6610 iconv_t cd = iconv_open("","");
6611 iconv(cd,NULL,NULL,NULL,NULL);
6612 iconv_close(cd);
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 am_cv_use_build_libiconv=yes
6619 am_cv_build_libiconv_path=$lib_dir/libiconv.a
6620 am_cv_lib_iconv=yes
6621 am_cv_func_iconv=yes
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext conftest.$ac_ext
6625 LIBS="$am_save_LIBS"
6626 CPPFLAGS="$am_save_CPPFLAGS"
6627 if test "$am_cv_use_build_libiconv" = "yes"; then
6628 break
6629 fi
6630 done
6631 fi
6632
6633 # Next, try to find iconv in libc.
6634 if test "$am_cv_func_iconv" != yes; then
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6637 #include <stdlib.h>
6638 #include <iconv.h>
6639 int
6640 main ()
6641 {
6642 iconv_t cd = iconv_open("","");
6643 iconv(cd,NULL,NULL,NULL,NULL);
6644 iconv_close(cd);
6645 ;
6646 return 0;
6647 }
6648 _ACEOF
6649 if ac_fn_c_try_link "$LINENO"; then :
6650 am_cv_func_iconv=yes
6651 fi
6652 rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
6654 fi
6655
6656 # If iconv was not in libc, try -liconv. In this case, arrange to
6657 # look in the libiconv prefix, if it was specified by the user.
6658 if test "$am_cv_func_iconv" != yes; then
6659 am_save_CPPFLAGS="$CPPFLAGS"
6660 am_save_LIBS="$LIBS"
6661 if test -n "$LIBICONV_INCLUDE"; then
6662 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6663 LIBS="$LIBS $LIBICONV_LIBDIR"
6664 fi
6665 LIBS="$LIBS -liconv"
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 #include <stdlib.h>
6669 #include <iconv.h>
6670 int
6671 main ()
6672 {
6673 iconv_t cd = iconv_open("","");
6674 iconv(cd,NULL,NULL,NULL,NULL);
6675 iconv_close(cd);
6676 ;
6677 return 0;
6678 }
6679 _ACEOF
6680 if ac_fn_c_try_link "$LINENO"; then :
6681 am_cv_lib_iconv=yes
6682 am_cv_func_iconv=yes
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext \
6685 conftest$ac_exeext conftest.$ac_ext
6686 LIBS="$am_save_LIBS"
6687 CPPFLAGS="$am_save_CPPFLAGS"
6688 fi
6689
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6692 $as_echo "$am_cv_func_iconv" >&6; }
6693
6694 # Set the various flags based on the cache variables. We can't rely
6695 # on the flags to remain set from the above code, due to caching.
6696 LIBICONV=
6697 if test "$am_cv_lib_iconv" = yes; then
6698 LIBICONV="-liconv"
6699 else
6700 LIBICONV_LIBDIR=
6701 LIBICONV_INCLUDE=
6702 fi
6703 if test "$am_cv_use_build_libiconv" = yes; then
6704 LIBICONV="$am_cv_build_libiconv_path"
6705 LIBICONV_LIBDIR=""
6706 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6707 fi
6708 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6709 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6710
6711 if test "$am_cv_func_iconv" = yes; then
6712
6713 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6714
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6716 $as_echo_n "checking for iconv declaration... " >&6; }
6717 if test "${am_cv_proto_iconv+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723
6724 #include <stdlib.h>
6725 #include <iconv.h>
6726 extern
6727 #ifdef __cplusplus
6728 "C"
6729 #endif
6730 #if defined(__STDC__) || defined(__cplusplus)
6731 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6732 #else
6733 size_t iconv();
6734 #endif
6735
6736 int
6737 main ()
6738 {
6739
6740 ;
6741 return 0;
6742 }
6743 _ACEOF
6744 if ac_fn_c_try_compile "$LINENO"; then :
6745 am_cv_proto_iconv_arg1=""
6746 else
6747 am_cv_proto_iconv_arg1="const"
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 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);"
6751 fi
6752
6753 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6755 }$am_cv_proto_iconv" >&5
6756 $as_echo "${ac_t:-
6757 }$am_cv_proto_iconv" >&6; }
6758
6759 cat >>confdefs.h <<_ACEOF
6760 #define ICONV_CONST $am_cv_proto_iconv_arg1
6761 _ACEOF
6762
6763 fi
6764
6765
6766 # GDB may fork/exec the iconv program to get the list of supported character
6767 # sets. Allow the user to specify where to find it.
6768 # There are several factors affecting the choice of option name:
6769 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6770 # the build-time location of libiconv files.
6771 # - The program we need to find is iconv, which comes with glibc. The user
6772 # doesn't necessarily have libiconv installed. Therefore naming this
6773 # --with-libiconv-foo feels wrong.
6774 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6775 # defined to work on directories not files (though it really doesn't know
6776 # the difference).
6777 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6778 # with --with-libiconv-prefix.
6779 # Putting these together is why the option name is --with-iconv-bin.
6780
6781
6782 # Check whether --with-iconv-bin was given.
6783 if test "${with_iconv_bin+set}" = set; then :
6784 withval=$with_iconv_bin; iconv_bin="${withval}"
6785
6786 cat >>confdefs.h <<_ACEOF
6787 #define ICONV_BIN "${iconv_bin}"
6788 _ACEOF
6789
6790
6791 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6792 if test "x$prefix" = xNONE; then
6793 test_prefix=/usr/local
6794 else
6795 test_prefix=$prefix
6796 fi
6797 else
6798 test_prefix=$exec_prefix
6799 fi
6800 value=0
6801 case ${iconv_bin} in
6802 "${test_prefix}"|"${test_prefix}/"*|\
6803 '${exec_prefix}'|'${exec_prefix}/'*)
6804 value=1
6805 ;;
6806 esac
6807
6808 cat >>confdefs.h <<_ACEOF
6809 #define ICONV_BIN_RELOCATABLE $value
6810 _ACEOF
6811
6812
6813
6814 fi
6815
6816
6817 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6818 # There is a very specific comment in /usr/include/curses.h explaining that
6819 # termcap routines built into libcurses must not be used.
6820 #
6821 # The symptoms we observed so far is GDB unexpectedly changing
6822 # the terminal settings when tgetent is called - this is particularly
6823 # visible as the output is missing carriage returns, and so rapidly
6824 # becomes very hard to read.
6825 #
6826 # The readline configure script has already decided that libtermcap
6827 # was enough for its purposes, and so decided to build readline using
6828 # libtermcap. Since the TUI mode requires curses, building GDB with
6829 # TUI enabled results in both libraries to be used at the same time,
6830 # which is not allowed. This basically means that GDB with TUI is
6831 # broken on alpha-osf.
6832
6833 case $host_os in
6834 osf* )
6835 if test x"$enable_tui" = xyes; then
6836 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6837 fi
6838 if test x"$enable_tui" = xauto; then
6839 enable_tui=no
6840 fi
6841 ;;
6842 esac
6843
6844 # For the TUI, we need enhanced curses functionality.
6845 if test x"$enable_tui" != xno; then
6846 prefer_curses=yes
6847 fi
6848
6849 curses_found=no
6850 if test x"$prefer_curses" = xyes; then
6851 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6852 # curses library because the latter might not provide all the
6853 # functionality we need. However, this leads to problems on systems
6854 # where the linker searches /usr/local/lib, but the compiler doesn't
6855 # search /usr/local/include, if ncurses is installed in /usr/local. A
6856 # default installation of ncurses on alpha*-dec-osf* will lead to such
6857 # a situation.
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6859 $as_echo_n "checking for library containing waddstr... " >&6; }
6860 if test "${ac_cv_search_waddstr+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 ac_func_search_save_LIBS=$LIBS
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866
6867 /* Override any GCC internal prototype to avoid an error.
6868 Use char because int might match the return type of a GCC
6869 builtin and then its argument prototype would still apply. */
6870 #ifdef __cplusplus
6871 extern "C"
6872 #endif
6873 char waddstr ();
6874 int
6875 main ()
6876 {
6877 return waddstr ();
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 for ac_lib in '' ncurses cursesX curses; do
6883 if test -z "$ac_lib"; then
6884 ac_res="none required"
6885 else
6886 ac_res=-l$ac_lib
6887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6888 fi
6889 if ac_fn_c_try_link "$LINENO"; then :
6890 ac_cv_search_waddstr=$ac_res
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext
6894 if test "${ac_cv_search_waddstr+set}" = set; then :
6895 break
6896 fi
6897 done
6898 if test "${ac_cv_search_waddstr+set}" = set; then :
6899
6900 else
6901 ac_cv_search_waddstr=no
6902 fi
6903 rm conftest.$ac_ext
6904 LIBS=$ac_func_search_save_LIBS
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6907 $as_echo "$ac_cv_search_waddstr" >&6; }
6908 ac_res=$ac_cv_search_waddstr
6909 if test "$ac_res" != no; then :
6910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6911
6912 fi
6913
6914
6915 if test "$ac_cv_search_waddstr" != no; then
6916 curses_found=yes
6917 fi
6918 fi
6919
6920 # Check whether we should enable the TUI, but only do so if we really
6921 # can.
6922 if test x"$enable_tui" != xno; then
6923 if test -d $srcdir/tui; then
6924 if test "$curses_found" != no; then
6925 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6926 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6927 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6928 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6929 else
6930 if test x"$enable_tui" = xyes; then
6931 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6934 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6935 fi
6936 fi
6937 fi
6938 fi
6939
6940 # Since GDB uses Readline, we need termcap functionality. In many
6941 # cases this will be provided by the curses library, but some systems
6942 # have a seperate termcap library, or no curses library at all.
6943
6944 case $host_os in
6945 cygwin*)
6946 if test -d $srcdir/libtermcap; then
6947 LIBS="../libtermcap/libtermcap.a $LIBS"
6948 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6949 fi ;;
6950 go32* | *djgpp*)
6951 ac_cv_search_tgetent="none required"
6952 ;;
6953 *mingw32*)
6954 ac_cv_search_tgetent="none required"
6955 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
6956 ;;
6957 esac
6958
6959 # These are the libraries checked by Readline.
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6961 $as_echo_n "checking for library containing tgetent... " >&6; }
6962 if test "${ac_cv_search_tgetent+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 ac_func_search_save_LIBS=$LIBS
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6972 #ifdef __cplusplus
6973 extern "C"
6974 #endif
6975 char tgetent ();
6976 int
6977 main ()
6978 {
6979 return tgetent ();
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 for ac_lib in '' termcap tinfo curses ncurses; do
6985 if test -z "$ac_lib"; then
6986 ac_res="none required"
6987 else
6988 ac_res=-l$ac_lib
6989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6990 fi
6991 if ac_fn_c_try_link "$LINENO"; then :
6992 ac_cv_search_tgetent=$ac_res
6993 fi
6994 rm -f core conftest.err conftest.$ac_objext \
6995 conftest$ac_exeext
6996 if test "${ac_cv_search_tgetent+set}" = set; then :
6997 break
6998 fi
6999 done
7000 if test "${ac_cv_search_tgetent+set}" = set; then :
7001
7002 else
7003 ac_cv_search_tgetent=no
7004 fi
7005 rm conftest.$ac_ext
7006 LIBS=$ac_func_search_save_LIBS
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7009 $as_echo "$ac_cv_search_tgetent" >&6; }
7010 ac_res=$ac_cv_search_tgetent
7011 if test "$ac_res" != no; then :
7012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7013
7014 fi
7015
7016
7017 if test "$ac_cv_search_tgetent" = no; then
7018 as_fn_error "no termcap library found" "$LINENO" 5
7019 fi
7020
7021
7022 # Check whether --with-system-readline was given.
7023 if test "${with_system_readline+set}" = set; then :
7024 withval=$with_system_readline;
7025 fi
7026
7027
7028 if test "$with_system_readline" = yes; then
7029 READLINE=-lreadline
7030 READLINE_DEPS=
7031 READLINE_CFLAGS=
7032 READLINE_TEXI_INCFLAG=
7033 else
7034 READLINE='$(READLINE_DIR)/libreadline.a'
7035 READLINE_DEPS='$(READLINE)'
7036 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7037 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7038 fi
7039
7040
7041
7042
7043
7044 # Generate jit-reader.h
7045
7046 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7047 TARGET_PTR=
7048
7049 # The cast to long int works around a bug in the HP C Compiler
7050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7052 # This bug is HP SR number 8606223364.
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7054 $as_echo_n "checking size of unsigned long long... " >&6; }
7055 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7059
7060 else
7061 if test "$ac_cv_type_unsigned_long_long" = yes; then
7062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7064 { as_fn_set_status 77
7065 as_fn_error "cannot compute sizeof (unsigned long long)
7066 See \`config.log' for more details." "$LINENO" 5; }; }
7067 else
7068 ac_cv_sizeof_unsigned_long_long=0
7069 fi
7070 fi
7071
7072 fi
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7074 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7075
7076
7077
7078 cat >>confdefs.h <<_ACEOF
7079 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7080 _ACEOF
7081
7082
7083 # The cast to long int works around a bug in the HP C Compiler
7084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7086 # This bug is HP SR number 8606223364.
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7088 $as_echo_n "checking size of unsigned long... " >&6; }
7089 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7093
7094 else
7095 if test "$ac_cv_type_unsigned_long" = yes; then
7096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7098 { as_fn_set_status 77
7099 as_fn_error "cannot compute sizeof (unsigned long)
7100 See \`config.log' for more details." "$LINENO" 5; }; }
7101 else
7102 ac_cv_sizeof_unsigned_long=0
7103 fi
7104 fi
7105
7106 fi
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7108 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7109
7110
7111
7112 cat >>confdefs.h <<_ACEOF
7113 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7114 _ACEOF
7115
7116
7117 # The cast to long int works around a bug in the HP C Compiler
7118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7120 # This bug is HP SR number 8606223364.
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7122 $as_echo_n "checking size of unsigned __int128... " >&6; }
7123 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7127
7128 else
7129 if test "$ac_cv_type_unsigned___int128" = yes; then
7130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7132 { as_fn_set_status 77
7133 as_fn_error "cannot compute sizeof (unsigned __int128)
7134 See \`config.log' for more details." "$LINENO" 5; }; }
7135 else
7136 ac_cv_sizeof_unsigned___int128=0
7137 fi
7138 fi
7139
7140 fi
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7142 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7143
7144
7145
7146 cat >>confdefs.h <<_ACEOF
7147 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7148 _ACEOF
7149
7150
7151
7152 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7153 TARGET_PTR="unsigned long"
7154 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7155 TARGET_PTR="unsigned long long"
7156 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7157 TARGET_PTR="unsigned __int128"
7158 else
7159 TARGET_PTR="unsigned long"
7160 fi
7161
7162
7163 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7164
7165
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7167 $as_echo_n "checking for library containing dlopen... " >&6; }
7168 if test "${ac_cv_search_dlopen+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 ac_func_search_save_LIBS=$LIBS
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174
7175 /* Override any GCC internal prototype to avoid an error.
7176 Use char because int might match the return type of a GCC
7177 builtin and then its argument prototype would still apply. */
7178 #ifdef __cplusplus
7179 extern "C"
7180 #endif
7181 char dlopen ();
7182 int
7183 main ()
7184 {
7185 return dlopen ();
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 for ac_lib in '' dl; do
7191 if test -z "$ac_lib"; then
7192 ac_res="none required"
7193 else
7194 ac_res=-l$ac_lib
7195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7196 fi
7197 if ac_fn_c_try_link "$LINENO"; then :
7198 ac_cv_search_dlopen=$ac_res
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext \
7201 conftest$ac_exeext
7202 if test "${ac_cv_search_dlopen+set}" = set; then :
7203 break
7204 fi
7205 done
7206 if test "${ac_cv_search_dlopen+set}" = set; then :
7207
7208 else
7209 ac_cv_search_dlopen=no
7210 fi
7211 rm conftest.$ac_ext
7212 LIBS=$ac_func_search_save_LIBS
7213 fi
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7215 $as_echo "$ac_cv_search_dlopen" >&6; }
7216 ac_res=$ac_cv_search_dlopen
7217 if test "$ac_res" != no; then :
7218 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7219
7220 fi
7221
7222
7223
7224
7225 # Check whether --with-jit-reader-dir was given.
7226 if test "${with_jit_reader_dir+set}" = set; then :
7227 withval=$with_jit_reader_dir;
7228 JIT_READER_DIR=$withval
7229 else
7230 JIT_READER_DIR=${libdir}/gdb
7231 fi
7232
7233
7234 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7236 ac_define_dir=`eval echo $JIT_READER_DIR`
7237 ac_define_dir=`eval echo $ac_define_dir`
7238
7239 cat >>confdefs.h <<_ACEOF
7240 #define JIT_READER_DIR "$ac_define_dir"
7241 _ACEOF
7242
7243
7244
7245
7246 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7247 if test "x$prefix" = xNONE; then
7248 test_prefix=/usr/local
7249 else
7250 test_prefix=$prefix
7251 fi
7252 else
7253 test_prefix=$exec_prefix
7254 fi
7255 value=0
7256 case ${ac_define_dir} in
7257 "${test_prefix}"|"${test_prefix}/"*|\
7258 '${exec_prefix}'|'${exec_prefix}/'*)
7259 value=1
7260 ;;
7261 esac
7262
7263 cat >>confdefs.h <<_ACEOF
7264 #define JIT_READER_DIR_RELOCATABLE $value
7265 _ACEOF
7266
7267
7268
7269
7270
7271 # Check whether --with-expat was given.
7272 if test "${with_expat+set}" = set; then :
7273 withval=$with_expat;
7274 else
7275 with_expat=auto
7276 fi
7277
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7279 $as_echo_n "checking whether to use expat... " >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7281 $as_echo "$with_expat" >&6; }
7282
7283 if test "${with_expat}" = no; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7285 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7286 HAVE_LIBEXPAT=no
7287 else
7288
7289 if test "X$prefix" = "XNONE"; then
7290 acl_final_prefix="$ac_default_prefix"
7291 else
7292 acl_final_prefix="$prefix"
7293 fi
7294 if test "X$exec_prefix" = "XNONE"; then
7295 acl_final_exec_prefix='${prefix}'
7296 else
7297 acl_final_exec_prefix="$exec_prefix"
7298 fi
7299 acl_save_prefix="$prefix"
7300 prefix="$acl_final_prefix"
7301 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7302 prefix="$acl_save_prefix"
7303
7304
7305 # Check whether --with-gnu-ld was given.
7306 if test "${with_gnu_ld+set}" = set; then :
7307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7308 else
7309 with_gnu_ld=no
7310 fi
7311
7312 # Prepare PATH_SEPARATOR.
7313 # The user is always right.
7314 if test "${PATH_SEPARATOR+set}" != set; then
7315 echo "#! /bin/sh" >conf$$.sh
7316 echo "exit 0" >>conf$$.sh
7317 chmod +x conf$$.sh
7318 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7319 PATH_SEPARATOR=';'
7320 else
7321 PATH_SEPARATOR=:
7322 fi
7323 rm -f conf$$.sh
7324 fi
7325 ac_prog=ld
7326 if test "$GCC" = yes; then
7327 # Check if gcc -print-prog-name=ld gives a path.
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7329 $as_echo_n "checking for ld used by GCC... " >&6; }
7330 case $host in
7331 *-*-mingw*)
7332 # gcc leaves a trailing carriage return which upsets mingw
7333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7334 *)
7335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7336 esac
7337 case $ac_prog in
7338 # Accept absolute paths.
7339 [\\/]* | [A-Za-z]:[\\/]*)
7340 re_direlt='/[^/][^/]*/\.\./'
7341 # Canonicalize the path of ld
7342 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7343 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7344 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7345 done
7346 test -z "$LD" && LD="$ac_prog"
7347 ;;
7348 "")
7349 # If it fails, then pretend we aren't using GCC.
7350 ac_prog=ld
7351 ;;
7352 *)
7353 # If it is relative, then search for the first ld in PATH.
7354 with_gnu_ld=unknown
7355 ;;
7356 esac
7357 elif test "$with_gnu_ld" = yes; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7359 $as_echo_n "checking for GNU ld... " >&6; }
7360 else
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7362 $as_echo_n "checking for non-GNU ld... " >&6; }
7363 fi
7364 if test "${acl_cv_path_LD+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -z "$LD"; then
7368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7369 for ac_dir in $PATH; do
7370 test -z "$ac_dir" && ac_dir=.
7371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7372 acl_cv_path_LD="$ac_dir/$ac_prog"
7373 # Check to see if the program is GNU ld. I'd rather use --version,
7374 # but apparently some GNU ld's only accept -v.
7375 # Break only if it was the GNU/non-GNU ld that we prefer.
7376 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7377 test "$with_gnu_ld" != no && break
7378 else
7379 test "$with_gnu_ld" != yes && break
7380 fi
7381 fi
7382 done
7383 IFS="$ac_save_ifs"
7384 else
7385 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7386 fi
7387 fi
7388
7389 LD="$acl_cv_path_LD"
7390 if test -n "$LD"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7392 $as_echo "$LD" >&6; }
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7399 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7400 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7404 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7405 acl_cv_prog_gnu_ld=yes
7406 else
7407 acl_cv_prog_gnu_ld=no
7408 fi
7409 fi
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7411 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7412 with_gnu_ld=$acl_cv_prog_gnu_ld
7413
7414
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7417 $as_echo_n "checking for shared library run path origin... " >&6; }
7418 if test "${acl_cv_rpath+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421
7422 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7423 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7424 . ./conftest.sh
7425 rm -f ./conftest.sh
7426 acl_cv_rpath=done
7427
7428 fi
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7430 $as_echo "$acl_cv_rpath" >&6; }
7431 wl="$acl_cv_wl"
7432 libext="$acl_cv_libext"
7433 shlibext="$acl_cv_shlibext"
7434 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7435 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7436 hardcode_direct="$acl_cv_hardcode_direct"
7437 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7438 # Check whether --enable-rpath was given.
7439 if test "${enable_rpath+set}" = set; then :
7440 enableval=$enable_rpath; :
7441 else
7442 enable_rpath=yes
7443 fi
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454 use_additional=yes
7455
7456 acl_save_prefix="$prefix"
7457 prefix="$acl_final_prefix"
7458 acl_save_exec_prefix="$exec_prefix"
7459 exec_prefix="$acl_final_exec_prefix"
7460
7461 eval additional_includedir=\"$includedir\"
7462 eval additional_libdir=\"$libdir\"
7463
7464 exec_prefix="$acl_save_exec_prefix"
7465 prefix="$acl_save_prefix"
7466
7467
7468 # Check whether --with-libexpat-prefix was given.
7469 if test "${with_libexpat_prefix+set}" = set; then :
7470 withval=$with_libexpat_prefix;
7471 if test "X$withval" = "Xno"; then
7472 use_additional=no
7473 else
7474 if test "X$withval" = "X"; then
7475
7476 acl_save_prefix="$prefix"
7477 prefix="$acl_final_prefix"
7478 acl_save_exec_prefix="$exec_prefix"
7479 exec_prefix="$acl_final_exec_prefix"
7480
7481 eval additional_includedir=\"$includedir\"
7482 eval additional_libdir=\"$libdir\"
7483
7484 exec_prefix="$acl_save_exec_prefix"
7485 prefix="$acl_save_prefix"
7486
7487 else
7488 additional_includedir="$withval/include"
7489 additional_libdir="$withval/lib"
7490 fi
7491 fi
7492
7493 fi
7494
7495 LIBEXPAT=
7496 LTLIBEXPAT=
7497 INCEXPAT=
7498 rpathdirs=
7499 ltrpathdirs=
7500 names_already_handled=
7501 names_next_round='expat '
7502 while test -n "$names_next_round"; do
7503 names_this_round="$names_next_round"
7504 names_next_round=
7505 for name in $names_this_round; do
7506 already_handled=
7507 for n in $names_already_handled; do
7508 if test "$n" = "$name"; then
7509 already_handled=yes
7510 break
7511 fi
7512 done
7513 if test -z "$already_handled"; then
7514 names_already_handled="$names_already_handled $name"
7515 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7516 eval value=\"\$HAVE_LIB$uppername\"
7517 if test -n "$value"; then
7518 if test "$value" = yes; then
7519 eval value=\"\$LIB$uppername\"
7520 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7521 eval value=\"\$LTLIB$uppername\"
7522 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7523 else
7524 :
7525 fi
7526 else
7527 found_dir=
7528 found_la=
7529 found_so=
7530 found_a=
7531 if test $use_additional = yes; then
7532 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7533 found_dir="$additional_libdir"
7534 found_so="$additional_libdir/lib$name.$shlibext"
7535 if test -f "$additional_libdir/lib$name.la"; then
7536 found_la="$additional_libdir/lib$name.la"
7537 fi
7538 else
7539 if test -f "$additional_libdir/lib$name.$libext"; then
7540 found_dir="$additional_libdir"
7541 found_a="$additional_libdir/lib$name.$libext"
7542 if test -f "$additional_libdir/lib$name.la"; then
7543 found_la="$additional_libdir/lib$name.la"
7544 fi
7545 fi
7546 fi
7547 fi
7548 if test "X$found_dir" = "X"; then
7549 for x in $LDFLAGS $LTLIBEXPAT; do
7550
7551 acl_save_prefix="$prefix"
7552 prefix="$acl_final_prefix"
7553 acl_save_exec_prefix="$exec_prefix"
7554 exec_prefix="$acl_final_exec_prefix"
7555 eval x=\"$x\"
7556 exec_prefix="$acl_save_exec_prefix"
7557 prefix="$acl_save_prefix"
7558
7559 case "$x" in
7560 -L*)
7561 dir=`echo "X$x" | sed -e 's/^X-L//'`
7562 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7563 found_dir="$dir"
7564 found_so="$dir/lib$name.$shlibext"
7565 if test -f "$dir/lib$name.la"; then
7566 found_la="$dir/lib$name.la"
7567 fi
7568 else
7569 if test -f "$dir/lib$name.$libext"; then
7570 found_dir="$dir"
7571 found_a="$dir/lib$name.$libext"
7572 if test -f "$dir/lib$name.la"; then
7573 found_la="$dir/lib$name.la"
7574 fi
7575 fi
7576 fi
7577 ;;
7578 esac
7579 if test "X$found_dir" != "X"; then
7580 break
7581 fi
7582 done
7583 fi
7584 if test "X$found_dir" != "X"; then
7585 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7586 if test "X$found_so" != "X"; then
7587 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7588 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7589 else
7590 haveit=
7591 for x in $ltrpathdirs; do
7592 if test "X$x" = "X$found_dir"; then
7593 haveit=yes
7594 break
7595 fi
7596 done
7597 if test -z "$haveit"; then
7598 ltrpathdirs="$ltrpathdirs $found_dir"
7599 fi
7600 if test "$hardcode_direct" = yes; then
7601 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7602 else
7603 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7604 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7605 haveit=
7606 for x in $rpathdirs; do
7607 if test "X$x" = "X$found_dir"; then
7608 haveit=yes
7609 break
7610 fi
7611 done
7612 if test -z "$haveit"; then
7613 rpathdirs="$rpathdirs $found_dir"
7614 fi
7615 else
7616 haveit=
7617 for x in $LDFLAGS $LIBEXPAT; do
7618
7619 acl_save_prefix="$prefix"
7620 prefix="$acl_final_prefix"
7621 acl_save_exec_prefix="$exec_prefix"
7622 exec_prefix="$acl_final_exec_prefix"
7623 eval x=\"$x\"
7624 exec_prefix="$acl_save_exec_prefix"
7625 prefix="$acl_save_prefix"
7626
7627 if test "X$x" = "X-L$found_dir"; then
7628 haveit=yes
7629 break
7630 fi
7631 done
7632 if test -z "$haveit"; then
7633 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7634 fi
7635 if test "$hardcode_minus_L" != no; then
7636 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7637 else
7638 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7639 fi
7640 fi
7641 fi
7642 fi
7643 else
7644 if test "X$found_a" != "X"; then
7645 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7646 else
7647 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7648 fi
7649 fi
7650 additional_includedir=
7651 case "$found_dir" in
7652 */lib | */lib/)
7653 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7654 additional_includedir="$basedir/include"
7655 ;;
7656 esac
7657 if test "X$additional_includedir" != "X"; then
7658 if test "X$additional_includedir" != "X/usr/include"; then
7659 haveit=
7660 if test "X$additional_includedir" = "X/usr/local/include"; then
7661 if test -n "$GCC"; then
7662 case $host_os in
7663 linux*) haveit=yes;;
7664 esac
7665 fi
7666 fi
7667 if test -z "$haveit"; then
7668 for x in $CPPFLAGS $INCEXPAT; do
7669
7670 acl_save_prefix="$prefix"
7671 prefix="$acl_final_prefix"
7672 acl_save_exec_prefix="$exec_prefix"
7673 exec_prefix="$acl_final_exec_prefix"
7674 eval x=\"$x\"
7675 exec_prefix="$acl_save_exec_prefix"
7676 prefix="$acl_save_prefix"
7677
7678 if test "X$x" = "X-I$additional_includedir"; then
7679 haveit=yes
7680 break
7681 fi
7682 done
7683 if test -z "$haveit"; then
7684 if test -d "$additional_includedir"; then
7685 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7686 fi
7687 fi
7688 fi
7689 fi
7690 fi
7691 if test -n "$found_la"; then
7692 save_libdir="$libdir"
7693 case "$found_la" in
7694 */* | *\\*) . "$found_la" ;;
7695 *) . "./$found_la" ;;
7696 esac
7697 libdir="$save_libdir"
7698 for dep in $dependency_libs; do
7699 case "$dep" in
7700 -L*)
7701 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7702 if test "X$additional_libdir" != "X/usr/lib"; then
7703 haveit=
7704 if test "X$additional_libdir" = "X/usr/local/lib"; then
7705 if test -n "$GCC"; then
7706 case $host_os in
7707 linux*) haveit=yes;;
7708 esac
7709 fi
7710 fi
7711 if test -z "$haveit"; then
7712 haveit=
7713 for x in $LDFLAGS $LIBEXPAT; do
7714
7715 acl_save_prefix="$prefix"
7716 prefix="$acl_final_prefix"
7717 acl_save_exec_prefix="$exec_prefix"
7718 exec_prefix="$acl_final_exec_prefix"
7719 eval x=\"$x\"
7720 exec_prefix="$acl_save_exec_prefix"
7721 prefix="$acl_save_prefix"
7722
7723 if test "X$x" = "X-L$additional_libdir"; then
7724 haveit=yes
7725 break
7726 fi
7727 done
7728 if test -z "$haveit"; then
7729 if test -d "$additional_libdir"; then
7730 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7731 fi
7732 fi
7733 haveit=
7734 for x in $LDFLAGS $LTLIBEXPAT; do
7735
7736 acl_save_prefix="$prefix"
7737 prefix="$acl_final_prefix"
7738 acl_save_exec_prefix="$exec_prefix"
7739 exec_prefix="$acl_final_exec_prefix"
7740 eval x=\"$x\"
7741 exec_prefix="$acl_save_exec_prefix"
7742 prefix="$acl_save_prefix"
7743
7744 if test "X$x" = "X-L$additional_libdir"; then
7745 haveit=yes
7746 break
7747 fi
7748 done
7749 if test -z "$haveit"; then
7750 if test -d "$additional_libdir"; then
7751 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7752 fi
7753 fi
7754 fi
7755 fi
7756 ;;
7757 -R*)
7758 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7759 if test "$enable_rpath" != no; then
7760 haveit=
7761 for x in $rpathdirs; do
7762 if test "X$x" = "X$dir"; then
7763 haveit=yes
7764 break
7765 fi
7766 done
7767 if test -z "$haveit"; then
7768 rpathdirs="$rpathdirs $dir"
7769 fi
7770 haveit=
7771 for x in $ltrpathdirs; do
7772 if test "X$x" = "X$dir"; then
7773 haveit=yes
7774 break
7775 fi
7776 done
7777 if test -z "$haveit"; then
7778 ltrpathdirs="$ltrpathdirs $dir"
7779 fi
7780 fi
7781 ;;
7782 -l*)
7783 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7784 ;;
7785 *.la)
7786 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7787 ;;
7788 *)
7789 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7790 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7791 ;;
7792 esac
7793 done
7794 fi
7795 else
7796 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7797 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7798 fi
7799 fi
7800 fi
7801 done
7802 done
7803 if test "X$rpathdirs" != "X"; then
7804 if test -n "$hardcode_libdir_separator"; then
7805 alldirs=
7806 for found_dir in $rpathdirs; do
7807 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7808 done
7809 acl_save_libdir="$libdir"
7810 libdir="$alldirs"
7811 eval flag=\"$hardcode_libdir_flag_spec\"
7812 libdir="$acl_save_libdir"
7813 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7814 else
7815 for found_dir in $rpathdirs; do
7816 acl_save_libdir="$libdir"
7817 libdir="$found_dir"
7818 eval flag=\"$hardcode_libdir_flag_spec\"
7819 libdir="$acl_save_libdir"
7820 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7821 done
7822 fi
7823 fi
7824 if test "X$ltrpathdirs" != "X"; then
7825 for found_dir in $ltrpathdirs; do
7826 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7827 done
7828 fi
7829
7830
7831 ac_save_CPPFLAGS="$CPPFLAGS"
7832
7833 for element in $INCEXPAT; do
7834 haveit=
7835 for x in $CPPFLAGS; do
7836
7837 acl_save_prefix="$prefix"
7838 prefix="$acl_final_prefix"
7839 acl_save_exec_prefix="$exec_prefix"
7840 exec_prefix="$acl_final_exec_prefix"
7841 eval x=\"$x\"
7842 exec_prefix="$acl_save_exec_prefix"
7843 prefix="$acl_save_prefix"
7844
7845 if test "X$x" = "X$element"; then
7846 haveit=yes
7847 break
7848 fi
7849 done
7850 if test -z "$haveit"; then
7851 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7852 fi
7853 done
7854
7855
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7857 $as_echo_n "checking for libexpat... " >&6; }
7858 if test "${ac_cv_libexpat+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861
7862 ac_save_LIBS="$LIBS"
7863 LIBS="$LIBS $LIBEXPAT"
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #include "expat.h"
7867 int
7868 main ()
7869 {
7870 XML_Parser p = XML_ParserCreate (0);
7871 ;
7872 return 0;
7873 }
7874 _ACEOF
7875 if ac_fn_c_try_link "$LINENO"; then :
7876 ac_cv_libexpat=yes
7877 else
7878 ac_cv_libexpat=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 LIBS="$ac_save_LIBS"
7883
7884 fi
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7886 $as_echo "$ac_cv_libexpat" >&6; }
7887 if test "$ac_cv_libexpat" = yes; then
7888 HAVE_LIBEXPAT=yes
7889
7890 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7893 $as_echo_n "checking how to link with libexpat... " >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7895 $as_echo "$LIBEXPAT" >&6; }
7896 else
7897 HAVE_LIBEXPAT=no
7898 CPPFLAGS="$ac_save_CPPFLAGS"
7899 LIBEXPAT=
7900 LTLIBEXPAT=
7901 fi
7902
7903
7904
7905
7906
7907
7908 if test "$HAVE_LIBEXPAT" != yes; then
7909 if test "$with_expat" = yes; then
7910 as_fn_error "expat is missing or unusable" "$LINENO" 5
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7913 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7914 fi
7915 else
7916 save_LIBS=$LIBS
7917 LIBS="$LIBS $LIBEXPAT"
7918 for ac_func in XML_StopParser
7919 do :
7920 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7921 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
7922 cat >>confdefs.h <<_ACEOF
7923 #define HAVE_XML_STOPPARSER 1
7924 _ACEOF
7925
7926 fi
7927 done
7928
7929 LIBS=$save_LIBS
7930 fi
7931 fi
7932
7933
7934
7935
7936
7937
7938 # Check whether --with-python was given.
7939 if test "${with_python+set}" = set; then :
7940 withval=$with_python;
7941 else
7942 with_python=auto
7943 fi
7944
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7946 $as_echo_n "checking whether to use python... " >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7948 $as_echo "$with_python" >&6; }
7949
7950 if test "${with_python}" = no; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7952 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7953 have_libpython=no
7954 else
7955 case "${with_python}" in
7956 [\\/]* | ?:[\\/]*)
7957 if test -d ${with_python}; then
7958 # Assume the python binary is ${with_python}/bin/python.
7959 python_prog="${with_python}/bin/python"
7960 python_prefix=
7961 # If python does not exit ${with_python}/bin, then try in
7962 # ${with_python}. On Windows/MinGW, this is where the Python
7963 # executable is.
7964 if test ! -x "${python_prog}"; then
7965 python_prog="${with_python}/python"
7966 python_prefix=
7967 fi
7968 if test ! -x "${python_prog}"; then
7969 # Fall back to gdb 7.0/7.1 behaviour.
7970 python_prog=missing
7971 python_prefix=${with_python}
7972 fi
7973 elif test -x "${with_python}"; then
7974 # While we can't run python compiled for $host (unless host == build),
7975 # the user could write a script that provides the needed information,
7976 # so we support that.
7977 python_prog=${with_python}
7978 python_prefix=
7979 else
7980 as_fn_error "invalid value for --with-python" "$LINENO" 5
7981 fi
7982 ;;
7983 */*)
7984 # Disallow --with-python=foo/bar.
7985 as_fn_error "invalid value for --with-python" "$LINENO" 5
7986 ;;
7987 *)
7988 # The user has either specified auto, yes, or the name of the python
7989 # program assumed to be in $PATH.
7990 python_prefix=
7991 case "${with_python}" in
7992 yes | auto)
7993 if test ${build} = ${host}; then
7994 # Extract the first word of "python", so it can be a program name with args.
7995 set dummy python; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_path_python_prog_path+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 case $python_prog_path in
8002 [\\/]* | ?:[\\/]*)
8003 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8004 ;;
8005 *)
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017 done
8018 done
8019 IFS=$as_save_IFS
8020
8021 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8022 ;;
8023 esac
8024 fi
8025 python_prog_path=$ac_cv_path_python_prog_path
8026 if test -n "$python_prog_path"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8028 $as_echo "$python_prog_path" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 if test "${python_prog_path}" = missing; then
8036 python_prog=missing
8037 else
8038 python_prog=${python_prog_path}
8039 fi
8040 else
8041 # Not much we can do except assume the cross-compiler will find the
8042 # right files.
8043 python_prog=missing
8044 fi
8045 ;;
8046 *)
8047 # While we can't run python compiled for $host (unless host == build),
8048 # the user could write a script that provides the needed information,
8049 # so we support that.
8050 python_prog="${with_python}"
8051 # Extract the first word of "${python_prog}", so it can be a program name with args.
8052 set dummy ${python_prog}; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 case $python_prog_path in
8059 [\\/]* | ?:[\\/]*)
8060 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8061 ;;
8062 *)
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8065 do
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8073 fi
8074 done
8075 done
8076 IFS=$as_save_IFS
8077
8078 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8079 ;;
8080 esac
8081 fi
8082 python_prog_path=$ac_cv_path_python_prog_path
8083 if test -n "$python_prog_path"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8085 $as_echo "$python_prog_path" >&6; }
8086 else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8089 fi
8090
8091
8092 if test "${python_prog_path}" = missing; then
8093 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8094 fi
8095 ;;
8096 esac
8097 esac
8098
8099 if test "${python_prog}" != missing; then
8100 # We have a python program to use, but it may be too old.
8101 # Don't flag an error for --with-python=auto (the default).
8102 have_python_config=yes
8103 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8104 if test $? != 0; then
8105 have_python_config=failed
8106 if test "${with_python}" != auto; then
8107 as_fn_error "failure running python-config --includes" "$LINENO" 5
8108 fi
8109 fi
8110 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8111 if test $? != 0; then
8112 have_python_config=failed
8113 if test "${with_python}" != auto; then
8114 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8115 fi
8116 fi
8117 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8118 if test $? != 0; then
8119 have_python_config=failed
8120 if test "${with_python}" != auto; then
8121 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8122 fi
8123 fi
8124 else
8125 # We do not have a python executable we can use to determine where
8126 # to find the Python headers and libs. We cannot guess the include
8127 # path from the python_prefix either, because that include path
8128 # depends on the Python version. So, there is nothing much we can
8129 # do except assume that the compiler will be able to find those files.
8130 python_includes=
8131 python_libs=
8132 have_python_config=no
8133 fi
8134
8135 # If we have python-config, only try the configuration it provides.
8136 # Otherwise fallback on the old way of trying different versions of
8137 # python in turn.
8138
8139 have_libpython=no
8140 if test "${have_python_config}" = yes; then
8141 # Determine the Python version by extracting "-lpython<version>"
8142 # part of the python_libs. <version> is usually X.Y with X and Y
8143 # being decimal numbers, but can also be XY (seen on Windows).
8144 #
8145 # The extraction is performed using sed with a regular expression.
8146 # Initially, the regexp used was using the '?' quantifier to make
8147 # the dot in the version number optional. Unfortunately, this
8148 # does not work with non-GNU versions of sed because, because of
8149 # what looks like a limitation (the '?' quantifier does not work
8150 # with back-references). We work around this limitation by using
8151 # the '*' quantifier instead. It means that, in theory, we might
8152 # match unexpected version strings such as "-lpython2..7", but
8153 # this seems unlikely in practice. And even if that happens,
8154 # an error will be triggered later on, when checking that version
8155 # number.
8156 python_version=`echo " ${python_libs} " \
8157 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8158 case "${python_version}" in
8159 python*)
8160
8161 version=${python_version}
8162
8163 new_CPPFLAGS=${python_includes}
8164 new_LIBS=${python_libs}
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8166 $as_echo_n "checking for ${version}... " >&6; }
8167 save_CPPFLAGS=$CPPFLAGS
8168 save_LIBS=$LIBS
8169 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8170 LIBS="$LIBS $new_LIBS"
8171 found_usable_python=no
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8174 #include "Python.h"
8175 int
8176 main ()
8177 {
8178 Py_Initialize ();
8179 ;
8180 return 0;
8181 }
8182 _ACEOF
8183 if ac_fn_c_try_link "$LINENO"; then :
8184 have_libpython=${version}
8185 found_usable_python=yes
8186 PYTHON_CPPFLAGS=$new_CPPFLAGS
8187 PYTHON_LIBS=$new_LIBS
8188 fi
8189 rm -f core conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8191 CPPFLAGS=$save_CPPFLAGS
8192 LIBS=$save_LIBS
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8194 $as_echo "${found_usable_python}" >&6; }
8195
8196 ;;
8197 *)
8198 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8199 ;;
8200 esac
8201 elif test "${have_python_config}" != failed; then
8202 if test "${have_libpython}" = no; then
8203
8204 version=python2.7
8205
8206 new_CPPFLAGS=${python_includes}
8207 new_LIBS="${python_libs} -lpython2.7"
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8209 $as_echo_n "checking for ${version}... " >&6; }
8210 save_CPPFLAGS=$CPPFLAGS
8211 save_LIBS=$LIBS
8212 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8213 LIBS="$LIBS $new_LIBS"
8214 found_usable_python=no
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #include "Python.h"
8218 int
8219 main ()
8220 {
8221 Py_Initialize ();
8222 ;
8223 return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227 have_libpython=${version}
8228 found_usable_python=yes
8229 PYTHON_CPPFLAGS=$new_CPPFLAGS
8230 PYTHON_LIBS=$new_LIBS
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext conftest.$ac_ext
8234 CPPFLAGS=$save_CPPFLAGS
8235 LIBS=$save_LIBS
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8237 $as_echo "${found_usable_python}" >&6; }
8238
8239 fi
8240 if test "${have_libpython}" = no; then
8241
8242 version=python2.6
8243
8244 new_CPPFLAGS=${python_includes}
8245 new_LIBS="${python_libs} -lpython2.6"
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8247 $as_echo_n "checking for ${version}... " >&6; }
8248 save_CPPFLAGS=$CPPFLAGS
8249 save_LIBS=$LIBS
8250 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8251 LIBS="$LIBS $new_LIBS"
8252 found_usable_python=no
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 #include "Python.h"
8256 int
8257 main ()
8258 {
8259 Py_Initialize ();
8260 ;
8261 return 0;
8262 }
8263 _ACEOF
8264 if ac_fn_c_try_link "$LINENO"; then :
8265 have_libpython=${version}
8266 found_usable_python=yes
8267 PYTHON_CPPFLAGS=$new_CPPFLAGS
8268 PYTHON_LIBS=$new_LIBS
8269 fi
8270 rm -f core conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8272 CPPFLAGS=$save_CPPFLAGS
8273 LIBS=$save_LIBS
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8275 $as_echo "${found_usable_python}" >&6; }
8276
8277 fi
8278 if test ${have_libpython} = no; then
8279
8280 version=python2.5
8281
8282 new_CPPFLAGS=${python_includes}
8283 new_LIBS="${python_libs} -lpython2.5"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8285 $as_echo_n "checking for ${version}... " >&6; }
8286 save_CPPFLAGS=$CPPFLAGS
8287 save_LIBS=$LIBS
8288 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8289 LIBS="$LIBS $new_LIBS"
8290 found_usable_python=no
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293 #include "Python.h"
8294 int
8295 main ()
8296 {
8297 Py_Initialize ();
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 if ac_fn_c_try_link "$LINENO"; then :
8303 have_libpython=${version}
8304 found_usable_python=yes
8305 PYTHON_CPPFLAGS=$new_CPPFLAGS
8306 PYTHON_LIBS=$new_LIBS
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8310 CPPFLAGS=$save_CPPFLAGS
8311 LIBS=$save_LIBS
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8313 $as_echo "${found_usable_python}" >&6; }
8314
8315 fi
8316 if test ${have_libpython} = no; then
8317
8318 version=python2.4
8319
8320 new_CPPFLAGS=${python_includes}
8321 new_LIBS="${python_libs} -lpython2.4"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8323 $as_echo_n "checking for ${version}... " >&6; }
8324 save_CPPFLAGS=$CPPFLAGS
8325 save_LIBS=$LIBS
8326 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8327 LIBS="$LIBS $new_LIBS"
8328 found_usable_python=no
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8331 #include "Python.h"
8332 int
8333 main ()
8334 {
8335 Py_Initialize ();
8336 ;
8337 return 0;
8338 }
8339 _ACEOF
8340 if ac_fn_c_try_link "$LINENO"; then :
8341 have_libpython=${version}
8342 found_usable_python=yes
8343 PYTHON_CPPFLAGS=$new_CPPFLAGS
8344 PYTHON_LIBS=$new_LIBS
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 CPPFLAGS=$save_CPPFLAGS
8349 LIBS=$save_LIBS
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8351 $as_echo "${found_usable_python}" >&6; }
8352
8353 fi
8354 fi
8355 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8356
8357 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8358
8359 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8360
8361 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8362
8363 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8364
8365 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8366
8367 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8368
8369 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8370
8371 fi
8372
8373 if test "${have_libpython}" = no; then
8374 case "${with_python}" in
8375 yes)
8376 as_fn_error "python is missing or unusable" "$LINENO" 5
8377 ;;
8378 auto)
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8380 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8381 ;;
8382 *)
8383 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8384 ;;
8385 esac
8386 else
8387 if test -n "${python_prefix}"; then
8388
8389 cat >>confdefs.h <<_ACEOF
8390 #define WITH_PYTHON_PATH "${python_prefix}"
8391 _ACEOF
8392
8393
8394 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8395 if test "x$prefix" = xNONE; then
8396 test_prefix=/usr/local
8397 else
8398 test_prefix=$prefix
8399 fi
8400 else
8401 test_prefix=$exec_prefix
8402 fi
8403 value=0
8404 case ${python_prefix} in
8405 "${test_prefix}"|"${test_prefix}/"*|\
8406 '${exec_prefix}'|'${exec_prefix}/'*)
8407 value=1
8408 ;;
8409 esac
8410
8411 cat >>confdefs.h <<_ACEOF
8412 #define PYTHON_PATH_RELOCATABLE $value
8413 _ACEOF
8414
8415
8416 fi
8417 fi
8418 fi
8419
8420 if test "${have_libpython}" != no; then
8421
8422 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8423
8424 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8425 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8426 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8427 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8428 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8429
8430 # Flags needed to compile Python code (taken from python-config --cflags).
8431 # We cannot call python-config directly because it will output whatever was
8432 # used when compiling the Python interpreter itself, including flags which
8433 # would make the python-related objects be compiled differently from the
8434 # rest of GDB (e.g., -O2 and -fPIC).
8435 if test "${GCC}" = yes; then
8436 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8437 fi
8438
8439 if test "x${tentative_python_cflags}" != x; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8441 $as_echo_n "checking compiler flags for python code... " >&6; }
8442 for flag in ${tentative_python_cflags}; do
8443 # Check that the compiler accepts it
8444 saved_CFLAGS="$CFLAGS"
8445 CFLAGS="$CFLAGS $flag"
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448
8449 int
8450 main ()
8451 {
8452
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 if ac_fn_c_try_compile "$LINENO"; then :
8458 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 CFLAGS="$saved_CFLAGS"
8462 done
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8464 $as_echo "${PYTHON_CFLAGS}" >&6; }
8465 fi
8466
8467 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8468 # #if _SGIAPI
8469 # #define siginfo __siginfo
8470 # #endif
8471 # The problem is that including Python causes some XOPEN macros to be
8472 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8473 # to false. So, we work around this issue by defining siginfo ourself
8474 # though the command-line.
8475 #
8476 # On x64 Windows, Python's include headers, and pyconfig.h in
8477 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8478 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8479 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8480 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8481 # The issue was reported to the Python community, but still isn't
8482 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8483
8484 case "$gdb_host" in
8485 irix*) if test "${GCC}" = yes; then
8486 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8487 fi
8488 ;;
8489 mingw64)
8490 if test "${GCC}" = yes; then
8491 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8492 fi
8493 ;;
8494 esac
8495
8496 # Note that "python -m threading" cannot be used to check for
8497 # threading support due to a bug in Python 2.7.3
8498 # (http://bugs.python.org/issue15567).
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8500 $as_echo_n "checking whether python supports threads... " >&6; }
8501 saved_CPPFLAGS="${CPPFLAGS}"
8502 CPPFLAGS="${PYTHON_CPPFLAGS}"
8503 # Note that the test is reversed so that python_has_threads=yes on
8504 # unexpected failures.
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507
8508 #include <Python.h>
8509 #ifdef WITH_THREAD
8510 # error
8511 #endif
8512
8513 _ACEOF
8514 if ac_fn_c_try_cpp "$LINENO"; then :
8515 python_has_threads=no
8516 else
8517 python_has_threads=yes
8518 fi
8519 rm -f conftest.err conftest.$ac_ext
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8521 $as_echo "${python_has_threads}" >&6; }
8522 CPPFLAGS="${saved_CPPFLAGS}"
8523 else
8524 # Even if Python support is not compiled in, we need to have these files
8525 # included.
8526 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8527 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
8528 python/py-prettyprint.c python/py-auto-load.c"
8529 fi
8530
8531
8532
8533
8534 # Provide a --enable-libmcheck/--disable-libmcheck set of options
8535 # allowing a user to enable this option even when building releases,
8536 # or to disable it when building a snapshot.
8537 # Check whether --enable-libmcheck was given.
8538 if test "${enable_libmcheck+set}" = set; then :
8539 enableval=$enable_libmcheck; case "${enableval}" in
8540 yes | y) ENABLE_LIBMCHECK="yes" ;;
8541 no | n) ENABLE_LIBMCHECK="no" ;;
8542 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
8543 esac
8544 fi
8545
8546
8547 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
8548 # but turn it off if Python is enabled with threads, since -lmcheck is
8549 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
8550 # and for releases.
8551 if test -z "${ENABLE_LIBMCHECK}" \
8552 -a \( "${have_libpython}" = "no" \
8553 -o "${python_has_threads}" = "no" \) \
8554 && $development; then
8555 ENABLE_LIBMCHECK=yes
8556 fi
8557
8558 if test "$ENABLE_LIBMCHECK" = "yes" ; then
8559 if test "${have_libpython}" != "no" -a "${python_has_threads}" = "yes" ; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
8561 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
8564 $as_echo_n "checking for main in -lmcheck... " >&6; }
8565 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 ac_check_lib_save_LIBS=$LIBS
8569 LIBS="-lmcheck $LIBS"
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572
8573
8574 int
8575 main ()
8576 {
8577 return main ();
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 ac_cv_lib_mcheck_main=yes
8584 else
8585 ac_cv_lib_mcheck_main=no
8586 fi
8587 rm -f core conftest.err conftest.$ac_objext \
8588 conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
8592 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
8593 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
8594 cat >>confdefs.h <<_ACEOF
8595 #define HAVE_LIBMCHECK 1
8596 _ACEOF
8597
8598 LIBS="-lmcheck $LIBS"
8599
8600 fi
8601
8602 fi
8603
8604 # ------------------------- #
8605 # Checks for header files. #
8606 # ------------------------- #
8607
8608 ac_header_dirent=no
8609 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8610 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8612 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #include <sys/types.h>
8619 #include <$ac_hdr>
8620
8621 int
8622 main ()
8623 {
8624 if ((DIR *) 0)
8625 return 0;
8626 ;
8627 return 0;
8628 }
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"; then :
8631 eval "$as_ac_Header=yes"
8632 else
8633 eval "$as_ac_Header=no"
8634 fi
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637 eval ac_res=\$$as_ac_Header
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8639 $as_echo "$ac_res" >&6; }
8640 eval as_val=\$$as_ac_Header
8641 if test "x$as_val" = x""yes; then :
8642 cat >>confdefs.h <<_ACEOF
8643 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8644 _ACEOF
8645
8646 ac_header_dirent=$ac_hdr; break
8647 fi
8648
8649 done
8650 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8651 if test $ac_header_dirent = dirent.h; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8653 $as_echo_n "checking for library containing opendir... " >&6; }
8654 if test "${ac_cv_search_opendir+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 ac_func_search_save_LIBS=$LIBS
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660
8661 /* Override any GCC internal prototype to avoid an error.
8662 Use char because int might match the return type of a GCC
8663 builtin and then its argument prototype would still apply. */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 char opendir ();
8668 int
8669 main ()
8670 {
8671 return opendir ();
8672 ;
8673 return 0;
8674 }
8675 _ACEOF
8676 for ac_lib in '' dir; do
8677 if test -z "$ac_lib"; then
8678 ac_res="none required"
8679 else
8680 ac_res=-l$ac_lib
8681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8682 fi
8683 if ac_fn_c_try_link "$LINENO"; then :
8684 ac_cv_search_opendir=$ac_res
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext
8688 if test "${ac_cv_search_opendir+set}" = set; then :
8689 break
8690 fi
8691 done
8692 if test "${ac_cv_search_opendir+set}" = set; then :
8693
8694 else
8695 ac_cv_search_opendir=no
8696 fi
8697 rm conftest.$ac_ext
8698 LIBS=$ac_func_search_save_LIBS
8699 fi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8701 $as_echo "$ac_cv_search_opendir" >&6; }
8702 ac_res=$ac_cv_search_opendir
8703 if test "$ac_res" != no; then :
8704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8705
8706 fi
8707
8708 else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8710 $as_echo_n "checking for library containing opendir... " >&6; }
8711 if test "${ac_cv_search_opendir+set}" = set; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 ac_func_search_save_LIBS=$LIBS
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717
8718 /* Override any GCC internal prototype to avoid an error.
8719 Use char because int might match the return type of a GCC
8720 builtin and then its argument prototype would still apply. */
8721 #ifdef __cplusplus
8722 extern "C"
8723 #endif
8724 char opendir ();
8725 int
8726 main ()
8727 {
8728 return opendir ();
8729 ;
8730 return 0;
8731 }
8732 _ACEOF
8733 for ac_lib in '' x; do
8734 if test -z "$ac_lib"; then
8735 ac_res="none required"
8736 else
8737 ac_res=-l$ac_lib
8738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8739 fi
8740 if ac_fn_c_try_link "$LINENO"; then :
8741 ac_cv_search_opendir=$ac_res
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext
8745 if test "${ac_cv_search_opendir+set}" = set; then :
8746 break
8747 fi
8748 done
8749 if test "${ac_cv_search_opendir+set}" = set; then :
8750
8751 else
8752 ac_cv_search_opendir=no
8753 fi
8754 rm conftest.$ac_ext
8755 LIBS=$ac_func_search_save_LIBS
8756 fi
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8758 $as_echo "$ac_cv_search_opendir" >&6; }
8759 ac_res=$ac_cv_search_opendir
8760 if test "$ac_res" != no; then :
8761 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8762
8763 fi
8764
8765 fi
8766
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8768 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8769 if test "${ac_cv_header_stat_broken+set}" = set; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8774 #include <sys/types.h>
8775 #include <sys/stat.h>
8776
8777 #if defined S_ISBLK && defined S_IFDIR
8778 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8779 #endif
8780
8781 #if defined S_ISBLK && defined S_IFCHR
8782 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8783 #endif
8784
8785 #if defined S_ISLNK && defined S_IFREG
8786 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8787 #endif
8788
8789 #if defined S_ISSOCK && defined S_IFREG
8790 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8791 #endif
8792
8793 _ACEOF
8794 if ac_fn_c_try_compile "$LINENO"; then :
8795 ac_cv_header_stat_broken=no
8796 else
8797 ac_cv_header_stat_broken=yes
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8802 $as_echo "$ac_cv_header_stat_broken" >&6; }
8803 if test $ac_cv_header_stat_broken = yes; then
8804
8805 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8806
8807 fi
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8810 $as_echo_n "checking for ANSI C header files... " >&6; }
8811 if test "${ac_cv_header_stdc+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816 #include <stdlib.h>
8817 #include <stdarg.h>
8818 #include <string.h>
8819 #include <float.h>
8820
8821 int
8822 main ()
8823 {
8824
8825 ;
8826 return 0;
8827 }
8828 _ACEOF
8829 if ac_fn_c_try_compile "$LINENO"; then :
8830 ac_cv_header_stdc=yes
8831 else
8832 ac_cv_header_stdc=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835
8836 if test $ac_cv_header_stdc = yes; then
8837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include <string.h>
8841
8842 _ACEOF
8843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8844 $EGREP "memchr" >/dev/null 2>&1; then :
8845
8846 else
8847 ac_cv_header_stdc=no
8848 fi
8849 rm -f conftest*
8850
8851 fi
8852
8853 if test $ac_cv_header_stdc = yes; then
8854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 #include <stdlib.h>
8858
8859 _ACEOF
8860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8861 $EGREP "free" >/dev/null 2>&1; then :
8862
8863 else
8864 ac_cv_header_stdc=no
8865 fi
8866 rm -f conftest*
8867
8868 fi
8869
8870 if test $ac_cv_header_stdc = yes; then
8871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8872 if test "$cross_compiling" = yes; then :
8873 :
8874 else
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877 #include <ctype.h>
8878 #include <stdlib.h>
8879 #if ((' ' & 0x0FF) == 0x020)
8880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8882 #else
8883 # define ISLOWER(c) \
8884 (('a' <= (c) && (c) <= 'i') \
8885 || ('j' <= (c) && (c) <= 'r') \
8886 || ('s' <= (c) && (c) <= 'z'))
8887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8888 #endif
8889
8890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8891 int
8892 main ()
8893 {
8894 int i;
8895 for (i = 0; i < 256; i++)
8896 if (XOR (islower (i), ISLOWER (i))
8897 || toupper (i) != TOUPPER (i))
8898 return 2;
8899 return 0;
8900 }
8901 _ACEOF
8902 if ac_fn_c_try_run "$LINENO"; then :
8903
8904 else
8905 ac_cv_header_stdc=no
8906 fi
8907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8908 conftest.$ac_objext conftest.beam conftest.$ac_ext
8909 fi
8910
8911 fi
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8914 $as_echo "$ac_cv_header_stdc" >&6; }
8915 if test $ac_cv_header_stdc = yes; then
8916
8917 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8918
8919 fi
8920
8921 # elf_hp.h is for HP/UX 64-bit shared library support.
8922 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
8923 thread_db.h signal.h stddef.h \
8924 stdlib.h string.h memory.h strings.h sys/fault.h \
8925 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
8926 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
8927 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
8928 sys/types.h sys/wait.h wait.h termios.h termio.h \
8929 sgtty.h unistd.h elf_hp.h locale.h \
8930 dlfcn.h sys/socket.h sys/un.h
8931 do :
8932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8934 eval as_val=\$$as_ac_Header
8935 if test "x$as_val" = x""yes; then :
8936 cat >>confdefs.h <<_ACEOF
8937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8938 _ACEOF
8939
8940 fi
8941
8942 done
8943
8944 for ac_header in link.h
8945 do :
8946 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8947 # include <sys/types.h>
8948 #endif
8949 #if HAVE_NLIST_H
8950 # include <nlist.h>
8951 #endif
8952
8953 "
8954 if test "x$ac_cv_header_link_h" = x""yes; then :
8955 cat >>confdefs.h <<_ACEOF
8956 #define HAVE_LINK_H 1
8957 _ACEOF
8958
8959 fi
8960
8961 done
8962
8963 for ac_header in sys/proc.h
8964 do :
8965 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8966 # include <sys/param.h>
8967 #endif
8968
8969 "
8970 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
8971 cat >>confdefs.h <<_ACEOF
8972 #define HAVE_SYS_PROC_H 1
8973 _ACEOF
8974
8975 fi
8976
8977 done
8978
8979 for ac_header in sys/user.h
8980 do :
8981 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8982 # include <sys/param.h>
8983 #endif
8984
8985 "
8986 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
8987 cat >>confdefs.h <<_ACEOF
8988 #define HAVE_SYS_USER_H 1
8989 _ACEOF
8990
8991 fi
8992
8993 done
8994
8995
8996 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8997 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8998 # think that we don't have <curses.h> if we're using GCC.
8999 case $host_os in
9000 solaris2.[789])
9001 if test "$GCC" = yes; then
9002
9003 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9004
9005 fi ;;
9006 esac
9007 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
9008 do :
9009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9010 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9011 eval as_val=\$$as_ac_Header
9012 if test "x$as_val" = x""yes; then :
9013 cat >>confdefs.h <<_ACEOF
9014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9015 _ACEOF
9016
9017 fi
9018
9019 done
9020
9021 for ac_header in term.h
9022 do :
9023 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9024 # include <curses.h>
9025 #endif
9026
9027 "
9028 if test "x$ac_cv_header_term_h" = x""yes; then :
9029 cat >>confdefs.h <<_ACEOF
9030 #define HAVE_TERM_H 1
9031 _ACEOF
9032
9033 fi
9034
9035 done
9036
9037
9038 # ------------------------- #
9039 # Checks for declarations. #
9040 # ------------------------- #
9041
9042 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9043 if test "x$ac_cv_have_decl_free" = x""yes; then :
9044 ac_have_decl=1
9045 else
9046 ac_have_decl=0
9047 fi
9048
9049 cat >>confdefs.h <<_ACEOF
9050 #define HAVE_DECL_FREE $ac_have_decl
9051 _ACEOF
9052 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9053 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
9054 ac_have_decl=1
9055 else
9056 ac_have_decl=0
9057 fi
9058
9059 cat >>confdefs.h <<_ACEOF
9060 #define HAVE_DECL_MALLOC $ac_have_decl
9061 _ACEOF
9062 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9063 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
9064 ac_have_decl=1
9065 else
9066 ac_have_decl=0
9067 fi
9068
9069 cat >>confdefs.h <<_ACEOF
9070 #define HAVE_DECL_REALLOC $ac_have_decl
9071 _ACEOF
9072 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
9073 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
9074 ac_have_decl=1
9075 else
9076 ac_have_decl=0
9077 fi
9078
9079 cat >>confdefs.h <<_ACEOF
9080 #define HAVE_DECL_STRERROR $ac_have_decl
9081 _ACEOF
9082 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9083 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
9084 ac_have_decl=1
9085 else
9086 ac_have_decl=0
9087 fi
9088
9089 cat >>confdefs.h <<_ACEOF
9090 #define HAVE_DECL_STRSTR $ac_have_decl
9091 _ACEOF
9092 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9093 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
9094 ac_have_decl=1
9095 else
9096 ac_have_decl=0
9097 fi
9098
9099 cat >>confdefs.h <<_ACEOF
9100 #define HAVE_DECL_GETOPT $ac_have_decl
9101 _ACEOF
9102 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9103 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9104 ac_have_decl=1
9105 else
9106 ac_have_decl=0
9107 fi
9108
9109 cat >>confdefs.h <<_ACEOF
9110 #define HAVE_DECL_SNPRINTF $ac_have_decl
9111 _ACEOF
9112 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9113 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
9114 ac_have_decl=1
9115 else
9116 ac_have_decl=0
9117 fi
9118
9119 cat >>confdefs.h <<_ACEOF
9120 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9121 _ACEOF
9122
9123
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9125 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9126 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 #include <locale.h>
9132 int
9133 main ()
9134 {
9135 return LC_MESSAGES
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"; then :
9141 am_cv_val_LC_MESSAGES=yes
9142 else
9143 am_cv_val_LC_MESSAGES=no
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9149 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9150 if test $am_cv_val_LC_MESSAGES = yes; then
9151
9152 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9153
9154 fi
9155
9156
9157 # ----------------------- #
9158 # Checks for structures. #
9159 # ----------------------- #
9160
9161 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9162 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9163
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9166 _ACEOF
9167
9168
9169 fi
9170 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9171 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9175 _ACEOF
9176
9177
9178 fi
9179
9180
9181 # ------------------ #
9182 # Checks for types. #
9183 # ------------------ #
9184
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9186 $as_echo_n "checking return type of signal handlers... " >&6; }
9187 if test "${ac_cv_type_signal+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192 #include <sys/types.h>
9193 #include <signal.h>
9194
9195 int
9196 main ()
9197 {
9198 return *(signal (0, 0)) (0) == 1;
9199 ;
9200 return 0;
9201 }
9202 _ACEOF
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204 ac_cv_type_signal=int
9205 else
9206 ac_cv_type_signal=void
9207 fi
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9211 $as_echo "$ac_cv_type_signal" >&6; }
9212
9213 cat >>confdefs.h <<_ACEOF
9214 #define RETSIGTYPE $ac_cv_type_signal
9215 _ACEOF
9216
9217
9218 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9219 #include <sys/socket.h>
9220
9221 "
9222 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9223
9224 cat >>confdefs.h <<_ACEOF
9225 #define HAVE_SOCKLEN_T 1
9226 _ACEOF
9227
9228
9229 fi
9230
9231
9232 # ------------------------------------- #
9233 # Checks for compiler characteristics. #
9234 # ------------------------------------- #
9235
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9237 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9238 if test "${ac_cv_c_const+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243
9244 int
9245 main ()
9246 {
9247 /* FIXME: Include the comments suggested by Paul. */
9248 #ifndef __cplusplus
9249 /* Ultrix mips cc rejects this. */
9250 typedef int charset[2];
9251 const charset cs;
9252 /* SunOS 4.1.1 cc rejects this. */
9253 char const *const *pcpcc;
9254 char **ppc;
9255 /* NEC SVR4.0.2 mips cc rejects this. */
9256 struct point {int x, y;};
9257 static struct point const zero = {0,0};
9258 /* AIX XL C 1.02.0.0 rejects this.
9259 It does not let you subtract one const X* pointer from another in
9260 an arm of an if-expression whose if-part is not a constant
9261 expression */
9262 const char *g = "string";
9263 pcpcc = &g + (g ? g-g : 0);
9264 /* HPUX 7.0 cc rejects these. */
9265 ++pcpcc;
9266 ppc = (char**) pcpcc;
9267 pcpcc = (char const *const *) ppc;
9268 { /* SCO 3.2v4 cc rejects this. */
9269 char *t;
9270 char const *s = 0 ? (char *) 0 : (char const *) 0;
9271
9272 *t++ = 0;
9273 if (s) return 0;
9274 }
9275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9276 int x[] = {25, 17};
9277 const int *foo = &x[0];
9278 ++foo;
9279 }
9280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9281 typedef const int *iptr;
9282 iptr p = 0;
9283 ++p;
9284 }
9285 { /* AIX XL C 1.02.0.0 rejects this saying
9286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9287 struct s { int j; const int *ap[3]; };
9288 struct s *b; b->j = 5;
9289 }
9290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9291 const int foo = 10;
9292 if (!foo) return 0;
9293 }
9294 return !cs[0] && !zero.x;
9295 #endif
9296
9297 ;
9298 return 0;
9299 }
9300 _ACEOF
9301 if ac_fn_c_try_compile "$LINENO"; then :
9302 ac_cv_c_const=yes
9303 else
9304 ac_cv_c_const=no
9305 fi
9306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 fi
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9309 $as_echo "$ac_cv_c_const" >&6; }
9310 if test $ac_cv_c_const = no; then
9311
9312 $as_echo "#define const /**/" >>confdefs.h
9313
9314 fi
9315
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9317 $as_echo_n "checking for inline... " >&6; }
9318 if test "${ac_cv_c_inline+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 ac_cv_c_inline=no
9322 for ac_kw in inline __inline__ __inline; do
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 #ifndef __cplusplus
9326 typedef int foo_t;
9327 static $ac_kw foo_t static_foo () {return 0; }
9328 $ac_kw foo_t foo () {return 0; }
9329 #endif
9330
9331 _ACEOF
9332 if ac_fn_c_try_compile "$LINENO"; then :
9333 ac_cv_c_inline=$ac_kw
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336 test "$ac_cv_c_inline" != no && break
9337 done
9338
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9341 $as_echo "$ac_cv_c_inline" >&6; }
9342
9343 case $ac_cv_c_inline in
9344 inline | yes) ;;
9345 *)
9346 case $ac_cv_c_inline in
9347 no) ac_val=;;
9348 *) ac_val=$ac_cv_c_inline;;
9349 esac
9350 cat >>confdefs.h <<_ACEOF
9351 #ifndef __cplusplus
9352 #define inline $ac_val
9353 #endif
9354 _ACEOF
9355 ;;
9356 esac
9357
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9359 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9360 if test "${ac_cv_c_bigendian+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 ac_cv_c_bigendian=unknown
9364 # See if we're dealing with a universal compiler.
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 #ifndef __APPLE_CC__
9368 not a universal capable compiler
9369 #endif
9370 typedef int dummy;
9371
9372 _ACEOF
9373 if ac_fn_c_try_compile "$LINENO"; then :
9374
9375 # Check for potential -arch flags. It is not universal unless
9376 # there are at least two -arch flags with different values.
9377 ac_arch=
9378 ac_prev=
9379 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9380 if test -n "$ac_prev"; then
9381 case $ac_word in
9382 i?86 | x86_64 | ppc | ppc64)
9383 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9384 ac_arch=$ac_word
9385 else
9386 ac_cv_c_bigendian=universal
9387 break
9388 fi
9389 ;;
9390 esac
9391 ac_prev=
9392 elif test "x$ac_word" = "x-arch"; then
9393 ac_prev=arch
9394 fi
9395 done
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 if test $ac_cv_c_bigendian = unknown; then
9399 # See if sys/param.h defines the BYTE_ORDER macro.
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402 #include <sys/types.h>
9403 #include <sys/param.h>
9404
9405 int
9406 main ()
9407 {
9408 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9409 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9410 && LITTLE_ENDIAN)
9411 bogus endian macros
9412 #endif
9413
9414 ;
9415 return 0;
9416 }
9417 _ACEOF
9418 if ac_fn_c_try_compile "$LINENO"; then :
9419 # It does; now see whether it defined to BIG_ENDIAN or not.
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422 #include <sys/types.h>
9423 #include <sys/param.h>
9424
9425 int
9426 main ()
9427 {
9428 #if BYTE_ORDER != BIG_ENDIAN
9429 not big endian
9430 #endif
9431
9432 ;
9433 return 0;
9434 }
9435 _ACEOF
9436 if ac_fn_c_try_compile "$LINENO"; then :
9437 ac_cv_c_bigendian=yes
9438 else
9439 ac_cv_c_bigendian=no
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9442 fi
9443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444 fi
9445 if test $ac_cv_c_bigendian = unknown; then
9446 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449 #include <limits.h>
9450
9451 int
9452 main ()
9453 {
9454 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9455 bogus endian macros
9456 #endif
9457
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_compile "$LINENO"; then :
9463 # It does; now see whether it defined to _BIG_ENDIAN or not.
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 #include <limits.h>
9467
9468 int
9469 main ()
9470 {
9471 #ifndef _BIG_ENDIAN
9472 not big endian
9473 #endif
9474
9475 ;
9476 return 0;
9477 }
9478 _ACEOF
9479 if ac_fn_c_try_compile "$LINENO"; then :
9480 ac_cv_c_bigendian=yes
9481 else
9482 ac_cv_c_bigendian=no
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 fi
9488 if test $ac_cv_c_bigendian = unknown; then
9489 # Compile a test program.
9490 if test "$cross_compiling" = yes; then :
9491 # Try to guess by grepping values from an object file.
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 short int ascii_mm[] =
9495 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9496 short int ascii_ii[] =
9497 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9498 int use_ascii (int i) {
9499 return ascii_mm[i] + ascii_ii[i];
9500 }
9501 short int ebcdic_ii[] =
9502 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9503 short int ebcdic_mm[] =
9504 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9505 int use_ebcdic (int i) {
9506 return ebcdic_mm[i] + ebcdic_ii[i];
9507 }
9508 extern int foo;
9509
9510 int
9511 main ()
9512 {
9513 return use_ascii (foo) == use_ebcdic (foo);
9514 ;
9515 return 0;
9516 }
9517 _ACEOF
9518 if ac_fn_c_try_compile "$LINENO"; then :
9519 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9520 ac_cv_c_bigendian=yes
9521 fi
9522 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9523 if test "$ac_cv_c_bigendian" = unknown; then
9524 ac_cv_c_bigendian=no
9525 else
9526 # finding both strings is unlikely to happen, but who knows?
9527 ac_cv_c_bigendian=unknown
9528 fi
9529 fi
9530 fi
9531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9532 else
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 $ac_includes_default
9536 int
9537 main ()
9538 {
9539
9540 /* Are we little or big endian? From Harbison&Steele. */
9541 union
9542 {
9543 long int l;
9544 char c[sizeof (long int)];
9545 } u;
9546 u.l = 1;
9547 return u.c[sizeof (long int) - 1] == 1;
9548
9549 ;
9550 return 0;
9551 }
9552 _ACEOF
9553 if ac_fn_c_try_run "$LINENO"; then :
9554 ac_cv_c_bigendian=no
9555 else
9556 ac_cv_c_bigendian=yes
9557 fi
9558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9559 conftest.$ac_objext conftest.beam conftest.$ac_ext
9560 fi
9561
9562 fi
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9565 $as_echo "$ac_cv_c_bigendian" >&6; }
9566 case $ac_cv_c_bigendian in #(
9567 yes)
9568 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9569 ;; #(
9570 no)
9571 ;; #(
9572 universal)
9573
9574 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9575
9576 ;; #(
9577 *)
9578 as_fn_error "unknown endianness
9579 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9580 esac
9581
9582
9583 # ------------------------------ #
9584 # Checks for library functions. #
9585 # ------------------------------ #
9586
9587 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9588 # for constant arguments. Useless!
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9590 $as_echo_n "checking for working alloca.h... " >&6; }
9591 if test "${ac_cv_working_alloca_h+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9596 #include <alloca.h>
9597 int
9598 main ()
9599 {
9600 char *p = (char *) alloca (2 * sizeof (int));
9601 if (p) return 0;
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607 ac_cv_working_alloca_h=yes
9608 else
9609 ac_cv_working_alloca_h=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9615 $as_echo "$ac_cv_working_alloca_h" >&6; }
9616 if test $ac_cv_working_alloca_h = yes; then
9617
9618 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9619
9620 fi
9621
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9623 $as_echo_n "checking for alloca... " >&6; }
9624 if test "${ac_cv_func_alloca_works+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 #ifdef __GNUC__
9630 # define alloca __builtin_alloca
9631 #else
9632 # ifdef _MSC_VER
9633 # include <malloc.h>
9634 # define alloca _alloca
9635 # else
9636 # ifdef HAVE_ALLOCA_H
9637 # include <alloca.h>
9638 # else
9639 # ifdef _AIX
9640 #pragma alloca
9641 # else
9642 # ifndef alloca /* predefined by HP cc +Olibcalls */
9643 char *alloca ();
9644 # endif
9645 # endif
9646 # endif
9647 # endif
9648 #endif
9649
9650 int
9651 main ()
9652 {
9653 char *p = (char *) alloca (1);
9654 if (p) return 0;
9655 ;
9656 return 0;
9657 }
9658 _ACEOF
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 ac_cv_func_alloca_works=yes
9661 else
9662 ac_cv_func_alloca_works=no
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9668 $as_echo "$ac_cv_func_alloca_works" >&6; }
9669
9670 if test $ac_cv_func_alloca_works = yes; then
9671
9672 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9673
9674 else
9675 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9676 # that cause trouble. Some versions do not even contain alloca or
9677 # contain a buggy version. If you still want to use their alloca,
9678 # use ar to extract alloca.o from them instead of compiling alloca.c.
9679
9680 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9681
9682 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9683
9684
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9686 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9687 if test "${ac_cv_os_cray+set}" = set; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 #if defined CRAY && ! defined CRAY2
9693 webecray
9694 #else
9695 wenotbecray
9696 #endif
9697
9698 _ACEOF
9699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9700 $EGREP "webecray" >/dev/null 2>&1; then :
9701 ac_cv_os_cray=yes
9702 else
9703 ac_cv_os_cray=no
9704 fi
9705 rm -f conftest*
9706
9707 fi
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9709 $as_echo "$ac_cv_os_cray" >&6; }
9710 if test $ac_cv_os_cray = yes; then
9711 for ac_func in _getb67 GETB67 getb67; do
9712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9714 eval as_val=\$$as_ac_var
9715 if test "x$as_val" = x""yes; then :
9716
9717 cat >>confdefs.h <<_ACEOF
9718 #define CRAY_STACKSEG_END $ac_func
9719 _ACEOF
9720
9721 break
9722 fi
9723
9724 done
9725 fi
9726
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9728 $as_echo_n "checking stack direction for C alloca... " >&6; }
9729 if test "${ac_cv_c_stack_direction+set}" = set; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 if test "$cross_compiling" = yes; then :
9733 ac_cv_c_stack_direction=0
9734 else
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 $ac_includes_default
9738 int
9739 find_stack_direction ()
9740 {
9741 static char *addr = 0;
9742 auto char dummy;
9743 if (addr == 0)
9744 {
9745 addr = &dummy;
9746 return find_stack_direction ();
9747 }
9748 else
9749 return (&dummy > addr) ? 1 : -1;
9750 }
9751
9752 int
9753 main ()
9754 {
9755 return find_stack_direction () < 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_run "$LINENO"; then :
9759 ac_cv_c_stack_direction=1
9760 else
9761 ac_cv_c_stack_direction=-1
9762 fi
9763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9764 conftest.$ac_objext conftest.beam conftest.$ac_ext
9765 fi
9766
9767 fi
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9769 $as_echo "$ac_cv_c_stack_direction" >&6; }
9770 cat >>confdefs.h <<_ACEOF
9771 #define STACK_DIRECTION $ac_cv_c_stack_direction
9772 _ACEOF
9773
9774
9775 fi
9776
9777 for ac_header in stdlib.h unistd.h
9778 do :
9779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9781 eval as_val=\$$as_ac_Header
9782 if test "x$as_val" = x""yes; then :
9783 cat >>confdefs.h <<_ACEOF
9784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9785 _ACEOF
9786
9787 fi
9788
9789 done
9790
9791 for ac_func in getpagesize
9792 do :
9793 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9794 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9795 cat >>confdefs.h <<_ACEOF
9796 #define HAVE_GETPAGESIZE 1
9797 _ACEOF
9798
9799 fi
9800 done
9801
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9803 $as_echo_n "checking for working mmap... " >&6; }
9804 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 if test "$cross_compiling" = yes; then :
9808 ac_cv_func_mmap_fixed_mapped=no
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 $ac_includes_default
9813 /* malloc might have been renamed as rpl_malloc. */
9814 #undef malloc
9815
9816 /* Thanks to Mike Haertel and Jim Avera for this test.
9817 Here is a matrix of mmap possibilities:
9818 mmap private not fixed
9819 mmap private fixed at somewhere currently unmapped
9820 mmap private fixed at somewhere already mapped
9821 mmap shared not fixed
9822 mmap shared fixed at somewhere currently unmapped
9823 mmap shared fixed at somewhere already mapped
9824 For private mappings, we should verify that changes cannot be read()
9825 back from the file, nor mmap's back from the file at a different
9826 address. (There have been systems where private was not correctly
9827 implemented like the infamous i386 svr4.0, and systems where the
9828 VM page cache was not coherent with the file system buffer cache
9829 like early versions of FreeBSD and possibly contemporary NetBSD.)
9830 For shared mappings, we should conversely verify that changes get
9831 propagated back to all the places they're supposed to be.
9832
9833 Grep wants private fixed already mapped.
9834 The main things grep needs to know about mmap are:
9835 * does it exist and is it safe to write into the mmap'd area
9836 * how to use it (BSD variants) */
9837
9838 #include <fcntl.h>
9839 #include <sys/mman.h>
9840
9841 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9842 char *malloc ();
9843 #endif
9844
9845 /* This mess was copied from the GNU getpagesize.h. */
9846 #ifndef HAVE_GETPAGESIZE
9847 /* Assume that all systems that can run configure have sys/param.h. */
9848 # ifndef HAVE_SYS_PARAM_H
9849 # define HAVE_SYS_PARAM_H 1
9850 # endif
9851
9852 # ifdef _SC_PAGESIZE
9853 # define getpagesize() sysconf(_SC_PAGESIZE)
9854 # else /* no _SC_PAGESIZE */
9855 # ifdef HAVE_SYS_PARAM_H
9856 # include <sys/param.h>
9857 # ifdef EXEC_PAGESIZE
9858 # define getpagesize() EXEC_PAGESIZE
9859 # else /* no EXEC_PAGESIZE */
9860 # ifdef NBPG
9861 # define getpagesize() NBPG * CLSIZE
9862 # ifndef CLSIZE
9863 # define CLSIZE 1
9864 # endif /* no CLSIZE */
9865 # else /* no NBPG */
9866 # ifdef NBPC
9867 # define getpagesize() NBPC
9868 # else /* no NBPC */
9869 # ifdef PAGESIZE
9870 # define getpagesize() PAGESIZE
9871 # endif /* PAGESIZE */
9872 # endif /* no NBPC */
9873 # endif /* no NBPG */
9874 # endif /* no EXEC_PAGESIZE */
9875 # else /* no HAVE_SYS_PARAM_H */
9876 # define getpagesize() 8192 /* punt totally */
9877 # endif /* no HAVE_SYS_PARAM_H */
9878 # endif /* no _SC_PAGESIZE */
9879
9880 #endif /* no HAVE_GETPAGESIZE */
9881
9882 int
9883 main ()
9884 {
9885 char *data, *data2, *data3;
9886 int i, pagesize;
9887 int fd;
9888
9889 pagesize = getpagesize ();
9890
9891 /* First, make a file with some known garbage in it. */
9892 data = (char *) malloc (pagesize);
9893 if (!data)
9894 return 1;
9895 for (i = 0; i < pagesize; ++i)
9896 *(data + i) = rand ();
9897 umask (0);
9898 fd = creat ("conftest.mmap", 0600);
9899 if (fd < 0)
9900 return 1;
9901 if (write (fd, data, pagesize) != pagesize)
9902 return 1;
9903 close (fd);
9904
9905 /* Next, try to mmap the file at a fixed address which already has
9906 something else allocated at it. If we can, also make sure that
9907 we see the same garbage. */
9908 fd = open ("conftest.mmap", O_RDWR);
9909 if (fd < 0)
9910 return 1;
9911 data2 = (char *) malloc (2 * pagesize);
9912 if (!data2)
9913 return 1;
9914 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9915 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9916 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9917 return 1;
9918 for (i = 0; i < pagesize; ++i)
9919 if (*(data + i) != *(data2 + i))
9920 return 1;
9921
9922 /* Finally, make sure that changes to the mapped area do not
9923 percolate back to the file as seen by read(). (This is a bug on
9924 some variants of i386 svr4.0.) */
9925 for (i = 0; i < pagesize; ++i)
9926 *(data2 + i) = *(data2 + i) + 1;
9927 data3 = (char *) malloc (pagesize);
9928 if (!data3)
9929 return 1;
9930 if (read (fd, data3, pagesize) != pagesize)
9931 return 1;
9932 for (i = 0; i < pagesize; ++i)
9933 if (*(data + i) != *(data3 + i))
9934 return 1;
9935 close (fd);
9936 return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_run "$LINENO"; then :
9940 ac_cv_func_mmap_fixed_mapped=yes
9941 else
9942 ac_cv_func_mmap_fixed_mapped=no
9943 fi
9944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9945 conftest.$ac_objext conftest.beam conftest.$ac_ext
9946 fi
9947
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9950 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9951 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9952
9953 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9954
9955 fi
9956 rm -f conftest.mmap
9957
9958 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9959 if test "x$ac_cv_type_pid_t" = x""yes; then :
9960
9961 else
9962
9963 cat >>confdefs.h <<_ACEOF
9964 #define pid_t int
9965 _ACEOF
9966
9967 fi
9968
9969 for ac_header in vfork.h
9970 do :
9971 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9972 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9973 cat >>confdefs.h <<_ACEOF
9974 #define HAVE_VFORK_H 1
9975 _ACEOF
9976
9977 fi
9978
9979 done
9980
9981 for ac_func in fork vfork
9982 do :
9983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9985 eval as_val=\$$as_ac_var
9986 if test "x$as_val" = x""yes; then :
9987 cat >>confdefs.h <<_ACEOF
9988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9989 _ACEOF
9990
9991 fi
9992 done
9993
9994 if test "x$ac_cv_func_fork" = xyes; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9996 $as_echo_n "checking for working fork... " >&6; }
9997 if test "${ac_cv_func_fork_works+set}" = set; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 if test "$cross_compiling" = yes; then :
10001 ac_cv_func_fork_works=cross
10002 else
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 $ac_includes_default
10006 int
10007 main ()
10008 {
10009
10010 /* By Ruediger Kuhlmann. */
10011 return fork () < 0;
10012
10013 ;
10014 return 0;
10015 }
10016 _ACEOF
10017 if ac_fn_c_try_run "$LINENO"; then :
10018 ac_cv_func_fork_works=yes
10019 else
10020 ac_cv_func_fork_works=no
10021 fi
10022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10023 conftest.$ac_objext conftest.beam conftest.$ac_ext
10024 fi
10025
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10028 $as_echo "$ac_cv_func_fork_works" >&6; }
10029
10030 else
10031 ac_cv_func_fork_works=$ac_cv_func_fork
10032 fi
10033 if test "x$ac_cv_func_fork_works" = xcross; then
10034 case $host in
10035 *-*-amigaos* | *-*-msdosdjgpp*)
10036 # Override, as these systems have only a dummy fork() stub
10037 ac_cv_func_fork_works=no
10038 ;;
10039 *)
10040 ac_cv_func_fork_works=yes
10041 ;;
10042 esac
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10044 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10045 fi
10046 ac_cv_func_vfork_works=$ac_cv_func_vfork
10047 if test "x$ac_cv_func_vfork" = xyes; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10049 $as_echo_n "checking for working vfork... " >&6; }
10050 if test "${ac_cv_func_vfork_works+set}" = set; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 if test "$cross_compiling" = yes; then :
10054 ac_cv_func_vfork_works=cross
10055 else
10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10058 /* Thanks to Paul Eggert for this test. */
10059 $ac_includes_default
10060 #include <sys/wait.h>
10061 #ifdef HAVE_VFORK_H
10062 # include <vfork.h>
10063 #endif
10064 /* On some sparc systems, changes by the child to local and incoming
10065 argument registers are propagated back to the parent. The compiler
10066 is told about this with #include <vfork.h>, but some compilers
10067 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10068 static variable whose address is put into a register that is
10069 clobbered by the vfork. */
10070 static void
10071 #ifdef __cplusplus
10072 sparc_address_test (int arg)
10073 # else
10074 sparc_address_test (arg) int arg;
10075 #endif
10076 {
10077 static pid_t child;
10078 if (!child) {
10079 child = vfork ();
10080 if (child < 0) {
10081 perror ("vfork");
10082 _exit(2);
10083 }
10084 if (!child) {
10085 arg = getpid();
10086 write(-1, "", 0);
10087 _exit (arg);
10088 }
10089 }
10090 }
10091
10092 int
10093 main ()
10094 {
10095 pid_t parent = getpid ();
10096 pid_t child;
10097
10098 sparc_address_test (0);
10099
10100 child = vfork ();
10101
10102 if (child == 0) {
10103 /* Here is another test for sparc vfork register problems. This
10104 test uses lots of local variables, at least as many local
10105 variables as main has allocated so far including compiler
10106 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10107 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10108 reuse the register of parent for one of the local variables,
10109 since it will think that parent can't possibly be used any more
10110 in this routine. Assigning to the local variable will thus
10111 munge parent in the parent process. */
10112 pid_t
10113 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10114 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10115 /* Convince the compiler that p..p7 are live; otherwise, it might
10116 use the same hardware register for all 8 local variables. */
10117 if (p != p1 || p != p2 || p != p3 || p != p4
10118 || p != p5 || p != p6 || p != p7)
10119 _exit(1);
10120
10121 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10122 from child file descriptors. If the child closes a descriptor
10123 before it execs or exits, this munges the parent's descriptor
10124 as well. Test for this by closing stdout in the child. */
10125 _exit(close(fileno(stdout)) != 0);
10126 } else {
10127 int status;
10128 struct stat st;
10129
10130 while (wait(&status) != child)
10131 ;
10132 return (
10133 /* Was there some problem with vforking? */
10134 child < 0
10135
10136 /* Did the child fail? (This shouldn't happen.) */
10137 || status
10138
10139 /* Did the vfork/compiler bug occur? */
10140 || parent != getpid()
10141
10142 /* Did the file descriptor bug occur? */
10143 || fstat(fileno(stdout), &st) != 0
10144 );
10145 }
10146 }
10147 _ACEOF
10148 if ac_fn_c_try_run "$LINENO"; then :
10149 ac_cv_func_vfork_works=yes
10150 else
10151 ac_cv_func_vfork_works=no
10152 fi
10153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10154 conftest.$ac_objext conftest.beam conftest.$ac_ext
10155 fi
10156
10157 fi
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10159 $as_echo "$ac_cv_func_vfork_works" >&6; }
10160
10161 fi;
10162 if test "x$ac_cv_func_fork_works" = xcross; then
10163 ac_cv_func_vfork_works=$ac_cv_func_vfork
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10165 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10166 fi
10167
10168 if test "x$ac_cv_func_vfork_works" = xyes; then
10169
10170 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10171
10172 else
10173
10174 $as_echo "#define vfork fork" >>confdefs.h
10175
10176 fi
10177 if test "x$ac_cv_func_fork_works" = xyes; then
10178
10179 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10180
10181 fi
10182
10183 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10184 pipe poll pread pread64 pwrite readlink resize_term \
10185 sbrk setpgid setpgrp setsid \
10186 sigaction sigprocmask sigsetmask socketpair syscall \
10187 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10188 setrlimit getrlimit posix_madvise waitpid lstat
10189 do :
10190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10192 eval as_val=\$$as_ac_var
10193 if test "x$as_val" = x""yes; then :
10194 cat >>confdefs.h <<_ACEOF
10195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10196 _ACEOF
10197
10198 fi
10199 done
10200
10201
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10203 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10204 if test "${am_cv_langinfo_codeset+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 #include <langinfo.h>
10210 int
10211 main ()
10212 {
10213 char* cs = nl_langinfo(CODESET);
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219 am_cv_langinfo_codeset=yes
10220 else
10221 am_cv_langinfo_codeset=no
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10228 $as_echo "$am_cv_langinfo_codeset" >&6; }
10229 if test $am_cv_langinfo_codeset = yes; then
10230
10231 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10232
10233 fi
10234
10235
10236 # Check the return and argument types of ptrace. No canned test for
10237 # this, so roll our own.
10238 gdb_ptrace_headers='
10239 #if HAVE_SYS_TYPES_H
10240 # include <sys/types.h>
10241 #endif
10242 #if HAVE_SYS_PTRACE_H
10243 # include <sys/ptrace.h>
10244 #endif
10245 #if HAVE_UNISTD_H
10246 # include <unistd.h>
10247 #endif
10248 '
10249 # There is no point in checking if we don't have a prototype.
10250 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10251 "
10252 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10253 ac_have_decl=1
10254 else
10255 ac_have_decl=0
10256 fi
10257
10258 cat >>confdefs.h <<_ACEOF
10259 #define HAVE_DECL_PTRACE $ac_have_decl
10260 _ACEOF
10261 if test $ac_have_decl = 1; then :
10262
10263 else
10264
10265 : ${gdb_cv_func_ptrace_ret='int'}
10266 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10267
10268 fi
10269
10270 # Check return type. Varargs (used on GNU/Linux) conflict with the
10271 # empty argument list, so check for that explicitly.
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10273 $as_echo_n "checking return type of ptrace... " >&6; }
10274 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10275 $as_echo_n "(cached) " >&6
10276 else
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 $gdb_ptrace_headers
10280 int
10281 main ()
10282 {
10283 extern long ptrace (enum __ptrace_request, ...);
10284 ;
10285 return 0;
10286 }
10287 _ACEOF
10288 if ac_fn_c_try_compile "$LINENO"; then :
10289 gdb_cv_func_ptrace_ret='long'
10290 else
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 $gdb_ptrace_headers
10294 int
10295 main ()
10296 {
10297 extern int ptrace ();
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_c_try_compile "$LINENO"; then :
10303 gdb_cv_func_ptrace_ret='int'
10304 else
10305 gdb_cv_func_ptrace_ret='long'
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10312 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10313
10314 cat >>confdefs.h <<_ACEOF
10315 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10316 _ACEOF
10317
10318 # Check argument types.
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10320 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10321 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 $gdb_ptrace_headers
10328 int
10329 main ()
10330 {
10331 extern long ptrace (enum __ptrace_request, ...);
10332 ;
10333 return 0;
10334 }
10335 _ACEOF
10336 if ac_fn_c_try_compile "$LINENO"; then :
10337 gdb_cv_func_ptrace_args='int,int,long,long'
10338 else
10339
10340 for gdb_arg1 in 'int' 'long'; do
10341 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10342 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10343 for gdb_arg4 in 'int' 'long'; do
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346 $gdb_ptrace_headers
10347 int
10348 main ()
10349 {
10350
10351 extern $gdb_cv_func_ptrace_ret
10352 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10353
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 if ac_fn_c_try_compile "$LINENO"; then :
10359 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10360 break 4;
10361 fi
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10363 for gdb_arg5 in 'int *' 'int' 'long'; do
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 $gdb_ptrace_headers
10367 int
10368 main ()
10369 {
10370
10371 extern $gdb_cv_func_ptrace_ret
10372 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10373
10374 ;
10375 return 0;
10376 }
10377 _ACEOF
10378 if ac_fn_c_try_compile "$LINENO"; then :
10379
10380 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10381 break 5;
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 done
10385 done
10386 done
10387 done
10388 done
10389 # Provide a safe default value.
10390 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10391
10392 fi
10393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10394 fi
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10396 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10397 ac_save_IFS=$IFS; IFS=','
10398 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10399 IFS=$ac_save_IFS
10400 shift
10401
10402 cat >>confdefs.h <<_ACEOF
10403 #define PTRACE_TYPE_ARG3 $3
10404 _ACEOF
10405
10406 if test -n "$5"; then
10407
10408 cat >>confdefs.h <<_ACEOF
10409 #define PTRACE_TYPE_ARG5 $5
10410 _ACEOF
10411
10412 fi
10413
10414 if test "$cross_compiling" = no; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10416 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10417 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 if test "$cross_compiling" = yes; then :
10421 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
10422 else
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 $ac_includes_default
10426 int
10427 main ()
10428 {
10429 /* If this system has a BSD-style setpgrp which takes arguments,
10430 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10431 exit successfully. */
10432 return setpgrp (1,1) != -1;
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 if ac_fn_c_try_run "$LINENO"; then :
10438 ac_cv_func_setpgrp_void=no
10439 else
10440 ac_cv_func_setpgrp_void=yes
10441 fi
10442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10443 conftest.$ac_objext conftest.beam conftest.$ac_ext
10444 fi
10445
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10448 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10449 if test $ac_cv_func_setpgrp_void = yes; then
10450
10451 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10452
10453 fi
10454
10455 else
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10457 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10458 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10463
10464 #include <unistd.h>
10465
10466 int
10467 main ()
10468 {
10469
10470 if (setpgrp(1,1) == -1)
10471 exit (0);
10472 else
10473 exit (1);
10474
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_compile "$LINENO"; then :
10480 ac_cv_func_setpgrp_void=no
10481 else
10482 ac_cv_func_setpgrp_void=yes
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 fi
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10487 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10488 if test $ac_cv_func_setpgrp_void = yes; then
10489 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10490
10491 fi
10492 fi
10493
10494 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10495 # since sigsetjmp might only be defined as a macro.
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10497 $as_echo_n "checking for sigsetjmp... " >&6; }
10498 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503
10504 #include <setjmp.h>
10505
10506 int
10507 main ()
10508 {
10509 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10510 ;
10511 return 0;
10512 }
10513 _ACEOF
10514 if ac_fn_c_try_compile "$LINENO"; then :
10515 gdb_cv_func_sigsetjmp=yes
10516 else
10517 gdb_cv_func_sigsetjmp=no
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10520 fi
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10522 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10523 if test $gdb_cv_func_sigsetjmp = yes; then
10524
10525 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10526
10527 fi
10528
10529 # Assume we'll default to using the included libiberty regex.
10530 gdb_use_included_regex=yes
10531
10532 # However, if the system regex is GNU regex, then default to *not*
10533 # using the included regex.
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10535 $as_echo_n "checking for GNU regex... " >&6; }
10536 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10541 #include <gnu-versions.h>
10542 int
10543 main ()
10544 {
10545 #define REGEX_INTERFACE_VERSION 1
10546 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10547 # error "Version mismatch"
10548 #endif
10549 ;
10550 return 0;
10551 }
10552 _ACEOF
10553 if ac_fn_c_try_compile "$LINENO"; then :
10554 gdb_cv_have_gnu_regex=yes
10555 else
10556 gdb_cv_have_gnu_regex=no
10557 fi
10558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559 fi
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10561 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10562 if test $gdb_cv_have_gnu_regex = yes; then
10563 gdb_use_included_regex=no
10564 fi
10565
10566
10567 # Check whether --with-included-regex was given.
10568 if test "${with_included_regex+set}" = set; then :
10569 withval=$with_included_regex; gdb_with_regex=$withval
10570 else
10571 gdb_with_regex=$gdb_use_included_regex
10572 fi
10573
10574 if test "$gdb_with_regex" = yes; then
10575
10576 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10577
10578 fi
10579
10580 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10581 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10582 #include <sys/proc.h>
10583
10584 "
10585 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
10586
10587 cat >>confdefs.h <<_ACEOF
10588 #define HAVE_STRUCT_THREAD_TD_PCB 1
10589 _ACEOF
10590
10591
10592 fi
10593
10594
10595 # See if <sys/lwp.h> defines `struct lwp`.
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10597 $as_echo_n "checking for struct lwp... " >&6; }
10598 if test "${gdb_cv_struct_lwp+set}" = set; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10603 #include <sys/param.h>
10604 #include <sys/lwp.h>
10605 int
10606 main ()
10607 {
10608 struct lwp l;
10609 ;
10610 return 0;
10611 }
10612 _ACEOF
10613 if ac_fn_c_try_compile "$LINENO"; then :
10614 gdb_cv_struct_lwp=yes
10615 else
10616 gdb_cv_struct_lwp=no
10617 fi
10618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 fi
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10621 $as_echo "$gdb_cv_struct_lwp" >&6; }
10622 if test $gdb_cv_struct_lwp = yes; then
10623
10624 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10625
10626 fi
10627
10628 # See if <machine/reg.h> degines `struct reg'.
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10630 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10631 if test "${gdb_cv_struct_reg+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10637 #include <machine/reg.h>
10638 int
10639 main ()
10640 {
10641 struct reg r;
10642 ;
10643 return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_compile "$LINENO"; then :
10647 gdb_cv_struct_reg=yes
10648 else
10649 gdb_cv_struct_reg=no
10650 fi
10651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10654 $as_echo "$gdb_cv_struct_reg" >&6; }
10655 if test $gdb_cv_struct_reg = yes; then
10656
10657 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10658
10659 fi
10660
10661 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10662 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10663 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10664 "
10665 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
10666
10667 cat >>confdefs.h <<_ACEOF
10668 #define HAVE_STRUCT_REG_R_FS 1
10669 _ACEOF
10670
10671
10672 fi
10673 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10674 "
10675 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
10676
10677 cat >>confdefs.h <<_ACEOF
10678 #define HAVE_STRUCT_REG_R_GS 1
10679 _ACEOF
10680
10681
10682 fi
10683
10684
10685 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
10686 # Older amd64 Linux's don't have the fs_base and gs_base members of
10687 # `struct user_regs_struct'.
10688 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>
10689 "
10690 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
10691
10692 cat >>confdefs.h <<_ACEOF
10693 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
10694 _ACEOF
10695
10696
10697 fi
10698 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>
10699 "
10700 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
10701
10702 cat >>confdefs.h <<_ACEOF
10703 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
10704 _ACEOF
10705
10706
10707 fi
10708
10709
10710 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10712 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10713 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #include <sys/ptrace.h>
10719 int
10720 main ()
10721 {
10722 PTRACE_GETREGS;
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_compile "$LINENO"; then :
10728 gdb_cv_have_ptrace_getregs=yes
10729 else
10730 gdb_cv_have_ptrace_getregs=no
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 fi
10734
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10736 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10737 if test $gdb_cv_have_ptrace_getregs = yes; then
10738
10739 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10740
10741 fi
10742
10743 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10745 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10746 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10751 #include <sys/ptrace.h>
10752 int
10753 main ()
10754 {
10755 PTRACE_GETFPXREGS;
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 if ac_fn_c_try_compile "$LINENO"; then :
10761 gdb_cv_have_ptrace_getfpxregs=yes
10762 else
10763 gdb_cv_have_ptrace_getfpxregs=no
10764 fi
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766 fi
10767
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10769 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10770 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10771
10772 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10773
10774 fi
10775
10776 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10778 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10779 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10781 else
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #include <sys/types.h>
10785 #include <sys/ptrace.h>
10786 int
10787 main ()
10788 {
10789 PT_GETDBREGS;
10790 ;
10791 return 0;
10792 }
10793 _ACEOF
10794 if ac_fn_c_try_compile "$LINENO"; then :
10795 gdb_cv_have_pt_getdbregs=yes
10796 else
10797 gdb_cv_have_pt_getdbregs=no
10798 fi
10799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10800 fi
10801
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10803 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10804 if test $gdb_cv_have_pt_getdbregs = yes; then
10805
10806 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10807
10808 fi
10809
10810 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10812 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10813 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10814 $as_echo_n "(cached) " >&6
10815 else
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10818 #include <sys/types.h>
10819 #include <sys/ptrace.h>
10820 int
10821 main ()
10822 {
10823 PT_GETXMMREGS;
10824 ;
10825 return 0;
10826 }
10827 _ACEOF
10828 if ac_fn_c_try_compile "$LINENO"; then :
10829 gdb_cv_have_pt_getxmmregs=yes
10830 else
10831 gdb_cv_have_pt_getxmmregs=no
10832 fi
10833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10834 fi
10835
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10837 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10838 if test $gdb_cv_have_pt_getxmmregs = yes; then
10839
10840 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10841
10842 fi
10843
10844 # Detect which type of /proc is in use, such as for Unixware or Solaris.
10845
10846 if test "${target}" = "${host}"; then
10847 case "${host}" in
10848 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
10849
10850 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10851
10852 ;;
10853 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
10854
10855 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10856
10857 ;;
10858 mips-sgi-irix5*)
10859 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10860
10861 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10862
10863 ;;
10864 esac
10865 fi
10866
10867 if test "$ac_cv_header_sys_procfs_h" = yes; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10869 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10870 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875
10876 #define _SYSCALL32
10877 /* Needed for new procfs interface on sparc-solaris. */
10878 #define _STRUCTURED_PROC 1
10879 #include <sys/procfs.h>
10880 int
10881 main ()
10882 {
10883 pstatus_t avar
10884 ;
10885 return 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_compile "$LINENO"; then :
10889 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10890 else
10891 bfd_cv_have_sys_procfs_type_pstatus_t=no
10892
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895 fi
10896
10897 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10898
10899 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10900
10901 fi
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10903 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10904
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10906 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10907 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912
10913 #define _SYSCALL32
10914 /* Needed for new procfs interface on sparc-solaris. */
10915 #define _STRUCTURED_PROC 1
10916 #include <sys/procfs.h>
10917 int
10918 main ()
10919 {
10920 prrun_t avar
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_c_try_compile "$LINENO"; then :
10926 bfd_cv_have_sys_procfs_type_prrun_t=yes
10927 else
10928 bfd_cv_have_sys_procfs_type_prrun_t=no
10929
10930 fi
10931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932 fi
10933
10934 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10935
10936 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10937
10938 fi
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10940 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10941
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10943 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10944 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949
10950 #define _SYSCALL32
10951 /* Needed for new procfs interface on sparc-solaris. */
10952 #define _STRUCTURED_PROC 1
10953 #include <sys/procfs.h>
10954 int
10955 main ()
10956 {
10957 gregset_t avar
10958 ;
10959 return 0;
10960 }
10961 _ACEOF
10962 if ac_fn_c_try_compile "$LINENO"; then :
10963 bfd_cv_have_sys_procfs_type_gregset_t=yes
10964 else
10965 bfd_cv_have_sys_procfs_type_gregset_t=no
10966
10967 fi
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 fi
10970
10971 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10972
10973 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10974
10975 fi
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10977 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10980 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10981 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986
10987 #define _SYSCALL32
10988 /* Needed for new procfs interface on sparc-solaris. */
10989 #define _STRUCTURED_PROC 1
10990 #include <sys/procfs.h>
10991 int
10992 main ()
10993 {
10994 fpregset_t avar
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_compile "$LINENO"; then :
11000 bfd_cv_have_sys_procfs_type_fpregset_t=yes
11001 else
11002 bfd_cv_have_sys_procfs_type_fpregset_t=no
11003
11004 fi
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 fi
11007
11008 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11009
11010 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11011
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11014 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11015
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11017 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11018 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11023
11024 #define _SYSCALL32
11025 /* Needed for new procfs interface on sparc-solaris. */
11026 #define _STRUCTURED_PROC 1
11027 #include <sys/procfs.h>
11028 int
11029 main ()
11030 {
11031 prgregset_t avar
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 if ac_fn_c_try_compile "$LINENO"; then :
11037 bfd_cv_have_sys_procfs_type_prgregset_t=yes
11038 else
11039 bfd_cv_have_sys_procfs_type_prgregset_t=no
11040
11041 fi
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 fi
11044
11045 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11046
11047 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11048
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11051 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11052
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11054 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11055 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060
11061 #define _SYSCALL32
11062 /* Needed for new procfs interface on sparc-solaris. */
11063 #define _STRUCTURED_PROC 1
11064 #include <sys/procfs.h>
11065 int
11066 main ()
11067 {
11068 prfpregset_t avar
11069 ;
11070 return 0;
11071 }
11072 _ACEOF
11073 if ac_fn_c_try_compile "$LINENO"; then :
11074 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
11075 else
11076 bfd_cv_have_sys_procfs_type_prfpregset_t=no
11077
11078 fi
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 fi
11081
11082 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11083
11084 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11085
11086 fi
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11088 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11089
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11091 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11092 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11093 $as_echo_n "(cached) " >&6
11094 else
11095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11097
11098 #define _SYSCALL32
11099 /* Needed for new procfs interface on sparc-solaris. */
11100 #define _STRUCTURED_PROC 1
11101 #include <sys/procfs.h>
11102 int
11103 main ()
11104 {
11105 prgregset32_t avar
11106 ;
11107 return 0;
11108 }
11109 _ACEOF
11110 if ac_fn_c_try_compile "$LINENO"; then :
11111 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11112 else
11113 bfd_cv_have_sys_procfs_type_prgregset32_t=no
11114
11115 fi
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 fi
11118
11119 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11120
11121 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11122
11123 fi
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11125 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11126
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11128 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11129 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11134
11135 #define _SYSCALL32
11136 /* Needed for new procfs interface on sparc-solaris. */
11137 #define _STRUCTURED_PROC 1
11138 #include <sys/procfs.h>
11139 int
11140 main ()
11141 {
11142 prfpregset32_t avar
11143 ;
11144 return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_compile "$LINENO"; then :
11148 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
11149 else
11150 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
11151
11152 fi
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11154 fi
11155
11156 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11157
11158 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11159
11160 fi
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11162 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11163
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11165 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11166 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171
11172 #define _SYSCALL32
11173 /* Needed for new procfs interface on sparc-solaris. */
11174 #define _STRUCTURED_PROC 1
11175 #include <sys/procfs.h>
11176 int
11177 main ()
11178 {
11179 lwpid_t avar
11180 ;
11181 return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_c_try_compile "$LINENO"; then :
11185 bfd_cv_have_sys_procfs_type_lwpid_t=yes
11186 else
11187 bfd_cv_have_sys_procfs_type_lwpid_t=no
11188
11189 fi
11190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191 fi
11192
11193 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11194
11195 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11196
11197 fi
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11199 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11200
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11202 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11203 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11208
11209 #define _SYSCALL32
11210 /* Needed for new procfs interface on sparc-solaris. */
11211 #define _STRUCTURED_PROC 1
11212 #include <sys/procfs.h>
11213 int
11214 main ()
11215 {
11216 psaddr_t avar
11217 ;
11218 return 0;
11219 }
11220 _ACEOF
11221 if ac_fn_c_try_compile "$LINENO"; then :
11222 bfd_cv_have_sys_procfs_type_psaddr_t=yes
11223 else
11224 bfd_cv_have_sys_procfs_type_psaddr_t=no
11225
11226 fi
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 fi
11229
11230 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11231
11232 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11233
11234 fi
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11236 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11237
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11239 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11240 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245
11246 #define _SYSCALL32
11247 /* Needed for new procfs interface on sparc-solaris. */
11248 #define _STRUCTURED_PROC 1
11249 #include <sys/procfs.h>
11250 int
11251 main ()
11252 {
11253 prsysent_t avar
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_c_try_compile "$LINENO"; then :
11259 bfd_cv_have_sys_procfs_type_prsysent_t=yes
11260 else
11261 bfd_cv_have_sys_procfs_type_prsysent_t=no
11262
11263 fi
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 fi
11266
11267 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11268
11269 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11270
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11273 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11274
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11276 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11277 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11279 else
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282
11283 #define _SYSCALL32
11284 /* Needed for new procfs interface on sparc-solaris. */
11285 #define _STRUCTURED_PROC 1
11286 #include <sys/procfs.h>
11287 int
11288 main ()
11289 {
11290 pr_sigset_t avar
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 if ac_fn_c_try_compile "$LINENO"; then :
11296 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11297 else
11298 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11299
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302 fi
11303
11304 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11305
11306 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11307
11308 fi
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11310 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11311
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11313 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11314 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11319
11320 #define _SYSCALL32
11321 /* Needed for new procfs interface on sparc-solaris. */
11322 #define _STRUCTURED_PROC 1
11323 #include <sys/procfs.h>
11324 int
11325 main ()
11326 {
11327 pr_sigaction64_t avar
11328 ;
11329 return 0;
11330 }
11331 _ACEOF
11332 if ac_fn_c_try_compile "$LINENO"; then :
11333 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11334 else
11335 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11336
11337 fi
11338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11339 fi
11340
11341 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11342
11343 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11344
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11347 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11348
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11350 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11351 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356
11357 #define _SYSCALL32
11358 /* Needed for new procfs interface on sparc-solaris. */
11359 #define _STRUCTURED_PROC 1
11360 #include <sys/procfs.h>
11361 int
11362 main ()
11363 {
11364 pr_siginfo64_t avar
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_compile "$LINENO"; then :
11370 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11371 else
11372 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11373
11374 fi
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 fi
11377
11378 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11379
11380 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11381
11382 fi
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11384 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11385
11386
11387
11388
11389
11390 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11392 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11393 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 if test "$cross_compiling" = yes; then :
11397 gdb_cv_prfpregset_t_broken=yes
11398 else
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401 #include <sys/procfs.h>
11402 int main ()
11403 {
11404 if (sizeof (prfpregset_t) == sizeof (void *))
11405 return 1;
11406 return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_run "$LINENO"; then :
11410 gdb_cv_prfpregset_t_broken=no
11411 else
11412 gdb_cv_prfpregset_t_broken=yes
11413 fi
11414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11415 conftest.$ac_objext conftest.beam conftest.$ac_ext
11416 fi
11417
11418 fi
11419
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11421 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11422 if test $gdb_cv_prfpregset_t_broken = yes; then
11423
11424 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11425
11426 fi
11427 fi
11428
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11431 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11432 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11433 $as_echo_n "(cached) " >&6
11434 else
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11437 #include <unistd.h>
11438 #include <sys/types.h>
11439 #include <sys/procfs.h>
11440
11441 int
11442 main ()
11443 {
11444
11445 int dummy;;
11446 dummy = ioctl(0, PIOCSET, &dummy);
11447
11448 ;
11449 return 0;
11450 }
11451 _ACEOF
11452 if ac_fn_c_try_compile "$LINENO"; then :
11453 gdb_cv_have_procfs_piocset=yes
11454 else
11455 gdb_cv_have_procfs_piocset=no
11456 fi
11457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458 fi
11459
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11461 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11462 if test $gdb_cv_have_procfs_piocset = yes; then
11463
11464 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11465
11466 fi
11467 fi
11468
11469 if test ${host} = ${target} ; then
11470
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11472 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11473 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11478 #include <link.h>
11479 int
11480 main ()
11481 {
11482 struct link_map lm; (void) lm.l_addr;
11483 ;
11484 return 0;
11485 }
11486 _ACEOF
11487 if ac_fn_c_try_compile "$LINENO"; then :
11488 gdb_cv_have_struct_link_map_with_l_members=yes
11489 else
11490 gdb_cv_have_struct_link_map_with_l_members=no
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 fi
11494
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11496 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11497 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11498
11499 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11500
11501 fi
11502
11503
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11505 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11506 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11511 #include <sys/types.h>
11512 #include <link.h>
11513 int
11514 main ()
11515 {
11516 struct link_map lm; (void) lm.lm_addr;
11517 ;
11518 return 0;
11519 }
11520 _ACEOF
11521 if ac_fn_c_try_compile "$LINENO"; then :
11522 gdb_cv_have_struct_link_map_with_lm_members=yes
11523 else
11524 gdb_cv_have_struct_link_map_with_lm_members=no
11525 fi
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 fi
11528
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11530 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11531 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11532
11533 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11534
11535 fi
11536
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11539 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11540 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11545 #include <sys/types.h>
11546 #ifdef HAVE_NLIST_H
11547 #include <nlist.h>
11548 #endif
11549 #include <link.h>
11550 int
11551 main ()
11552 {
11553 struct so_map lm; (void) lm.som_addr;
11554 ;
11555 return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_compile "$LINENO"; then :
11559 gdb_cv_have_struct_so_map_with_som_members=yes
11560 else
11561 gdb_cv_have_struct_so_map_with_som_members=no
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 fi
11565
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11567 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11568 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11569
11570 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11571
11572 fi
11573
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11576 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11577 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582 #define _SYSCALL32
11583 #include <sys/link.h>
11584 int
11585 main ()
11586 {
11587 struct link_map32 l;
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_compile "$LINENO"; then :
11593 gdb_cv_have_struct_link_map32=yes
11594 else
11595 gdb_cv_have_struct_link_map32=no
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11598 fi
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11601 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11602 if test $gdb_cv_have_struct_link_map32 = yes; then
11603
11604 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11605
11606
11607 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11608
11609 fi
11610 fi
11611
11612 # Check if the compiler supports the `long long' type.
11613
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11615 $as_echo_n "checking for long long support in compiler... " >&6; }
11616 if test "${gdb_cv_c_long_long+set}" = set; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621 extern long long foo;
11622 int
11623 main ()
11624 {
11625 switch (foo & 2) { case 0: return 1; }
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_compile "$LINENO"; then :
11631 gdb_cv_c_long_long=yes
11632 else
11633 gdb_cv_c_long_long=no
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11638 $as_echo "$gdb_cv_c_long_long" >&6; }
11639 if test $gdb_cv_c_long_long = yes; then
11640
11641 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
11642
11643 fi
11644
11645 # Check if the compiler and runtime support printing long longs.
11646
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11648 $as_echo_n "checking for long long support in printf... " >&6; }
11649 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 if test "$cross_compiling" = yes; then :
11653 gdb_cv_printf_has_long_long=no
11654 else
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11657 $ac_includes_default
11658 int
11659 main ()
11660 {
11661 char buf[32];
11662 long long l = 0;
11663 l = (l << 16) + 0x0123;
11664 l = (l << 16) + 0x4567;
11665 l = (l << 16) + 0x89ab;
11666 l = (l << 16) + 0xcdef;
11667 sprintf (buf, "0x%016llx", l);
11668 return (strcmp ("0x0123456789abcdef", buf));
11669 ;
11670 return 0;
11671 }
11672 _ACEOF
11673 if ac_fn_c_try_run "$LINENO"; then :
11674 gdb_cv_printf_has_long_long=yes
11675 else
11676 gdb_cv_printf_has_long_long=no
11677 fi
11678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11679 conftest.$ac_objext conftest.beam conftest.$ac_ext
11680 fi
11681
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11684 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11685 if test $gdb_cv_printf_has_long_long = yes; then
11686
11687 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11688
11689 fi
11690
11691 # Check if the compiler and runtime support printing decfloats.
11692
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11694 $as_echo_n "checking for decfloat support in printf... " >&6; }
11695 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 if test "$cross_compiling" = yes; then :
11699 gdb_cv_printf_has_decfloat=no
11700 else
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 $ac_includes_default
11704 int
11705 main ()
11706 {
11707 char buf[64];
11708 _Decimal32 d32 = 1.2345df;
11709 _Decimal64 d64 = 1.2345dd;
11710 _Decimal128 d128 = 1.2345dl;
11711 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11712 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11713 ;
11714 return 0;
11715 }
11716 _ACEOF
11717 if ac_fn_c_try_run "$LINENO"; then :
11718 gdb_cv_printf_has_decfloat=yes
11719 else
11720 gdb_cv_printf_has_decfloat=no
11721 fi
11722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11723 conftest.$ac_objext conftest.beam conftest.$ac_ext
11724 fi
11725
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11728 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11729 if test $gdb_cv_printf_has_decfloat = yes; then
11730
11731 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11732
11733 fi
11734
11735 # Check if the compiler supports the `long double' type. We can't use
11736 # AC_C_LONG_DOUBLE because that one does additional checks on the
11737 # constants defined in <float.h> that fail on some systems,
11738 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11739
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11741 $as_echo_n "checking for long double support in compiler... " >&6; }
11742 if test "${gdb_cv_c_long_double+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11747 long double foo;
11748 _ACEOF
11749 if ac_fn_c_try_compile "$LINENO"; then :
11750 gdb_cv_c_long_double=yes
11751 else
11752 gdb_cv_c_long_double=no
11753 fi
11754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755 fi
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11757 $as_echo "$gdb_cv_c_long_double" >&6; }
11758 if test $gdb_cv_c_long_double = yes; then
11759
11760 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11761
11762 fi
11763
11764 # Check if the compiler and runtime support printing long doubles.
11765
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11767 $as_echo_n "checking for long double support in printf... " >&6; }
11768 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 if test "$cross_compiling" = yes; then :
11772 gdb_cv_printf_has_long_double=no
11773 else
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 int
11778 main ()
11779 {
11780 char buf[16];
11781 long double f = 3.141592653;
11782 sprintf (buf, "%Lg", f);
11783 return (strncmp ("3.14159", buf, 7));
11784 ;
11785 return 0;
11786 }
11787 _ACEOF
11788 if ac_fn_c_try_run "$LINENO"; then :
11789 gdb_cv_printf_has_long_double=yes
11790 else
11791 gdb_cv_printf_has_long_double=no
11792 fi
11793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11794 conftest.$ac_objext conftest.beam conftest.$ac_ext
11795 fi
11796
11797 fi
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11799 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11800 if test $gdb_cv_printf_has_long_double = yes; then
11801
11802 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11803
11804 fi
11805
11806 # Check if the compiler and runtime support scanning long doubles.
11807
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11809 $as_echo_n "checking for long double support in scanf... " >&6; }
11810 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813 if test "$cross_compiling" = yes; then :
11814 gdb_cv_scanf_has_long_double=no
11815 else
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818 #include <stdio.h>
11819 int
11820 main ()
11821 {
11822 char *buf = "3.141592653";
11823 long double f = 0;
11824 sscanf (buf, "%Lg", &f);
11825 return !(f > 3.14159 && f < 3.14160);
11826 ;
11827 return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_c_try_run "$LINENO"; then :
11831 gdb_cv_scanf_has_long_double=yes
11832 else
11833 gdb_cv_scanf_has_long_double=no
11834 fi
11835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11836 conftest.$ac_objext conftest.beam conftest.$ac_ext
11837 fi
11838
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11841 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11842 if test $gdb_cv_scanf_has_long_double = yes; then
11843
11844 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11845
11846 fi
11847
11848 case ${host_os} in
11849 aix*)
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11851 $as_echo_n "checking for -bbigtoc option... " >&6; }
11852 if test "${gdb_cv_bigtoc+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855
11856 SAVE_LDFLAGS=$LDFLAGS
11857
11858 case $GCC in
11859 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11860 *) gdb_cv_bigtoc=-bbigtoc ;;
11861 esac
11862
11863 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866
11867 int
11868 main ()
11869 {
11870 int i;
11871 ;
11872 return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876
11877 else
11878 gdb_cv_bigtoc=
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LDFLAGS="${SAVE_LDFLAGS}"
11883
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11886 $as_echo "$gdb_cv_bigtoc" >&6; }
11887 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11888 ;;
11889 esac
11890
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11892 $as_echo_n "checking for the dynamic export flag... " >&6; }
11893 dynamic_list=false
11894 if test "${gdb_native}" = yes; then
11895 # The dynamically loaded libthread_db needs access to symbols in the gdb
11896 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11897 # may not be supported there.
11898 old_LDFLAGS="$LDFLAGS"
11899 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11900 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11901 LDFLAGS="$LDFLAGS $RDYNAMIC"
11902 if test "${have_libpython}" = no; then
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905
11906 int
11907 main ()
11908 {
11909
11910 ;
11911 return 0;
11912 }
11913 _ACEOF
11914 if ac_fn_c_try_link "$LINENO"; then :
11915 dynamic_list=true
11916 fi
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 else
11920 # Workaround http://bugs.python.org/issue4434 where static
11921 # libpythonX.Y.a would get its symbols required for
11922 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11923 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11924 old_CFLAGS="$CFLAGS"
11925 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
11926 if test "$cross_compiling" = yes; then :
11927 true
11928 else
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11931 #include "${have_libpython}/Python.h"
11932 int
11933 main ()
11934 {
11935 int err;
11936 Py_Initialize ();
11937 err = PyRun_SimpleString ("import itertools\n");
11938 Py_Finalize ();
11939 return err == 0 ? 0 : 1;
11940 ;
11941 return 0;
11942 }
11943 _ACEOF
11944 if ac_fn_c_try_run "$LINENO"; then :
11945 dynamic_list=true
11946 fi
11947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11948 conftest.$ac_objext conftest.beam conftest.$ac_ext
11949 fi
11950
11951 CFLAGS="$old_CFLAGS"
11952 fi
11953 LDFLAGS="$old_LDFLAGS"
11954 fi
11955 if $dynamic_list; then
11956 found="-Wl,--dynamic-list"
11957 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11958 else
11959 found="-rdynamic"
11960 RDYNAMIC="-rdynamic"
11961 fi
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11964 $as_echo "$found" >&6; }
11965
11966
11967 if test ${build} = ${host} -a ${host} = ${target} ; then
11968 case ${host_os} in
11969 solaris*)
11970 # See if thread_db library is around for Solaris thread debugging.
11971 # Note that we must explicitly test for version 1 of the library
11972 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11973 # the same API.
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11975 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11976 if test -f /usr/lib/libthread_db.so.1 ; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978 $as_echo "yes" >&6; }
11979
11980 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11981
11982 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
11983 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
11984 # On SPARC CPUs, we also need to build sparc-sol-thread.
11985 case ${host_cpu} in
11986 sparc*)
11987 CONFIG_OBS="${CONFIG_OBS} sparc-sol-thread.o"
11988 CONFIG_SRCS="${CONFIG_SRCS} sparc-sol-thread.c"
11989 ;;
11990 esac
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11993 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 ac_check_lib_save_LIBS=$LIBS
11997 LIBS="-ldl $LIBS"
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000
12001 /* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12004 #ifdef __cplusplus
12005 extern "C"
12006 #endif
12007 char dlopen ();
12008 int
12009 main ()
12010 {
12011 return dlopen ();
12012 ;
12013 return 0;
12014 }
12015 _ACEOF
12016 if ac_fn_c_try_link "$LINENO"; then :
12017 ac_cv_lib_dl_dlopen=yes
12018 else
12019 ac_cv_lib_dl_dlopen=no
12020 fi
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12024 fi
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12027 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12028 cat >>confdefs.h <<_ACEOF
12029 #define HAVE_LIBDL 1
12030 _ACEOF
12031
12032 LIBS="-ldl $LIBS"
12033
12034 fi
12035
12036 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12037 # Sun randomly tweaked the prototypes in <proc_service.h>
12038 # at one point.
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12040 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12041 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047
12048 #include <proc_service.h>
12049 ps_err_e ps_pdwrite
12050 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12051
12052 int
12053 main ()
12054 {
12055
12056 ;
12057 return 0;
12058 }
12059 _ACEOF
12060 if ac_fn_c_try_compile "$LINENO"; then :
12061 gdb_cv_proc_service_is_old=no
12062 else
12063 gdb_cv_proc_service_is_old=yes
12064 fi
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066
12067 fi
12068
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12070 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12071 if test $gdb_cv_proc_service_is_old = yes; then
12072
12073 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12074
12075 fi
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12079 fi
12080 ;;
12081 aix*)
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12083 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12084 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 #include <sys/pthdebug.h>
12090 int
12091 main ()
12092 {
12093 #ifndef PTHDB_VERSION_3
12094 #error
12095 #endif
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_c_try_compile "$LINENO"; then :
12101 gdb_cv_have_aix_thread_debug=yes
12102 else
12103 gdb_cv_have_aix_thread_debug=no
12104 fi
12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106 fi
12107
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12109 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12110 if test $gdb_cv_have_aix_thread_debug = yes; then
12111 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12112 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12113 LIBS="$LIBS -lpthdebug"
12114
12115 # Older versions of AIX do not provide the declaration for
12116 # the getthrds function (it appears that it was introduced
12117 # with AIX 6.x).
12118 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12119 "
12120 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12121 ac_have_decl=1
12122 else
12123 ac_have_decl=0
12124 fi
12125
12126 cat >>confdefs.h <<_ACEOF
12127 #define HAVE_DECL_GETTHRDS $ac_have_decl
12128 _ACEOF
12129
12130 fi
12131 ;;
12132 esac
12133
12134 fi
12135
12136 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12138 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12139 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 #include <thread_db.h>
12145 int
12146 main ()
12147 {
12148 int i = TD_NOTALLOC;
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 if ac_fn_c_try_compile "$LINENO"; then :
12154 gdb_cv_thread_db_h_has_td_notalloc=yes
12155 else
12156 gdb_cv_thread_db_h_has_td_notalloc=no
12157
12158 fi
12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12163 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12165 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12166 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171 #include <thread_db.h>
12172 int
12173 main ()
12174 {
12175 int i = TD_VERSION;
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_c_try_compile "$LINENO"; then :
12181 gdb_cv_thread_db_h_has_td_version=yes
12182 else
12183 gdb_cv_thread_db_h_has_td_version=no
12184
12185 fi
12186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12187
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12190 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12192 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12193 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198 #include <thread_db.h>
12199 int
12200 main ()
12201 {
12202 int i = TD_NOTLS;
12203 ;
12204 return 0;
12205 }
12206 _ACEOF
12207 if ac_fn_c_try_compile "$LINENO"; then :
12208 gdb_cv_thread_db_h_has_td_notls=yes
12209 else
12210 gdb_cv_thread_db_h_has_td_notls=no
12211
12212 fi
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214
12215 fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12217 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12218 fi
12219 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12220
12221 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12222
12223 fi
12224 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12225
12226 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12227
12228 fi
12229 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12230
12231 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12232
12233 fi
12234
12235 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12237 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12238 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243 #include <sys/syscall.h>
12244 int
12245 main ()
12246 {
12247 int i = __NR_tkill;
12248 ;
12249 return 0;
12250 }
12251 _ACEOF
12252 if ac_fn_c_try_compile "$LINENO"; then :
12253 gdb_cv_sys_syscall_h_has_tkill=yes
12254 else
12255 gdb_cv_sys_syscall_h_has_tkill=no
12256
12257 fi
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12262 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12263 fi
12264 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12265
12266 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12267
12268 fi
12269
12270 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12271 "
12272 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12273 ac_have_decl=1
12274 else
12275 ac_have_decl=0
12276 fi
12277
12278 cat >>confdefs.h <<_ACEOF
12279 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12280 _ACEOF
12281
12282
12283 if test "$cross_compiling" = yes; then :
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286 #include <sys/personality.h>
12287 int
12288 main ()
12289 {
12290
12291 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12292 # define ADDR_NO_RANDOMIZE 0x0040000
12293 # endif
12294 /* Test the flag could be set and stays set. */
12295 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12296 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12297 return 1
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 have_personality=true
12304 else
12305 have_personality=false
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 else
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 #include <sys/personality.h>
12313 int
12314 main ()
12315 {
12316
12317 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12318 # define ADDR_NO_RANDOMIZE 0x0040000
12319 # endif
12320 /* Test the flag could be set and stays set. */
12321 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12322 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12323 return 1
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_c_try_run "$LINENO"; then :
12329 have_personality=true
12330 else
12331 have_personality=false
12332 fi
12333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12334 conftest.$ac_objext conftest.beam conftest.$ac_ext
12335 fi
12336
12337 if $have_personality
12338 then
12339
12340 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12341
12342 fi
12343
12344
12345 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12346 # except that the argument to --with-sysroot is optional.
12347 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12348 if test "x$with_sysroot" = xyes; then
12349 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12350 fi
12351
12352 # Check whether --with-sysroot was given.
12353 if test "${with_sysroot+set}" = set; then :
12354 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12355 else
12356 TARGET_SYSTEM_ROOT=
12357 fi
12358
12359
12360 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12361 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12362 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12363 ac_define_dir=`eval echo $ac_define_dir`
12364
12365 cat >>confdefs.h <<_ACEOF
12366 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12367 _ACEOF
12368
12369
12370
12371
12372 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12373 if test "x$prefix" = xNONE; then
12374 test_prefix=/usr/local
12375 else
12376 test_prefix=$prefix
12377 fi
12378 else
12379 test_prefix=$exec_prefix
12380 fi
12381 value=0
12382 case ${ac_define_dir} in
12383 "${test_prefix}"|"${test_prefix}/"*|\
12384 '${exec_prefix}'|'${exec_prefix}/'*)
12385 value=1
12386 ;;
12387 esac
12388
12389 cat >>confdefs.h <<_ACEOF
12390 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12391 _ACEOF
12392
12393
12394
12395
12396
12397 # Check whether --with-system-gdbinit was given.
12398 if test "${with_system_gdbinit+set}" = set; then :
12399 withval=$with_system_gdbinit;
12400 SYSTEM_GDBINIT=$withval
12401 else
12402 SYSTEM_GDBINIT=
12403 fi
12404
12405
12406 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12408 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12409 ac_define_dir=`eval echo $ac_define_dir`
12410
12411 cat >>confdefs.h <<_ACEOF
12412 #define SYSTEM_GDBINIT "$ac_define_dir"
12413 _ACEOF
12414
12415
12416
12417
12418 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12419 if test "x$prefix" = xNONE; then
12420 test_prefix=/usr/local
12421 else
12422 test_prefix=$prefix
12423 fi
12424 else
12425 test_prefix=$exec_prefix
12426 fi
12427 value=0
12428 case ${ac_define_dir} in
12429 "${test_prefix}"|"${test_prefix}/"*|\
12430 '${exec_prefix}'|'${exec_prefix}/'*)
12431 value=1
12432 ;;
12433 esac
12434
12435 cat >>confdefs.h <<_ACEOF
12436 #define SYSTEM_GDBINIT_RELOCATABLE $value
12437 _ACEOF
12438
12439
12440
12441
12442 # Check whether --enable-werror was given.
12443 if test "${enable_werror+set}" = set; then :
12444 enableval=$enable_werror; case "${enableval}" in
12445 yes | y) ERROR_ON_WARNING="yes" ;;
12446 no | n) ERROR_ON_WARNING="no" ;;
12447 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12448 esac
12449 fi
12450
12451
12452 # Enable -Werror by default when using gcc. Turn it off for releases.
12453 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12454 ERROR_ON_WARNING=yes
12455 fi
12456
12457 WERROR_CFLAGS=""
12458 if test "${ERROR_ON_WARNING}" = yes ; then
12459 WERROR_CFLAGS="-Werror"
12460 fi
12461
12462 # The entries after -Wno-pointer-sign are disabled warnings which may
12463 # be enabled in the future, which can not currently be used to build
12464 # GDB.
12465 # NOTE: If you change this list, remember to update
12466 # gdb/doc/gdbint.texinfo.
12467 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12468 -Wformat-nonliteral -Wno-pointer-sign \
12469 -Wno-unused -Wunused-value -Wunused-function \
12470 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12471 -Wdeclaration-after-statement -Wempty-body"
12472
12473 # Enable -Wno-format by default when using gcc on mingw since many
12474 # GCC versions complain about %I64.
12475 case "${host}" in
12476 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12477 esac
12478
12479 # Check whether --enable-build-warnings was given.
12480 if test "${enable_build_warnings+set}" = set; then :
12481 enableval=$enable_build_warnings; case "${enableval}" in
12482 yes) ;;
12483 no) build_warnings="-w";;
12484 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12485 build_warnings="${build_warnings} ${t}";;
12486 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12487 build_warnings="${t} ${build_warnings}";;
12488 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12489 esac
12490 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12491 echo "Setting compiler warning flags = $build_warnings" 6>&1
12492 fi
12493 fi
12494 # Check whether --enable-gdb-build-warnings was given.
12495 if test "${enable_gdb_build_warnings+set}" = set; then :
12496 enableval=$enable_gdb_build_warnings; case "${enableval}" in
12497 yes) ;;
12498 no) build_warnings="-w";;
12499 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12500 build_warnings="${build_warnings} ${t}";;
12501 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12502 build_warnings="${t} ${build_warnings}";;
12503 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12504 esac
12505 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12506 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12507 fi
12508 fi
12509 WARN_CFLAGS=""
12510 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12511 then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12513 $as_echo_n "checking compiler warning flags... " >&6; }
12514 # Separate out the -Werror flag as some files just cannot be
12515 # compiled with it enabled.
12516 for w in ${build_warnings}; do
12517 case $w in
12518 -Werr*) WERROR_CFLAGS=-Werror ;;
12519 *) # Check that GCC accepts it
12520 saved_CFLAGS="$CFLAGS"
12521 CFLAGS="$CFLAGS $w"
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12524
12525 int
12526 main ()
12527 {
12528
12529 ;
12530 return 0;
12531 }
12532 _ACEOF
12533 if ac_fn_c_try_compile "$LINENO"; then :
12534 WARN_CFLAGS="${WARN_CFLAGS} $w"
12535 fi
12536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 CFLAGS="$saved_CFLAGS"
12538 esac
12539 done
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12541 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12542 fi
12543
12544
12545
12546 # In the Cygwin environment, we need some additional flags.
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12548 $as_echo_n "checking for cygwin... " >&6; }
12549 if test "${gdb_cv_os_cygwin+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554
12555 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12556 lose
12557 #endif
12558 _ACEOF
12559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12560 $EGREP "lose" >/dev/null 2>&1; then :
12561 gdb_cv_os_cygwin=yes
12562 else
12563 gdb_cv_os_cygwin=no
12564 fi
12565 rm -f conftest*
12566
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12569 $as_echo "$gdb_cv_os_cygwin" >&6; }
12570
12571
12572 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12573 case ${host} in
12574 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12575 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12576 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
12577 esac
12578
12579
12580 # libreadline needs libuser32.a in a cygwin environment
12581 WIN32LIBS=
12582 if test x$gdb_cv_os_cygwin = xyes; then
12583 WIN32LIBS="-luser32"
12584 case "${target}" in
12585 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12586 ;;
12587 esac
12588 fi
12589
12590 # The ser-tcp.c module requires sockets.
12591 case ${host} in
12592 *mingw32*)
12593
12594 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12595
12596 WIN32LIBS="$WIN32LIBS -lws2_32"
12597 ;;
12598 esac
12599
12600
12601 # Add ELF support to GDB, but only if BFD includes ELF support.
12602 OLD_CFLAGS=$CFLAGS
12603 OLD_LDFLAGS=$LDFLAGS
12604 OLD_LIBS=$LIBS
12605 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12606 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12607 # always want our bfd.
12608 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12609 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12610 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12611 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12612 if test "$plugins" = "yes"; then
12613 LIBS="-ldl $LIBS"
12614 fi
12615 LIBS="-lbfd -liberty $intl $LIBS"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12617 $as_echo_n "checking for ELF support in BFD... " >&6; }
12618 if test "${gdb_cv_var_elf+set}" = set; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 #include <stdlib.h>
12624 #include "bfd.h"
12625 #include "elf-bfd.h"
12626
12627 int
12628 main ()
12629 {
12630 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
12631 ;
12632 return 0;
12633 }
12634 _ACEOF
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 gdb_cv_var_elf=yes
12637 else
12638 gdb_cv_var_elf=no
12639 fi
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12644 $as_echo "$gdb_cv_var_elf" >&6; }
12645 if test $gdb_cv_var_elf = yes; then
12646 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
12647
12648 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12649
12650 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12651 if test "$plugins" = "yes"; then
12652 OLD_LIBS="-ldl $OLD_LIBS"
12653 fi
12654 fi
12655 CFLAGS=$OLD_CFLAGS
12656 LDFLAGS=$OLD_LDFLAGS
12657 LIBS=$OLD_LIBS
12658
12659 # Add any host-specific objects to GDB.
12660 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
12661
12662 LIBGUI="../libgui/src/libgui.a"
12663 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
12664
12665
12666
12667 WIN32LDAPP=
12668
12669
12670
12671 case "${host}" in
12672 *-*-cygwin* | *-*-mingw* )
12673 configdir="win"
12674 ;;
12675 *)
12676 configdir="unix"
12677 ;;
12678 esac
12679
12680 GDBTKLIBS=
12681 if test "${enable_gdbtk}" = "yes"; then
12682
12683 # Gdbtk must have an absolute path to srcdir in order to run
12684 # properly when not installed.
12685 here=`pwd`
12686 cd ${srcdir}
12687 GDBTK_SRC_DIR=`pwd`
12688 cd $here
12689
12690
12691 #
12692 # Ok, lets find the tcl configuration
12693 # First, look for one uninstalled.
12694 # the alternative search directory is invoked by --with-tcl
12695 #
12696
12697 if test x"${no_tcl}" = x ; then
12698 # we reset no_tcl in case something fails here
12699 no_tcl=true
12700
12701 # Check whether --with-tcl was given.
12702 if test "${with_tcl+set}" = set; then :
12703 withval=$with_tcl; with_tclconfig=${withval}
12704 fi
12705
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12707 $as_echo_n "checking for Tcl configuration... " >&6; }
12708 if test "${ac_cv_c_tclconfig+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711
12712
12713 # First check to see if --with-tcl was specified.
12714 case "${host}" in
12715 *-*-cygwin*) platDir="win" ;;
12716 *) platDir="unix" ;;
12717 esac
12718 if test x"${with_tclconfig}" != x ; then
12719 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12720 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12721 else
12722 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12723 fi
12724 fi
12725
12726 # then check for a private Tcl installation
12727 if test x"${ac_cv_c_tclconfig}" = x ; then
12728 for i in \
12729 ../tcl \
12730 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12731 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12732 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12733 ../../tcl \
12734 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12735 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12736 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12737 ../../../tcl \
12738 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12739 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12740 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
12741 if test -f "$i/$platDir/tclConfig.sh" ; then
12742 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
12743 break
12744 fi
12745 done
12746 fi
12747
12748 # on Darwin, check in Framework installation locations
12749 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
12750 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
12751 `ls -d /Library/Frameworks 2>/dev/null` \
12752 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12753 `ls -d /System/Library/Frameworks 2>/dev/null` \
12754 ; do
12755 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
12756 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
12757 break
12758 fi
12759 done
12760 fi
12761
12762 # check in a few common install locations
12763 if test x"${ac_cv_c_tclconfig}" = x ; then
12764 for i in `ls -d ${libdir} 2>/dev/null` \
12765 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12766 `ls -d ${prefix}/lib 2>/dev/null` \
12767 `ls -d /usr/local/lib 2>/dev/null` \
12768 `ls -d /usr/contrib/lib 2>/dev/null` \
12769 `ls -d /usr/lib 2>/dev/null` \
12770 ; do
12771 if test -f "$i/tclConfig.sh" ; then
12772 ac_cv_c_tclconfig=`(cd $i; pwd)`
12773 break
12774 fi
12775 done
12776 fi
12777
12778 # check in a few other private locations
12779 if test x"${ac_cv_c_tclconfig}" = x ; then
12780 for i in \
12781 ${srcdir}/../tcl \
12782 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12783 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12784 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
12785 if test -f "$i/$platDir/tclConfig.sh" ; then
12786 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
12787 break
12788 fi
12789 done
12790 fi
12791
12792 fi
12793
12794
12795 if test x"${ac_cv_c_tclconfig}" = x ; then
12796 TCL_BIN_DIR="# no Tcl configs found"
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12798 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12799 else
12800 no_tcl=
12801 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
12803 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12804 fi
12805 fi
12806
12807
12808 # If $no_tk is nonempty, then we can't do Tk, and there is no
12809 # point to doing Tcl.
12810
12811 #
12812 # Ok, lets find the tk configuration
12813 # First, look for one uninstalled.
12814 # the alternative search directory is invoked by --with-tk
12815 #
12816
12817 if test x"${no_tk}" = x ; then
12818 # we reset no_tk in case something fails here
12819 no_tk=true
12820
12821 # Check whether --with-tk was given.
12822 if test "${with_tk+set}" = set; then :
12823 withval=$with_tk; with_tkconfig=${withval}
12824 fi
12825
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
12827 $as_echo_n "checking for Tk configuration... " >&6; }
12828 if test "${ac_cv_c_tkconfig+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831
12832
12833 # First check to see if --with-tkconfig was specified.
12834 if test x"${with_tkconfig}" != x ; then
12835 if test -f "${with_tkconfig}/tkConfig.sh" ; then
12836 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
12837 else
12838 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
12839 fi
12840 fi
12841
12842 # then check for a private Tk library
12843 case "${host}" in
12844 *-*-cygwin*) platDir="win" ;;
12845 *) platDir="unix" ;;
12846 esac
12847 if test x"${ac_cv_c_tkconfig}" = x ; then
12848 for i in \
12849 ../tk \
12850 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12851 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
12852 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
12853 ../../tk \
12854 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12855 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
12856 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
12857 ../../../tk \
12858 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12859 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
12860 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
12861 if test -f "$i/$platDir/tkConfig.sh" ; then
12862 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
12863 break
12864 fi
12865 done
12866 fi
12867
12868 # on Darwin, check in Framework installation locations
12869 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
12870 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
12871 `ls -d /Library/Frameworks 2>/dev/null` \
12872 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12873 `ls -d /System/Library/Frameworks 2>/dev/null` \
12874 ; do
12875 if test -f "$i/Tk.framework/tkConfig.sh" ; then
12876 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
12877 break
12878 fi
12879 done
12880 fi
12881
12882 # check in a few common install locations
12883 if test x"${ac_cv_c_tkconfig}" = x ; then
12884 for i in `ls -d ${libdir} 2>/dev/null` \
12885 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12886 `ls -d ${prefix}/lib 2>/dev/null` \
12887 `ls -d /usr/local/lib 2>/dev/null` \
12888 `ls -d /usr/contrib/lib 2>/dev/null` \
12889 `ls -d /usr/lib 2>/dev/null` \
12890 ; do
12891 if test -f "$i/tkConfig.sh" ; then
12892 ac_cv_c_tkconfig=`(cd $i; pwd)`
12893 break
12894 fi
12895 done
12896 fi
12897 # check in a few other private locations
12898 if test x"${ac_cv_c_tkconfig}" = x ; then
12899 for i in \
12900 ${srcdir}/../tk \
12901 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12902 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
12903 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
12904 if test -f "$i/$platDir/tkConfig.sh" ; then
12905 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
12906 break
12907 fi
12908 done
12909 fi
12910
12911 fi
12912
12913
12914 if test x"${ac_cv_c_tkconfig}" = x ; then
12915 TK_BIN_DIR="# no Tk configs found"
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
12917 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
12918 else
12919 no_tk=
12920 TK_BIN_DIR=${ac_cv_c_tkconfig}
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
12922 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12923 fi
12924 fi
12925
12926
12927 if test -z "${no_tcl}" -a -z "${no_tk}"; then
12928
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
12930 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
12931
12932 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12934 $as_echo "loading" >&6; }
12935 . ${TCL_BIN_DIR}/tclConfig.sh
12936 else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
12938 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12939 fi
12940
12941 # eval is required to do the TCL_DBGX substitution
12942 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12943 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12944
12945 # If the TCL_BIN_DIR is the build directory (not the install directory),
12946 # then set the common variable name to the value of the build variables.
12947 # For example, the variable TCL_LIB_SPEC will be set to the value
12948 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12949 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12950 # installed and uninstalled version of Tcl.
12951 if test -f "${TCL_BIN_DIR}/Makefile" ; then
12952 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12953 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12954 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12955 elif test "`uname -s`" = "Darwin"; then
12956 # If Tcl was built as a framework, attempt to use the libraries
12957 # from the framework at the given location so that linking works
12958 # against Tcl.framework installed in an arbitrary location.
12959 case ${TCL_DEFS} in
12960 *TCL_FRAMEWORK*)
12961 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
12962 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
12963 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
12964 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
12965 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
12966 break
12967 fi
12968 done
12969 fi
12970 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
12971 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
12972 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
12973 fi
12974 ;;
12975 esac
12976 fi
12977
12978 # eval is required to do the TCL_DBGX substitution
12979 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12980 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12981 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12982 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998 # Check for in-tree tcl
12999 here=`pwd`
13000 cd ${srcdir}/..
13001 topdir=`pwd`
13002 cd ${here}
13003
13004 intree="no"
13005 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13006 intree="yes"
13007 fi
13008
13009 # Find Tcl private headers
13010 if test x"${intree}" = xno; then
13011
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13013 $as_echo_n "checking for Tcl private headers... " >&6; }
13014 private_dir=""
13015 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13016 if test -f ${dir}/tclInt.h ; then
13017 private_dir=${dir}
13018 fi
13019
13020 if test x"${private_dir}" = x; then
13021 as_fn_error "could not find private Tcl headers" "$LINENO" 5
13022 else
13023 TCL_PRIVATE_INCLUDE="-I${private_dir}"
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13025 $as_echo "${private_dir}" >&6; }
13026 fi
13027
13028 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13029 TCL_LIBRARY="${TCL_LIB_SPEC}"
13030 TCL_DEPS=""
13031 else
13032 # If building tcl in the same src tree, private headers
13033 # are not needed, but we need to be sure to use the right
13034 # headers library
13035 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
13036 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
13037 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
13038 fi
13039
13040
13041
13042
13043
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13045 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13046
13047 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13049 $as_echo "loading" >&6; }
13050 . ${TK_BIN_DIR}/tkConfig.sh
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13053 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13054 fi
13055
13056 # eval is required to do the TK_DBGX substitution
13057 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13058 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13059
13060 # If the TK_BIN_DIR is the build directory (not the install directory),
13061 # then set the common variable name to the value of the build variables.
13062 # For example, the variable TK_LIB_SPEC will be set to the value
13063 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13064 # instead of TK_BUILD_LIB_SPEC since it will work with both an
13065 # installed and uninstalled version of Tcl.
13066 if test -f "${TK_BIN_DIR}/Makefile" ; then
13067 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
13068 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
13069 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
13070 elif test "`uname -s`" = "Darwin"; then
13071 # If Tk was built as a framework, attempt to use the libraries
13072 # from the framework at the given location so that linking works
13073 # against Tk.framework installed in an arbitrary location.
13074 case ${TK_DEFS} in
13075 *TK_FRAMEWORK*)
13076 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13077 for i in "`cd ${TK_BIN_DIR}; pwd`" \
13078 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13079 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13080 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13081 break
13082 fi
13083 done
13084 fi
13085 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13086 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13087 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13088 fi
13089 ;;
13090 esac
13091 fi
13092
13093 # eval is required to do the TK_DBGX substitution
13094 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13095 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13096 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13097 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112 # Check for in-tree Tk
13113 intree="no"
13114 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13115 intree="yes"
13116 fi
13117
13118 # Find Tk private headers
13119 if test x"${intree}" = xno; then
13120
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13122 $as_echo_n "checking for Tk private headers... " >&6; }
13123 private_dir=""
13124 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13125 if test -f ${dir}/tkInt.h; then
13126 private_dir=${dir}
13127 fi
13128
13129 if test x"${private_dir}" = x; then
13130 as_fn_error "could not find Tk private headers" "$LINENO" 5
13131 else
13132 TK_PRIVATE_INCLUDE="-I${private_dir}"
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13134 $as_echo "${private_dir}" >&6; }
13135 fi
13136
13137 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13138 TK_LIBRARY=${TK_LIB_SPEC}
13139 TK_DEPS=""
13140 else
13141 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
13142 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
13143 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
13144 fi
13145
13146
13147
13148
13149
13150 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13151
13152 # Include some libraries that Tcl and Tk want.
13153 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13154 # Yes, the ordering seems wrong here. But it isn't.
13155 # TK_LIBS is the list of libraries that need to be linked
13156 # after Tcl/Tk. Note that this isn't put into LIBS. If it
13157 # were in LIBS then any link tests after this point would
13158 # try to include things like `$(LIBGUI)', which wouldn't work.
13159 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
13160
13161 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13162 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13163 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13164 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
13165 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
13166 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
13167 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
13168
13169 if test x$gdb_cv_os_cygwin = xyes; then
13170 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13171 WIN32LDAPP="-Wl,--subsystem,console"
13172 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
13173 fi
13174
13175 subdirs="$subdirs gdbtk"
13176
13177 fi
13178 fi
13179
13180
13181
13182
13183
13184
13185
13186
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13188 $as_echo_n "checking for X... " >&6; }
13189
13190
13191 # Check whether --with-x was given.
13192 if test "${with_x+set}" = set; then :
13193 withval=$with_x;
13194 fi
13195
13196 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13197 if test "x$with_x" = xno; then
13198 # The user explicitly disabled X.
13199 have_x=disabled
13200 else
13201 case $x_includes,$x_libraries in #(
13202 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
13203 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 # One or both of the vars are not set, and there is no cached value.
13207 ac_x_includes=no ac_x_libraries=no
13208 rm -f -r conftest.dir
13209 if mkdir conftest.dir; then
13210 cd conftest.dir
13211 cat >Imakefile <<'_ACEOF'
13212 incroot:
13213 @echo incroot='${INCROOT}'
13214 usrlibdir:
13215 @echo usrlibdir='${USRLIBDIR}'
13216 libdir:
13217 @echo libdir='${LIBDIR}'
13218 _ACEOF
13219 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13221 for ac_var in incroot usrlibdir libdir; do
13222 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13223 done
13224 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13225 for ac_extension in a so sl dylib la dll; do
13226 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13227 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13228 ac_im_usrlibdir=$ac_im_libdir; break
13229 fi
13230 done
13231 # Screen out bogus values from the imake configuration. They are
13232 # bogus both because they are the default anyway, and because
13233 # using them would break gcc on systems where it needs fixed includes.
13234 case $ac_im_incroot in
13235 /usr/include) ac_x_includes= ;;
13236 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13237 esac
13238 case $ac_im_usrlibdir in
13239 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13240 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13241 esac
13242 fi
13243 cd ..
13244 rm -f -r conftest.dir
13245 fi
13246
13247 # Standard set of common directories for X headers.
13248 # Check X11 before X11Rn because it is often a symlink to the current release.
13249 ac_x_header_dirs='
13250 /usr/X11/include
13251 /usr/X11R7/include
13252 /usr/X11R6/include
13253 /usr/X11R5/include
13254 /usr/X11R4/include
13255
13256 /usr/include/X11
13257 /usr/include/X11R7
13258 /usr/include/X11R6
13259 /usr/include/X11R5
13260 /usr/include/X11R4
13261
13262 /usr/local/X11/include
13263 /usr/local/X11R7/include
13264 /usr/local/X11R6/include
13265 /usr/local/X11R5/include
13266 /usr/local/X11R4/include
13267
13268 /usr/local/include/X11
13269 /usr/local/include/X11R7
13270 /usr/local/include/X11R6
13271 /usr/local/include/X11R5
13272 /usr/local/include/X11R4
13273
13274 /usr/X386/include
13275 /usr/x386/include
13276 /usr/XFree86/include/X11
13277
13278 /usr/include
13279 /usr/local/include
13280 /usr/unsupported/include
13281 /usr/athena/include
13282 /usr/local/x11r5/include
13283 /usr/lpp/Xamples/include
13284
13285 /usr/openwin/include
13286 /usr/openwin/share/include'
13287
13288 if test "$ac_x_includes" = no; then
13289 # Guess where to find include files, by looking for Xlib.h.
13290 # First, try using that file with no special directory specified.
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293 #include <X11/Xlib.h>
13294 _ACEOF
13295 if ac_fn_c_try_cpp "$LINENO"; then :
13296 # We can compile using X headers with no special include directory.
13297 ac_x_includes=
13298 else
13299 for ac_dir in $ac_x_header_dirs; do
13300 if test -r "$ac_dir/X11/Xlib.h"; then
13301 ac_x_includes=$ac_dir
13302 break
13303 fi
13304 done
13305 fi
13306 rm -f conftest.err conftest.$ac_ext
13307 fi # $ac_x_includes = no
13308
13309 if test "$ac_x_libraries" = no; then
13310 # Check for the libraries.
13311 # See if we find them without any special options.
13312 # Don't add to $LIBS permanently.
13313 ac_save_LIBS=$LIBS
13314 LIBS="-lX11 $LIBS"
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 #include <X11/Xlib.h>
13318 int
13319 main ()
13320 {
13321 XrmInitialize ()
13322 ;
13323 return 0;
13324 }
13325 _ACEOF
13326 if ac_fn_c_try_link "$LINENO"; then :
13327 LIBS=$ac_save_LIBS
13328 # We can link X programs with no special library path.
13329 ac_x_libraries=
13330 else
13331 LIBS=$ac_save_LIBS
13332 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13333 do
13334 # Don't even attempt the hair of trying to link an X program!
13335 for ac_extension in a so sl dylib la dll; do
13336 if test -r "$ac_dir/libX11.$ac_extension"; then
13337 ac_x_libraries=$ac_dir
13338 break 2
13339 fi
13340 done
13341 done
13342 fi
13343 rm -f core conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
13345 fi # $ac_x_libraries = no
13346
13347 case $ac_x_includes,$ac_x_libraries in #(
13348 no,* | *,no | *\'*)
13349 # Didn't find X, or a directory has "'" in its name.
13350 ac_cv_have_x="have_x=no";; #(
13351 *)
13352 # Record where we found X for the cache.
13353 ac_cv_have_x="have_x=yes\
13354 ac_x_includes='$ac_x_includes'\
13355 ac_x_libraries='$ac_x_libraries'"
13356 esac
13357 fi
13358 ;; #(
13359 *) have_x=yes;;
13360 esac
13361 eval "$ac_cv_have_x"
13362 fi # $with_x != no
13363
13364 if test "$have_x" != yes; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13366 $as_echo "$have_x" >&6; }
13367 no_x=yes
13368 else
13369 # If each of the values was on the command line, it overrides each guess.
13370 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13371 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13372 # Update the cache value to reflect the command line values.
13373 ac_cv_have_x="have_x=yes\
13374 ac_x_includes='$x_includes'\
13375 ac_x_libraries='$x_libraries'"
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13377 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13378 fi
13379
13380
13381 # Unlike the sim directory, whether a simulator is linked is controlled by
13382 # presence of a gdb_sim definition in the target configure.tgt entry.
13383 # This code just checks for a few cases where we'd like to ignore those
13384 # definitions, even when they're present in the '.mt' file. These cases
13385 # are when --disable-sim is specified, or if the simulator directory is
13386 # not part of the source tree.
13387 #
13388 # Check whether --enable-sim was given.
13389 if test "${enable_sim+set}" = set; then :
13390 enableval=$enable_sim; echo "enable_sim = $enable_sim";
13391 echo "enableval = ${enableval}";
13392 case "${enableval}" in
13393 yes) ignore_sim=false ;;
13394 no) ignore_sim=true ;;
13395 *) ignore_sim=false ;;
13396 esac
13397 else
13398 ignore_sim=false
13399 fi
13400
13401
13402 if test ! -d "${srcdir}/../sim"; then
13403 ignore_sim=true
13404 fi
13405
13406 SIM=
13407 SIM_OBS=
13408 if test "${ignore_sim}" = "false"; then
13409 if test x"${gdb_sim}" != x ; then
13410 SIM="${gdb_sim}"
13411 SIM_OBS="remote-sim.o"
13412
13413 $as_echo "#define WITH_SIM 1" >>confdefs.h
13414
13415 fi
13416 fi
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431 # List of host floatformats.
13432
13433 cat >>confdefs.h <<_ACEOF
13434 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
13435 _ACEOF
13436
13437
13438 cat >>confdefs.h <<_ACEOF
13439 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
13440 _ACEOF
13441
13442
13443 cat >>confdefs.h <<_ACEOF
13444 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
13445 _ACEOF
13446
13447
13448 # target_subdir is used by the testsuite to find the target libraries.
13449 target_subdir=
13450 if test "${host}" != "${target}"; then
13451 target_subdir="${target_alias}/"
13452 fi
13453
13454
13455 frags=
13456 if test "${gdb_native}" = "yes"; then
13457 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
13458 if test ! -f ${host_makefile_frag}; then
13459 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
13460 fi
13461 frags="$frags $host_makefile_frag"
13462 else
13463 host_makefile_frag=/dev/null
13464 fi
13465
13466
13467
13468
13469 if test "${gdb_native}" = "yes"; then
13470 # We pick this up from the host configuration file (.mh) because we
13471 # do not have a native configuration Makefile fragment.
13472 nativefile=`sed -n '
13473 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
13474 ' ${host_makefile_frag}`
13475 fi
13476
13477
13478 if test x"${gdb_osabi}" != x ; then
13479
13480 cat >>confdefs.h <<_ACEOF
13481 #define GDB_OSABI_DEFAULT $gdb_osabi
13482 _ACEOF
13483
13484 fi
13485
13486 # Enable multi-ice-gdb-server.
13487 # Check whether --enable-multi-ice was given.
13488 if test "${enable_multi_ice+set}" = set; then :
13489 enableval=$enable_multi_ice; case $enableval in
13490 yes | no)
13491 ;;
13492 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
13493 esac
13494 fi
13495
13496 if test "x$enable_multi_ice" = xyes; then
13497 subdirs="$subdirs multi-ice"
13498
13499 fi
13500
13501 # Check whether --enable-gdbserver was given.
13502 if test "${enable_gdbserver+set}" = set; then :
13503 enableval=$enable_gdbserver; case "${enableval}" in
13504 yes| no|auto) ;;
13505 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
13506 esac
13507 else
13508 enable_gdbserver=auto
13509 fi
13510
13511
13512 # We only build gdbserver automatically in a native configuration, and
13513 # only if the user did not explicitly disable its build.
13514 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
13516 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
13517 if test "x$build_gdbserver" = xyes; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13519 $as_echo "yes" >&6; }
13520 subdirs="$subdirs gdbserver"
13521
13522 gdbserver_build_enabled=yes
13523 else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13526 fi
13527 fi
13528
13529 # If the user explicitly request the gdbserver to be built, verify that
13530 # we were in fact able to enable it.
13531 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
13532 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
13533 fi
13534
13535 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
13536 # to an empty version.
13537
13538 files=
13539 links=
13540
13541 rm -f nm.h
13542 if test "${nativefile}" != ""; then
13543 case "${nativefile}" in
13544 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
13545 * ) GDB_NM_FILE="${nativefile}"
13546 esac
13547 files="${files} ${GDB_NM_FILE}"
13548 links="${links} nm.h"
13549
13550 cat >>confdefs.h <<_ACEOF
13551 #define GDB_NM_FILE "${GDB_NM_FILE}"
13552 _ACEOF
13553
13554 fi
13555
13556
13557 ac_sources="$files"
13558 ac_dests="$links"
13559 while test -n "$ac_sources"; do
13560 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
13561 set $ac_sources; ac_source=$1; shift; ac_sources=$*
13562 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
13563 done
13564 ac_config_links="$ac_config_links $ac_config_links_1"
13565
13566
13567
13568
13569
13570 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
13571
13572
13573 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
13574
13575 ac_config_commands="$ac_config_commands default"
13576
13577 cat >confcache <<\_ACEOF
13578 # This file is a shell script that caches the results of configure
13579 # tests run on this system so they can be shared between configure
13580 # scripts and configure runs, see configure's option --config-cache.
13581 # It is not useful on other systems. If it contains results you don't
13582 # want to keep, you may remove or edit it.
13583 #
13584 # config.status only pays attention to the cache file if you give it
13585 # the --recheck option to rerun configure.
13586 #
13587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13589 # following values.
13590
13591 _ACEOF
13592
13593 # The following way of writing the cache mishandles newlines in values,
13594 # but we know of no workaround that is simple, portable, and efficient.
13595 # So, we kill variables containing newlines.
13596 # Ultrix sh set writes to stderr and can't be redirected directly,
13597 # and sets the high bit in the cache file unless we assign to the vars.
13598 (
13599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13600 eval ac_val=\$$ac_var
13601 case $ac_val in #(
13602 *${as_nl}*)
13603 case $ac_var in #(
13604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13606 esac
13607 case $ac_var in #(
13608 _ | IFS | as_nl) ;; #(
13609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13610 *) { eval $ac_var=; unset $ac_var;} ;;
13611 esac ;;
13612 esac
13613 done
13614
13615 (set) 2>&1 |
13616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13617 *${as_nl}ac_space=\ *)
13618 # `set' does not quote correctly, so add quotes: double-quote
13619 # substitution turns \\\\ into \\, and sed turns \\ into \.
13620 sed -n \
13621 "s/'/'\\\\''/g;
13622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13623 ;; #(
13624 *)
13625 # `set' quotes correctly as required by POSIX, so do not add quotes.
13626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13627 ;;
13628 esac |
13629 sort
13630 ) |
13631 sed '
13632 /^ac_cv_env_/b end
13633 t clear
13634 :clear
13635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13636 t end
13637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13638 :end' >>confcache
13639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13640 if test -w "$cache_file"; then
13641 test "x$cache_file" != "x/dev/null" &&
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13643 $as_echo "$as_me: updating cache $cache_file" >&6;}
13644 cat confcache >$cache_file
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13647 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13648 fi
13649 fi
13650 rm -f confcache
13651
13652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13653 # Let make expand exec_prefix.
13654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13655
13656 DEFS=-DHAVE_CONFIG_H
13657
13658 ac_libobjs=
13659 ac_ltlibobjs=
13660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13661 # 1. Remove the extension, and $U if already installed.
13662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13665 # will be set to the directory where LIBOBJS objects are built.
13666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13668 done
13669 LIBOBJS=$ac_libobjs
13670
13671 LTLIBOBJS=$ac_ltlibobjs
13672
13673
13674 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13675 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13677 fi
13678 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
13679 as_fn_error "conditional \"GMAKE\" was never defined.
13680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13681 fi
13682
13683
13684 : ${CONFIG_STATUS=./config.status}
13685 ac_write_fail=0
13686 ac_clean_files_save=$ac_clean_files
13687 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13689 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13690 as_write_fail=0
13691 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13692 #! $SHELL
13693 # Generated by $as_me.
13694 # Run this file to recreate the current configuration.
13695 # Compiler output produced by configure, useful for debugging
13696 # configure, is in config.log if it exists.
13697
13698 debug=false
13699 ac_cs_recheck=false
13700 ac_cs_silent=false
13701
13702 SHELL=\${CONFIG_SHELL-$SHELL}
13703 export SHELL
13704 _ASEOF
13705 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13706 ## -------------------- ##
13707 ## M4sh Initialization. ##
13708 ## -------------------- ##
13709
13710 # Be more Bourne compatible
13711 DUALCASE=1; export DUALCASE # for MKS sh
13712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13713 emulate sh
13714 NULLCMD=:
13715 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13716 # is contrary to our usage. Disable this feature.
13717 alias -g '${1+"$@"}'='"$@"'
13718 setopt NO_GLOB_SUBST
13719 else
13720 case `(set -o) 2>/dev/null` in #(
13721 *posix*) :
13722 set -o posix ;; #(
13723 *) :
13724 ;;
13725 esac
13726 fi
13727
13728
13729 as_nl='
13730 '
13731 export as_nl
13732 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13733 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13736 # Prefer a ksh shell builtin over an external printf program on Solaris,
13737 # but without wasting forks for bash or zsh.
13738 if test -z "$BASH_VERSION$ZSH_VERSION" \
13739 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13740 as_echo='print -r --'
13741 as_echo_n='print -rn --'
13742 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13743 as_echo='printf %s\n'
13744 as_echo_n='printf %s'
13745 else
13746 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13747 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13748 as_echo_n='/usr/ucb/echo -n'
13749 else
13750 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13751 as_echo_n_body='eval
13752 arg=$1;
13753 case $arg in #(
13754 *"$as_nl"*)
13755 expr "X$arg" : "X\\(.*\\)$as_nl";
13756 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13757 esac;
13758 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13759 '
13760 export as_echo_n_body
13761 as_echo_n='sh -c $as_echo_n_body as_echo'
13762 fi
13763 export as_echo_body
13764 as_echo='sh -c $as_echo_body as_echo'
13765 fi
13766
13767 # The user is always right.
13768 if test "${PATH_SEPARATOR+set}" != set; then
13769 PATH_SEPARATOR=:
13770 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13771 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13772 PATH_SEPARATOR=';'
13773 }
13774 fi
13775
13776
13777 # IFS
13778 # We need space, tab and new line, in precisely that order. Quoting is
13779 # there to prevent editors from complaining about space-tab.
13780 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13781 # splitting by setting IFS to empty value.)
13782 IFS=" "" $as_nl"
13783
13784 # Find who we are. Look in the path if we contain no directory separator.
13785 case $0 in #((
13786 *[\\/]* ) as_myself=$0 ;;
13787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788 for as_dir in $PATH
13789 do
13790 IFS=$as_save_IFS
13791 test -z "$as_dir" && as_dir=.
13792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13793 done
13794 IFS=$as_save_IFS
13795
13796 ;;
13797 esac
13798 # We did not find ourselves, most probably we were run as `sh COMMAND'
13799 # in which case we are not to be found in the path.
13800 if test "x$as_myself" = x; then
13801 as_myself=$0
13802 fi
13803 if test ! -f "$as_myself"; then
13804 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13805 exit 1
13806 fi
13807
13808 # Unset variables that we do not need and which cause bugs (e.g. in
13809 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13810 # suppresses any "Segmentation fault" message there. '((' could
13811 # trigger a bug in pdksh 5.2.14.
13812 for as_var in BASH_ENV ENV MAIL MAILPATH
13813 do eval test x\${$as_var+set} = xset \
13814 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13815 done
13816 PS1='$ '
13817 PS2='> '
13818 PS4='+ '
13819
13820 # NLS nuisances.
13821 LC_ALL=C
13822 export LC_ALL
13823 LANGUAGE=C
13824 export LANGUAGE
13825
13826 # CDPATH.
13827 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13828
13829
13830 # as_fn_error ERROR [LINENO LOG_FD]
13831 # ---------------------------------
13832 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13833 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13834 # script with status $?, using 1 if that was 0.
13835 as_fn_error ()
13836 {
13837 as_status=$?; test $as_status -eq 0 && as_status=1
13838 if test "$3"; then
13839 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13840 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13841 fi
13842 $as_echo "$as_me: error: $1" >&2
13843 as_fn_exit $as_status
13844 } # as_fn_error
13845
13846
13847 # as_fn_set_status STATUS
13848 # -----------------------
13849 # Set $? to STATUS, without forking.
13850 as_fn_set_status ()
13851 {
13852 return $1
13853 } # as_fn_set_status
13854
13855 # as_fn_exit STATUS
13856 # -----------------
13857 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13858 as_fn_exit ()
13859 {
13860 set +e
13861 as_fn_set_status $1
13862 exit $1
13863 } # as_fn_exit
13864
13865 # as_fn_unset VAR
13866 # ---------------
13867 # Portably unset VAR.
13868 as_fn_unset ()
13869 {
13870 { eval $1=; unset $1;}
13871 }
13872 as_unset=as_fn_unset
13873 # as_fn_append VAR VALUE
13874 # ----------------------
13875 # Append the text in VALUE to the end of the definition contained in VAR. Take
13876 # advantage of any shell optimizations that allow amortized linear growth over
13877 # repeated appends, instead of the typical quadratic growth present in naive
13878 # implementations.
13879 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13880 eval 'as_fn_append ()
13881 {
13882 eval $1+=\$2
13883 }'
13884 else
13885 as_fn_append ()
13886 {
13887 eval $1=\$$1\$2
13888 }
13889 fi # as_fn_append
13890
13891 # as_fn_arith ARG...
13892 # ------------------
13893 # Perform arithmetic evaluation on the ARGs, and store the result in the
13894 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13895 # must be portable across $(()) and expr.
13896 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13897 eval 'as_fn_arith ()
13898 {
13899 as_val=$(( $* ))
13900 }'
13901 else
13902 as_fn_arith ()
13903 {
13904 as_val=`expr "$@" || test $? -eq 1`
13905 }
13906 fi # as_fn_arith
13907
13908
13909 if expr a : '\(a\)' >/dev/null 2>&1 &&
13910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13911 as_expr=expr
13912 else
13913 as_expr=false
13914 fi
13915
13916 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13917 as_basename=basename
13918 else
13919 as_basename=false
13920 fi
13921
13922 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13923 as_dirname=dirname
13924 else
13925 as_dirname=false
13926 fi
13927
13928 as_me=`$as_basename -- "$0" ||
13929 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13930 X"$0" : 'X\(//\)$' \| \
13931 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13932 $as_echo X/"$0" |
13933 sed '/^.*\/\([^/][^/]*\)\/*$/{
13934 s//\1/
13935 q
13936 }
13937 /^X\/\(\/\/\)$/{
13938 s//\1/
13939 q
13940 }
13941 /^X\/\(\/\).*/{
13942 s//\1/
13943 q
13944 }
13945 s/.*/./; q'`
13946
13947 # Avoid depending upon Character Ranges.
13948 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13949 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13950 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13951 as_cr_digits='0123456789'
13952 as_cr_alnum=$as_cr_Letters$as_cr_digits
13953
13954 ECHO_C= ECHO_N= ECHO_T=
13955 case `echo -n x` in #(((((
13956 -n*)
13957 case `echo 'xy\c'` in
13958 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13959 xy) ECHO_C='\c';;
13960 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13961 ECHO_T=' ';;
13962 esac;;
13963 *)
13964 ECHO_N='-n';;
13965 esac
13966
13967 rm -f conf$$ conf$$.exe conf$$.file
13968 if test -d conf$$.dir; then
13969 rm -f conf$$.dir/conf$$.file
13970 else
13971 rm -f conf$$.dir
13972 mkdir conf$$.dir 2>/dev/null
13973 fi
13974 if (echo >conf$$.file) 2>/dev/null; then
13975 if ln -s conf$$.file conf$$ 2>/dev/null; then
13976 as_ln_s='ln -s'
13977 # ... but there are two gotchas:
13978 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13979 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13980 # In both cases, we have to default to `cp -p'.
13981 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13982 as_ln_s='cp -p'
13983 elif ln conf$$.file conf$$ 2>/dev/null; then
13984 as_ln_s=ln
13985 else
13986 as_ln_s='cp -p'
13987 fi
13988 else
13989 as_ln_s='cp -p'
13990 fi
13991 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13992 rmdir conf$$.dir 2>/dev/null
13993
13994
13995 # as_fn_mkdir_p
13996 # -------------
13997 # Create "$as_dir" as a directory, including parents if necessary.
13998 as_fn_mkdir_p ()
13999 {
14000
14001 case $as_dir in #(
14002 -*) as_dir=./$as_dir;;
14003 esac
14004 test -d "$as_dir" || eval $as_mkdir_p || {
14005 as_dirs=
14006 while :; do
14007 case $as_dir in #(
14008 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14009 *) as_qdir=$as_dir;;
14010 esac
14011 as_dirs="'$as_qdir' $as_dirs"
14012 as_dir=`$as_dirname -- "$as_dir" ||
14013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14014 X"$as_dir" : 'X\(//\)[^/]' \| \
14015 X"$as_dir" : 'X\(//\)$' \| \
14016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14017 $as_echo X"$as_dir" |
14018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14019 s//\1/
14020 q
14021 }
14022 /^X\(\/\/\)[^/].*/{
14023 s//\1/
14024 q
14025 }
14026 /^X\(\/\/\)$/{
14027 s//\1/
14028 q
14029 }
14030 /^X\(\/\).*/{
14031 s//\1/
14032 q
14033 }
14034 s/.*/./; q'`
14035 test -d "$as_dir" && break
14036 done
14037 test -z "$as_dirs" || eval "mkdir $as_dirs"
14038 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14039
14040
14041 } # as_fn_mkdir_p
14042 if mkdir -p . 2>/dev/null; then
14043 as_mkdir_p='mkdir -p "$as_dir"'
14044 else
14045 test -d ./-p && rmdir ./-p
14046 as_mkdir_p=false
14047 fi
14048
14049 if test -x / >/dev/null 2>&1; then
14050 as_test_x='test -x'
14051 else
14052 if ls -dL / >/dev/null 2>&1; then
14053 as_ls_L_option=L
14054 else
14055 as_ls_L_option=
14056 fi
14057 as_test_x='
14058 eval sh -c '\''
14059 if test -d "$1"; then
14060 test -d "$1/.";
14061 else
14062 case $1 in #(
14063 -*)set "./$1";;
14064 esac;
14065 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14066 ???[sx]*):;;*)false;;esac;fi
14067 '\'' sh
14068 '
14069 fi
14070 as_executable_p=$as_test_x
14071
14072 # Sed expression to map a string onto a valid CPP name.
14073 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14074
14075 # Sed expression to map a string onto a valid variable name.
14076 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14077
14078
14079 exec 6>&1
14080 ## ----------------------------------- ##
14081 ## Main body of $CONFIG_STATUS script. ##
14082 ## ----------------------------------- ##
14083 _ASEOF
14084 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14085
14086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14087 # Save the log message, to keep $0 and so on meaningful, and to
14088 # report actual input values of CONFIG_FILES etc. instead of their
14089 # values after options handling.
14090 ac_log="
14091 This file was extended by $as_me, which was
14092 generated by GNU Autoconf 2.64. Invocation command line was
14093
14094 CONFIG_FILES = $CONFIG_FILES
14095 CONFIG_HEADERS = $CONFIG_HEADERS
14096 CONFIG_LINKS = $CONFIG_LINKS
14097 CONFIG_COMMANDS = $CONFIG_COMMANDS
14098 $ $0 $@
14099
14100 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14101 "
14102
14103 _ACEOF
14104
14105 case $ac_config_files in *"
14106 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14107 esac
14108
14109 case $ac_config_headers in *"
14110 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14111 esac
14112
14113
14114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14115 # Files that config.status was made for.
14116 config_files="$ac_config_files"
14117 config_headers="$ac_config_headers"
14118 config_links="$ac_config_links"
14119 config_commands="$ac_config_commands"
14120
14121 _ACEOF
14122
14123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14124 ac_cs_usage="\
14125 \`$as_me' instantiates files and other configuration actions
14126 from templates according to the current configuration. Unless the files
14127 and actions are specified as TAGs, all are instantiated by default.
14128
14129 Usage: $0 [OPTION]... [TAG]...
14130
14131 -h, --help print this help, then exit
14132 -V, --version print version number and configuration settings, then exit
14133 -q, --quiet, --silent
14134 do not print progress messages
14135 -d, --debug don't remove temporary files
14136 --recheck update $as_me by reconfiguring in the same conditions
14137 --file=FILE[:TEMPLATE]
14138 instantiate the configuration file FILE
14139 --header=FILE[:TEMPLATE]
14140 instantiate the configuration header FILE
14141
14142 Configuration files:
14143 $config_files
14144
14145 Configuration headers:
14146 $config_headers
14147
14148 Configuration links:
14149 $config_links
14150
14151 Configuration commands:
14152 $config_commands
14153
14154 Report bugs to the package provider."
14155
14156 _ACEOF
14157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14158 ac_cs_version="\\
14159 config.status
14160 configured by $0, generated by GNU Autoconf 2.64,
14161 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14162
14163 Copyright (C) 2009 Free Software Foundation, Inc.
14164 This config.status script is free software; the Free Software Foundation
14165 gives unlimited permission to copy, distribute and modify it."
14166
14167 ac_pwd='$ac_pwd'
14168 srcdir='$srcdir'
14169 INSTALL='$INSTALL'
14170 AWK='$AWK'
14171 test -n "\$AWK" || AWK=awk
14172 _ACEOF
14173
14174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14175 # The default lists apply if the user does not specify any file.
14176 ac_need_defaults=:
14177 while test $# != 0
14178 do
14179 case $1 in
14180 --*=*)
14181 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14182 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14183 ac_shift=:
14184 ;;
14185 *)
14186 ac_option=$1
14187 ac_optarg=$2
14188 ac_shift=shift
14189 ;;
14190 esac
14191
14192 case $ac_option in
14193 # Handling of the options.
14194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14195 ac_cs_recheck=: ;;
14196 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14197 $as_echo "$ac_cs_version"; exit ;;
14198 --debug | --debu | --deb | --de | --d | -d )
14199 debug=: ;;
14200 --file | --fil | --fi | --f )
14201 $ac_shift
14202 case $ac_optarg in
14203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14204 esac
14205 as_fn_append CONFIG_FILES " '$ac_optarg'"
14206 ac_need_defaults=false;;
14207 --header | --heade | --head | --hea )
14208 $ac_shift
14209 case $ac_optarg in
14210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14211 esac
14212 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14213 ac_need_defaults=false;;
14214 --he | --h)
14215 # Conflict between --help and --header
14216 as_fn_error "ambiguous option: \`$1'
14217 Try \`$0 --help' for more information.";;
14218 --help | --hel | -h )
14219 $as_echo "$ac_cs_usage"; exit ;;
14220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14222 ac_cs_silent=: ;;
14223
14224 # This is an error.
14225 -*) as_fn_error "unrecognized option: \`$1'
14226 Try \`$0 --help' for more information." ;;
14227
14228 *) as_fn_append ac_config_targets " $1"
14229 ac_need_defaults=false ;;
14230
14231 esac
14232 shift
14233 done
14234
14235 ac_configure_extra_args=
14236
14237 if $ac_cs_silent; then
14238 exec 6>/dev/null
14239 ac_configure_extra_args="$ac_configure_extra_args --silent"
14240 fi
14241
14242 _ACEOF
14243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14244 if \$ac_cs_recheck; then
14245 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14246 shift
14247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14248 CONFIG_SHELL='$SHELL'
14249 export CONFIG_SHELL
14250 exec "\$@"
14251 fi
14252
14253 _ACEOF
14254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14255 exec 5>>config.log
14256 {
14257 echo
14258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14259 ## Running $as_me. ##
14260 _ASBOX
14261 $as_echo "$ac_log"
14262 } >&5
14263
14264 _ACEOF
14265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14266 #
14267 # INIT-COMMANDS
14268 #
14269 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14270
14271 _ACEOF
14272
14273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14274
14275 # Handling of arguments.
14276 for ac_config_target in $ac_config_targets
14277 do
14278 case $ac_config_target in
14279 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14280 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
14281 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
14282 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
14283 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14284 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
14285 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14286 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
14287 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14288
14289 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14290 esac
14291 done
14292
14293
14294 # If the user did not use the arguments to specify the items to instantiate,
14295 # then the envvar interface is used. Set only those that are not.
14296 # We use the long form for the default assignment because of an extremely
14297 # bizarre bug on SunOS 4.1.3.
14298 if $ac_need_defaults; then
14299 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14300 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14301 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14302 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14303 fi
14304
14305 # Have a temporary directory for convenience. Make it in the build tree
14306 # simply because there is no reason against having it here, and in addition,
14307 # creating and moving files from /tmp can sometimes cause problems.
14308 # Hook for its removal unless debugging.
14309 # Note that there is a small window in which the directory will not be cleaned:
14310 # after its creation but before its name has been assigned to `$tmp'.
14311 $debug ||
14312 {
14313 tmp=
14314 trap 'exit_status=$?
14315 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14316 ' 0
14317 trap 'as_fn_exit 1' 1 2 13 15
14318 }
14319 # Create a (secure) tmp directory for tmp files.
14320
14321 {
14322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14323 test -n "$tmp" && test -d "$tmp"
14324 } ||
14325 {
14326 tmp=./conf$$-$RANDOM
14327 (umask 077 && mkdir "$tmp")
14328 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14329
14330 # Set up the scripts for CONFIG_FILES section.
14331 # No need to generate them if there are no CONFIG_FILES.
14332 # This happens for instance with `./config.status config.h'.
14333 if test -n "$CONFIG_FILES"; then
14334
14335 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14336 ac_cs_awk_getline=:
14337 ac_cs_awk_pipe_init=
14338 ac_cs_awk_read_file='
14339 while ((getline aline < (F[key])) > 0)
14340 print(aline)
14341 close(F[key])'
14342 ac_cs_awk_pipe_fini=
14343 else
14344 ac_cs_awk_getline=false
14345 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14346 ac_cs_awk_read_file='
14347 print "|#_!!_#|"
14348 print "cat " F[key] " &&"
14349 '$ac_cs_awk_pipe_init
14350 # The final `:' finishes the AND list.
14351 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14352 fi
14353 ac_cr=`echo X | tr X '\015'`
14354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14355 # But we know of no other shell where ac_cr would be empty at this
14356 # point, so we can use a bashism as a fallback.
14357 if test "x$ac_cr" = x; then
14358 eval ac_cr=\$\'\\r\'
14359 fi
14360 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14362 ac_cs_awk_cr='\r'
14363 else
14364 ac_cs_awk_cr=$ac_cr
14365 fi
14366
14367 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14368 _ACEOF
14369
14370 # Create commands to substitute file output variables.
14371 {
14372 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14373 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14374 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14375 echo "_ACAWK" &&
14376 echo "_ACEOF"
14377 } >conf$$files.sh &&
14378 . ./conf$$files.sh ||
14379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14380 rm -f conf$$files.sh
14381
14382 {
14383 echo "cat >conf$$subs.awk <<_ACEOF" &&
14384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14385 echo "_ACEOF"
14386 } >conf$$subs.sh ||
14387 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14389 ac_delim='%!_!# '
14390 for ac_last_try in false false false false false :; do
14391 . ./conf$$subs.sh ||
14392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14393
14394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14395 if test $ac_delim_n = $ac_delim_num; then
14396 break
14397 elif $ac_last_try; then
14398 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14399 else
14400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14401 fi
14402 done
14403 rm -f conf$$subs.sh
14404
14405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14406 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14407 _ACEOF
14408 sed -n '
14409 h
14410 s/^/S["/; s/!.*/"]=/
14411 p
14412 g
14413 s/^[^!]*!//
14414 :repl
14415 t repl
14416 s/'"$ac_delim"'$//
14417 t delim
14418 :nl
14419 h
14420 s/\(.\{148\}\).*/\1/
14421 t more1
14422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14423 p
14424 n
14425 b repl
14426 :more1
14427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14428 p
14429 g
14430 s/.\{148\}//
14431 t nl
14432 :delim
14433 h
14434 s/\(.\{148\}\).*/\1/
14435 t more2
14436 s/["\\]/\\&/g; s/^/"/; s/$/"/
14437 p
14438 b
14439 :more2
14440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14441 p
14442 g
14443 s/.\{148\}//
14444 t delim
14445 ' <conf$$subs.awk | sed '
14446 /^[^""]/{
14447 N
14448 s/\n//
14449 }
14450 ' >>$CONFIG_STATUS || ac_write_fail=1
14451 rm -f conf$$subs.awk
14452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14453 _ACAWK
14454 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14455 for (key in S) S_is_set[key] = 1
14456 FS = "\a"
14457 \$ac_cs_awk_pipe_init
14458 }
14459 {
14460 line = $ 0
14461 nfields = split(line, field, "@")
14462 substed = 0
14463 len = length(field[1])
14464 for (i = 2; i < nfields; i++) {
14465 key = field[i]
14466 keylen = length(key)
14467 if (S_is_set[key]) {
14468 value = S[key]
14469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14470 len += length(value) + length(field[++i])
14471 substed = 1
14472 } else
14473 len += 1 + keylen
14474 }
14475 if (nfields == 3 && !substed) {
14476 key = field[2]
14477 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14478 \$ac_cs_awk_read_file
14479 next
14480 }
14481 }
14482 print line
14483 }
14484 \$ac_cs_awk_pipe_fini
14485 _ACAWK
14486 _ACEOF
14487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14489 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14490 else
14491 cat
14492 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14493 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14494 _ACEOF
14495
14496 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14498 # trailing colons and then remove the whole line if VPATH becomes empty
14499 # (actually we leave an empty line to preserve line numbers).
14500 if test "x$srcdir" = x.; then
14501 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14502 s/:*\$(srcdir):*/:/
14503 s/:*\${srcdir}:*/:/
14504 s/:*@srcdir@:*/:/
14505 s/^\([^=]*=[ ]*\):*/\1/
14506 s/:*$//
14507 s/^[^=]*=[ ]*$//
14508 }'
14509 fi
14510
14511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14512 fi # test -n "$CONFIG_FILES"
14513
14514 # Set up the scripts for CONFIG_HEADERS section.
14515 # No need to generate them if there are no CONFIG_HEADERS.
14516 # This happens for instance with `./config.status Makefile'.
14517 if test -n "$CONFIG_HEADERS"; then
14518 cat >"$tmp/defines.awk" <<\_ACAWK ||
14519 BEGIN {
14520 _ACEOF
14521
14522 # Transform confdefs.h into an awk script `defines.awk', embedded as
14523 # here-document in config.status, that substitutes the proper values into
14524 # config.h.in to produce config.h.
14525
14526 # Create a delimiter string that does not exist in confdefs.h, to ease
14527 # handling of long lines.
14528 ac_delim='%!_!# '
14529 for ac_last_try in false false :; do
14530 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14531 if test -z "$ac_t"; then
14532 break
14533 elif $ac_last_try; then
14534 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14535 else
14536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14537 fi
14538 done
14539
14540 # For the awk script, D is an array of macro values keyed by name,
14541 # likewise P contains macro parameters if any. Preserve backslash
14542 # newline sequences.
14543
14544 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14545 sed -n '
14546 s/.\{148\}/&'"$ac_delim"'/g
14547 t rset
14548 :rset
14549 s/^[ ]*#[ ]*define[ ][ ]*/ /
14550 t def
14551 d
14552 :def
14553 s/\\$//
14554 t bsnl
14555 s/["\\]/\\&/g
14556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14557 D["\1"]=" \3"/p
14558 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14559 d
14560 :bsnl
14561 s/["\\]/\\&/g
14562 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14563 D["\1"]=" \3\\\\\\n"\\/p
14564 t cont
14565 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14566 t cont
14567 d
14568 :cont
14569 n
14570 s/.\{148\}/&'"$ac_delim"'/g
14571 t clear
14572 :clear
14573 s/\\$//
14574 t bsnlc
14575 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14576 d
14577 :bsnlc
14578 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14579 b cont
14580 ' <confdefs.h | sed '
14581 s/'"$ac_delim"'/"\\\
14582 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14583
14584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14585 for (key in D) D_is_set[key] = 1
14586 FS = "\a"
14587 }
14588 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14589 line = \$ 0
14590 split(line, arg, " ")
14591 if (arg[1] == "#") {
14592 defundef = arg[2]
14593 mac1 = arg[3]
14594 } else {
14595 defundef = substr(arg[1], 2)
14596 mac1 = arg[2]
14597 }
14598 split(mac1, mac2, "(") #)
14599 macro = mac2[1]
14600 prefix = substr(line, 1, index(line, defundef) - 1)
14601 if (D_is_set[macro]) {
14602 # Preserve the white space surrounding the "#".
14603 print prefix "define", macro P[macro] D[macro]
14604 next
14605 } else {
14606 # Replace #undef with comments. This is necessary, for example,
14607 # in the case of _POSIX_SOURCE, which is predefined and required
14608 # on some systems where configure will not decide to define it.
14609 if (defundef == "undef") {
14610 print "/*", prefix defundef, macro, "*/"
14611 next
14612 }
14613 }
14614 }
14615 { print }
14616 _ACAWK
14617 _ACEOF
14618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14619 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14620 fi # test -n "$CONFIG_HEADERS"
14621
14622
14623 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14624 shift
14625 for ac_tag
14626 do
14627 case $ac_tag in
14628 :[FHLC]) ac_mode=$ac_tag; continue;;
14629 esac
14630 case $ac_mode$ac_tag in
14631 :[FHL]*:*);;
14632 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14633 :[FH]-) ac_tag=-:-;;
14634 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14635 esac
14636 ac_save_IFS=$IFS
14637 IFS=:
14638 set x $ac_tag
14639 IFS=$ac_save_IFS
14640 shift
14641 ac_file=$1
14642 shift
14643
14644 case $ac_mode in
14645 :L) ac_source=$1;;
14646 :[FH])
14647 ac_file_inputs=
14648 for ac_f
14649 do
14650 case $ac_f in
14651 -) ac_f="$tmp/stdin";;
14652 *) # Look for the file first in the build tree, then in the source tree
14653 # (if the path is not absolute). The absolute path cannot be DOS-style,
14654 # because $ac_f cannot contain `:'.
14655 test -f "$ac_f" ||
14656 case $ac_f in
14657 [\\/$]*) false;;
14658 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14659 esac ||
14660 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14661 esac
14662 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14663 as_fn_append ac_file_inputs " '$ac_f'"
14664 done
14665
14666 # Let's still pretend it is `configure' which instantiates (i.e., don't
14667 # use $as_me), people would be surprised to read:
14668 # /* config.h. Generated by config.status. */
14669 configure_input='Generated from '`
14670 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14671 `' by configure.'
14672 if test x"$ac_file" != x-; then
14673 configure_input="$ac_file. $configure_input"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14675 $as_echo "$as_me: creating $ac_file" >&6;}
14676 fi
14677 # Neutralize special characters interpreted by sed in replacement strings.
14678 case $configure_input in #(
14679 *\&* | *\|* | *\\* )
14680 ac_sed_conf_input=`$as_echo "$configure_input" |
14681 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14682 *) ac_sed_conf_input=$configure_input;;
14683 esac
14684
14685 case $ac_tag in
14686 *:-:* | *:-) cat >"$tmp/stdin" \
14687 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14688 esac
14689 ;;
14690 esac
14691
14692 ac_dir=`$as_dirname -- "$ac_file" ||
14693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14694 X"$ac_file" : 'X\(//\)[^/]' \| \
14695 X"$ac_file" : 'X\(//\)$' \| \
14696 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14697 $as_echo X"$ac_file" |
14698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14699 s//\1/
14700 q
14701 }
14702 /^X\(\/\/\)[^/].*/{
14703 s//\1/
14704 q
14705 }
14706 /^X\(\/\/\)$/{
14707 s//\1/
14708 q
14709 }
14710 /^X\(\/\).*/{
14711 s//\1/
14712 q
14713 }
14714 s/.*/./; q'`
14715 as_dir="$ac_dir"; as_fn_mkdir_p
14716 ac_builddir=.
14717
14718 case "$ac_dir" in
14719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14720 *)
14721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14722 # A ".." for each directory in $ac_dir_suffix.
14723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14724 case $ac_top_builddir_sub in
14725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14727 esac ;;
14728 esac
14729 ac_abs_top_builddir=$ac_pwd
14730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14731 # for backward compatibility:
14732 ac_top_builddir=$ac_top_build_prefix
14733
14734 case $srcdir in
14735 .) # We are building in place.
14736 ac_srcdir=.
14737 ac_top_srcdir=$ac_top_builddir_sub
14738 ac_abs_top_srcdir=$ac_pwd ;;
14739 [\\/]* | ?:[\\/]* ) # Absolute name.
14740 ac_srcdir=$srcdir$ac_dir_suffix;
14741 ac_top_srcdir=$srcdir
14742 ac_abs_top_srcdir=$srcdir ;;
14743 *) # Relative name.
14744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14745 ac_top_srcdir=$ac_top_build_prefix$srcdir
14746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14747 esac
14748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14749
14750
14751 case $ac_mode in
14752 :F)
14753 #
14754 # CONFIG_FILE
14755 #
14756
14757 case $INSTALL in
14758 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14759 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14760 esac
14761 _ACEOF
14762
14763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14764 # If the template does not know about datarootdir, expand it.
14765 # FIXME: This hack should be removed a few years after 2.60.
14766 ac_datarootdir_hack=; ac_datarootdir_seen=
14767 ac_sed_dataroot='
14768 /datarootdir/ {
14769 p
14770 q
14771 }
14772 /@datadir@/p
14773 /@docdir@/p
14774 /@infodir@/p
14775 /@localedir@/p
14776 /@mandir@/p'
14777 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14778 *datarootdir*) ac_datarootdir_seen=yes;;
14779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14781 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14782 _ACEOF
14783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14784 ac_datarootdir_hack='
14785 s&@datadir@&$datadir&g
14786 s&@docdir@&$docdir&g
14787 s&@infodir@&$infodir&g
14788 s&@localedir@&$localedir&g
14789 s&@mandir@&$mandir&g
14790 s&\\\${datarootdir}&$datarootdir&g' ;;
14791 esac
14792 _ACEOF
14793
14794 # Neutralize VPATH when `$srcdir' = `.'.
14795 # Shell code in configure.ac might set extrasub.
14796 # FIXME: do we really want to maintain this feature?
14797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14798 ac_sed_extra="$ac_vpsub
14799 $extrasub
14800 _ACEOF
14801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14802 :t
14803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14804 s|@configure_input@|$ac_sed_conf_input|;t t
14805 s&@top_builddir@&$ac_top_builddir_sub&;t t
14806 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14807 s&@srcdir@&$ac_srcdir&;t t
14808 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14809 s&@top_srcdir@&$ac_top_srcdir&;t t
14810 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14811 s&@builddir@&$ac_builddir&;t t
14812 s&@abs_builddir@&$ac_abs_builddir&;t t
14813 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14814 s&@INSTALL@&$ac_INSTALL&;t t
14815 $ac_datarootdir_hack
14816 "
14817 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14818 if $ac_cs_awk_getline; then
14819 $AWK -f "$tmp/subs.awk"
14820 else
14821 $AWK -f "$tmp/subs.awk" | $SHELL
14822 fi >$tmp/out \
14823 || as_fn_error "could not create $ac_file" "$LINENO" 5
14824
14825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14826 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14827 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14829 which seems to be undefined. Please make sure it is defined." >&5
14830 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14831 which seems to be undefined. Please make sure it is defined." >&2;}
14832
14833 rm -f "$tmp/stdin"
14834 case $ac_file in
14835 -) cat "$tmp/out" && rm -f "$tmp/out";;
14836 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14837 esac \
14838 || as_fn_error "could not create $ac_file" "$LINENO" 5
14839 ;;
14840 :H)
14841 #
14842 # CONFIG_HEADER
14843 #
14844 if test x"$ac_file" != x-; then
14845 {
14846 $as_echo "/* $configure_input */" \
14847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14848 } >"$tmp/config.h" \
14849 || as_fn_error "could not create $ac_file" "$LINENO" 5
14850 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14852 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14853 else
14854 rm -f "$ac_file"
14855 mv "$tmp/config.h" "$ac_file" \
14856 || as_fn_error "could not create $ac_file" "$LINENO" 5
14857 fi
14858 else
14859 $as_echo "/* $configure_input */" \
14860 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14861 || as_fn_error "could not create -" "$LINENO" 5
14862 fi
14863 ;;
14864 :L)
14865 #
14866 # CONFIG_LINK
14867 #
14868
14869 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14870 :
14871 else
14872 # Prefer the file from the source tree if names are identical.
14873 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14874 ac_source=$srcdir/$ac_source
14875 fi
14876
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14878 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14879
14880 if test ! -r "$ac_source"; then
14881 as_fn_error "$ac_source: file not found" "$LINENO" 5
14882 fi
14883 rm -f "$ac_file"
14884
14885 # Try a relative symlink, then a hard link, then a copy.
14886 case $srcdir in
14887 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14888 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14889 esac
14890 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14891 ln "$ac_source" "$ac_file" 2>/dev/null ||
14892 cp -p "$ac_source" "$ac_file" ||
14893 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14894 fi
14895 ;;
14896 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14897 $as_echo "$as_me: executing $ac_file commands" >&6;}
14898 ;;
14899 esac
14900
14901
14902 case $ac_file$ac_mode in
14903 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
14904 "default":C)
14905 case x$CONFIG_HEADERS in
14906 xconfig.h:config.in)
14907 echo > stamp-h ;;
14908 esac
14909 ;;
14910
14911 esac
14912 done # for ac_tag
14913
14914
14915 as_fn_exit 0
14916 _ACEOF
14917 ac_clean_files=$ac_clean_files_save
14918
14919 test $ac_write_fail = 0 ||
14920 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14921
14922
14923 # configure is writing to config.log, and then calls config.status.
14924 # config.status does its own redirection, appending to config.log.
14925 # Unfortunately, on DOS this fails, as config.log is still kept open
14926 # by configure, so config.status won't be able to write to it; its
14927 # output is simply discarded. So we exec the FD to /dev/null,
14928 # effectively closing config.log, so it can be properly (re)opened and
14929 # appended to by config.status. When coming back to configure, we
14930 # need to make the FD available again.
14931 if test "$no_create" != yes; then
14932 ac_cs_success=:
14933 ac_config_status_args=
14934 test "$silent" = yes &&
14935 ac_config_status_args="$ac_config_status_args --quiet"
14936 exec 5>/dev/null
14937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14938 exec 5>>config.log
14939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14940 # would make configure fail if this is the last instruction.
14941 $ac_cs_success || as_fn_exit $?
14942 fi
14943
14944 #
14945 # CONFIG_SUBDIRS section.
14946 #
14947 if test "$no_recursion" != yes; then
14948
14949 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14950 # so they do not pile up.
14951 ac_sub_configure_args=
14952 ac_prev=
14953 eval "set x $ac_configure_args"
14954 shift
14955 for ac_arg
14956 do
14957 if test -n "$ac_prev"; then
14958 ac_prev=
14959 continue
14960 fi
14961 case $ac_arg in
14962 -cache-file | --cache-file | --cache-fil | --cache-fi \
14963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14964 ac_prev=cache_file ;;
14965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14967 | --c=*)
14968 ;;
14969 --config-cache | -C)
14970 ;;
14971 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14972 ac_prev=srcdir ;;
14973 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14974 ;;
14975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14976 ac_prev=prefix ;;
14977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14978 ;;
14979 --disable-option-checking)
14980 ;;
14981 *)
14982 case $ac_arg in
14983 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14984 esac
14985 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14986 esac
14987 done
14988
14989 # Always prepend --prefix to ensure using the same prefix
14990 # in subdir configurations.
14991 ac_arg="--prefix=$prefix"
14992 case $ac_arg in
14993 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14994 esac
14995 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14996
14997 # Pass --silent
14998 if test "$silent" = yes; then
14999 ac_sub_configure_args="--silent $ac_sub_configure_args"
15000 fi
15001
15002 # Always prepend --disable-option-checking to silence warnings, since
15003 # different subdirs can have different --enable and --with options.
15004 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15005
15006 ac_popdir=`pwd`
15007 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15008
15009 # Do not complain, so a configure script can configure whichever
15010 # parts of a large source tree are present.
15011 test -d "$srcdir/$ac_dir" || continue
15012
15013 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15014 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15015 $as_echo "$ac_msg" >&6
15016 as_dir="$ac_dir"; as_fn_mkdir_p
15017 ac_builddir=.
15018
15019 case "$ac_dir" in
15020 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15021 *)
15022 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15023 # A ".." for each directory in $ac_dir_suffix.
15024 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15025 case $ac_top_builddir_sub in
15026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15028 esac ;;
15029 esac
15030 ac_abs_top_builddir=$ac_pwd
15031 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15032 # for backward compatibility:
15033 ac_top_builddir=$ac_top_build_prefix
15034
15035 case $srcdir in
15036 .) # We are building in place.
15037 ac_srcdir=.
15038 ac_top_srcdir=$ac_top_builddir_sub
15039 ac_abs_top_srcdir=$ac_pwd ;;
15040 [\\/]* | ?:[\\/]* ) # Absolute name.
15041 ac_srcdir=$srcdir$ac_dir_suffix;
15042 ac_top_srcdir=$srcdir
15043 ac_abs_top_srcdir=$srcdir ;;
15044 *) # Relative name.
15045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15046 ac_top_srcdir=$ac_top_build_prefix$srcdir
15047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15048 esac
15049 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15050
15051
15052 cd "$ac_dir"
15053
15054 # Check for guested configure; otherwise get Cygnus style configure.
15055 if test -f "$ac_srcdir/configure.gnu"; then
15056 ac_sub_configure=$ac_srcdir/configure.gnu
15057 elif test -f "$ac_srcdir/configure"; then
15058 ac_sub_configure=$ac_srcdir/configure
15059 elif test -f "$ac_srcdir/configure.in"; then
15060 # This should be Cygnus configure.
15061 ac_sub_configure=$ac_aux_dir/configure
15062 else
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15064 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15065 ac_sub_configure=
15066 fi
15067
15068 # The recursion is here.
15069 if test -n "$ac_sub_configure"; then
15070 # Make the cache file name correct relative to the subdirectory.
15071 case $cache_file in
15072 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15073 *) # Relative name.
15074 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15075 esac
15076
15077 { $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
15078 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15079 # The eval makes quoting arguments work.
15080 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15081 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15082 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15083 fi
15084
15085 cd "$ac_popdir"
15086 done
15087 fi
15088 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15090 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15091 fi
15092
15093
15094 exit 0