cca0aebd5cc9070d4a11f462da94398a19e7f6fc
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 enable_option_checking=no
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 GCORE_TRANSFORM_NAME
595 GDB_TRANSFORM_NAME
596 GDB_NM_FILE
597 LTLIBBABELTRACE
598 LIBBABELTRACE
599 HAVE_LIBBABELTRACE
600 frags
601 target_subdir
602 CONFIG_UNINSTALL
603 CONFIG_INSTALL
604 CONFIG_CLEAN
605 CONFIG_ALL
606 CONFIG_SRCS
607 CONFIG_DEPS
608 CONFIG_OBS
609 PROFILE_CFLAGS
610 ENABLE_CFLAGS
611 SIM_OBS
612 SIM
613 XMKMF
614 GDBTK_SRC_DIR
615 GDBTK_CFLAGS
616 GDBTKLIBS
617 X_LIBS
618 X_LDFLAGS
619 X_CFLAGS
620 TK_XINCLUDES
621 TK_DEPS
622 TK_LIBRARY
623 TK_INCLUDE
624 TK_STUB_LIB_SPEC
625 TK_STUB_LIB_FLAG
626 TK_STUB_LIB_FILE
627 TK_LIB_SPEC
628 TK_LIB_FLAG
629 TK_LIB_FILE
630 TK_SRC_DIR
631 TK_BIN_DIR
632 TK_VERSION
633 TCL_DEPS
634 TCL_LIBRARY
635 TCL_INCLUDE
636 TCL_STUB_LIB_SPEC
637 TCL_STUB_LIB_FLAG
638 TCL_STUB_LIB_FILE
639 TCL_LIB_SPEC
640 TCL_LIB_FLAG
641 TCL_LIB_FILE
642 TCL_SRC_DIR
643 TCL_BIN_DIR
644 TCL_PATCH_LEVEL
645 TCL_VERSION
646 WIN32LDAPP
647 GUI_CFLAGS_X
648 LIBGUI
649 LTLIBLZMA
650 LIBLZMA
651 HAVE_LIBLZMA
652 WIN32LIBS
653 SER_HARDWIRE
654 WERROR_CFLAGS
655 WARN_CFLAGS
656 SYSTEM_GDBINIT
657 TARGET_SYSTEM_ROOT
658 CONFIG_LDFLAGS
659 RDYNAMIC
660 ALLOCA
661 HAVE_GUILE_FALSE
662 HAVE_GUILE_TRUE
663 GUILE_LIBS
664 GUILE_CPPFLAGS
665 GUILD_TARGET_FLAG
666 GUILD
667 pkg_config_prog_path
668 HAVE_PYTHON_FALSE
669 HAVE_PYTHON_TRUE
670 PYTHON_LIBS
671 PYTHON_CPPFLAGS
672 PYTHON_CFLAGS
673 python_prog_path
674 LTLIBEXPAT
675 LIBEXPAT
676 HAVE_LIBEXPAT
677 JIT_READER_DIR
678 TARGET_PTR
679 READLINE_TEXI_INCFLAG
680 READLINE_CFLAGS
681 READLINE_DEPS
682 READLINE
683 MIG
684 WINDRES
685 DLLTOOL
686 AR
687 YFLAGS
688 YACC
689 RANLIB
690 LN_S
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 AWK
695 REPORT_BUGS_TEXI
696 REPORT_BUGS_TO
697 PKGVERSION
698 HAVE_NATIVE_GCORE_TARGET
699 TARGET_OBS
700 subdirs
701 GDB_DATADIR
702 DEBUGDIR
703 MAKEINFO_EXTRA_FLAGS
704 MAKEINFOFLAGS
705 MAKEINFO
706 PACKAGE
707 GNULIB_STDINT_H
708 CATOBJEXT
709 GENCAT
710 INSTOBJEXT
711 DATADIRNAME
712 CATALOGS
713 POSUB
714 GMSGFMT
715 XGETTEXT
716 INCINTL
717 LIBINTL_DEP
718 LIBINTL
719 USE_NLS
720 SET_MAKE
721 GMAKE_FALSE
722 GMAKE_TRUE
723 MAKE
724 CCDEPMODE
725 DEPDIR
726 am__leading_dot
727 COMPILER
728 INSTALL_STRIP_PROGRAM
729 STRIP
730 install_sh
731 target_os
732 target_vendor
733 target_cpu
734 target
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 EGREP
744 GREP
745 CPP
746 ac_ct_CXX
747 CXXFLAGS
748 CXX
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
755 CC
756 MAINT
757 MAINTAINER_MODE_FALSE
758 MAINTAINER_MODE_TRUE
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files='host_makefile_frag'
798 ac_user_opts='
799 enable_option_checking
800 enable_maintainer_mode
801 enable_plugins
802 enable_largefile
803 enable_build_with_cxx
804 with_separate_debug_dir
805 with_gdb_datadir
806 with_relocated_sources
807 with_auto_load_dir
808 with_auto_load_safe_path
809 enable_targets
810 enable_64_bit_bfd
811 enable_gdbcli
812 enable_gdbmi
813 enable_tui
814 enable_gdbtk
815 with_libunwind_ia64
816 with_curses
817 enable_profiling
818 with_pkgversion
819 with_bugurl
820 with_zlib
821 with_libiconv_prefix
822 with_iconv_bin
823 with_system_readline
824 with_jit_reader_dir
825 with_expat
826 with_gnu_ld
827 enable_rpath
828 with_libexpat_prefix
829 with_python
830 with_guile
831 enable_libmcheck
832 with_included_regex
833 with_sysroot
834 with_system_gdbinit
835 enable_werror
836 enable_build_warnings
837 enable_gdb_build_warnings
838 with_lzma
839 with_liblzma_prefix
840 with_tcl
841 with_tk
842 with_x
843 enable_sim
844 enable_multi_ice
845 enable_gdbserver
846 with_babeltrace
847 with_libbabeltrace_prefix
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CXX
858 CXXFLAGS
859 CCC
860 CPP
861 MAKEINFO
862 MAKEINFOFLAGS
863 YACC
864 YFLAGS
865 XMKMF'
866 ac_subdirs_all='testsuite
867 gdbtk
868 multi-ice
869 gdbserver'
870
871 # Initialize some variables set by options.
872 ac_init_help=
873 ac_init_version=false
874 ac_unrecognized_opts=
875 ac_unrecognized_sep=
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
878 cache_file=/dev/null
879 exec_prefix=NONE
880 no_create=
881 no_recursion=
882 prefix=NONE
883 program_prefix=NONE
884 program_suffix=NONE
885 program_transform_name=s,x,x,
886 silent=
887 site=
888 srcdir=
889 verbose=
890 x_includes=NONE
891 x_libraries=NONE
892
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
928 fi
929
930 case $ac_option in
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *) ac_optarg=yes ;;
933 esac
934
935 # Accept the important Cygnus configure options, so we can diagnose typos.
936
937 case $ac_dashdash$ac_option in
938 --)
939 ac_dashdash=yes ;;
940
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 ac_prev=bindir ;;
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 bindir=$ac_optarg ;;
945
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
950
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
957
958 --config-cache | -C)
959 cache_file=config.cache ;;
960
961 -datadir | --datadir | --datadi | --datad)
962 ac_prev=datadir ;;
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
965
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
972
973 -disable-* | --disable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=no ;;
988
989 -docdir | --docdir | --docdi | --doc | --do)
990 ac_prev=docdir ;;
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 docdir=$ac_optarg ;;
993
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 ac_prev=dvidir ;;
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 dvidir=$ac_optarg ;;
998
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1014
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1023
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1034
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1039
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1045
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1052
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1057
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1062
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1069
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1081
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1086
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1090
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1093 no_create=yes ;;
1094
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1098
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1107
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1112
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1119
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1126
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1143
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1148
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1153
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1157
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
1162 sbindir=$ac_optarg ;;
1163
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
1173 sharedstatedir=$ac_optarg ;;
1174
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
1178 site=$ac_optarg ;;
1179
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1184
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1191
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1196
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1202
1203 -with-* | --with-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=\$ac_optarg ;;
1218
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
1234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1252
1253 -*) as_fn_error "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information."
1255 ;;
1256
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1263 esac
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1266
1267 *)
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 ;;
1274
1275 esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error "missing argument to $ac_option"
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1296 do
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
1305 case $ac_val in
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 esac
1309 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error "pwd does not report name of working directory"
1342
1343
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
1371 srcdir=$ac_confdir
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 srcdir=..
1374 fi
1375 else
1376 ac_srcdir_defaulted=no
1377 fi
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1385 pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
1410 \`configure' configures this package to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463 _ACEOF
1464
1465 cat <<\_ACEOF
1466
1467 Program names:
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471
1472 X features:
1473 --x-includes=DIR X include files are in DIR
1474 --x-libraries=DIR X library files are in DIR
1475
1476 System types:
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 --target=TARGET configure for building compilers for TARGET [HOST]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484
1485 cat <<\_ACEOF
1486
1487 Optional Features:
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-maintainer-mode enable make rules and dependencies not useful
1492 (and sometimes confusing) to the casual installer
1493 --enable-plugins Enable support for plugins
1494 --disable-largefile omit support for large files
1495 --enable-build-with-cxx build with C++ compiler instead of C compiler
1496 --enable-targets=TARGETS
1497 alternative target configurations
1498 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1499 --disable-gdbcli disable command-line interface (CLI)
1500 --disable-gdbmi disable machine-interface (MI)
1501 --enable-tui enable full-screen terminal user interface (TUI)
1502 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1503 --enable-profiling enable profiling of GDB
1504 --disable-rpath do not hardcode runtime library paths
1505 --enable-libmcheck Try linking with -lmcheck if available
1506 --enable-werror treat compile warnings as errors
1507 --enable-build-warnings enable build-time compiler warnings if gcc is used
1508 --enable-gdb-build-warnings
1509 enable GDB specific build-time compiler warnings if
1510 gcc is used
1511 --enable-sim link gdb with simulator
1512 --enable-multi-ice build the multi-ice-gdb-server
1513 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1514 is auto)
1515
1516 Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-separate-debug-dir=PATH
1520 look for global separate debug info in this path
1521 [LIBDIR/debug]
1522 --with-gdb-datadir=PATH look for global separate data files in this path
1523 [DATADIR/gdb]
1524 --with-relocated-sources=PATH
1525 automatically relocate this path for source files
1526 --with-auto-load-dir=PATH
1527 directories from which to load auto-loaded scripts
1528 [$debugdir:$datadir/auto-load]
1529 --with-auto-load-safe-path=PATH
1530 directories safe to hold auto-loaded files
1531 [--with-auto-load-dir]
1532 --without-auto-load-safe-path
1533 do not restrict auto-loaded files locations
1534 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1535 --with-curses use the curses library instead of the termcap
1536 library
1537 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1538 --with-bugurl=URL Direct users to URL to report a bug
1539 --with-zlib include zlib support (auto/yes/no) default=auto
1540 --with-libiconv-prefix=DIR
1541 search for libiconv in DIR/include and DIR/lib
1542 --with-iconv-bin=PATH specify where to find the iconv program
1543 --with-system-readline use installed readline library
1544 --with-jit-reader-dir=PATH
1545 directory to load the JIT readers from
1546 --with-expat include expat support (auto/yes/no)
1547 --with-gnu-ld assume the C compiler uses GNU ld default=no
1548 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1549 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1550 --with-python[=PYTHON] include python support
1551 (auto/yes/no/<python-program>)
1552 --with-guile[=GUILE] include guile support
1553 (auto/yes/no/<guile-version>/<pkg-config-program>)
1554 --without-included-regex
1555 don't use included regex; this is the default on
1556 systems with version 2 of the GNU C library (use
1557 with caution on other system)
1558 --with-sysroot[=DIR] search for usr/lib et al within DIR
1559 --with-system-gdbinit=PATH
1560 automatically load a system-wide gdbinit file
1561 --with-lzma support lzma compression (auto/yes/no)
1562 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1563 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1564 --with-tcl directory containing tcl configuration (tclConfig.sh)
1565 --with-tk directory containing tk configuration (tkConfig.sh)
1566 --with-x use the X Window System
1567 --with-babeltrace include babeltrace support (auto/yes/no)
1568 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1569 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1570
1571 Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
1577 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1579 CXX C++ compiler command
1580 CXXFLAGS C++ compiler flags
1581 CPP C preprocessor
1582 MAKEINFO Parent configure detects if it is of sufficient version.
1583 MAKEINFOFLAGS
1584 Parameters for MAKEINFO.
1585 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1586 the first program found out of: `bison -y', `byacc', `yacc'.
1587 YFLAGS The list of arguments that will be passed by default to $YACC.
1588 This script will default YFLAGS to the empty string to avoid a
1589 default value of `-d' given by some make applications.
1590 XMKMF Path to xmkmf, Makefile generator for X Window System
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to the package provider.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 configure
1659 generated by GNU Autoconf 2.64
1660
1661 Copyright (C) 2009 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664 _ACEOF
1665 exit
1666 fi
1667
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1671
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext
1679 if { { ac_try="$ac_compile"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 return $ac_retval
1707
1708 } # ac_fn_c_try_compile
1709
1710 # ac_fn_cxx_try_compile LINENO
1711 # ----------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_cxx_try_compile ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_cxx_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742 fi
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1745
1746 } # ac_fn_cxx_try_compile
1747
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_cpp ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } >/dev/null && {
1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 return $ac_retval
1782
1783 } # ac_fn_c_try_cpp
1784
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_header_mongrel ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798 fi
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 else
1803 # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1813 else
1814 ac_header_compiler=no
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1819
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1829 else
1830 ac_header_preproc=no
1831 fi
1832 rm -f conftest.err conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1835
1836 # So? What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838 yes:no: )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 no:yes:* )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 ;;
1856 esac
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 eval "$3=\$ac_header_compiler"
1863 fi
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 fi
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
1870 } # ac_fn_c_check_header_mongrel
1871
1872 # ac_fn_c_try_run LINENO
1873 # ----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875 # that executables *can* be run.
1876 ac_fn_c_try_run ()
1877 {
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_link"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1890 { { case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_try") 2>&5
1897 ac_status=$?
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; }; }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: program exited with status $ac_status" >&5
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906 ac_retval=$ac_status
1907 fi
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910 return $ac_retval
1911
1912 } # ac_fn_c_try_run
1913
1914 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists and can be compiled using the include files in
1917 # INCLUDES, setting the cache variable VAR accordingly.
1918 ac_fn_c_check_header_compile ()
1919 {
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1925 else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 eval "$3=yes"
1933 else
1934 eval "$3=no"
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1942
1943 } # ac_fn_c_check_header_compile
1944
1945 # ac_fn_c_try_link LINENO
1946 # -----------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_c_try_link ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 rm -f conftest.$ac_objext conftest$ac_exeext
1952 if { { ac_try="$ac_link"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1965 fi
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && {
1968 test -z "$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 } && test -s conftest$ac_exeext && {
1971 test "$cross_compiling" = yes ||
1972 $as_test_x conftest$ac_exeext
1973 }; then :
1974 ac_retval=0
1975 else
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980 fi
1981 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983 # interfere with the next link command; also delete a directory that is
1984 # left behind by Apple's compiler. We do this before executing the actions.
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 return $ac_retval
1988
1989 } # ac_fn_c_try_link
1990
1991 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1992 # --------------------------------------------
1993 # Tries to find the compile-time value of EXPR in a program that includes
1994 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1995 # computed
1996 ac_fn_c_compute_int ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if test "$cross_compiling" = yes; then
2000 # Depending upon the size, compute the lo and hi bounds.
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $4
2004 int
2005 main ()
2006 {
2007 static int test_array [1 - 2 * !(($2) >= 0)];
2008 test_array [0] = 0
2009
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_lo=0 ac_mid=0
2016 while :; do
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2024 test_array [0] = 0
2025
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_hi=$ac_mid; break
2032 else
2033 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2034 if test $ac_lo -le $ac_mid; then
2035 ac_lo= ac_hi=
2036 break
2037 fi
2038 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 done
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 $4
2046 int
2047 main ()
2048 {
2049 static int test_array [1 - 2 * !(($2) < 0)];
2050 test_array [0] = 0
2051
2052 ;
2053 return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_hi=-1 ac_mid=-1
2058 while :; do
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main ()
2064 {
2065 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2066 test_array [0] = 0
2067
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_lo=$ac_mid; break
2074 else
2075 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2076 if test $ac_mid -le $ac_hi; then
2077 ac_lo= ac_hi=
2078 break
2079 fi
2080 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2081 fi
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 done
2084 else
2085 ac_lo= ac_hi=
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 # Binary search between lo and hi bounds.
2091 while test "x$ac_lo" != "x$ac_hi"; do
2092 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 $4
2096 int
2097 main ()
2098 {
2099 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2100 test_array [0] = 0
2101
2102 ;
2103 return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107 ac_hi=$ac_mid
2108 else
2109 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 done
2113 case $ac_lo in #((
2114 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2115 '') ac_retval=1 ;;
2116 esac
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 static long int longval () { return $2; }
2122 static unsigned long int ulongval () { return $2; }
2123 #include <stdio.h>
2124 #include <stdlib.h>
2125 int
2126 main ()
2127 {
2128
2129 FILE *f = fopen ("conftest.val", "w");
2130 if (! f)
2131 return 1;
2132 if (($2) < 0)
2133 {
2134 long int i = longval ();
2135 if (i != ($2))
2136 return 1;
2137 fprintf (f, "%ld", i);
2138 }
2139 else
2140 {
2141 unsigned long int i = ulongval ();
2142 if (i != ($2))
2143 return 1;
2144 fprintf (f, "%lu", i);
2145 }
2146 /* Do not output a trailing newline, as this causes \r\n confusion
2147 on some platforms. */
2148 return ferror (f) || fclose (f) != 0;
2149
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_run "$LINENO"; then :
2155 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2156 else
2157 ac_retval=1
2158 fi
2159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2160 conftest.$ac_objext conftest.beam conftest.$ac_ext
2161 rm -f conftest.val
2162
2163 fi
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 return $ac_retval
2166
2167 } # ac_fn_c_compute_int
2168
2169 # ac_fn_c_check_func LINENO FUNC VAR
2170 # ----------------------------------
2171 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2172 ac_fn_c_check_func ()
2173 {
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2184 #define $2 innocuous_$2
2185
2186 /* System header to define __stub macros and hopefully few prototypes,
2187 which can conflict with char $2 (); below.
2188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2189 <limits.h> exists even on freestanding compilers. */
2190
2191 #ifdef __STDC__
2192 # include <limits.h>
2193 #else
2194 # include <assert.h>
2195 #endif
2196
2197 #undef $2
2198
2199 /* Override any GCC internal prototype to avoid an error.
2200 Use char because int might match the return type of a GCC
2201 builtin and then its argument prototype would still apply. */
2202 #ifdef __cplusplus
2203 extern "C"
2204 #endif
2205 char $2 ();
2206 /* The GNU C library defines this for functions which it implements
2207 to always fail with ENOSYS. Some functions are actually named
2208 something starting with __ and the normal name is an alias. */
2209 #if defined __stub_$2 || defined __stub___$2
2210 choke me
2211 #endif
2212
2213 int
2214 main ()
2215 {
2216 return $2 ();
2217 ;
2218 return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_link "$LINENO"; then :
2222 eval "$3=yes"
2223 else
2224 eval "$3=no"
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext \
2227 conftest$ac_exeext conftest.$ac_ext
2228 fi
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233
2234 } # ac_fn_c_check_func
2235
2236 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2237 # -------------------------------------------
2238 # Tests whether TYPE exists after having included INCLUDES, setting cache
2239 # variable VAR accordingly.
2240 ac_fn_c_check_type ()
2241 {
2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 eval "$3=no"
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2251 $4
2252 int
2253 main ()
2254 {
2255 if (sizeof ($2))
2256 return 0;
2257 ;
2258 return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2264 $4
2265 int
2266 main ()
2267 {
2268 if (sizeof (($2)))
2269 return 0;
2270 ;
2271 return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275
2276 else
2277 eval "$3=yes"
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 fi
2283 eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287
2288 } # ac_fn_c_check_type
2289
2290 # ac_fn_c_check_decl LINENO SYMBOL VAR
2291 # ------------------------------------
2292 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2293 ac_fn_c_check_decl ()
2294 {
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 as_decl_name=`echo $2|sed 's/ *(.*//'`
2297 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2299 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2300 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 $4
2306 int
2307 main ()
2308 {
2309 #ifndef $as_decl_name
2310 #ifdef __cplusplus
2311 (void) $as_decl_use;
2312 #else
2313 (void) $as_decl_name;
2314 #endif
2315 #endif
2316
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322 eval "$3=yes"
2323 else
2324 eval "$3=no"
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 fi
2328 eval ac_res=\$$3
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332
2333 } # ac_fn_c_check_decl
2334
2335 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2336 # ----------------------------------------------------
2337 # Tries to find if the field MEMBER exists in type AGGR, after including
2338 # INCLUDES, setting cache variable VAR accordingly.
2339 ac_fn_c_check_member ()
2340 {
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2343 $as_echo_n "checking for $2.$3... " >&6; }
2344 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2345 $as_echo_n "(cached) " >&6
2346 else
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2349 $5
2350 int
2351 main ()
2352 {
2353 static $2 ac_aggr;
2354 if (ac_aggr.$3)
2355 return 0;
2356 ;
2357 return 0;
2358 }
2359 _ACEOF
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361 eval "$4=yes"
2362 else
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2365 $5
2366 int
2367 main ()
2368 {
2369 static $2 ac_aggr;
2370 if (sizeof ac_aggr.$3)
2371 return 0;
2372 ;
2373 return 0;
2374 }
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377 eval "$4=yes"
2378 else
2379 eval "$4=no"
2380 fi
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 fi
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 eval ac_res=\$$4
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389
2390 } # ac_fn_c_check_member
2391 cat >config.log <<_ACEOF
2392 This file contains any messages produced by compilers while
2393 running configure, to aid debugging if configure makes a mistake.
2394
2395 It was created by $as_me, which was
2396 generated by GNU Autoconf 2.64. Invocation command line was
2397
2398 $ $0 $@
2399
2400 _ACEOF
2401 exec 5>>config.log
2402 {
2403 cat <<_ASUNAME
2404 ## --------- ##
2405 ## Platform. ##
2406 ## --------- ##
2407
2408 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2409 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2410 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2411 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2412 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2413
2414 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2415 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2416
2417 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2418 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2419 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2420 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2421 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2422 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2423 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2424
2425 _ASUNAME
2426
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 $as_echo "PATH: $as_dir"
2433 done
2434 IFS=$as_save_IFS
2435
2436 } >&5
2437
2438 cat >&5 <<_ACEOF
2439
2440
2441 ## ----------- ##
2442 ## Core tests. ##
2443 ## ----------- ##
2444
2445 _ACEOF
2446
2447
2448 # Keep a trace of the command line.
2449 # Strip out --no-create and --no-recursion so they do not pile up.
2450 # Strip out --silent because we don't want to record it for future runs.
2451 # Also quote any args containing shell meta-characters.
2452 # Make two passes to allow for proper duplicate-argument suppression.
2453 ac_configure_args=
2454 ac_configure_args0=
2455 ac_configure_args1=
2456 ac_must_keep_next=false
2457 for ac_pass in 1 2
2458 do
2459 for ac_arg
2460 do
2461 case $ac_arg in
2462 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2464 | -silent | --silent | --silen | --sile | --sil)
2465 continue ;;
2466 *\'*)
2467 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2468 esac
2469 case $ac_pass in
2470 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2471 2)
2472 as_fn_append ac_configure_args1 " '$ac_arg'"
2473 if test $ac_must_keep_next = true; then
2474 ac_must_keep_next=false # Got value, back to normal.
2475 else
2476 case $ac_arg in
2477 *=* | --config-cache | -C | -disable-* | --disable-* \
2478 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2479 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2480 | -with-* | --with-* | -without-* | --without-* | --x)
2481 case "$ac_configure_args0 " in
2482 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2483 esac
2484 ;;
2485 -* ) ac_must_keep_next=true ;;
2486 esac
2487 fi
2488 as_fn_append ac_configure_args " '$ac_arg'"
2489 ;;
2490 esac
2491 done
2492 done
2493 { ac_configure_args0=; unset ac_configure_args0;}
2494 { ac_configure_args1=; unset ac_configure_args1;}
2495
2496 # When interrupted or exit'd, cleanup temporary files, and complete
2497 # config.log. We remove comments because anyway the quotes in there
2498 # would cause problems or look ugly.
2499 # WARNING: Use '\'' to represent an apostrophe within the trap.
2500 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2501 trap 'exit_status=$?
2502 # Save into config.log some information that might help in debugging.
2503 {
2504 echo
2505
2506 cat <<\_ASBOX
2507 ## ---------------- ##
2508 ## Cache variables. ##
2509 ## ---------------- ##
2510 _ASBOX
2511 echo
2512 # The following way of writing the cache mishandles newlines in values,
2513 (
2514 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2515 eval ac_val=\$$ac_var
2516 case $ac_val in #(
2517 *${as_nl}*)
2518 case $ac_var in #(
2519 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2520 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2521 esac
2522 case $ac_var in #(
2523 _ | IFS | as_nl) ;; #(
2524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2525 *) { eval $ac_var=; unset $ac_var;} ;;
2526 esac ;;
2527 esac
2528 done
2529 (set) 2>&1 |
2530 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2531 *${as_nl}ac_space=\ *)
2532 sed -n \
2533 "s/'\''/'\''\\\\'\'''\''/g;
2534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2535 ;; #(
2536 *)
2537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2538 ;;
2539 esac |
2540 sort
2541 )
2542 echo
2543
2544 cat <<\_ASBOX
2545 ## ----------------- ##
2546 ## Output variables. ##
2547 ## ----------------- ##
2548 _ASBOX
2549 echo
2550 for ac_var in $ac_subst_vars
2551 do
2552 eval ac_val=\$$ac_var
2553 case $ac_val in
2554 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2555 esac
2556 $as_echo "$ac_var='\''$ac_val'\''"
2557 done | sort
2558 echo
2559
2560 if test -n "$ac_subst_files"; then
2561 cat <<\_ASBOX
2562 ## ------------------- ##
2563 ## File substitutions. ##
2564 ## ------------------- ##
2565 _ASBOX
2566 echo
2567 for ac_var in $ac_subst_files
2568 do
2569 eval ac_val=\$$ac_var
2570 case $ac_val in
2571 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2572 esac
2573 $as_echo "$ac_var='\''$ac_val'\''"
2574 done | sort
2575 echo
2576 fi
2577
2578 if test -s confdefs.h; then
2579 cat <<\_ASBOX
2580 ## ----------- ##
2581 ## confdefs.h. ##
2582 ## ----------- ##
2583 _ASBOX
2584 echo
2585 cat confdefs.h
2586 echo
2587 fi
2588 test "$ac_signal" != 0 &&
2589 $as_echo "$as_me: caught signal $ac_signal"
2590 $as_echo "$as_me: exit $exit_status"
2591 } >&5
2592 rm -f core *.core core.conftest.* &&
2593 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2594 exit $exit_status
2595 ' 0
2596 for ac_signal in 1 2 13 15; do
2597 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2598 done
2599 ac_signal=0
2600
2601 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2602 rm -f -r conftest* confdefs.h
2603
2604 $as_echo "/* confdefs.h */" > confdefs.h
2605
2606 # Predefined preprocessor variables.
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_NAME "$PACKAGE_NAME"
2610 _ACEOF
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2614 _ACEOF
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2618 _ACEOF
2619
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_STRING "$PACKAGE_STRING"
2622 _ACEOF
2623
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2626 _ACEOF
2627
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_URL "$PACKAGE_URL"
2630 _ACEOF
2631
2632
2633 # Let the site file select an alternate cache file if it wants to.
2634 # Prefer an explicitly selected file to automatically selected ones.
2635 ac_site_file1=NONE
2636 ac_site_file2=NONE
2637 if test -n "$CONFIG_SITE"; then
2638 ac_site_file1=$CONFIG_SITE
2639 elif test "x$prefix" != xNONE; then
2640 ac_site_file1=$prefix/share/config.site
2641 ac_site_file2=$prefix/etc/config.site
2642 else
2643 ac_site_file1=$ac_default_prefix/share/config.site
2644 ac_site_file2=$ac_default_prefix/etc/config.site
2645 fi
2646 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2647 do
2648 test "x$ac_site_file" = xNONE && continue
2649 if test -r "$ac_site_file"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2651 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2652 sed 's/^/| /' "$ac_site_file" >&5
2653 . "$ac_site_file"
2654 fi
2655 done
2656
2657 if test -r "$cache_file"; then
2658 # Some versions of bash will fail to source /dev/null (special
2659 # files actually), so we avoid doing that.
2660 if test -f "$cache_file"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2662 $as_echo "$as_me: loading cache $cache_file" >&6;}
2663 case $cache_file in
2664 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2665 *) . "./$cache_file";;
2666 esac
2667 fi
2668 else
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2670 $as_echo "$as_me: creating cache $cache_file" >&6;}
2671 >$cache_file
2672 fi
2673
2674 # Check that the precious variables saved in the cache have kept the same
2675 # value.
2676 ac_cache_corrupted=false
2677 for ac_var in $ac_precious_vars; do
2678 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2679 eval ac_new_set=\$ac_env_${ac_var}_set
2680 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2681 eval ac_new_val=\$ac_env_${ac_var}_value
2682 case $ac_old_set,$ac_new_set in
2683 set,)
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2685 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2686 ac_cache_corrupted=: ;;
2687 ,set)
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2689 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2690 ac_cache_corrupted=: ;;
2691 ,);;
2692 *)
2693 if test "x$ac_old_val" != "x$ac_new_val"; then
2694 # differences in whitespace do not lead to failure.
2695 ac_old_val_w=`echo x $ac_old_val`
2696 ac_new_val_w=`echo x $ac_new_val`
2697 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2699 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2700 ac_cache_corrupted=:
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2703 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2704 eval $ac_var=\$ac_old_val
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2707 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2709 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2710 fi;;
2711 esac
2712 # Pass precious variables to config.status.
2713 if test "$ac_new_set" = set; then
2714 case $ac_new_val in
2715 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2716 *) ac_arg=$ac_var=$ac_new_val ;;
2717 esac
2718 case " $ac_configure_args " in
2719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2720 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2721 esac
2722 fi
2723 done
2724 if $ac_cache_corrupted; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2728 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2729 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2730 fi
2731 ## -------------------- ##
2732 ## Main body of script. ##
2733 ## -------------------- ##
2734
2735 ac_ext=c
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
2741
2742
2743
2744
2745 ac_config_headers="$ac_config_headers config.h:config.in"
2746
2747
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2749 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2750 # Check whether --enable-maintainer-mode was given.
2751 if test "${enable_maintainer_mode+set}" = set; then :
2752 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2753 else
2754 USE_MAINTAINER_MODE=no
2755 fi
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2758 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2759 if test $USE_MAINTAINER_MODE = yes; then
2760 MAINTAINER_MODE_TRUE=
2761 MAINTAINER_MODE_FALSE='#'
2762 else
2763 MAINTAINER_MODE_TRUE='#'
2764 MAINTAINER_MODE_FALSE=
2765 fi
2766
2767 MAINT=$MAINTAINER_MODE_TRUE
2768
2769
2770
2771 # Set the 'development' global.
2772 . $srcdir/../bfd/development.sh
2773
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817 fi
2818 if test -z "$ac_cv_prog_CC"; then
2819 ac_ct_CC=$CC
2820 # Extract the first word of "gcc", so it can be a program name with args.
2821 set dummy gcc; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test -n "$ac_ct_CC"; then
2828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_ac_ct_CC="gcc"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2848 if test -n "$ac_ct_CC"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2850 $as_echo "$ac_ct_CC" >&6; }
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 fi
2855
2856 if test "x$ac_ct_CC" = x; then
2857 CC=""
2858 else
2859 case $cross_compiling:$ac_tool_warned in
2860 yes:)
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2863 ac_tool_warned=yes ;;
2864 esac
2865 CC=$ac_ct_CC
2866 fi
2867 else
2868 CC="$ac_cv_prog_CC"
2869 fi
2870
2871 if test -z "$CC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}cc; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_CC="${ac_tool_prefix}cc"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 CC=$ac_cv_prog_CC
2901 if test -n "$CC"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903 $as_echo "$CC" >&6; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907 fi
2908
2909
2910 fi
2911 fi
2912 if test -z "$CC"; then
2913 # Extract the first word of "cc", so it can be a program name with args.
2914 set dummy cc; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if test "${ac_cv_prog_CC+set}" = set; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 else
2923 ac_prog_rejected=no
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2932 ac_prog_rejected=yes
2933 continue
2934 fi
2935 ac_cv_prog_CC="cc"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 if test $ac_prog_rejected = yes; then
2944 # We found a bogon in the path, so make sure we never use it.
2945 set dummy $ac_cv_prog_CC
2946 shift
2947 if test $# != 0; then
2948 # We chose a different compiler from the bogus one.
2949 # However, it has the same basename, so the bogon will be chosen
2950 # first if we set CC to just the basename; use the full file name.
2951 shift
2952 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2953 fi
2954 fi
2955 fi
2956 fi
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966
2967 fi
2968 if test -z "$CC"; then
2969 if test -n "$ac_tool_prefix"; then
2970 for ac_prog in cl.exe
2971 do
2972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if test "${ac_cv_prog_CC+set}" = set; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993 done
2994 done
2995 IFS=$as_save_IFS
2996
2997 fi
2998 fi
2999 CC=$ac_cv_prog_CC
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3003 else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3006 fi
3007
3008
3009 test -n "$CC" && break
3010 done
3011 fi
3012 if test -z "$CC"; then
3013 ac_ct_CC=$CC
3014 for ac_prog in cl.exe
3015 do
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 if test -n "$ac_ct_CC"; then
3024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_ac_ct_CC="$ac_prog"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3046 $as_echo "$ac_ct_CC" >&6; }
3047 else
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052
3053 test -n "$ac_ct_CC" && break
3054 done
3055
3056 if test "x$ac_ct_CC" = x; then
3057 CC=""
3058 else
3059 case $cross_compiling:$ac_tool_warned in
3060 yes:)
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063 ac_tool_warned=yes ;;
3064 esac
3065 CC=$ac_ct_CC
3066 fi
3067 fi
3068
3069 fi
3070
3071
3072 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 as_fn_error "no acceptable C compiler found in \$PATH
3075 See \`config.log' for more details." "$LINENO" 5; }
3076
3077 # Provide some information about the compiler.
3078 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3079 set X $ac_compile
3080 ac_compiler=$2
3081 for ac_option in --version -v -V -qversion; do
3082 { { ac_try="$ac_compiler $ac_option >&5"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3090 ac_status=$?
3091 if test -s conftest.err; then
3092 sed '10a\
3093 ... rest of stderr output deleted ...
3094 10q' conftest.err >conftest.er1
3095 cat conftest.er1 >&5
3096 rm -f conftest.er1 conftest.err
3097 fi
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }
3100 done
3101
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3104
3105 int
3106 main ()
3107 {
3108
3109 ;
3110 return 0;
3111 }
3112 _ACEOF
3113 ac_clean_files_save=$ac_clean_files
3114 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3115 # Try to create an executable without -o first, disregard a.out.
3116 # It will help us diagnose broken compilers, and finding out an intuition
3117 # of exeext.
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3119 $as_echo_n "checking for C compiler default output file name... " >&6; }
3120 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3121
3122 # The possible output files:
3123 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3124
3125 ac_rmfiles=
3126 for ac_file in $ac_files
3127 do
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3130 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3131 esac
3132 done
3133 rm -f $ac_rmfiles
3134
3135 if { { ac_try="$ac_link_default"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_link_default") 2>&5
3143 ac_status=$?
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; then :
3146 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3147 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3148 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3149 # so that the user can short-circuit this test for compilers unknown to
3150 # Autoconf.
3151 for ac_file in $ac_files ''
3152 do
3153 test -f "$ac_file" || continue
3154 case $ac_file in
3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3156 ;;
3157 [ab].out )
3158 # We found the default executable, but exeext='' is most
3159 # certainly right.
3160 break;;
3161 *.* )
3162 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3163 then :; else
3164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165 fi
3166 # We set ac_cv_exeext here because the later test for it is not
3167 # safe: cross compilers may not add the suffix if given an `-o'
3168 # argument, so we may need to know it at that point already.
3169 # Even if this section looks crufty: it has the advantage of
3170 # actually working.
3171 break;;
3172 * )
3173 break;;
3174 esac
3175 done
3176 test "$ac_cv_exeext" = no && ac_cv_exeext=
3177
3178 else
3179 ac_file=''
3180 fi
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3182 $as_echo "$ac_file" >&6; }
3183 if test -z "$ac_file"; then :
3184 $as_echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 { as_fn_set_status 77
3190 as_fn_error "C compiler cannot create executables
3191 See \`config.log' for more details." "$LINENO" 5; }; }
3192 fi
3193 ac_exeext=$ac_cv_exeext
3194
3195 # Check that the compiler produces executables we can run. If not, either
3196 # the compiler is broken, or we cross compile.
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3198 $as_echo_n "checking whether the C compiler works... " >&6; }
3199 # If not cross compiling, check that we can run a simple program.
3200 if test "$cross_compiling" != yes; then
3201 if { ac_try='./$ac_file'
3202 { { case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_try") 2>&5
3209 ac_status=$?
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; }; then
3212 cross_compiling=no
3213 else
3214 if test "$cross_compiling" = maybe; then
3215 cross_compiling=yes
3216 else
3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error "cannot run C compiled programs.
3220 If you meant to cross compile, use \`--host'.
3221 See \`config.log' for more details." "$LINENO" 5; }
3222 fi
3223 fi
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227
3228 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3229 ac_clean_files=$ac_clean_files_save
3230 # Check that the compiler produces executables we can run. If not, either
3231 # the compiler is broken, or we cross compile.
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3233 $as_echo_n "checking whether we are cross compiling... " >&6; }
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3235 $as_echo "$cross_compiling" >&6; }
3236
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3238 $as_echo_n "checking for suffix of executables... " >&6; }
3239 if { { ac_try="$ac_link"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; then :
3250 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3251 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3252 # work properly (i.e., refer to `conftest.exe'), while it won't with
3253 # `rm'.
3254 for ac_file in conftest.exe conftest conftest.*; do
3255 test -f "$ac_file" || continue
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3258 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259 break;;
3260 * ) break;;
3261 esac
3262 done
3263 else
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error "cannot compute suffix of executables: cannot compile and link
3267 See \`config.log' for more details." "$LINENO" 5; }
3268 fi
3269 rm -f conftest$ac_cv_exeext
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3271 $as_echo "$ac_cv_exeext" >&6; }
3272
3273 rm -f conftest.$ac_ext
3274 EXEEXT=$ac_cv_exeext
3275 ac_exeext=$EXEEXT
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3277 $as_echo_n "checking for suffix of object files... " >&6; }
3278 if test "${ac_cv_objext+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3283
3284 int
3285 main ()
3286 {
3287
3288 ;
3289 return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.o conftest.obj
3293 if { { ac_try="$ac_compile"
3294 case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297 esac
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300 (eval "$ac_compile") 2>&5
3301 ac_status=$?
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; then :
3304 for ac_file in conftest.o conftest.obj conftest.*; do
3305 test -f "$ac_file" || continue;
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3308 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3309 break;;
3310 esac
3311 done
3312 else
3313 $as_echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 as_fn_error "cannot compute suffix of object files: cannot compile
3319 See \`config.log' for more details." "$LINENO" 5; }
3320 fi
3321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3324 $as_echo "$ac_cv_objext" >&6; }
3325 OBJEXT=$ac_cv_objext
3326 ac_objext=$OBJEXT
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3328 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3329 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334
3335 int
3336 main ()
3337 {
3338 #ifndef __GNUC__
3339 choke me
3340 #endif
3341
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_compiler_gnu=yes
3348 else
3349 ac_compiler_gnu=no
3350 fi
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3353
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3356 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3357 if test $ac_compiler_gnu = yes; then
3358 GCC=yes
3359 else
3360 GCC=
3361 fi
3362 ac_test_CFLAGS=${CFLAGS+set}
3363 ac_save_CFLAGS=$CFLAGS
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3365 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3366 if test "${ac_cv_prog_cc_g+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 ac_save_c_werror_flag=$ac_c_werror_flag
3370 ac_c_werror_flag=yes
3371 ac_cv_prog_cc_g=no
3372 CFLAGS="-g"
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375
3376 int
3377 main ()
3378 {
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"; then :
3385 ac_cv_prog_cc_g=yes
3386 else
3387 CFLAGS=""
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390
3391 int
3392 main ()
3393 {
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 if ac_fn_c_try_compile "$LINENO"; then :
3400
3401 else
3402 ac_c_werror_flag=$ac_save_c_werror_flag
3403 CFLAGS="-g"
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3406
3407 int
3408 main ()
3409 {
3410
3411 ;
3412 return 0;
3413 }
3414 _ACEOF
3415 if ac_fn_c_try_compile "$LINENO"; then :
3416 ac_cv_prog_cc_g=yes
3417 fi
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 fi
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 fi
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 ac_c_werror_flag=$ac_save_c_werror_flag
3424 fi
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3426 $as_echo "$ac_cv_prog_cc_g" >&6; }
3427 if test "$ac_test_CFLAGS" = set; then
3428 CFLAGS=$ac_save_CFLAGS
3429 elif test $ac_cv_prog_cc_g = yes; then
3430 if test "$GCC" = yes; then
3431 CFLAGS="-g -O2"
3432 else
3433 CFLAGS="-g"
3434 fi
3435 else
3436 if test "$GCC" = yes; then
3437 CFLAGS="-O2"
3438 else
3439 CFLAGS=
3440 fi
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3443 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3444 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 ac_cv_prog_cc_c89=no
3448 ac_save_CC=$CC
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451 #include <stdarg.h>
3452 #include <stdio.h>
3453 #include <sys/types.h>
3454 #include <sys/stat.h>
3455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3456 struct buf { int x; };
3457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3458 static char *e (p, i)
3459 char **p;
3460 int i;
3461 {
3462 return p[i];
3463 }
3464 static char *f (char * (*g) (char **, int), char **p, ...)
3465 {
3466 char *s;
3467 va_list v;
3468 va_start (v,p);
3469 s = g (p, va_arg (v,int));
3470 va_end (v);
3471 return s;
3472 }
3473
3474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3475 function prototypes and stuff, but not '\xHH' hex character constants.
3476 These don't provoke an error unfortunately, instead are silently treated
3477 as 'x'. The following induces an error, until -std is added to get
3478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3479 array size at least. It's necessary to write '\x00'==0 to get something
3480 that's true only with -std. */
3481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3482
3483 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3484 inside strings and character constants. */
3485 #define FOO(x) 'x'
3486 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3487
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3492 int argc;
3493 char **argv;
3494 int
3495 main ()
3496 {
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3503 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3504 do
3505 CC="$ac_save_CC $ac_arg"
3506 if ac_fn_c_try_compile "$LINENO"; then :
3507 ac_cv_prog_cc_c89=$ac_arg
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext
3510 test "x$ac_cv_prog_cc_c89" != "xno" && break
3511 done
3512 rm -f conftest.$ac_ext
3513 CC=$ac_save_CC
3514
3515 fi
3516 # AC_CACHE_VAL
3517 case "x$ac_cv_prog_cc_c89" in
3518 x)
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3520 $as_echo "none needed" >&6; } ;;
3521 xno)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3523 $as_echo "unsupported" >&6; } ;;
3524 *)
3525 CC="$CC $ac_cv_prog_cc_c89"
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3527 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3528 esac
3529 if test "x$ac_cv_prog_cc_c89" != xno; then :
3530
3531 fi
3532
3533 ac_ext=c
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538
3539 ac_ext=cpp
3540 ac_cpp='$CXXCPP $CPPFLAGS'
3541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3544 if test -z "$CXX"; then
3545 if test -n "$CCC"; then
3546 CXX=$CCC
3547 else
3548 if test -n "$ac_tool_prefix"; then
3549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3550 do
3551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CXX+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CXX"; then
3559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572 done
3573 done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 CXX=$ac_cv_prog_CXX
3579 if test -n "$CXX"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3581 $as_echo "$CXX" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588 test -n "$CXX" && break
3589 done
3590 fi
3591 if test -z "$CXX"; then
3592 ac_ct_CXX=$CXX
3593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3594 do
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 if test -n "$ac_ct_CXX"; then
3603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612 ac_cv_prog_ac_ct_CXX="$ac_prog"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616 done
3617 done
3618 IFS=$as_save_IFS
3619
3620 fi
3621 fi
3622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3623 if test -n "$ac_ct_CXX"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3625 $as_echo "$ac_ct_CXX" >&6; }
3626 else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 fi
3630
3631
3632 test -n "$ac_ct_CXX" && break
3633 done
3634
3635 if test "x$ac_ct_CXX" = x; then
3636 CXX="g++"
3637 else
3638 case $cross_compiling:$ac_tool_warned in
3639 yes:)
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3642 ac_tool_warned=yes ;;
3643 esac
3644 CXX=$ac_ct_CXX
3645 fi
3646 fi
3647
3648 fi
3649 fi
3650 # Provide some information about the compiler.
3651 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3652 set X $ac_compile
3653 ac_compiler=$2
3654 for ac_option in --version -v -V -qversion; do
3655 { { ac_try="$ac_compiler $ac_option >&5"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661 $as_echo "$ac_try_echo"; } >&5
3662 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3663 ac_status=$?
3664 if test -s conftest.err; then
3665 sed '10a\
3666 ... rest of stderr output deleted ...
3667 10q' conftest.err >conftest.er1
3668 cat conftest.er1 >&5
3669 rm -f conftest.er1 conftest.err
3670 fi
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }
3673 done
3674
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3676 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3677 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main ()
3685 {
3686 #ifndef __GNUC__
3687 choke me
3688 #endif
3689
3690 ;
3691 return 0;
3692 }
3693 _ACEOF
3694 if ac_fn_cxx_try_compile "$LINENO"; then :
3695 ac_compiler_gnu=yes
3696 else
3697 ac_compiler_gnu=no
3698 fi
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3701
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3704 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3705 if test $ac_compiler_gnu = yes; then
3706 GXX=yes
3707 else
3708 GXX=
3709 fi
3710 ac_test_CXXFLAGS=${CXXFLAGS+set}
3711 ac_save_CXXFLAGS=$CXXFLAGS
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3713 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3714 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3718 ac_cxx_werror_flag=yes
3719 ac_cv_prog_cxx_g=no
3720 CXXFLAGS="-g"
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3723
3724 int
3725 main ()
3726 {
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 if ac_fn_cxx_try_compile "$LINENO"; then :
3733 ac_cv_prog_cxx_g=yes
3734 else
3735 CXXFLAGS=""
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_cxx_try_compile "$LINENO"; then :
3748
3749 else
3750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3751 CXXFLAGS="-g"
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754
3755 int
3756 main ()
3757 {
3758
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_cxx_try_compile "$LINENO"; then :
3764 ac_cv_prog_cxx_g=yes
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3774 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3775 if test "$ac_test_CXXFLAGS" = set; then
3776 CXXFLAGS=$ac_save_CXXFLAGS
3777 elif test $ac_cv_prog_cxx_g = yes; then
3778 if test "$GXX" = yes; then
3779 CXXFLAGS="-g -O2"
3780 else
3781 CXXFLAGS="-g"
3782 fi
3783 else
3784 if test "$GXX" = yes; then
3785 CXXFLAGS="-O2"
3786 else
3787 CXXFLAGS=
3788 fi
3789 fi
3790 ac_ext=c
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795
3796
3797
3798 ac_ext=c
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3804 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3805 # On Suns, sometimes $CPP names a directory.
3806 if test -n "$CPP" && test -d "$CPP"; then
3807 CPP=
3808 fi
3809 if test -z "$CPP"; then
3810 if test "${ac_cv_prog_CPP+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3812 else
3813 # Double quotes because CPP needs to be expanded
3814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3815 do
3816 ac_preproc_ok=false
3817 for ac_c_preproc_warn_flag in '' yes
3818 do
3819 # Use a header file that comes with gcc, so configuring glibc
3820 # with a fresh cross-compiler works.
3821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3822 # <limits.h> exists even on freestanding compilers.
3823 # On the NeXT, cc -E runs the code through the compiler's parser,
3824 # not just through cpp. "Syntax error" is here to catch this case.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #ifdef __STDC__
3828 # include <limits.h>
3829 #else
3830 # include <assert.h>
3831 #endif
3832 Syntax error
3833 _ACEOF
3834 if ac_fn_c_try_cpp "$LINENO"; then :
3835
3836 else
3837 # Broken: fails on valid input.
3838 continue
3839 fi
3840 rm -f conftest.err conftest.$ac_ext
3841
3842 # OK, works on sane cases. Now check whether nonexistent headers
3843 # can be detected and how.
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846 #include <ac_nonexistent.h>
3847 _ACEOF
3848 if ac_fn_c_try_cpp "$LINENO"; then :
3849 # Broken: success on invalid input.
3850 continue
3851 else
3852 # Passes both tests.
3853 ac_preproc_ok=:
3854 break
3855 fi
3856 rm -f conftest.err conftest.$ac_ext
3857
3858 done
3859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3860 rm -f conftest.err conftest.$ac_ext
3861 if $ac_preproc_ok; then :
3862 break
3863 fi
3864
3865 done
3866 ac_cv_prog_CPP=$CPP
3867
3868 fi
3869 CPP=$ac_cv_prog_CPP
3870 else
3871 ac_cv_prog_CPP=$CPP
3872 fi
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3874 $as_echo "$CPP" >&6; }
3875 ac_preproc_ok=false
3876 for ac_c_preproc_warn_flag in '' yes
3877 do
3878 # Use a header file that comes with gcc, so configuring glibc
3879 # with a fresh cross-compiler works.
3880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3881 # <limits.h> exists even on freestanding compilers.
3882 # On the NeXT, cc -E runs the code through the compiler's parser,
3883 # not just through cpp. "Syntax error" is here to catch this case.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #ifdef __STDC__
3887 # include <limits.h>
3888 #else
3889 # include <assert.h>
3890 #endif
3891 Syntax error
3892 _ACEOF
3893 if ac_fn_c_try_cpp "$LINENO"; then :
3894
3895 else
3896 # Broken: fails on valid input.
3897 continue
3898 fi
3899 rm -f conftest.err conftest.$ac_ext
3900
3901 # OK, works on sane cases. Now check whether nonexistent headers
3902 # can be detected and how.
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 #include <ac_nonexistent.h>
3906 _ACEOF
3907 if ac_fn_c_try_cpp "$LINENO"; then :
3908 # Broken: success on invalid input.
3909 continue
3910 else
3911 # Passes both tests.
3912 ac_preproc_ok=:
3913 break
3914 fi
3915 rm -f conftest.err conftest.$ac_ext
3916
3917 done
3918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3919 rm -f conftest.err conftest.$ac_ext
3920 if $ac_preproc_ok; then :
3921
3922 else
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3926 See \`config.log' for more details." "$LINENO" 5; }
3927 fi
3928
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3937 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3938 if test "${ac_cv_path_GREP+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 if test -z "$GREP"; then
3942 ac_path_GREP_found=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3946 do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_prog in grep ggrep; do
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3952 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3953 # Check for GNU ac_path_GREP and select it if it is found.
3954 # Check for GNU $ac_path_GREP
3955 case `"$ac_path_GREP" --version 2>&1` in
3956 *GNU*)
3957 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3958 *)
3959 ac_count=0
3960 $as_echo_n 0123456789 >"conftest.in"
3961 while :
3962 do
3963 cat "conftest.in" "conftest.in" >"conftest.tmp"
3964 mv "conftest.tmp" "conftest.in"
3965 cp "conftest.in" "conftest.nl"
3966 $as_echo 'GREP' >> "conftest.nl"
3967 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969 as_fn_arith $ac_count + 1 && ac_count=$as_val
3970 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3971 # Best one so far, save it but keep looking for a better one
3972 ac_cv_path_GREP="$ac_path_GREP"
3973 ac_path_GREP_max=$ac_count
3974 fi
3975 # 10*(2^10) chars as input seems more than enough
3976 test $ac_count -gt 10 && break
3977 done
3978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979 esac
3980
3981 $ac_path_GREP_found && break 3
3982 done
3983 done
3984 done
3985 IFS=$as_save_IFS
3986 if test -z "$ac_cv_path_GREP"; then
3987 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3988 fi
3989 else
3990 ac_cv_path_GREP=$GREP
3991 fi
3992
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3995 $as_echo "$ac_cv_path_GREP" >&6; }
3996 GREP="$ac_cv_path_GREP"
3997
3998
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4000 $as_echo_n "checking for egrep... " >&6; }
4001 if test "${ac_cv_path_EGREP+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4005 then ac_cv_path_EGREP="$GREP -E"
4006 else
4007 if test -z "$EGREP"; then
4008 ac_path_EGREP_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012 do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_prog in egrep; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4019 # Check for GNU ac_path_EGREP and select it if it is found.
4020 # Check for GNU $ac_path_EGREP
4021 case `"$ac_path_EGREP" --version 2>&1` in
4022 *GNU*)
4023 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4024 *)
4025 ac_count=0
4026 $as_echo_n 0123456789 >"conftest.in"
4027 while :
4028 do
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 $as_echo 'EGREP' >> "conftest.nl"
4033 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 as_fn_arith $ac_count + 1 && ac_count=$as_val
4036 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_EGREP="$ac_path_EGREP"
4039 ac_path_EGREP_max=$ac_count
4040 fi
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4043 done
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045 esac
4046
4047 $ac_path_EGREP_found && break 3
4048 done
4049 done
4050 done
4051 IFS=$as_save_IFS
4052 if test -z "$ac_cv_path_EGREP"; then
4053 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4054 fi
4055 else
4056 ac_cv_path_EGREP=$EGREP
4057 fi
4058
4059 fi
4060 fi
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4062 $as_echo "$ac_cv_path_EGREP" >&6; }
4063 EGREP="$ac_cv_path_EGREP"
4064
4065
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4067 $as_echo_n "checking for ANSI C header files... " >&6; }
4068 if test "${ac_cv_header_stdc+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
4070 else
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073 #include <stdlib.h>
4074 #include <stdarg.h>
4075 #include <string.h>
4076 #include <float.h>
4077
4078 int
4079 main ()
4080 {
4081
4082 ;
4083 return 0;
4084 }
4085 _ACEOF
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_cv_header_stdc=yes
4088 else
4089 ac_cv_header_stdc=no
4090 fi
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092
4093 if test $ac_cv_header_stdc = yes; then
4094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #include <string.h>
4098
4099 _ACEOF
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "memchr" >/dev/null 2>&1; then :
4102
4103 else
4104 ac_cv_header_stdc=no
4105 fi
4106 rm -f conftest*
4107
4108 fi
4109
4110 if test $ac_cv_header_stdc = yes; then
4111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #include <stdlib.h>
4115
4116 _ACEOF
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118 $EGREP "free" >/dev/null 2>&1; then :
4119
4120 else
4121 ac_cv_header_stdc=no
4122 fi
4123 rm -f conftest*
4124
4125 fi
4126
4127 if test $ac_cv_header_stdc = yes; then
4128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4129 if test "$cross_compiling" = yes; then :
4130 :
4131 else
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #include <ctype.h>
4135 #include <stdlib.h>
4136 #if ((' ' & 0x0FF) == 0x020)
4137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4139 #else
4140 # define ISLOWER(c) \
4141 (('a' <= (c) && (c) <= 'i') \
4142 || ('j' <= (c) && (c) <= 'r') \
4143 || ('s' <= (c) && (c) <= 'z'))
4144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4145 #endif
4146
4147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4148 int
4149 main ()
4150 {
4151 int i;
4152 for (i = 0; i < 256; i++)
4153 if (XOR (islower (i), ISLOWER (i))
4154 || toupper (i) != TOUPPER (i))
4155 return 2;
4156 return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_run "$LINENO"; then :
4160
4161 else
4162 ac_cv_header_stdc=no
4163 fi
4164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4165 conftest.$ac_objext conftest.beam conftest.$ac_ext
4166 fi
4167
4168 fi
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4171 $as_echo "$ac_cv_header_stdc" >&6; }
4172 if test $ac_cv_header_stdc = yes; then
4173
4174 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4175
4176 fi
4177
4178 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4179 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4180 inttypes.h stdint.h unistd.h
4181 do :
4182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4183 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4184 "
4185 eval as_val=\$$as_ac_Header
4186 if test "x$as_val" = x""yes; then :
4187 cat >>confdefs.h <<_ACEOF
4188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4189 _ACEOF
4190
4191 fi
4192
4193 done
4194
4195
4196
4197 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4198 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4199 MINIX=yes
4200 else
4201 MINIX=
4202 fi
4203
4204
4205 if test "$MINIX" = yes; then
4206
4207 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4208
4209
4210 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4211
4212
4213 $as_echo "#define _MINIX 1" >>confdefs.h
4214
4215 fi
4216
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4219 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4220 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4225
4226 # define __EXTENSIONS__ 1
4227 $ac_includes_default
4228 int
4229 main ()
4230 {
4231
4232 ;
4233 return 0;
4234 }
4235 _ACEOF
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237 ac_cv_safe_to_define___extensions__=yes
4238 else
4239 ac_cv_safe_to_define___extensions__=no
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4244 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4245 test $ac_cv_safe_to_define___extensions__ = yes &&
4246 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4247
4248 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4249
4250 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4251
4252 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4253
4254 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4255
4256
4257 ac_aux_dir=
4258 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4259 for ac_t in install-sh install.sh shtool; do
4260 if test -f "$ac_dir/$ac_t"; then
4261 ac_aux_dir=$ac_dir
4262 ac_install_sh="$ac_aux_dir/$ac_t -c"
4263 break 2
4264 fi
4265 done
4266 done
4267 if test -z "$ac_aux_dir"; then
4268 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4269 fi
4270
4271 # These three variables are undocumented and unsupported,
4272 # and are intended to be withdrawn in a future Autoconf release.
4273 # They can cause serious problems if a builder's source tree is in a directory
4274 # whose full name contains unusual characters.
4275 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4276 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4277 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4278
4279
4280 # Make sure we can run config.sub.
4281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4282 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4283
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4285 $as_echo_n "checking build system type... " >&6; }
4286 if test "${ac_cv_build+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 ac_build_alias=$build_alias
4290 test "x$ac_build_alias" = x &&
4291 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4292 test "x$ac_build_alias" = x &&
4293 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4295 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4296
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4299 $as_echo "$ac_cv_build" >&6; }
4300 case $ac_cv_build in
4301 *-*-*) ;;
4302 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4303 esac
4304 build=$ac_cv_build
4305 ac_save_IFS=$IFS; IFS='-'
4306 set x $ac_cv_build
4307 shift
4308 build_cpu=$1
4309 build_vendor=$2
4310 shift; shift
4311 # Remember, the first character of IFS is used to create $*,
4312 # except with old shells:
4313 build_os=$*
4314 IFS=$ac_save_IFS
4315 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4316
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4319 $as_echo_n "checking host system type... " >&6; }
4320 if test "${ac_cv_host+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test "x$host_alias" = x; then
4324 ac_cv_host=$ac_cv_build
4325 else
4326 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4327 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4328 fi
4329
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4332 $as_echo "$ac_cv_host" >&6; }
4333 case $ac_cv_host in
4334 *-*-*) ;;
4335 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4336 esac
4337 host=$ac_cv_host
4338 ac_save_IFS=$IFS; IFS='-'
4339 set x $ac_cv_host
4340 shift
4341 host_cpu=$1
4342 host_vendor=$2
4343 shift; shift
4344 # Remember, the first character of IFS is used to create $*,
4345 # except with old shells:
4346 host_os=$*
4347 IFS=$ac_save_IFS
4348 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4349
4350
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4352 $as_echo_n "checking target system type... " >&6; }
4353 if test "${ac_cv_target+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test "x$target_alias" = x; then
4357 ac_cv_target=$ac_cv_host
4358 else
4359 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4360 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4361 fi
4362
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4365 $as_echo "$ac_cv_target" >&6; }
4366 case $ac_cv_target in
4367 *-*-*) ;;
4368 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4369 esac
4370 target=$ac_cv_target
4371 ac_save_IFS=$IFS; IFS='-'
4372 set x $ac_cv_target
4373 shift
4374 target_cpu=$1
4375 target_vendor=$2
4376 shift; shift
4377 # Remember, the first character of IFS is used to create $*,
4378 # except with old shells:
4379 target_os=$*
4380 IFS=$ac_save_IFS
4381 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4382
4383
4384 # The aliases save the names the user supplied, while $host etc.
4385 # will get canonicalized.
4386 test -n "$target_alias" &&
4387 test "$program_prefix$program_suffix$program_transform_name" = \
4388 NONENONEs,x,x, &&
4389 program_prefix=${target_alias}-
4390
4391 # The tests for host and target for $enable_largefile require
4392 # canonical names.
4393
4394
4395
4396 # As the $enable_largefile decision depends on --enable-plugins we must set it
4397 # even in directories otherwise not depending on the $plugins option.
4398
4399
4400 maybe_plugins=no
4401 for ac_header in dlfcn.h
4402 do :
4403 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4404 "
4405 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4406 cat >>confdefs.h <<_ACEOF
4407 #define HAVE_DLFCN_H 1
4408 _ACEOF
4409 maybe_plugins=yes
4410 fi
4411
4412 done
4413
4414 for ac_header in windows.h
4415 do :
4416 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4417 "
4418 if test "x$ac_cv_header_windows_h" = x""yes; then :
4419 cat >>confdefs.h <<_ACEOF
4420 #define HAVE_WINDOWS_H 1
4421 _ACEOF
4422 maybe_plugins=yes
4423 fi
4424
4425 done
4426
4427
4428 # Check whether --enable-plugins was given.
4429 if test "${enable_plugins+set}" = set; then :
4430 enableval=$enable_plugins; case "${enableval}" in
4431 no) plugins=no ;;
4432 *) plugins=yes
4433 if test "$maybe_plugins" != "yes" ; then
4434 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4435 fi ;;
4436 esac
4437 else
4438 plugins=$maybe_plugins
4439
4440 fi
4441
4442 if test "$plugins" = "yes"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4444 $as_echo_n "checking for library containing dlopen... " >&6; }
4445 if test "${ac_cv_search_dlopen+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 ac_func_search_save_LIBS=$LIBS
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451
4452 /* Override any GCC internal prototype to avoid an error.
4453 Use char because int might match the return type of a GCC
4454 builtin and then its argument prototype would still apply. */
4455 #ifdef __cplusplus
4456 extern "C"
4457 #endif
4458 char dlopen ();
4459 int
4460 main ()
4461 {
4462 return dlopen ();
4463 ;
4464 return 0;
4465 }
4466 _ACEOF
4467 for ac_lib in '' dl; do
4468 if test -z "$ac_lib"; then
4469 ac_res="none required"
4470 else
4471 ac_res=-l$ac_lib
4472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4473 fi
4474 if ac_fn_c_try_link "$LINENO"; then :
4475 ac_cv_search_dlopen=$ac_res
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext \
4478 conftest$ac_exeext
4479 if test "${ac_cv_search_dlopen+set}" = set; then :
4480 break
4481 fi
4482 done
4483 if test "${ac_cv_search_dlopen+set}" = set; then :
4484
4485 else
4486 ac_cv_search_dlopen=no
4487 fi
4488 rm conftest.$ac_ext
4489 LIBS=$ac_func_search_save_LIBS
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4492 $as_echo "$ac_cv_search_dlopen" >&6; }
4493 ac_res=$ac_cv_search_dlopen
4494 if test "$ac_res" != no; then :
4495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4496
4497 fi
4498
4499 fi
4500
4501
4502 case "${host}" in
4503 sparc-*-solaris*|i[3-7]86-*-solaris*)
4504 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4505 # are mutually exclusive; and without procfs support, the bfd/ elf module
4506 # cannot provide certain routines such as elfcore_write_prpsinfo
4507 # or elfcore_write_prstatus. So unless the user explicitly requested
4508 # large-file support through the --enable-largefile switch, disable
4509 # large-file support in favor of procfs support.
4510 test "${target}" = "${host}" -a "x$plugins" = xno \
4511 && : ${enable_largefile="no"}
4512 ;;
4513 esac
4514
4515 # Check whether --enable-largefile was given.
4516 if test "${enable_largefile+set}" = set; then :
4517 enableval=$enable_largefile;
4518 fi
4519
4520 if test "$enable_largefile" != no; then
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4523 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4524 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 ac_cv_sys_largefile_CC=no
4528 if test "$GCC" != yes; then
4529 ac_save_CC=$CC
4530 while :; do
4531 # IRIX 6.2 and later do not support large files by default,
4532 # so use the C compiler's -n32 option if that helps.
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <sys/types.h>
4536 /* Check that off_t can represent 2**63 - 1 correctly.
4537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4538 since some C++ compilers masquerading as C compilers
4539 incorrectly reject 9223372036854775807. */
4540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4542 && LARGE_OFF_T % 2147483647 == 1)
4543 ? 1 : -1];
4544 int
4545 main ()
4546 {
4547
4548 ;
4549 return 0;
4550 }
4551 _ACEOF
4552 if ac_fn_c_try_compile "$LINENO"; then :
4553 break
4554 fi
4555 rm -f core conftest.err conftest.$ac_objext
4556 CC="$CC -n32"
4557 if ac_fn_c_try_compile "$LINENO"; then :
4558 ac_cv_sys_largefile_CC=' -n32'; break
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext
4561 break
4562 done
4563 CC=$ac_save_CC
4564 rm -f conftest.$ac_ext
4565 fi
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4568 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4569 if test "$ac_cv_sys_largefile_CC" != no; then
4570 CC=$CC$ac_cv_sys_largefile_CC
4571 fi
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4574 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4575 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 while :; do
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 #include <sys/types.h>
4582 /* Check that off_t can represent 2**63 - 1 correctly.
4583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4584 since some C++ compilers masquerading as C compilers
4585 incorrectly reject 9223372036854775807. */
4586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4588 && LARGE_OFF_T % 2147483647 == 1)
4589 ? 1 : -1];
4590 int
4591 main ()
4592 {
4593
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 if ac_fn_c_try_compile "$LINENO"; then :
4599 ac_cv_sys_file_offset_bits=no; break
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604 #define _FILE_OFFSET_BITS 64
4605 #include <sys/types.h>
4606 /* Check that off_t can represent 2**63 - 1 correctly.
4607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4608 since some C++ compilers masquerading as C compilers
4609 incorrectly reject 9223372036854775807. */
4610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4612 && LARGE_OFF_T % 2147483647 == 1)
4613 ? 1 : -1];
4614 int
4615 main ()
4616 {
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 if ac_fn_c_try_compile "$LINENO"; then :
4623 ac_cv_sys_file_offset_bits=64; break
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_cv_sys_file_offset_bits=unknown
4627 break
4628 done
4629 fi
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4631 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4632 case $ac_cv_sys_file_offset_bits in #(
4633 no | unknown) ;;
4634 *)
4635 cat >>confdefs.h <<_ACEOF
4636 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4637 _ACEOF
4638 ;;
4639 esac
4640 rm -rf conftest*
4641 if test $ac_cv_sys_file_offset_bits = unknown; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4643 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4644 if test "${ac_cv_sys_large_files+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 while :; do
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <sys/types.h>
4651 /* Check that off_t can represent 2**63 - 1 correctly.
4652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4653 since some C++ compilers masquerading as C compilers
4654 incorrectly reject 9223372036854775807. */
4655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4657 && LARGE_OFF_T % 2147483647 == 1)
4658 ? 1 : -1];
4659 int
4660 main ()
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 ac_cv_sys_large_files=no; break
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673 #define _LARGE_FILES 1
4674 #include <sys/types.h>
4675 /* Check that off_t can represent 2**63 - 1 correctly.
4676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4677 since some C++ compilers masquerading as C compilers
4678 incorrectly reject 9223372036854775807. */
4679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4681 && LARGE_OFF_T % 2147483647 == 1)
4682 ? 1 : -1];
4683 int
4684 main ()
4685 {
4686
4687 ;
4688 return 0;
4689 }
4690 _ACEOF
4691 if ac_fn_c_try_compile "$LINENO"; then :
4692 ac_cv_sys_large_files=1; break
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 ac_cv_sys_large_files=unknown
4696 break
4697 done
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4700 $as_echo "$ac_cv_sys_large_files" >&6; }
4701 case $ac_cv_sys_large_files in #(
4702 no | unknown) ;;
4703 *)
4704 cat >>confdefs.h <<_ACEOF
4705 #define _LARGE_FILES $ac_cv_sys_large_files
4706 _ACEOF
4707 ;;
4708 esac
4709 rm -rf conftest*
4710 fi
4711 fi
4712
4713
4714
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4718 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4719 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 am_cv_prog_cc_stdc=no
4723 ac_save_CC="$CC"
4724 # Don't try gcc -ansi; that turns off useful extensions and
4725 # breaks some systems' header files.
4726 # AIX -qlanglvl=ansi
4727 # Ultrix and OSF/1 -std1
4728 # HP-UX 10.20 and later -Ae
4729 # HP-UX older versions -Aa -D_HPUX_SOURCE
4730 # SVR4 -Xc -D__EXTENSIONS__
4731 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4732 do
4733 CC="$ac_save_CC $ac_arg"
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 #include <stdarg.h>
4737 #include <stdio.h>
4738 #include <sys/types.h>
4739 #include <sys/stat.h>
4740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4741 struct buf { int x; };
4742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4743 static char *e (p, i)
4744 char **p;
4745 int i;
4746 {
4747 return p[i];
4748 }
4749 static char *f (char * (*g) (char **, int), char **p, ...)
4750 {
4751 char *s;
4752 va_list v;
4753 va_start (v,p);
4754 s = g (p, va_arg (v,int));
4755 va_end (v);
4756 return s;
4757 }
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4762 int argc;
4763 char **argv;
4764
4765 int
4766 main ()
4767 {
4768
4769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4770
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 if ac_fn_c_try_compile "$LINENO"; then :
4776 am_cv_prog_cc_stdc="$ac_arg"; break
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 done
4780 CC="$ac_save_CC"
4781
4782 fi
4783
4784 if test -z "$am_cv_prog_cc_stdc"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4786 $as_echo "none needed" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4789 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4790 fi
4791 case "x$am_cv_prog_cc_stdc" in
4792 x|xno) ;;
4793 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4794 esac
4795
4796 # expand $ac_aux_dir to an absolute path
4797 am_aux_dir=`cd $ac_aux_dir && pwd`
4798
4799 if test x"${install_sh}" != xset; then
4800 case $am_aux_dir in
4801 *\ * | *\ *)
4802 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4803 *)
4804 install_sh="\${SHELL} $am_aux_dir/install-sh"
4805 esac
4806 fi
4807
4808 # Installed binaries are usually stripped using `strip' when the user
4809 # run `make install-strip'. However `strip' might not be the right
4810 # tool to use in cross-compilation environments, therefore Automake
4811 # will honor the `STRIP' environment variable to overrule this program.
4812 if test "$cross_compiling" != no; then
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4815 set dummy ${ac_tool_prefix}strip; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_STRIP+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$STRIP"; then
4822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 STRIP=$ac_cv_prog_STRIP
4842 if test -n "$STRIP"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4844 $as_echo "$STRIP" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 fi
4852 if test -z "$ac_cv_prog_STRIP"; then
4853 ac_ct_STRIP=$STRIP
4854 # Extract the first word of "strip", so it can be a program name with args.
4855 set dummy strip; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_STRIP"; then
4862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_STRIP="strip"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4882 if test -n "$ac_ct_STRIP"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4884 $as_echo "$ac_ct_STRIP" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890 if test "x$ac_ct_STRIP" = x; then
4891 STRIP=":"
4892 else
4893 case $cross_compiling:$ac_tool_warned in
4894 yes:)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4898 esac
4899 STRIP=$ac_ct_STRIP
4900 fi
4901 else
4902 STRIP="$ac_cv_prog_STRIP"
4903 fi
4904
4905 fi
4906 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4907
4908
4909 ac_aux_dir=
4910 for ac_dir in .. "$srcdir"/..; do
4911 for ac_t in install-sh install.sh shtool; do
4912 if test -f "$ac_dir/$ac_t"; then
4913 ac_aux_dir=$ac_dir
4914 ac_install_sh="$ac_aux_dir/$ac_t -c"
4915 break 2
4916 fi
4917 done
4918 done
4919 if test -z "$ac_aux_dir"; then
4920 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4921 fi
4922
4923 # These three variables are undocumented and unsupported,
4924 # and are intended to be withdrawn in a future Autoconf release.
4925 # They can cause serious problems if a builder's source tree is in a directory
4926 # whose full name contains unusual characters.
4927 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4928 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4929 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4930
4931
4932
4933 test "$program_prefix" != NONE &&
4934 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4935 # Use a double $ so make ignores it.
4936 test "$program_suffix" != NONE &&
4937 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4938 # Double any \ or $.
4939 # By default was `s,x,x', remove it if useless.
4940 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4941 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4942
4943
4944 # See if we are building with C++, and substitute COMPILER.
4945
4946 # Check whether --enable-build-with-cxx was given.
4947 if test "${enable_build_with_cxx+set}" = set; then :
4948 enableval=$enable_build_with_cxx; case $enableval in
4949 yes | no)
4950 ;;
4951 *)
4952 as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4953 esac
4954 else
4955 enable_build_with_cxx=no
4956 fi
4957
4958
4959 if test "$enable_build_with_cxx" = "yes"; then
4960 # We're using -fpermissive as shortcut for now.
4961 COMPILER='$(CXX) -fpermissive'
4962 else
4963 COMPILER='$(CC)'
4964 fi
4965
4966
4967
4968 # Dependency checking.
4969 rm -rf .tst 2>/dev/null
4970 mkdir .tst 2>/dev/null
4971 if test -d .tst; then
4972 am__leading_dot=.
4973 else
4974 am__leading_dot=_
4975 fi
4976 rmdir .tst 2>/dev/null
4977
4978 DEPDIR="${am__leading_dot}deps"
4979
4980 ac_config_commands="$ac_config_commands depdir"
4981
4982
4983 depcc="$CC" am_compiler_list=
4984
4985 am_depcomp=$ac_aux_dir/depcomp
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4987 $as_echo_n "checking dependency style of $depcc... " >&6; }
4988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -f "$am_depcomp"; then
4992 # We make a subdir and do the tests there. Otherwise we can end up
4993 # making bogus files that we don't know about and never remove. For
4994 # instance it was reported that on HP-UX the gcc test will end up
4995 # making a dummy file named `D' -- because `-MD' means `put the output
4996 # in D'.
4997 mkdir conftest.dir
4998 # Copy depcomp to subdir because otherwise we won't find it if we're
4999 # using a relative directory.
5000 cp "$am_depcomp" conftest.dir
5001 cd conftest.dir
5002 # We will build objects and dependencies in a subdirectory because
5003 # it helps to detect inapplicable dependency modes. For instance
5004 # both Tru64's cc and ICC support -MD to output dependencies as a
5005 # side effect of compilation, but ICC will put the dependencies in
5006 # the current directory while Tru64 will put them in the object
5007 # directory.
5008 mkdir sub
5009
5010 am_cv_CC_dependencies_compiler_type=none
5011 if test "$am_compiler_list" = ""; then
5012 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5013 fi
5014 for depmode in $am_compiler_list; do
5015 if test $depmode = none; then break; fi
5016
5017 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5018 # Setup a source with many dependencies, because some compilers
5019 # like to wrap large dependency lists on column 80 (with \), and
5020 # we should not choose a depcomp mode which is confused by this.
5021 #
5022 # We need to recreate these files for each test, as the compiler may
5023 # overwrite some of them when testing with obscure command lines.
5024 # This happens at least with the AIX C compiler.
5025 : > sub/conftest.c
5026 for i in 1 2 3 4 5 6; do
5027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5029 # Solaris 8's {/usr,}/bin/sh.
5030 touch sub/conftst$i.h
5031 done
5032 echo "include sub/conftest.Po" > confmf
5033
5034 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5035 # mode. It turns out that the SunPro C++ compiler does not properly
5036 # handle `-M -o', and we need to detect this.
5037 depcmd="depmode=$depmode \
5038 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5040 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5041 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5042 if env $depcmd > conftest.err 2>&1 &&
5043 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5044 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5045 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5046 # icc doesn't choke on unknown options, it will just issue warnings
5047 # or remarks (even with -Werror). So we grep stderr for any message
5048 # that says an option was ignored or not supported.
5049 # When given -MP, icc 7.0 and 7.1 complain thusly:
5050 # icc: Command line warning: ignoring option '-M'; no argument required
5051 # The diagnosis changed in icc 8.0:
5052 # icc: Command line remark: option '-MP' not supported
5053 if (grep 'ignoring option' conftest.err ||
5054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5055 am_cv_CC_dependencies_compiler_type=$depmode
5056 $as_echo "$as_me:$LINENO: success" >&5
5057 break
5058 fi
5059 fi
5060 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5061 sed -e 's/^/| /' < conftest.err >&5
5062 done
5063
5064 cd ..
5065 rm -rf conftest.dir
5066 else
5067 am_cv_CC_dependencies_compiler_type=none
5068 fi
5069
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5072 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5073 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5074 then as_fn_error "no usable dependency style found" "$LINENO" 5
5075 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076
5077 fi
5078
5079
5080 # Check for the 'make' the user wants to use.
5081 for ac_prog in make
5082 do
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set dummy $ac_prog; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_MAKE+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$MAKE"; then
5091 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_MAKE="$ac_prog"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 MAKE=$ac_cv_prog_MAKE
5111 if test -n "$MAKE"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5113 $as_echo "$MAKE" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120 test -n "$MAKE" && break
5121 done
5122
5123 MAKE_IS_GNU=
5124 case "`$MAKE --version 2>&1 | sed 1q`" in
5125 *GNU*)
5126 MAKE_IS_GNU=yes
5127 ;;
5128 esac
5129 if test "$MAKE_IS_GNU" = yes; then
5130 GMAKE_TRUE=
5131 GMAKE_FALSE='#'
5132 else
5133 GMAKE_TRUE='#'
5134 GMAKE_FALSE=
5135 fi
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5138 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5139 set x ${MAKE-make}
5140 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5141 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 cat >conftest.make <<\_ACEOF
5145 SHELL = /bin/sh
5146 all:
5147 @echo '@@@%%%=$(MAKE)=@@@%%%'
5148 _ACEOF
5149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5150 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5151 *@@@%%%=?*=@@@%%%*)
5152 eval ac_cv_prog_make_${ac_make}_set=yes;;
5153 *)
5154 eval ac_cv_prog_make_${ac_make}_set=no;;
5155 esac
5156 rm -f conftest.make
5157 fi
5158 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160 $as_echo "yes" >&6; }
5161 SET_MAKE=
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5165 SET_MAKE="MAKE=${MAKE-make}"
5166 fi
5167
5168
5169 gnulib_extra_configure_args=
5170 # If large-file support is disabled, make sure gnulib does the same.
5171 if test "$enable_largefile" = no; then
5172 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5173 fi
5174
5175 # Configure gnulib. We need to build gnulib under some other
5176 # directory not "gnulib", to avoid the problem of both GDB and
5177 # GDBserver wanting to build it in the same directory, when building
5178 # in the source dir.
5179
5180 in_src="gnulib"
5181 in_build="build-gnulib"
5182 in_extra_args="$gnulib_extra_configure_args"
5183
5184 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5185 # so they do not pile up.
5186 ac_sub_configure_args=
5187 ac_prev=
5188 eval "set x $ac_configure_args"
5189 shift
5190 for ac_arg
5191 do
5192 if test -n "$ac_prev"; then
5193 ac_prev=
5194 continue
5195 fi
5196 case $ac_arg in
5197 -cache-file | --cache-file | --cache-fil | --cache-fi \
5198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5199 ac_prev=cache_file ;;
5200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5202 | --c=*)
5203 ;;
5204 --config-cache | -C)
5205 ;;
5206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5207 ac_prev=srcdir ;;
5208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5209 ;;
5210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5211 ac_prev=prefix ;;
5212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5213 ;;
5214 --disable-option-checking)
5215 ;;
5216 *)
5217 case $ac_arg in
5218 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5219 esac
5220 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5221 esac
5222 done
5223
5224 # Always prepend --prefix to ensure using the same prefix
5225 # in subdir configurations.
5226 ac_arg="--prefix=$prefix"
5227 case $ac_arg in
5228 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5229 esac
5230 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5231
5232 # Pass --silent
5233 if test "$silent" = yes; then
5234 ac_sub_configure_args="--silent $ac_sub_configure_args"
5235 fi
5236
5237 # Always prepend --disable-option-checking to silence warnings, since
5238 # different subdirs can have different --enable and --with options.
5239 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5240
5241 ac_popdir=`pwd`
5242 ac_dir=$in_build
5243
5244 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5246 $as_echo "$ac_msg" >&6
5247 as_dir="$ac_dir"; as_fn_mkdir_p
5248
5249 case $srcdir in
5250 [\\/]* | ?:[\\/]* )
5251 ac_srcdir=$srcdir/$in_src ;;
5252 *) # Relative name.
5253 ac_srcdir=../$srcdir/$in_src ;;
5254 esac
5255
5256 cd "$ac_dir"
5257
5258 ac_sub_configure=$ac_srcdir/configure
5259
5260 # Make the cache file name correct relative to the subdirectory.
5261 case $cache_file in
5262 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5263 *) # Relative name.
5264 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5265 esac
5266
5267 if test -n "$in_extra_args"; then
5268 # Add the extra args at the end.
5269 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5270 fi
5271
5272 { $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
5273 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5274 # The eval makes quoting arguments work.
5275 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5276 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5277 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5278
5279 cd "$ac_popdir"
5280
5281
5282
5283 CONFIG_OBS=
5284 CONFIG_DEPS=
5285 CONFIG_SRCS=
5286 ENABLE_CFLAGS=
5287
5288 CONFIG_ALL=
5289 CONFIG_CLEAN=
5290 CONFIG_INSTALL=
5291 CONFIG_UNINSTALL=
5292
5293 # If we haven't got the data from the intl directory,
5294 # assume NLS is disabled.
5295 USE_NLS=no
5296 LIBINTL=
5297 LIBINTL_DEP=
5298 INCINTL=
5299 XGETTEXT=
5300 GMSGFMT=
5301 POSUB=
5302
5303 if test -f ../intl/config.intl; then
5304 . ../intl/config.intl
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5307 $as_echo_n "checking whether NLS is requested... " >&6; }
5308 if test x"$USE_NLS" != xyes; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313 $as_echo "yes" >&6; }
5314
5315 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5316
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5319 $as_echo_n "checking for catalogs to be installed... " >&6; }
5320 # Look for .po and .gmo files in the source directory.
5321 CATALOGS=
5322 XLINGUAS=
5323 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5324 # If there aren't any .gmo files the shell will give us the
5325 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5326 # weeded out.
5327 case "$cat" in *\**)
5328 continue;;
5329 esac
5330 # The quadruple backslash is collapsed to a double backslash
5331 # by the backticks, then collapsed again by the double quotes,
5332 # leaving us with one backslash in the sed expression (right
5333 # before the dot that mustn't act as a wildcard).
5334 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5335 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5336 # The user is allowed to set LINGUAS to a list of languages to
5337 # install catalogs for. If it's empty that means "all of them."
5338 if test "x$LINGUAS" = x; then
5339 CATALOGS="$CATALOGS $cat"
5340 XLINGUAS="$XLINGUAS $lang"
5341 else
5342 case "$LINGUAS" in *$lang*)
5343 CATALOGS="$CATALOGS $cat"
5344 XLINGUAS="$XLINGUAS $lang"
5345 ;;
5346 esac
5347 fi
5348 done
5349 LINGUAS="$XLINGUAS"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5351 $as_echo "$LINGUAS" >&6; }
5352
5353
5354 DATADIRNAME=share
5355
5356 INSTOBJEXT=.mo
5357
5358 GENCAT=gencat
5359
5360 CATOBJEXT=.gmo
5361
5362 fi
5363
5364 localedir='${datadir}/locale'
5365
5366
5367 if test x"$USE_NLS" = xyes; then
5368 CONFIG_ALL="$CONFIG_ALL all-po"
5369 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5370 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5371 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5372 fi
5373
5374 GNULIB=build-gnulib/import
5375
5376 # For Makefile dependencies.
5377 GNULIB_STDINT_H=
5378 if test x"$STDINT_H" != x; then
5379 GNULIB_STDINT_H=$GNULIB/$STDINT_H
5380 fi
5381
5382
5383 PACKAGE=gdb
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define PACKAGE "$PACKAGE"
5387 _ACEOF
5388
5389
5390
5391 # We never need to detect it in this sub-configure.
5392 # But preserve it for config.status --recheck.
5393
5394
5395
5396 MAKEINFO_EXTRA_FLAGS=""
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5398 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5399 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5403 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5404 gdb_cv_have_makeinfo_click=yes
5405 else
5406 gdb_cv_have_makeinfo_click=no
5407 fi
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5410 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5411 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
5412 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5413 fi
5414
5415
5416
5417
5418 # Check whether --with-separate-debug-dir was given.
5419 if test "${with_separate_debug_dir+set}" = set; then :
5420 withval=$with_separate_debug_dir;
5421 DEBUGDIR=$withval
5422 else
5423 DEBUGDIR=${libdir}/debug
5424 fi
5425
5426
5427 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5429 ac_define_dir=`eval echo $DEBUGDIR`
5430 ac_define_dir=`eval echo $ac_define_dir`
5431
5432 cat >>confdefs.h <<_ACEOF
5433 #define DEBUGDIR "$ac_define_dir"
5434 _ACEOF
5435
5436
5437
5438
5439 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5440 if test "x$prefix" = xNONE; then
5441 test_prefix=/usr/local
5442 else
5443 test_prefix=$prefix
5444 fi
5445 else
5446 test_prefix=$exec_prefix
5447 fi
5448 value=0
5449 case ${ac_define_dir} in
5450 "${test_prefix}"|"${test_prefix}/"*|\
5451 '${exec_prefix}'|'${exec_prefix}/'*)
5452 value=1
5453 ;;
5454 esac
5455
5456 cat >>confdefs.h <<_ACEOF
5457 #define DEBUGDIR_RELOCATABLE $value
5458 _ACEOF
5459
5460
5461
5462
5463 # We can't pass paths as command line arguments.
5464 # Mingw32 tries to be clever and will convert the paths for us.
5465 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5466 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5467 # This breaks GDB's relocatable path conversions since paths passed in
5468 # config.h would not get so translated, the path prefixes no longer match.
5469
5470 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5472 ac_define_dir=`eval echo $bindir`
5473 ac_define_dir=`eval echo $ac_define_dir`
5474
5475 cat >>confdefs.h <<_ACEOF
5476 #define BINDIR "$ac_define_dir"
5477 _ACEOF
5478
5479
5480
5481 # GDB's datadir relocation
5482
5483
5484
5485 # Check whether --with-gdb-datadir was given.
5486 if test "${with_gdb_datadir+set}" = set; then :
5487 withval=$with_gdb_datadir;
5488 GDB_DATADIR=$withval
5489 else
5490 GDB_DATADIR=${datadir}/gdb
5491 fi
5492
5493
5494 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5495 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5496 ac_define_dir=`eval echo $GDB_DATADIR`
5497 ac_define_dir=`eval echo $ac_define_dir`
5498
5499 cat >>confdefs.h <<_ACEOF
5500 #define GDB_DATADIR "$ac_define_dir"
5501 _ACEOF
5502
5503
5504
5505
5506 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5507 if test "x$prefix" = xNONE; then
5508 test_prefix=/usr/local
5509 else
5510 test_prefix=$prefix
5511 fi
5512 else
5513 test_prefix=$exec_prefix
5514 fi
5515 value=0
5516 case ${ac_define_dir} in
5517 "${test_prefix}"|"${test_prefix}/"*|\
5518 '${exec_prefix}'|'${exec_prefix}/'*)
5519 value=1
5520 ;;
5521 esac
5522
5523 cat >>confdefs.h <<_ACEOF
5524 #define GDB_DATADIR_RELOCATABLE $value
5525 _ACEOF
5526
5527
5528
5529
5530
5531 # Check whether --with-relocated-sources was given.
5532 if test "${with_relocated_sources+set}" = set; then :
5533 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5534
5535 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5537 ac_define_dir=`eval echo $reloc_srcdir`
5538 ac_define_dir=`eval echo $ac_define_dir`
5539
5540 cat >>confdefs.h <<_ACEOF
5541 #define RELOC_SRCDIR "$ac_define_dir"
5542 _ACEOF
5543
5544
5545
5546 fi
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5550 $as_echo_n "checking for default auto-load directory... " >&6; }
5551
5552 # Check whether --with-auto-load-dir was given.
5553 if test "${with_auto_load_dir+set}" = set; then :
5554 withval=$with_auto_load_dir;
5555 else
5556 with_auto_load_dir='$debugdir:$datadir/auto-load'
5557 fi
5558
5559 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5560
5561 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5563 ac_define_dir=`eval echo $escape_dir`
5564 ac_define_dir=`eval echo $ac_define_dir`
5565
5566 cat >>confdefs.h <<_ACEOF
5567 #define AUTO_LOAD_DIR "$ac_define_dir"
5568 _ACEOF
5569
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5572 $as_echo "$with_auto_load_dir" >&6; }
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5575 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5576
5577 # Check whether --with-auto-load-safe-path was given.
5578 if test "${with_auto_load_safe_path+set}" = set; then :
5579 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5580 with_auto_load_safe_path="/"
5581 fi
5582 else
5583 with_auto_load_safe_path="$with_auto_load_dir"
5584 fi
5585
5586 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5587
5588 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5590 ac_define_dir=`eval echo $escape_dir`
5591 ac_define_dir=`eval echo $ac_define_dir`
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5595 _ACEOF
5596
5597
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5599 $as_echo "$with_auto_load_safe_path" >&6; }
5600
5601
5602
5603 subdirs="$subdirs testsuite"
5604
5605
5606 # Check whether to support alternative target configurations
5607 # Check whether --enable-targets was given.
5608 if test "${enable_targets+set}" = set; then :
5609 enableval=$enable_targets; case "${enableval}" in
5610 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5611 ;;
5612 no) enable_targets= ;;
5613 *) enable_targets=$enableval ;;
5614 esac
5615 fi
5616
5617
5618 # Check whether to enable 64-bit support on 32-bit hosts
5619 # Check whether --enable-64-bit-bfd was given.
5620 if test "${enable_64_bit_bfd+set}" = set; then :
5621 enableval=$enable_64_bit_bfd; case "${enableval}" in
5622 yes) want64=true ;;
5623 no) want64=false ;;
5624 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5625 esac
5626 else
5627 want64=false
5628 fi
5629
5630 # Provide defaults for some variables set by the per-host and per-target
5631 # configuration.
5632 gdb_host_obs=posix-hdep.o
5633
5634 if test "${target}" = "${host}"; then
5635 gdb_native=yes
5636 else
5637 gdb_native=no
5638 fi
5639
5640 . $srcdir/configure.host
5641
5642 # Add in the common host objects.
5643 . $srcdir/common/common.host
5644 gdb_host_obs="$gdb_host_obs $common_host_obs"
5645
5646 # Accumulate some settings from configure.tgt over all enabled targets
5647
5648 TARGET_OBS=
5649 all_targets=
5650 HAVE_NATIVE_GCORE_TARGET=
5651
5652 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5653 do
5654 if test "$targ_alias" = "all"; then
5655 all_targets=true
5656 else
5657 # Canonicalize the secondary target names.
5658 result=`$ac_config_sub $targ_alias 2>/dev/null`
5659 if test -n "$result"; then
5660 targ=$result
5661 else
5662 targ=$targ_alias
5663 fi
5664
5665 . ${srcdir}/configure.tgt
5666
5667 if test -z "${gdb_target_obs}"; then :
5668 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5669 fi
5670
5671 # Target-specific object files
5672 for i in ${gdb_target_obs}; do
5673 case " $TARGET_OBS " in
5674 *" ${i} "*) ;;
5675 *)
5676 TARGET_OBS="$TARGET_OBS ${i}"
5677 ;;
5678 esac
5679 done
5680
5681 # Check whether this target needs 64-bit CORE_ADDR
5682 if test x${want64} = xfalse; then
5683 . ${srcdir}/../bfd/config.bfd
5684 fi
5685
5686 # Check whether this target is native and supports gcore.
5687 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5688 && $gdb_have_gcore; then
5689 HAVE_NATIVE_GCORE_TARGET=1
5690 fi
5691 fi
5692 done
5693
5694 if test x${all_targets} = xtrue; then
5695
5696 # We want all 64-bit targets if we either:
5697 # - run on a 64-bit host or
5698 # - already require 64-bit support for some other target or
5699 # - the --enable-64-bit-bfd option was supplied
5700 # Otherwise we only support all 32-bit targets.
5701 #
5702 # NOTE: This test must be in sync with the corresponding
5703 # tests in BFD!
5704
5705 if test x${want64} = xfalse; then
5706 # The cast to long int works around a bug in the HP C Compiler
5707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5709 # This bug is HP SR number 8606223364.
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5711 $as_echo_n "checking size of long... " >&6; }
5712 if test "${ac_cv_sizeof_long+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5716
5717 else
5718 if test "$ac_cv_type_long" = yes; then
5719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5721 { as_fn_set_status 77
5722 as_fn_error "cannot compute sizeof (long)
5723 See \`config.log' for more details." "$LINENO" 5; }; }
5724 else
5725 ac_cv_sizeof_long=0
5726 fi
5727 fi
5728
5729 fi
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5731 $as_echo "$ac_cv_sizeof_long" >&6; }
5732
5733
5734
5735 cat >>confdefs.h <<_ACEOF
5736 #define SIZEOF_LONG $ac_cv_sizeof_long
5737 _ACEOF
5738
5739
5740 if test "x${ac_cv_sizeof_long}" = "x8"; then
5741 want64=true
5742 fi
5743 fi
5744 if test x${want64} = xtrue; then
5745 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5746 else
5747 TARGET_OBS='$(ALL_TARGET_OBS)'
5748 fi
5749 fi
5750
5751
5752
5753
5754 # For other settings, only the main target counts.
5755 gdb_sim=
5756 gdb_osabi=
5757 build_gdbserver=
5758 targ=$target; . ${srcdir}/configure.tgt
5759
5760 # Fetch the default architecture and default target vector from BFD.
5761 targ=$target; . $srcdir/../bfd/config.bfd
5762
5763 # We only want the first architecture, so strip off the others if
5764 # there is more than one.
5765 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5766
5767 if test "x$targ_archs" != x; then
5768
5769 cat >>confdefs.h <<_ACEOF
5770 #define DEFAULT_BFD_ARCH $targ_archs
5771 _ACEOF
5772
5773 fi
5774 if test "x$targ_defvec" != x; then
5775
5776 cat >>confdefs.h <<_ACEOF
5777 #define DEFAULT_BFD_VEC $targ_defvec
5778 _ACEOF
5779
5780 fi
5781
5782 # The CLI cannot be disabled yet, but may be in the future.
5783
5784 # Enable CLI.
5785 # Check whether --enable-gdbcli was given.
5786 if test "${enable_gdbcli+set}" = set; then :
5787 enableval=$enable_gdbcli; case $enableval in
5788 yes)
5789 ;;
5790 no)
5791 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5792 *)
5793 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5794 esac
5795 else
5796 enable_gdbcli=yes
5797 fi
5798
5799 if test x"$enable_gdbcli" = xyes; then
5800 if test -d $srcdir/cli; then
5801 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5802 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5803 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5804 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5805 fi
5806 fi
5807
5808 # Enable MI.
5809 # Check whether --enable-gdbmi was given.
5810 if test "${enable_gdbmi+set}" = set; then :
5811 enableval=$enable_gdbmi; case $enableval in
5812 yes | no)
5813 ;;
5814 *)
5815 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5816 esac
5817 else
5818 enable_gdbmi=yes
5819 fi
5820
5821 if test x"$enable_gdbmi" = xyes; then
5822 if test -d $srcdir/mi; then
5823 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5824 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5825 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5826 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5827 fi
5828 fi
5829
5830 # Enable TUI.
5831 # Check whether --enable-tui was given.
5832 if test "${enable_tui+set}" = set; then :
5833 enableval=$enable_tui; case $enableval in
5834 yes | no | auto)
5835 ;;
5836 *)
5837 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5838 esac
5839 else
5840 enable_tui=auto
5841 fi
5842
5843
5844 # Enable gdbtk.
5845 # Check whether --enable-gdbtk was given.
5846 if test "${enable_gdbtk+set}" = set; then :
5847 enableval=$enable_gdbtk; case $enableval in
5848 yes | no)
5849 ;;
5850 *)
5851 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5852 esac
5853 else
5854 if test -d $srcdir/gdbtk; then
5855 enable_gdbtk=yes
5856 else
5857 enable_gdbtk=no
5858 fi
5859 fi
5860
5861 # We unconditionally disable gdbtk tests on selected platforms.
5862 case $host_os in
5863 go32* | windows*)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5865 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5866 enable_gdbtk=no ;;
5867 esac
5868
5869 # Libunwind support for ia64.
5870
5871
5872 # Check whether --with-libunwind-ia64 was given.
5873 if test "${with_libunwind_ia64+set}" = set; then :
5874 withval=$with_libunwind_ia64;
5875 else
5876 with_libunwind_ia64=auto
5877 fi
5878
5879
5880 # Backward compatibility option.
5881 if test "${with_libunwind+set}" = set; then
5882 if test x"$with_libunwind_ia64" != xauto; then
5883 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5884 fi
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5886 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5887 with_libunwind_ia64="$with_libunwind"
5888 fi
5889
5890 case "$with_libunwind_ia64" in
5891 yes | no)
5892 ;;
5893 auto)
5894 for ac_header in libunwind-ia64.h
5895 do :
5896 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5897 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5898 cat >>confdefs.h <<_ACEOF
5899 #define HAVE_LIBUNWIND_IA64_H 1
5900 _ACEOF
5901
5902 fi
5903
5904 done
5905
5906 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5907 ;;
5908 *)
5909 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5910 ;;
5911 esac
5912
5913 if test x"$with_libunwind_ia64" = xyes; then
5914 for ac_header in libunwind-ia64.h
5915 do :
5916 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5917 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5918 cat >>confdefs.h <<_ACEOF
5919 #define HAVE_LIBUNWIND_IA64_H 1
5920 _ACEOF
5921
5922 fi
5923
5924 done
5925
5926 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5927 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5928 fi
5929 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5930 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5931 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5932 fi
5933
5934 opt_curses=no
5935
5936 # Check whether --with-curses was given.
5937 if test "${with_curses+set}" = set; then :
5938 withval=$with_curses; opt_curses=$withval
5939 fi
5940
5941
5942 prefer_curses=no
5943 if test "$opt_curses" = "yes"; then
5944 prefer_curses=yes
5945 fi
5946
5947 # Profiling support.
5948 # Check whether --enable-profiling was given.
5949 if test "${enable_profiling+set}" = set; then :
5950 enableval=$enable_profiling; case $enableval in
5951 yes | no)
5952 ;;
5953 *)
5954 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5955 esac
5956 else
5957 enable_profiling=no
5958 fi
5959
5960
5961 for ac_func in monstartup _mcleanup
5962 do :
5963 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5964 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5965 eval as_val=\$$as_ac_var
5966 if test "x$as_val" = x""yes; then :
5967 cat >>confdefs.h <<_ACEOF
5968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5969 _ACEOF
5970
5971 fi
5972 done
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5975 $as_echo_n "checking for _etext... " >&6; }
5976 if test "${ac_cv_var__etext+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <stdlib.h>
5982 extern char _etext;
5983
5984 int
5985 main ()
5986 {
5987 free (&_etext);
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 if ac_fn_c_try_link "$LINENO"; then :
5993 ac_cv_var__etext=yes
5994 else
5995 ac_cv_var__etext=no
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext \
5998 conftest$ac_exeext conftest.$ac_ext
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6001 $as_echo "$ac_cv_var__etext" >&6; }
6002 if test $ac_cv_var__etext = yes; then
6003
6004 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6005
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6008 $as_echo_n "checking for etext... " >&6; }
6009 if test "${ac_cv_var_etext+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <stdlib.h>
6015 extern char etext;
6016
6017 int
6018 main ()
6019 {
6020 free (&etext);
6021 ;
6022 return 0;
6023 }
6024 _ACEOF
6025 if ac_fn_c_try_link "$LINENO"; then :
6026 ac_cv_var_etext=yes
6027 else
6028 ac_cv_var_etext=no
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext \
6031 conftest$ac_exeext conftest.$ac_ext
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6034 $as_echo "$ac_cv_var_etext" >&6; }
6035 if test $ac_cv_var_etext = yes; then
6036
6037 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6038
6039 fi
6040 if test "$enable_profiling" = yes ; then
6041 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6042 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6043 fi
6044 PROFILE_CFLAGS=-pg
6045 OLD_CFLAGS="$CFLAGS"
6046 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6047
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6049 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6050 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055
6056 int
6057 main ()
6058 {
6059 int x;
6060 ;
6061 return 0;
6062 }
6063 _ACEOF
6064 if ac_fn_c_try_compile "$LINENO"; then :
6065 ac_cv_cc_supports_pg=yes
6066 else
6067 ac_cv_cc_supports_pg=no
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6072 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6073
6074 if test $ac_cv_cc_supports_pg = no; then
6075 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6076 fi
6077
6078 CFLAGS="$OLD_CFLAGS"
6079 fi
6080
6081
6082
6083 # Check whether --with-pkgversion was given.
6084 if test "${with_pkgversion+set}" = set; then :
6085 withval=$with_pkgversion; case "$withval" in
6086 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6087 no) PKGVERSION= ;;
6088 *) PKGVERSION="($withval) " ;;
6089 esac
6090 else
6091 PKGVERSION="(GDB) "
6092
6093 fi
6094
6095
6096
6097
6098
6099 # Check whether --with-bugurl was given.
6100 if test "${with_bugurl+set}" = set; then :
6101 withval=$with_bugurl; case "$withval" in
6102 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6103 no) BUGURL=
6104 ;;
6105 *) BUGURL="$withval"
6106 ;;
6107 esac
6108 else
6109 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6110
6111 fi
6112
6113 case ${BUGURL} in
6114 "")
6115 REPORT_BUGS_TO=
6116 REPORT_BUGS_TEXI=
6117 ;;
6118 *)
6119 REPORT_BUGS_TO="<$BUGURL>"
6120 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6121 ;;
6122 esac;
6123
6124
6125
6126
6127 cat >>confdefs.h <<_ACEOF
6128 #define PKGVERSION "$PKGVERSION"
6129 _ACEOF
6130
6131
6132 cat >>confdefs.h <<_ACEOF
6133 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6134 _ACEOF
6135
6136
6137 # --------------------- #
6138 # Checks for programs. #
6139 # --------------------- #
6140
6141 for ac_prog in gawk mawk nawk awk
6142 do
6143 # Extract the first word of "$ac_prog", so it can be a program name with args.
6144 set dummy $ac_prog; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_AWK+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$AWK"; then
6151 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_AWK="$ac_prog"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 AWK=$ac_cv_prog_AWK
6171 if test -n "$AWK"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6173 $as_echo "$AWK" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179
6180 test -n "$AWK" && break
6181 done
6182
6183 # Find a good install program. We prefer a C program (faster),
6184 # so one script is as good as another. But avoid the broken or
6185 # incompatible versions:
6186 # SysV /etc/install, /usr/sbin/install
6187 # SunOS /usr/etc/install
6188 # IRIX /sbin/install
6189 # AIX /bin/install
6190 # AmigaOS /C/install, which installs bootblocks on floppy discs
6191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6194 # OS/2's system install, which has a completely different semantic
6195 # ./install, which can be erroneously created by make from ./install.sh.
6196 # Reject install programs that cannot install multiple files.
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6198 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6199 if test -z "$INSTALL"; then
6200 if test "${ac_cv_path_install+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 # Account for people who put trailing slashes in PATH elements.
6209 case $as_dir/ in #((
6210 ./ | .// | /[cC]/* | \
6211 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6212 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6213 /usr/ucb/* ) ;;
6214 *)
6215 # OSF1 and SCO ODT 3.0 have their own names for install.
6216 # Don't use installbsd from OSF since it installs stuff as root
6217 # by default.
6218 for ac_prog in ginstall scoinst install; do
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6221 if test $ac_prog = install &&
6222 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6223 # AIX install. It has an incompatible calling convention.
6224 :
6225 elif test $ac_prog = install &&
6226 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6227 # program-specific install script used by HP pwplus--don't use.
6228 :
6229 else
6230 rm -rf conftest.one conftest.two conftest.dir
6231 echo one > conftest.one
6232 echo two > conftest.two
6233 mkdir conftest.dir
6234 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6235 test -s conftest.one && test -s conftest.two &&
6236 test -s conftest.dir/conftest.one &&
6237 test -s conftest.dir/conftest.two
6238 then
6239 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6240 break 3
6241 fi
6242 fi
6243 fi
6244 done
6245 done
6246 ;;
6247 esac
6248
6249 done
6250 IFS=$as_save_IFS
6251
6252 rm -rf conftest.one conftest.two conftest.dir
6253
6254 fi
6255 if test "${ac_cv_path_install+set}" = set; then
6256 INSTALL=$ac_cv_path_install
6257 else
6258 # As a last resort, use the slow shell script. Don't cache a
6259 # value for INSTALL within a source directory, because that will
6260 # break other packages using the cache if that directory is
6261 # removed, or if the value is a relative name.
6262 INSTALL=$ac_install_sh
6263 fi
6264 fi
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6266 $as_echo "$INSTALL" >&6; }
6267
6268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6269 # It thinks the first close brace ends the variable substitution.
6270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6271
6272 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6273
6274 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6275
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6277 $as_echo_n "checking whether ln -s works... " >&6; }
6278 LN_S=$as_ln_s
6279 if test "$LN_S" = "ln -s"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6281 $as_echo "yes" >&6; }
6282 else
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6284 $as_echo "no, using $LN_S" >&6; }
6285 fi
6286
6287 if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if test -n "$RANLIB"; then
6296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 RANLIB=$ac_cv_prog_RANLIB
6316 if test -n "$RANLIB"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6318 $as_echo "$RANLIB" >&6; }
6319 else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324
6325 fi
6326 if test -z "$ac_cv_prog_RANLIB"; then
6327 ac_ct_RANLIB=$RANLIB
6328 # Extract the first word of "ranlib", so it can be a program name with args.
6329 set dummy ranlib; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 if test -n "$ac_ct_RANLIB"; then
6336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_ac_ct_RANLIB="ranlib"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6356 if test -n "$ac_ct_RANLIB"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6358 $as_echo "$ac_ct_RANLIB" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364 if test "x$ac_ct_RANLIB" = x; then
6365 RANLIB=":"
6366 else
6367 case $cross_compiling:$ac_tool_warned in
6368 yes:)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6372 esac
6373 RANLIB=$ac_ct_RANLIB
6374 fi
6375 else
6376 RANLIB="$ac_cv_prog_RANLIB"
6377 fi
6378
6379 for ac_prog in 'bison -y' byacc
6380 do
6381 # Extract the first word of "$ac_prog", so it can be a program name with args.
6382 set dummy $ac_prog; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if test "${ac_cv_prog_YACC+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 if test -n "$YACC"; then
6389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_YACC="$ac_prog"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6401 fi
6402 done
6403 done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 YACC=$ac_cv_prog_YACC
6409 if test -n "$YACC"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6411 $as_echo "$YACC" >&6; }
6412 else
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6415 fi
6416
6417
6418 test -n "$YACC" && break
6419 done
6420 test -n "$YACC" || YACC="yacc"
6421
6422
6423 if test -n "$ac_tool_prefix"; then
6424 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6425 set dummy ${ac_tool_prefix}ar; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_AR+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 if test -n "$AR"; then
6432 ac_cv_prog_AR="$AR" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_AR="${ac_tool_prefix}ar"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 break 2
6444 fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 AR=$ac_cv_prog_AR
6452 if test -n "$AR"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6454 $as_echo "$AR" >&6; }
6455 else
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460
6461 fi
6462 if test -z "$ac_cv_prog_AR"; then
6463 ac_ct_AR=$AR
6464 # Extract the first word of "ar", so it can be a program name with args.
6465 set dummy ar; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 if test -n "$ac_ct_AR"; then
6472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_ac_ct_AR="ar"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485 done
6486 done
6487 IFS=$as_save_IFS
6488
6489 fi
6490 fi
6491 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6492 if test -n "$ac_ct_AR"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6494 $as_echo "$ac_ct_AR" >&6; }
6495 else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499
6500 if test "x$ac_ct_AR" = x; then
6501 AR=""
6502 else
6503 case $cross_compiling:$ac_tool_warned in
6504 yes:)
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6507 ac_tool_warned=yes ;;
6508 esac
6509 AR=$ac_ct_AR
6510 fi
6511 else
6512 AR="$ac_cv_prog_AR"
6513 fi
6514
6515 if test -n "$ac_tool_prefix"; then
6516 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6517 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 if test -n "$DLLTOOL"; then
6524 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6525 else
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541 fi
6542 fi
6543 DLLTOOL=$ac_cv_prog_DLLTOOL
6544 if test -n "$DLLTOOL"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6546 $as_echo "$DLLTOOL" >&6; }
6547 else
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6550 fi
6551
6552
6553 fi
6554 if test -z "$ac_cv_prog_DLLTOOL"; then
6555 ac_ct_DLLTOOL=$DLLTOOL
6556 # Extract the first word of "dlltool", so it can be a program name with args.
6557 set dummy dlltool; ac_word=$2
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 if test -n "$ac_ct_DLLTOOL"; then
6564 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581 fi
6582 fi
6583 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6584 if test -n "$ac_ct_DLLTOOL"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6586 $as_echo "$ac_ct_DLLTOOL" >&6; }
6587 else
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6590 fi
6591
6592 if test "x$ac_ct_DLLTOOL" = x; then
6593 DLLTOOL=""
6594 else
6595 case $cross_compiling:$ac_tool_warned in
6596 yes:)
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599 ac_tool_warned=yes ;;
6600 esac
6601 DLLTOOL=$ac_ct_DLLTOOL
6602 fi
6603 else
6604 DLLTOOL="$ac_cv_prog_DLLTOOL"
6605 fi
6606
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6609 set dummy ${ac_tool_prefix}windres; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 if test -n "$WINDRES"; then
6616 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 WINDRES=$ac_cv_prog_WINDRES
6636 if test -n "$WINDRES"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6638 $as_echo "$WINDRES" >&6; }
6639 else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_WINDRES"; then
6647 ac_ct_WINDRES=$WINDRES
6648 # Extract the first word of "windres", so it can be a program name with args.
6649 set dummy windres; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 if test -n "$ac_ct_WINDRES"; then
6656 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6657 else
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_ac_ct_WINDRES="windres"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 fi
6674 fi
6675 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6676 if test -n "$ac_ct_WINDRES"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6678 $as_echo "$ac_ct_WINDRES" >&6; }
6679 else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6682 fi
6683
6684 if test "x$ac_ct_WINDRES" = x; then
6685 WINDRES=""
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688 yes:)
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6692 esac
6693 WINDRES=$ac_ct_WINDRES
6694 fi
6695 else
6696 WINDRES="$ac_cv_prog_WINDRES"
6697 fi
6698
6699
6700 case $host_os in
6701 gnu*)
6702 # Needed for GNU Hurd hosts.
6703 if test -n "$ac_tool_prefix"; then
6704 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6705 set dummy ${ac_tool_prefix}mig; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if test "${ac_cv_prog_MIG+set}" = set; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 if test -n "$MIG"; then
6712 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 MIG=$ac_cv_prog_MIG
6732 if test -n "$MIG"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6734 $as_echo "$MIG" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740
6741 fi
6742 if test -z "$ac_cv_prog_MIG"; then
6743 ac_ct_MIG=$MIG
6744 # Extract the first word of "mig", so it can be a program name with args.
6745 set dummy mig; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$ac_ct_MIG"; then
6752 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_prog_ac_ct_MIG="mig"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6772 if test -n "$ac_ct_MIG"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6774 $as_echo "$ac_ct_MIG" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 fi
6779
6780 if test "x$ac_ct_MIG" = x; then
6781 MIG=""
6782 else
6783 case $cross_compiling:$ac_tool_warned in
6784 yes:)
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789 MIG=$ac_ct_MIG
6790 fi
6791 else
6792 MIG="$ac_cv_prog_MIG"
6793 fi
6794
6795 if test x"$MIG" = x; then
6796 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6797 fi
6798 ;;
6799 esac
6800
6801 # ---------------------- #
6802 # Checks for libraries. #
6803 # ---------------------- #
6804
6805 # We might need to link with -lm; most simulators need it.
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6807 $as_echo_n "checking for main in -lm... " >&6; }
6808 if test "${ac_cv_lib_m_main+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 ac_check_lib_save_LIBS=$LIBS
6812 LIBS="-lm $LIBS"
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815
6816
6817 int
6818 main ()
6819 {
6820 return main ();
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 if ac_fn_c_try_link "$LINENO"; then :
6826 ac_cv_lib_m_main=yes
6827 else
6828 ac_cv_lib_m_main=no
6829 fi
6830 rm -f core conftest.err conftest.$ac_objext \
6831 conftest$ac_exeext conftest.$ac_ext
6832 LIBS=$ac_check_lib_save_LIBS
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6835 $as_echo "$ac_cv_lib_m_main" >&6; }
6836 if test "x$ac_cv_lib_m_main" = x""yes; then :
6837 cat >>confdefs.h <<_ACEOF
6838 #define HAVE_LIBM 1
6839 _ACEOF
6840
6841 LIBS="-lm $LIBS"
6842
6843 fi
6844
6845
6846 # We need to link with -lw to get `wctype' on Solaris before Solaris
6847 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6848 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6849 # is known to have this problem). Therefore we avoid libw if we can.
6850 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6851 if test "x$ac_cv_func_wctype" = x""yes; then :
6852
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6855 $as_echo_n "checking for wctype in -lw... " >&6; }
6856 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 ac_check_lib_save_LIBS=$LIBS
6860 LIBS="-lw $LIBS"
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863
6864 /* Override any GCC internal prototype to avoid an error.
6865 Use char because int might match the return type of a GCC
6866 builtin and then its argument prototype would still apply. */
6867 #ifdef __cplusplus
6868 extern "C"
6869 #endif
6870 char wctype ();
6871 int
6872 main ()
6873 {
6874 return wctype ();
6875 ;
6876 return 0;
6877 }
6878 _ACEOF
6879 if ac_fn_c_try_link "$LINENO"; then :
6880 ac_cv_lib_w_wctype=yes
6881 else
6882 ac_cv_lib_w_wctype=no
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext \
6885 conftest$ac_exeext conftest.$ac_ext
6886 LIBS=$ac_check_lib_save_LIBS
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6889 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6890 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6891 cat >>confdefs.h <<_ACEOF
6892 #define HAVE_LIBW 1
6893 _ACEOF
6894
6895 LIBS="-lw $LIBS"
6896
6897 fi
6898
6899 fi
6900
6901
6902 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6904 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6905 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 ac_func_search_save_LIBS=$LIBS
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911
6912 /* Override any GCC internal prototype to avoid an error.
6913 Use char because int might match the return type of a GCC
6914 builtin and then its argument prototype would still apply. */
6915 #ifdef __cplusplus
6916 extern "C"
6917 #endif
6918 char gethostbyname ();
6919 int
6920 main ()
6921 {
6922 return gethostbyname ();
6923 ;
6924 return 0;
6925 }
6926 _ACEOF
6927 for ac_lib in '' nsl; do
6928 if test -z "$ac_lib"; then
6929 ac_res="none required"
6930 else
6931 ac_res=-l$ac_lib
6932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6933 fi
6934 if ac_fn_c_try_link "$LINENO"; then :
6935 ac_cv_search_gethostbyname=$ac_res
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext
6939 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6940 break
6941 fi
6942 done
6943 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6944
6945 else
6946 ac_cv_search_gethostbyname=no
6947 fi
6948 rm conftest.$ac_ext
6949 LIBS=$ac_func_search_save_LIBS
6950 fi
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6952 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6953 ac_res=$ac_cv_search_gethostbyname
6954 if test "$ac_res" != no; then :
6955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6956
6957 fi
6958
6959
6960 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6962 $as_echo_n "checking for library containing socketpair... " >&6; }
6963 if test "${ac_cv_search_socketpair+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 ac_func_search_save_LIBS=$LIBS
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969
6970 /* Override any GCC internal prototype to avoid an error.
6971 Use char because int might match the return type of a GCC
6972 builtin and then its argument prototype would still apply. */
6973 #ifdef __cplusplus
6974 extern "C"
6975 #endif
6976 char socketpair ();
6977 int
6978 main ()
6979 {
6980 return socketpair ();
6981 ;
6982 return 0;
6983 }
6984 _ACEOF
6985 for ac_lib in '' socket; do
6986 if test -z "$ac_lib"; then
6987 ac_res="none required"
6988 else
6989 ac_res=-l$ac_lib
6990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6991 fi
6992 if ac_fn_c_try_link "$LINENO"; then :
6993 ac_cv_search_socketpair=$ac_res
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext
6997 if test "${ac_cv_search_socketpair+set}" = set; then :
6998 break
6999 fi
7000 done
7001 if test "${ac_cv_search_socketpair+set}" = set; then :
7002
7003 else
7004 ac_cv_search_socketpair=no
7005 fi
7006 rm conftest.$ac_ext
7007 LIBS=$ac_func_search_save_LIBS
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7010 $as_echo "$ac_cv_search_socketpair" >&6; }
7011 ac_res=$ac_cv_search_socketpair
7012 if test "$ac_res" != no; then :
7013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7014
7015 fi
7016
7017
7018 # Link in zlib if we can. This allows us to read compressed debug sections.
7019
7020 # See if the user specified whether he wants zlib support or not.
7021
7022 # Check whether --with-zlib was given.
7023 if test "${with_zlib+set}" = set; then :
7024 withval=$with_zlib;
7025 else
7026 with_zlib=auto
7027 fi
7028
7029
7030 if test "$with_zlib" != "no"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
7032 $as_echo_n "checking for library containing zlibVersion... " >&6; }
7033 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 ac_func_search_save_LIBS=$LIBS
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039
7040 /* Override any GCC internal prototype to avoid an error.
7041 Use char because int might match the return type of a GCC
7042 builtin and then its argument prototype would still apply. */
7043 #ifdef __cplusplus
7044 extern "C"
7045 #endif
7046 char zlibVersion ();
7047 int
7048 main ()
7049 {
7050 return zlibVersion ();
7051 ;
7052 return 0;
7053 }
7054 _ACEOF
7055 for ac_lib in '' z; do
7056 if test -z "$ac_lib"; then
7057 ac_res="none required"
7058 else
7059 ac_res=-l$ac_lib
7060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7061 fi
7062 if ac_fn_c_try_link "$LINENO"; then :
7063 ac_cv_search_zlibVersion=$ac_res
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext
7067 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7068 break
7069 fi
7070 done
7071 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7072
7073 else
7074 ac_cv_search_zlibVersion=no
7075 fi
7076 rm conftest.$ac_ext
7077 LIBS=$ac_func_search_save_LIBS
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
7080 $as_echo "$ac_cv_search_zlibVersion" >&6; }
7081 ac_res=$ac_cv_search_zlibVersion
7082 if test "$ac_res" != no; then :
7083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7084 for ac_header in zlib.h
7085 do :
7086 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7087 if test "x$ac_cv_header_zlib_h" = x""yes; then :
7088 cat >>confdefs.h <<_ACEOF
7089 #define HAVE_ZLIB_H 1
7090 _ACEOF
7091
7092 fi
7093
7094 done
7095
7096 fi
7097
7098 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
7099 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
7100 fi
7101 fi
7102
7103
7104 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
7106 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
7107 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 ac_func_search_save_LIBS=$LIBS
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113
7114 /* Override any GCC internal prototype to avoid an error.
7115 Use char because int might match the return type of a GCC
7116 builtin and then its argument prototype would still apply. */
7117 #ifdef __cplusplus
7118 extern "C"
7119 #endif
7120 char dlgetmodinfo ();
7121 int
7122 main ()
7123 {
7124 return dlgetmodinfo ();
7125 ;
7126 return 0;
7127 }
7128 _ACEOF
7129 for ac_lib in '' dl xpdl; do
7130 if test -z "$ac_lib"; then
7131 ac_res="none required"
7132 else
7133 ac_res=-l$ac_lib
7134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7135 fi
7136 if ac_fn_c_try_link "$LINENO"; then :
7137 ac_cv_search_dlgetmodinfo=$ac_res
7138 fi
7139 rm -f core conftest.err conftest.$ac_objext \
7140 conftest$ac_exeext
7141 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
7142 break
7143 fi
7144 done
7145 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
7146
7147 else
7148 ac_cv_search_dlgetmodinfo=no
7149 fi
7150 rm conftest.$ac_ext
7151 LIBS=$ac_func_search_save_LIBS
7152 fi
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
7154 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
7155 ac_res=$ac_cv_search_dlgetmodinfo
7156 if test "$ac_res" != no; then :
7157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7158
7159 fi
7160
7161
7162
7163
7164
7165 # Check whether --with-libiconv-prefix was given.
7166 if test "${with_libiconv_prefix+set}" = set; then :
7167 withval=$with_libiconv_prefix;
7168 for dir in `echo "$withval" | tr : ' '`; do
7169 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
7170 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
7171 done
7172
7173 fi
7174
7175
7176 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
7177 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7180 $as_echo_n "checking for iconv... " >&6; }
7181 if test "${am_cv_func_iconv+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184
7185 am_cv_func_iconv="no, consider installing GNU libiconv"
7186 am_cv_lib_iconv=no
7187 am_cv_use_build_libiconv=no
7188 am_cv_build_libiconv_path=
7189
7190 # If libiconv is part of the build tree, then try using it over
7191 # any system iconv.
7192 if test -d ../libiconv; then
7193 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
7194 am_save_LIBS="$LIBS"
7195 am_save_CPPFLAGS="$CPPFLAGS"
7196 LIBS="$LIBS $lib_dir/libiconv.a"
7197 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7200 #include <stdlib.h>
7201 #include <iconv.h>
7202 int
7203 main ()
7204 {
7205 iconv_t cd = iconv_open("","");
7206 iconv(cd,NULL,NULL,NULL,NULL);
7207 iconv_close(cd);
7208 ;
7209 return 0;
7210 }
7211 _ACEOF
7212 if ac_fn_c_try_link "$LINENO"; then :
7213 am_cv_use_build_libiconv=yes
7214 am_cv_build_libiconv_path=$lib_dir/libiconv.a
7215 am_cv_lib_iconv=yes
7216 am_cv_func_iconv=yes
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 LIBS="$am_save_LIBS"
7221 CPPFLAGS="$am_save_CPPFLAGS"
7222 if test "$am_cv_use_build_libiconv" = "yes"; then
7223 break
7224 fi
7225 done
7226 fi
7227
7228 # Next, try to find iconv in libc.
7229 if test "$am_cv_func_iconv" != yes; then
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 #include <stdlib.h>
7233 #include <iconv.h>
7234 int
7235 main ()
7236 {
7237 iconv_t cd = iconv_open("","");
7238 iconv(cd,NULL,NULL,NULL,NULL);
7239 iconv_close(cd);
7240 ;
7241 return 0;
7242 }
7243 _ACEOF
7244 if ac_fn_c_try_link "$LINENO"; then :
7245 am_cv_func_iconv=yes
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext \
7248 conftest$ac_exeext conftest.$ac_ext
7249 fi
7250
7251 # If iconv was not in libc, try -liconv. In this case, arrange to
7252 # look in the libiconv prefix, if it was specified by the user.
7253 if test "$am_cv_func_iconv" != yes; then
7254 am_save_CPPFLAGS="$CPPFLAGS"
7255 am_save_LIBS="$LIBS"
7256 if test -n "$LIBICONV_INCLUDE"; then
7257 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
7258 LIBS="$LIBS $LIBICONV_LIBDIR"
7259 fi
7260 LIBS="$LIBS -liconv"
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263 #include <stdlib.h>
7264 #include <iconv.h>
7265 int
7266 main ()
7267 {
7268 iconv_t cd = iconv_open("","");
7269 iconv(cd,NULL,NULL,NULL,NULL);
7270 iconv_close(cd);
7271 ;
7272 return 0;
7273 }
7274 _ACEOF
7275 if ac_fn_c_try_link "$LINENO"; then :
7276 am_cv_lib_iconv=yes
7277 am_cv_func_iconv=yes
7278 fi
7279 rm -f core conftest.err conftest.$ac_objext \
7280 conftest$ac_exeext conftest.$ac_ext
7281 LIBS="$am_save_LIBS"
7282 CPPFLAGS="$am_save_CPPFLAGS"
7283 fi
7284
7285 fi
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7287 $as_echo "$am_cv_func_iconv" >&6; }
7288
7289 # Set the various flags based on the cache variables. We can't rely
7290 # on the flags to remain set from the above code, due to caching.
7291 LIBICONV=
7292 if test "$am_cv_lib_iconv" = yes; then
7293 LIBICONV="-liconv"
7294 else
7295 LIBICONV_LIBDIR=
7296 LIBICONV_INCLUDE=
7297 fi
7298 if test "$am_cv_use_build_libiconv" = yes; then
7299 LIBICONV="$am_cv_build_libiconv_path"
7300 LIBICONV_LIBDIR=""
7301 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
7302 fi
7303 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
7304 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
7305
7306 if test "$am_cv_func_iconv" = yes; then
7307
7308 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7309
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7311 $as_echo_n "checking for iconv declaration... " >&6; }
7312 if test "${am_cv_proto_iconv+set}" = set; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318
7319 #include <stdlib.h>
7320 #include <iconv.h>
7321 extern
7322 #ifdef __cplusplus
7323 "C"
7324 #endif
7325 #if defined(__STDC__) || defined(__cplusplus)
7326 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7327 #else
7328 size_t iconv();
7329 #endif
7330
7331 int
7332 main ()
7333 {
7334
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 if ac_fn_c_try_compile "$LINENO"; then :
7340 am_cv_proto_iconv_arg1=""
7341 else
7342 am_cv_proto_iconv_arg1="const"
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 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);"
7346 fi
7347
7348 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7350 }$am_cv_proto_iconv" >&5
7351 $as_echo "${ac_t:-
7352 }$am_cv_proto_iconv" >&6; }
7353
7354 cat >>confdefs.h <<_ACEOF
7355 #define ICONV_CONST $am_cv_proto_iconv_arg1
7356 _ACEOF
7357
7358 fi
7359
7360
7361 # GDB may fork/exec the iconv program to get the list of supported character
7362 # sets. Allow the user to specify where to find it.
7363 # There are several factors affecting the choice of option name:
7364 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7365 # the build-time location of libiconv files.
7366 # - The program we need to find is iconv, which comes with glibc. The user
7367 # doesn't necessarily have libiconv installed. Therefore naming this
7368 # --with-libiconv-foo feels wrong.
7369 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7370 # defined to work on directories not files (though it really doesn't know
7371 # the difference).
7372 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7373 # with --with-libiconv-prefix.
7374 # Putting these together is why the option name is --with-iconv-bin.
7375
7376
7377 # Check whether --with-iconv-bin was given.
7378 if test "${with_iconv_bin+set}" = set; then :
7379 withval=$with_iconv_bin; iconv_bin="${withval}"
7380
7381 cat >>confdefs.h <<_ACEOF
7382 #define ICONV_BIN "${iconv_bin}"
7383 _ACEOF
7384
7385
7386 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7387 if test "x$prefix" = xNONE; then
7388 test_prefix=/usr/local
7389 else
7390 test_prefix=$prefix
7391 fi
7392 else
7393 test_prefix=$exec_prefix
7394 fi
7395 value=0
7396 case ${iconv_bin} in
7397 "${test_prefix}"|"${test_prefix}/"*|\
7398 '${exec_prefix}'|'${exec_prefix}/'*)
7399 value=1
7400 ;;
7401 esac
7402
7403 cat >>confdefs.h <<_ACEOF
7404 #define ICONV_BIN_RELOCATABLE $value
7405 _ACEOF
7406
7407
7408
7409 fi
7410
7411
7412 # For the TUI, we need enhanced curses functionality.
7413 if test x"$enable_tui" != xno; then
7414 prefer_curses=yes
7415 fi
7416
7417 curses_found=no
7418 if test x"$prefer_curses" = xyes; then
7419 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7420 # curses library because the latter might not provide all the
7421 # functionality we need. However, this leads to problems on systems
7422 # where the linker searches /usr/local/lib, but the compiler doesn't
7423 # search /usr/local/include, if ncurses is installed in /usr/local. A
7424 # default installation of ncurses on alpha*-dec-osf* will lead to such
7425 # a situation.
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7427 $as_echo_n "checking for library containing waddstr... " >&6; }
7428 if test "${ac_cv_search_waddstr+set}" = set; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 ac_func_search_save_LIBS=$LIBS
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434
7435 /* Override any GCC internal prototype to avoid an error.
7436 Use char because int might match the return type of a GCC
7437 builtin and then its argument prototype would still apply. */
7438 #ifdef __cplusplus
7439 extern "C"
7440 #endif
7441 char waddstr ();
7442 int
7443 main ()
7444 {
7445 return waddstr ();
7446 ;
7447 return 0;
7448 }
7449 _ACEOF
7450 for ac_lib in '' ncurses cursesX curses; do
7451 if test -z "$ac_lib"; then
7452 ac_res="none required"
7453 else
7454 ac_res=-l$ac_lib
7455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7456 fi
7457 if ac_fn_c_try_link "$LINENO"; then :
7458 ac_cv_search_waddstr=$ac_res
7459 fi
7460 rm -f core conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext
7462 if test "${ac_cv_search_waddstr+set}" = set; then :
7463 break
7464 fi
7465 done
7466 if test "${ac_cv_search_waddstr+set}" = set; then :
7467
7468 else
7469 ac_cv_search_waddstr=no
7470 fi
7471 rm conftest.$ac_ext
7472 LIBS=$ac_func_search_save_LIBS
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7475 $as_echo "$ac_cv_search_waddstr" >&6; }
7476 ac_res=$ac_cv_search_waddstr
7477 if test "$ac_res" != no; then :
7478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7479
7480 fi
7481
7482
7483 if test "$ac_cv_search_waddstr" != no; then
7484 curses_found=yes
7485 fi
7486 fi
7487
7488 # Check whether we should enable the TUI, but only do so if we really
7489 # can.
7490 if test x"$enable_tui" != xno; then
7491 if test -d $srcdir/tui; then
7492 if test "$curses_found" != no; then
7493 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7494 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7495 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7496 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7497 else
7498 if test x"$enable_tui" = xyes; then
7499 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7502 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7503 fi
7504 fi
7505 fi
7506 fi
7507
7508 # Since GDB uses Readline, we need termcap functionality. In many
7509 # cases this will be provided by the curses library, but some systems
7510 # have a seperate termcap library, or no curses library at all.
7511
7512 case $host_os in
7513 cygwin*)
7514 if test -d $srcdir/libtermcap; then
7515 LIBS="../libtermcap/libtermcap.a $LIBS"
7516 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
7517 fi ;;
7518 go32* | *djgpp*)
7519 ac_cv_search_tgetent="none required"
7520 ;;
7521 *mingw32*)
7522 if test x"$curses_found" != xyes; then
7523 ac_cv_search_tgetent="none required"
7524 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
7525 fi ;;
7526 esac
7527
7528 # These are the libraries checked by Readline.
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7530 $as_echo_n "checking for library containing tgetent... " >&6; }
7531 if test "${ac_cv_search_tgetent+set}" = set; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 ac_func_search_save_LIBS=$LIBS
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537
7538 /* Override any GCC internal prototype to avoid an error.
7539 Use char because int might match the return type of a GCC
7540 builtin and then its argument prototype would still apply. */
7541 #ifdef __cplusplus
7542 extern "C"
7543 #endif
7544 char tgetent ();
7545 int
7546 main ()
7547 {
7548 return tgetent ();
7549 ;
7550 return 0;
7551 }
7552 _ACEOF
7553 for ac_lib in '' termcap tinfo curses ncurses; do
7554 if test -z "$ac_lib"; then
7555 ac_res="none required"
7556 else
7557 ac_res=-l$ac_lib
7558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7559 fi
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 ac_cv_search_tgetent=$ac_res
7562 fi
7563 rm -f core conftest.err conftest.$ac_objext \
7564 conftest$ac_exeext
7565 if test "${ac_cv_search_tgetent+set}" = set; then :
7566 break
7567 fi
7568 done
7569 if test "${ac_cv_search_tgetent+set}" = set; then :
7570
7571 else
7572 ac_cv_search_tgetent=no
7573 fi
7574 rm conftest.$ac_ext
7575 LIBS=$ac_func_search_save_LIBS
7576 fi
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7578 $as_echo "$ac_cv_search_tgetent" >&6; }
7579 ac_res=$ac_cv_search_tgetent
7580 if test "$ac_res" != no; then :
7581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7582
7583 fi
7584
7585
7586 if test "$ac_cv_search_tgetent" = no; then
7587 as_fn_error "no termcap library found" "$LINENO" 5
7588 fi
7589
7590
7591 # Check whether --with-system-readline was given.
7592 if test "${with_system_readline+set}" = set; then :
7593 withval=$with_system_readline;
7594 fi
7595
7596
7597 if test "$with_system_readline" = yes; then
7598 READLINE=-lreadline
7599 READLINE_DEPS=
7600 READLINE_CFLAGS=
7601 READLINE_TEXI_INCFLAG=
7602 else
7603 READLINE='$(READLINE_DIR)/libreadline.a'
7604 READLINE_DEPS='$(READLINE)'
7605 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7606 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7607 fi
7608
7609
7610
7611
7612
7613 # Generate jit-reader.h
7614
7615 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7616 TARGET_PTR=
7617
7618 # The cast to long int works around a bug in the HP C Compiler
7619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7621 # This bug is HP SR number 8606223364.
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7623 $as_echo_n "checking size of unsigned long long... " >&6; }
7624 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7628
7629 else
7630 if test "$ac_cv_type_unsigned_long_long" = yes; then
7631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7633 { as_fn_set_status 77
7634 as_fn_error "cannot compute sizeof (unsigned long long)
7635 See \`config.log' for more details." "$LINENO" 5; }; }
7636 else
7637 ac_cv_sizeof_unsigned_long_long=0
7638 fi
7639 fi
7640
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7643 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7644
7645
7646
7647 cat >>confdefs.h <<_ACEOF
7648 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7649 _ACEOF
7650
7651
7652 # The cast to long int works around a bug in the HP C Compiler
7653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7655 # This bug is HP SR number 8606223364.
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7657 $as_echo_n "checking size of unsigned long... " >&6; }
7658 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7662
7663 else
7664 if test "$ac_cv_type_unsigned_long" = yes; then
7665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7667 { as_fn_set_status 77
7668 as_fn_error "cannot compute sizeof (unsigned long)
7669 See \`config.log' for more details." "$LINENO" 5; }; }
7670 else
7671 ac_cv_sizeof_unsigned_long=0
7672 fi
7673 fi
7674
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7677 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7678
7679
7680
7681 cat >>confdefs.h <<_ACEOF
7682 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7683 _ACEOF
7684
7685
7686 # The cast to long int works around a bug in the HP C Compiler
7687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7689 # This bug is HP SR number 8606223364.
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7691 $as_echo_n "checking size of unsigned __int128... " >&6; }
7692 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7696
7697 else
7698 if test "$ac_cv_type_unsigned___int128" = yes; then
7699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7701 { as_fn_set_status 77
7702 as_fn_error "cannot compute sizeof (unsigned __int128)
7703 See \`config.log' for more details." "$LINENO" 5; }; }
7704 else
7705 ac_cv_sizeof_unsigned___int128=0
7706 fi
7707 fi
7708
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7711 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7712
7713
7714
7715 cat >>confdefs.h <<_ACEOF
7716 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7717 _ACEOF
7718
7719
7720
7721 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7722 TARGET_PTR="unsigned long"
7723 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7724 TARGET_PTR="unsigned long long"
7725 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7726 TARGET_PTR="unsigned __int128"
7727 else
7728 TARGET_PTR="unsigned long"
7729 fi
7730
7731
7732 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7733
7734
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7736 $as_echo_n "checking for library containing dlopen... " >&6; }
7737 if test "${ac_cv_search_dlopen+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 ac_func_search_save_LIBS=$LIBS
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743
7744 /* Override any GCC internal prototype to avoid an error.
7745 Use char because int might match the return type of a GCC
7746 builtin and then its argument prototype would still apply. */
7747 #ifdef __cplusplus
7748 extern "C"
7749 #endif
7750 char dlopen ();
7751 int
7752 main ()
7753 {
7754 return dlopen ();
7755 ;
7756 return 0;
7757 }
7758 _ACEOF
7759 for ac_lib in '' dl; do
7760 if test -z "$ac_lib"; then
7761 ac_res="none required"
7762 else
7763 ac_res=-l$ac_lib
7764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7765 fi
7766 if ac_fn_c_try_link "$LINENO"; then :
7767 ac_cv_search_dlopen=$ac_res
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext
7771 if test "${ac_cv_search_dlopen+set}" = set; then :
7772 break
7773 fi
7774 done
7775 if test "${ac_cv_search_dlopen+set}" = set; then :
7776
7777 else
7778 ac_cv_search_dlopen=no
7779 fi
7780 rm conftest.$ac_ext
7781 LIBS=$ac_func_search_save_LIBS
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7784 $as_echo "$ac_cv_search_dlopen" >&6; }
7785 ac_res=$ac_cv_search_dlopen
7786 if test "$ac_res" != no; then :
7787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7788
7789 fi
7790
7791
7792
7793
7794 # Check whether --with-jit-reader-dir was given.
7795 if test "${with_jit_reader_dir+set}" = set; then :
7796 withval=$with_jit_reader_dir;
7797 JIT_READER_DIR=$withval
7798 else
7799 JIT_READER_DIR=${libdir}/gdb
7800 fi
7801
7802
7803 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7805 ac_define_dir=`eval echo $JIT_READER_DIR`
7806 ac_define_dir=`eval echo $ac_define_dir`
7807
7808 cat >>confdefs.h <<_ACEOF
7809 #define JIT_READER_DIR "$ac_define_dir"
7810 _ACEOF
7811
7812
7813
7814
7815 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7816 if test "x$prefix" = xNONE; then
7817 test_prefix=/usr/local
7818 else
7819 test_prefix=$prefix
7820 fi
7821 else
7822 test_prefix=$exec_prefix
7823 fi
7824 value=0
7825 case ${ac_define_dir} in
7826 "${test_prefix}"|"${test_prefix}/"*|\
7827 '${exec_prefix}'|'${exec_prefix}/'*)
7828 value=1
7829 ;;
7830 esac
7831
7832 cat >>confdefs.h <<_ACEOF
7833 #define JIT_READER_DIR_RELOCATABLE $value
7834 _ACEOF
7835
7836
7837
7838
7839
7840 # Check whether --with-expat was given.
7841 if test "${with_expat+set}" = set; then :
7842 withval=$with_expat;
7843 else
7844 with_expat=auto
7845 fi
7846
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7848 $as_echo_n "checking whether to use expat... " >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7850 $as_echo "$with_expat" >&6; }
7851
7852 if test "${with_expat}" = no; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7854 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7855 HAVE_LIBEXPAT=no
7856 else
7857
7858 if test "X$prefix" = "XNONE"; then
7859 acl_final_prefix="$ac_default_prefix"
7860 else
7861 acl_final_prefix="$prefix"
7862 fi
7863 if test "X$exec_prefix" = "XNONE"; then
7864 acl_final_exec_prefix='${prefix}'
7865 else
7866 acl_final_exec_prefix="$exec_prefix"
7867 fi
7868 acl_save_prefix="$prefix"
7869 prefix="$acl_final_prefix"
7870 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7871 prefix="$acl_save_prefix"
7872
7873
7874 # Check whether --with-gnu-ld was given.
7875 if test "${with_gnu_ld+set}" = set; then :
7876 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7877 else
7878 with_gnu_ld=no
7879 fi
7880
7881 # Prepare PATH_SEPARATOR.
7882 # The user is always right.
7883 if test "${PATH_SEPARATOR+set}" != set; then
7884 echo "#! /bin/sh" >conf$$.sh
7885 echo "exit 0" >>conf$$.sh
7886 chmod +x conf$$.sh
7887 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7888 PATH_SEPARATOR=';'
7889 else
7890 PATH_SEPARATOR=:
7891 fi
7892 rm -f conf$$.sh
7893 fi
7894 ac_prog=ld
7895 if test "$GCC" = yes; then
7896 # Check if gcc -print-prog-name=ld gives a path.
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7898 $as_echo_n "checking for ld used by GCC... " >&6; }
7899 case $host in
7900 *-*-mingw*)
7901 # gcc leaves a trailing carriage return which upsets mingw
7902 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7903 *)
7904 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7905 esac
7906 case $ac_prog in
7907 # Accept absolute paths.
7908 [\\/]* | [A-Za-z]:[\\/]*)
7909 re_direlt='/[^/][^/]*/\.\./'
7910 # Canonicalize the path of ld
7911 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7912 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7913 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7914 done
7915 test -z "$LD" && LD="$ac_prog"
7916 ;;
7917 "")
7918 # If it fails, then pretend we aren't using GCC.
7919 ac_prog=ld
7920 ;;
7921 *)
7922 # If it is relative, then search for the first ld in PATH.
7923 with_gnu_ld=unknown
7924 ;;
7925 esac
7926 elif test "$with_gnu_ld" = yes; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7928 $as_echo_n "checking for GNU ld... " >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7931 $as_echo_n "checking for non-GNU ld... " >&6; }
7932 fi
7933 if test "${acl_cv_path_LD+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 if test -z "$LD"; then
7937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7938 for ac_dir in $PATH; do
7939 test -z "$ac_dir" && ac_dir=.
7940 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7941 acl_cv_path_LD="$ac_dir/$ac_prog"
7942 # Check to see if the program is GNU ld. I'd rather use --version,
7943 # but apparently some GNU ld's only accept -v.
7944 # Break only if it was the GNU/non-GNU ld that we prefer.
7945 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7946 test "$with_gnu_ld" != no && break
7947 else
7948 test "$with_gnu_ld" != yes && break
7949 fi
7950 fi
7951 done
7952 IFS="$ac_save_ifs"
7953 else
7954 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7955 fi
7956 fi
7957
7958 LD="$acl_cv_path_LD"
7959 if test -n "$LD"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7961 $as_echo "$LD" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7968 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7969 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7973 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7974 acl_cv_prog_gnu_ld=yes
7975 else
7976 acl_cv_prog_gnu_ld=no
7977 fi
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7980 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7981 with_gnu_ld=$acl_cv_prog_gnu_ld
7982
7983
7984
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7986 $as_echo_n "checking for shared library run path origin... " >&6; }
7987 if test "${acl_cv_rpath+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990
7991 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7992 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7993 . ./conftest.sh
7994 rm -f ./conftest.sh
7995 acl_cv_rpath=done
7996
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7999 $as_echo "$acl_cv_rpath" >&6; }
8000 wl="$acl_cv_wl"
8001 libext="$acl_cv_libext"
8002 shlibext="$acl_cv_shlibext"
8003 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8004 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8005 hardcode_direct="$acl_cv_hardcode_direct"
8006 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8007 # Check whether --enable-rpath was given.
8008 if test "${enable_rpath+set}" = set; then :
8009 enableval=$enable_rpath; :
8010 else
8011 enable_rpath=yes
8012 fi
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023 use_additional=yes
8024
8025 acl_save_prefix="$prefix"
8026 prefix="$acl_final_prefix"
8027 acl_save_exec_prefix="$exec_prefix"
8028 exec_prefix="$acl_final_exec_prefix"
8029
8030 eval additional_includedir=\"$includedir\"
8031 eval additional_libdir=\"$libdir\"
8032
8033 exec_prefix="$acl_save_exec_prefix"
8034 prefix="$acl_save_prefix"
8035
8036
8037 # Check whether --with-libexpat-prefix was given.
8038 if test "${with_libexpat_prefix+set}" = set; then :
8039 withval=$with_libexpat_prefix;
8040 if test "X$withval" = "Xno"; then
8041 use_additional=no
8042 else
8043 if test "X$withval" = "X"; then
8044
8045 acl_save_prefix="$prefix"
8046 prefix="$acl_final_prefix"
8047 acl_save_exec_prefix="$exec_prefix"
8048 exec_prefix="$acl_final_exec_prefix"
8049
8050 eval additional_includedir=\"$includedir\"
8051 eval additional_libdir=\"$libdir\"
8052
8053 exec_prefix="$acl_save_exec_prefix"
8054 prefix="$acl_save_prefix"
8055
8056 else
8057 additional_includedir="$withval/include"
8058 additional_libdir="$withval/lib"
8059 fi
8060 fi
8061
8062 fi
8063
8064 LIBEXPAT=
8065 LTLIBEXPAT=
8066 INCEXPAT=
8067 rpathdirs=
8068 ltrpathdirs=
8069 names_already_handled=
8070 names_next_round='expat '
8071 while test -n "$names_next_round"; do
8072 names_this_round="$names_next_round"
8073 names_next_round=
8074 for name in $names_this_round; do
8075 already_handled=
8076 for n in $names_already_handled; do
8077 if test "$n" = "$name"; then
8078 already_handled=yes
8079 break
8080 fi
8081 done
8082 if test -z "$already_handled"; then
8083 names_already_handled="$names_already_handled $name"
8084 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8085 eval value=\"\$HAVE_LIB$uppername\"
8086 if test -n "$value"; then
8087 if test "$value" = yes; then
8088 eval value=\"\$LIB$uppername\"
8089 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
8090 eval value=\"\$LTLIB$uppername\"
8091 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8092 else
8093 :
8094 fi
8095 else
8096 found_dir=
8097 found_la=
8098 found_so=
8099 found_a=
8100 if test $use_additional = yes; then
8101 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8102 found_dir="$additional_libdir"
8103 found_so="$additional_libdir/lib$name.$shlibext"
8104 if test -f "$additional_libdir/lib$name.la"; then
8105 found_la="$additional_libdir/lib$name.la"
8106 fi
8107 else
8108 if test -f "$additional_libdir/lib$name.$libext"; then
8109 found_dir="$additional_libdir"
8110 found_a="$additional_libdir/lib$name.$libext"
8111 if test -f "$additional_libdir/lib$name.la"; then
8112 found_la="$additional_libdir/lib$name.la"
8113 fi
8114 fi
8115 fi
8116 fi
8117 if test "X$found_dir" = "X"; then
8118 for x in $LDFLAGS $LTLIBEXPAT; do
8119
8120 acl_save_prefix="$prefix"
8121 prefix="$acl_final_prefix"
8122 acl_save_exec_prefix="$exec_prefix"
8123 exec_prefix="$acl_final_exec_prefix"
8124 eval x=\"$x\"
8125 exec_prefix="$acl_save_exec_prefix"
8126 prefix="$acl_save_prefix"
8127
8128 case "$x" in
8129 -L*)
8130 dir=`echo "X$x" | sed -e 's/^X-L//'`
8131 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8132 found_dir="$dir"
8133 found_so="$dir/lib$name.$shlibext"
8134 if test -f "$dir/lib$name.la"; then
8135 found_la="$dir/lib$name.la"
8136 fi
8137 else
8138 if test -f "$dir/lib$name.$libext"; then
8139 found_dir="$dir"
8140 found_a="$dir/lib$name.$libext"
8141 if test -f "$dir/lib$name.la"; then
8142 found_la="$dir/lib$name.la"
8143 fi
8144 fi
8145 fi
8146 ;;
8147 esac
8148 if test "X$found_dir" != "X"; then
8149 break
8150 fi
8151 done
8152 fi
8153 if test "X$found_dir" != "X"; then
8154 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8155 if test "X$found_so" != "X"; then
8156 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8157 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8158 else
8159 haveit=
8160 for x in $ltrpathdirs; do
8161 if test "X$x" = "X$found_dir"; then
8162 haveit=yes
8163 break
8164 fi
8165 done
8166 if test -z "$haveit"; then
8167 ltrpathdirs="$ltrpathdirs $found_dir"
8168 fi
8169 if test "$hardcode_direct" = yes; then
8170 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8171 else
8172 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8173 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8174 haveit=
8175 for x in $rpathdirs; do
8176 if test "X$x" = "X$found_dir"; then
8177 haveit=yes
8178 break
8179 fi
8180 done
8181 if test -z "$haveit"; then
8182 rpathdirs="$rpathdirs $found_dir"
8183 fi
8184 else
8185 haveit=
8186 for x in $LDFLAGS $LIBEXPAT; do
8187
8188 acl_save_prefix="$prefix"
8189 prefix="$acl_final_prefix"
8190 acl_save_exec_prefix="$exec_prefix"
8191 exec_prefix="$acl_final_exec_prefix"
8192 eval x=\"$x\"
8193 exec_prefix="$acl_save_exec_prefix"
8194 prefix="$acl_save_prefix"
8195
8196 if test "X$x" = "X-L$found_dir"; then
8197 haveit=yes
8198 break
8199 fi
8200 done
8201 if test -z "$haveit"; then
8202 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8203 fi
8204 if test "$hardcode_minus_L" != no; then
8205 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8206 else
8207 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8208 fi
8209 fi
8210 fi
8211 fi
8212 else
8213 if test "X$found_a" != "X"; then
8214 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8215 else
8216 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8217 fi
8218 fi
8219 additional_includedir=
8220 case "$found_dir" in
8221 */lib | */lib/)
8222 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8223 additional_includedir="$basedir/include"
8224 ;;
8225 esac
8226 if test "X$additional_includedir" != "X"; then
8227 if test "X$additional_includedir" != "X/usr/include"; then
8228 haveit=
8229 if test "X$additional_includedir" = "X/usr/local/include"; then
8230 if test -n "$GCC"; then
8231 case $host_os in
8232 linux*) haveit=yes;;
8233 esac
8234 fi
8235 fi
8236 if test -z "$haveit"; then
8237 for x in $CPPFLAGS $INCEXPAT; do
8238
8239 acl_save_prefix="$prefix"
8240 prefix="$acl_final_prefix"
8241 acl_save_exec_prefix="$exec_prefix"
8242 exec_prefix="$acl_final_exec_prefix"
8243 eval x=\"$x\"
8244 exec_prefix="$acl_save_exec_prefix"
8245 prefix="$acl_save_prefix"
8246
8247 if test "X$x" = "X-I$additional_includedir"; then
8248 haveit=yes
8249 break
8250 fi
8251 done
8252 if test -z "$haveit"; then
8253 if test -d "$additional_includedir"; then
8254 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8255 fi
8256 fi
8257 fi
8258 fi
8259 fi
8260 if test -n "$found_la"; then
8261 save_libdir="$libdir"
8262 case "$found_la" in
8263 */* | *\\*) . "$found_la" ;;
8264 *) . "./$found_la" ;;
8265 esac
8266 libdir="$save_libdir"
8267 for dep in $dependency_libs; do
8268 case "$dep" in
8269 -L*)
8270 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8271 if test "X$additional_libdir" != "X/usr/lib"; then
8272 haveit=
8273 if test "X$additional_libdir" = "X/usr/local/lib"; then
8274 if test -n "$GCC"; then
8275 case $host_os in
8276 linux*) haveit=yes;;
8277 esac
8278 fi
8279 fi
8280 if test -z "$haveit"; then
8281 haveit=
8282 for x in $LDFLAGS $LIBEXPAT; do
8283
8284 acl_save_prefix="$prefix"
8285 prefix="$acl_final_prefix"
8286 acl_save_exec_prefix="$exec_prefix"
8287 exec_prefix="$acl_final_exec_prefix"
8288 eval x=\"$x\"
8289 exec_prefix="$acl_save_exec_prefix"
8290 prefix="$acl_save_prefix"
8291
8292 if test "X$x" = "X-L$additional_libdir"; then
8293 haveit=yes
8294 break
8295 fi
8296 done
8297 if test -z "$haveit"; then
8298 if test -d "$additional_libdir"; then
8299 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8300 fi
8301 fi
8302 haveit=
8303 for x in $LDFLAGS $LTLIBEXPAT; do
8304
8305 acl_save_prefix="$prefix"
8306 prefix="$acl_final_prefix"
8307 acl_save_exec_prefix="$exec_prefix"
8308 exec_prefix="$acl_final_exec_prefix"
8309 eval x=\"$x\"
8310 exec_prefix="$acl_save_exec_prefix"
8311 prefix="$acl_save_prefix"
8312
8313 if test "X$x" = "X-L$additional_libdir"; then
8314 haveit=yes
8315 break
8316 fi
8317 done
8318 if test -z "$haveit"; then
8319 if test -d "$additional_libdir"; then
8320 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8321 fi
8322 fi
8323 fi
8324 fi
8325 ;;
8326 -R*)
8327 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8328 if test "$enable_rpath" != no; then
8329 haveit=
8330 for x in $rpathdirs; do
8331 if test "X$x" = "X$dir"; then
8332 haveit=yes
8333 break
8334 fi
8335 done
8336 if test -z "$haveit"; then
8337 rpathdirs="$rpathdirs $dir"
8338 fi
8339 haveit=
8340 for x in $ltrpathdirs; do
8341 if test "X$x" = "X$dir"; then
8342 haveit=yes
8343 break
8344 fi
8345 done
8346 if test -z "$haveit"; then
8347 ltrpathdirs="$ltrpathdirs $dir"
8348 fi
8349 fi
8350 ;;
8351 -l*)
8352 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8353 ;;
8354 *.la)
8355 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8356 ;;
8357 *)
8358 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8359 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8360 ;;
8361 esac
8362 done
8363 fi
8364 else
8365 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8366 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8367 fi
8368 fi
8369 fi
8370 done
8371 done
8372 if test "X$rpathdirs" != "X"; then
8373 if test -n "$hardcode_libdir_separator"; then
8374 alldirs=
8375 for found_dir in $rpathdirs; do
8376 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8377 done
8378 acl_save_libdir="$libdir"
8379 libdir="$alldirs"
8380 eval flag=\"$hardcode_libdir_flag_spec\"
8381 libdir="$acl_save_libdir"
8382 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8383 else
8384 for found_dir in $rpathdirs; do
8385 acl_save_libdir="$libdir"
8386 libdir="$found_dir"
8387 eval flag=\"$hardcode_libdir_flag_spec\"
8388 libdir="$acl_save_libdir"
8389 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8390 done
8391 fi
8392 fi
8393 if test "X$ltrpathdirs" != "X"; then
8394 for found_dir in $ltrpathdirs; do
8395 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8396 done
8397 fi
8398
8399
8400 ac_save_CPPFLAGS="$CPPFLAGS"
8401
8402 for element in $INCEXPAT; do
8403 haveit=
8404 for x in $CPPFLAGS; do
8405
8406 acl_save_prefix="$prefix"
8407 prefix="$acl_final_prefix"
8408 acl_save_exec_prefix="$exec_prefix"
8409 exec_prefix="$acl_final_exec_prefix"
8410 eval x=\"$x\"
8411 exec_prefix="$acl_save_exec_prefix"
8412 prefix="$acl_save_prefix"
8413
8414 if test "X$x" = "X$element"; then
8415 haveit=yes
8416 break
8417 fi
8418 done
8419 if test -z "$haveit"; then
8420 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8421 fi
8422 done
8423
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8426 $as_echo_n "checking for libexpat... " >&6; }
8427 if test "${ac_cv_libexpat+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430
8431 ac_save_LIBS="$LIBS"
8432 LIBS="$LIBS $LIBEXPAT"
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 #include "expat.h"
8436 int
8437 main ()
8438 {
8439 XML_Parser p = XML_ParserCreate (0);
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_link "$LINENO"; then :
8445 ac_cv_libexpat=yes
8446 else
8447 ac_cv_libexpat=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS="$ac_save_LIBS"
8452
8453 fi
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8455 $as_echo "$ac_cv_libexpat" >&6; }
8456 if test "$ac_cv_libexpat" = yes; then
8457 HAVE_LIBEXPAT=yes
8458
8459 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8462 $as_echo_n "checking how to link with libexpat... " >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8464 $as_echo "$LIBEXPAT" >&6; }
8465 else
8466 HAVE_LIBEXPAT=no
8467 CPPFLAGS="$ac_save_CPPFLAGS"
8468 LIBEXPAT=
8469 LTLIBEXPAT=
8470 fi
8471
8472
8473
8474
8475
8476
8477 if test "$HAVE_LIBEXPAT" != yes; then
8478 if test "$with_expat" = yes; then
8479 as_fn_error "expat is missing or unusable" "$LINENO" 5
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8482 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8483 fi
8484 else
8485 save_LIBS=$LIBS
8486 LIBS="$LIBS $LIBEXPAT"
8487 for ac_func in XML_StopParser
8488 do :
8489 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8490 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8491 cat >>confdefs.h <<_ACEOF
8492 #define HAVE_XML_STOPPARSER 1
8493 _ACEOF
8494
8495 fi
8496 done
8497
8498 LIBS=$save_LIBS
8499 fi
8500 fi
8501
8502 # --------------------- #
8503 # Check for libpython. #
8504 # --------------------- #
8505
8506
8507
8508
8509
8510
8511 # Check whether --with-python was given.
8512 if test "${with_python+set}" = set; then :
8513 withval=$with_python;
8514 else
8515 with_python=auto
8516 fi
8517
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8519 $as_echo_n "checking whether to use python... " >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8521 $as_echo "$with_python" >&6; }
8522
8523 if test "${with_python}" = no; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8525 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8526 have_libpython=no
8527 else
8528 case "${with_python}" in
8529 [\\/]* | ?:[\\/]*)
8530 if test -d ${with_python}; then
8531 # Assume the python binary is ${with_python}/bin/python.
8532 python_prog="${with_python}/bin/python"
8533 python_prefix=
8534 # If python does not exit ${with_python}/bin, then try in
8535 # ${with_python}. On Windows/MinGW, this is where the Python
8536 # executable is.
8537 if test ! -x "${python_prog}"; then
8538 python_prog="${with_python}/python"
8539 python_prefix=
8540 fi
8541 if test ! -x "${python_prog}"; then
8542 # Fall back to gdb 7.0/7.1 behaviour.
8543 python_prog=missing
8544 python_prefix=${with_python}
8545 fi
8546 elif test -x "${with_python}"; then
8547 # While we can't run python compiled for $host (unless host == build),
8548 # the user could write a script that provides the needed information,
8549 # so we support that.
8550 python_prog=${with_python}
8551 python_prefix=
8552 else
8553 as_fn_error "invalid value for --with-python" "$LINENO" 5
8554 fi
8555 ;;
8556 */*)
8557 # Disallow --with-python=foo/bar.
8558 as_fn_error "invalid value for --with-python" "$LINENO" 5
8559 ;;
8560 *)
8561 # The user has either specified auto, yes, or the name of the python
8562 # program assumed to be in $PATH.
8563 python_prefix=
8564 case "${with_python}" in
8565 yes | auto)
8566 if test ${build} = ${host}; then
8567 # Extract the first word of "python", so it can be a program name with args.
8568 set dummy python; ac_word=$2
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 $as_echo_n "checking for $ac_word... " >&6; }
8571 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 case $python_prog_path in
8575 [\\/]* | ?:[\\/]*)
8576 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8577 ;;
8578 *)
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in $PATH
8581 do
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8586 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 break 2
8589 fi
8590 done
8591 done
8592 IFS=$as_save_IFS
8593
8594 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8595 ;;
8596 esac
8597 fi
8598 python_prog_path=$ac_cv_path_python_prog_path
8599 if test -n "$python_prog_path"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8601 $as_echo "$python_prog_path" >&6; }
8602 else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8605 fi
8606
8607
8608 if test "${python_prog_path}" = missing; then
8609 python_prog=missing
8610 else
8611 python_prog=${python_prog_path}
8612 fi
8613 else
8614 # Not much we can do except assume the cross-compiler will find the
8615 # right files.
8616 python_prog=missing
8617 fi
8618 ;;
8619 *)
8620 # While we can't run python compiled for $host (unless host == build),
8621 # the user could write a script that provides the needed information,
8622 # so we support that.
8623 python_prog="${with_python}"
8624 # Extract the first word of "${python_prog}", so it can be a program name with args.
8625 set dummy ${python_prog}; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 case $python_prog_path in
8632 [\\/]* | ?:[\\/]*)
8633 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8634 ;;
8635 *)
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639 IFS=$as_save_IFS
8640 test -z "$as_dir" && as_dir=.
8641 for ac_exec_ext in '' $ac_executable_extensions; do
8642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8643 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 break 2
8646 fi
8647 done
8648 done
8649 IFS=$as_save_IFS
8650
8651 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8652 ;;
8653 esac
8654 fi
8655 python_prog_path=$ac_cv_path_python_prog_path
8656 if test -n "$python_prog_path"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8658 $as_echo "$python_prog_path" >&6; }
8659 else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8662 fi
8663
8664
8665 if test "${python_prog_path}" = missing; then
8666 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8667 fi
8668 ;;
8669 esac
8670 esac
8671
8672 if test "${python_prog}" != missing; then
8673 # We have a python program to use, but it may be too old.
8674 # Don't flag an error for --with-python=auto (the default).
8675 have_python_config=yes
8676 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8677 if test $? != 0; then
8678 have_python_config=failed
8679 if test "${with_python}" != auto; then
8680 as_fn_error "failure running python-config --includes" "$LINENO" 5
8681 fi
8682 fi
8683 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8684 if test $? != 0; then
8685 have_python_config=failed
8686 if test "${with_python}" != auto; then
8687 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8688 fi
8689 fi
8690 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8691 if test $? != 0; then
8692 have_python_config=failed
8693 if test "${with_python}" != auto; then
8694 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8695 fi
8696 fi
8697 else
8698 # We do not have a python executable we can use to determine where
8699 # to find the Python headers and libs. We cannot guess the include
8700 # path from the python_prefix either, because that include path
8701 # depends on the Python version. So, there is nothing much we can
8702 # do except assume that the compiler will be able to find those files.
8703 python_includes=
8704 python_libs=
8705 have_python_config=no
8706 fi
8707
8708 # If we have python-config, only try the configuration it provides.
8709 # Otherwise fallback on the old way of trying different versions of
8710 # python in turn.
8711
8712 have_libpython=no
8713 if test "${have_python_config}" = yes; then
8714 # Determine the Python version by extracting "-lpython<version>"
8715 # part of the python_libs. <version> is usually X.Y with X and Y
8716 # being decimal numbers, but can also be XY (seen on Windows).
8717 #
8718 # The extraction is performed using sed with a regular expression.
8719 # Initially, the regexp used was using the '?' quantifier to make
8720 # the dot in the version number optional. Unfortunately, this
8721 # does not work with non-GNU versions of sed because, because of
8722 # what looks like a limitation (the '?' quantifier does not work
8723 # with back-references). We work around this limitation by using
8724 # the '*' quantifier instead. It means that, in theory, we might
8725 # match unexpected version strings such as "-lpython2..7", but
8726 # this seems unlikely in practice. And even if that happens,
8727 # an error will be triggered later on, when checking that version
8728 # number.
8729 python_version=`echo " ${python_libs} " \
8730 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8731 case "${python_version}" in
8732 python*)
8733
8734 version=${python_version}
8735
8736 new_CPPFLAGS=${python_includes}
8737 new_LIBS=${python_libs}
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8739 $as_echo_n "checking for ${version}... " >&6; }
8740 save_CPPFLAGS=$CPPFLAGS
8741 save_LIBS=$LIBS
8742 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8743 LIBS="$LIBS $new_LIBS"
8744 found_usable_python=no
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 #include "Python.h"
8748 int
8749 main ()
8750 {
8751 Py_Initialize ();
8752 ;
8753 return 0;
8754 }
8755 _ACEOF
8756 if ac_fn_c_try_link "$LINENO"; then :
8757 have_libpython=${version}
8758 found_usable_python=yes
8759 PYTHON_CPPFLAGS=$new_CPPFLAGS
8760 PYTHON_LIBS=$new_LIBS
8761 fi
8762 rm -f core conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764 CPPFLAGS=$save_CPPFLAGS
8765 LIBS=$save_LIBS
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8767 $as_echo "${found_usable_python}" >&6; }
8768
8769 ;;
8770 *)
8771 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8772 ;;
8773 esac
8774 elif test "${have_python_config}" != failed; then
8775 if test "${have_libpython}" = no; then
8776
8777 version=python2.7
8778
8779 new_CPPFLAGS=${python_includes}
8780 new_LIBS="${python_libs} -lpython2.7"
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8782 $as_echo_n "checking for ${version}... " >&6; }
8783 save_CPPFLAGS=$CPPFLAGS
8784 save_LIBS=$LIBS
8785 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8786 LIBS="$LIBS $new_LIBS"
8787 found_usable_python=no
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 #include "Python.h"
8791 int
8792 main ()
8793 {
8794 Py_Initialize ();
8795 ;
8796 return 0;
8797 }
8798 _ACEOF
8799 if ac_fn_c_try_link "$LINENO"; then :
8800 have_libpython=${version}
8801 found_usable_python=yes
8802 PYTHON_CPPFLAGS=$new_CPPFLAGS
8803 PYTHON_LIBS=$new_LIBS
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8807 CPPFLAGS=$save_CPPFLAGS
8808 LIBS=$save_LIBS
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8810 $as_echo "${found_usable_python}" >&6; }
8811
8812 fi
8813 if test "${have_libpython}" = no; then
8814
8815 version=python2.6
8816
8817 new_CPPFLAGS=${python_includes}
8818 new_LIBS="${python_libs} -lpython2.6"
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8820 $as_echo_n "checking for ${version}... " >&6; }
8821 save_CPPFLAGS=$CPPFLAGS
8822 save_LIBS=$LIBS
8823 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8824 LIBS="$LIBS $new_LIBS"
8825 found_usable_python=no
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8828 #include "Python.h"
8829 int
8830 main ()
8831 {
8832 Py_Initialize ();
8833 ;
8834 return 0;
8835 }
8836 _ACEOF
8837 if ac_fn_c_try_link "$LINENO"; then :
8838 have_libpython=${version}
8839 found_usable_python=yes
8840 PYTHON_CPPFLAGS=$new_CPPFLAGS
8841 PYTHON_LIBS=$new_LIBS
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
8845 CPPFLAGS=$save_CPPFLAGS
8846 LIBS=$save_LIBS
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8848 $as_echo "${found_usable_python}" >&6; }
8849
8850 fi
8851 if test ${have_libpython} = no; then
8852
8853 version=python2.5
8854
8855 new_CPPFLAGS=${python_includes}
8856 new_LIBS="${python_libs} -lpython2.5"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8858 $as_echo_n "checking for ${version}... " >&6; }
8859 save_CPPFLAGS=$CPPFLAGS
8860 save_LIBS=$LIBS
8861 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8862 LIBS="$LIBS $new_LIBS"
8863 found_usable_python=no
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #include "Python.h"
8867 int
8868 main ()
8869 {
8870 Py_Initialize ();
8871 ;
8872 return 0;
8873 }
8874 _ACEOF
8875 if ac_fn_c_try_link "$LINENO"; then :
8876 have_libpython=${version}
8877 found_usable_python=yes
8878 PYTHON_CPPFLAGS=$new_CPPFLAGS
8879 PYTHON_LIBS=$new_LIBS
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883 CPPFLAGS=$save_CPPFLAGS
8884 LIBS=$save_LIBS
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8886 $as_echo "${found_usable_python}" >&6; }
8887
8888 fi
8889 if test ${have_libpython} = no; then
8890
8891 version=python2.4
8892
8893 new_CPPFLAGS=${python_includes}
8894 new_LIBS="${python_libs} -lpython2.4"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8896 $as_echo_n "checking for ${version}... " >&6; }
8897 save_CPPFLAGS=$CPPFLAGS
8898 save_LIBS=$LIBS
8899 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8900 LIBS="$LIBS $new_LIBS"
8901 found_usable_python=no
8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904 #include "Python.h"
8905 int
8906 main ()
8907 {
8908 Py_Initialize ();
8909 ;
8910 return 0;
8911 }
8912 _ACEOF
8913 if ac_fn_c_try_link "$LINENO"; then :
8914 have_libpython=${version}
8915 found_usable_python=yes
8916 PYTHON_CPPFLAGS=$new_CPPFLAGS
8917 PYTHON_LIBS=$new_LIBS
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 CPPFLAGS=$save_CPPFLAGS
8922 LIBS=$save_LIBS
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8924 $as_echo "${found_usable_python}" >&6; }
8925
8926 fi
8927 fi
8928 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8929
8930 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8931
8932 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8933
8934 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8935
8936 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8937
8938 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8939
8940 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8941
8942 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8943
8944 fi
8945
8946 if test "${have_libpython}" = no; then
8947 case "${with_python}" in
8948 yes)
8949 as_fn_error "python is missing or unusable" "$LINENO" 5
8950 ;;
8951 auto)
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8953 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8954 ;;
8955 *)
8956 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8957 ;;
8958 esac
8959 else
8960 if test -n "${python_prefix}"; then
8961
8962 cat >>confdefs.h <<_ACEOF
8963 #define WITH_PYTHON_PATH "${python_prefix}"
8964 _ACEOF
8965
8966
8967 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8968 if test "x$prefix" = xNONE; then
8969 test_prefix=/usr/local
8970 else
8971 test_prefix=$prefix
8972 fi
8973 else
8974 test_prefix=$exec_prefix
8975 fi
8976 value=0
8977 case ${python_prefix} in
8978 "${test_prefix}"|"${test_prefix}/"*|\
8979 '${exec_prefix}'|'${exec_prefix}/'*)
8980 value=1
8981 ;;
8982 esac
8983
8984 cat >>confdefs.h <<_ACEOF
8985 #define PYTHON_PATH_RELOCATABLE $value
8986 _ACEOF
8987
8988
8989 fi
8990 fi
8991 fi
8992
8993 if test "${have_libpython}" != no; then
8994
8995 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8996
8997 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8998 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8999 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9000 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
9001 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9002
9003 # Flags needed to compile Python code (taken from python-config --cflags).
9004 # We cannot call python-config directly because it will output whatever was
9005 # used when compiling the Python interpreter itself, including flags which
9006 # would make the python-related objects be compiled differently from the
9007 # rest of GDB (e.g., -O2 and -fPIC).
9008 if test "${GCC}" = yes; then
9009 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9010 fi
9011
9012 if test "x${tentative_python_cflags}" != x; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9014 $as_echo_n "checking compiler flags for python code... " >&6; }
9015 for flag in ${tentative_python_cflags}; do
9016 # Check that the compiler accepts it
9017 saved_CFLAGS="$CFLAGS"
9018 CFLAGS="$CFLAGS $flag"
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021
9022 int
9023 main ()
9024 {
9025
9026 ;
9027 return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_compile "$LINENO"; then :
9031 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 CFLAGS="$saved_CFLAGS"
9035 done
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9037 $as_echo "${PYTHON_CFLAGS}" >&6; }
9038 fi
9039
9040 # On x64 Windows, Python's include headers, and pyconfig.h in
9041 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9042 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9043 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9044 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9045 # The issue was reported to the Python community, but still isn't
9046 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9047
9048 case "$gdb_host" in
9049 mingw64)
9050 if test "${GCC}" = yes; then
9051 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
9052 fi
9053 ;;
9054 esac
9055
9056 # Note that "python -m threading" cannot be used to check for
9057 # threading support due to a bug in Python 2.7.3
9058 # (http://bugs.python.org/issue15567).
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9060 $as_echo_n "checking whether python supports threads... " >&6; }
9061 saved_CPPFLAGS="${CPPFLAGS}"
9062 CPPFLAGS="${PYTHON_CPPFLAGS}"
9063 # Note that the test is reversed so that python_has_threads=yes on
9064 # unexpected failures.
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9067
9068 #include <Python.h>
9069 #ifdef WITH_THREAD
9070 # error
9071 #endif
9072
9073 _ACEOF
9074 if ac_fn_c_try_cpp "$LINENO"; then :
9075 python_has_threads=no
9076 else
9077 python_has_threads=yes
9078 fi
9079 rm -f conftest.err conftest.$ac_ext
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9081 $as_echo "${python_has_threads}" >&6; }
9082 CPPFLAGS="${saved_CPPFLAGS}"
9083 else
9084 # Even if Python support is not compiled in, we need to have this file
9085 # included so that the "python" command, et.al., still exists.
9086 CONFIG_OBS="$CONFIG_OBS python.o"
9087 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
9088 fi
9089
9090
9091
9092 if test "${have_libpython}" != no; then
9093 HAVE_PYTHON_TRUE=
9094 HAVE_PYTHON_FALSE='#'
9095 else
9096 HAVE_PYTHON_TRUE='#'
9097 HAVE_PYTHON_FALSE=
9098 fi
9099
9100
9101 # -------------------- #
9102 # Check for libguile. #
9103 # -------------------- #
9104
9105
9106
9107
9108
9109
9110 # Check whether --with-guile was given.
9111 if test "${with_guile+set}" = set; then :
9112 withval=$with_guile;
9113 else
9114 with_guile=auto
9115 fi
9116
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9118 $as_echo_n "checking whether to use guile... " >&6; }
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9120 $as_echo "$with_guile" >&6; }
9121
9122 # Extract the first word of "pkg-config", so it can be a program name with args.
9123 set dummy pkg-config; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 case $pkg_config_prog_path in
9130 [\\/]* | ?:[\\/]*)
9131 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
9132 ;;
9133 *)
9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 for as_dir in $PATH
9136 do
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
9140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9141 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 break 2
9144 fi
9145 done
9146 done
9147 IFS=$as_save_IFS
9148
9149 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
9150 ;;
9151 esac
9152 fi
9153 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
9154 if test -n "$pkg_config_prog_path"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9156 $as_echo "$pkg_config_prog_path" >&6; }
9157 else
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159 $as_echo "no" >&6; }
9160 fi
9161
9162
9163
9164 try_guile_versions="guile-2.2 guile-2.0"
9165 have_libguile=no
9166 case "${with_guile}" in
9167 no)
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9169 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9170 ;;
9171 auto)
9172 if test "${pkg_config_prog_path}" = "missing"; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9174 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9175 else
9176
9177 pkg_config=${pkg_config_prog_path}
9178 guile_version_list=${try_guile_versions}
9179 flag_errors=no
9180
9181 found_usable_guile=checking
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9183 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9184 for guile_version in ${guile_version_list}; do
9185 ${pkg_config} --exists ${guile_version} 2>/dev/null
9186 if test $? != 0; then
9187 continue
9188 fi
9189 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9190 if test $? != 0; then
9191 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9192 fi
9193 new_LIBS=`${pkg_config} --libs ${guile_version}`
9194 if test $? != 0; then
9195 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9196 fi
9197 found_usable_guile=${guile_version}
9198 break
9199 done
9200 if test "${found_usable_guile}" = "checking"; then
9201 if test "${flag_errors}" = "yes"; then
9202 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9203 else
9204 found_usable_guile=no
9205 fi
9206 fi
9207 if test "${found_usable_guile}" != no; then
9208 save_CPPFLAGS=$CPPFLAGS
9209 save_LIBS=$LIBS
9210 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9211 LIBS="$LIBS $new_LIBS"
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #include "libguile.h"
9215 int
9216 main ()
9217 {
9218 scm_init_guile ();
9219 ;
9220 return 0;
9221 }
9222 _ACEOF
9223 if ac_fn_c_try_link "$LINENO"; then :
9224 have_libguile=yes
9225 GUILE_CPPFLAGS=$new_CPPFLAGS
9226 GUILE_LIBS=$new_LIBS
9227 else
9228 found_usable_guile=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9233 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9234
9235 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9236
9237
9238 fi
9239
9240 CPPFLAGS=$save_CPPFLAGS
9241 LIBS=$save_LIBS
9242 if test "${found_usable_guile}" = no; then
9243 if test "${flag_errors}" = yes; then
9244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9246 as_fn_error "linking guile version ${guile_version} test program failed
9247 See \`config.log' for more details." "$LINENO" 5; }
9248 fi
9249 fi
9250 fi
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9252 $as_echo "${found_usable_guile}" >&6; }
9253
9254 fi
9255 ;;
9256 yes)
9257 if test "${pkg_config_prog_path}" = "missing"; then
9258 as_fn_error "pkg-config not found" "$LINENO" 5
9259 fi
9260
9261 pkg_config=${pkg_config_prog_path}
9262 guile_version_list=${try_guile_versions}
9263 flag_errors=yes
9264
9265 found_usable_guile=checking
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9267 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9268 for guile_version in ${guile_version_list}; do
9269 ${pkg_config} --exists ${guile_version} 2>/dev/null
9270 if test $? != 0; then
9271 continue
9272 fi
9273 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9274 if test $? != 0; then
9275 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9276 fi
9277 new_LIBS=`${pkg_config} --libs ${guile_version}`
9278 if test $? != 0; then
9279 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9280 fi
9281 found_usable_guile=${guile_version}
9282 break
9283 done
9284 if test "${found_usable_guile}" = "checking"; then
9285 if test "${flag_errors}" = "yes"; then
9286 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9287 else
9288 found_usable_guile=no
9289 fi
9290 fi
9291 if test "${found_usable_guile}" != no; then
9292 save_CPPFLAGS=$CPPFLAGS
9293 save_LIBS=$LIBS
9294 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9295 LIBS="$LIBS $new_LIBS"
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 #include "libguile.h"
9299 int
9300 main ()
9301 {
9302 scm_init_guile ();
9303 ;
9304 return 0;
9305 }
9306 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then :
9308 have_libguile=yes
9309 GUILE_CPPFLAGS=$new_CPPFLAGS
9310 GUILE_LIBS=$new_LIBS
9311 else
9312 found_usable_guile=no
9313 fi
9314 rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9317 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9318
9319 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9320
9321
9322 fi
9323
9324 CPPFLAGS=$save_CPPFLAGS
9325 LIBS=$save_LIBS
9326 if test "${found_usable_guile}" = no; then
9327 if test "${flag_errors}" = yes; then
9328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9330 as_fn_error "linking guile version ${guile_version} test program failed
9331 See \`config.log' for more details." "$LINENO" 5; }
9332 fi
9333 fi
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9336 $as_echo "${found_usable_guile}" >&6; }
9337
9338 ;;
9339 [\\/]* | ?:[\\/]*)
9340 if test -x "${with_guile}"; then
9341
9342 pkg_config=${with_guile}
9343 guile_version_list=${try_guile_versions}
9344 flag_errors=yes
9345
9346 found_usable_guile=checking
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9348 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9349 for guile_version in ${guile_version_list}; do
9350 ${pkg_config} --exists ${guile_version} 2>/dev/null
9351 if test $? != 0; then
9352 continue
9353 fi
9354 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9355 if test $? != 0; then
9356 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9357 fi
9358 new_LIBS=`${pkg_config} --libs ${guile_version}`
9359 if test $? != 0; then
9360 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9361 fi
9362 found_usable_guile=${guile_version}
9363 break
9364 done
9365 if test "${found_usable_guile}" = "checking"; then
9366 if test "${flag_errors}" = "yes"; then
9367 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9368 else
9369 found_usable_guile=no
9370 fi
9371 fi
9372 if test "${found_usable_guile}" != no; then
9373 save_CPPFLAGS=$CPPFLAGS
9374 save_LIBS=$LIBS
9375 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9376 LIBS="$LIBS $new_LIBS"
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 #include "libguile.h"
9380 int
9381 main ()
9382 {
9383 scm_init_guile ();
9384 ;
9385 return 0;
9386 }
9387 _ACEOF
9388 if ac_fn_c_try_link "$LINENO"; then :
9389 have_libguile=yes
9390 GUILE_CPPFLAGS=$new_CPPFLAGS
9391 GUILE_LIBS=$new_LIBS
9392 else
9393 found_usable_guile=no
9394 fi
9395 rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9398 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9399
9400 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9401
9402
9403 fi
9404
9405 CPPFLAGS=$save_CPPFLAGS
9406 LIBS=$save_LIBS
9407 if test "${found_usable_guile}" = no; then
9408 if test "${flag_errors}" = yes; then
9409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9411 as_fn_error "linking guile version ${guile_version} test program failed
9412 See \`config.log' for more details." "$LINENO" 5; }
9413 fi
9414 fi
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9417 $as_echo "${found_usable_guile}" >&6; }
9418
9419 else
9420 as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
9421 fi
9422 ;;
9423 "" | */*)
9424 # Disallow --with=guile="" and --with-guile=foo/bar.
9425 as_fn_error "invalid value for --with-guile" "$LINENO" 5
9426 ;;
9427 *)
9428 # A space separate list of guile versions to try, in order.
9429 if test "${pkg_config_prog_path}" = "missing"; then
9430 as_fn_error "pkg-config not found" "$LINENO" 5
9431 fi
9432
9433 pkg_config=${pkg_config_prog_path}
9434 guile_version_list=${with_guile}
9435 flag_errors=yes
9436
9437 found_usable_guile=checking
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9439 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9440 for guile_version in ${guile_version_list}; do
9441 ${pkg_config} --exists ${guile_version} 2>/dev/null
9442 if test $? != 0; then
9443 continue
9444 fi
9445 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9446 if test $? != 0; then
9447 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9448 fi
9449 new_LIBS=`${pkg_config} --libs ${guile_version}`
9450 if test $? != 0; then
9451 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9452 fi
9453 found_usable_guile=${guile_version}
9454 break
9455 done
9456 if test "${found_usable_guile}" = "checking"; then
9457 if test "${flag_errors}" = "yes"; then
9458 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9459 else
9460 found_usable_guile=no
9461 fi
9462 fi
9463 if test "${found_usable_guile}" != no; then
9464 save_CPPFLAGS=$CPPFLAGS
9465 save_LIBS=$LIBS
9466 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9467 LIBS="$LIBS $new_LIBS"
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 #include "libguile.h"
9471 int
9472 main ()
9473 {
9474 scm_init_guile ();
9475 ;
9476 return 0;
9477 }
9478 _ACEOF
9479 if ac_fn_c_try_link "$LINENO"; then :
9480 have_libguile=yes
9481 GUILE_CPPFLAGS=$new_CPPFLAGS
9482 GUILE_LIBS=$new_LIBS
9483 else
9484 found_usable_guile=no
9485 fi
9486 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9489 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9490
9491 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9492
9493
9494 fi
9495
9496 CPPFLAGS=$save_CPPFLAGS
9497 LIBS=$save_LIBS
9498 if test "${found_usable_guile}" = no; then
9499 if test "${flag_errors}" = yes; then
9500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9502 as_fn_error "linking guile version ${guile_version} test program failed
9503 See \`config.log' for more details." "$LINENO" 5; }
9504 fi
9505 fi
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9508 $as_echo "${found_usable_guile}" >&6; }
9509
9510 ;;
9511 esac
9512
9513 if test "${have_libguile}" != no; then
9514 case "${with_guile}" in
9515 [\\/]* | ?:[\\/]*)
9516
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9518 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9519 if test "${ac_cv_guild_program_name+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
9523
9524 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9525 # the 'guild' and 'bindir' variables. In that case, try to guess
9526 # what the program name is, at the risk of getting it wrong if
9527 # Guile was configured with '--program-suffix' or similar.
9528 if test "x$ac_cv_guild_program_name" = "x"; then
9529 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9530 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9531 fi
9532
9533 fi
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9535 $as_echo "$ac_cv_guild_program_name" >&6; }
9536
9537 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9538 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9539 fi
9540
9541 GUILD="$ac_cv_guild_program_name"
9542
9543
9544 ;;
9545 *)
9546
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9548 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9549 if test "${ac_cv_guild_program_name+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9553
9554 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9555 # the 'guild' and 'bindir' variables. In that case, try to guess
9556 # what the program name is, at the risk of getting it wrong if
9557 # Guile was configured with '--program-suffix' or similar.
9558 if test "x$ac_cv_guild_program_name" = "x"; then
9559 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9560 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9561 fi
9562
9563 fi
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9565 $as_echo "$ac_cv_guild_program_name" >&6; }
9566
9567 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9568 as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9569 fi
9570
9571 GUILD="$ac_cv_guild_program_name"
9572
9573
9574 ;;
9575 esac
9576
9577
9578 if test "$cross_compiling" = no; then
9579 GUILD_TARGET_FLAG=
9580 else
9581 GUILD_TARGET_FLAG="--target=$host"
9582 fi
9583
9584
9585
9586
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9588 $as_echo_n "checking whether guild supports this host... " >&6; }
9589 if test "${ac_cv_guild_ok+set}" = set; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9593 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9594 ac_cv_guild_ok=yes
9595 else
9596 ac_cv_guild_ok=no
9597 fi
9598 fi
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9600 $as_echo "$ac_cv_guild_ok" >&6; }
9601
9602 if test "$ac_cv_guild_ok" = no; then
9603 have_libguile=no
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9605 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9606 fi
9607 fi
9608
9609 if test "${have_libguile}" != no; then
9610
9611 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9612
9613 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9614 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9615 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9616 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9617 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9618
9619 save_LIBS="$LIBS"
9620 save_CPPFLAGS="$CPPFLAGS"
9621 LIBS="$GUILE_LIBS"
9622 CPPFLAGS="$GUILE_CPPFLAGS"
9623 for ac_func in scm_new_smob
9624 do :
9625 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9626 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
9627 cat >>confdefs.h <<_ACEOF
9628 #define HAVE_SCM_NEW_SMOB 1
9629 _ACEOF
9630
9631 fi
9632 done
9633
9634 LIBS="$save_LIBS"
9635 CPPFLAGS="$save_CPPFLAGS"
9636 else
9637 # Even if Guile support is not compiled in, we need to have these files
9638 # included.
9639 CONFIG_OBS="$CONFIG_OBS guile.o"
9640 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
9641 fi
9642
9643
9644 if test "${have_libguile}" != no; then
9645 HAVE_GUILE_TRUE=
9646 HAVE_GUILE_FALSE='#'
9647 else
9648 HAVE_GUILE_TRUE='#'
9649 HAVE_GUILE_FALSE=
9650 fi
9651
9652
9653 # --------------------- #
9654 # Check for libmcheck. #
9655 # --------------------- #
9656
9657 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9658 # but turn it off if Python is enabled with threads, since -lmcheck is
9659 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9660 # and for releases.
9661 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
9662 && $development; then
9663 libmcheck_default=yes
9664 else
9665 libmcheck_default=no
9666 fi
9667
9668 # Check whether --enable-libmcheck was given.
9669 if test "${enable_libmcheck+set}" = set; then :
9670 enableval=$enable_libmcheck; case "${enableval}" in
9671 yes | y) ENABLE_LIBMCHECK="yes" ;;
9672 no | n) ENABLE_LIBMCHECK="no" ;;
9673 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9674 esac
9675 fi
9676
9677
9678 if test -z "${ENABLE_LIBMCHECK}"; then
9679 ENABLE_LIBMCHECK=${libmcheck_default}
9680 fi
9681
9682 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9684 $as_echo_n "checking for main in -lmcheck... " >&6; }
9685 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 ac_check_lib_save_LIBS=$LIBS
9689 LIBS="-lmcheck $LIBS"
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692
9693
9694 int
9695 main ()
9696 {
9697 return main ();
9698 ;
9699 return 0;
9700 }
9701 _ACEOF
9702 if ac_fn_c_try_link "$LINENO"; then :
9703 ac_cv_lib_mcheck_main=yes
9704 else
9705 ac_cv_lib_mcheck_main=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext conftest.$ac_ext
9709 LIBS=$ac_check_lib_save_LIBS
9710 fi
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9712 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9713 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
9714 cat >>confdefs.h <<_ACEOF
9715 #define HAVE_LIBMCHECK 1
9716 _ACEOF
9717
9718 LIBS="-lmcheck $LIBS"
9719
9720 fi
9721
9722 fi
9723
9724
9725 if test "$ENABLE_LIBMCHECK" = "yes" \
9726 -a "${have_libpython}" != "no" \
9727 -a "${python_has_threads}" = "yes" ; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9729 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9730 fi
9731
9732 # ------------------------- #
9733 # Checks for header files. #
9734 # ------------------------- #
9735
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9737 $as_echo_n "checking for ANSI C header files... " >&6; }
9738 if test "${ac_cv_header_stdc+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743 #include <stdlib.h>
9744 #include <stdarg.h>
9745 #include <string.h>
9746 #include <float.h>
9747
9748 int
9749 main ()
9750 {
9751
9752 ;
9753 return 0;
9754 }
9755 _ACEOF
9756 if ac_fn_c_try_compile "$LINENO"; then :
9757 ac_cv_header_stdc=yes
9758 else
9759 ac_cv_header_stdc=no
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762
9763 if test $ac_cv_header_stdc = yes; then
9764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 #include <string.h>
9768
9769 _ACEOF
9770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9771 $EGREP "memchr" >/dev/null 2>&1; then :
9772
9773 else
9774 ac_cv_header_stdc=no
9775 fi
9776 rm -f conftest*
9777
9778 fi
9779
9780 if test $ac_cv_header_stdc = yes; then
9781 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 #include <stdlib.h>
9785
9786 _ACEOF
9787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9788 $EGREP "free" >/dev/null 2>&1; then :
9789
9790 else
9791 ac_cv_header_stdc=no
9792 fi
9793 rm -f conftest*
9794
9795 fi
9796
9797 if test $ac_cv_header_stdc = yes; then
9798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9799 if test "$cross_compiling" = yes; then :
9800 :
9801 else
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 #include <ctype.h>
9805 #include <stdlib.h>
9806 #if ((' ' & 0x0FF) == 0x020)
9807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9809 #else
9810 # define ISLOWER(c) \
9811 (('a' <= (c) && (c) <= 'i') \
9812 || ('j' <= (c) && (c) <= 'r') \
9813 || ('s' <= (c) && (c) <= 'z'))
9814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9815 #endif
9816
9817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9818 int
9819 main ()
9820 {
9821 int i;
9822 for (i = 0; i < 256; i++)
9823 if (XOR (islower (i), ISLOWER (i))
9824 || toupper (i) != TOUPPER (i))
9825 return 2;
9826 return 0;
9827 }
9828 _ACEOF
9829 if ac_fn_c_try_run "$LINENO"; then :
9830
9831 else
9832 ac_cv_header_stdc=no
9833 fi
9834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9835 conftest.$ac_objext conftest.beam conftest.$ac_ext
9836 fi
9837
9838 fi
9839 fi
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9841 $as_echo "$ac_cv_header_stdc" >&6; }
9842 if test $ac_cv_header_stdc = yes; then
9843
9844 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9845
9846 fi
9847
9848 # elf_hp.h is for HP/UX 64-bit shared library support.
9849 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
9850 thread_db.h \
9851 sys/fault.h \
9852 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
9853 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
9854 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
9855 termios.h termio.h \
9856 sgtty.h elf_hp.h \
9857 dlfcn.h
9858 do :
9859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9860 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9861 eval as_val=\$$as_ac_Header
9862 if test "x$as_val" = x""yes; then :
9863 cat >>confdefs.h <<_ACEOF
9864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9865 _ACEOF
9866
9867 fi
9868
9869 done
9870
9871 for ac_header in sys/proc.h
9872 do :
9873 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9874 # include <sys/param.h>
9875 #endif
9876
9877 "
9878 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
9879 cat >>confdefs.h <<_ACEOF
9880 #define HAVE_SYS_PROC_H 1
9881 _ACEOF
9882
9883 fi
9884
9885 done
9886
9887 for ac_header in sys/user.h
9888 do :
9889 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9890 # include <sys/param.h>
9891 #endif
9892
9893 "
9894 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
9895 cat >>confdefs.h <<_ACEOF
9896 #define HAVE_SYS_USER_H 1
9897 _ACEOF
9898
9899 fi
9900
9901 done
9902
9903
9904 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9905 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9906 # think that we don't have <curses.h> if we're using GCC.
9907 case $host_os in
9908 solaris2.[789])
9909 if test "$GCC" = yes; then
9910
9911 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9912
9913 fi ;;
9914 esac
9915 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
9916 do :
9917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9918 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9919 eval as_val=\$$as_ac_Header
9920 if test "x$as_val" = x""yes; then :
9921 cat >>confdefs.h <<_ACEOF
9922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9923 _ACEOF
9924
9925 fi
9926
9927 done
9928
9929 for ac_header in term.h
9930 do :
9931 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9932 # include <curses.h>
9933 #endif
9934
9935 "
9936 if test "x$ac_cv_header_term_h" = x""yes; then :
9937 cat >>confdefs.h <<_ACEOF
9938 #define HAVE_TERM_H 1
9939 _ACEOF
9940
9941 fi
9942
9943 done
9944
9945
9946 # ------------------------- #
9947 # Checks for declarations. #
9948 # ------------------------- #
9949
9950
9951 # Check for presence and size of long long.
9952 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9953 if test "x$ac_cv_type_long_long" = x""yes; then :
9954
9955 cat >>confdefs.h <<_ACEOF
9956 #define HAVE_LONG_LONG 1
9957 _ACEOF
9958
9959 # The cast to long int works around a bug in the HP C Compiler
9960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9962 # This bug is HP SR number 8606223364.
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9964 $as_echo_n "checking size of long long... " >&6; }
9965 if test "${ac_cv_sizeof_long_long+set}" = set; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9969
9970 else
9971 if test "$ac_cv_type_long_long" = yes; then
9972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9974 { as_fn_set_status 77
9975 as_fn_error "cannot compute sizeof (long long)
9976 See \`config.log' for more details." "$LINENO" 5; }; }
9977 else
9978 ac_cv_sizeof_long_long=0
9979 fi
9980 fi
9981
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9984 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9985
9986
9987
9988 cat >>confdefs.h <<_ACEOF
9989 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9990 _ACEOF
9991
9992
9993 fi
9994
9995
9996 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
9997 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
9998 ac_have_decl=1
9999 else
10000 ac_have_decl=0
10001 fi
10002
10003 cat >>confdefs.h <<_ACEOF
10004 #define HAVE_DECL_BASENAME $ac_have_decl
10005 _ACEOF
10006 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10007 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
10008 ac_have_decl=1
10009 else
10010 ac_have_decl=0
10011 fi
10012
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_DECL_FFS $ac_have_decl
10015 _ACEOF
10016 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10017 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
10018 ac_have_decl=1
10019 else
10020 ac_have_decl=0
10021 fi
10022
10023 cat >>confdefs.h <<_ACEOF
10024 #define HAVE_DECL_ASPRINTF $ac_have_decl
10025 _ACEOF
10026 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10027 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
10028 ac_have_decl=1
10029 else
10030 ac_have_decl=0
10031 fi
10032
10033 cat >>confdefs.h <<_ACEOF
10034 #define HAVE_DECL_VASPRINTF $ac_have_decl
10035 _ACEOF
10036 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10037 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10038 ac_have_decl=1
10039 else
10040 ac_have_decl=0
10041 fi
10042
10043 cat >>confdefs.h <<_ACEOF
10044 #define HAVE_DECL_SNPRINTF $ac_have_decl
10045 _ACEOF
10046 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10047 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10048 ac_have_decl=1
10049 else
10050 ac_have_decl=0
10051 fi
10052
10053 cat >>confdefs.h <<_ACEOF
10054 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10055 _ACEOF
10056
10057 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10058 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
10059 ac_have_decl=1
10060 else
10061 ac_have_decl=0
10062 fi
10063
10064 cat >>confdefs.h <<_ACEOF
10065 #define HAVE_DECL_STRTOL $ac_have_decl
10066 _ACEOF
10067 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10068 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
10069 ac_have_decl=1
10070 else
10071 ac_have_decl=0
10072 fi
10073
10074 cat >>confdefs.h <<_ACEOF
10075 #define HAVE_DECL_STRTOUL $ac_have_decl
10076 _ACEOF
10077 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10078 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
10079 ac_have_decl=1
10080 else
10081 ac_have_decl=0
10082 fi
10083
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_DECL_STRTOLL $ac_have_decl
10086 _ACEOF
10087 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10088 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
10089 ac_have_decl=1
10090 else
10091 ac_have_decl=0
10092 fi
10093
10094 cat >>confdefs.h <<_ACEOF
10095 #define HAVE_DECL_STRTOULL $ac_have_decl
10096 _ACEOF
10097
10098 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10099 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
10100 ac_have_decl=1
10101 else
10102 ac_have_decl=0
10103 fi
10104
10105 cat >>confdefs.h <<_ACEOF
10106 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10107 _ACEOF
10108
10109
10110
10111 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10112 if test "x$ac_cv_have_decl_free" = x""yes; then :
10113 ac_have_decl=1
10114 else
10115 ac_have_decl=0
10116 fi
10117
10118 cat >>confdefs.h <<_ACEOF
10119 #define HAVE_DECL_FREE $ac_have_decl
10120 _ACEOF
10121 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10122 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10123 ac_have_decl=1
10124 else
10125 ac_have_decl=0
10126 fi
10127
10128 cat >>confdefs.h <<_ACEOF
10129 #define HAVE_DECL_MALLOC $ac_have_decl
10130 _ACEOF
10131 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10132 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10133 ac_have_decl=1
10134 else
10135 ac_have_decl=0
10136 fi
10137
10138 cat >>confdefs.h <<_ACEOF
10139 #define HAVE_DECL_REALLOC $ac_have_decl
10140 _ACEOF
10141 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10142 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10143 ac_have_decl=1
10144 else
10145 ac_have_decl=0
10146 fi
10147
10148 cat >>confdefs.h <<_ACEOF
10149 #define HAVE_DECL_SNPRINTF $ac_have_decl
10150 _ACEOF
10151
10152
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10154 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10155 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10160 #include <locale.h>
10161 int
10162 main ()
10163 {
10164 return LC_MESSAGES
10165 ;
10166 return 0;
10167 }
10168 _ACEOF
10169 if ac_fn_c_try_link "$LINENO"; then :
10170 am_cv_val_LC_MESSAGES=yes
10171 else
10172 am_cv_val_LC_MESSAGES=no
10173 fi
10174 rm -f core conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 fi
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10178 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10179 if test $am_cv_val_LC_MESSAGES = yes; then
10180
10181 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10182
10183 fi
10184
10185
10186 # ----------------------- #
10187 # Checks for structures. #
10188 # ----------------------- #
10189
10190 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10191 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
10192
10193 cat >>confdefs.h <<_ACEOF
10194 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10195 _ACEOF
10196
10197
10198 fi
10199 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10200 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
10201
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10204 _ACEOF
10205
10206
10207 fi
10208
10209
10210 # ------------------ #
10211 # Checks for types. #
10212 # ------------------ #
10213
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10215 $as_echo_n "checking return type of signal handlers... " >&6; }
10216 if test "${ac_cv_type_signal+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 #include <sys/types.h>
10222 #include <signal.h>
10223
10224 int
10225 main ()
10226 {
10227 return *(signal (0, 0)) (0) == 1;
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_compile "$LINENO"; then :
10233 ac_cv_type_signal=int
10234 else
10235 ac_cv_type_signal=void
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10238 fi
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10240 $as_echo "$ac_cv_type_signal" >&6; }
10241
10242 cat >>confdefs.h <<_ACEOF
10243 #define RETSIGTYPE $ac_cv_type_signal
10244 _ACEOF
10245
10246
10247 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10248 #include <sys/socket.h>
10249
10250 "
10251 if test "x$ac_cv_type_socklen_t" = x""yes; then :
10252
10253 cat >>confdefs.h <<_ACEOF
10254 #define HAVE_SOCKLEN_T 1
10255 _ACEOF
10256
10257
10258 fi
10259
10260
10261 # ------------------------------------- #
10262 # Checks for compiler characteristics. #
10263 # ------------------------------------- #
10264
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10266 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10267 if test "${ac_cv_c_const+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272
10273 int
10274 main ()
10275 {
10276 /* FIXME: Include the comments suggested by Paul. */
10277 #ifndef __cplusplus
10278 /* Ultrix mips cc rejects this. */
10279 typedef int charset[2];
10280 const charset cs;
10281 /* SunOS 4.1.1 cc rejects this. */
10282 char const *const *pcpcc;
10283 char **ppc;
10284 /* NEC SVR4.0.2 mips cc rejects this. */
10285 struct point {int x, y;};
10286 static struct point const zero = {0,0};
10287 /* AIX XL C 1.02.0.0 rejects this.
10288 It does not let you subtract one const X* pointer from another in
10289 an arm of an if-expression whose if-part is not a constant
10290 expression */
10291 const char *g = "string";
10292 pcpcc = &g + (g ? g-g : 0);
10293 /* HPUX 7.0 cc rejects these. */
10294 ++pcpcc;
10295 ppc = (char**) pcpcc;
10296 pcpcc = (char const *const *) ppc;
10297 { /* SCO 3.2v4 cc rejects this. */
10298 char *t;
10299 char const *s = 0 ? (char *) 0 : (char const *) 0;
10300
10301 *t++ = 0;
10302 if (s) return 0;
10303 }
10304 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10305 int x[] = {25, 17};
10306 const int *foo = &x[0];
10307 ++foo;
10308 }
10309 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10310 typedef const int *iptr;
10311 iptr p = 0;
10312 ++p;
10313 }
10314 { /* AIX XL C 1.02.0.0 rejects this saying
10315 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10316 struct s { int j; const int *ap[3]; };
10317 struct s *b; b->j = 5;
10318 }
10319 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10320 const int foo = 10;
10321 if (!foo) return 0;
10322 }
10323 return !cs[0] && !zero.x;
10324 #endif
10325
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_compile "$LINENO"; then :
10331 ac_cv_c_const=yes
10332 else
10333 ac_cv_c_const=no
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10338 $as_echo "$ac_cv_c_const" >&6; }
10339 if test $ac_cv_c_const = no; then
10340
10341 $as_echo "#define const /**/" >>confdefs.h
10342
10343 fi
10344
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10346 $as_echo_n "checking for inline... " >&6; }
10347 if test "${ac_cv_c_inline+set}" = set; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 ac_cv_c_inline=no
10351 for ac_kw in inline __inline__ __inline; do
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354 #ifndef __cplusplus
10355 typedef int foo_t;
10356 static $ac_kw foo_t static_foo () {return 0; }
10357 $ac_kw foo_t foo () {return 0; }
10358 #endif
10359
10360 _ACEOF
10361 if ac_fn_c_try_compile "$LINENO"; then :
10362 ac_cv_c_inline=$ac_kw
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 test "$ac_cv_c_inline" != no && break
10366 done
10367
10368 fi
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10370 $as_echo "$ac_cv_c_inline" >&6; }
10371
10372 case $ac_cv_c_inline in
10373 inline | yes) ;;
10374 *)
10375 case $ac_cv_c_inline in
10376 no) ac_val=;;
10377 *) ac_val=$ac_cv_c_inline;;
10378 esac
10379 cat >>confdefs.h <<_ACEOF
10380 #ifndef __cplusplus
10381 #define inline $ac_val
10382 #endif
10383 _ACEOF
10384 ;;
10385 esac
10386
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10388 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10389 if test "${ac_cv_c_bigendian+set}" = set; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 ac_cv_c_bigendian=unknown
10393 # See if we're dealing with a universal compiler.
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #ifndef __APPLE_CC__
10397 not a universal capable compiler
10398 #endif
10399 typedef int dummy;
10400
10401 _ACEOF
10402 if ac_fn_c_try_compile "$LINENO"; then :
10403
10404 # Check for potential -arch flags. It is not universal unless
10405 # there are at least two -arch flags with different values.
10406 ac_arch=
10407 ac_prev=
10408 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10409 if test -n "$ac_prev"; then
10410 case $ac_word in
10411 i?86 | x86_64 | ppc | ppc64)
10412 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10413 ac_arch=$ac_word
10414 else
10415 ac_cv_c_bigendian=universal
10416 break
10417 fi
10418 ;;
10419 esac
10420 ac_prev=
10421 elif test "x$ac_word" = "x-arch"; then
10422 ac_prev=arch
10423 fi
10424 done
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 if test $ac_cv_c_bigendian = unknown; then
10428 # See if sys/param.h defines the BYTE_ORDER macro.
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 #include <sys/types.h>
10432 #include <sys/param.h>
10433
10434 int
10435 main ()
10436 {
10437 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10438 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10439 && LITTLE_ENDIAN)
10440 bogus endian macros
10441 #endif
10442
10443 ;
10444 return 0;
10445 }
10446 _ACEOF
10447 if ac_fn_c_try_compile "$LINENO"; then :
10448 # It does; now see whether it defined to BIG_ENDIAN or not.
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10451 #include <sys/types.h>
10452 #include <sys/param.h>
10453
10454 int
10455 main ()
10456 {
10457 #if BYTE_ORDER != BIG_ENDIAN
10458 not big endian
10459 #endif
10460
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 if ac_fn_c_try_compile "$LINENO"; then :
10466 ac_cv_c_bigendian=yes
10467 else
10468 ac_cv_c_bigendian=no
10469 fi
10470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471 fi
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 fi
10474 if test $ac_cv_c_bigendian = unknown; then
10475 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10478 #include <limits.h>
10479
10480 int
10481 main ()
10482 {
10483 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10484 bogus endian macros
10485 #endif
10486
10487 ;
10488 return 0;
10489 }
10490 _ACEOF
10491 if ac_fn_c_try_compile "$LINENO"; then :
10492 # It does; now see whether it defined to _BIG_ENDIAN or not.
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 #include <limits.h>
10496
10497 int
10498 main ()
10499 {
10500 #ifndef _BIG_ENDIAN
10501 not big endian
10502 #endif
10503
10504 ;
10505 return 0;
10506 }
10507 _ACEOF
10508 if ac_fn_c_try_compile "$LINENO"; then :
10509 ac_cv_c_bigendian=yes
10510 else
10511 ac_cv_c_bigendian=no
10512 fi
10513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516 fi
10517 if test $ac_cv_c_bigendian = unknown; then
10518 # Compile a test program.
10519 if test "$cross_compiling" = yes; then :
10520 # Try to guess by grepping values from an object file.
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523 short int ascii_mm[] =
10524 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10525 short int ascii_ii[] =
10526 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10527 int use_ascii (int i) {
10528 return ascii_mm[i] + ascii_ii[i];
10529 }
10530 short int ebcdic_ii[] =
10531 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10532 short int ebcdic_mm[] =
10533 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10534 int use_ebcdic (int i) {
10535 return ebcdic_mm[i] + ebcdic_ii[i];
10536 }
10537 extern int foo;
10538
10539 int
10540 main ()
10541 {
10542 return use_ascii (foo) == use_ebcdic (foo);
10543 ;
10544 return 0;
10545 }
10546 _ACEOF
10547 if ac_fn_c_try_compile "$LINENO"; then :
10548 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10549 ac_cv_c_bigendian=yes
10550 fi
10551 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10552 if test "$ac_cv_c_bigendian" = unknown; then
10553 ac_cv_c_bigendian=no
10554 else
10555 # finding both strings is unlikely to happen, but who knows?
10556 ac_cv_c_bigendian=unknown
10557 fi
10558 fi
10559 fi
10560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561 else
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 $ac_includes_default
10565 int
10566 main ()
10567 {
10568
10569 /* Are we little or big endian? From Harbison&Steele. */
10570 union
10571 {
10572 long int l;
10573 char c[sizeof (long int)];
10574 } u;
10575 u.l = 1;
10576 return u.c[sizeof (long int) - 1] == 1;
10577
10578 ;
10579 return 0;
10580 }
10581 _ACEOF
10582 if ac_fn_c_try_run "$LINENO"; then :
10583 ac_cv_c_bigendian=no
10584 else
10585 ac_cv_c_bigendian=yes
10586 fi
10587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10588 conftest.$ac_objext conftest.beam conftest.$ac_ext
10589 fi
10590
10591 fi
10592 fi
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10594 $as_echo "$ac_cv_c_bigendian" >&6; }
10595 case $ac_cv_c_bigendian in #(
10596 yes)
10597 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10598 ;; #(
10599 no)
10600 ;; #(
10601 universal)
10602
10603 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10604
10605 ;; #(
10606 *)
10607 as_fn_error "unknown endianness
10608 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10609 esac
10610
10611
10612 # ------------------------------ #
10613 # Checks for library functions. #
10614 # ------------------------------ #
10615
10616 for ac_header in stdlib.h unistd.h
10617 do :
10618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10620 eval as_val=\$$as_ac_Header
10621 if test "x$as_val" = x""yes; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10624 _ACEOF
10625
10626 fi
10627
10628 done
10629
10630 for ac_func in getpagesize
10631 do :
10632 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10633 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10634 cat >>confdefs.h <<_ACEOF
10635 #define HAVE_GETPAGESIZE 1
10636 _ACEOF
10637
10638 fi
10639 done
10640
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10642 $as_echo_n "checking for working mmap... " >&6; }
10643 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 if test "$cross_compiling" = yes; then :
10647 ac_cv_func_mmap_fixed_mapped=no
10648 else
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 $ac_includes_default
10652 /* malloc might have been renamed as rpl_malloc. */
10653 #undef malloc
10654
10655 /* Thanks to Mike Haertel and Jim Avera for this test.
10656 Here is a matrix of mmap possibilities:
10657 mmap private not fixed
10658 mmap private fixed at somewhere currently unmapped
10659 mmap private fixed at somewhere already mapped
10660 mmap shared not fixed
10661 mmap shared fixed at somewhere currently unmapped
10662 mmap shared fixed at somewhere already mapped
10663 For private mappings, we should verify that changes cannot be read()
10664 back from the file, nor mmap's back from the file at a different
10665 address. (There have been systems where private was not correctly
10666 implemented like the infamous i386 svr4.0, and systems where the
10667 VM page cache was not coherent with the file system buffer cache
10668 like early versions of FreeBSD and possibly contemporary NetBSD.)
10669 For shared mappings, we should conversely verify that changes get
10670 propagated back to all the places they're supposed to be.
10671
10672 Grep wants private fixed already mapped.
10673 The main things grep needs to know about mmap are:
10674 * does it exist and is it safe to write into the mmap'd area
10675 * how to use it (BSD variants) */
10676
10677 #include <fcntl.h>
10678 #include <sys/mman.h>
10679
10680 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10681 char *malloc ();
10682 #endif
10683
10684 /* This mess was copied from the GNU getpagesize.h. */
10685 #ifndef HAVE_GETPAGESIZE
10686 /* Assume that all systems that can run configure have sys/param.h. */
10687 # ifndef HAVE_SYS_PARAM_H
10688 # define HAVE_SYS_PARAM_H 1
10689 # endif
10690
10691 # ifdef _SC_PAGESIZE
10692 # define getpagesize() sysconf(_SC_PAGESIZE)
10693 # else /* no _SC_PAGESIZE */
10694 # ifdef HAVE_SYS_PARAM_H
10695 # include <sys/param.h>
10696 # ifdef EXEC_PAGESIZE
10697 # define getpagesize() EXEC_PAGESIZE
10698 # else /* no EXEC_PAGESIZE */
10699 # ifdef NBPG
10700 # define getpagesize() NBPG * CLSIZE
10701 # ifndef CLSIZE
10702 # define CLSIZE 1
10703 # endif /* no CLSIZE */
10704 # else /* no NBPG */
10705 # ifdef NBPC
10706 # define getpagesize() NBPC
10707 # else /* no NBPC */
10708 # ifdef PAGESIZE
10709 # define getpagesize() PAGESIZE
10710 # endif /* PAGESIZE */
10711 # endif /* no NBPC */
10712 # endif /* no NBPG */
10713 # endif /* no EXEC_PAGESIZE */
10714 # else /* no HAVE_SYS_PARAM_H */
10715 # define getpagesize() 8192 /* punt totally */
10716 # endif /* no HAVE_SYS_PARAM_H */
10717 # endif /* no _SC_PAGESIZE */
10718
10719 #endif /* no HAVE_GETPAGESIZE */
10720
10721 int
10722 main ()
10723 {
10724 char *data, *data2, *data3;
10725 int i, pagesize;
10726 int fd;
10727
10728 pagesize = getpagesize ();
10729
10730 /* First, make a file with some known garbage in it. */
10731 data = (char *) malloc (pagesize);
10732 if (!data)
10733 return 1;
10734 for (i = 0; i < pagesize; ++i)
10735 *(data + i) = rand ();
10736 umask (0);
10737 fd = creat ("conftest.mmap", 0600);
10738 if (fd < 0)
10739 return 1;
10740 if (write (fd, data, pagesize) != pagesize)
10741 return 1;
10742 close (fd);
10743
10744 /* Next, try to mmap the file at a fixed address which already has
10745 something else allocated at it. If we can, also make sure that
10746 we see the same garbage. */
10747 fd = open ("conftest.mmap", O_RDWR);
10748 if (fd < 0)
10749 return 1;
10750 data2 = (char *) malloc (2 * pagesize);
10751 if (!data2)
10752 return 1;
10753 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10754 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10755 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10756 return 1;
10757 for (i = 0; i < pagesize; ++i)
10758 if (*(data + i) != *(data2 + i))
10759 return 1;
10760
10761 /* Finally, make sure that changes to the mapped area do not
10762 percolate back to the file as seen by read(). (This is a bug on
10763 some variants of i386 svr4.0.) */
10764 for (i = 0; i < pagesize; ++i)
10765 *(data2 + i) = *(data2 + i) + 1;
10766 data3 = (char *) malloc (pagesize);
10767 if (!data3)
10768 return 1;
10769 if (read (fd, data3, pagesize) != pagesize)
10770 return 1;
10771 for (i = 0; i < pagesize; ++i)
10772 if (*(data + i) != *(data3 + i))
10773 return 1;
10774 close (fd);
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_run "$LINENO"; then :
10779 ac_cv_func_mmap_fixed_mapped=yes
10780 else
10781 ac_cv_func_mmap_fixed_mapped=no
10782 fi
10783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10784 conftest.$ac_objext conftest.beam conftest.$ac_ext
10785 fi
10786
10787 fi
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10789 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10790 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10791
10792 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10793
10794 fi
10795 rm -f conftest.mmap
10796
10797 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10798 if test "x$ac_cv_type_pid_t" = x""yes; then :
10799
10800 else
10801
10802 cat >>confdefs.h <<_ACEOF
10803 #define pid_t int
10804 _ACEOF
10805
10806 fi
10807
10808 for ac_header in vfork.h
10809 do :
10810 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10811 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10812 cat >>confdefs.h <<_ACEOF
10813 #define HAVE_VFORK_H 1
10814 _ACEOF
10815
10816 fi
10817
10818 done
10819
10820 for ac_func in fork vfork
10821 do :
10822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10823 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10824 eval as_val=\$$as_ac_var
10825 if test "x$as_val" = x""yes; then :
10826 cat >>confdefs.h <<_ACEOF
10827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10828 _ACEOF
10829
10830 fi
10831 done
10832
10833 if test "x$ac_cv_func_fork" = xyes; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10835 $as_echo_n "checking for working fork... " >&6; }
10836 if test "${ac_cv_func_fork_works+set}" = set; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 if test "$cross_compiling" = yes; then :
10840 ac_cv_func_fork_works=cross
10841 else
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844 $ac_includes_default
10845 int
10846 main ()
10847 {
10848
10849 /* By Ruediger Kuhlmann. */
10850 return fork () < 0;
10851
10852 ;
10853 return 0;
10854 }
10855 _ACEOF
10856 if ac_fn_c_try_run "$LINENO"; then :
10857 ac_cv_func_fork_works=yes
10858 else
10859 ac_cv_func_fork_works=no
10860 fi
10861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10862 conftest.$ac_objext conftest.beam conftest.$ac_ext
10863 fi
10864
10865 fi
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10867 $as_echo "$ac_cv_func_fork_works" >&6; }
10868
10869 else
10870 ac_cv_func_fork_works=$ac_cv_func_fork
10871 fi
10872 if test "x$ac_cv_func_fork_works" = xcross; then
10873 case $host in
10874 *-*-amigaos* | *-*-msdosdjgpp*)
10875 # Override, as these systems have only a dummy fork() stub
10876 ac_cv_func_fork_works=no
10877 ;;
10878 *)
10879 ac_cv_func_fork_works=yes
10880 ;;
10881 esac
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10883 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10884 fi
10885 ac_cv_func_vfork_works=$ac_cv_func_vfork
10886 if test "x$ac_cv_func_vfork" = xyes; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10888 $as_echo_n "checking for working vfork... " >&6; }
10889 if test "${ac_cv_func_vfork_works+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 if test "$cross_compiling" = yes; then :
10893 ac_cv_func_vfork_works=cross
10894 else
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897 /* Thanks to Paul Eggert for this test. */
10898 $ac_includes_default
10899 #include <sys/wait.h>
10900 #ifdef HAVE_VFORK_H
10901 # include <vfork.h>
10902 #endif
10903 /* On some sparc systems, changes by the child to local and incoming
10904 argument registers are propagated back to the parent. The compiler
10905 is told about this with #include <vfork.h>, but some compilers
10906 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10907 static variable whose address is put into a register that is
10908 clobbered by the vfork. */
10909 static void
10910 #ifdef __cplusplus
10911 sparc_address_test (int arg)
10912 # else
10913 sparc_address_test (arg) int arg;
10914 #endif
10915 {
10916 static pid_t child;
10917 if (!child) {
10918 child = vfork ();
10919 if (child < 0) {
10920 perror ("vfork");
10921 _exit(2);
10922 }
10923 if (!child) {
10924 arg = getpid();
10925 write(-1, "", 0);
10926 _exit (arg);
10927 }
10928 }
10929 }
10930
10931 int
10932 main ()
10933 {
10934 pid_t parent = getpid ();
10935 pid_t child;
10936
10937 sparc_address_test (0);
10938
10939 child = vfork ();
10940
10941 if (child == 0) {
10942 /* Here is another test for sparc vfork register problems. This
10943 test uses lots of local variables, at least as many local
10944 variables as main has allocated so far including compiler
10945 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10946 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10947 reuse the register of parent for one of the local variables,
10948 since it will think that parent can't possibly be used any more
10949 in this routine. Assigning to the local variable will thus
10950 munge parent in the parent process. */
10951 pid_t
10952 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10953 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10954 /* Convince the compiler that p..p7 are live; otherwise, it might
10955 use the same hardware register for all 8 local variables. */
10956 if (p != p1 || p != p2 || p != p3 || p != p4
10957 || p != p5 || p != p6 || p != p7)
10958 _exit(1);
10959
10960 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10961 from child file descriptors. If the child closes a descriptor
10962 before it execs or exits, this munges the parent's descriptor
10963 as well. Test for this by closing stdout in the child. */
10964 _exit(close(fileno(stdout)) != 0);
10965 } else {
10966 int status;
10967 struct stat st;
10968
10969 while (wait(&status) != child)
10970 ;
10971 return (
10972 /* Was there some problem with vforking? */
10973 child < 0
10974
10975 /* Did the child fail? (This shouldn't happen.) */
10976 || status
10977
10978 /* Did the vfork/compiler bug occur? */
10979 || parent != getpid()
10980
10981 /* Did the file descriptor bug occur? */
10982 || fstat(fileno(stdout), &st) != 0
10983 );
10984 }
10985 }
10986 _ACEOF
10987 if ac_fn_c_try_run "$LINENO"; then :
10988 ac_cv_func_vfork_works=yes
10989 else
10990 ac_cv_func_vfork_works=no
10991 fi
10992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10993 conftest.$ac_objext conftest.beam conftest.$ac_ext
10994 fi
10995
10996 fi
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10998 $as_echo "$ac_cv_func_vfork_works" >&6; }
10999
11000 fi;
11001 if test "x$ac_cv_func_fork_works" = xcross; then
11002 ac_cv_func_vfork_works=$ac_cv_func_vfork
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11004 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11005 fi
11006
11007 if test "x$ac_cv_func_vfork_works" = xyes; then
11008
11009 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11010
11011 else
11012
11013 $as_echo "#define vfork fork" >>confdefs.h
11014
11015 fi
11016 if test "x$ac_cv_func_fork_works" = xyes; then
11017
11018 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11019
11020 fi
11021
11022 for ac_func in getauxval getrusage getuid getgid \
11023 pipe poll pread pread64 pwrite resize_term \
11024 sbrk setpgid setpgrp setsid \
11025 sigaction sigprocmask sigsetmask socketpair \
11026 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11027 setrlimit getrlimit posix_madvise waitpid \
11028 ptrace64 sigaltstack mkdtemp
11029 do :
11030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11031 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11032 eval as_val=\$$as_ac_var
11033 if test "x$as_val" = x""yes; then :
11034 cat >>confdefs.h <<_ACEOF
11035 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11036 _ACEOF
11037
11038 fi
11039 done
11040
11041
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11043 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11044 if test "${am_cv_langinfo_codeset+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049 #include <langinfo.h>
11050 int
11051 main ()
11052 {
11053 char* cs = nl_langinfo(CODESET);
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 am_cv_langinfo_codeset=yes
11060 else
11061 am_cv_langinfo_codeset=no
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065
11066 fi
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11068 $as_echo "$am_cv_langinfo_codeset" >&6; }
11069 if test $am_cv_langinfo_codeset = yes; then
11070
11071 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11072
11073 fi
11074
11075
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11077 $as_echo_n "checking for ANSI C header files... " >&6; }
11078 if test "${ac_cv_header_stdc+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11083 #include <stdlib.h>
11084 #include <stdarg.h>
11085 #include <string.h>
11086 #include <float.h>
11087
11088 int
11089 main ()
11090 {
11091
11092 ;
11093 return 0;
11094 }
11095 _ACEOF
11096 if ac_fn_c_try_compile "$LINENO"; then :
11097 ac_cv_header_stdc=yes
11098 else
11099 ac_cv_header_stdc=no
11100 fi
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102
11103 if test $ac_cv_header_stdc = yes; then
11104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11107 #include <string.h>
11108
11109 _ACEOF
11110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11111 $EGREP "memchr" >/dev/null 2>&1; then :
11112
11113 else
11114 ac_cv_header_stdc=no
11115 fi
11116 rm -f conftest*
11117
11118 fi
11119
11120 if test $ac_cv_header_stdc = yes; then
11121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11124 #include <stdlib.h>
11125
11126 _ACEOF
11127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11128 $EGREP "free" >/dev/null 2>&1; then :
11129
11130 else
11131 ac_cv_header_stdc=no
11132 fi
11133 rm -f conftest*
11134
11135 fi
11136
11137 if test $ac_cv_header_stdc = yes; then
11138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11139 if test "$cross_compiling" = yes; then :
11140 :
11141 else
11142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11144 #include <ctype.h>
11145 #include <stdlib.h>
11146 #if ((' ' & 0x0FF) == 0x020)
11147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11149 #else
11150 # define ISLOWER(c) \
11151 (('a' <= (c) && (c) <= 'i') \
11152 || ('j' <= (c) && (c) <= 'r') \
11153 || ('s' <= (c) && (c) <= 'z'))
11154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11155 #endif
11156
11157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11158 int
11159 main ()
11160 {
11161 int i;
11162 for (i = 0; i < 256; i++)
11163 if (XOR (islower (i), ISLOWER (i))
11164 || toupper (i) != TOUPPER (i))
11165 return 2;
11166 return 0;
11167 }
11168 _ACEOF
11169 if ac_fn_c_try_run "$LINENO"; then :
11170
11171 else
11172 ac_cv_header_stdc=no
11173 fi
11174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11175 conftest.$ac_objext conftest.beam conftest.$ac_ext
11176 fi
11177
11178 fi
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11181 $as_echo "$ac_cv_header_stdc" >&6; }
11182 if test $ac_cv_header_stdc = yes; then
11183
11184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11185
11186 fi
11187
11188 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11189 # for constant arguments. Useless!
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11191 $as_echo_n "checking for working alloca.h... " >&6; }
11192 if test "${ac_cv_working_alloca_h+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11197 #include <alloca.h>
11198 int
11199 main ()
11200 {
11201 char *p = (char *) alloca (2 * sizeof (int));
11202 if (p) return 0;
11203 ;
11204 return 0;
11205 }
11206 _ACEOF
11207 if ac_fn_c_try_link "$LINENO"; then :
11208 ac_cv_working_alloca_h=yes
11209 else
11210 ac_cv_working_alloca_h=no
11211 fi
11212 rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214 fi
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11216 $as_echo "$ac_cv_working_alloca_h" >&6; }
11217 if test $ac_cv_working_alloca_h = yes; then
11218
11219 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11220
11221 fi
11222
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11224 $as_echo_n "checking for alloca... " >&6; }
11225 if test "${ac_cv_func_alloca_works+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11230 #ifdef __GNUC__
11231 # define alloca __builtin_alloca
11232 #else
11233 # ifdef _MSC_VER
11234 # include <malloc.h>
11235 # define alloca _alloca
11236 # else
11237 # ifdef HAVE_ALLOCA_H
11238 # include <alloca.h>
11239 # else
11240 # ifdef _AIX
11241 #pragma alloca
11242 # else
11243 # ifndef alloca /* predefined by HP cc +Olibcalls */
11244 char *alloca ();
11245 # endif
11246 # endif
11247 # endif
11248 # endif
11249 #endif
11250
11251 int
11252 main ()
11253 {
11254 char *p = (char *) alloca (1);
11255 if (p) return 0;
11256 ;
11257 return 0;
11258 }
11259 _ACEOF
11260 if ac_fn_c_try_link "$LINENO"; then :
11261 ac_cv_func_alloca_works=yes
11262 else
11263 ac_cv_func_alloca_works=no
11264 fi
11265 rm -f core conftest.err conftest.$ac_objext \
11266 conftest$ac_exeext conftest.$ac_ext
11267 fi
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11269 $as_echo "$ac_cv_func_alloca_works" >&6; }
11270
11271 if test $ac_cv_func_alloca_works = yes; then
11272
11273 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11274
11275 else
11276 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11277 # that cause trouble. Some versions do not even contain alloca or
11278 # contain a buggy version. If you still want to use their alloca,
11279 # use ar to extract alloca.o from them instead of compiling alloca.c.
11280
11281 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11282
11283 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11284
11285
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11287 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11288 if test "${ac_cv_os_cray+set}" = set; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293 #if defined CRAY && ! defined CRAY2
11294 webecray
11295 #else
11296 wenotbecray
11297 #endif
11298
11299 _ACEOF
11300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11301 $EGREP "webecray" >/dev/null 2>&1; then :
11302 ac_cv_os_cray=yes
11303 else
11304 ac_cv_os_cray=no
11305 fi
11306 rm -f conftest*
11307
11308 fi
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11310 $as_echo "$ac_cv_os_cray" >&6; }
11311 if test $ac_cv_os_cray = yes; then
11312 for ac_func in _getb67 GETB67 getb67; do
11313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11315 eval as_val=\$$as_ac_var
11316 if test "x$as_val" = x""yes; then :
11317
11318 cat >>confdefs.h <<_ACEOF
11319 #define CRAY_STACKSEG_END $ac_func
11320 _ACEOF
11321
11322 break
11323 fi
11324
11325 done
11326 fi
11327
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11329 $as_echo_n "checking stack direction for C alloca... " >&6; }
11330 if test "${ac_cv_c_stack_direction+set}" = set; then :
11331 $as_echo_n "(cached) " >&6
11332 else
11333 if test "$cross_compiling" = yes; then :
11334 ac_cv_c_stack_direction=0
11335 else
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338 $ac_includes_default
11339 int
11340 find_stack_direction ()
11341 {
11342 static char *addr = 0;
11343 auto char dummy;
11344 if (addr == 0)
11345 {
11346 addr = &dummy;
11347 return find_stack_direction ();
11348 }
11349 else
11350 return (&dummy > addr) ? 1 : -1;
11351 }
11352
11353 int
11354 main ()
11355 {
11356 return find_stack_direction () < 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_run "$LINENO"; then :
11360 ac_cv_c_stack_direction=1
11361 else
11362 ac_cv_c_stack_direction=-1
11363 fi
11364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11365 conftest.$ac_objext conftest.beam conftest.$ac_ext
11366 fi
11367
11368 fi
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11370 $as_echo "$ac_cv_c_stack_direction" >&6; }
11371 cat >>confdefs.h <<_ACEOF
11372 #define STACK_DIRECTION $ac_cv_c_stack_direction
11373 _ACEOF
11374
11375
11376 fi
11377
11378
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11381 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11382 if test "${am_cv_langinfo_codeset+set}" = set; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387 #include <langinfo.h>
11388 int
11389 main ()
11390 {
11391 char* cs = nl_langinfo(CODESET);
11392 ;
11393 return 0;
11394 }
11395 _ACEOF
11396 if ac_fn_c_try_link "$LINENO"; then :
11397 am_cv_langinfo_codeset=yes
11398 else
11399 am_cv_langinfo_codeset=no
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403
11404 fi
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11406 $as_echo "$am_cv_langinfo_codeset" >&6; }
11407 if test $am_cv_langinfo_codeset = yes; then
11408
11409 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11410
11411 fi
11412
11413
11414 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h
11415 do :
11416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11417 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11418 eval as_val=\$$as_ac_Header
11419 if test "x$as_val" = x""yes; then :
11420 cat >>confdefs.h <<_ACEOF
11421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11422 _ACEOF
11423
11424 fi
11425
11426 done
11427
11428
11429 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
11430 do :
11431 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11433 eval as_val=\$$as_ac_var
11434 if test "x$as_val" = x""yes; then :
11435 cat >>confdefs.h <<_ACEOF
11436 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11437 _ACEOF
11438
11439 fi
11440 done
11441
11442
11443 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11444 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11445 ac_have_decl=1
11446 else
11447 ac_have_decl=0
11448 fi
11449
11450 cat >>confdefs.h <<_ACEOF
11451 #define HAVE_DECL_STRERROR $ac_have_decl
11452 _ACEOF
11453 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11454 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11455 ac_have_decl=1
11456 else
11457 ac_have_decl=0
11458 fi
11459
11460 cat >>confdefs.h <<_ACEOF
11461 #define HAVE_DECL_STRSTR $ac_have_decl
11462 _ACEOF
11463
11464
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11466 $as_echo_n "checking for sigsetjmp... " >&6; }
11467 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11472
11473 #include <setjmp.h>
11474
11475 int
11476 main ()
11477 {
11478 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_compile "$LINENO"; then :
11484 gdb_cv_func_sigsetjmp=yes
11485 else
11486 gdb_cv_func_sigsetjmp=no
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11491 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11492 if test $gdb_cv_func_sigsetjmp = yes; then
11493
11494 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11495
11496 fi
11497
11498
11499 # Check the return and argument types of ptrace. No canned test for
11500 # this, so roll our own.
11501 gdb_ptrace_headers='
11502 #include <sys/types.h>
11503 #if HAVE_SYS_PTRACE_H
11504 # include <sys/ptrace.h>
11505 #endif
11506 #if HAVE_UNISTD_H
11507 # include <unistd.h>
11508 #endif
11509 '
11510 # There is no point in checking if we don't have a prototype.
11511 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11512 "
11513 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
11514 ac_have_decl=1
11515 else
11516 ac_have_decl=0
11517 fi
11518
11519 cat >>confdefs.h <<_ACEOF
11520 #define HAVE_DECL_PTRACE $ac_have_decl
11521 _ACEOF
11522 if test $ac_have_decl = 1; then :
11523
11524 else
11525
11526 : ${gdb_cv_func_ptrace_ret='int'}
11527 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11528
11529 fi
11530
11531 # Check return type. Varargs (used on GNU/Linux) conflict with the
11532 # empty argument list, so check for that explicitly.
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11534 $as_echo_n "checking return type of ptrace... " >&6; }
11535 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11540 $gdb_ptrace_headers
11541 int
11542 main ()
11543 {
11544 extern long ptrace (enum __ptrace_request, ...);
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 if ac_fn_c_try_compile "$LINENO"; then :
11550 gdb_cv_func_ptrace_ret='long'
11551 else
11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11554 $gdb_ptrace_headers
11555 int
11556 main ()
11557 {
11558 extern int ptrace ();
11559 ;
11560 return 0;
11561 }
11562 _ACEOF
11563 if ac_fn_c_try_compile "$LINENO"; then :
11564 gdb_cv_func_ptrace_ret='int'
11565 else
11566 gdb_cv_func_ptrace_ret='long'
11567 fi
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571 fi
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11573 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11574
11575 cat >>confdefs.h <<_ACEOF
11576 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11577 _ACEOF
11578
11579 # Check argument types.
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11581 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11582 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588 $gdb_ptrace_headers
11589 int
11590 main ()
11591 {
11592 extern long ptrace (enum __ptrace_request, ...);
11593 ;
11594 return 0;
11595 }
11596 _ACEOF
11597 if ac_fn_c_try_compile "$LINENO"; then :
11598 gdb_cv_func_ptrace_args='int,int,long,long'
11599 else
11600
11601 for gdb_arg1 in 'int' 'long'; do
11602 for gdb_arg2 in 'pid_t' 'int' 'long'; do
11603 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11604 for gdb_arg4 in 'int' 'long' 'void *'; do
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607 $gdb_ptrace_headers
11608 int
11609 main ()
11610 {
11611
11612 extern $gdb_cv_func_ptrace_ret
11613 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11614
11615 ;
11616 return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_compile "$LINENO"; then :
11620 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11621 break 4;
11622 fi
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 for gdb_arg5 in 'int *' 'int' 'long'; do
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627 $gdb_ptrace_headers
11628 int
11629 main ()
11630 {
11631
11632 extern $gdb_cv_func_ptrace_ret
11633 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11634
11635 ;
11636 return 0;
11637 }
11638 _ACEOF
11639 if ac_fn_c_try_compile "$LINENO"; then :
11640
11641 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11642 break 5;
11643 fi
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 done
11646 done
11647 done
11648 done
11649 done
11650 # Provide a safe default value.
11651 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11652
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11657 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11658 ac_save_IFS=$IFS; IFS=','
11659 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11660 IFS=$ac_save_IFS
11661 shift
11662
11663 cat >>confdefs.h <<_ACEOF
11664 #define PTRACE_TYPE_ARG3 $3
11665 _ACEOF
11666
11667
11668 cat >>confdefs.h <<_ACEOF
11669 #define PTRACE_TYPE_ARG4 $4
11670 _ACEOF
11671
11672 if test -n "$5"; then
11673
11674 cat >>confdefs.h <<_ACEOF
11675 #define PTRACE_TYPE_ARG5 $5
11676 _ACEOF
11677
11678 fi
11679
11680 if test "$cross_compiling" = no; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11682 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11683 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 if test "$cross_compiling" = yes; then :
11687 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
11688 else
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691 $ac_includes_default
11692 int
11693 main ()
11694 {
11695 /* If this system has a BSD-style setpgrp which takes arguments,
11696 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11697 exit successfully. */
11698 return setpgrp (1,1) != -1;
11699 ;
11700 return 0;
11701 }
11702 _ACEOF
11703 if ac_fn_c_try_run "$LINENO"; then :
11704 ac_cv_func_setpgrp_void=no
11705 else
11706 ac_cv_func_setpgrp_void=yes
11707 fi
11708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11709 conftest.$ac_objext conftest.beam conftest.$ac_ext
11710 fi
11711
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11714 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11715 if test $ac_cv_func_setpgrp_void = yes; then
11716
11717 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11718
11719 fi
11720
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11723 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11724 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729
11730 #include <unistd.h>
11731
11732 int
11733 main ()
11734 {
11735
11736 if (setpgrp(1,1) == -1)
11737 exit (0);
11738 else
11739 exit (1);
11740
11741 ;
11742 return 0;
11743 }
11744 _ACEOF
11745 if ac_fn_c_try_compile "$LINENO"; then :
11746 ac_cv_func_setpgrp_void=no
11747 else
11748 ac_cv_func_setpgrp_void=yes
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11753 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11754 if test $ac_cv_func_setpgrp_void = yes; then
11755 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11756
11757 fi
11758 fi
11759
11760 # Assume we'll default to using the included libiberty regex.
11761 gdb_use_included_regex=yes
11762
11763 # However, if the system regex is GNU regex, then default to *not*
11764 # using the included regex.
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11766 $as_echo_n "checking for GNU regex... " >&6; }
11767 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11772 #include <gnu-versions.h>
11773 int
11774 main ()
11775 {
11776 #define REGEX_INTERFACE_VERSION 1
11777 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11778 # error "Version mismatch"
11779 #endif
11780 ;
11781 return 0;
11782 }
11783 _ACEOF
11784 if ac_fn_c_try_compile "$LINENO"; then :
11785 gdb_cv_have_gnu_regex=yes
11786 else
11787 gdb_cv_have_gnu_regex=no
11788 fi
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11792 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11793 if test $gdb_cv_have_gnu_regex = yes; then
11794 gdb_use_included_regex=no
11795 fi
11796
11797
11798 # Check whether --with-included-regex was given.
11799 if test "${with_included_regex+set}" = set; then :
11800 withval=$with_included_regex; gdb_with_regex=$withval
11801 else
11802 gdb_with_regex=$gdb_use_included_regex
11803 fi
11804
11805 if test "$gdb_with_regex" = yes; then
11806
11807 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11808
11809 fi
11810
11811 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11812 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11813 #include <sys/proc.h>
11814
11815 "
11816 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
11817
11818 cat >>confdefs.h <<_ACEOF
11819 #define HAVE_STRUCT_THREAD_TD_PCB 1
11820 _ACEOF
11821
11822
11823 fi
11824
11825
11826 # See if <sys/lwp.h> defines `struct lwp`.
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11828 $as_echo_n "checking for struct lwp... " >&6; }
11829 if test "${gdb_cv_struct_lwp+set}" = set; then :
11830 $as_echo_n "(cached) " >&6
11831 else
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834 #include <sys/param.h>
11835 #include <sys/lwp.h>
11836 int
11837 main ()
11838 {
11839 struct lwp l;
11840 ;
11841 return 0;
11842 }
11843 _ACEOF
11844 if ac_fn_c_try_compile "$LINENO"; then :
11845 gdb_cv_struct_lwp=yes
11846 else
11847 gdb_cv_struct_lwp=no
11848 fi
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 fi
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11852 $as_echo "$gdb_cv_struct_lwp" >&6; }
11853 if test $gdb_cv_struct_lwp = yes; then
11854
11855 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11856
11857 fi
11858
11859 # See if <machine/reg.h> degines `struct reg'.
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11861 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11862 if test "${gdb_cv_struct_reg+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 #include <sys/types.h>
11868 #include <machine/reg.h>
11869 int
11870 main ()
11871 {
11872 struct reg r;
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 if ac_fn_c_try_compile "$LINENO"; then :
11878 gdb_cv_struct_reg=yes
11879 else
11880 gdb_cv_struct_reg=no
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 fi
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11885 $as_echo "$gdb_cv_struct_reg" >&6; }
11886 if test $gdb_cv_struct_reg = yes; then
11887
11888 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11889
11890 fi
11891
11892 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11893 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11894 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11895 "
11896 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
11897
11898 cat >>confdefs.h <<_ACEOF
11899 #define HAVE_STRUCT_REG_R_FS 1
11900 _ACEOF
11901
11902
11903 fi
11904 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11905 "
11906 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
11907
11908 cat >>confdefs.h <<_ACEOF
11909 #define HAVE_STRUCT_REG_R_GS 1
11910 _ACEOF
11911
11912
11913 fi
11914
11915
11916 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11917 # Older amd64 Linux's don't have the fs_base and gs_base members of
11918 # `struct user_regs_struct'.
11919 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>
11920 "
11921 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
11922
11923 cat >>confdefs.h <<_ACEOF
11924 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11925 _ACEOF
11926
11927
11928 fi
11929 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>
11930 "
11931 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
11932
11933 cat >>confdefs.h <<_ACEOF
11934 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11935 _ACEOF
11936
11937
11938 fi
11939
11940
11941 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11943 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11944 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949 #include <sys/ptrace.h>
11950 int
11951 main ()
11952 {
11953 PTRACE_GETREGS;
11954 ;
11955 return 0;
11956 }
11957 _ACEOF
11958 if ac_fn_c_try_compile "$LINENO"; then :
11959 gdb_cv_have_ptrace_getregs=yes
11960 else
11961 gdb_cv_have_ptrace_getregs=no
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 fi
11965
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11967 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11968 if test $gdb_cv_have_ptrace_getregs = yes; then
11969
11970 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11971
11972 fi
11973
11974 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11976 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11977 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 #include <sys/ptrace.h>
11983 int
11984 main ()
11985 {
11986 PTRACE_GETFPXREGS;
11987 ;
11988 return 0;
11989 }
11990 _ACEOF
11991 if ac_fn_c_try_compile "$LINENO"; then :
11992 gdb_cv_have_ptrace_getfpxregs=yes
11993 else
11994 gdb_cv_have_ptrace_getfpxregs=no
11995 fi
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 fi
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12000 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12001 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12002
12003 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12004
12005 fi
12006
12007 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12009 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12010 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12015 #include <sys/types.h>
12016 #include <sys/ptrace.h>
12017 int
12018 main ()
12019 {
12020 PT_GETDBREGS;
12021 ;
12022 return 0;
12023 }
12024 _ACEOF
12025 if ac_fn_c_try_compile "$LINENO"; then :
12026 gdb_cv_have_pt_getdbregs=yes
12027 else
12028 gdb_cv_have_pt_getdbregs=no
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12031 fi
12032
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12034 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12035 if test $gdb_cv_have_pt_getdbregs = yes; then
12036
12037 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12038
12039 fi
12040
12041 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12043 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12044 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12049 #include <sys/types.h>
12050 #include <sys/ptrace.h>
12051 int
12052 main ()
12053 {
12054 PT_GETXMMREGS;
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 if ac_fn_c_try_compile "$LINENO"; then :
12060 gdb_cv_have_pt_getxmmregs=yes
12061 else
12062 gdb_cv_have_pt_getxmmregs=no
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 fi
12066
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12068 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12069 if test $gdb_cv_have_pt_getxmmregs = yes; then
12070
12071 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12072
12073 fi
12074
12075 # Detect which type of /proc is in use, such as for Solaris.
12076
12077 if test "${target}" = "${host}"; then
12078 case "${host}" in
12079 *-*-sysv4.2* | *-*-sysv5* )
12080
12081 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12082
12083 ;;
12084 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
12085
12086 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12087
12088 ;;
12089 mips-sgi-irix5*)
12090 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12091
12092 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12093
12094 ;;
12095 esac
12096 fi
12097
12098 if test "$ac_cv_header_sys_procfs_h" = yes; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12100 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12101 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12102 $as_echo_n "(cached) " >&6
12103 else
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106
12107 #define _SYSCALL32
12108 /* Needed for new procfs interface on sparc-solaris. */
12109 #define _STRUCTURED_PROC 1
12110 #include <sys/procfs.h>
12111 int
12112 main ()
12113 {
12114 gregset_t avar
12115 ;
12116 return 0;
12117 }
12118 _ACEOF
12119 if ac_fn_c_try_compile "$LINENO"; then :
12120 bfd_cv_have_sys_procfs_type_gregset_t=yes
12121 else
12122 bfd_cv_have_sys_procfs_type_gregset_t=no
12123
12124 fi
12125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126 fi
12127
12128 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12129
12130 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12131
12132 fi
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12134 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12135
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12137 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12138 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12143
12144 #define _SYSCALL32
12145 /* Needed for new procfs interface on sparc-solaris. */
12146 #define _STRUCTURED_PROC 1
12147 #include <sys/procfs.h>
12148 int
12149 main ()
12150 {
12151 fpregset_t avar
12152 ;
12153 return 0;
12154 }
12155 _ACEOF
12156 if ac_fn_c_try_compile "$LINENO"; then :
12157 bfd_cv_have_sys_procfs_type_fpregset_t=yes
12158 else
12159 bfd_cv_have_sys_procfs_type_fpregset_t=no
12160
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163 fi
12164
12165 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12166
12167 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12168
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12171 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12172
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12174 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12175 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180
12181 #define _SYSCALL32
12182 /* Needed for new procfs interface on sparc-solaris. */
12183 #define _STRUCTURED_PROC 1
12184 #include <sys/procfs.h>
12185 int
12186 main ()
12187 {
12188 prgregset_t avar
12189 ;
12190 return 0;
12191 }
12192 _ACEOF
12193 if ac_fn_c_try_compile "$LINENO"; then :
12194 bfd_cv_have_sys_procfs_type_prgregset_t=yes
12195 else
12196 bfd_cv_have_sys_procfs_type_prgregset_t=no
12197
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200 fi
12201
12202 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12203
12204 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12205
12206 fi
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12208 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12209
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12211 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12212 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12213 $as_echo_n "(cached) " >&6
12214 else
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217
12218 #define _SYSCALL32
12219 /* Needed for new procfs interface on sparc-solaris. */
12220 #define _STRUCTURED_PROC 1
12221 #include <sys/procfs.h>
12222 int
12223 main ()
12224 {
12225 prfpregset_t avar
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_compile "$LINENO"; then :
12231 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
12232 else
12233 bfd_cv_have_sys_procfs_type_prfpregset_t=no
12234
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12237 fi
12238
12239 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12240
12241 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12242
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12245 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12246
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12248 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12249 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12254
12255 #define _SYSCALL32
12256 /* Needed for new procfs interface on sparc-solaris. */
12257 #define _STRUCTURED_PROC 1
12258 #include <sys/procfs.h>
12259 int
12260 main ()
12261 {
12262 prgregset32_t avar
12263 ;
12264 return 0;
12265 }
12266 _ACEOF
12267 if ac_fn_c_try_compile "$LINENO"; then :
12268 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
12269 else
12270 bfd_cv_have_sys_procfs_type_prgregset32_t=no
12271
12272 fi
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 fi
12275
12276 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12277
12278 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12279
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12282 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12283
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12285 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12286 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291
12292 #define _SYSCALL32
12293 /* Needed for new procfs interface on sparc-solaris. */
12294 #define _STRUCTURED_PROC 1
12295 #include <sys/procfs.h>
12296 int
12297 main ()
12298 {
12299 lwpid_t avar
12300 ;
12301 return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_compile "$LINENO"; then :
12305 bfd_cv_have_sys_procfs_type_lwpid_t=yes
12306 else
12307 bfd_cv_have_sys_procfs_type_lwpid_t=no
12308
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12311 fi
12312
12313 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12314
12315 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12316
12317 fi
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12319 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12320
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12322 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12323 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328
12329 #define _SYSCALL32
12330 /* Needed for new procfs interface on sparc-solaris. */
12331 #define _STRUCTURED_PROC 1
12332 #include <sys/procfs.h>
12333 int
12334 main ()
12335 {
12336 psaddr_t avar
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 if ac_fn_c_try_compile "$LINENO"; then :
12342 bfd_cv_have_sys_procfs_type_psaddr_t=yes
12343 else
12344 bfd_cv_have_sys_procfs_type_psaddr_t=no
12345
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 fi
12349
12350 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12351
12352 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12353
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12356 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12357
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12359 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12360 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365
12366 #define _SYSCALL32
12367 /* Needed for new procfs interface on sparc-solaris. */
12368 #define _STRUCTURED_PROC 1
12369 #include <sys/procfs.h>
12370 int
12371 main ()
12372 {
12373 prsysent_t avar
12374 ;
12375 return 0;
12376 }
12377 _ACEOF
12378 if ac_fn_c_try_compile "$LINENO"; then :
12379 bfd_cv_have_sys_procfs_type_prsysent_t=yes
12380 else
12381 bfd_cv_have_sys_procfs_type_prsysent_t=no
12382
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12385 fi
12386
12387 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12388
12389 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12390
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12393 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12394
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12396 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12397 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
12399 else
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402
12403 #define _SYSCALL32
12404 /* Needed for new procfs interface on sparc-solaris. */
12405 #define _STRUCTURED_PROC 1
12406 #include <sys/procfs.h>
12407 int
12408 main ()
12409 {
12410 pr_sigset_t avar
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 if ac_fn_c_try_compile "$LINENO"; then :
12416 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
12417 else
12418 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
12419
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422 fi
12423
12424 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12425
12426 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12427
12428 fi
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12430 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12433 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12434 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439
12440 #define _SYSCALL32
12441 /* Needed for new procfs interface on sparc-solaris. */
12442 #define _STRUCTURED_PROC 1
12443 #include <sys/procfs.h>
12444 int
12445 main ()
12446 {
12447 pr_sigaction64_t avar
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_compile "$LINENO"; then :
12453 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
12454 else
12455 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
12456
12457 fi
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 fi
12460
12461 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12462
12463 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12464
12465 fi
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12467 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12470 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12471 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476
12477 #define _SYSCALL32
12478 /* Needed for new procfs interface on sparc-solaris. */
12479 #define _STRUCTURED_PROC 1
12480 #include <sys/procfs.h>
12481 int
12482 main ()
12483 {
12484 pr_siginfo64_t avar
12485 ;
12486 return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_compile "$LINENO"; then :
12490 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
12491 else
12492 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
12493
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 fi
12497
12498 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12499
12500 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12501
12502 fi
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12504 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12505
12506
12507
12508
12509
12510 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12512 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12513 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 if test "$cross_compiling" = yes; then :
12517 gdb_cv_prfpregset_t_broken=yes
12518 else
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12521 #include <sys/procfs.h>
12522 int main ()
12523 {
12524 if (sizeof (prfpregset_t) == sizeof (void *))
12525 return 1;
12526 return 0;
12527 }
12528 _ACEOF
12529 if ac_fn_c_try_run "$LINENO"; then :
12530 gdb_cv_prfpregset_t_broken=no
12531 else
12532 gdb_cv_prfpregset_t_broken=yes
12533 fi
12534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12535 conftest.$ac_objext conftest.beam conftest.$ac_ext
12536 fi
12537
12538 fi
12539
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12541 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12542 if test $gdb_cv_prfpregset_t_broken = yes; then
12543
12544 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12545
12546 fi
12547 fi
12548 fi
12549
12550 # Check if the compiler supports the `long long' type.
12551
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12553 $as_echo_n "checking for long long support in compiler... " >&6; }
12554 if test "${gdb_cv_c_long_long+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 extern long long foo;
12560 int
12561 main ()
12562 {
12563 switch (foo & 2) { case 0: return 1; }
12564 ;
12565 return 0;
12566 }
12567 _ACEOF
12568 if ac_fn_c_try_compile "$LINENO"; then :
12569 gdb_cv_c_long_long=yes
12570 else
12571 gdb_cv_c_long_long=no
12572 fi
12573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574 fi
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12576 $as_echo "$gdb_cv_c_long_long" >&6; }
12577 if test $gdb_cv_c_long_long != yes; then
12578 # libdecnumber requires long long.
12579 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
12580 fi
12581
12582 # Check if the compiler and runtime support printing long longs.
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12585 $as_echo_n "checking for long long support in printf... " >&6; }
12586 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589 if test "$cross_compiling" = yes; then :
12590 gdb_cv_printf_has_long_long=no
12591 else
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12594 $ac_includes_default
12595 int
12596 main ()
12597 {
12598 char buf[32];
12599 long long l = 0;
12600 l = (l << 16) + 0x0123;
12601 l = (l << 16) + 0x4567;
12602 l = (l << 16) + 0x89ab;
12603 l = (l << 16) + 0xcdef;
12604 sprintf (buf, "0x%016llx", l);
12605 return (strcmp ("0x0123456789abcdef", buf));
12606 ;
12607 return 0;
12608 }
12609 _ACEOF
12610 if ac_fn_c_try_run "$LINENO"; then :
12611 gdb_cv_printf_has_long_long=yes
12612 else
12613 gdb_cv_printf_has_long_long=no
12614 fi
12615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12616 conftest.$ac_objext conftest.beam conftest.$ac_ext
12617 fi
12618
12619 fi
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12621 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12622 if test $gdb_cv_printf_has_long_long = yes; then
12623
12624 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12625
12626 fi
12627
12628 # Check if the compiler and runtime support printing decfloats.
12629
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12631 $as_echo_n "checking for decfloat support in printf... " >&6; }
12632 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12633 $as_echo_n "(cached) " >&6
12634 else
12635 if test "$cross_compiling" = yes; then :
12636 gdb_cv_printf_has_decfloat=no
12637 else
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640 $ac_includes_default
12641 int
12642 main ()
12643 {
12644 char buf[64];
12645 _Decimal32 d32 = 1.2345df;
12646 _Decimal64 d64 = 1.2345dd;
12647 _Decimal128 d128 = 1.2345dl;
12648 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12649 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 if ac_fn_c_try_run "$LINENO"; then :
12655 gdb_cv_printf_has_decfloat=yes
12656 else
12657 gdb_cv_printf_has_decfloat=no
12658 fi
12659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12660 conftest.$ac_objext conftest.beam conftest.$ac_ext
12661 fi
12662
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12665 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12666 if test $gdb_cv_printf_has_decfloat = yes; then
12667
12668 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12669
12670 fi
12671
12672 # Check if the compiler supports the `long double' type. We can't use
12673 # AC_C_LONG_DOUBLE because that one does additional checks on the
12674 # constants defined in <float.h> that fail on some systems,
12675 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12678 $as_echo_n "checking for long double support in compiler... " >&6; }
12679 if test "${gdb_cv_c_long_double+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684 long double foo;
12685 _ACEOF
12686 if ac_fn_c_try_compile "$LINENO"; then :
12687 gdb_cv_c_long_double=yes
12688 else
12689 gdb_cv_c_long_double=no
12690 fi
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692 fi
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12694 $as_echo "$gdb_cv_c_long_double" >&6; }
12695 if test $gdb_cv_c_long_double = yes; then
12696
12697 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12698
12699 fi
12700
12701 # Check if the compiler and runtime support printing long doubles.
12702
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12704 $as_echo_n "checking for long double support in printf... " >&6; }
12705 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 if test "$cross_compiling" = yes; then :
12709 gdb_cv_printf_has_long_double=no
12710 else
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713 $ac_includes_default
12714 int
12715 main ()
12716 {
12717 char buf[16];
12718 long double f = 3.141592653;
12719 sprintf (buf, "%Lg", f);
12720 return (strncmp ("3.14159", buf, 7));
12721 ;
12722 return 0;
12723 }
12724 _ACEOF
12725 if ac_fn_c_try_run "$LINENO"; then :
12726 gdb_cv_printf_has_long_double=yes
12727 else
12728 gdb_cv_printf_has_long_double=no
12729 fi
12730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12731 conftest.$ac_objext conftest.beam conftest.$ac_ext
12732 fi
12733
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12736 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12737 if test $gdb_cv_printf_has_long_double = yes; then
12738
12739 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12740
12741 fi
12742
12743 # Check if the compiler and runtime support scanning long doubles.
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12746 $as_echo_n "checking for long double support in scanf... " >&6; }
12747 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 if test "$cross_compiling" = yes; then :
12751 gdb_cv_scanf_has_long_double=no
12752 else
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 #include <stdio.h>
12756 int
12757 main ()
12758 {
12759 char *buf = "3.141592653";
12760 long double f = 0;
12761 sscanf (buf, "%Lg", &f);
12762 return !(f > 3.14159 && f < 3.14160);
12763 ;
12764 return 0;
12765 }
12766 _ACEOF
12767 if ac_fn_c_try_run "$LINENO"; then :
12768 gdb_cv_scanf_has_long_double=yes
12769 else
12770 gdb_cv_scanf_has_long_double=no
12771 fi
12772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12773 conftest.$ac_objext conftest.beam conftest.$ac_ext
12774 fi
12775
12776 fi
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12778 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12779 if test $gdb_cv_scanf_has_long_double = yes; then
12780
12781 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12782
12783 fi
12784
12785 case ${host_os} in
12786 aix*)
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12788 $as_echo_n "checking for -bbigtoc option... " >&6; }
12789 if test "${gdb_cv_bigtoc+set}" = set; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792
12793 SAVE_LDFLAGS=$LDFLAGS
12794
12795 case $GCC in
12796 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12797 *) gdb_cv_bigtoc=-bbigtoc ;;
12798 esac
12799
12800 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803
12804 int
12805 main ()
12806 {
12807 int i;
12808 ;
12809 return 0;
12810 }
12811 _ACEOF
12812 if ac_fn_c_try_link "$LINENO"; then :
12813
12814 else
12815 gdb_cv_bigtoc=
12816 fi
12817 rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819 LDFLAGS="${SAVE_LDFLAGS}"
12820
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12823 $as_echo "$gdb_cv_bigtoc" >&6; }
12824 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12825 ;;
12826 esac
12827
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12829 $as_echo_n "checking for the dynamic export flag... " >&6; }
12830 dynamic_list=false
12831 if test "${gdb_native}" = yes; then
12832 # The dynamically loaded libthread_db needs access to symbols in the gdb
12833 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
12834 # may not be supported there.
12835 old_LDFLAGS="$LDFLAGS"
12836 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12837 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12838 LDFLAGS="$LDFLAGS $RDYNAMIC"
12839 if test "${have_libpython}" = no; then
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842
12843 int
12844 main ()
12845 {
12846
12847 ;
12848 return 0;
12849 }
12850 _ACEOF
12851 if ac_fn_c_try_link "$LINENO"; then :
12852 dynamic_list=true
12853 fi
12854 rm -f core conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext conftest.$ac_ext
12856 else
12857 # Workaround http://bugs.python.org/issue4434 where static
12858 # libpythonX.Y.a would get its symbols required for
12859 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12860 # Problem does not happen for the recommended libpythonX.Y.so linkage.
12861 old_CFLAGS="$CFLAGS"
12862 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
12863 old_LIBS="$LIBS"
12864 LIBS="$LIBS $PYTHON_LIBS"
12865 if test "$cross_compiling" = yes; then :
12866 true
12867 else
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870 #include "${have_libpython}/Python.h"
12871 int
12872 main ()
12873 {
12874 int err;
12875 Py_Initialize ();
12876 err = PyRun_SimpleString ("import itertools\n");
12877 Py_Finalize ();
12878 return err == 0 ? 0 : 1;
12879 ;
12880 return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_run "$LINENO"; then :
12884 dynamic_list=true
12885 fi
12886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12887 conftest.$ac_objext conftest.beam conftest.$ac_ext
12888 fi
12889
12890 LIBS="$old_LIBS"
12891 CFLAGS="$old_CFLAGS"
12892 fi
12893 LDFLAGS="$old_LDFLAGS"
12894 fi
12895 if $dynamic_list; then
12896 found="-Wl,--dynamic-list"
12897 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12898 else
12899 found="-rdynamic"
12900 RDYNAMIC="-rdynamic"
12901 fi
12902
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12904 $as_echo "$found" >&6; }
12905
12906
12907 if test ${build} = ${host} -a ${host} = ${target} ; then
12908 case ${host_os} in
12909 solaris*)
12910 # See if thread_db library is around for Solaris thread debugging.
12911 # Note that we must explicitly test for version 1 of the library
12912 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12913 # the same API.
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12915 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12916 if test -f /usr/lib/libthread_db.so.1 ; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 $as_echo "yes" >&6; }
12919
12920 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12921
12922 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
12923 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12925 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12926 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-ldl $LIBS"
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12933
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char dlopen ();
12941 int
12942 main ()
12943 {
12944 return dlopen ();
12945 ;
12946 return 0;
12947 }
12948 _ACEOF
12949 if ac_fn_c_try_link "$LINENO"; then :
12950 ac_cv_lib_dl_dlopen=yes
12951 else
12952 ac_cv_lib_dl_dlopen=no
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 LIBS=$ac_check_lib_save_LIBS
12957 fi
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12959 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12960 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12961 cat >>confdefs.h <<_ACEOF
12962 #define HAVE_LIBDL 1
12963 _ACEOF
12964
12965 LIBS="-ldl $LIBS"
12966
12967 fi
12968
12969 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12970 # Sun randomly tweaked the prototypes in <proc_service.h>
12971 # at one point.
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12973 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12974 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980
12981 #include <proc_service.h>
12982 ps_err_e ps_pdwrite
12983 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12984
12985 int
12986 main ()
12987 {
12988
12989 ;
12990 return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_c_try_compile "$LINENO"; then :
12994 gdb_cv_proc_service_is_old=no
12995 else
12996 gdb_cv_proc_service_is_old=yes
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12999
13000 fi
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13003 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13004 if test $gdb_cv_proc_service_is_old = yes; then
13005
13006 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13007
13008 fi
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012 fi
13013 ;;
13014 aix*)
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13016 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13017 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 #include <sys/pthdebug.h>
13023 int
13024 main ()
13025 {
13026 #ifndef PTHDB_VERSION_3
13027 #error
13028 #endif
13029 ;
13030 return 0;
13031 }
13032 _ACEOF
13033 if ac_fn_c_try_compile "$LINENO"; then :
13034 gdb_cv_have_aix_thread_debug=yes
13035 else
13036 gdb_cv_have_aix_thread_debug=no
13037 fi
13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039 fi
13040
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13042 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13043 if test $gdb_cv_have_aix_thread_debug = yes; then
13044 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13045 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13046 LIBS="$LIBS -lpthdebug"
13047
13048 # Older versions of AIX do not provide the declaration for
13049 # the getthrds function (it appears that it was introduced
13050 # with AIX 6.x).
13051 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13052 "
13053 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
13054 ac_have_decl=1
13055 else
13056 ac_have_decl=0
13057 fi
13058
13059 cat >>confdefs.h <<_ACEOF
13060 #define HAVE_DECL_GETTHRDS $ac_have_decl
13061 _ACEOF
13062
13063 fi
13064 ;;
13065 esac
13066
13067 fi
13068
13069 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13071 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13072 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13077 #include <thread_db.h>
13078 int
13079 main ()
13080 {
13081 int i = TD_NOTALLOC;
13082 ;
13083 return 0;
13084 }
13085 _ACEOF
13086 if ac_fn_c_try_compile "$LINENO"; then :
13087 gdb_cv_thread_db_h_has_td_notalloc=yes
13088 else
13089 gdb_cv_thread_db_h_has_td_notalloc=no
13090
13091 fi
13092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093
13094 fi
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13096 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13098 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13099 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 #include <thread_db.h>
13105 int
13106 main ()
13107 {
13108 int i = TD_VERSION;
13109 ;
13110 return 0;
13111 }
13112 _ACEOF
13113 if ac_fn_c_try_compile "$LINENO"; then :
13114 gdb_cv_thread_db_h_has_td_version=yes
13115 else
13116 gdb_cv_thread_db_h_has_td_version=no
13117
13118 fi
13119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13120
13121 fi
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13123 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13125 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13126 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131 #include <thread_db.h>
13132 int
13133 main ()
13134 {
13135 int i = TD_NOTLS;
13136 ;
13137 return 0;
13138 }
13139 _ACEOF
13140 if ac_fn_c_try_compile "$LINENO"; then :
13141 gdb_cv_thread_db_h_has_td_notls=yes
13142 else
13143 gdb_cv_thread_db_h_has_td_notls=no
13144
13145 fi
13146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13147
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13150 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13151 fi
13152 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13153
13154 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13155
13156 fi
13157 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13158
13159 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13160
13161 fi
13162 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13163
13164 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13165
13166 fi
13167
13168 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13170 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13171 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13172 $as_echo_n "(cached) " >&6
13173 else
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176 #include <sys/syscall.h>
13177 int
13178 main ()
13179 {
13180 int i = __NR_tkill;
13181 ;
13182 return 0;
13183 }
13184 _ACEOF
13185 if ac_fn_c_try_compile "$LINENO"; then :
13186 gdb_cv_sys_syscall_h_has_tkill=yes
13187 else
13188 gdb_cv_sys_syscall_h_has_tkill=no
13189
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192
13193 fi
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13195 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13196 fi
13197 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
13198 ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
13199 if test "x$ac_cv_func_syscall" = x""yes; then :
13200
13201 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13202
13203
13204 fi
13205
13206 fi
13207
13208 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13209 "
13210 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
13211 ac_have_decl=1
13212 else
13213 ac_have_decl=0
13214 fi
13215
13216 cat >>confdefs.h <<_ACEOF
13217 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13218 _ACEOF
13219
13220
13221 if test "$cross_compiling" = yes; then :
13222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13224 #include <sys/personality.h>
13225 int
13226 main ()
13227 {
13228
13229 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13230 # define ADDR_NO_RANDOMIZE 0x0040000
13231 # endif
13232 /* Test the flag could be set and stays set. */
13233 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13234 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13235 return 1
13236 ;
13237 return 0;
13238 }
13239 _ACEOF
13240 if ac_fn_c_try_link "$LINENO"; then :
13241 have_personality=true
13242 else
13243 have_personality=false
13244 fi
13245 rm -f core conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13247 else
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250 #include <sys/personality.h>
13251 int
13252 main ()
13253 {
13254
13255 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13256 # define ADDR_NO_RANDOMIZE 0x0040000
13257 # endif
13258 /* Test the flag could be set and stays set. */
13259 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13260 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13261 return 1
13262 ;
13263 return 0;
13264 }
13265 _ACEOF
13266 if ac_fn_c_try_run "$LINENO"; then :
13267 have_personality=true
13268 else
13269 have_personality=false
13270 fi
13271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13272 conftest.$ac_objext conftest.beam conftest.$ac_ext
13273 fi
13274
13275 if $have_personality
13276 then
13277
13278 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13279
13280 fi
13281
13282 case $host_os in
13283 go32* | *djgpp*)
13284 gdbinit=gdb.ini
13285 ;;
13286 *)
13287 gdbinit=.gdbinit
13288 ;;
13289 esac
13290
13291 cat >>confdefs.h <<_ACEOF
13292 #define GDBINIT "$gdbinit"
13293 _ACEOF
13294
13295
13296
13297 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
13298 # except that the argument to --with-sysroot is optional.
13299 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
13300 if test "x$with_sysroot" = xyes; then
13301 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
13302 fi
13303
13304 # Check whether --with-sysroot was given.
13305 if test "${with_sysroot+set}" = set; then :
13306 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
13307 else
13308 TARGET_SYSTEM_ROOT=
13309 fi
13310
13311
13312 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13314 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
13315 ac_define_dir=`eval echo $ac_define_dir`
13316
13317 cat >>confdefs.h <<_ACEOF
13318 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
13319 _ACEOF
13320
13321
13322
13323
13324 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13325 if test "x$prefix" = xNONE; then
13326 test_prefix=/usr/local
13327 else
13328 test_prefix=$prefix
13329 fi
13330 else
13331 test_prefix=$exec_prefix
13332 fi
13333 value=0
13334 case ${ac_define_dir} in
13335 "${test_prefix}"|"${test_prefix}/"*|\
13336 '${exec_prefix}'|'${exec_prefix}/'*)
13337 value=1
13338 ;;
13339 esac
13340
13341 cat >>confdefs.h <<_ACEOF
13342 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
13343 _ACEOF
13344
13345
13346
13347
13348
13349 # Check whether --with-system-gdbinit was given.
13350 if test "${with_system_gdbinit+set}" = set; then :
13351 withval=$with_system_gdbinit;
13352 SYSTEM_GDBINIT=$withval
13353 else
13354 SYSTEM_GDBINIT=
13355 fi
13356
13357
13358 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13359 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13360 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
13361 ac_define_dir=`eval echo $ac_define_dir`
13362
13363 cat >>confdefs.h <<_ACEOF
13364 #define SYSTEM_GDBINIT "$ac_define_dir"
13365 _ACEOF
13366
13367
13368
13369
13370 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13371 if test "x$prefix" = xNONE; then
13372 test_prefix=/usr/local
13373 else
13374 test_prefix=$prefix
13375 fi
13376 else
13377 test_prefix=$exec_prefix
13378 fi
13379 value=0
13380 case ${ac_define_dir} in
13381 "${test_prefix}"|"${test_prefix}/"*|\
13382 '${exec_prefix}'|'${exec_prefix}/'*)
13383 value=1
13384 ;;
13385 esac
13386
13387 cat >>confdefs.h <<_ACEOF
13388 #define SYSTEM_GDBINIT_RELOCATABLE $value
13389 _ACEOF
13390
13391
13392
13393
13394 # Check whether --enable-werror was given.
13395 if test "${enable_werror+set}" = set; then :
13396 enableval=$enable_werror; case "${enableval}" in
13397 yes | y) ERROR_ON_WARNING="yes" ;;
13398 no | n) ERROR_ON_WARNING="no" ;;
13399 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13400 esac
13401 fi
13402
13403
13404 # Enable -Werror by default when using gcc in C mode. Leave it off
13405 # for C++ until we're warning clean. Turn it off for releases.
13406 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
13407 && test x"$enable_build_with_cxx" != x"yes" \
13408 && $development; then
13409 ERROR_ON_WARNING=yes
13410 fi
13411
13412 WERROR_CFLAGS=""
13413 if test "${ERROR_ON_WARNING}" = yes ; then
13414 WERROR_CFLAGS="-Werror"
13415 fi
13416
13417 # These options work in either C or C++ modes.
13418 build_warnings="-Wall -Wpointer-arith \
13419 -Wno-unused -Wunused-value -Wunused-function \
13420 -Wno-switch -Wno-char-subscripts \
13421 -Wempty-body"
13422
13423 # Now add in C and C++ specific options, depending on mode.
13424 if test "$enable_build_with_cxx" = "yes"; then
13425 build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
13426 -Wno-narrowing"
13427 else
13428 build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
13429 -Wdeclaration-after-statement -Wmissing-parameter-type \
13430 -Wold-style-declaration -Wold-style-definition"
13431 fi
13432
13433 # Enable -Wno-format by default when using gcc on mingw since many
13434 # GCC versions complain about %I64.
13435 case "${host}" in
13436 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13437 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
13438 esac
13439
13440 # Check whether --enable-build-warnings was given.
13441 if test "${enable_build_warnings+set}" = set; then :
13442 enableval=$enable_build_warnings; case "${enableval}" in
13443 yes) ;;
13444 no) build_warnings="-w";;
13445 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13446 build_warnings="${build_warnings} ${t}";;
13447 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13448 build_warnings="${t} ${build_warnings}";;
13449 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13450 esac
13451 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13452 echo "Setting compiler warning flags = $build_warnings" 6>&1
13453 fi
13454 fi
13455 # Check whether --enable-gdb-build-warnings was given.
13456 if test "${enable_gdb_build_warnings+set}" = set; then :
13457 enableval=$enable_gdb_build_warnings; case "${enableval}" in
13458 yes) ;;
13459 no) build_warnings="-w";;
13460 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13461 build_warnings="${build_warnings} ${t}";;
13462 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13463 build_warnings="${t} ${build_warnings}";;
13464 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13465 esac
13466 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13467 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13468 fi
13469 fi
13470
13471 # The set of warnings supported by a C++ compiler is not the same as
13472 # of the C compiler.
13473 if test "$enable_build_with_cxx" = "yes"; then
13474 ac_ext=cpp
13475 ac_cpp='$CXXCPP $CPPFLAGS'
13476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13479
13480 fi
13481
13482 WARN_CFLAGS=""
13483 if test "x${build_warnings}" != x -a "x$GCC" = xyes
13484 then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13486 $as_echo_n "checking compiler warning flags... " >&6; }
13487 # Separate out the -Werror flag as some files just cannot be
13488 # compiled with it enabled.
13489 for w in ${build_warnings}; do
13490 case $w in
13491 -Werr*) WERROR_CFLAGS=-Werror ;;
13492 *)
13493 # Check whether GCC accepts it.
13494 saved_CFLAGS="$CFLAGS"
13495 CFLAGS="$CFLAGS $w"
13496 saved_CXXFLAGS="$CXXFLAGS"
13497 CXXFLAGS="$CXXFLAGS $w"
13498
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13501
13502 int
13503 main ()
13504 {
13505
13506 ;
13507 return 0;
13508 }
13509 _ACEOF
13510 if ac_fn_cxx_try_compile "$LINENO"; then :
13511 WARN_CFLAGS="${WARN_CFLAGS} $w"
13512 fi
13513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13514 CFLAGS="$saved_CFLAGS"
13515 CXXFLAGS="$saved_CXXFLAGS"
13516 esac
13517 done
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13519 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13520 fi
13521
13522
13523
13524 if test "$enable_build_with_cxx" = "yes"; then
13525 ac_ext=c
13526 ac_cpp='$CPP $CPPFLAGS'
13527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13530
13531 fi
13532
13533 # In the Cygwin environment, we need some additional flags.
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13535 $as_echo_n "checking for cygwin... " >&6; }
13536 if test "${gdb_cv_os_cygwin+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541
13542 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13543 lose
13544 #endif
13545 _ACEOF
13546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13547 $EGREP "^lose$" >/dev/null 2>&1; then :
13548 gdb_cv_os_cygwin=yes
13549 else
13550 gdb_cv_os_cygwin=no
13551 fi
13552 rm -f conftest*
13553
13554 fi
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
13556 $as_echo "$gdb_cv_os_cygwin" >&6; }
13557
13558
13559 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
13560 case ${host} in
13561 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13562 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13563 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
13564 esac
13565
13566
13567 # libreadline needs libuser32.a in a cygwin environment
13568 WIN32LIBS=
13569 if test x$gdb_cv_os_cygwin = xyes; then
13570 WIN32LIBS="-luser32"
13571 case "${target}" in
13572 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13573 ;;
13574 esac
13575 fi
13576
13577 # The ser-tcp.c module requires sockets.
13578 case ${host} in
13579 *mingw32*)
13580
13581 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13582
13583 WIN32LIBS="$WIN32LIBS -lws2_32"
13584 ;;
13585 esac
13586
13587
13588 # Add ELF support to GDB, but only if BFD includes ELF support.
13589
13590 OLD_CFLAGS=$CFLAGS
13591 OLD_LDFLAGS=$LDFLAGS
13592 OLD_LIBS=$LIBS
13593 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13594 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13595 # always want our bfd.
13596 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13597 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13598 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13599 LIBS="-lbfd -liberty $intl $LIBS"
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13601 $as_echo_n "checking for ELF support in BFD... " >&6; }
13602 if test "${gdb_cv_var_elf+set}" = set; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607 #include <stdlib.h>
13608 #include "bfd.h"
13609 #include "elf-bfd.h"
13610
13611 int
13612 main ()
13613 {
13614 return bfd_get_elf_phdr_upper_bound (NULL);
13615 ;
13616 return 0;
13617 }
13618 _ACEOF
13619 if ac_fn_c_try_link "$LINENO"; then :
13620 gdb_cv_var_elf=yes
13621 else
13622 gdb_cv_var_elf=no
13623 fi
13624 rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13628 $as_echo "$gdb_cv_var_elf" >&6; }
13629 CFLAGS=$OLD_CFLAGS
13630 LDFLAGS=$OLD_LDFLAGS
13631 LIBS=$OLD_LIBS
13632 if test $gdb_cv_var_elf = yes; then
13633 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
13634
13635 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13636
13637 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13638 if test "$plugins" = "yes"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13640 $as_echo_n "checking for library containing dlopen... " >&6; }
13641 if test "${ac_cv_search_dlopen+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 ac_func_search_save_LIBS=$LIBS
13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h. */
13647
13648 /* Override any GCC internal prototype to avoid an error.
13649 Use char because int might match the return type of a GCC
13650 builtin and then its argument prototype would still apply. */
13651 #ifdef __cplusplus
13652 extern "C"
13653 #endif
13654 char dlopen ();
13655 int
13656 main ()
13657 {
13658 return dlopen ();
13659 ;
13660 return 0;
13661 }
13662 _ACEOF
13663 for ac_lib in '' dl; do
13664 if test -z "$ac_lib"; then
13665 ac_res="none required"
13666 else
13667 ac_res=-l$ac_lib
13668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13669 fi
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 ac_cv_search_dlopen=$ac_res
13672 fi
13673 rm -f core conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext
13675 if test "${ac_cv_search_dlopen+set}" = set; then :
13676 break
13677 fi
13678 done
13679 if test "${ac_cv_search_dlopen+set}" = set; then :
13680
13681 else
13682 ac_cv_search_dlopen=no
13683 fi
13684 rm conftest.$ac_ext
13685 LIBS=$ac_func_search_save_LIBS
13686 fi
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13688 $as_echo "$ac_cv_search_dlopen" >&6; }
13689 ac_res=$ac_cv_search_dlopen
13690 if test "$ac_res" != no; then :
13691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13692
13693 fi
13694
13695 fi
13696 fi
13697
13698 # Add macho support to GDB, but only if BFD includes it.
13699
13700 OLD_CFLAGS=$CFLAGS
13701 OLD_LDFLAGS=$LDFLAGS
13702 OLD_LIBS=$LIBS
13703 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13704 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13705 # always want our bfd.
13706 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13707 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13708 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13709 LIBS="-lbfd -liberty $intl $LIBS"
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13711 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13712 if test "${gdb_cv_var_macho+set}" = set; then :
13713 $as_echo_n "(cached) " >&6
13714 else
13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13717 #include <stdlib.h>
13718 #include "bfd.h"
13719 #include "mach-o.h"
13720
13721 int
13722 main ()
13723 {
13724 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13725 ;
13726 return 0;
13727 }
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"; then :
13730 gdb_cv_var_macho=yes
13731 else
13732 gdb_cv_var_macho=no
13733 fi
13734 rm -f core conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext conftest.$ac_ext
13736 fi
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13738 $as_echo "$gdb_cv_var_macho" >&6; }
13739 CFLAGS=$OLD_CFLAGS
13740 LDFLAGS=$OLD_LDFLAGS
13741 LIBS=$OLD_LIBS
13742 if test $gdb_cv_var_macho = yes; then
13743 CONFIG_OBS="$CONFIG_OBS machoread.o"
13744 fi
13745
13746 # Add SOM support to GDB, but only if BFD includes it.
13747
13748 OLD_CFLAGS=$CFLAGS
13749 OLD_LDFLAGS=$LDFLAGS
13750 OLD_LIBS=$LIBS
13751 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13752 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13753 # always want our bfd.
13754 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13755 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13756 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13757 LIBS="-lbfd -liberty $intl $LIBS"
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
13759 $as_echo_n "checking for SOM support in BFD... " >&6; }
13760 if test "${gdb_cv_var_som+set}" = set; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13765 #include <stdlib.h>
13766 #include "bfd.h"
13767 #include "som.h"
13768
13769 int
13770 main ()
13771 {
13772 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
13773 ;
13774 return 0;
13775 }
13776 _ACEOF
13777 if ac_fn_c_try_link "$LINENO"; then :
13778 gdb_cv_var_som=yes
13779 else
13780 gdb_cv_var_som=no
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext \
13783 conftest$ac_exeext conftest.$ac_ext
13784 fi
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
13786 $as_echo "$gdb_cv_var_som" >&6; }
13787 CFLAGS=$OLD_CFLAGS
13788 LDFLAGS=$OLD_LDFLAGS
13789 LIBS=$OLD_LIBS
13790 if test $gdb_cv_var_som = yes; then
13791 CONFIG_OBS="$CONFIG_OBS somread.o"
13792 fi
13793
13794 # Add any host-specific objects to GDB.
13795 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
13796
13797 # If building on ELF, look for lzma support for embedded compressed debug info.
13798 if test $gdb_cv_var_elf = yes; then
13799
13800 # Check whether --with-lzma was given.
13801 if test "${with_lzma+set}" = set; then :
13802 withval=$with_lzma;
13803 else
13804 with_lzma=auto
13805 fi
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13808 $as_echo_n "checking whether to use lzma... " >&6; }
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13810 $as_echo "$with_lzma" >&6; }
13811
13812 if test "${with_lzma}" != no; then
13813
13814
13815
13816
13817
13818
13819
13820
13821 use_additional=yes
13822
13823 acl_save_prefix="$prefix"
13824 prefix="$acl_final_prefix"
13825 acl_save_exec_prefix="$exec_prefix"
13826 exec_prefix="$acl_final_exec_prefix"
13827
13828 eval additional_includedir=\"$includedir\"
13829 eval additional_libdir=\"$libdir\"
13830
13831 exec_prefix="$acl_save_exec_prefix"
13832 prefix="$acl_save_prefix"
13833
13834
13835 # Check whether --with-liblzma-prefix was given.
13836 if test "${with_liblzma_prefix+set}" = set; then :
13837 withval=$with_liblzma_prefix;
13838 if test "X$withval" = "Xno"; then
13839 use_additional=no
13840 else
13841 if test "X$withval" = "X"; then
13842
13843 acl_save_prefix="$prefix"
13844 prefix="$acl_final_prefix"
13845 acl_save_exec_prefix="$exec_prefix"
13846 exec_prefix="$acl_final_exec_prefix"
13847
13848 eval additional_includedir=\"$includedir\"
13849 eval additional_libdir=\"$libdir\"
13850
13851 exec_prefix="$acl_save_exec_prefix"
13852 prefix="$acl_save_prefix"
13853
13854 else
13855 additional_includedir="$withval/include"
13856 additional_libdir="$withval/lib"
13857 fi
13858 fi
13859
13860 fi
13861
13862 LIBLZMA=
13863 LTLIBLZMA=
13864 INCLZMA=
13865 rpathdirs=
13866 ltrpathdirs=
13867 names_already_handled=
13868 names_next_round='lzma '
13869 while test -n "$names_next_round"; do
13870 names_this_round="$names_next_round"
13871 names_next_round=
13872 for name in $names_this_round; do
13873 already_handled=
13874 for n in $names_already_handled; do
13875 if test "$n" = "$name"; then
13876 already_handled=yes
13877 break
13878 fi
13879 done
13880 if test -z "$already_handled"; then
13881 names_already_handled="$names_already_handled $name"
13882 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13883 eval value=\"\$HAVE_LIB$uppername\"
13884 if test -n "$value"; then
13885 if test "$value" = yes; then
13886 eval value=\"\$LIB$uppername\"
13887 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
13888 eval value=\"\$LTLIB$uppername\"
13889 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13890 else
13891 :
13892 fi
13893 else
13894 found_dir=
13895 found_la=
13896 found_so=
13897 found_a=
13898 if test $use_additional = yes; then
13899 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13900 found_dir="$additional_libdir"
13901 found_so="$additional_libdir/lib$name.$shlibext"
13902 if test -f "$additional_libdir/lib$name.la"; then
13903 found_la="$additional_libdir/lib$name.la"
13904 fi
13905 else
13906 if test -f "$additional_libdir/lib$name.$libext"; then
13907 found_dir="$additional_libdir"
13908 found_a="$additional_libdir/lib$name.$libext"
13909 if test -f "$additional_libdir/lib$name.la"; then
13910 found_la="$additional_libdir/lib$name.la"
13911 fi
13912 fi
13913 fi
13914 fi
13915 if test "X$found_dir" = "X"; then
13916 for x in $LDFLAGS $LTLIBLZMA; do
13917
13918 acl_save_prefix="$prefix"
13919 prefix="$acl_final_prefix"
13920 acl_save_exec_prefix="$exec_prefix"
13921 exec_prefix="$acl_final_exec_prefix"
13922 eval x=\"$x\"
13923 exec_prefix="$acl_save_exec_prefix"
13924 prefix="$acl_save_prefix"
13925
13926 case "$x" in
13927 -L*)
13928 dir=`echo "X$x" | sed -e 's/^X-L//'`
13929 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13930 found_dir="$dir"
13931 found_so="$dir/lib$name.$shlibext"
13932 if test -f "$dir/lib$name.la"; then
13933 found_la="$dir/lib$name.la"
13934 fi
13935 else
13936 if test -f "$dir/lib$name.$libext"; then
13937 found_dir="$dir"
13938 found_a="$dir/lib$name.$libext"
13939 if test -f "$dir/lib$name.la"; then
13940 found_la="$dir/lib$name.la"
13941 fi
13942 fi
13943 fi
13944 ;;
13945 esac
13946 if test "X$found_dir" != "X"; then
13947 break
13948 fi
13949 done
13950 fi
13951 if test "X$found_dir" != "X"; then
13952 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13953 if test "X$found_so" != "X"; then
13954 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13955 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13956 else
13957 haveit=
13958 for x in $ltrpathdirs; do
13959 if test "X$x" = "X$found_dir"; then
13960 haveit=yes
13961 break
13962 fi
13963 done
13964 if test -z "$haveit"; then
13965 ltrpathdirs="$ltrpathdirs $found_dir"
13966 fi
13967 if test "$hardcode_direct" = yes; then
13968 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13969 else
13970 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13971 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13972 haveit=
13973 for x in $rpathdirs; do
13974 if test "X$x" = "X$found_dir"; then
13975 haveit=yes
13976 break
13977 fi
13978 done
13979 if test -z "$haveit"; then
13980 rpathdirs="$rpathdirs $found_dir"
13981 fi
13982 else
13983 haveit=
13984 for x in $LDFLAGS $LIBLZMA; do
13985
13986 acl_save_prefix="$prefix"
13987 prefix="$acl_final_prefix"
13988 acl_save_exec_prefix="$exec_prefix"
13989 exec_prefix="$acl_final_exec_prefix"
13990 eval x=\"$x\"
13991 exec_prefix="$acl_save_exec_prefix"
13992 prefix="$acl_save_prefix"
13993
13994 if test "X$x" = "X-L$found_dir"; then
13995 haveit=yes
13996 break
13997 fi
13998 done
13999 if test -z "$haveit"; then
14000 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14001 fi
14002 if test "$hardcode_minus_L" != no; then
14003 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
14004 else
14005 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14006 fi
14007 fi
14008 fi
14009 fi
14010 else
14011 if test "X$found_a" != "X"; then
14012 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
14013 else
14014 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14015 fi
14016 fi
14017 additional_includedir=
14018 case "$found_dir" in
14019 */lib | */lib/)
14020 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14021 additional_includedir="$basedir/include"
14022 ;;
14023 esac
14024 if test "X$additional_includedir" != "X"; then
14025 if test "X$additional_includedir" != "X/usr/include"; then
14026 haveit=
14027 if test "X$additional_includedir" = "X/usr/local/include"; then
14028 if test -n "$GCC"; then
14029 case $host_os in
14030 linux*) haveit=yes;;
14031 esac
14032 fi
14033 fi
14034 if test -z "$haveit"; then
14035 for x in $CPPFLAGS $INCLZMA; do
14036
14037 acl_save_prefix="$prefix"
14038 prefix="$acl_final_prefix"
14039 acl_save_exec_prefix="$exec_prefix"
14040 exec_prefix="$acl_final_exec_prefix"
14041 eval x=\"$x\"
14042 exec_prefix="$acl_save_exec_prefix"
14043 prefix="$acl_save_prefix"
14044
14045 if test "X$x" = "X-I$additional_includedir"; then
14046 haveit=yes
14047 break
14048 fi
14049 done
14050 if test -z "$haveit"; then
14051 if test -d "$additional_includedir"; then
14052 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14053 fi
14054 fi
14055 fi
14056 fi
14057 fi
14058 if test -n "$found_la"; then
14059 save_libdir="$libdir"
14060 case "$found_la" in
14061 */* | *\\*) . "$found_la" ;;
14062 *) . "./$found_la" ;;
14063 esac
14064 libdir="$save_libdir"
14065 for dep in $dependency_libs; do
14066 case "$dep" in
14067 -L*)
14068 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14069 if test "X$additional_libdir" != "X/usr/lib"; then
14070 haveit=
14071 if test "X$additional_libdir" = "X/usr/local/lib"; then
14072 if test -n "$GCC"; then
14073 case $host_os in
14074 linux*) haveit=yes;;
14075 esac
14076 fi
14077 fi
14078 if test -z "$haveit"; then
14079 haveit=
14080 for x in $LDFLAGS $LIBLZMA; do
14081
14082 acl_save_prefix="$prefix"
14083 prefix="$acl_final_prefix"
14084 acl_save_exec_prefix="$exec_prefix"
14085 exec_prefix="$acl_final_exec_prefix"
14086 eval x=\"$x\"
14087 exec_prefix="$acl_save_exec_prefix"
14088 prefix="$acl_save_prefix"
14089
14090 if test "X$x" = "X-L$additional_libdir"; then
14091 haveit=yes
14092 break
14093 fi
14094 done
14095 if test -z "$haveit"; then
14096 if test -d "$additional_libdir"; then
14097 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14098 fi
14099 fi
14100 haveit=
14101 for x in $LDFLAGS $LTLIBLZMA; do
14102
14103 acl_save_prefix="$prefix"
14104 prefix="$acl_final_prefix"
14105 acl_save_exec_prefix="$exec_prefix"
14106 exec_prefix="$acl_final_exec_prefix"
14107 eval x=\"$x\"
14108 exec_prefix="$acl_save_exec_prefix"
14109 prefix="$acl_save_prefix"
14110
14111 if test "X$x" = "X-L$additional_libdir"; then
14112 haveit=yes
14113 break
14114 fi
14115 done
14116 if test -z "$haveit"; then
14117 if test -d "$additional_libdir"; then
14118 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14119 fi
14120 fi
14121 fi
14122 fi
14123 ;;
14124 -R*)
14125 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14126 if test "$enable_rpath" != no; then
14127 haveit=
14128 for x in $rpathdirs; do
14129 if test "X$x" = "X$dir"; then
14130 haveit=yes
14131 break
14132 fi
14133 done
14134 if test -z "$haveit"; then
14135 rpathdirs="$rpathdirs $dir"
14136 fi
14137 haveit=
14138 for x in $ltrpathdirs; do
14139 if test "X$x" = "X$dir"; then
14140 haveit=yes
14141 break
14142 fi
14143 done
14144 if test -z "$haveit"; then
14145 ltrpathdirs="$ltrpathdirs $dir"
14146 fi
14147 fi
14148 ;;
14149 -l*)
14150 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14151 ;;
14152 *.la)
14153 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14154 ;;
14155 *)
14156 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
14157 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14158 ;;
14159 esac
14160 done
14161 fi
14162 else
14163 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14164 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14165 fi
14166 fi
14167 fi
14168 done
14169 done
14170 if test "X$rpathdirs" != "X"; then
14171 if test -n "$hardcode_libdir_separator"; then
14172 alldirs=
14173 for found_dir in $rpathdirs; do
14174 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14175 done
14176 acl_save_libdir="$libdir"
14177 libdir="$alldirs"
14178 eval flag=\"$hardcode_libdir_flag_spec\"
14179 libdir="$acl_save_libdir"
14180 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14181 else
14182 for found_dir in $rpathdirs; do
14183 acl_save_libdir="$libdir"
14184 libdir="$found_dir"
14185 eval flag=\"$hardcode_libdir_flag_spec\"
14186 libdir="$acl_save_libdir"
14187 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14188 done
14189 fi
14190 fi
14191 if test "X$ltrpathdirs" != "X"; then
14192 for found_dir in $ltrpathdirs; do
14193 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14194 done
14195 fi
14196
14197
14198 ac_save_CPPFLAGS="$CPPFLAGS"
14199
14200 for element in $INCLZMA; do
14201 haveit=
14202 for x in $CPPFLAGS; do
14203
14204 acl_save_prefix="$prefix"
14205 prefix="$acl_final_prefix"
14206 acl_save_exec_prefix="$exec_prefix"
14207 exec_prefix="$acl_final_exec_prefix"
14208 eval x=\"$x\"
14209 exec_prefix="$acl_save_exec_prefix"
14210 prefix="$acl_save_prefix"
14211
14212 if test "X$x" = "X$element"; then
14213 haveit=yes
14214 break
14215 fi
14216 done
14217 if test -z "$haveit"; then
14218 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14219 fi
14220 done
14221
14222
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
14224 $as_echo_n "checking for liblzma... " >&6; }
14225 if test "${ac_cv_liblzma+set}" = set; then :
14226 $as_echo_n "(cached) " >&6
14227 else
14228
14229 ac_save_LIBS="$LIBS"
14230 LIBS="$LIBS $LIBLZMA"
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14233 #include "lzma.h"
14234 int
14235 main ()
14236 {
14237 lzma_index_iter iter;
14238 lzma_index_iter_init (&iter, 0);
14239 lzma_mf_is_supported (LZMA_MF_HC3);
14240 ;
14241 return 0;
14242 }
14243 _ACEOF
14244 if ac_fn_c_try_link "$LINENO"; then :
14245 ac_cv_liblzma=yes
14246 else
14247 ac_cv_liblzma=no
14248 fi
14249 rm -f core conftest.err conftest.$ac_objext \
14250 conftest$ac_exeext conftest.$ac_ext
14251 LIBS="$ac_save_LIBS"
14252
14253 fi
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
14255 $as_echo "$ac_cv_liblzma" >&6; }
14256 if test "$ac_cv_liblzma" = yes; then
14257 HAVE_LIBLZMA=yes
14258
14259 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14260
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
14262 $as_echo_n "checking how to link with liblzma... " >&6; }
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
14264 $as_echo "$LIBLZMA" >&6; }
14265 else
14266 HAVE_LIBLZMA=no
14267 CPPFLAGS="$ac_save_CPPFLAGS"
14268 LIBLZMA=
14269 LTLIBLZMA=
14270 fi
14271
14272
14273
14274
14275
14276
14277 if test "$HAVE_LIBLZMA" != yes; then
14278 if test "$with_lzma" = yes; then
14279 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
14280 fi
14281 fi
14282 fi
14283 fi
14284
14285 LIBGUI="../libgui/src/libgui.a"
14286 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14287
14288
14289
14290 WIN32LDAPP=
14291
14292
14293
14294 case "${host}" in
14295 *-*-cygwin* | *-*-mingw* )
14296 configdir="win"
14297 ;;
14298 *)
14299 configdir="unix"
14300 ;;
14301 esac
14302
14303 GDBTKLIBS=
14304 if test "${enable_gdbtk}" = "yes"; then
14305
14306 # Gdbtk must have an absolute path to srcdir in order to run
14307 # properly when not installed.
14308 here=`pwd`
14309 cd ${srcdir}
14310 GDBTK_SRC_DIR=`pwd`
14311 cd $here
14312
14313
14314 #
14315 # Ok, lets find the tcl configuration
14316 # First, look for one uninstalled.
14317 # the alternative search directory is invoked by --with-tcl
14318 #
14319
14320 if test x"${no_tcl}" = x ; then
14321 # we reset no_tcl in case something fails here
14322 no_tcl=true
14323
14324 # Check whether --with-tcl was given.
14325 if test "${with_tcl+set}" = set; then :
14326 withval=$with_tcl; with_tclconfig=${withval}
14327 fi
14328
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14330 $as_echo_n "checking for Tcl configuration... " >&6; }
14331 if test "${ac_cv_c_tclconfig+set}" = set; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334
14335
14336 # First check to see if --with-tcl was specified.
14337 case "${host}" in
14338 *-*-cygwin*) platDir="win" ;;
14339 *) platDir="unix" ;;
14340 esac
14341 if test x"${with_tclconfig}" != x ; then
14342 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14343 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
14344 else
14345 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14346 fi
14347 fi
14348
14349 # then check for a private Tcl installation
14350 if test x"${ac_cv_c_tclconfig}" = x ; then
14351 for i in \
14352 ../tcl \
14353 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14354 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14355 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14356 ../../tcl \
14357 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14358 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14359 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14360 ../../../tcl \
14361 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14362 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14363 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14364 if test -f "$i/$platDir/tclConfig.sh" ; then
14365 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14366 break
14367 fi
14368 done
14369 fi
14370
14371 # on Darwin, check in Framework installation locations
14372 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
14373 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14374 `ls -d /Library/Frameworks 2>/dev/null` \
14375 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14376 `ls -d /System/Library/Frameworks 2>/dev/null` \
14377 ; do
14378 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14379 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
14380 break
14381 fi
14382 done
14383 fi
14384
14385 # check in a few common install locations
14386 if test x"${ac_cv_c_tclconfig}" = x ; then
14387 for i in `ls -d ${libdir} 2>/dev/null` \
14388 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14389 `ls -d ${prefix}/lib 2>/dev/null` \
14390 `ls -d /usr/local/lib 2>/dev/null` \
14391 `ls -d /usr/contrib/lib 2>/dev/null` \
14392 `ls -d /usr/lib 2>/dev/null` \
14393 ; do
14394 if test -f "$i/tclConfig.sh" ; then
14395 ac_cv_c_tclconfig=`(cd $i; pwd)`
14396 break
14397 fi
14398 done
14399 fi
14400
14401 # check in a few other private locations
14402 if test x"${ac_cv_c_tclconfig}" = x ; then
14403 for i in \
14404 ${srcdir}/../tcl \
14405 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14406 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14407 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14408 if test -f "$i/$platDir/tclConfig.sh" ; then
14409 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14410 break
14411 fi
14412 done
14413 fi
14414
14415 fi
14416
14417
14418 if test x"${ac_cv_c_tclconfig}" = x ; then
14419 TCL_BIN_DIR="# no Tcl configs found"
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14421 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14422 else
14423 no_tcl=
14424 TCL_BIN_DIR=${ac_cv_c_tclconfig}
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14426 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14427 fi
14428 fi
14429
14430
14431 # If $no_tk is nonempty, then we can't do Tk, and there is no
14432 # point to doing Tcl.
14433
14434 #
14435 # Ok, lets find the tk configuration
14436 # First, look for one uninstalled.
14437 # the alternative search directory is invoked by --with-tk
14438 #
14439
14440 if test x"${no_tk}" = x ; then
14441 # we reset no_tk in case something fails here
14442 no_tk=true
14443
14444 # Check whether --with-tk was given.
14445 if test "${with_tk+set}" = set; then :
14446 withval=$with_tk; with_tkconfig=${withval}
14447 fi
14448
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14450 $as_echo_n "checking for Tk configuration... " >&6; }
14451 if test "${ac_cv_c_tkconfig+set}" = set; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454
14455
14456 # First check to see if --with-tkconfig was specified.
14457 if test x"${with_tkconfig}" != x ; then
14458 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14459 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
14460 else
14461 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14462 fi
14463 fi
14464
14465 # then check for a private Tk library
14466 case "${host}" in
14467 *-*-cygwin*) platDir="win" ;;
14468 *) platDir="unix" ;;
14469 esac
14470 if test x"${ac_cv_c_tkconfig}" = x ; then
14471 for i in \
14472 ../tk \
14473 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14474 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14475 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14476 ../../tk \
14477 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14478 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14479 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14480 ../../../tk \
14481 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14482 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14483 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14484 if test -f "$i/$platDir/tkConfig.sh" ; then
14485 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14486 break
14487 fi
14488 done
14489 fi
14490
14491 # on Darwin, check in Framework installation locations
14492 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
14493 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14494 `ls -d /Library/Frameworks 2>/dev/null` \
14495 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14496 `ls -d /System/Library/Frameworks 2>/dev/null` \
14497 ; do
14498 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14499 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
14500 break
14501 fi
14502 done
14503 fi
14504
14505 # check in a few common install locations
14506 if test x"${ac_cv_c_tkconfig}" = x ; then
14507 for i in `ls -d ${libdir} 2>/dev/null` \
14508 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14509 `ls -d ${prefix}/lib 2>/dev/null` \
14510 `ls -d /usr/local/lib 2>/dev/null` \
14511 `ls -d /usr/contrib/lib 2>/dev/null` \
14512 `ls -d /usr/lib 2>/dev/null` \
14513 ; do
14514 if test -f "$i/tkConfig.sh" ; then
14515 ac_cv_c_tkconfig=`(cd $i; pwd)`
14516 break
14517 fi
14518 done
14519 fi
14520 # check in a few other private locations
14521 if test x"${ac_cv_c_tkconfig}" = x ; then
14522 for i in \
14523 ${srcdir}/../tk \
14524 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14525 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14526 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14527 if test -f "$i/$platDir/tkConfig.sh" ; then
14528 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14529 break
14530 fi
14531 done
14532 fi
14533
14534 fi
14535
14536
14537 if test x"${ac_cv_c_tkconfig}" = x ; then
14538 TK_BIN_DIR="# no Tk configs found"
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14540 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14541 else
14542 no_tk=
14543 TK_BIN_DIR=${ac_cv_c_tkconfig}
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14545 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14546 fi
14547 fi
14548
14549
14550 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14553 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14554
14555 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14557 $as_echo "loading" >&6; }
14558 . ${TCL_BIN_DIR}/tclConfig.sh
14559 else
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14561 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14562 fi
14563
14564 # eval is required to do the TCL_DBGX substitution
14565 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14566 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14567
14568 # If the TCL_BIN_DIR is the build directory (not the install directory),
14569 # then set the common variable name to the value of the build variables.
14570 # For example, the variable TCL_LIB_SPEC will be set to the value
14571 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14572 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14573 # installed and uninstalled version of Tcl.
14574 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14575 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
14576 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
14577 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
14578 elif test "`uname -s`" = "Darwin"; then
14579 # If Tcl was built as a framework, attempt to use the libraries
14580 # from the framework at the given location so that linking works
14581 # against Tcl.framework installed in an arbitrary location.
14582 case ${TCL_DEFS} in
14583 *TCL_FRAMEWORK*)
14584 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14585 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
14586 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14587 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14588 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14589 break
14590 fi
14591 done
14592 fi
14593 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14594 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14595 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14596 fi
14597 ;;
14598 esac
14599 fi
14600
14601 # eval is required to do the TCL_DBGX substitution
14602 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14603 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14604 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14605 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621 # Check for in-tree tcl
14622 here=`pwd`
14623 cd ${srcdir}/..
14624 topdir=`pwd`
14625 cd ${here}
14626
14627 intree="no"
14628 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14629 intree="yes"
14630 fi
14631
14632 # Find Tcl private headers
14633 if test x"${intree}" = xno; then
14634
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14636 $as_echo_n "checking for Tcl private headers... " >&6; }
14637 private_dir=""
14638 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14639 if test -f ${dir}/tclInt.h ; then
14640 private_dir=${dir}
14641 fi
14642
14643 if test x"${private_dir}" = x; then
14644 as_fn_error "could not find private Tcl headers" "$LINENO" 5
14645 else
14646 TCL_PRIVATE_INCLUDE="-I${private_dir}"
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14648 $as_echo "${private_dir}" >&6; }
14649 fi
14650
14651 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14652 TCL_LIBRARY="${TCL_LIB_SPEC}"
14653 TCL_DEPS=""
14654 else
14655 # If building tcl in the same src tree, private headers
14656 # are not needed, but we need to be sure to use the right
14657 # headers library
14658 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
14659 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
14660 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
14661 fi
14662
14663
14664
14665
14666
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14668 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14669
14670 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14672 $as_echo "loading" >&6; }
14673 . ${TK_BIN_DIR}/tkConfig.sh
14674 else
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14676 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14677 fi
14678
14679 # eval is required to do the TK_DBGX substitution
14680 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14681 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14682
14683 # If the TK_BIN_DIR is the build directory (not the install directory),
14684 # then set the common variable name to the value of the build variables.
14685 # For example, the variable TK_LIB_SPEC will be set to the value
14686 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14687 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14688 # installed and uninstalled version of Tcl.
14689 if test -f "${TK_BIN_DIR}/Makefile" ; then
14690 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
14691 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
14692 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
14693 elif test "`uname -s`" = "Darwin"; then
14694 # If Tk was built as a framework, attempt to use the libraries
14695 # from the framework at the given location so that linking works
14696 # against Tk.framework installed in an arbitrary location.
14697 case ${TK_DEFS} in
14698 *TK_FRAMEWORK*)
14699 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14700 for i in "`cd ${TK_BIN_DIR}; pwd`" \
14701 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14702 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14703 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14704 break
14705 fi
14706 done
14707 fi
14708 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14709 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14710 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14711 fi
14712 ;;
14713 esac
14714 fi
14715
14716 # eval is required to do the TK_DBGX substitution
14717 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14718 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14719 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14720 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735 # Check for in-tree Tk
14736 intree="no"
14737 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14738 intree="yes"
14739 fi
14740
14741 # Find Tk private headers
14742 if test x"${intree}" = xno; then
14743
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14745 $as_echo_n "checking for Tk private headers... " >&6; }
14746 private_dir=""
14747 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14748 if test -f ${dir}/tkInt.h; then
14749 private_dir=${dir}
14750 fi
14751
14752 if test x"${private_dir}" = x; then
14753 as_fn_error "could not find Tk private headers" "$LINENO" 5
14754 else
14755 TK_PRIVATE_INCLUDE="-I${private_dir}"
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14757 $as_echo "${private_dir}" >&6; }
14758 fi
14759
14760 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14761 TK_LIBRARY=${TK_LIB_SPEC}
14762 TK_DEPS=""
14763 else
14764 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
14765 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
14766 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
14767 fi
14768
14769
14770
14771
14772
14773 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14774
14775 # Include some libraries that Tcl and Tk want.
14776 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14777 # Yes, the ordering seems wrong here. But it isn't.
14778 # TK_LIBS is the list of libraries that need to be linked
14779 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14780 # were in LIBS then any link tests after this point would
14781 # try to include things like `$(LIBGUI)', which wouldn't work.
14782 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
14783
14784 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14785 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14786 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14787 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
14788 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
14789 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
14790 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
14791
14792 if test x$gdb_cv_os_cygwin = xyes; then
14793 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14794 WIN32LDAPP="-Wl,--subsystem,console"
14795 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
14796 fi
14797
14798 subdirs="$subdirs gdbtk"
14799
14800 fi
14801 fi
14802
14803
14804
14805
14806
14807
14808
14809
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14811 $as_echo_n "checking for X... " >&6; }
14812
14813
14814 # Check whether --with-x was given.
14815 if test "${with_x+set}" = set; then :
14816 withval=$with_x;
14817 fi
14818
14819 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14820 if test "x$with_x" = xno; then
14821 # The user explicitly disabled X.
14822 have_x=disabled
14823 else
14824 case $x_includes,$x_libraries in #(
14825 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14826 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14828 else
14829 # One or both of the vars are not set, and there is no cached value.
14830 ac_x_includes=no ac_x_libraries=no
14831 rm -f -r conftest.dir
14832 if mkdir conftest.dir; then
14833 cd conftest.dir
14834 cat >Imakefile <<'_ACEOF'
14835 incroot:
14836 @echo incroot='${INCROOT}'
14837 usrlibdir:
14838 @echo usrlibdir='${USRLIBDIR}'
14839 libdir:
14840 @echo libdir='${LIBDIR}'
14841 _ACEOF
14842 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14844 for ac_var in incroot usrlibdir libdir; do
14845 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14846 done
14847 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14848 for ac_extension in a so sl dylib la dll; do
14849 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14850 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14851 ac_im_usrlibdir=$ac_im_libdir; break
14852 fi
14853 done
14854 # Screen out bogus values from the imake configuration. They are
14855 # bogus both because they are the default anyway, and because
14856 # using them would break gcc on systems where it needs fixed includes.
14857 case $ac_im_incroot in
14858 /usr/include) ac_x_includes= ;;
14859 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14860 esac
14861 case $ac_im_usrlibdir in
14862 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14863 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14864 esac
14865 fi
14866 cd ..
14867 rm -f -r conftest.dir
14868 fi
14869
14870 # Standard set of common directories for X headers.
14871 # Check X11 before X11Rn because it is often a symlink to the current release.
14872 ac_x_header_dirs='
14873 /usr/X11/include
14874 /usr/X11R7/include
14875 /usr/X11R6/include
14876 /usr/X11R5/include
14877 /usr/X11R4/include
14878
14879 /usr/include/X11
14880 /usr/include/X11R7
14881 /usr/include/X11R6
14882 /usr/include/X11R5
14883 /usr/include/X11R4
14884
14885 /usr/local/X11/include
14886 /usr/local/X11R7/include
14887 /usr/local/X11R6/include
14888 /usr/local/X11R5/include
14889 /usr/local/X11R4/include
14890
14891 /usr/local/include/X11
14892 /usr/local/include/X11R7
14893 /usr/local/include/X11R6
14894 /usr/local/include/X11R5
14895 /usr/local/include/X11R4
14896
14897 /usr/X386/include
14898 /usr/x386/include
14899 /usr/XFree86/include/X11
14900
14901 /usr/include
14902 /usr/local/include
14903 /usr/unsupported/include
14904 /usr/athena/include
14905 /usr/local/x11r5/include
14906 /usr/lpp/Xamples/include
14907
14908 /usr/openwin/include
14909 /usr/openwin/share/include'
14910
14911 if test "$ac_x_includes" = no; then
14912 # Guess where to find include files, by looking for Xlib.h.
14913 # First, try using that file with no special directory specified.
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916 #include <X11/Xlib.h>
14917 _ACEOF
14918 if ac_fn_c_try_cpp "$LINENO"; then :
14919 # We can compile using X headers with no special include directory.
14920 ac_x_includes=
14921 else
14922 for ac_dir in $ac_x_header_dirs; do
14923 if test -r "$ac_dir/X11/Xlib.h"; then
14924 ac_x_includes=$ac_dir
14925 break
14926 fi
14927 done
14928 fi
14929 rm -f conftest.err conftest.$ac_ext
14930 fi # $ac_x_includes = no
14931
14932 if test "$ac_x_libraries" = no; then
14933 # Check for the libraries.
14934 # See if we find them without any special options.
14935 # Don't add to $LIBS permanently.
14936 ac_save_LIBS=$LIBS
14937 LIBS="-lX11 $LIBS"
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 #include <X11/Xlib.h>
14941 int
14942 main ()
14943 {
14944 XrmInitialize ()
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"; then :
14950 LIBS=$ac_save_LIBS
14951 # We can link X programs with no special library path.
14952 ac_x_libraries=
14953 else
14954 LIBS=$ac_save_LIBS
14955 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14956 do
14957 # Don't even attempt the hair of trying to link an X program!
14958 for ac_extension in a so sl dylib la dll; do
14959 if test -r "$ac_dir/libX11.$ac_extension"; then
14960 ac_x_libraries=$ac_dir
14961 break 2
14962 fi
14963 done
14964 done
14965 fi
14966 rm -f core conftest.err conftest.$ac_objext \
14967 conftest$ac_exeext conftest.$ac_ext
14968 fi # $ac_x_libraries = no
14969
14970 case $ac_x_includes,$ac_x_libraries in #(
14971 no,* | *,no | *\'*)
14972 # Didn't find X, or a directory has "'" in its name.
14973 ac_cv_have_x="have_x=no";; #(
14974 *)
14975 # Record where we found X for the cache.
14976 ac_cv_have_x="have_x=yes\
14977 ac_x_includes='$ac_x_includes'\
14978 ac_x_libraries='$ac_x_libraries'"
14979 esac
14980 fi
14981 ;; #(
14982 *) have_x=yes;;
14983 esac
14984 eval "$ac_cv_have_x"
14985 fi # $with_x != no
14986
14987 if test "$have_x" != yes; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14989 $as_echo "$have_x" >&6; }
14990 no_x=yes
14991 else
14992 # If each of the values was on the command line, it overrides each guess.
14993 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14994 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14995 # Update the cache value to reflect the command line values.
14996 ac_cv_have_x="have_x=yes\
14997 ac_x_includes='$x_includes'\
14998 ac_x_libraries='$x_libraries'"
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15000 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15001 fi
15002
15003
15004 # Unlike the sim directory, whether a simulator is linked is controlled by
15005 # presence of a gdb_sim definition in the target configure.tgt entry.
15006 # This code just checks for a few cases where we'd like to ignore those
15007 # definitions, even when they're present in the '.mt' file. These cases
15008 # are when --disable-sim is specified, or if the simulator directory is
15009 # not part of the source tree.
15010 #
15011 # Check whether --enable-sim was given.
15012 if test "${enable_sim+set}" = set; then :
15013 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15014 echo "enableval = ${enableval}";
15015 case "${enableval}" in
15016 yes) ignore_sim=false ;;
15017 no) ignore_sim=true ;;
15018 *) ignore_sim=false ;;
15019 esac
15020 else
15021 ignore_sim=false
15022 fi
15023
15024
15025 if test ! -d "${srcdir}/../sim"; then
15026 ignore_sim=true
15027 fi
15028
15029 SIM=
15030 SIM_OBS=
15031 if test "${ignore_sim}" = "false"; then
15032 if test x"${gdb_sim}" != x ; then
15033 SIM="${gdb_sim}"
15034 SIM_OBS="remote-sim.o"
15035
15036 $as_echo "#define WITH_SIM 1" >>confdefs.h
15037
15038 fi
15039 fi
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054 # List of host floatformats.
15055
15056 cat >>confdefs.h <<_ACEOF
15057 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15058 _ACEOF
15059
15060
15061 cat >>confdefs.h <<_ACEOF
15062 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15063 _ACEOF
15064
15065
15066 cat >>confdefs.h <<_ACEOF
15067 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15068 _ACEOF
15069
15070
15071 # target_subdir is used by the testsuite to find the target libraries.
15072 target_subdir=
15073 if test "${host}" != "${target}"; then
15074 target_subdir="${target_alias}/"
15075 fi
15076
15077
15078 frags=
15079 if test "${gdb_native}" = "yes"; then
15080 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15081 if test ! -f ${host_makefile_frag}; then
15082 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15083 fi
15084 frags="$frags $host_makefile_frag"
15085 else
15086 host_makefile_frag=/dev/null
15087 fi
15088
15089
15090
15091
15092 if test "${gdb_native}" = "yes"; then
15093 # We pick this up from the host configuration file (.mh) because we
15094 # do not have a native configuration Makefile fragment.
15095 nativefile=`sed -n '
15096 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15097 ' ${host_makefile_frag}`
15098 fi
15099
15100
15101 if test x"${gdb_osabi}" != x ; then
15102
15103 cat >>confdefs.h <<_ACEOF
15104 #define GDB_OSABI_DEFAULT $gdb_osabi
15105 _ACEOF
15106
15107 fi
15108
15109 # Enable multi-ice-gdb-server.
15110 # Check whether --enable-multi-ice was given.
15111 if test "${enable_multi_ice+set}" = set; then :
15112 enableval=$enable_multi_ice; case $enableval in
15113 yes | no)
15114 ;;
15115 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15116 esac
15117 fi
15118
15119 if test "x$enable_multi_ice" = xyes; then
15120 subdirs="$subdirs multi-ice"
15121
15122 fi
15123
15124 # Check whether --enable-gdbserver was given.
15125 if test "${enable_gdbserver+set}" = set; then :
15126 enableval=$enable_gdbserver; case "${enableval}" in
15127 yes| no|auto) ;;
15128 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15129 esac
15130 else
15131 enable_gdbserver=auto
15132 fi
15133
15134
15135 # We only build gdbserver automatically in a native configuration, and
15136 # only if the user did not explicitly disable its build.
15137 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15139 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15140 if test "x$build_gdbserver" = xyes; then
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15142 $as_echo "yes" >&6; }
15143 subdirs="$subdirs gdbserver"
15144
15145 gdbserver_build_enabled=yes
15146 else
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15148 $as_echo "no" >&6; }
15149 fi
15150 fi
15151
15152 # If the user explicitly request the gdbserver to be built, verify that
15153 # we were in fact able to enable it.
15154 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15155 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15156 fi
15157
15158 # Check for babeltrace and babeltrace-ctf
15159
15160 # Check whether --with-babeltrace was given.
15161 if test "${with_babeltrace+set}" = set; then :
15162 withval=$with_babeltrace;
15163 else
15164 with_babeltrace=auto
15165 fi
15166
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15168 $as_echo_n "checking whether to use babeltrace... " >&6; }
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15170 $as_echo "$with_babeltrace" >&6; }
15171
15172 if test "x$with_babeltrace" = "xno"; then
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15174 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15175 else
15176 # Append -Werror to CFLAGS so that configure can catch the warning
15177 # "assignment from incompatible pointer type", which is related to
15178 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15179 # in GDB, while babeltrace 1.0.3 is broken.
15180 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15181 # safe to save and restore CFLAGS here.
15182 saved_CFLAGS=$CFLAGS
15183 CFLAGS="$CFLAGS -Werror"
15184
15185
15186
15187
15188
15189
15190
15191
15192 use_additional=yes
15193
15194 acl_save_prefix="$prefix"
15195 prefix="$acl_final_prefix"
15196 acl_save_exec_prefix="$exec_prefix"
15197 exec_prefix="$acl_final_exec_prefix"
15198
15199 eval additional_includedir=\"$includedir\"
15200 eval additional_libdir=\"$libdir\"
15201
15202 exec_prefix="$acl_save_exec_prefix"
15203 prefix="$acl_save_prefix"
15204
15205
15206 # Check whether --with-libbabeltrace-prefix was given.
15207 if test "${with_libbabeltrace_prefix+set}" = set; then :
15208 withval=$with_libbabeltrace_prefix;
15209 if test "X$withval" = "Xno"; then
15210 use_additional=no
15211 else
15212 if test "X$withval" = "X"; then
15213
15214 acl_save_prefix="$prefix"
15215 prefix="$acl_final_prefix"
15216 acl_save_exec_prefix="$exec_prefix"
15217 exec_prefix="$acl_final_exec_prefix"
15218
15219 eval additional_includedir=\"$includedir\"
15220 eval additional_libdir=\"$libdir\"
15221
15222 exec_prefix="$acl_save_exec_prefix"
15223 prefix="$acl_save_prefix"
15224
15225 else
15226 additional_includedir="$withval/include"
15227 additional_libdir="$withval/lib"
15228 fi
15229 fi
15230
15231 fi
15232
15233 LIBBABELTRACE=
15234 LTLIBBABELTRACE=
15235 INCBABELTRACE=
15236 rpathdirs=
15237 ltrpathdirs=
15238 names_already_handled=
15239 names_next_round='babeltrace babeltrace-ctf'
15240 while test -n "$names_next_round"; do
15241 names_this_round="$names_next_round"
15242 names_next_round=
15243 for name in $names_this_round; do
15244 already_handled=
15245 for n in $names_already_handled; do
15246 if test "$n" = "$name"; then
15247 already_handled=yes
15248 break
15249 fi
15250 done
15251 if test -z "$already_handled"; then
15252 names_already_handled="$names_already_handled $name"
15253 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15254 eval value=\"\$HAVE_LIB$uppername\"
15255 if test -n "$value"; then
15256 if test "$value" = yes; then
15257 eval value=\"\$LIB$uppername\"
15258 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
15259 eval value=\"\$LTLIB$uppername\"
15260 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
15261 else
15262 :
15263 fi
15264 else
15265 found_dir=
15266 found_la=
15267 found_so=
15268 found_a=
15269 if test $use_additional = yes; then
15270 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15271 found_dir="$additional_libdir"
15272 found_so="$additional_libdir/lib$name.$shlibext"
15273 if test -f "$additional_libdir/lib$name.la"; then
15274 found_la="$additional_libdir/lib$name.la"
15275 fi
15276 else
15277 if test -f "$additional_libdir/lib$name.$libext"; then
15278 found_dir="$additional_libdir"
15279 found_a="$additional_libdir/lib$name.$libext"
15280 if test -f "$additional_libdir/lib$name.la"; then
15281 found_la="$additional_libdir/lib$name.la"
15282 fi
15283 fi
15284 fi
15285 fi
15286 if test "X$found_dir" = "X"; then
15287 for x in $LDFLAGS $LTLIBBABELTRACE; do
15288
15289 acl_save_prefix="$prefix"
15290 prefix="$acl_final_prefix"
15291 acl_save_exec_prefix="$exec_prefix"
15292 exec_prefix="$acl_final_exec_prefix"
15293 eval x=\"$x\"
15294 exec_prefix="$acl_save_exec_prefix"
15295 prefix="$acl_save_prefix"
15296
15297 case "$x" in
15298 -L*)
15299 dir=`echo "X$x" | sed -e 's/^X-L//'`
15300 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15301 found_dir="$dir"
15302 found_so="$dir/lib$name.$shlibext"
15303 if test -f "$dir/lib$name.la"; then
15304 found_la="$dir/lib$name.la"
15305 fi
15306 else
15307 if test -f "$dir/lib$name.$libext"; then
15308 found_dir="$dir"
15309 found_a="$dir/lib$name.$libext"
15310 if test -f "$dir/lib$name.la"; then
15311 found_la="$dir/lib$name.la"
15312 fi
15313 fi
15314 fi
15315 ;;
15316 esac
15317 if test "X$found_dir" != "X"; then
15318 break
15319 fi
15320 done
15321 fi
15322 if test "X$found_dir" != "X"; then
15323 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
15324 if test "X$found_so" != "X"; then
15325 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15326 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15327 else
15328 haveit=
15329 for x in $ltrpathdirs; do
15330 if test "X$x" = "X$found_dir"; then
15331 haveit=yes
15332 break
15333 fi
15334 done
15335 if test -z "$haveit"; then
15336 ltrpathdirs="$ltrpathdirs $found_dir"
15337 fi
15338 if test "$hardcode_direct" = yes; then
15339 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15340 else
15341 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15342 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15343 haveit=
15344 for x in $rpathdirs; do
15345 if test "X$x" = "X$found_dir"; then
15346 haveit=yes
15347 break
15348 fi
15349 done
15350 if test -z "$haveit"; then
15351 rpathdirs="$rpathdirs $found_dir"
15352 fi
15353 else
15354 haveit=
15355 for x in $LDFLAGS $LIBBABELTRACE; do
15356
15357 acl_save_prefix="$prefix"
15358 prefix="$acl_final_prefix"
15359 acl_save_exec_prefix="$exec_prefix"
15360 exec_prefix="$acl_final_exec_prefix"
15361 eval x=\"$x\"
15362 exec_prefix="$acl_save_exec_prefix"
15363 prefix="$acl_save_prefix"
15364
15365 if test "X$x" = "X-L$found_dir"; then
15366 haveit=yes
15367 break
15368 fi
15369 done
15370 if test -z "$haveit"; then
15371 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15372 fi
15373 if test "$hardcode_minus_L" != no; then
15374 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15375 else
15376 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15377 fi
15378 fi
15379 fi
15380 fi
15381 else
15382 if test "X$found_a" != "X"; then
15383 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15384 else
15385 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15386 fi
15387 fi
15388 additional_includedir=
15389 case "$found_dir" in
15390 */lib | */lib/)
15391 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15392 additional_includedir="$basedir/include"
15393 ;;
15394 esac
15395 if test "X$additional_includedir" != "X"; then
15396 if test "X$additional_includedir" != "X/usr/include"; then
15397 haveit=
15398 if test "X$additional_includedir" = "X/usr/local/include"; then
15399 if test -n "$GCC"; then
15400 case $host_os in
15401 linux*) haveit=yes;;
15402 esac
15403 fi
15404 fi
15405 if test -z "$haveit"; then
15406 for x in $CPPFLAGS $INCBABELTRACE; do
15407
15408 acl_save_prefix="$prefix"
15409 prefix="$acl_final_prefix"
15410 acl_save_exec_prefix="$exec_prefix"
15411 exec_prefix="$acl_final_exec_prefix"
15412 eval x=\"$x\"
15413 exec_prefix="$acl_save_exec_prefix"
15414 prefix="$acl_save_prefix"
15415
15416 if test "X$x" = "X-I$additional_includedir"; then
15417 haveit=yes
15418 break
15419 fi
15420 done
15421 if test -z "$haveit"; then
15422 if test -d "$additional_includedir"; then
15423 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15424 fi
15425 fi
15426 fi
15427 fi
15428 fi
15429 if test -n "$found_la"; then
15430 save_libdir="$libdir"
15431 case "$found_la" in
15432 */* | *\\*) . "$found_la" ;;
15433 *) . "./$found_la" ;;
15434 esac
15435 libdir="$save_libdir"
15436 for dep in $dependency_libs; do
15437 case "$dep" in
15438 -L*)
15439 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15440 if test "X$additional_libdir" != "X/usr/lib"; then
15441 haveit=
15442 if test "X$additional_libdir" = "X/usr/local/lib"; then
15443 if test -n "$GCC"; then
15444 case $host_os in
15445 linux*) haveit=yes;;
15446 esac
15447 fi
15448 fi
15449 if test -z "$haveit"; then
15450 haveit=
15451 for x in $LDFLAGS $LIBBABELTRACE; do
15452
15453 acl_save_prefix="$prefix"
15454 prefix="$acl_final_prefix"
15455 acl_save_exec_prefix="$exec_prefix"
15456 exec_prefix="$acl_final_exec_prefix"
15457 eval x=\"$x\"
15458 exec_prefix="$acl_save_exec_prefix"
15459 prefix="$acl_save_prefix"
15460
15461 if test "X$x" = "X-L$additional_libdir"; then
15462 haveit=yes
15463 break
15464 fi
15465 done
15466 if test -z "$haveit"; then
15467 if test -d "$additional_libdir"; then
15468 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15469 fi
15470 fi
15471 haveit=
15472 for x in $LDFLAGS $LTLIBBABELTRACE; do
15473
15474 acl_save_prefix="$prefix"
15475 prefix="$acl_final_prefix"
15476 acl_save_exec_prefix="$exec_prefix"
15477 exec_prefix="$acl_final_exec_prefix"
15478 eval x=\"$x\"
15479 exec_prefix="$acl_save_exec_prefix"
15480 prefix="$acl_save_prefix"
15481
15482 if test "X$x" = "X-L$additional_libdir"; then
15483 haveit=yes
15484 break
15485 fi
15486 done
15487 if test -z "$haveit"; then
15488 if test -d "$additional_libdir"; then
15489 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15490 fi
15491 fi
15492 fi
15493 fi
15494 ;;
15495 -R*)
15496 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15497 if test "$enable_rpath" != no; then
15498 haveit=
15499 for x in $rpathdirs; do
15500 if test "X$x" = "X$dir"; then
15501 haveit=yes
15502 break
15503 fi
15504 done
15505 if test -z "$haveit"; then
15506 rpathdirs="$rpathdirs $dir"
15507 fi
15508 haveit=
15509 for x in $ltrpathdirs; do
15510 if test "X$x" = "X$dir"; then
15511 haveit=yes
15512 break
15513 fi
15514 done
15515 if test -z "$haveit"; then
15516 ltrpathdirs="$ltrpathdirs $dir"
15517 fi
15518 fi
15519 ;;
15520 -l*)
15521 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15522 ;;
15523 *.la)
15524 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15525 ;;
15526 *)
15527 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15528 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15529 ;;
15530 esac
15531 done
15532 fi
15533 else
15534 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15535 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15536 fi
15537 fi
15538 fi
15539 done
15540 done
15541 if test "X$rpathdirs" != "X"; then
15542 if test -n "$hardcode_libdir_separator"; then
15543 alldirs=
15544 for found_dir in $rpathdirs; do
15545 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15546 done
15547 acl_save_libdir="$libdir"
15548 libdir="$alldirs"
15549 eval flag=\"$hardcode_libdir_flag_spec\"
15550 libdir="$acl_save_libdir"
15551 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15552 else
15553 for found_dir in $rpathdirs; do
15554 acl_save_libdir="$libdir"
15555 libdir="$found_dir"
15556 eval flag=\"$hardcode_libdir_flag_spec\"
15557 libdir="$acl_save_libdir"
15558 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15559 done
15560 fi
15561 fi
15562 if test "X$ltrpathdirs" != "X"; then
15563 for found_dir in $ltrpathdirs; do
15564 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15565 done
15566 fi
15567
15568
15569 ac_save_CPPFLAGS="$CPPFLAGS"
15570
15571 for element in $INCBABELTRACE; do
15572 haveit=
15573 for x in $CPPFLAGS; do
15574
15575 acl_save_prefix="$prefix"
15576 prefix="$acl_final_prefix"
15577 acl_save_exec_prefix="$exec_prefix"
15578 exec_prefix="$acl_final_exec_prefix"
15579 eval x=\"$x\"
15580 exec_prefix="$acl_save_exec_prefix"
15581 prefix="$acl_save_prefix"
15582
15583 if test "X$x" = "X$element"; then
15584 haveit=yes
15585 break
15586 fi
15587 done
15588 if test -z "$haveit"; then
15589 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15590 fi
15591 done
15592
15593
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15595 $as_echo_n "checking for libbabeltrace... " >&6; }
15596 if test "${ac_cv_libbabeltrace+set}" = set; then :
15597 $as_echo_n "(cached) " >&6
15598 else
15599
15600 ac_save_LIBS="$LIBS"
15601 LIBS="$LIBS $LIBBABELTRACE"
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15604 #include <babeltrace/babeltrace.h>
15605 #include <babeltrace/ctf/events.h>
15606 #include <babeltrace/ctf/iterator.h>
15607 int
15608 main ()
15609 {
15610 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15611 struct bt_ctf_event *event = NULL;
15612 const struct bt_definition *scope;
15613
15614 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
15615 scope = bt_ctf_get_top_level_scope (event,
15616 BT_STREAM_EVENT_HEADER);
15617 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15618
15619 ;
15620 return 0;
15621 }
15622 _ACEOF
15623 if ac_fn_c_try_link "$LINENO"; then :
15624 ac_cv_libbabeltrace=yes
15625 else
15626 ac_cv_libbabeltrace=no
15627 fi
15628 rm -f core conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15630 LIBS="$ac_save_LIBS"
15631
15632 fi
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15634 $as_echo "$ac_cv_libbabeltrace" >&6; }
15635 if test "$ac_cv_libbabeltrace" = yes; then
15636 HAVE_LIBBABELTRACE=yes
15637
15638 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15639
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15641 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15643 $as_echo "$LIBBABELTRACE" >&6; }
15644 else
15645 HAVE_LIBBABELTRACE=no
15646 CPPFLAGS="$ac_save_CPPFLAGS"
15647 LIBBABELTRACE=
15648 LTLIBBABELTRACE=
15649 fi
15650
15651
15652
15653
15654
15655
15656 CFLAGS=$saved_CFLAGS
15657
15658 if test "$HAVE_LIBBABELTRACE" != yes; then
15659 if test "$with_babeltrace" = yes; then
15660 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
15661 else
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15663 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15664 fi
15665 fi
15666 fi
15667
15668 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15669 # to an empty version.
15670
15671 files=
15672 links=
15673
15674 rm -f nm.h
15675 if test "${nativefile}" != ""; then
15676 case "${nativefile}" in
15677 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15678 * ) GDB_NM_FILE="${nativefile}"
15679 esac
15680 files="${files} ${GDB_NM_FILE}"
15681 links="${links} nm.h"
15682
15683 cat >>confdefs.h <<_ACEOF
15684 #define GDB_NM_FILE "${GDB_NM_FILE}"
15685 _ACEOF
15686
15687 fi
15688
15689
15690 ac_sources="$files"
15691 ac_dests="$links"
15692 while test -n "$ac_sources"; do
15693 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15694 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15695 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15696 done
15697 ac_config_links="$ac_config_links $ac_config_links_1"
15698
15699
15700
15701
15702
15703 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15704
15705
15706
15707 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15708 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
15709 if test "x$GDB_TRANSFORM_NAME" = x; then
15710 GDB_TRANSFORM_NAME=gdb
15711 fi
15712
15713
15714
15715 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15716 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
15717 if test "x$GCORE_TRANSFORM_NAME" = x; then
15718 GCORE_TRANSFORM_NAME=gcore
15719 fi
15720
15721
15722 ac_config_files="$ac_config_files gcore"
15723
15724
15725 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15726
15727 ac_config_commands="$ac_config_commands default"
15728
15729 cat >confcache <<\_ACEOF
15730 # This file is a shell script that caches the results of configure
15731 # tests run on this system so they can be shared between configure
15732 # scripts and configure runs, see configure's option --config-cache.
15733 # It is not useful on other systems. If it contains results you don't
15734 # want to keep, you may remove or edit it.
15735 #
15736 # config.status only pays attention to the cache file if you give it
15737 # the --recheck option to rerun configure.
15738 #
15739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15741 # following values.
15742
15743 _ACEOF
15744
15745 # The following way of writing the cache mishandles newlines in values,
15746 # but we know of no workaround that is simple, portable, and efficient.
15747 # So, we kill variables containing newlines.
15748 # Ultrix sh set writes to stderr and can't be redirected directly,
15749 # and sets the high bit in the cache file unless we assign to the vars.
15750 (
15751 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15752 eval ac_val=\$$ac_var
15753 case $ac_val in #(
15754 *${as_nl}*)
15755 case $ac_var in #(
15756 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15757 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15758 esac
15759 case $ac_var in #(
15760 _ | IFS | as_nl) ;; #(
15761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15762 *) { eval $ac_var=; unset $ac_var;} ;;
15763 esac ;;
15764 esac
15765 done
15766
15767 (set) 2>&1 |
15768 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15769 *${as_nl}ac_space=\ *)
15770 # `set' does not quote correctly, so add quotes: double-quote
15771 # substitution turns \\\\ into \\, and sed turns \\ into \.
15772 sed -n \
15773 "s/'/'\\\\''/g;
15774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15775 ;; #(
15776 *)
15777 # `set' quotes correctly as required by POSIX, so do not add quotes.
15778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15779 ;;
15780 esac |
15781 sort
15782 ) |
15783 sed '
15784 /^ac_cv_env_/b end
15785 t clear
15786 :clear
15787 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15788 t end
15789 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15790 :end' >>confcache
15791 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15792 if test -w "$cache_file"; then
15793 test "x$cache_file" != "x/dev/null" &&
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15795 $as_echo "$as_me: updating cache $cache_file" >&6;}
15796 cat confcache >$cache_file
15797 else
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15799 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15800 fi
15801 fi
15802 rm -f confcache
15803
15804 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15805 # Let make expand exec_prefix.
15806 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15807
15808 DEFS=-DHAVE_CONFIG_H
15809
15810 ac_libobjs=
15811 ac_ltlibobjs=
15812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15813 # 1. Remove the extension, and $U if already installed.
15814 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15815 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15816 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15817 # will be set to the directory where LIBOBJS objects are built.
15818 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15819 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15820 done
15821 LIBOBJS=$ac_libobjs
15822
15823 LTLIBOBJS=$ac_ltlibobjs
15824
15825
15826 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15827 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15829 fi
15830 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15831 as_fn_error "conditional \"GMAKE\" was never defined.
15832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15833 fi
15834 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15835 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
15836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15837 fi
15838 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
15839 as_fn_error "conditional \"HAVE_GUILE\" was never defined.
15840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15841 fi
15842
15843
15844 : ${CONFIG_STATUS=./config.status}
15845 ac_write_fail=0
15846 ac_clean_files_save=$ac_clean_files
15847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15849 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15850 as_write_fail=0
15851 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15852 #! $SHELL
15853 # Generated by $as_me.
15854 # Run this file to recreate the current configuration.
15855 # Compiler output produced by configure, useful for debugging
15856 # configure, is in config.log if it exists.
15857
15858 debug=false
15859 ac_cs_recheck=false
15860 ac_cs_silent=false
15861
15862 SHELL=\${CONFIG_SHELL-$SHELL}
15863 export SHELL
15864 _ASEOF
15865 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15866 ## -------------------- ##
15867 ## M4sh Initialization. ##
15868 ## -------------------- ##
15869
15870 # Be more Bourne compatible
15871 DUALCASE=1; export DUALCASE # for MKS sh
15872 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15873 emulate sh
15874 NULLCMD=:
15875 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15876 # is contrary to our usage. Disable this feature.
15877 alias -g '${1+"$@"}'='"$@"'
15878 setopt NO_GLOB_SUBST
15879 else
15880 case `(set -o) 2>/dev/null` in #(
15881 *posix*) :
15882 set -o posix ;; #(
15883 *) :
15884 ;;
15885 esac
15886 fi
15887
15888
15889 as_nl='
15890 '
15891 export as_nl
15892 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15893 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15894 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15895 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15896 # Prefer a ksh shell builtin over an external printf program on Solaris,
15897 # but without wasting forks for bash or zsh.
15898 if test -z "$BASH_VERSION$ZSH_VERSION" \
15899 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15900 as_echo='print -r --'
15901 as_echo_n='print -rn --'
15902 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15903 as_echo='printf %s\n'
15904 as_echo_n='printf %s'
15905 else
15906 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15907 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15908 as_echo_n='/usr/ucb/echo -n'
15909 else
15910 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15911 as_echo_n_body='eval
15912 arg=$1;
15913 case $arg in #(
15914 *"$as_nl"*)
15915 expr "X$arg" : "X\\(.*\\)$as_nl";
15916 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15917 esac;
15918 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15919 '
15920 export as_echo_n_body
15921 as_echo_n='sh -c $as_echo_n_body as_echo'
15922 fi
15923 export as_echo_body
15924 as_echo='sh -c $as_echo_body as_echo'
15925 fi
15926
15927 # The user is always right.
15928 if test "${PATH_SEPARATOR+set}" != set; then
15929 PATH_SEPARATOR=:
15930 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15931 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15932 PATH_SEPARATOR=';'
15933 }
15934 fi
15935
15936
15937 # IFS
15938 # We need space, tab and new line, in precisely that order. Quoting is
15939 # there to prevent editors from complaining about space-tab.
15940 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15941 # splitting by setting IFS to empty value.)
15942 IFS=" "" $as_nl"
15943
15944 # Find who we are. Look in the path if we contain no directory separator.
15945 case $0 in #((
15946 *[\\/]* ) as_myself=$0 ;;
15947 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15948 for as_dir in $PATH
15949 do
15950 IFS=$as_save_IFS
15951 test -z "$as_dir" && as_dir=.
15952 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15953 done
15954 IFS=$as_save_IFS
15955
15956 ;;
15957 esac
15958 # We did not find ourselves, most probably we were run as `sh COMMAND'
15959 # in which case we are not to be found in the path.
15960 if test "x$as_myself" = x; then
15961 as_myself=$0
15962 fi
15963 if test ! -f "$as_myself"; then
15964 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15965 exit 1
15966 fi
15967
15968 # Unset variables that we do not need and which cause bugs (e.g. in
15969 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15970 # suppresses any "Segmentation fault" message there. '((' could
15971 # trigger a bug in pdksh 5.2.14.
15972 for as_var in BASH_ENV ENV MAIL MAILPATH
15973 do eval test x\${$as_var+set} = xset \
15974 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15975 done
15976 PS1='$ '
15977 PS2='> '
15978 PS4='+ '
15979
15980 # NLS nuisances.
15981 LC_ALL=C
15982 export LC_ALL
15983 LANGUAGE=C
15984 export LANGUAGE
15985
15986 # CDPATH.
15987 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15988
15989
15990 # as_fn_error ERROR [LINENO LOG_FD]
15991 # ---------------------------------
15992 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15993 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15994 # script with status $?, using 1 if that was 0.
15995 as_fn_error ()
15996 {
15997 as_status=$?; test $as_status -eq 0 && as_status=1
15998 if test "$3"; then
15999 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16000 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16001 fi
16002 $as_echo "$as_me: error: $1" >&2
16003 as_fn_exit $as_status
16004 } # as_fn_error
16005
16006
16007 # as_fn_set_status STATUS
16008 # -----------------------
16009 # Set $? to STATUS, without forking.
16010 as_fn_set_status ()
16011 {
16012 return $1
16013 } # as_fn_set_status
16014
16015 # as_fn_exit STATUS
16016 # -----------------
16017 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16018 as_fn_exit ()
16019 {
16020 set +e
16021 as_fn_set_status $1
16022 exit $1
16023 } # as_fn_exit
16024
16025 # as_fn_unset VAR
16026 # ---------------
16027 # Portably unset VAR.
16028 as_fn_unset ()
16029 {
16030 { eval $1=; unset $1;}
16031 }
16032 as_unset=as_fn_unset
16033 # as_fn_append VAR VALUE
16034 # ----------------------
16035 # Append the text in VALUE to the end of the definition contained in VAR. Take
16036 # advantage of any shell optimizations that allow amortized linear growth over
16037 # repeated appends, instead of the typical quadratic growth present in naive
16038 # implementations.
16039 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16040 eval 'as_fn_append ()
16041 {
16042 eval $1+=\$2
16043 }'
16044 else
16045 as_fn_append ()
16046 {
16047 eval $1=\$$1\$2
16048 }
16049 fi # as_fn_append
16050
16051 # as_fn_arith ARG...
16052 # ------------------
16053 # Perform arithmetic evaluation on the ARGs, and store the result in the
16054 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16055 # must be portable across $(()) and expr.
16056 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16057 eval 'as_fn_arith ()
16058 {
16059 as_val=$(( $* ))
16060 }'
16061 else
16062 as_fn_arith ()
16063 {
16064 as_val=`expr "$@" || test $? -eq 1`
16065 }
16066 fi # as_fn_arith
16067
16068
16069 if expr a : '\(a\)' >/dev/null 2>&1 &&
16070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16071 as_expr=expr
16072 else
16073 as_expr=false
16074 fi
16075
16076 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16077 as_basename=basename
16078 else
16079 as_basename=false
16080 fi
16081
16082 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16083 as_dirname=dirname
16084 else
16085 as_dirname=false
16086 fi
16087
16088 as_me=`$as_basename -- "$0" ||
16089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16090 X"$0" : 'X\(//\)$' \| \
16091 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16092 $as_echo X/"$0" |
16093 sed '/^.*\/\([^/][^/]*\)\/*$/{
16094 s//\1/
16095 q
16096 }
16097 /^X\/\(\/\/\)$/{
16098 s//\1/
16099 q
16100 }
16101 /^X\/\(\/\).*/{
16102 s//\1/
16103 q
16104 }
16105 s/.*/./; q'`
16106
16107 # Avoid depending upon Character Ranges.
16108 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16109 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16110 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16111 as_cr_digits='0123456789'
16112 as_cr_alnum=$as_cr_Letters$as_cr_digits
16113
16114 ECHO_C= ECHO_N= ECHO_T=
16115 case `echo -n x` in #(((((
16116 -n*)
16117 case `echo 'xy\c'` in
16118 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16119 xy) ECHO_C='\c';;
16120 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16121 ECHO_T=' ';;
16122 esac;;
16123 *)
16124 ECHO_N='-n';;
16125 esac
16126
16127 rm -f conf$$ conf$$.exe conf$$.file
16128 if test -d conf$$.dir; then
16129 rm -f conf$$.dir/conf$$.file
16130 else
16131 rm -f conf$$.dir
16132 mkdir conf$$.dir 2>/dev/null
16133 fi
16134 if (echo >conf$$.file) 2>/dev/null; then
16135 if ln -s conf$$.file conf$$ 2>/dev/null; then
16136 as_ln_s='ln -s'
16137 # ... but there are two gotchas:
16138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16140 # In both cases, we have to default to `cp -p'.
16141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16142 as_ln_s='cp -p'
16143 elif ln conf$$.file conf$$ 2>/dev/null; then
16144 as_ln_s=ln
16145 else
16146 as_ln_s='cp -p'
16147 fi
16148 else
16149 as_ln_s='cp -p'
16150 fi
16151 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16152 rmdir conf$$.dir 2>/dev/null
16153
16154
16155 # as_fn_mkdir_p
16156 # -------------
16157 # Create "$as_dir" as a directory, including parents if necessary.
16158 as_fn_mkdir_p ()
16159 {
16160
16161 case $as_dir in #(
16162 -*) as_dir=./$as_dir;;
16163 esac
16164 test -d "$as_dir" || eval $as_mkdir_p || {
16165 as_dirs=
16166 while :; do
16167 case $as_dir in #(
16168 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16169 *) as_qdir=$as_dir;;
16170 esac
16171 as_dirs="'$as_qdir' $as_dirs"
16172 as_dir=`$as_dirname -- "$as_dir" ||
16173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16174 X"$as_dir" : 'X\(//\)[^/]' \| \
16175 X"$as_dir" : 'X\(//\)$' \| \
16176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16177 $as_echo X"$as_dir" |
16178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16179 s//\1/
16180 q
16181 }
16182 /^X\(\/\/\)[^/].*/{
16183 s//\1/
16184 q
16185 }
16186 /^X\(\/\/\)$/{
16187 s//\1/
16188 q
16189 }
16190 /^X\(\/\).*/{
16191 s//\1/
16192 q
16193 }
16194 s/.*/./; q'`
16195 test -d "$as_dir" && break
16196 done
16197 test -z "$as_dirs" || eval "mkdir $as_dirs"
16198 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16199
16200
16201 } # as_fn_mkdir_p
16202 if mkdir -p . 2>/dev/null; then
16203 as_mkdir_p='mkdir -p "$as_dir"'
16204 else
16205 test -d ./-p && rmdir ./-p
16206 as_mkdir_p=false
16207 fi
16208
16209 if test -x / >/dev/null 2>&1; then
16210 as_test_x='test -x'
16211 else
16212 if ls -dL / >/dev/null 2>&1; then
16213 as_ls_L_option=L
16214 else
16215 as_ls_L_option=
16216 fi
16217 as_test_x='
16218 eval sh -c '\''
16219 if test -d "$1"; then
16220 test -d "$1/.";
16221 else
16222 case $1 in #(
16223 -*)set "./$1";;
16224 esac;
16225 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16226 ???[sx]*):;;*)false;;esac;fi
16227 '\'' sh
16228 '
16229 fi
16230 as_executable_p=$as_test_x
16231
16232 # Sed expression to map a string onto a valid CPP name.
16233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16234
16235 # Sed expression to map a string onto a valid variable name.
16236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16237
16238
16239 exec 6>&1
16240 ## ----------------------------------- ##
16241 ## Main body of $CONFIG_STATUS script. ##
16242 ## ----------------------------------- ##
16243 _ASEOF
16244 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16245
16246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16247 # Save the log message, to keep $0 and so on meaningful, and to
16248 # report actual input values of CONFIG_FILES etc. instead of their
16249 # values after options handling.
16250 ac_log="
16251 This file was extended by $as_me, which was
16252 generated by GNU Autoconf 2.64. Invocation command line was
16253
16254 CONFIG_FILES = $CONFIG_FILES
16255 CONFIG_HEADERS = $CONFIG_HEADERS
16256 CONFIG_LINKS = $CONFIG_LINKS
16257 CONFIG_COMMANDS = $CONFIG_COMMANDS
16258 $ $0 $@
16259
16260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16261 "
16262
16263 _ACEOF
16264
16265 case $ac_config_files in *"
16266 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16267 esac
16268
16269 case $ac_config_headers in *"
16270 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16271 esac
16272
16273
16274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16275 # Files that config.status was made for.
16276 config_files="$ac_config_files"
16277 config_headers="$ac_config_headers"
16278 config_links="$ac_config_links"
16279 config_commands="$ac_config_commands"
16280
16281 _ACEOF
16282
16283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16284 ac_cs_usage="\
16285 \`$as_me' instantiates files and other configuration actions
16286 from templates according to the current configuration. Unless the files
16287 and actions are specified as TAGs, all are instantiated by default.
16288
16289 Usage: $0 [OPTION]... [TAG]...
16290
16291 -h, --help print this help, then exit
16292 -V, --version print version number and configuration settings, then exit
16293 -q, --quiet, --silent
16294 do not print progress messages
16295 -d, --debug don't remove temporary files
16296 --recheck update $as_me by reconfiguring in the same conditions
16297 --file=FILE[:TEMPLATE]
16298 instantiate the configuration file FILE
16299 --header=FILE[:TEMPLATE]
16300 instantiate the configuration header FILE
16301
16302 Configuration files:
16303 $config_files
16304
16305 Configuration headers:
16306 $config_headers
16307
16308 Configuration links:
16309 $config_links
16310
16311 Configuration commands:
16312 $config_commands
16313
16314 Report bugs to the package provider."
16315
16316 _ACEOF
16317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16318 ac_cs_version="\\
16319 config.status
16320 configured by $0, generated by GNU Autoconf 2.64,
16321 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16322
16323 Copyright (C) 2009 Free Software Foundation, Inc.
16324 This config.status script is free software; the Free Software Foundation
16325 gives unlimited permission to copy, distribute and modify it."
16326
16327 ac_pwd='$ac_pwd'
16328 srcdir='$srcdir'
16329 INSTALL='$INSTALL'
16330 AWK='$AWK'
16331 test -n "\$AWK" || AWK=awk
16332 _ACEOF
16333
16334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16335 # The default lists apply if the user does not specify any file.
16336 ac_need_defaults=:
16337 while test $# != 0
16338 do
16339 case $1 in
16340 --*=*)
16341 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16342 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16343 ac_shift=:
16344 ;;
16345 *)
16346 ac_option=$1
16347 ac_optarg=$2
16348 ac_shift=shift
16349 ;;
16350 esac
16351
16352 case $ac_option in
16353 # Handling of the options.
16354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16355 ac_cs_recheck=: ;;
16356 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16357 $as_echo "$ac_cs_version"; exit ;;
16358 --debug | --debu | --deb | --de | --d | -d )
16359 debug=: ;;
16360 --file | --fil | --fi | --f )
16361 $ac_shift
16362 case $ac_optarg in
16363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16364 esac
16365 as_fn_append CONFIG_FILES " '$ac_optarg'"
16366 ac_need_defaults=false;;
16367 --header | --heade | --head | --hea )
16368 $ac_shift
16369 case $ac_optarg in
16370 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16371 esac
16372 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16373 ac_need_defaults=false;;
16374 --he | --h)
16375 # Conflict between --help and --header
16376 as_fn_error "ambiguous option: \`$1'
16377 Try \`$0 --help' for more information.";;
16378 --help | --hel | -h )
16379 $as_echo "$ac_cs_usage"; exit ;;
16380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16381 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16382 ac_cs_silent=: ;;
16383
16384 # This is an error.
16385 -*) as_fn_error "unrecognized option: \`$1'
16386 Try \`$0 --help' for more information." ;;
16387
16388 *) as_fn_append ac_config_targets " $1"
16389 ac_need_defaults=false ;;
16390
16391 esac
16392 shift
16393 done
16394
16395 ac_configure_extra_args=
16396
16397 if $ac_cs_silent; then
16398 exec 6>/dev/null
16399 ac_configure_extra_args="$ac_configure_extra_args --silent"
16400 fi
16401
16402 _ACEOF
16403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16404 if \$ac_cs_recheck; then
16405 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16406 shift
16407 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16408 CONFIG_SHELL='$SHELL'
16409 export CONFIG_SHELL
16410 exec "\$@"
16411 fi
16412
16413 _ACEOF
16414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16415 exec 5>>config.log
16416 {
16417 echo
16418 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16419 ## Running $as_me. ##
16420 _ASBOX
16421 $as_echo "$ac_log"
16422 } >&5
16423
16424 _ACEOF
16425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16426 #
16427 # INIT-COMMANDS
16428 #
16429 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16430
16431 _ACEOF
16432
16433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16434
16435 # Handling of arguments.
16436 for ac_config_target in $ac_config_targets
16437 do
16438 case $ac_config_target in
16439 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16440 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16441 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16442 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16443 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
16444 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16445 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
16446 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16447 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16448 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16449
16450 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16451 esac
16452 done
16453
16454
16455 # If the user did not use the arguments to specify the items to instantiate,
16456 # then the envvar interface is used. Set only those that are not.
16457 # We use the long form for the default assignment because of an extremely
16458 # bizarre bug on SunOS 4.1.3.
16459 if $ac_need_defaults; then
16460 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16461 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16462 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16464 fi
16465
16466 # Have a temporary directory for convenience. Make it in the build tree
16467 # simply because there is no reason against having it here, and in addition,
16468 # creating and moving files from /tmp can sometimes cause problems.
16469 # Hook for its removal unless debugging.
16470 # Note that there is a small window in which the directory will not be cleaned:
16471 # after its creation but before its name has been assigned to `$tmp'.
16472 $debug ||
16473 {
16474 tmp=
16475 trap 'exit_status=$?
16476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16477 ' 0
16478 trap 'as_fn_exit 1' 1 2 13 15
16479 }
16480 # Create a (secure) tmp directory for tmp files.
16481
16482 {
16483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16484 test -n "$tmp" && test -d "$tmp"
16485 } ||
16486 {
16487 tmp=./conf$$-$RANDOM
16488 (umask 077 && mkdir "$tmp")
16489 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16490
16491 # Set up the scripts for CONFIG_FILES section.
16492 # No need to generate them if there are no CONFIG_FILES.
16493 # This happens for instance with `./config.status config.h'.
16494 if test -n "$CONFIG_FILES"; then
16495
16496 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16497 ac_cs_awk_getline=:
16498 ac_cs_awk_pipe_init=
16499 ac_cs_awk_read_file='
16500 while ((getline aline < (F[key])) > 0)
16501 print(aline)
16502 close(F[key])'
16503 ac_cs_awk_pipe_fini=
16504 else
16505 ac_cs_awk_getline=false
16506 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16507 ac_cs_awk_read_file='
16508 print "|#_!!_#|"
16509 print "cat " F[key] " &&"
16510 '$ac_cs_awk_pipe_init
16511 # The final `:' finishes the AND list.
16512 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16513 fi
16514 ac_cr=`echo X | tr X '\015'`
16515 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16516 # But we know of no other shell where ac_cr would be empty at this
16517 # point, so we can use a bashism as a fallback.
16518 if test "x$ac_cr" = x; then
16519 eval ac_cr=\$\'\\r\'
16520 fi
16521 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16522 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16523 ac_cs_awk_cr='\r'
16524 else
16525 ac_cs_awk_cr=$ac_cr
16526 fi
16527
16528 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16529 _ACEOF
16530
16531 # Create commands to substitute file output variables.
16532 {
16533 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16534 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16535 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16536 echo "_ACAWK" &&
16537 echo "_ACEOF"
16538 } >conf$$files.sh &&
16539 . ./conf$$files.sh ||
16540 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16541 rm -f conf$$files.sh
16542
16543 {
16544 echo "cat >conf$$subs.awk <<_ACEOF" &&
16545 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16546 echo "_ACEOF"
16547 } >conf$$subs.sh ||
16548 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16549 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16550 ac_delim='%!_!# '
16551 for ac_last_try in false false false false false :; do
16552 . ./conf$$subs.sh ||
16553 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16554
16555 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16556 if test $ac_delim_n = $ac_delim_num; then
16557 break
16558 elif $ac_last_try; then
16559 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16560 else
16561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16562 fi
16563 done
16564 rm -f conf$$subs.sh
16565
16566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16567 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16568 _ACEOF
16569 sed -n '
16570 h
16571 s/^/S["/; s/!.*/"]=/
16572 p
16573 g
16574 s/^[^!]*!//
16575 :repl
16576 t repl
16577 s/'"$ac_delim"'$//
16578 t delim
16579 :nl
16580 h
16581 s/\(.\{148\}\).*/\1/
16582 t more1
16583 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16584 p
16585 n
16586 b repl
16587 :more1
16588 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16589 p
16590 g
16591 s/.\{148\}//
16592 t nl
16593 :delim
16594 h
16595 s/\(.\{148\}\).*/\1/
16596 t more2
16597 s/["\\]/\\&/g; s/^/"/; s/$/"/
16598 p
16599 b
16600 :more2
16601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16602 p
16603 g
16604 s/.\{148\}//
16605 t delim
16606 ' <conf$$subs.awk | sed '
16607 /^[^""]/{
16608 N
16609 s/\n//
16610 }
16611 ' >>$CONFIG_STATUS || ac_write_fail=1
16612 rm -f conf$$subs.awk
16613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16614 _ACAWK
16615 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16616 for (key in S) S_is_set[key] = 1
16617 FS = "\a"
16618 \$ac_cs_awk_pipe_init
16619 }
16620 {
16621 line = $ 0
16622 nfields = split(line, field, "@")
16623 substed = 0
16624 len = length(field[1])
16625 for (i = 2; i < nfields; i++) {
16626 key = field[i]
16627 keylen = length(key)
16628 if (S_is_set[key]) {
16629 value = S[key]
16630 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16631 len += length(value) + length(field[++i])
16632 substed = 1
16633 } else
16634 len += 1 + keylen
16635 }
16636 if (nfields == 3 && !substed) {
16637 key = field[2]
16638 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16639 \$ac_cs_awk_read_file
16640 next
16641 }
16642 }
16643 print line
16644 }
16645 \$ac_cs_awk_pipe_fini
16646 _ACAWK
16647 _ACEOF
16648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16649 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16650 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16651 else
16652 cat
16653 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16654 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16655 _ACEOF
16656
16657 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16658 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16659 # trailing colons and then remove the whole line if VPATH becomes empty
16660 # (actually we leave an empty line to preserve line numbers).
16661 if test "x$srcdir" = x.; then
16662 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16663 s/:*\$(srcdir):*/:/
16664 s/:*\${srcdir}:*/:/
16665 s/:*@srcdir@:*/:/
16666 s/^\([^=]*=[ ]*\):*/\1/
16667 s/:*$//
16668 s/^[^=]*=[ ]*$//
16669 }'
16670 fi
16671
16672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16673 fi # test -n "$CONFIG_FILES"
16674
16675 # Set up the scripts for CONFIG_HEADERS section.
16676 # No need to generate them if there are no CONFIG_HEADERS.
16677 # This happens for instance with `./config.status Makefile'.
16678 if test -n "$CONFIG_HEADERS"; then
16679 cat >"$tmp/defines.awk" <<\_ACAWK ||
16680 BEGIN {
16681 _ACEOF
16682
16683 # Transform confdefs.h into an awk script `defines.awk', embedded as
16684 # here-document in config.status, that substitutes the proper values into
16685 # config.h.in to produce config.h.
16686
16687 # Create a delimiter string that does not exist in confdefs.h, to ease
16688 # handling of long lines.
16689 ac_delim='%!_!# '
16690 for ac_last_try in false false :; do
16691 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16692 if test -z "$ac_t"; then
16693 break
16694 elif $ac_last_try; then
16695 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16696 else
16697 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16698 fi
16699 done
16700
16701 # For the awk script, D is an array of macro values keyed by name,
16702 # likewise P contains macro parameters if any. Preserve backslash
16703 # newline sequences.
16704
16705 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16706 sed -n '
16707 s/.\{148\}/&'"$ac_delim"'/g
16708 t rset
16709 :rset
16710 s/^[ ]*#[ ]*define[ ][ ]*/ /
16711 t def
16712 d
16713 :def
16714 s/\\$//
16715 t bsnl
16716 s/["\\]/\\&/g
16717 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16718 D["\1"]=" \3"/p
16719 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16720 d
16721 :bsnl
16722 s/["\\]/\\&/g
16723 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16724 D["\1"]=" \3\\\\\\n"\\/p
16725 t cont
16726 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16727 t cont
16728 d
16729 :cont
16730 n
16731 s/.\{148\}/&'"$ac_delim"'/g
16732 t clear
16733 :clear
16734 s/\\$//
16735 t bsnlc
16736 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16737 d
16738 :bsnlc
16739 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16740 b cont
16741 ' <confdefs.h | sed '
16742 s/'"$ac_delim"'/"\\\
16743 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16744
16745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16746 for (key in D) D_is_set[key] = 1
16747 FS = "\a"
16748 }
16749 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16750 line = \$ 0
16751 split(line, arg, " ")
16752 if (arg[1] == "#") {
16753 defundef = arg[2]
16754 mac1 = arg[3]
16755 } else {
16756 defundef = substr(arg[1], 2)
16757 mac1 = arg[2]
16758 }
16759 split(mac1, mac2, "(") #)
16760 macro = mac2[1]
16761 prefix = substr(line, 1, index(line, defundef) - 1)
16762 if (D_is_set[macro]) {
16763 # Preserve the white space surrounding the "#".
16764 print prefix "define", macro P[macro] D[macro]
16765 next
16766 } else {
16767 # Replace #undef with comments. This is necessary, for example,
16768 # in the case of _POSIX_SOURCE, which is predefined and required
16769 # on some systems where configure will not decide to define it.
16770 if (defundef == "undef") {
16771 print "/*", prefix defundef, macro, "*/"
16772 next
16773 }
16774 }
16775 }
16776 { print }
16777 _ACAWK
16778 _ACEOF
16779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16780 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16781 fi # test -n "$CONFIG_HEADERS"
16782
16783
16784 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16785 shift
16786 for ac_tag
16787 do
16788 case $ac_tag in
16789 :[FHLC]) ac_mode=$ac_tag; continue;;
16790 esac
16791 case $ac_mode$ac_tag in
16792 :[FHL]*:*);;
16793 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16794 :[FH]-) ac_tag=-:-;;
16795 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16796 esac
16797 ac_save_IFS=$IFS
16798 IFS=:
16799 set x $ac_tag
16800 IFS=$ac_save_IFS
16801 shift
16802 ac_file=$1
16803 shift
16804
16805 case $ac_mode in
16806 :L) ac_source=$1;;
16807 :[FH])
16808 ac_file_inputs=
16809 for ac_f
16810 do
16811 case $ac_f in
16812 -) ac_f="$tmp/stdin";;
16813 *) # Look for the file first in the build tree, then in the source tree
16814 # (if the path is not absolute). The absolute path cannot be DOS-style,
16815 # because $ac_f cannot contain `:'.
16816 test -f "$ac_f" ||
16817 case $ac_f in
16818 [\\/$]*) false;;
16819 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16820 esac ||
16821 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16822 esac
16823 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16824 as_fn_append ac_file_inputs " '$ac_f'"
16825 done
16826
16827 # Let's still pretend it is `configure' which instantiates (i.e., don't
16828 # use $as_me), people would be surprised to read:
16829 # /* config.h. Generated by config.status. */
16830 configure_input='Generated from '`
16831 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16832 `' by configure.'
16833 if test x"$ac_file" != x-; then
16834 configure_input="$ac_file. $configure_input"
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16836 $as_echo "$as_me: creating $ac_file" >&6;}
16837 fi
16838 # Neutralize special characters interpreted by sed in replacement strings.
16839 case $configure_input in #(
16840 *\&* | *\|* | *\\* )
16841 ac_sed_conf_input=`$as_echo "$configure_input" |
16842 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16843 *) ac_sed_conf_input=$configure_input;;
16844 esac
16845
16846 case $ac_tag in
16847 *:-:* | *:-) cat >"$tmp/stdin" \
16848 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16849 esac
16850 ;;
16851 esac
16852
16853 ac_dir=`$as_dirname -- "$ac_file" ||
16854 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16855 X"$ac_file" : 'X\(//\)[^/]' \| \
16856 X"$ac_file" : 'X\(//\)$' \| \
16857 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16858 $as_echo X"$ac_file" |
16859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16860 s//\1/
16861 q
16862 }
16863 /^X\(\/\/\)[^/].*/{
16864 s//\1/
16865 q
16866 }
16867 /^X\(\/\/\)$/{
16868 s//\1/
16869 q
16870 }
16871 /^X\(\/\).*/{
16872 s//\1/
16873 q
16874 }
16875 s/.*/./; q'`
16876 as_dir="$ac_dir"; as_fn_mkdir_p
16877 ac_builddir=.
16878
16879 case "$ac_dir" in
16880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16881 *)
16882 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16883 # A ".." for each directory in $ac_dir_suffix.
16884 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16885 case $ac_top_builddir_sub in
16886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16888 esac ;;
16889 esac
16890 ac_abs_top_builddir=$ac_pwd
16891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16892 # for backward compatibility:
16893 ac_top_builddir=$ac_top_build_prefix
16894
16895 case $srcdir in
16896 .) # We are building in place.
16897 ac_srcdir=.
16898 ac_top_srcdir=$ac_top_builddir_sub
16899 ac_abs_top_srcdir=$ac_pwd ;;
16900 [\\/]* | ?:[\\/]* ) # Absolute name.
16901 ac_srcdir=$srcdir$ac_dir_suffix;
16902 ac_top_srcdir=$srcdir
16903 ac_abs_top_srcdir=$srcdir ;;
16904 *) # Relative name.
16905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16906 ac_top_srcdir=$ac_top_build_prefix$srcdir
16907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16908 esac
16909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16910
16911
16912 case $ac_mode in
16913 :F)
16914 #
16915 # CONFIG_FILE
16916 #
16917
16918 case $INSTALL in
16919 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16920 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16921 esac
16922 _ACEOF
16923
16924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16925 # If the template does not know about datarootdir, expand it.
16926 # FIXME: This hack should be removed a few years after 2.60.
16927 ac_datarootdir_hack=; ac_datarootdir_seen=
16928 ac_sed_dataroot='
16929 /datarootdir/ {
16930 p
16931 q
16932 }
16933 /@datadir@/p
16934 /@docdir@/p
16935 /@infodir@/p
16936 /@localedir@/p
16937 /@mandir@/p'
16938 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16939 *datarootdir*) ac_datarootdir_seen=yes;;
16940 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16942 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16943 _ACEOF
16944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16945 ac_datarootdir_hack='
16946 s&@datadir@&$datadir&g
16947 s&@docdir@&$docdir&g
16948 s&@infodir@&$infodir&g
16949 s&@localedir@&$localedir&g
16950 s&@mandir@&$mandir&g
16951 s&\\\${datarootdir}&$datarootdir&g' ;;
16952 esac
16953 _ACEOF
16954
16955 # Neutralize VPATH when `$srcdir' = `.'.
16956 # Shell code in configure.ac might set extrasub.
16957 # FIXME: do we really want to maintain this feature?
16958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16959 ac_sed_extra="$ac_vpsub
16960 $extrasub
16961 _ACEOF
16962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16963 :t
16964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16965 s|@configure_input@|$ac_sed_conf_input|;t t
16966 s&@top_builddir@&$ac_top_builddir_sub&;t t
16967 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16968 s&@srcdir@&$ac_srcdir&;t t
16969 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16970 s&@top_srcdir@&$ac_top_srcdir&;t t
16971 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16972 s&@builddir@&$ac_builddir&;t t
16973 s&@abs_builddir@&$ac_abs_builddir&;t t
16974 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16975 s&@INSTALL@&$ac_INSTALL&;t t
16976 $ac_datarootdir_hack
16977 "
16978 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16979 if $ac_cs_awk_getline; then
16980 $AWK -f "$tmp/subs.awk"
16981 else
16982 $AWK -f "$tmp/subs.awk" | $SHELL
16983 fi >$tmp/out \
16984 || as_fn_error "could not create $ac_file" "$LINENO" 5
16985
16986 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16987 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16988 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16990 which seems to be undefined. Please make sure it is defined." >&5
16991 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16992 which seems to be undefined. Please make sure it is defined." >&2;}
16993
16994 rm -f "$tmp/stdin"
16995 case $ac_file in
16996 -) cat "$tmp/out" && rm -f "$tmp/out";;
16997 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16998 esac \
16999 || as_fn_error "could not create $ac_file" "$LINENO" 5
17000 ;;
17001 :H)
17002 #
17003 # CONFIG_HEADER
17004 #
17005 if test x"$ac_file" != x-; then
17006 {
17007 $as_echo "/* $configure_input */" \
17008 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17009 } >"$tmp/config.h" \
17010 || as_fn_error "could not create $ac_file" "$LINENO" 5
17011 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17013 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17014 else
17015 rm -f "$ac_file"
17016 mv "$tmp/config.h" "$ac_file" \
17017 || as_fn_error "could not create $ac_file" "$LINENO" 5
17018 fi
17019 else
17020 $as_echo "/* $configure_input */" \
17021 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17022 || as_fn_error "could not create -" "$LINENO" 5
17023 fi
17024 ;;
17025 :L)
17026 #
17027 # CONFIG_LINK
17028 #
17029
17030 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17031 :
17032 else
17033 # Prefer the file from the source tree if names are identical.
17034 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17035 ac_source=$srcdir/$ac_source
17036 fi
17037
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17039 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17040
17041 if test ! -r "$ac_source"; then
17042 as_fn_error "$ac_source: file not found" "$LINENO" 5
17043 fi
17044 rm -f "$ac_file"
17045
17046 # Try a relative symlink, then a hard link, then a copy.
17047 case $srcdir in
17048 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17049 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17050 esac
17051 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17052 ln "$ac_source" "$ac_file" 2>/dev/null ||
17053 cp -p "$ac_source" "$ac_file" ||
17054 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17055 fi
17056 ;;
17057 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17058 $as_echo "$as_me: executing $ac_file commands" >&6;}
17059 ;;
17060 esac
17061
17062
17063 case $ac_file$ac_mode in
17064 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17065 "gcore":F) chmod +x gcore ;;
17066 "default":C)
17067 case x$CONFIG_HEADERS in
17068 xconfig.h:config.in)
17069 echo > stamp-h ;;
17070 esac
17071 ;;
17072
17073 esac
17074 done # for ac_tag
17075
17076
17077 as_fn_exit 0
17078 _ACEOF
17079 ac_clean_files=$ac_clean_files_save
17080
17081 test $ac_write_fail = 0 ||
17082 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17083
17084
17085 # configure is writing to config.log, and then calls config.status.
17086 # config.status does its own redirection, appending to config.log.
17087 # Unfortunately, on DOS this fails, as config.log is still kept open
17088 # by configure, so config.status won't be able to write to it; its
17089 # output is simply discarded. So we exec the FD to /dev/null,
17090 # effectively closing config.log, so it can be properly (re)opened and
17091 # appended to by config.status. When coming back to configure, we
17092 # need to make the FD available again.
17093 if test "$no_create" != yes; then
17094 ac_cs_success=:
17095 ac_config_status_args=
17096 test "$silent" = yes &&
17097 ac_config_status_args="$ac_config_status_args --quiet"
17098 exec 5>/dev/null
17099 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17100 exec 5>>config.log
17101 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17102 # would make configure fail if this is the last instruction.
17103 $ac_cs_success || as_fn_exit $?
17104 fi
17105
17106 #
17107 # CONFIG_SUBDIRS section.
17108 #
17109 if test "$no_recursion" != yes; then
17110
17111 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17112 # so they do not pile up.
17113 ac_sub_configure_args=
17114 ac_prev=
17115 eval "set x $ac_configure_args"
17116 shift
17117 for ac_arg
17118 do
17119 if test -n "$ac_prev"; then
17120 ac_prev=
17121 continue
17122 fi
17123 case $ac_arg in
17124 -cache-file | --cache-file | --cache-fil | --cache-fi \
17125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17126 ac_prev=cache_file ;;
17127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17129 | --c=*)
17130 ;;
17131 --config-cache | -C)
17132 ;;
17133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17134 ac_prev=srcdir ;;
17135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17136 ;;
17137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17138 ac_prev=prefix ;;
17139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17140 ;;
17141 --disable-option-checking)
17142 ;;
17143 *)
17144 case $ac_arg in
17145 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17146 esac
17147 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17148 esac
17149 done
17150
17151 # Always prepend --prefix to ensure using the same prefix
17152 # in subdir configurations.
17153 ac_arg="--prefix=$prefix"
17154 case $ac_arg in
17155 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17156 esac
17157 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17158
17159 # Pass --silent
17160 if test "$silent" = yes; then
17161 ac_sub_configure_args="--silent $ac_sub_configure_args"
17162 fi
17163
17164 # Always prepend --disable-option-checking to silence warnings, since
17165 # different subdirs can have different --enable and --with options.
17166 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17167
17168 ac_popdir=`pwd`
17169 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17170
17171 # Do not complain, so a configure script can configure whichever
17172 # parts of a large source tree are present.
17173 test -d "$srcdir/$ac_dir" || continue
17174
17175 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17176 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17177 $as_echo "$ac_msg" >&6
17178 as_dir="$ac_dir"; as_fn_mkdir_p
17179 ac_builddir=.
17180
17181 case "$ac_dir" in
17182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17183 *)
17184 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17185 # A ".." for each directory in $ac_dir_suffix.
17186 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17187 case $ac_top_builddir_sub in
17188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17190 esac ;;
17191 esac
17192 ac_abs_top_builddir=$ac_pwd
17193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17194 # for backward compatibility:
17195 ac_top_builddir=$ac_top_build_prefix
17196
17197 case $srcdir in
17198 .) # We are building in place.
17199 ac_srcdir=.
17200 ac_top_srcdir=$ac_top_builddir_sub
17201 ac_abs_top_srcdir=$ac_pwd ;;
17202 [\\/]* | ?:[\\/]* ) # Absolute name.
17203 ac_srcdir=$srcdir$ac_dir_suffix;
17204 ac_top_srcdir=$srcdir
17205 ac_abs_top_srcdir=$srcdir ;;
17206 *) # Relative name.
17207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17208 ac_top_srcdir=$ac_top_build_prefix$srcdir
17209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17210 esac
17211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17212
17213
17214 cd "$ac_dir"
17215
17216 # Check for guested configure; otherwise get Cygnus style configure.
17217 if test -f "$ac_srcdir/configure.gnu"; then
17218 ac_sub_configure=$ac_srcdir/configure.gnu
17219 elif test -f "$ac_srcdir/configure"; then
17220 ac_sub_configure=$ac_srcdir/configure
17221 elif test -f "$ac_srcdir/configure.in"; then
17222 # This should be Cygnus configure.
17223 ac_sub_configure=$ac_aux_dir/configure
17224 else
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17226 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17227 ac_sub_configure=
17228 fi
17229
17230 # The recursion is here.
17231 if test -n "$ac_sub_configure"; then
17232 # Make the cache file name correct relative to the subdirectory.
17233 case $cache_file in
17234 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17235 *) # Relative name.
17236 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17237 esac
17238
17239 { $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
17240 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17241 # The eval makes quoting arguments work.
17242 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17243 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17244 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17245 fi
17246
17247 cd "$ac_popdir"
17248 done
17249 fi
17250 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17252 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17253 fi
17254
17255
17256 exit 0
This page took 0.382954 seconds and 3 git commands to generate.