Add Guile as an extension language.
[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 GUILE_LIBS
662 GUILE_CPPFLAGS
663 pkg_config_prog_path
664 PYTHON_LIBS
665 PYTHON_CPPFLAGS
666 PYTHON_CFLAGS
667 python_prog_path
668 LTLIBEXPAT
669 LIBEXPAT
670 HAVE_LIBEXPAT
671 JIT_READER_DIR
672 TARGET_PTR
673 READLINE_TEXI_INCFLAG
674 READLINE_CFLAGS
675 READLINE_DEPS
676 READLINE
677 MIG
678 WINDRES
679 DLLTOOL
680 AR
681 YFLAGS
682 YACC
683 RANLIB
684 LN_S
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 AWK
689 REPORT_BUGS_TEXI
690 REPORT_BUGS_TO
691 PKGVERSION
692 HAVE_NATIVE_GCORE_TARGET
693 TARGET_OBS
694 subdirs
695 GDB_DATADIR
696 DEBUGDIR
697 MAKEINFO_EXTRA_FLAGS
698 MAKEINFOFLAGS
699 MAKEINFO
700 PACKAGE
701 GNULIB_STDINT_H
702 CATOBJEXT
703 GENCAT
704 INSTOBJEXT
705 DATADIRNAME
706 CATALOGS
707 POSUB
708 GMSGFMT
709 XGETTEXT
710 INCINTL
711 LIBINTL_DEP
712 LIBINTL
713 USE_NLS
714 SET_MAKE
715 GMAKE_FALSE
716 GMAKE_TRUE
717 MAKE
718 CCDEPMODE
719 DEPDIR
720 am__leading_dot
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 EGREP
737 GREP
738 CPP
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
745 CC
746 MAINT
747 MAINTAINER_MODE_FALSE
748 MAINTAINER_MODE_TRUE
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files='host_makefile_frag'
788 ac_user_opts='
789 enable_option_checking
790 enable_maintainer_mode
791 enable_plugins
792 enable_largefile
793 with_separate_debug_dir
794 with_gdb_datadir
795 with_relocated_sources
796 with_auto_load_dir
797 with_auto_load_safe_path
798 enable_targets
799 enable_64_bit_bfd
800 enable_gdbcli
801 enable_gdbmi
802 enable_tui
803 enable_gdbtk
804 with_libunwind_ia64
805 with_curses
806 enable_profiling
807 with_pkgversion
808 with_bugurl
809 with_zlib
810 with_libiconv_prefix
811 with_iconv_bin
812 with_system_readline
813 with_jit_reader_dir
814 with_expat
815 with_gnu_ld
816 enable_rpath
817 with_libexpat_prefix
818 with_python
819 with_guile
820 enable_libmcheck
821 with_included_regex
822 with_sysroot
823 with_system_gdbinit
824 enable_werror
825 enable_build_warnings
826 enable_gdb_build_warnings
827 with_lzma
828 with_liblzma_prefix
829 with_tcl
830 with_tk
831 with_x
832 enable_sim
833 enable_multi_ice
834 enable_gdbserver
835 with_babeltrace
836 with_libbabeltrace_prefix
837 '
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 CPP
847 MAKEINFO
848 MAKEINFOFLAGS
849 YACC
850 YFLAGS
851 XMKMF'
852 ac_subdirs_all='testsuite
853 gdbtk
854 multi-ice
855 gdbserver'
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *) ac_optarg=yes ;;
919 esac
920
921 # Accept the important Cygnus configure options, so we can diagnose typos.
922
923 case $ac_dashdash$ac_option in
924 --)
925 ac_dashdash=yes ;;
926
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
931
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
936
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
943
944 --config-cache | -C)
945 cache_file=config.cache ;;
946
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
951
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
958
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
974
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
979
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
984
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error "invalid feature name: $ac_useropt"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1009
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1013
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1020
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1025
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1031
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1038
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1043
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1048
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1055
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1060
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1067
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1072
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1076
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1080
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1084
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1093
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1098
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1105
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1112
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1129
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1134
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1139
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1143
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 ac_prev=sbindir ;;
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 | --sbi=* | --sb=*)
1148 sbindir=$ac_optarg ;;
1149
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1153 | --sha | --sh)
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 | --sha=* | --sh=*)
1159 sharedstatedir=$ac_optarg ;;
1160
1161 -site | --site | --sit)
1162 ac_prev=site ;;
1163 -site=* | --site=* | --sit=*)
1164 site=$ac_optarg ;;
1165
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 ac_prev=srcdir ;;
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1170
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1177
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1182
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 verbose=yes ;;
1185
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1188
1189 -with-* | --with-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=\$ac_optarg ;;
1204
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=no ;;
1220
1221 --x)
1222 # Obsolete; use --with-x.
1223 with_x=yes ;;
1224
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1231
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1238
1239 -*) as_fn_error "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information."
1241 ;;
1242
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1249 esac
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1252
1253 *)
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1259 ;;
1260
1261 esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error "missing argument to $ac_option"
1267 fi
1268
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1271 no) ;;
1272 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 esac
1275 fi
1276
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1282 do
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1285 case $ac_val in
1286 */ )
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1289 esac
1290 # Be sure to have absolute directory names.
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
1295 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1312 cross_compiling=yes
1313 fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error "working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error "pwd does not report name of working directory"
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures this package to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1450
1451 cat <<\_ACEOF
1452
1453 Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458 X features:
1459 --x-includes=DIR X include files are in DIR
1460 --x-libraries=DIR X library files are in DIR
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 --target=TARGET configure for building compilers for TARGET [HOST]
1466 _ACEOF
1467 fi
1468
1469 if test -n "$ac_init_help"; then
1470
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-maintainer-mode enable make rules and dependencies not useful
1478 (and sometimes confusing) to the casual installer
1479 --enable-plugins Enable support for plugins (defaults no)
1480 --disable-largefile omit support for large files
1481 --enable-targets=TARGETS
1482 alternative target configurations
1483 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1484 --disable-gdbcli disable command-line interface (CLI)
1485 --disable-gdbmi disable machine-interface (MI)
1486 --enable-tui enable full-screen terminal user interface (TUI)
1487 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1488 --enable-profiling enable profiling of GDB
1489 --disable-rpath do not hardcode runtime library paths
1490 --enable-libmcheck Try linking with -lmcheck if available
1491 --enable-werror treat compile warnings as errors
1492 --enable-build-warnings enable build-time compiler warnings if gcc is used
1493 --enable-gdb-build-warnings
1494 enable GDB specific build-time compiler warnings if
1495 gcc is used
1496 --enable-sim link gdb with simulator
1497 --enable-multi-ice build the multi-ice-gdb-server
1498 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1499 is auto)
1500
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-separate-debug-dir=PATH
1505 look for global separate debug info in this path
1506 [LIBDIR/debug]
1507 --with-gdb-datadir=PATH look for global separate data files in this path
1508 [DATADIR/gdb]
1509 --with-relocated-sources=PATH
1510 automatically relocate this path for source files
1511 --with-auto-load-dir=PATH
1512 directories from which to load auto-loaded scripts
1513 [$debugdir:$datadir/auto-load]
1514 --with-auto-load-safe-path=PATH
1515 directories safe to hold auto-loaded files
1516 [--with-auto-load-dir]
1517 --without-auto-load-safe-path
1518 do not restrict auto-loaded files locations
1519 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1520 --with-curses use the curses library instead of the termcap
1521 library
1522 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1523 --with-bugurl=URL Direct users to URL to report a bug
1524 --with-zlib include zlib support (auto/yes/no) default=auto
1525 --with-libiconv-prefix=DIR
1526 search for libiconv in DIR/include and DIR/lib
1527 --with-iconv-bin=PATH specify where to find the iconv program
1528 --with-system-readline use installed readline library
1529 --with-jit-reader-dir=PATH
1530 directory to load the JIT readers from
1531 --with-expat include expat support (auto/yes/no)
1532 --with-gnu-ld assume the C compiler uses GNU ld default=no
1533 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1534 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1535 --with-python[=PYTHON] include python support
1536 (auto/yes/no/<python-program>)
1537 --with-guile[=GUILE] include guile support
1538 (auto/yes/no/<guile-version>/<pkg-config-program>)
1539 --without-included-regex
1540 don't use included regex; this is the default on
1541 systems with version 2 of the GNU C library (use
1542 with caution on other system)
1543 --with-sysroot[=DIR] search for usr/lib et al within DIR
1544 --with-system-gdbinit=PATH
1545 automatically load a system-wide gdbinit file
1546 --with-lzma support lzma compression (auto/yes/no)
1547 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1548 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1549 --with-tcl directory containing tcl configuration (tclConfig.sh)
1550 --with-tk directory containing tk configuration (tkConfig.sh)
1551 --with-x use the X Window System
1552 --with-babeltrace include babeltrace support (auto/yes/no)
1553 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1554 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1555
1556 Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1564 CPP C preprocessor
1565 MAKEINFO Parent configure detects if it is of sufficient version.
1566 MAKEINFOFLAGS
1567 Parameters for MAKEINFO.
1568 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1569 the first program found out of: `bison -y', `byacc', `yacc'.
1570 YFLAGS The list of arguments that will be passed by default to $YACC.
1571 This script will default YFLAGS to the empty string to avoid a
1572 default value of `-d' given by some make applications.
1573 XMKMF Path to xmkmf, Makefile generator for X Window System
1574
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1577
1578 Report bugs to the package provider.
1579 _ACEOF
1580 ac_status=$?
1581 fi
1582
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 continue
1589 ac_builddir=.
1590
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *)
1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1606
1607 case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1631 else
1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1635 done
1636 fi
1637
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640 cat <<\_ACEOF
1641 configure
1642 generated by GNU Autoconf 2.64
1643
1644 Copyright (C) 2009 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1647 _ACEOF
1648 exit
1649 fi
1650
1651 ## ------------------------ ##
1652 ## Autoconf initialization. ##
1653 ## ------------------------ ##
1654
1655 # ac_fn_c_try_compile LINENO
1656 # --------------------------
1657 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_compile ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext
1662 if { { ac_try="$ac_compile"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687 fi
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 return $ac_retval
1690
1691 } # ac_fn_c_try_compile
1692
1693 # ac_fn_c_try_cpp LINENO
1694 # ----------------------
1695 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_cpp ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_cpp conftest.$ac_ext"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } >/dev/null && {
1715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724 fi
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1727
1728 } # ac_fn_c_try_cpp
1729
1730 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1733 # the include files in INCLUDES and setting the cache variable VAR
1734 # accordingly.
1735 ac_fn_c_check_header_mongrel ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 else
1748 # Is the header compilable?
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1750 $as_echo_n "checking $2 usability... " >&6; }
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 $4
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757 ac_header_compiler=yes
1758 else
1759 ac_header_compiler=no
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1763 $as_echo "$ac_header_compiler" >&6; }
1764
1765 # Is the header present?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1767 $as_echo_n "checking $2 presence... " >&6; }
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_cpp "$LINENO"; then :
1773 ac_header_preproc=yes
1774 else
1775 ac_header_preproc=no
1776 fi
1777 rm -f conftest.err conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1779 $as_echo "$ac_header_preproc" >&6; }
1780
1781 # So? What about this header?
1782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1783 yes:no: )
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1785 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1787 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1788 ;;
1789 no:yes:* )
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1791 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1793 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1795 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1797 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800 ;;
1801 esac
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805 $as_echo_n "(cached) " >&6
1806 else
1807 eval "$3=\$ac_header_compiler"
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 fi
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814
1815 } # ac_fn_c_check_header_mongrel
1816
1817 # ac_fn_c_try_run LINENO
1818 # ----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1820 # that executables *can* be run.
1821 ac_fn_c_try_run ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_link"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>&5
1832 ac_status=$?
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1835 { { case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_try") 2>&5
1842 ac_status=$?
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; }; }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: program exited with status $ac_status" >&5
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=$ac_status
1852 fi
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855 return $ac_retval
1856
1857 } # ac_fn_c_try_run
1858
1859 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1860 # -------------------------------------------------------
1861 # Tests whether HEADER exists and can be compiled using the include files in
1862 # INCLUDES, setting the cache variable VAR accordingly.
1863 ac_fn_c_check_header_compile ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1870 else
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1873 $4
1874 #include <$2>
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 eval "$3=yes"
1878 else
1879 eval "$3=no"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 fi
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887
1888 } # ac_fn_c_check_header_compile
1889
1890 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1891 # --------------------------------------------
1892 # Tries to find the compile-time value of EXPR in a program that includes
1893 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1894 # computed
1895 ac_fn_c_compute_int ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if test "$cross_compiling" = yes; then
1899 # Depending upon the size, compute the lo and hi bounds.
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $4
1903 int
1904 main ()
1905 {
1906 static int test_array [1 - 2 * !(($2) >= 0)];
1907 test_array [0] = 0
1908
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_lo=0 ac_mid=0
1915 while :; do
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main ()
1921 {
1922 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1923 test_array [0] = 0
1924
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_hi=$ac_mid; break
1931 else
1932 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1933 if test $ac_lo -le $ac_mid; then
1934 ac_lo= ac_hi=
1935 break
1936 fi
1937 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 done
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $4
1945 int
1946 main ()
1947 {
1948 static int test_array [1 - 2 * !(($2) < 0)];
1949 test_array [0] = 0
1950
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_hi=-1 ac_mid=-1
1957 while :; do
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $4
1961 int
1962 main ()
1963 {
1964 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1965 test_array [0] = 0
1966
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_lo=$ac_mid; break
1973 else
1974 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1975 if test $ac_mid -le $ac_hi; then
1976 ac_lo= ac_hi=
1977 break
1978 fi
1979 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 done
1983 else
1984 ac_lo= ac_hi=
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 # Binary search between lo and hi bounds.
1990 while test "x$ac_lo" != "x$ac_hi"; do
1991 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 $4
1995 int
1996 main ()
1997 {
1998 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1999 test_array [0] = 0
2000
2001 ;
2002 return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_hi=$ac_mid
2007 else
2008 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 done
2012 case $ac_lo in #((
2013 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2014 '') ac_retval=1 ;;
2015 esac
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 static long int longval () { return $2; }
2021 static unsigned long int ulongval () { return $2; }
2022 #include <stdio.h>
2023 #include <stdlib.h>
2024 int
2025 main ()
2026 {
2027
2028 FILE *f = fopen ("conftest.val", "w");
2029 if (! f)
2030 return 1;
2031 if (($2) < 0)
2032 {
2033 long int i = longval ();
2034 if (i != ($2))
2035 return 1;
2036 fprintf (f, "%ld", i);
2037 }
2038 else
2039 {
2040 unsigned long int i = ulongval ();
2041 if (i != ($2))
2042 return 1;
2043 fprintf (f, "%lu", i);
2044 }
2045 /* Do not output a trailing newline, as this causes \r\n confusion
2046 on some platforms. */
2047 return ferror (f) || fclose (f) != 0;
2048
2049 ;
2050 return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_run "$LINENO"; then :
2054 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2055 else
2056 ac_retval=1
2057 fi
2058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2059 conftest.$ac_objext conftest.beam conftest.$ac_ext
2060 rm -f conftest.val
2061
2062 fi
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 return $ac_retval
2065
2066 } # ac_fn_c_compute_int
2067
2068 # ac_fn_c_try_link LINENO
2069 # -----------------------
2070 # Try to link conftest.$ac_ext, and return whether this succeeded.
2071 ac_fn_c_try_link ()
2072 {
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 rm -f conftest.$ac_objext conftest$ac_exeext
2075 if { { ac_try="$ac_link"
2076 case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079 esac
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_link") 2>conftest.err
2083 ac_status=$?
2084 if test -s conftest.err; then
2085 grep -v '^ *+' conftest.err >conftest.er1
2086 cat conftest.er1 >&5
2087 mv -f conftest.er1 conftest.err
2088 fi
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; } && {
2091 test -z "$ac_c_werror_flag" ||
2092 test ! -s conftest.err
2093 } && test -s conftest$ac_exeext && {
2094 test "$cross_compiling" = yes ||
2095 $as_test_x conftest$ac_exeext
2096 }; then :
2097 ac_retval=0
2098 else
2099 $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2101
2102 ac_retval=1
2103 fi
2104 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2105 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2106 # interfere with the next link command; also delete a directory that is
2107 # left behind by Apple's compiler. We do this before executing the actions.
2108 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110 return $ac_retval
2111
2112 } # ac_fn_c_try_link
2113
2114 # ac_fn_c_check_func LINENO FUNC VAR
2115 # ----------------------------------
2116 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2117 ac_fn_c_check_func ()
2118 {
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2123 $as_echo_n "(cached) " >&6
2124 else
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2129 #define $2 innocuous_$2
2130
2131 /* System header to define __stub macros and hopefully few prototypes,
2132 which can conflict with char $2 (); below.
2133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2134 <limits.h> exists even on freestanding compilers. */
2135
2136 #ifdef __STDC__
2137 # include <limits.h>
2138 #else
2139 # include <assert.h>
2140 #endif
2141
2142 #undef $2
2143
2144 /* Override any GCC internal prototype to avoid an error.
2145 Use char because int might match the return type of a GCC
2146 builtin and then its argument prototype would still apply. */
2147 #ifdef __cplusplus
2148 extern "C"
2149 #endif
2150 char $2 ();
2151 /* The GNU C library defines this for functions which it implements
2152 to always fail with ENOSYS. Some functions are actually named
2153 something starting with __ and the normal name is an alias. */
2154 #if defined __stub_$2 || defined __stub___$2
2155 choke me
2156 #endif
2157
2158 int
2159 main ()
2160 {
2161 return $2 ();
2162 ;
2163 return 0;
2164 }
2165 _ACEOF
2166 if ac_fn_c_try_link "$LINENO"; then :
2167 eval "$3=yes"
2168 else
2169 eval "$3=no"
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext \
2172 conftest$ac_exeext conftest.$ac_ext
2173 fi
2174 eval ac_res=\$$3
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178
2179 } # ac_fn_c_check_func
2180
2181 # ac_fn_c_check_decl LINENO SYMBOL VAR
2182 # ------------------------------------
2183 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2184 ac_fn_c_check_decl ()
2185 {
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 as_decl_name=`echo $2|sed 's/ *(.*//'`
2188 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2190 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2191 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2193 else
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 $4
2197 int
2198 main ()
2199 {
2200 #ifndef $as_decl_name
2201 #ifdef __cplusplus
2202 (void) $as_decl_use;
2203 #else
2204 (void) $as_decl_name;
2205 #endif
2206 #endif
2207
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214 else
2215 eval "$3=no"
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224 } # ac_fn_c_check_decl
2225
2226 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2227 # ----------------------------------------------------
2228 # Tries to find if the field MEMBER exists in type AGGR, after including
2229 # INCLUDES, setting cache variable VAR accordingly.
2230 ac_fn_c_check_member ()
2231 {
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2234 $as_echo_n "checking for $2.$3... " >&6; }
2235 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $5
2241 int
2242 main ()
2243 {
2244 static $2 ac_aggr;
2245 if (ac_aggr.$3)
2246 return 0;
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 eval "$4=yes"
2253 else
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2256 $5
2257 int
2258 main ()
2259 {
2260 static $2 ac_aggr;
2261 if (sizeof ac_aggr.$3)
2262 return 0;
2263 ;
2264 return 0;
2265 }
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268 eval "$4=yes"
2269 else
2270 eval "$4=no"
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 fi
2276 eval ac_res=\$$4
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280
2281 } # ac_fn_c_check_member
2282
2283 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2284 # -------------------------------------------
2285 # Tests whether TYPE exists after having included INCLUDES, setting cache
2286 # variable VAR accordingly.
2287 ac_fn_c_check_type ()
2288 {
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2291 $as_echo_n "checking for $2... " >&6; }
2292 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 eval "$3=no"
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $4
2299 int
2300 main ()
2301 {
2302 if (sizeof ($2))
2303 return 0;
2304 ;
2305 return 0;
2306 }
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $4
2312 int
2313 main ()
2314 {
2315 if (sizeof (($2)))
2316 return 0;
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322
2323 else
2324 eval "$3=yes"
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 fi
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 fi
2330 eval ac_res=\$$3
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334
2335 } # ac_fn_c_check_type
2336 cat >config.log <<_ACEOF
2337 This file contains any messages produced by compilers while
2338 running configure, to aid debugging if configure makes a mistake.
2339
2340 It was created by $as_me, which was
2341 generated by GNU Autoconf 2.64. Invocation command line was
2342
2343 $ $0 $@
2344
2345 _ACEOF
2346 exec 5>>config.log
2347 {
2348 cat <<_ASUNAME
2349 ## --------- ##
2350 ## Platform. ##
2351 ## --------- ##
2352
2353 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2354 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2355 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2356 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2357 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2358
2359 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2360 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2361
2362 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2363 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2364 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2365 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2366 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2367 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2368 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2369
2370 _ASUNAME
2371
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 $as_echo "PATH: $as_dir"
2378 done
2379 IFS=$as_save_IFS
2380
2381 } >&5
2382
2383 cat >&5 <<_ACEOF
2384
2385
2386 ## ----------- ##
2387 ## Core tests. ##
2388 ## ----------- ##
2389
2390 _ACEOF
2391
2392
2393 # Keep a trace of the command line.
2394 # Strip out --no-create and --no-recursion so they do not pile up.
2395 # Strip out --silent because we don't want to record it for future runs.
2396 # Also quote any args containing shell meta-characters.
2397 # Make two passes to allow for proper duplicate-argument suppression.
2398 ac_configure_args=
2399 ac_configure_args0=
2400 ac_configure_args1=
2401 ac_must_keep_next=false
2402 for ac_pass in 1 2
2403 do
2404 for ac_arg
2405 do
2406 case $ac_arg in
2407 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2409 | -silent | --silent | --silen | --sile | --sil)
2410 continue ;;
2411 *\'*)
2412 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2413 esac
2414 case $ac_pass in
2415 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2416 2)
2417 as_fn_append ac_configure_args1 " '$ac_arg'"
2418 if test $ac_must_keep_next = true; then
2419 ac_must_keep_next=false # Got value, back to normal.
2420 else
2421 case $ac_arg in
2422 *=* | --config-cache | -C | -disable-* | --disable-* \
2423 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2424 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2425 | -with-* | --with-* | -without-* | --without-* | --x)
2426 case "$ac_configure_args0 " in
2427 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2428 esac
2429 ;;
2430 -* ) ac_must_keep_next=true ;;
2431 esac
2432 fi
2433 as_fn_append ac_configure_args " '$ac_arg'"
2434 ;;
2435 esac
2436 done
2437 done
2438 { ac_configure_args0=; unset ac_configure_args0;}
2439 { ac_configure_args1=; unset ac_configure_args1;}
2440
2441 # When interrupted or exit'd, cleanup temporary files, and complete
2442 # config.log. We remove comments because anyway the quotes in there
2443 # would cause problems or look ugly.
2444 # WARNING: Use '\'' to represent an apostrophe within the trap.
2445 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2446 trap 'exit_status=$?
2447 # Save into config.log some information that might help in debugging.
2448 {
2449 echo
2450
2451 cat <<\_ASBOX
2452 ## ---------------- ##
2453 ## Cache variables. ##
2454 ## ---------------- ##
2455 _ASBOX
2456 echo
2457 # The following way of writing the cache mishandles newlines in values,
2458 (
2459 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in #(
2462 *${as_nl}*)
2463 case $ac_var in #(
2464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2466 esac
2467 case $ac_var in #(
2468 _ | IFS | as_nl) ;; #(
2469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2470 *) { eval $ac_var=; unset $ac_var;} ;;
2471 esac ;;
2472 esac
2473 done
2474 (set) 2>&1 |
2475 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2476 *${as_nl}ac_space=\ *)
2477 sed -n \
2478 "s/'\''/'\''\\\\'\'''\''/g;
2479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2480 ;; #(
2481 *)
2482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2483 ;;
2484 esac |
2485 sort
2486 )
2487 echo
2488
2489 cat <<\_ASBOX
2490 ## ----------------- ##
2491 ## Output variables. ##
2492 ## ----------------- ##
2493 _ASBOX
2494 echo
2495 for ac_var in $ac_subst_vars
2496 do
2497 eval ac_val=\$$ac_var
2498 case $ac_val in
2499 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500 esac
2501 $as_echo "$ac_var='\''$ac_val'\''"
2502 done | sort
2503 echo
2504
2505 if test -n "$ac_subst_files"; then
2506 cat <<\_ASBOX
2507 ## ------------------- ##
2508 ## File substitutions. ##
2509 ## ------------------- ##
2510 _ASBOX
2511 echo
2512 for ac_var in $ac_subst_files
2513 do
2514 eval ac_val=\$$ac_var
2515 case $ac_val in
2516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517 esac
2518 $as_echo "$ac_var='\''$ac_val'\''"
2519 done | sort
2520 echo
2521 fi
2522
2523 if test -s confdefs.h; then
2524 cat <<\_ASBOX
2525 ## ----------- ##
2526 ## confdefs.h. ##
2527 ## ----------- ##
2528 _ASBOX
2529 echo
2530 cat confdefs.h
2531 echo
2532 fi
2533 test "$ac_signal" != 0 &&
2534 $as_echo "$as_me: caught signal $ac_signal"
2535 $as_echo "$as_me: exit $exit_status"
2536 } >&5
2537 rm -f core *.core core.conftest.* &&
2538 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2539 exit $exit_status
2540 ' 0
2541 for ac_signal in 1 2 13 15; do
2542 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2543 done
2544 ac_signal=0
2545
2546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2547 rm -f -r conftest* confdefs.h
2548
2549 $as_echo "/* confdefs.h */" > confdefs.h
2550
2551 # Predefined preprocessor variables.
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_NAME "$PACKAGE_NAME"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2563 _ACEOF
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_STRING "$PACKAGE_STRING"
2567 _ACEOF
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2571 _ACEOF
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_URL "$PACKAGE_URL"
2575 _ACEOF
2576
2577
2578 # Let the site file select an alternate cache file if it wants to.
2579 # Prefer an explicitly selected file to automatically selected ones.
2580 ac_site_file1=NONE
2581 ac_site_file2=NONE
2582 if test -n "$CONFIG_SITE"; then
2583 ac_site_file1=$CONFIG_SITE
2584 elif test "x$prefix" != xNONE; then
2585 ac_site_file1=$prefix/share/config.site
2586 ac_site_file2=$prefix/etc/config.site
2587 else
2588 ac_site_file1=$ac_default_prefix/share/config.site
2589 ac_site_file2=$ac_default_prefix/etc/config.site
2590 fi
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2592 do
2593 test "x$ac_site_file" = xNONE && continue
2594 if test -r "$ac_site_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2597 sed 's/^/| /' "$ac_site_file" >&5
2598 . "$ac_site_file"
2599 fi
2600 done
2601
2602 if test -r "$cache_file"; then
2603 # Some versions of bash will fail to source /dev/null (special
2604 # files actually), so we avoid doing that.
2605 if test -f "$cache_file"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2607 $as_echo "$as_me: loading cache $cache_file" >&6;}
2608 case $cache_file in
2609 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2610 *) . "./$cache_file";;
2611 esac
2612 fi
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2615 $as_echo "$as_me: creating cache $cache_file" >&6;}
2616 >$cache_file
2617 fi
2618
2619 # Check that the precious variables saved in the cache have kept the same
2620 # value.
2621 ac_cache_corrupted=false
2622 for ac_var in $ac_precious_vars; do
2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624 eval ac_new_set=\$ac_env_${ac_var}_set
2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626 eval ac_new_val=\$ac_env_${ac_var}_value
2627 case $ac_old_set,$ac_new_set in
2628 set,)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,set)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,);;
2637 *)
2638 if test "x$ac_old_val" != "x$ac_new_val"; then
2639 # differences in whitespace do not lead to failure.
2640 ac_old_val_w=`echo x $ac_old_val`
2641 ac_new_val_w=`echo x $ac_new_val`
2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645 ac_cache_corrupted=:
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649 eval $ac_var=\$ac_old_val
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2652 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2654 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2655 fi;;
2656 esac
2657 # Pass precious variables to config.status.
2658 if test "$ac_new_set" = set; then
2659 case $ac_new_val in
2660 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661 *) ac_arg=$ac_var=$ac_new_val ;;
2662 esac
2663 case " $ac_configure_args " in
2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2665 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2666 esac
2667 fi
2668 done
2669 if $ac_cache_corrupted; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2674 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2675 fi
2676 ## -------------------- ##
2677 ## Main body of script. ##
2678 ## -------------------- ##
2679
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685
2686
2687
2688
2689
2690 ac_config_headers="$ac_config_headers config.h:config.in"
2691
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2694 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2695 # Check whether --enable-maintainer-mode was given.
2696 if test "${enable_maintainer_mode+set}" = set; then :
2697 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2698 else
2699 USE_MAINTAINER_MODE=no
2700 fi
2701
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2703 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2704 if test $USE_MAINTAINER_MODE = yes; then
2705 MAINTAINER_MODE_TRUE=
2706 MAINTAINER_MODE_FALSE='#'
2707 else
2708 MAINTAINER_MODE_TRUE='#'
2709 MAINTAINER_MODE_FALSE=
2710 fi
2711
2712 MAINT=$MAINTAINER_MODE_TRUE
2713
2714
2715
2716 # Set the 'development' global.
2717 . $srcdir/development.sh
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 if test -n "$ac_tool_prefix"; then
2725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2726 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_prog_CC+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2749
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2759 fi
2760
2761
2762 fi
2763 if test -z "$ac_cv_prog_CC"; then
2764 ac_ct_CC=$CC
2765 # Extract the first word of "gcc", so it can be a program name with args.
2766 set dummy gcc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$ac_ct_CC"; then
2773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_ac_ct_CC="gcc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2785 fi
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791 fi
2792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2793 if test -n "$ac_ct_CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2795 $as_echo "$ac_ct_CC" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801 if test "x$ac_ct_CC" = x; then
2802 CC=""
2803 else
2804 case $cross_compiling:$ac_tool_warned in
2805 yes:)
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2809 esac
2810 CC=$ac_ct_CC
2811 fi
2812 else
2813 CC="$ac_cv_prog_CC"
2814 fi
2815
2816 if test -z "$CC"; then
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}cc; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_CC+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2824 else
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_CC="${ac_tool_prefix}cc"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 CC=$ac_cv_prog_CC
2846 if test -n "$CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2848 $as_echo "$CC" >&6; }
2849 else
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855 fi
2856 fi
2857 if test -z "$CC"; then
2858 # Extract the first word of "cc", so it can be a program name with args.
2859 set dummy cc; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_CC+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$CC"; then
2866 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 else
2868 ac_prog_rejected=no
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2877 ac_prog_rejected=yes
2878 continue
2879 fi
2880 ac_cv_prog_CC="cc"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 if test $ac_prog_rejected = yes; then
2889 # We found a bogon in the path, so make sure we never use it.
2890 set dummy $ac_cv_prog_CC
2891 shift
2892 if test $# != 0; then
2893 # We chose a different compiler from the bogus one.
2894 # However, it has the same basename, so the bogon will be chosen
2895 # first if we set CC to just the basename; use the full file name.
2896 shift
2897 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2898 fi
2899 fi
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog in cl.exe
2916 do
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938 done
2939 done
2940 IFS=$as_save_IFS
2941
2942 fi
2943 fi
2944 CC=$ac_cv_prog_CC
2945 if test -n "$CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2951 fi
2952
2953
2954 test -n "$CC" && break
2955 done
2956 fi
2957 if test -z "$CC"; then
2958 ac_ct_CC=$CC
2959 for ac_prog in cl.exe
2960 do
2961 # Extract the first word of "$ac_prog", so it can be a program name with args.
2962 set dummy $ac_prog; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if test -n "$ac_ct_CC"; then
2969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_ac_ct_CC="$ac_prog"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982 done
2983 done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2992 else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997
2998 test -n "$ac_ct_CC" && break
2999 done
3000
3001 if test "x$ac_ct_CC" = x; then
3002 CC=""
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 CC=$ac_ct_CC
3011 fi
3012 fi
3013
3014 fi
3015
3016
3017 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error "no acceptable C compiler found in \$PATH
3020 See \`config.log' for more details." "$LINENO" 5; }
3021
3022 # Provide some information about the compiler.
3023 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3024 set X $ac_compile
3025 ac_compiler=$2
3026 for ac_option in --version -v -V -qversion; do
3027 { { ac_try="$ac_compiler $ac_option >&5"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3035 ac_status=$?
3036 if test -s conftest.err; then
3037 sed '10a\
3038 ... rest of stderr output deleted ...
3039 10q' conftest.err >conftest.er1
3040 cat conftest.er1 >&5
3041 rm -f conftest.er1 conftest.err
3042 fi
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }
3045 done
3046
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3049
3050 int
3051 main ()
3052 {
3053
3054 ;
3055 return 0;
3056 }
3057 _ACEOF
3058 ac_clean_files_save=$ac_clean_files
3059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3060 # Try to create an executable without -o first, disregard a.out.
3061 # It will help us diagnose broken compilers, and finding out an intuition
3062 # of exeext.
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3064 $as_echo_n "checking for C compiler default output file name... " >&6; }
3065 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3066
3067 # The possible output files:
3068 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3069
3070 ac_rmfiles=
3071 for ac_file in $ac_files
3072 do
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3075 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3076 esac
3077 done
3078 rm -f $ac_rmfiles
3079
3080 if { { ac_try="$ac_link_default"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 $as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_link_default") 2>&5
3088 ac_status=$?
3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }; then :
3091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3092 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3093 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3094 # so that the user can short-circuit this test for compilers unknown to
3095 # Autoconf.
3096 for ac_file in $ac_files ''
3097 do
3098 test -f "$ac_file" || continue
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3101 ;;
3102 [ab].out )
3103 # We found the default executable, but exeext='' is most
3104 # certainly right.
3105 break;;
3106 *.* )
3107 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3108 then :; else
3109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3110 fi
3111 # We set ac_cv_exeext here because the later test for it is not
3112 # safe: cross compilers may not add the suffix if given an `-o'
3113 # argument, so we may need to know it at that point already.
3114 # Even if this section looks crufty: it has the advantage of
3115 # actually working.
3116 break;;
3117 * )
3118 break;;
3119 esac
3120 done
3121 test "$ac_cv_exeext" = no && ac_cv_exeext=
3122
3123 else
3124 ac_file=''
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3127 $as_echo "$ac_file" >&6; }
3128 if test -z "$ac_file"; then :
3129 $as_echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 { as_fn_set_status 77
3135 as_fn_error "C compiler cannot create executables
3136 See \`config.log' for more details." "$LINENO" 5; }; }
3137 fi
3138 ac_exeext=$ac_cv_exeext
3139
3140 # Check that the compiler produces executables we can run. If not, either
3141 # the compiler is broken, or we cross compile.
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3143 $as_echo_n "checking whether the C compiler works... " >&6; }
3144 # If not cross compiling, check that we can run a simple program.
3145 if test "$cross_compiling" != yes; then
3146 if { ac_try='./$ac_file'
3147 { { case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }; }; then
3157 cross_compiling=no
3158 else
3159 if test "$cross_compiling" = maybe; then
3160 cross_compiling=yes
3161 else
3162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error "cannot run C compiled programs.
3165 If you meant to cross compile, use \`--host'.
3166 See \`config.log' for more details." "$LINENO" 5; }
3167 fi
3168 fi
3169 fi
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171 $as_echo "yes" >&6; }
3172
3173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3174 ac_clean_files=$ac_clean_files_save
3175 # Check that the compiler produces executables we can run. If not, either
3176 # the compiler is broken, or we cross compile.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3178 $as_echo_n "checking whether we are cross compiling... " >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3180 $as_echo "$cross_compiling" >&6; }
3181
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3183 $as_echo_n "checking for suffix of executables... " >&6; }
3184 if { { ac_try="$ac_link"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_link") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3196 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3197 # work properly (i.e., refer to `conftest.exe'), while it won't with
3198 # `rm'.
3199 for ac_file in conftest.exe conftest conftest.*; do
3200 test -f "$ac_file" || continue
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3204 break;;
3205 * ) break;;
3206 esac
3207 done
3208 else
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error "cannot compute suffix of executables: cannot compile and link
3212 See \`config.log' for more details." "$LINENO" 5; }
3213 fi
3214 rm -f conftest$ac_cv_exeext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3216 $as_echo "$ac_cv_exeext" >&6; }
3217
3218 rm -f conftest.$ac_ext
3219 EXEEXT=$ac_cv_exeext
3220 ac_exeext=$EXEEXT
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3222 $as_echo_n "checking for suffix of object files... " >&6; }
3223 if test "${ac_cv_objext+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3228
3229 int
3230 main ()
3231 {
3232
3233 ;
3234 return 0;
3235 }
3236 _ACEOF
3237 rm -f conftest.o conftest.obj
3238 if { { ac_try="$ac_compile"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compile") 2>&5
3246 ac_status=$?
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 for ac_file in conftest.o conftest.obj conftest.*; do
3250 test -f "$ac_file" || continue;
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3254 break;;
3255 esac
3256 done
3257 else
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error "cannot compute suffix of object files: cannot compile
3264 See \`config.log' for more details." "$LINENO" 5; }
3265 fi
3266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3267 fi
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3269 $as_echo "$ac_cv_objext" >&6; }
3270 OBJEXT=$ac_cv_objext
3271 ac_objext=$OBJEXT
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3273 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3274 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283 #ifndef __GNUC__
3284 choke me
3285 #endif
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_compiler_gnu=yes
3293 else
3294 ac_compiler_gnu=no
3295 fi
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3298
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3301 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3302 if test $ac_compiler_gnu = yes; then
3303 GCC=yes
3304 else
3305 GCC=
3306 fi
3307 ac_test_CFLAGS=${CFLAGS+set}
3308 ac_save_CFLAGS=$CFLAGS
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3310 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3311 if test "${ac_cv_prog_cc_g+set}" = set; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 ac_save_c_werror_flag=$ac_c_werror_flag
3315 ac_c_werror_flag=yes
3316 ac_cv_prog_cc_g=no
3317 CFLAGS="-g"
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320
3321 int
3322 main ()
3323 {
3324
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330 ac_cv_prog_cc_g=yes
3331 else
3332 CFLAGS=""
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335
3336 int
3337 main ()
3338 {
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 if ac_fn_c_try_compile "$LINENO"; then :
3345
3346 else
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3348 CFLAGS="-g"
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"; then :
3361 ac_cv_prog_cc_g=yes
3362 fi
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 fi
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 fi
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3371 $as_echo "$ac_cv_prog_cc_g" >&6; }
3372 if test "$ac_test_CFLAGS" = set; then
3373 CFLAGS=$ac_save_CFLAGS
3374 elif test $ac_cv_prog_cc_g = yes; then
3375 if test "$GCC" = yes; then
3376 CFLAGS="-g -O2"
3377 else
3378 CFLAGS="-g"
3379 fi
3380 else
3381 if test "$GCC" = yes; then
3382 CFLAGS="-O2"
3383 else
3384 CFLAGS=
3385 fi
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3388 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3389 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 ac_cv_prog_cc_c89=no
3393 ac_save_CC=$CC
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3396 #include <stdarg.h>
3397 #include <stdio.h>
3398 #include <sys/types.h>
3399 #include <sys/stat.h>
3400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3401 struct buf { int x; };
3402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403 static char *e (p, i)
3404 char **p;
3405 int i;
3406 {
3407 return p[i];
3408 }
3409 static char *f (char * (*g) (char **, int), char **p, ...)
3410 {
3411 char *s;
3412 va_list v;
3413 va_start (v,p);
3414 s = g (p, va_arg (v,int));
3415 va_end (v);
3416 return s;
3417 }
3418
3419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3420 function prototypes and stuff, but not '\xHH' hex character constants.
3421 These don't provoke an error unfortunately, instead are silently treated
3422 as 'x'. The following induces an error, until -std is added to get
3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3424 array size at least. It's necessary to write '\x00'==0 to get something
3425 that's true only with -std. */
3426 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3427
3428 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3429 inside strings and character constants. */
3430 #define FOO(x) 'x'
3431 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3432
3433 int test (int i, double x);
3434 struct s1 {int (*f) (int a);};
3435 struct s2 {int (*f) (double a);};
3436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3437 int argc;
3438 char **argv;
3439 int
3440 main ()
3441 {
3442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3448 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3449 do
3450 CC="$ac_save_CC $ac_arg"
3451 if ac_fn_c_try_compile "$LINENO"; then :
3452 ac_cv_prog_cc_c89=$ac_arg
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext
3455 test "x$ac_cv_prog_cc_c89" != "xno" && break
3456 done
3457 rm -f conftest.$ac_ext
3458 CC=$ac_save_CC
3459
3460 fi
3461 # AC_CACHE_VAL
3462 case "x$ac_cv_prog_cc_c89" in
3463 x)
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3465 $as_echo "none needed" >&6; } ;;
3466 xno)
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3468 $as_echo "unsupported" >&6; } ;;
3469 *)
3470 CC="$CC $ac_cv_prog_cc_c89"
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3472 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3473 esac
3474 if test "x$ac_cv_prog_cc_c89" != xno; then :
3475
3476 fi
3477
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3491 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3492 # On Suns, sometimes $CPP names a directory.
3493 if test -n "$CPP" && test -d "$CPP"; then
3494 CPP=
3495 fi
3496 if test -z "$CPP"; then
3497 if test "${ac_cv_prog_CPP+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 # Double quotes because CPP needs to be expanded
3501 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3502 do
3503 ac_preproc_ok=false
3504 for ac_c_preproc_warn_flag in '' yes
3505 do
3506 # Use a header file that comes with gcc, so configuring glibc
3507 # with a fresh cross-compiler works.
3508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3509 # <limits.h> exists even on freestanding compilers.
3510 # On the NeXT, cc -E runs the code through the compiler's parser,
3511 # not just through cpp. "Syntax error" is here to catch this case.
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #ifdef __STDC__
3515 # include <limits.h>
3516 #else
3517 # include <assert.h>
3518 #endif
3519 Syntax error
3520 _ACEOF
3521 if ac_fn_c_try_cpp "$LINENO"; then :
3522
3523 else
3524 # Broken: fails on valid input.
3525 continue
3526 fi
3527 rm -f conftest.err conftest.$ac_ext
3528
3529 # OK, works on sane cases. Now check whether nonexistent headers
3530 # can be detected and how.
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533 #include <ac_nonexistent.h>
3534 _ACEOF
3535 if ac_fn_c_try_cpp "$LINENO"; then :
3536 # Broken: success on invalid input.
3537 continue
3538 else
3539 # Passes both tests.
3540 ac_preproc_ok=:
3541 break
3542 fi
3543 rm -f conftest.err conftest.$ac_ext
3544
3545 done
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.err conftest.$ac_ext
3548 if $ac_preproc_ok; then :
3549 break
3550 fi
3551
3552 done
3553 ac_cv_prog_CPP=$CPP
3554
3555 fi
3556 CPP=$ac_cv_prog_CPP
3557 else
3558 ac_cv_prog_CPP=$CPP
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3561 $as_echo "$CPP" >&6; }
3562 ac_preproc_ok=false
3563 for ac_c_preproc_warn_flag in '' yes
3564 do
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
3569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error" is here to catch this case.
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573 #ifdef __STDC__
3574 # include <limits.h>
3575 #else
3576 # include <assert.h>
3577 #endif
3578 Syntax error
3579 _ACEOF
3580 if ac_fn_c_try_cpp "$LINENO"; then :
3581
3582 else
3583 # Broken: fails on valid input.
3584 continue
3585 fi
3586 rm -f conftest.err conftest.$ac_ext
3587
3588 # OK, works on sane cases. Now check whether nonexistent headers
3589 # can be detected and how.
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <ac_nonexistent.h>
3593 _ACEOF
3594 if ac_fn_c_try_cpp "$LINENO"; then :
3595 # Broken: success on invalid input.
3596 continue
3597 else
3598 # Passes both tests.
3599 ac_preproc_ok=:
3600 break
3601 fi
3602 rm -f conftest.err conftest.$ac_ext
3603
3604 done
3605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606 rm -f conftest.err conftest.$ac_ext
3607 if $ac_preproc_ok; then :
3608
3609 else
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3613 See \`config.log' for more details." "$LINENO" 5; }
3614 fi
3615
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
3622
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3624 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3625 if test "${ac_cv_path_GREP+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 if test -z "$GREP"; then
3629 ac_path_GREP_found=false
3630 # Loop through the user's path and test for each of PROGNAME-LIST
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633 do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_prog in grep ggrep; do
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3639 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3640 # Check for GNU ac_path_GREP and select it if it is found.
3641 # Check for GNU $ac_path_GREP
3642 case `"$ac_path_GREP" --version 2>&1` in
3643 *GNU*)
3644 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3645 *)
3646 ac_count=0
3647 $as_echo_n 0123456789 >"conftest.in"
3648 while :
3649 do
3650 cat "conftest.in" "conftest.in" >"conftest.tmp"
3651 mv "conftest.tmp" "conftest.in"
3652 cp "conftest.in" "conftest.nl"
3653 $as_echo 'GREP' >> "conftest.nl"
3654 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3656 as_fn_arith $ac_count + 1 && ac_count=$as_val
3657 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3658 # Best one so far, save it but keep looking for a better one
3659 ac_cv_path_GREP="$ac_path_GREP"
3660 ac_path_GREP_max=$ac_count
3661 fi
3662 # 10*(2^10) chars as input seems more than enough
3663 test $ac_count -gt 10 && break
3664 done
3665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666 esac
3667
3668 $ac_path_GREP_found && break 3
3669 done
3670 done
3671 done
3672 IFS=$as_save_IFS
3673 if test -z "$ac_cv_path_GREP"; then
3674 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3675 fi
3676 else
3677 ac_cv_path_GREP=$GREP
3678 fi
3679
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3682 $as_echo "$ac_cv_path_GREP" >&6; }
3683 GREP="$ac_cv_path_GREP"
3684
3685
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3687 $as_echo_n "checking for egrep... " >&6; }
3688 if test "${ac_cv_path_EGREP+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3692 then ac_cv_path_EGREP="$GREP -E"
3693 else
3694 if test -z "$EGREP"; then
3695 ac_path_EGREP_found=false
3696 # Loop through the user's path and test for each of PROGNAME-LIST
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_prog in egrep; do
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3706 # Check for GNU ac_path_EGREP and select it if it is found.
3707 # Check for GNU $ac_path_EGREP
3708 case `"$ac_path_EGREP" --version 2>&1` in
3709 *GNU*)
3710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3711 *)
3712 ac_count=0
3713 $as_echo_n 0123456789 >"conftest.in"
3714 while :
3715 do
3716 cat "conftest.in" "conftest.in" >"conftest.tmp"
3717 mv "conftest.tmp" "conftest.in"
3718 cp "conftest.in" "conftest.nl"
3719 $as_echo 'EGREP' >> "conftest.nl"
3720 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3722 as_fn_arith $ac_count + 1 && ac_count=$as_val
3723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724 # Best one so far, save it but keep looking for a better one
3725 ac_cv_path_EGREP="$ac_path_EGREP"
3726 ac_path_EGREP_max=$ac_count
3727 fi
3728 # 10*(2^10) chars as input seems more than enough
3729 test $ac_count -gt 10 && break
3730 done
3731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732 esac
3733
3734 $ac_path_EGREP_found && break 3
3735 done
3736 done
3737 done
3738 IFS=$as_save_IFS
3739 if test -z "$ac_cv_path_EGREP"; then
3740 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3741 fi
3742 else
3743 ac_cv_path_EGREP=$EGREP
3744 fi
3745
3746 fi
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3749 $as_echo "$ac_cv_path_EGREP" >&6; }
3750 EGREP="$ac_cv_path_EGREP"
3751
3752
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3754 $as_echo_n "checking for ANSI C header files... " >&6; }
3755 if test "${ac_cv_header_stdc+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760 #include <stdlib.h>
3761 #include <stdarg.h>
3762 #include <string.h>
3763 #include <float.h>
3764
3765 int
3766 main ()
3767 {
3768
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_cv_header_stdc=yes
3775 else
3776 ac_cv_header_stdc=no
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779
3780 if test $ac_cv_header_stdc = yes; then
3781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784 #include <string.h>
3785
3786 _ACEOF
3787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788 $EGREP "memchr" >/dev/null 2>&1; then :
3789
3790 else
3791 ac_cv_header_stdc=no
3792 fi
3793 rm -f conftest*
3794
3795 fi
3796
3797 if test $ac_cv_header_stdc = yes; then
3798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801 #include <stdlib.h>
3802
3803 _ACEOF
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "free" >/dev/null 2>&1; then :
3806
3807 else
3808 ac_cv_header_stdc=no
3809 fi
3810 rm -f conftest*
3811
3812 fi
3813
3814 if test $ac_cv_header_stdc = yes; then
3815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816 if test "$cross_compiling" = yes; then :
3817 :
3818 else
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821 #include <ctype.h>
3822 #include <stdlib.h>
3823 #if ((' ' & 0x0FF) == 0x020)
3824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3826 #else
3827 # define ISLOWER(c) \
3828 (('a' <= (c) && (c) <= 'i') \
3829 || ('j' <= (c) && (c) <= 'r') \
3830 || ('s' <= (c) && (c) <= 'z'))
3831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3832 #endif
3833
3834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3835 int
3836 main ()
3837 {
3838 int i;
3839 for (i = 0; i < 256; i++)
3840 if (XOR (islower (i), ISLOWER (i))
3841 || toupper (i) != TOUPPER (i))
3842 return 2;
3843 return 0;
3844 }
3845 _ACEOF
3846 if ac_fn_c_try_run "$LINENO"; then :
3847
3848 else
3849 ac_cv_header_stdc=no
3850 fi
3851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3852 conftest.$ac_objext conftest.beam conftest.$ac_ext
3853 fi
3854
3855 fi
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3858 $as_echo "$ac_cv_header_stdc" >&6; }
3859 if test $ac_cv_header_stdc = yes; then
3860
3861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3862
3863 fi
3864
3865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3867 inttypes.h stdint.h unistd.h
3868 do :
3869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3871 "
3872 eval as_val=\$$as_ac_Header
3873 if test "x$as_val" = x""yes; then :
3874 cat >>confdefs.h <<_ACEOF
3875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3876 _ACEOF
3877
3878 fi
3879
3880 done
3881
3882
3883
3884 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3885 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3886 MINIX=yes
3887 else
3888 MINIX=
3889 fi
3890
3891
3892 if test "$MINIX" = yes; then
3893
3894 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3895
3896
3897 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3898
3899
3900 $as_echo "#define _MINIX 1" >>confdefs.h
3901
3902 fi
3903
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3906 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3907 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912
3913 # define __EXTENSIONS__ 1
3914 $ac_includes_default
3915 int
3916 main ()
3917 {
3918
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_cv_safe_to_define___extensions__=yes
3925 else
3926 ac_cv_safe_to_define___extensions__=no
3927 fi
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3931 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3932 test $ac_cv_safe_to_define___extensions__ = yes &&
3933 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3934
3935 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3936
3937 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3938
3939 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3940
3941 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3942
3943
3944 ac_aux_dir=
3945 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3946 for ac_t in install-sh install.sh shtool; do
3947 if test -f "$ac_dir/$ac_t"; then
3948 ac_aux_dir=$ac_dir
3949 ac_install_sh="$ac_aux_dir/$ac_t -c"
3950 break 2
3951 fi
3952 done
3953 done
3954 if test -z "$ac_aux_dir"; then
3955 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3956 fi
3957
3958 # These three variables are undocumented and unsupported,
3959 # and are intended to be withdrawn in a future Autoconf release.
3960 # They can cause serious problems if a builder's source tree is in a directory
3961 # whose full name contains unusual characters.
3962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3965
3966
3967 # Make sure we can run config.sub.
3968 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3969 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3970
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3972 $as_echo_n "checking build system type... " >&6; }
3973 if test "${ac_cv_build+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 ac_build_alias=$build_alias
3977 test "x$ac_build_alias" = x &&
3978 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3979 test "x$ac_build_alias" = x &&
3980 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3981 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3982 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3983
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3986 $as_echo "$ac_cv_build" >&6; }
3987 case $ac_cv_build in
3988 *-*-*) ;;
3989 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3990 esac
3991 build=$ac_cv_build
3992 ac_save_IFS=$IFS; IFS='-'
3993 set x $ac_cv_build
3994 shift
3995 build_cpu=$1
3996 build_vendor=$2
3997 shift; shift
3998 # Remember, the first character of IFS is used to create $*,
3999 # except with old shells:
4000 build_os=$*
4001 IFS=$ac_save_IFS
4002 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4003
4004
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4006 $as_echo_n "checking host system type... " >&6; }
4007 if test "${ac_cv_host+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test "x$host_alias" = x; then
4011 ac_cv_host=$ac_cv_build
4012 else
4013 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4014 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4015 fi
4016
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4019 $as_echo "$ac_cv_host" >&6; }
4020 case $ac_cv_host in
4021 *-*-*) ;;
4022 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4023 esac
4024 host=$ac_cv_host
4025 ac_save_IFS=$IFS; IFS='-'
4026 set x $ac_cv_host
4027 shift
4028 host_cpu=$1
4029 host_vendor=$2
4030 shift; shift
4031 # Remember, the first character of IFS is used to create $*,
4032 # except with old shells:
4033 host_os=$*
4034 IFS=$ac_save_IFS
4035 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4036
4037
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4039 $as_echo_n "checking target system type... " >&6; }
4040 if test "${ac_cv_target+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if test "x$target_alias" = x; then
4044 ac_cv_target=$ac_cv_host
4045 else
4046 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4047 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4048 fi
4049
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4052 $as_echo "$ac_cv_target" >&6; }
4053 case $ac_cv_target in
4054 *-*-*) ;;
4055 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4056 esac
4057 target=$ac_cv_target
4058 ac_save_IFS=$IFS; IFS='-'
4059 set x $ac_cv_target
4060 shift
4061 target_cpu=$1
4062 target_vendor=$2
4063 shift; shift
4064 # Remember, the first character of IFS is used to create $*,
4065 # except with old shells:
4066 target_os=$*
4067 IFS=$ac_save_IFS
4068 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4069
4070
4071 # The aliases save the names the user supplied, while $host etc.
4072 # will get canonicalized.
4073 test -n "$target_alias" &&
4074 test "$program_prefix$program_suffix$program_transform_name" = \
4075 NONENONEs,x,x, &&
4076 program_prefix=${target_alias}-
4077
4078 # The tests for host and target for $enable_largefile require
4079 # canonical names.
4080
4081
4082
4083 # As the $enable_largefile decision depends on --enable-plugins we must set it
4084 # even in directories otherwise not depending on the $plugins option.
4085
4086
4087 # Check whether --enable-plugins was given.
4088 if test "${enable_plugins+set}" = set; then :
4089 enableval=$enable_plugins; case "${enableval}" in
4090 yes | "") plugins=yes ;;
4091 no) plugins=no ;;
4092 *) plugins=yes ;;
4093 esac
4094 else
4095 plugins=no
4096 fi
4097
4098
4099
4100 case "${host}" in
4101 sparc-*-solaris*|i[3-7]86-*-solaris*)
4102 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4103 # are mutually exclusive; and without procfs support, the bfd/ elf module
4104 # cannot provide certain routines such as elfcore_write_prpsinfo
4105 # or elfcore_write_prstatus. So unless the user explicitly requested
4106 # large-file support through the --enable-largefile switch, disable
4107 # large-file support in favor of procfs support.
4108 test "${target}" = "${host}" -a "x$plugins" = xno \
4109 && : ${enable_largefile="no"}
4110 ;;
4111 esac
4112
4113 # Check whether --enable-largefile was given.
4114 if test "${enable_largefile+set}" = set; then :
4115 enableval=$enable_largefile;
4116 fi
4117
4118 if test "$enable_largefile" != no; then
4119
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4121 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4122 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 ac_cv_sys_largefile_CC=no
4126 if test "$GCC" != yes; then
4127 ac_save_CC=$CC
4128 while :; do
4129 # IRIX 6.2 and later do not support large files by default,
4130 # so use the C compiler's -n32 option if that helps.
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133 #include <sys/types.h>
4134 /* Check that off_t can represent 2**63 - 1 correctly.
4135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4136 since some C++ compilers masquerading as C compilers
4137 incorrectly reject 9223372036854775807. */
4138 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4140 && LARGE_OFF_T % 2147483647 == 1)
4141 ? 1 : -1];
4142 int
4143 main ()
4144 {
4145
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 break
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext
4154 CC="$CC -n32"
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_cv_sys_largefile_CC=' -n32'; break
4157 fi
4158 rm -f core conftest.err conftest.$ac_objext
4159 break
4160 done
4161 CC=$ac_save_CC
4162 rm -f conftest.$ac_ext
4163 fi
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4166 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4167 if test "$ac_cv_sys_largefile_CC" != no; then
4168 CC=$CC$ac_cv_sys_largefile_CC
4169 fi
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4172 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4173 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 while :; do
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 #include <sys/types.h>
4180 /* Check that off_t can represent 2**63 - 1 correctly.
4181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4182 since some C++ compilers masquerading as C compilers
4183 incorrectly reject 9223372036854775807. */
4184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4186 && LARGE_OFF_T % 2147483647 == 1)
4187 ? 1 : -1];
4188 int
4189 main ()
4190 {
4191
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_sys_file_offset_bits=no; break
4198 fi
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #define _FILE_OFFSET_BITS 64
4203 #include <sys/types.h>
4204 /* Check that off_t can represent 2**63 - 1 correctly.
4205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4206 since some C++ compilers masquerading as C compilers
4207 incorrectly reject 9223372036854775807. */
4208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4210 && LARGE_OFF_T % 2147483647 == 1)
4211 ? 1 : -1];
4212 int
4213 main ()
4214 {
4215
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_sys_file_offset_bits=64; break
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 ac_cv_sys_file_offset_bits=unknown
4225 break
4226 done
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4229 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4230 case $ac_cv_sys_file_offset_bits in #(
4231 no | unknown) ;;
4232 *)
4233 cat >>confdefs.h <<_ACEOF
4234 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4235 _ACEOF
4236 ;;
4237 esac
4238 rm -rf conftest*
4239 if test $ac_cv_sys_file_offset_bits = unknown; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4241 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4242 if test "${ac_cv_sys_large_files+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 while :; do
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 #include <sys/types.h>
4249 /* Check that off_t can represent 2**63 - 1 correctly.
4250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4251 since some C++ compilers masquerading as C compilers
4252 incorrectly reject 9223372036854775807. */
4253 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4255 && LARGE_OFF_T % 2147483647 == 1)
4256 ? 1 : -1];
4257 int
4258 main ()
4259 {
4260
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_cv_sys_large_files=no; break
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 #define _LARGE_FILES 1
4272 #include <sys/types.h>
4273 /* Check that off_t can represent 2**63 - 1 correctly.
4274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4275 since some C++ compilers masquerading as C compilers
4276 incorrectly reject 9223372036854775807. */
4277 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4279 && LARGE_OFF_T % 2147483647 == 1)
4280 ? 1 : -1];
4281 int
4282 main ()
4283 {
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_cv_sys_large_files=1; break
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 ac_cv_sys_large_files=unknown
4294 break
4295 done
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4298 $as_echo "$ac_cv_sys_large_files" >&6; }
4299 case $ac_cv_sys_large_files in #(
4300 no | unknown) ;;
4301 *)
4302 cat >>confdefs.h <<_ACEOF
4303 #define _LARGE_FILES $ac_cv_sys_large_files
4304 _ACEOF
4305 ;;
4306 esac
4307 rm -rf conftest*
4308 fi
4309 fi
4310
4311
4312
4313
4314
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4316 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4317 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 am_cv_prog_cc_stdc=no
4321 ac_save_CC="$CC"
4322 # Don't try gcc -ansi; that turns off useful extensions and
4323 # breaks some systems' header files.
4324 # AIX -qlanglvl=ansi
4325 # Ultrix and OSF/1 -std1
4326 # HP-UX 10.20 and later -Ae
4327 # HP-UX older versions -Aa -D_HPUX_SOURCE
4328 # SVR4 -Xc -D__EXTENSIONS__
4329 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4330 do
4331 CC="$ac_save_CC $ac_arg"
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <stdarg.h>
4335 #include <stdio.h>
4336 #include <sys/types.h>
4337 #include <sys/stat.h>
4338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4339 struct buf { int x; };
4340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4341 static char *e (p, i)
4342 char **p;
4343 int i;
4344 {
4345 return p[i];
4346 }
4347 static char *f (char * (*g) (char **, int), char **p, ...)
4348 {
4349 char *s;
4350 va_list v;
4351 va_start (v,p);
4352 s = g (p, va_arg (v,int));
4353 va_end (v);
4354 return s;
4355 }
4356 int test (int i, double x);
4357 struct s1 {int (*f) (int a);};
4358 struct s2 {int (*f) (double a);};
4359 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4360 int argc;
4361 char **argv;
4362
4363 int
4364 main ()
4365 {
4366
4367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4368
4369 ;
4370 return 0;
4371 }
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4374 am_cv_prog_cc_stdc="$ac_arg"; break
4375 fi
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 done
4378 CC="$ac_save_CC"
4379
4380 fi
4381
4382 if test -z "$am_cv_prog_cc_stdc"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4384 $as_echo "none needed" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4387 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4388 fi
4389 case "x$am_cv_prog_cc_stdc" in
4390 x|xno) ;;
4391 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4392 esac
4393
4394 # expand $ac_aux_dir to an absolute path
4395 am_aux_dir=`cd $ac_aux_dir && pwd`
4396
4397 if test x"${install_sh}" != xset; then
4398 case $am_aux_dir in
4399 *\ * | *\ *)
4400 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4401 *)
4402 install_sh="\${SHELL} $am_aux_dir/install-sh"
4403 esac
4404 fi
4405
4406 # Installed binaries are usually stripped using `strip' when the user
4407 # run `make install-strip'. However `strip' might not be the right
4408 # tool to use in cross-compilation environments, therefore Automake
4409 # will honor the `STRIP' environment variable to overrule this program.
4410 if test "$cross_compiling" != no; then
4411 if test -n "$ac_tool_prefix"; then
4412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4413 set dummy ${ac_tool_prefix}strip; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if test "${ac_cv_prog_STRIP+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -n "$STRIP"; then
4420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4432 fi
4433 done
4434 done
4435 IFS=$as_save_IFS
4436
4437 fi
4438 fi
4439 STRIP=$ac_cv_prog_STRIP
4440 if test -n "$STRIP"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4442 $as_echo "$STRIP" >&6; }
4443 else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447
4448
4449 fi
4450 if test -z "$ac_cv_prog_STRIP"; then
4451 ac_ct_STRIP=$STRIP
4452 # Extract the first word of "strip", so it can be a program name with args.
4453 set dummy strip; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -n "$ac_ct_STRIP"; then
4460 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_ac_ct_STRIP="strip"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4480 if test -n "$ac_ct_STRIP"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4482 $as_echo "$ac_ct_STRIP" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488 if test "x$ac_ct_STRIP" = x; then
4489 STRIP=":"
4490 else
4491 case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4496 esac
4497 STRIP=$ac_ct_STRIP
4498 fi
4499 else
4500 STRIP="$ac_cv_prog_STRIP"
4501 fi
4502
4503 fi
4504 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4505
4506
4507 ac_aux_dir=
4508 for ac_dir in .. "$srcdir"/..; do
4509 for ac_t in install-sh install.sh shtool; do
4510 if test -f "$ac_dir/$ac_t"; then
4511 ac_aux_dir=$ac_dir
4512 ac_install_sh="$ac_aux_dir/$ac_t -c"
4513 break 2
4514 fi
4515 done
4516 done
4517 if test -z "$ac_aux_dir"; then
4518 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4519 fi
4520
4521 # These three variables are undocumented and unsupported,
4522 # and are intended to be withdrawn in a future Autoconf release.
4523 # They can cause serious problems if a builder's source tree is in a directory
4524 # whose full name contains unusual characters.
4525 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4526 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4527 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4528
4529
4530
4531 test "$program_prefix" != NONE &&
4532 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4533 # Use a double $ so make ignores it.
4534 test "$program_suffix" != NONE &&
4535 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4536 # Double any \ or $.
4537 # By default was `s,x,x', remove it if useless.
4538 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4539 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4540
4541
4542 # Dependency checking.
4543 rm -rf .tst 2>/dev/null
4544 mkdir .tst 2>/dev/null
4545 if test -d .tst; then
4546 am__leading_dot=.
4547 else
4548 am__leading_dot=_
4549 fi
4550 rmdir .tst 2>/dev/null
4551
4552 DEPDIR="${am__leading_dot}deps"
4553
4554 ac_config_commands="$ac_config_commands depdir"
4555
4556
4557 depcc="$CC" am_compiler_list=
4558
4559 am_depcomp=$ac_aux_dir/depcomp
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4561 $as_echo_n "checking dependency style of $depcc... " >&6; }
4562 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if test -f "$am_depcomp"; then
4566 # We make a subdir and do the tests there. Otherwise we can end up
4567 # making bogus files that we don't know about and never remove. For
4568 # instance it was reported that on HP-UX the gcc test will end up
4569 # making a dummy file named `D' -- because `-MD' means `put the output
4570 # in D'.
4571 mkdir conftest.dir
4572 # Copy depcomp to subdir because otherwise we won't find it if we're
4573 # using a relative directory.
4574 cp "$am_depcomp" conftest.dir
4575 cd conftest.dir
4576 # We will build objects and dependencies in a subdirectory because
4577 # it helps to detect inapplicable dependency modes. For instance
4578 # both Tru64's cc and ICC support -MD to output dependencies as a
4579 # side effect of compilation, but ICC will put the dependencies in
4580 # the current directory while Tru64 will put them in the object
4581 # directory.
4582 mkdir sub
4583
4584 am_cv_CC_dependencies_compiler_type=none
4585 if test "$am_compiler_list" = ""; then
4586 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4587 fi
4588 for depmode in $am_compiler_list; do
4589 if test $depmode = none; then break; fi
4590
4591 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4592 # Setup a source with many dependencies, because some compilers
4593 # like to wrap large dependency lists on column 80 (with \), and
4594 # we should not choose a depcomp mode which is confused by this.
4595 #
4596 # We need to recreate these files for each test, as the compiler may
4597 # overwrite some of them when testing with obscure command lines.
4598 # This happens at least with the AIX C compiler.
4599 : > sub/conftest.c
4600 for i in 1 2 3 4 5 6; do
4601 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4602 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4603 # Solaris 8's {/usr,}/bin/sh.
4604 touch sub/conftst$i.h
4605 done
4606 echo "include sub/conftest.Po" > confmf
4607
4608 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4609 # mode. It turns out that the SunPro C++ compiler does not properly
4610 # handle `-M -o', and we need to detect this.
4611 depcmd="depmode=$depmode \
4612 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4614 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4615 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4616 if env $depcmd > conftest.err 2>&1 &&
4617 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4618 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4619 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4620 # icc doesn't choke on unknown options, it will just issue warnings
4621 # or remarks (even with -Werror). So we grep stderr for any message
4622 # that says an option was ignored or not supported.
4623 # When given -MP, icc 7.0 and 7.1 complain thusly:
4624 # icc: Command line warning: ignoring option '-M'; no argument required
4625 # The diagnosis changed in icc 8.0:
4626 # icc: Command line remark: option '-MP' not supported
4627 if (grep 'ignoring option' conftest.err ||
4628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4629 am_cv_CC_dependencies_compiler_type=$depmode
4630 $as_echo "$as_me:$LINENO: success" >&5
4631 break
4632 fi
4633 fi
4634 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4635 sed -e 's/^/| /' < conftest.err >&5
4636 done
4637
4638 cd ..
4639 rm -rf conftest.dir
4640 else
4641 am_cv_CC_dependencies_compiler_type=none
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4646 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4647 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4648 then as_fn_error "no usable dependency style found" "$LINENO" 5
4649 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4650
4651 fi
4652
4653
4654 # Check for the 'make' the user wants to use.
4655 for ac_prog in make
4656 do
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658 set dummy $ac_prog; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_MAKE+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -n "$MAKE"; then
4665 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_MAKE="$ac_prog"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682 fi
4683 fi
4684 MAKE=$ac_cv_prog_MAKE
4685 if test -n "$MAKE"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4687 $as_echo "$MAKE" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 fi
4692
4693
4694 test -n "$MAKE" && break
4695 done
4696
4697 MAKE_IS_GNU=
4698 case "`$MAKE --version 2>&1 | sed 1q`" in
4699 *GNU*)
4700 MAKE_IS_GNU=yes
4701 ;;
4702 esac
4703 if test "$MAKE_IS_GNU" = yes; then
4704 GMAKE_TRUE=
4705 GMAKE_FALSE='#'
4706 else
4707 GMAKE_TRUE='#'
4708 GMAKE_FALSE=
4709 fi
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4712 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4713 set x ${MAKE-make}
4714 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4715 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 cat >conftest.make <<\_ACEOF
4719 SHELL = /bin/sh
4720 all:
4721 @echo '@@@%%%=$(MAKE)=@@@%%%'
4722 _ACEOF
4723 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4724 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4725 *@@@%%%=?*=@@@%%%*)
4726 eval ac_cv_prog_make_${ac_make}_set=yes;;
4727 *)
4728 eval ac_cv_prog_make_${ac_make}_set=no;;
4729 esac
4730 rm -f conftest.make
4731 fi
4732 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4734 $as_echo "yes" >&6; }
4735 SET_MAKE=
4736 else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4739 SET_MAKE="MAKE=${MAKE-make}"
4740 fi
4741
4742
4743 # Configure gnulib. We need to build gnulib under some other
4744 # directory not "gnulib", to avoid the problem of both GDB and
4745 # GDBserver wanting to build it in the same directory, when building
4746 # in the source dir.
4747
4748 in_src="gnulib"
4749 in_build="build-gnulib"
4750
4751 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4752 # so they do not pile up.
4753 ac_sub_configure_args=
4754 ac_prev=
4755 eval "set x $ac_configure_args"
4756 shift
4757 for ac_arg
4758 do
4759 if test -n "$ac_prev"; then
4760 ac_prev=
4761 continue
4762 fi
4763 case $ac_arg in
4764 -cache-file | --cache-file | --cache-fil | --cache-fi \
4765 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4766 ac_prev=cache_file ;;
4767 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4768 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4769 | --c=*)
4770 ;;
4771 --config-cache | -C)
4772 ;;
4773 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4774 ac_prev=srcdir ;;
4775 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4776 ;;
4777 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4778 ac_prev=prefix ;;
4779 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4780 ;;
4781 --disable-option-checking)
4782 ;;
4783 *)
4784 case $ac_arg in
4785 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4786 esac
4787 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4788 esac
4789 done
4790
4791 # Always prepend --prefix to ensure using the same prefix
4792 # in subdir configurations.
4793 ac_arg="--prefix=$prefix"
4794 case $ac_arg in
4795 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4796 esac
4797 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4798
4799 # Pass --silent
4800 if test "$silent" = yes; then
4801 ac_sub_configure_args="--silent $ac_sub_configure_args"
4802 fi
4803
4804 # Always prepend --disable-option-checking to silence warnings, since
4805 # different subdirs can have different --enable and --with options.
4806 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4807
4808 ac_popdir=`pwd`
4809 ac_dir=$in_build
4810
4811 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4813 $as_echo "$ac_msg" >&6
4814 as_dir="$ac_dir"; as_fn_mkdir_p
4815
4816 case $srcdir in
4817 [\\/]* | ?:[\\/]* )
4818 ac_srcdir=$srcdir/$in_src ;;
4819 *) # Relative name.
4820 ac_srcdir=../$srcdir/$in_src ;;
4821 esac
4822
4823 cd "$ac_dir"
4824
4825 ac_sub_configure=$ac_srcdir/configure
4826
4827 # Make the cache file name correct relative to the subdirectory.
4828 case $cache_file in
4829 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4830 *) # Relative name.
4831 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4832 esac
4833
4834 { $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
4835 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4836 # The eval makes quoting arguments work.
4837 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4838 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4839 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4840
4841 cd "$ac_popdir"
4842
4843
4844
4845 CONFIG_OBS=
4846 CONFIG_DEPS=
4847 CONFIG_SRCS=
4848 ENABLE_CFLAGS=
4849
4850 CONFIG_ALL=
4851 CONFIG_CLEAN=
4852 CONFIG_INSTALL=
4853 CONFIG_UNINSTALL=
4854
4855 # If we haven't got the data from the intl directory,
4856 # assume NLS is disabled.
4857 USE_NLS=no
4858 LIBINTL=
4859 LIBINTL_DEP=
4860 INCINTL=
4861 XGETTEXT=
4862 GMSGFMT=
4863 POSUB=
4864
4865 if test -f ../intl/config.intl; then
4866 . ../intl/config.intl
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4869 $as_echo_n "checking whether NLS is requested... " >&6; }
4870 if test x"$USE_NLS" != xyes; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4875 $as_echo "yes" >&6; }
4876
4877 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4878
4879
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4881 $as_echo_n "checking for catalogs to be installed... " >&6; }
4882 # Look for .po and .gmo files in the source directory.
4883 CATALOGS=
4884 XLINGUAS=
4885 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4886 # If there aren't any .gmo files the shell will give us the
4887 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4888 # weeded out.
4889 case "$cat" in *\**)
4890 continue;;
4891 esac
4892 # The quadruple backslash is collapsed to a double backslash
4893 # by the backticks, then collapsed again by the double quotes,
4894 # leaving us with one backslash in the sed expression (right
4895 # before the dot that mustn't act as a wildcard).
4896 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4897 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4898 # The user is allowed to set LINGUAS to a list of languages to
4899 # install catalogs for. If it's empty that means "all of them."
4900 if test "x$LINGUAS" = x; then
4901 CATALOGS="$CATALOGS $cat"
4902 XLINGUAS="$XLINGUAS $lang"
4903 else
4904 case "$LINGUAS" in *$lang*)
4905 CATALOGS="$CATALOGS $cat"
4906 XLINGUAS="$XLINGUAS $lang"
4907 ;;
4908 esac
4909 fi
4910 done
4911 LINGUAS="$XLINGUAS"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4913 $as_echo "$LINGUAS" >&6; }
4914
4915
4916 DATADIRNAME=share
4917
4918 INSTOBJEXT=.mo
4919
4920 GENCAT=gencat
4921
4922 CATOBJEXT=.gmo
4923
4924 fi
4925
4926 localedir='${datadir}/locale'
4927
4928
4929 if test x"$USE_NLS" = xyes; then
4930 CONFIG_ALL="$CONFIG_ALL all-po"
4931 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4932 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4933 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4934 fi
4935
4936 GNULIB=build-gnulib/import
4937
4938 # For Makefile dependencies.
4939 GNULIB_STDINT_H=
4940 if test x"$STDINT_H" != x; then
4941 GNULIB_STDINT_H=$GNULIB/$STDINT_H
4942 fi
4943
4944
4945 PACKAGE=gdb
4946
4947 cat >>confdefs.h <<_ACEOF
4948 #define PACKAGE "$PACKAGE"
4949 _ACEOF
4950
4951
4952
4953 # We never need to detect it in this sub-configure.
4954 # But preserve it for config.status --recheck.
4955
4956
4957
4958 MAKEINFO_EXTRA_FLAGS=""
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4960 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4961 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4965 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4966 gdb_cv_have_makeinfo_click=yes
4967 else
4968 gdb_cv_have_makeinfo_click=no
4969 fi
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4972 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4973 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4974 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4975 fi
4976
4977
4978
4979
4980 # Check whether --with-separate-debug-dir was given.
4981 if test "${with_separate_debug_dir+set}" = set; then :
4982 withval=$with_separate_debug_dir;
4983 DEBUGDIR=$withval
4984 else
4985 DEBUGDIR=${libdir}/debug
4986 fi
4987
4988
4989 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4991 ac_define_dir=`eval echo $DEBUGDIR`
4992 ac_define_dir=`eval echo $ac_define_dir`
4993
4994 cat >>confdefs.h <<_ACEOF
4995 #define DEBUGDIR "$ac_define_dir"
4996 _ACEOF
4997
4998
4999
5000
5001 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5002 if test "x$prefix" = xNONE; then
5003 test_prefix=/usr/local
5004 else
5005 test_prefix=$prefix
5006 fi
5007 else
5008 test_prefix=$exec_prefix
5009 fi
5010 value=0
5011 case ${ac_define_dir} in
5012 "${test_prefix}"|"${test_prefix}/"*|\
5013 '${exec_prefix}'|'${exec_prefix}/'*)
5014 value=1
5015 ;;
5016 esac
5017
5018 cat >>confdefs.h <<_ACEOF
5019 #define DEBUGDIR_RELOCATABLE $value
5020 _ACEOF
5021
5022
5023
5024
5025 # We can't pass paths as command line arguments.
5026 # Mingw32 tries to be clever and will convert the paths for us.
5027 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5028 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5029 # This breaks GDB's relocatable path conversions since paths passed in
5030 # config.h would not get so translated, the path prefixes no longer match.
5031
5032 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5033 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5034 ac_define_dir=`eval echo $bindir`
5035 ac_define_dir=`eval echo $ac_define_dir`
5036
5037 cat >>confdefs.h <<_ACEOF
5038 #define BINDIR "$ac_define_dir"
5039 _ACEOF
5040
5041
5042
5043 # GDB's datadir relocation
5044
5045
5046
5047 # Check whether --with-gdb-datadir was given.
5048 if test "${with_gdb_datadir+set}" = set; then :
5049 withval=$with_gdb_datadir;
5050 GDB_DATADIR=$withval
5051 else
5052 GDB_DATADIR=${datadir}/gdb
5053 fi
5054
5055
5056 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5058 ac_define_dir=`eval echo $GDB_DATADIR`
5059 ac_define_dir=`eval echo $ac_define_dir`
5060
5061 cat >>confdefs.h <<_ACEOF
5062 #define GDB_DATADIR "$ac_define_dir"
5063 _ACEOF
5064
5065
5066
5067
5068 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5069 if test "x$prefix" = xNONE; then
5070 test_prefix=/usr/local
5071 else
5072 test_prefix=$prefix
5073 fi
5074 else
5075 test_prefix=$exec_prefix
5076 fi
5077 value=0
5078 case ${ac_define_dir} in
5079 "${test_prefix}"|"${test_prefix}/"*|\
5080 '${exec_prefix}'|'${exec_prefix}/'*)
5081 value=1
5082 ;;
5083 esac
5084
5085 cat >>confdefs.h <<_ACEOF
5086 #define GDB_DATADIR_RELOCATABLE $value
5087 _ACEOF
5088
5089
5090
5091
5092
5093 # Check whether --with-relocated-sources was given.
5094 if test "${with_relocated_sources+set}" = set; then :
5095 withval=$with_relocated_sources; reloc_srcdir="${withval}"
5096
5097 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5099 ac_define_dir=`eval echo $reloc_srcdir`
5100 ac_define_dir=`eval echo $ac_define_dir`
5101
5102 cat >>confdefs.h <<_ACEOF
5103 #define RELOC_SRCDIR "$ac_define_dir"
5104 _ACEOF
5105
5106
5107
5108 fi
5109
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5112 $as_echo_n "checking for default auto-load directory... " >&6; }
5113
5114 # Check whether --with-auto-load-dir was given.
5115 if test "${with_auto_load_dir+set}" = set; then :
5116 withval=$with_auto_load_dir;
5117 else
5118 with_auto_load_dir='$debugdir:$datadir/auto-load'
5119 fi
5120
5121 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5122
5123 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5124 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5125 ac_define_dir=`eval echo $escape_dir`
5126 ac_define_dir=`eval echo $ac_define_dir`
5127
5128 cat >>confdefs.h <<_ACEOF
5129 #define AUTO_LOAD_DIR "$ac_define_dir"
5130 _ACEOF
5131
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5134 $as_echo "$with_auto_load_dir" >&6; }
5135
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5137 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5138
5139 # Check whether --with-auto-load-safe-path was given.
5140 if test "${with_auto_load_safe_path+set}" = set; then :
5141 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5142 with_auto_load_safe_path="/"
5143 fi
5144 else
5145 with_auto_load_safe_path="$with_auto_load_dir"
5146 fi
5147
5148 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5149
5150 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5151 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5152 ac_define_dir=`eval echo $escape_dir`
5153 ac_define_dir=`eval echo $ac_define_dir`
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5157 _ACEOF
5158
5159
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5161 $as_echo "$with_auto_load_safe_path" >&6; }
5162
5163
5164
5165 subdirs="$subdirs testsuite"
5166
5167
5168 # Check whether to support alternative target configurations
5169 # Check whether --enable-targets was given.
5170 if test "${enable_targets+set}" = set; then :
5171 enableval=$enable_targets; case "${enableval}" in
5172 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5173 ;;
5174 no) enable_targets= ;;
5175 *) enable_targets=$enableval ;;
5176 esac
5177 fi
5178
5179
5180 # Check whether to enable 64-bit support on 32-bit hosts
5181 # Check whether --enable-64-bit-bfd was given.
5182 if test "${enable_64_bit_bfd+set}" = set; then :
5183 enableval=$enable_64_bit_bfd; case "${enableval}" in
5184 yes) want64=true ;;
5185 no) want64=false ;;
5186 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5187 esac
5188 else
5189 want64=false
5190 fi
5191
5192 # Provide defaults for some variables set by the per-host and per-target
5193 # configuration.
5194 gdb_host_obs=posix-hdep.o
5195
5196 if test "${target}" = "${host}"; then
5197 gdb_native=yes
5198 else
5199 gdb_native=no
5200 fi
5201
5202 . $srcdir/configure.host
5203
5204 # Accumulate some settings from configure.tgt over all enabled targets
5205
5206 TARGET_OBS=
5207 all_targets=
5208 HAVE_NATIVE_GCORE_TARGET=
5209
5210 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5211 do
5212 if test "$targ_alias" = "all"; then
5213 all_targets=true
5214 else
5215 # Canonicalize the secondary target names.
5216 result=`$ac_config_sub $targ_alias 2>/dev/null`
5217 if test -n "$result"; then
5218 targ=$result
5219 else
5220 targ=$targ_alias
5221 fi
5222
5223 . ${srcdir}/configure.tgt
5224
5225 if test -z "${gdb_target_obs}"; then :
5226 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5227 fi
5228
5229 # Target-specific object files
5230 for i in ${gdb_target_obs}; do
5231 case " $TARGET_OBS " in
5232 *" ${i} "*) ;;
5233 *)
5234 TARGET_OBS="$TARGET_OBS ${i}"
5235 ;;
5236 esac
5237 done
5238
5239 # Check whether this target needs 64-bit CORE_ADDR
5240 if test x${want64} = xfalse; then
5241 . ${srcdir}/../bfd/config.bfd
5242 fi
5243
5244 # Check whether this target is native and supports gcore.
5245 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5246 && $gdb_have_gcore; then
5247 HAVE_NATIVE_GCORE_TARGET=1
5248 fi
5249 fi
5250 done
5251
5252 if test x${all_targets} = xtrue; then
5253
5254 # We want all 64-bit targets if we either:
5255 # - run on a 64-bit host or
5256 # - already require 64-bit support for some other target or
5257 # - the --enable-64-bit-bfd option was supplied
5258 # Otherwise we only support all 32-bit targets.
5259 #
5260 # NOTE: This test must be in sync with the corresponding
5261 # tests in BFD!
5262
5263 if test x${want64} = xfalse; then
5264 # The cast to long int works around a bug in the HP C Compiler
5265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5267 # This bug is HP SR number 8606223364.
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5269 $as_echo_n "checking size of long... " >&6; }
5270 if test "${ac_cv_sizeof_long+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5274
5275 else
5276 if test "$ac_cv_type_long" = yes; then
5277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5279 { as_fn_set_status 77
5280 as_fn_error "cannot compute sizeof (long)
5281 See \`config.log' for more details." "$LINENO" 5; }; }
5282 else
5283 ac_cv_sizeof_long=0
5284 fi
5285 fi
5286
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5289 $as_echo "$ac_cv_sizeof_long" >&6; }
5290
5291
5292
5293 cat >>confdefs.h <<_ACEOF
5294 #define SIZEOF_LONG $ac_cv_sizeof_long
5295 _ACEOF
5296
5297
5298 if test "x${ac_cv_sizeof_long}" = "x8"; then
5299 want64=true
5300 fi
5301 fi
5302 if test x${want64} = xtrue; then
5303 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5304 else
5305 TARGET_OBS='$(ALL_TARGET_OBS)'
5306 fi
5307 fi
5308
5309
5310
5311
5312 # For other settings, only the main target counts.
5313 gdb_sim=
5314 gdb_osabi=
5315 build_gdbserver=
5316 targ=$target; . ${srcdir}/configure.tgt
5317
5318 # Fetch the default architecture and default target vector from BFD.
5319 targ=$target; . $srcdir/../bfd/config.bfd
5320
5321 # We only want the first architecture, so strip off the others if
5322 # there is more than one.
5323 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5324
5325 if test "x$targ_archs" != x; then
5326
5327 cat >>confdefs.h <<_ACEOF
5328 #define DEFAULT_BFD_ARCH $targ_archs
5329 _ACEOF
5330
5331 fi
5332 if test "x$targ_defvec" != x; then
5333
5334 cat >>confdefs.h <<_ACEOF
5335 #define DEFAULT_BFD_VEC $targ_defvec
5336 _ACEOF
5337
5338 fi
5339
5340 # The CLI cannot be disabled yet, but may be in the future.
5341
5342 # Enable CLI.
5343 # Check whether --enable-gdbcli was given.
5344 if test "${enable_gdbcli+set}" = set; then :
5345 enableval=$enable_gdbcli; case $enableval in
5346 yes)
5347 ;;
5348 no)
5349 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5350 *)
5351 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5352 esac
5353 else
5354 enable_gdbcli=yes
5355 fi
5356
5357 if test x"$enable_gdbcli" = xyes; then
5358 if test -d $srcdir/cli; then
5359 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5360 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5361 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5362 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5363 fi
5364 fi
5365
5366 # Enable MI.
5367 # Check whether --enable-gdbmi was given.
5368 if test "${enable_gdbmi+set}" = set; then :
5369 enableval=$enable_gdbmi; case $enableval in
5370 yes | no)
5371 ;;
5372 *)
5373 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5374 esac
5375 else
5376 enable_gdbmi=yes
5377 fi
5378
5379 if test x"$enable_gdbmi" = xyes; then
5380 if test -d $srcdir/mi; then
5381 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5382 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5383 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5384 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5385 fi
5386 fi
5387
5388 # Enable TUI.
5389 # Check whether --enable-tui was given.
5390 if test "${enable_tui+set}" = set; then :
5391 enableval=$enable_tui; case $enableval in
5392 yes | no | auto)
5393 ;;
5394 *)
5395 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5396 esac
5397 else
5398 enable_tui=auto
5399 fi
5400
5401
5402 # Enable gdbtk.
5403 # Check whether --enable-gdbtk was given.
5404 if test "${enable_gdbtk+set}" = set; then :
5405 enableval=$enable_gdbtk; case $enableval in
5406 yes | no)
5407 ;;
5408 *)
5409 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5410 esac
5411 else
5412 if test -d $srcdir/gdbtk; then
5413 enable_gdbtk=yes
5414 else
5415 enable_gdbtk=no
5416 fi
5417 fi
5418
5419 # We unconditionally disable gdbtk tests on selected platforms.
5420 case $host_os in
5421 go32* | windows*)
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5423 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5424 enable_gdbtk=no ;;
5425 esac
5426
5427 # Libunwind support for ia64.
5428
5429
5430 # Check whether --with-libunwind-ia64 was given.
5431 if test "${with_libunwind_ia64+set}" = set; then :
5432 withval=$with_libunwind_ia64;
5433 else
5434 with_libunwind_ia64=auto
5435 fi
5436
5437
5438 # Backward compatibility option.
5439 if test "${with_libunwind+set}" = set; then
5440 if test x"$with_libunwind_ia64" != xauto; then
5441 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5442 fi
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5444 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5445 with_libunwind_ia64="$with_libunwind"
5446 fi
5447
5448 case "$with_libunwind_ia64" in
5449 yes | no)
5450 ;;
5451 auto)
5452 for ac_header in libunwind-ia64.h
5453 do :
5454 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5455 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5456 cat >>confdefs.h <<_ACEOF
5457 #define HAVE_LIBUNWIND_IA64_H 1
5458 _ACEOF
5459
5460 fi
5461
5462 done
5463
5464 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5465 ;;
5466 *)
5467 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5468 ;;
5469 esac
5470
5471 if test x"$with_libunwind_ia64" = xyes; then
5472 for ac_header in libunwind-ia64.h
5473 do :
5474 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5475 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5476 cat >>confdefs.h <<_ACEOF
5477 #define HAVE_LIBUNWIND_IA64_H 1
5478 _ACEOF
5479
5480 fi
5481
5482 done
5483
5484 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5485 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5486 fi
5487 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5488 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5489 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5490 fi
5491
5492 opt_curses=no
5493
5494 # Check whether --with-curses was given.
5495 if test "${with_curses+set}" = set; then :
5496 withval=$with_curses; opt_curses=$withval
5497 fi
5498
5499
5500 prefer_curses=no
5501 if test "$opt_curses" = "yes"; then
5502 prefer_curses=yes
5503 fi
5504
5505 # Profiling support.
5506 # Check whether --enable-profiling was given.
5507 if test "${enable_profiling+set}" = set; then :
5508 enableval=$enable_profiling; case $enableval in
5509 yes | no)
5510 ;;
5511 *)
5512 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5513 esac
5514 else
5515 enable_profiling=no
5516 fi
5517
5518
5519 for ac_func in monstartup _mcleanup
5520 do :
5521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5523 eval as_val=\$$as_ac_var
5524 if test "x$as_val" = x""yes; then :
5525 cat >>confdefs.h <<_ACEOF
5526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5527 _ACEOF
5528
5529 fi
5530 done
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5533 $as_echo_n "checking for _etext... " >&6; }
5534 if test "${ac_cv_var__etext+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #include <stdlib.h>
5540 extern char _etext;
5541
5542 int
5543 main ()
5544 {
5545 free (&_etext);
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 if ac_fn_c_try_link "$LINENO"; then :
5551 ac_cv_var__etext=yes
5552 else
5553 ac_cv_var__etext=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext \
5556 conftest$ac_exeext conftest.$ac_ext
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5559 $as_echo "$ac_cv_var__etext" >&6; }
5560 if test $ac_cv_var__etext = yes; then
5561
5562 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5563
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5566 $as_echo_n "checking for etext... " >&6; }
5567 if test "${ac_cv_var_etext+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #include <stdlib.h>
5573 extern char etext;
5574
5575 int
5576 main ()
5577 {
5578 free (&etext);
5579 ;
5580 return 0;
5581 }
5582 _ACEOF
5583 if ac_fn_c_try_link "$LINENO"; then :
5584 ac_cv_var_etext=yes
5585 else
5586 ac_cv_var_etext=no
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext \
5589 conftest$ac_exeext conftest.$ac_ext
5590 fi
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5592 $as_echo "$ac_cv_var_etext" >&6; }
5593 if test $ac_cv_var_etext = yes; then
5594
5595 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5596
5597 fi
5598 if test "$enable_profiling" = yes ; then
5599 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5600 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5601 fi
5602 PROFILE_CFLAGS=-pg
5603 OLD_CFLAGS="$CFLAGS"
5604 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5607 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5608 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613
5614 int
5615 main ()
5616 {
5617 int x;
5618 ;
5619 return 0;
5620 }
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"; then :
5623 ac_cv_cc_supports_pg=yes
5624 else
5625 ac_cv_cc_supports_pg=no
5626 fi
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 fi
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5630 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5631
5632 if test $ac_cv_cc_supports_pg = no; then
5633 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5634 fi
5635
5636 CFLAGS="$OLD_CFLAGS"
5637 fi
5638
5639
5640
5641 # Check whether --with-pkgversion was given.
5642 if test "${with_pkgversion+set}" = set; then :
5643 withval=$with_pkgversion; case "$withval" in
5644 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5645 no) PKGVERSION= ;;
5646 *) PKGVERSION="($withval) " ;;
5647 esac
5648 else
5649 PKGVERSION="(GDB) "
5650
5651 fi
5652
5653
5654
5655
5656
5657 # Check whether --with-bugurl was given.
5658 if test "${with_bugurl+set}" = set; then :
5659 withval=$with_bugurl; case "$withval" in
5660 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5661 no) BUGURL=
5662 ;;
5663 *) BUGURL="$withval"
5664 ;;
5665 esac
5666 else
5667 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5668
5669 fi
5670
5671 case ${BUGURL} in
5672 "")
5673 REPORT_BUGS_TO=
5674 REPORT_BUGS_TEXI=
5675 ;;
5676 *)
5677 REPORT_BUGS_TO="<$BUGURL>"
5678 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5679 ;;
5680 esac;
5681
5682
5683
5684
5685 cat >>confdefs.h <<_ACEOF
5686 #define PKGVERSION "$PKGVERSION"
5687 _ACEOF
5688
5689
5690 cat >>confdefs.h <<_ACEOF
5691 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5692 _ACEOF
5693
5694
5695 # --------------------- #
5696 # Checks for programs. #
5697 # --------------------- #
5698
5699 for ac_prog in gawk mawk nawk awk
5700 do
5701 # Extract the first word of "$ac_prog", so it can be a program name with args.
5702 set dummy $ac_prog; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if test "${ac_cv_prog_AWK+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if test -n "$AWK"; then
5709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_AWK="$ac_prog"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722 done
5723 done
5724 IFS=$as_save_IFS
5725
5726 fi
5727 fi
5728 AWK=$ac_cv_prog_AWK
5729 if test -n "$AWK"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5731 $as_echo "$AWK" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736
5737
5738 test -n "$AWK" && break
5739 done
5740
5741 # Find a good install program. We prefer a C program (faster),
5742 # so one script is as good as another. But avoid the broken or
5743 # incompatible versions:
5744 # SysV /etc/install, /usr/sbin/install
5745 # SunOS /usr/etc/install
5746 # IRIX /sbin/install
5747 # AIX /bin/install
5748 # AmigaOS /C/install, which installs bootblocks on floppy discs
5749 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5750 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5751 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5752 # OS/2's system install, which has a completely different semantic
5753 # ./install, which can be erroneously created by make from ./install.sh.
5754 # Reject install programs that cannot install multiple files.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5756 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5757 if test -z "$INSTALL"; then
5758 if test "${ac_cv_path_install+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5763 do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 # Account for people who put trailing slashes in PATH elements.
5767 case $as_dir/ in #((
5768 ./ | .// | /[cC]/* | \
5769 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5770 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5771 /usr/ucb/* ) ;;
5772 *)
5773 # OSF1 and SCO ODT 3.0 have their own names for install.
5774 # Don't use installbsd from OSF since it installs stuff as root
5775 # by default.
5776 for ac_prog in ginstall scoinst install; do
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5779 if test $ac_prog = install &&
5780 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5781 # AIX install. It has an incompatible calling convention.
5782 :
5783 elif test $ac_prog = install &&
5784 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5785 # program-specific install script used by HP pwplus--don't use.
5786 :
5787 else
5788 rm -rf conftest.one conftest.two conftest.dir
5789 echo one > conftest.one
5790 echo two > conftest.two
5791 mkdir conftest.dir
5792 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5793 test -s conftest.one && test -s conftest.two &&
5794 test -s conftest.dir/conftest.one &&
5795 test -s conftest.dir/conftest.two
5796 then
5797 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5798 break 3
5799 fi
5800 fi
5801 fi
5802 done
5803 done
5804 ;;
5805 esac
5806
5807 done
5808 IFS=$as_save_IFS
5809
5810 rm -rf conftest.one conftest.two conftest.dir
5811
5812 fi
5813 if test "${ac_cv_path_install+set}" = set; then
5814 INSTALL=$ac_cv_path_install
5815 else
5816 # As a last resort, use the slow shell script. Don't cache a
5817 # value for INSTALL within a source directory, because that will
5818 # break other packages using the cache if that directory is
5819 # removed, or if the value is a relative name.
5820 INSTALL=$ac_install_sh
5821 fi
5822 fi
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5824 $as_echo "$INSTALL" >&6; }
5825
5826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5827 # It thinks the first close brace ends the variable substitution.
5828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5829
5830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5831
5832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5833
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5835 $as_echo_n "checking whether ln -s works... " >&6; }
5836 LN_S=$as_ln_s
5837 if test "$LN_S" = "ln -s"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5839 $as_echo "yes" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5842 $as_echo "no, using $LN_S" >&6; }
5843 fi
5844
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$RANLIB"; then
5854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867 done
5868 done
5869 IFS=$as_save_IFS
5870
5871 fi
5872 fi
5873 RANLIB=$ac_cv_prog_RANLIB
5874 if test -n "$RANLIB"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5876 $as_echo "$RANLIB" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5880 fi
5881
5882
5883 fi
5884 if test -z "$ac_cv_prog_RANLIB"; then
5885 ac_ct_RANLIB=$RANLIB
5886 # Extract the first word of "ranlib", so it can be a program name with args.
5887 set dummy ranlib; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$ac_ct_RANLIB"; then
5894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_ac_ct_RANLIB="ranlib"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5914 if test -n "$ac_ct_RANLIB"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5916 $as_echo "$ac_ct_RANLIB" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922 if test "x$ac_ct_RANLIB" = x; then
5923 RANLIB=":"
5924 else
5925 case $cross_compiling:$ac_tool_warned in
5926 yes:)
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned=yes ;;
5930 esac
5931 RANLIB=$ac_ct_RANLIB
5932 fi
5933 else
5934 RANLIB="$ac_cv_prog_RANLIB"
5935 fi
5936
5937 for ac_prog in 'bison -y' byacc
5938 do
5939 # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_YACC+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 if test -n "$YACC"; then
5947 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_YACC="$ac_prog"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 YACC=$ac_cv_prog_YACC
5967 if test -n "$YACC"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5969 $as_echo "$YACC" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5973 fi
5974
5975
5976 test -n "$YACC" && break
5977 done
5978 test -n "$YACC" || YACC="yacc"
5979
5980
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}ar; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if test "${ac_cv_prog_AR+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 if test -n "$AR"; then
5990 ac_cv_prog_AR="$AR" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_AR="${ac_tool_prefix}ar"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 AR=$ac_cv_prog_AR
6010 if test -n "$AR"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6012 $as_echo "$AR" >&6; }
6013 else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018
6019 fi
6020 if test -z "$ac_cv_prog_AR"; then
6021 ac_ct_AR=$AR
6022 # Extract the first word of "ar", so it can be a program name with args.
6023 set dummy ar; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if test -n "$ac_ct_AR"; then
6030 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_prog_ac_ct_AR="ar"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043 done
6044 done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6050 if test -n "$ac_ct_AR"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6052 $as_echo "$ac_ct_AR" >&6; }
6053 else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058 if test "x$ac_ct_AR" = x; then
6059 AR=""
6060 else
6061 case $cross_compiling:$ac_tool_warned in
6062 yes:)
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned=yes ;;
6066 esac
6067 AR=$ac_ct_AR
6068 fi
6069 else
6070 AR="$ac_cv_prog_AR"
6071 fi
6072
6073 if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6075 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 if test -n "$DLLTOOL"; then
6082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 break 2
6094 fi
6095 done
6096 done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 DLLTOOL=$ac_cv_prog_DLLTOOL
6102 if test -n "$DLLTOOL"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6104 $as_echo "$DLLTOOL" >&6; }
6105 else
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110
6111 fi
6112 if test -z "$ac_cv_prog_DLLTOOL"; then
6113 ac_ct_DLLTOOL=$DLLTOOL
6114 # Extract the first word of "dlltool", so it can be a program name with args.
6115 set dummy dlltool; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$ac_ct_DLLTOOL"; then
6122 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6142 if test -n "$ac_ct_DLLTOOL"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6144 $as_echo "$ac_ct_DLLTOOL" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150 if test "x$ac_ct_DLLTOOL" = x; then
6151 DLLTOOL=""
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154 yes:)
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 ac_tool_warned=yes ;;
6158 esac
6159 DLLTOOL=$ac_ct_DLLTOOL
6160 fi
6161 else
6162 DLLTOOL="$ac_cv_prog_DLLTOOL"
6163 fi
6164
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}windres; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 if test -n "$WINDRES"; then
6174 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 WINDRES=$ac_cv_prog_WINDRES
6194 if test -n "$WINDRES"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6196 $as_echo "$WINDRES" >&6; }
6197 else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202
6203 fi
6204 if test -z "$ac_cv_prog_WINDRES"; then
6205 ac_ct_WINDRES=$WINDRES
6206 # Extract the first word of "windres", so it can be a program name with args.
6207 set dummy windres; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$ac_ct_WINDRES"; then
6214 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_WINDRES="windres"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6234 if test -n "$ac_ct_WINDRES"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6236 $as_echo "$ac_ct_WINDRES" >&6; }
6237 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242 if test "x$ac_ct_WINDRES" = x; then
6243 WINDRES=""
6244 else
6245 case $cross_compiling:$ac_tool_warned in
6246 yes:)
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251 WINDRES=$ac_ct_WINDRES
6252 fi
6253 else
6254 WINDRES="$ac_cv_prog_WINDRES"
6255 fi
6256
6257
6258 case $host_os in
6259 gnu*)
6260 # Needed for GNU Hurd hosts.
6261 if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6263 set dummy ${ac_tool_prefix}mig; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if test "${ac_cv_prog_MIG+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if test -n "$MIG"; then
6270 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 MIG=$ac_cv_prog_MIG
6290 if test -n "$MIG"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6292 $as_echo "$MIG" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6296 fi
6297
6298
6299 fi
6300 if test -z "$ac_cv_prog_MIG"; then
6301 ac_ct_MIG=$MIG
6302 # Extract the first word of "mig", so it can be a program name with args.
6303 set dummy mig; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$ac_ct_MIG"; then
6310 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_ac_ct_MIG="mig"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6330 if test -n "$ac_ct_MIG"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6332 $as_echo "$ac_ct_MIG" >&6; }
6333 else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338 if test "x$ac_ct_MIG" = x; then
6339 MIG=""
6340 else
6341 case $cross_compiling:$ac_tool_warned in
6342 yes:)
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345 ac_tool_warned=yes ;;
6346 esac
6347 MIG=$ac_ct_MIG
6348 fi
6349 else
6350 MIG="$ac_cv_prog_MIG"
6351 fi
6352
6353 if test x"$MIG" = x; then
6354 as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6355 fi
6356 ;;
6357 esac
6358
6359 # ---------------------- #
6360 # Checks for libraries. #
6361 # ---------------------- #
6362
6363 # We might need to link with -lm; most simulators need it.
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6365 $as_echo_n "checking for main in -lm... " >&6; }
6366 if test "${ac_cv_lib_m_main+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 ac_check_lib_save_LIBS=$LIBS
6370 LIBS="-lm $LIBS"
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373
6374
6375 int
6376 main ()
6377 {
6378 return main ();
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 ac_cv_lib_m_main=yes
6385 else
6386 ac_cv_lib_m_main=no
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 LIBS=$ac_check_lib_save_LIBS
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6393 $as_echo "$ac_cv_lib_m_main" >&6; }
6394 if test "x$ac_cv_lib_m_main" = x""yes; then :
6395 cat >>confdefs.h <<_ACEOF
6396 #define HAVE_LIBM 1
6397 _ACEOF
6398
6399 LIBS="-lm $LIBS"
6400
6401 fi
6402
6403
6404 # We need to link with -lw to get `wctype' on Solaris before Solaris
6405 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6406 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6407 # is known to have this problem). Therefore we avoid libw if we can.
6408 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6409 if test "x$ac_cv_func_wctype" = x""yes; then :
6410
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6413 $as_echo_n "checking for wctype in -lw... " >&6; }
6414 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 ac_check_lib_save_LIBS=$LIBS
6418 LIBS="-lw $LIBS"
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421
6422 /* Override any GCC internal prototype to avoid an error.
6423 Use char because int might match the return type of a GCC
6424 builtin and then its argument prototype would still apply. */
6425 #ifdef __cplusplus
6426 extern "C"
6427 #endif
6428 char wctype ();
6429 int
6430 main ()
6431 {
6432 return wctype ();
6433 ;
6434 return 0;
6435 }
6436 _ACEOF
6437 if ac_fn_c_try_link "$LINENO"; then :
6438 ac_cv_lib_w_wctype=yes
6439 else
6440 ac_cv_lib_w_wctype=no
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext \
6443 conftest$ac_exeext conftest.$ac_ext
6444 LIBS=$ac_check_lib_save_LIBS
6445 fi
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6447 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6448 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6449 cat >>confdefs.h <<_ACEOF
6450 #define HAVE_LIBW 1
6451 _ACEOF
6452
6453 LIBS="-lw $LIBS"
6454
6455 fi
6456
6457 fi
6458
6459
6460 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6462 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6463 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 ac_func_search_save_LIBS=$LIBS
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469
6470 /* Override any GCC internal prototype to avoid an error.
6471 Use char because int might match the return type of a GCC
6472 builtin and then its argument prototype would still apply. */
6473 #ifdef __cplusplus
6474 extern "C"
6475 #endif
6476 char gethostbyname ();
6477 int
6478 main ()
6479 {
6480 return gethostbyname ();
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 for ac_lib in '' nsl; do
6486 if test -z "$ac_lib"; then
6487 ac_res="none required"
6488 else
6489 ac_res=-l$ac_lib
6490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6491 fi
6492 if ac_fn_c_try_link "$LINENO"; then :
6493 ac_cv_search_gethostbyname=$ac_res
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext
6497 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6498 break
6499 fi
6500 done
6501 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6502
6503 else
6504 ac_cv_search_gethostbyname=no
6505 fi
6506 rm conftest.$ac_ext
6507 LIBS=$ac_func_search_save_LIBS
6508 fi
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6510 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6511 ac_res=$ac_cv_search_gethostbyname
6512 if test "$ac_res" != no; then :
6513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6514
6515 fi
6516
6517
6518 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6520 $as_echo_n "checking for library containing socketpair... " >&6; }
6521 if test "${ac_cv_search_socketpair+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 ac_func_search_save_LIBS=$LIBS
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527
6528 /* Override any GCC internal prototype to avoid an error.
6529 Use char because int might match the return type of a GCC
6530 builtin and then its argument prototype would still apply. */
6531 #ifdef __cplusplus
6532 extern "C"
6533 #endif
6534 char socketpair ();
6535 int
6536 main ()
6537 {
6538 return socketpair ();
6539 ;
6540 return 0;
6541 }
6542 _ACEOF
6543 for ac_lib in '' socket; do
6544 if test -z "$ac_lib"; then
6545 ac_res="none required"
6546 else
6547 ac_res=-l$ac_lib
6548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6549 fi
6550 if ac_fn_c_try_link "$LINENO"; then :
6551 ac_cv_search_socketpair=$ac_res
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext
6555 if test "${ac_cv_search_socketpair+set}" = set; then :
6556 break
6557 fi
6558 done
6559 if test "${ac_cv_search_socketpair+set}" = set; then :
6560
6561 else
6562 ac_cv_search_socketpair=no
6563 fi
6564 rm conftest.$ac_ext
6565 LIBS=$ac_func_search_save_LIBS
6566 fi
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6568 $as_echo "$ac_cv_search_socketpair" >&6; }
6569 ac_res=$ac_cv_search_socketpair
6570 if test "$ac_res" != no; then :
6571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6572
6573 fi
6574
6575
6576 # Link in zlib if we can. This allows us to read compressed debug sections.
6577
6578 # See if the user specified whether he wants zlib support or not.
6579
6580 # Check whether --with-zlib was given.
6581 if test "${with_zlib+set}" = set; then :
6582 withval=$with_zlib;
6583 else
6584 with_zlib=auto
6585 fi
6586
6587
6588 if test "$with_zlib" != "no"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6590 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6591 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 ac_func_search_save_LIBS=$LIBS
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597
6598 /* Override any GCC internal prototype to avoid an error.
6599 Use char because int might match the return type of a GCC
6600 builtin and then its argument prototype would still apply. */
6601 #ifdef __cplusplus
6602 extern "C"
6603 #endif
6604 char zlibVersion ();
6605 int
6606 main ()
6607 {
6608 return zlibVersion ();
6609 ;
6610 return 0;
6611 }
6612 _ACEOF
6613 for ac_lib in '' z; do
6614 if test -z "$ac_lib"; then
6615 ac_res="none required"
6616 else
6617 ac_res=-l$ac_lib
6618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6619 fi
6620 if ac_fn_c_try_link "$LINENO"; then :
6621 ac_cv_search_zlibVersion=$ac_res
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext
6625 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6626 break
6627 fi
6628 done
6629 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6630
6631 else
6632 ac_cv_search_zlibVersion=no
6633 fi
6634 rm conftest.$ac_ext
6635 LIBS=$ac_func_search_save_LIBS
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6638 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6639 ac_res=$ac_cv_search_zlibVersion
6640 if test "$ac_res" != no; then :
6641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6642 for ac_header in zlib.h
6643 do :
6644 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6645 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_ZLIB_H 1
6648 _ACEOF
6649
6650 fi
6651
6652 done
6653
6654 fi
6655
6656 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6657 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6658 fi
6659 fi
6660
6661
6662 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6664 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6665 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 ac_func_search_save_LIBS=$LIBS
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671
6672 /* Override any GCC internal prototype to avoid an error.
6673 Use char because int might match the return type of a GCC
6674 builtin and then its argument prototype would still apply. */
6675 #ifdef __cplusplus
6676 extern "C"
6677 #endif
6678 char dlgetmodinfo ();
6679 int
6680 main ()
6681 {
6682 return dlgetmodinfo ();
6683 ;
6684 return 0;
6685 }
6686 _ACEOF
6687 for ac_lib in '' dl xpdl; do
6688 if test -z "$ac_lib"; then
6689 ac_res="none required"
6690 else
6691 ac_res=-l$ac_lib
6692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6693 fi
6694 if ac_fn_c_try_link "$LINENO"; then :
6695 ac_cv_search_dlgetmodinfo=$ac_res
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext
6699 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6700 break
6701 fi
6702 done
6703 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6704
6705 else
6706 ac_cv_search_dlgetmodinfo=no
6707 fi
6708 rm conftest.$ac_ext
6709 LIBS=$ac_func_search_save_LIBS
6710 fi
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6712 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6713 ac_res=$ac_cv_search_dlgetmodinfo
6714 if test "$ac_res" != no; then :
6715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6716
6717 fi
6718
6719
6720
6721
6722
6723 # Check whether --with-libiconv-prefix was given.
6724 if test "${with_libiconv_prefix+set}" = set; then :
6725 withval=$with_libiconv_prefix;
6726 for dir in `echo "$withval" | tr : ' '`; do
6727 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6728 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6729 done
6730
6731 fi
6732
6733
6734 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6735 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6736
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6738 $as_echo_n "checking for iconv... " >&6; }
6739 if test "${am_cv_func_iconv+set}" = set; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742
6743 am_cv_func_iconv="no, consider installing GNU libiconv"
6744 am_cv_lib_iconv=no
6745 am_cv_use_build_libiconv=no
6746 am_cv_build_libiconv_path=
6747
6748 # If libiconv is part of the build tree, then try using it over
6749 # any system iconv.
6750 if test -d ../libiconv; then
6751 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6752 am_save_LIBS="$LIBS"
6753 am_save_CPPFLAGS="$CPPFLAGS"
6754 LIBS="$LIBS $lib_dir/libiconv.a"
6755 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 #include <stdlib.h>
6759 #include <iconv.h>
6760 int
6761 main ()
6762 {
6763 iconv_t cd = iconv_open("","");
6764 iconv(cd,NULL,NULL,NULL,NULL);
6765 iconv_close(cd);
6766 ;
6767 return 0;
6768 }
6769 _ACEOF
6770 if ac_fn_c_try_link "$LINENO"; then :
6771 am_cv_use_build_libiconv=yes
6772 am_cv_build_libiconv_path=$lib_dir/libiconv.a
6773 am_cv_lib_iconv=yes
6774 am_cv_func_iconv=yes
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6778 LIBS="$am_save_LIBS"
6779 CPPFLAGS="$am_save_CPPFLAGS"
6780 if test "$am_cv_use_build_libiconv" = "yes"; then
6781 break
6782 fi
6783 done
6784 fi
6785
6786 # Next, try to find iconv in libc.
6787 if test "$am_cv_func_iconv" != yes; then
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 #include <stdlib.h>
6791 #include <iconv.h>
6792 int
6793 main ()
6794 {
6795 iconv_t cd = iconv_open("","");
6796 iconv(cd,NULL,NULL,NULL,NULL);
6797 iconv_close(cd);
6798 ;
6799 return 0;
6800 }
6801 _ACEOF
6802 if ac_fn_c_try_link "$LINENO"; then :
6803 am_cv_func_iconv=yes
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext \
6806 conftest$ac_exeext conftest.$ac_ext
6807 fi
6808
6809 # If iconv was not in libc, try -liconv. In this case, arrange to
6810 # look in the libiconv prefix, if it was specified by the user.
6811 if test "$am_cv_func_iconv" != yes; then
6812 am_save_CPPFLAGS="$CPPFLAGS"
6813 am_save_LIBS="$LIBS"
6814 if test -n "$LIBICONV_INCLUDE"; then
6815 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6816 LIBS="$LIBS $LIBICONV_LIBDIR"
6817 fi
6818 LIBS="$LIBS -liconv"
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6821 #include <stdlib.h>
6822 #include <iconv.h>
6823 int
6824 main ()
6825 {
6826 iconv_t cd = iconv_open("","");
6827 iconv(cd,NULL,NULL,NULL,NULL);
6828 iconv_close(cd);
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_link "$LINENO"; then :
6834 am_cv_lib_iconv=yes
6835 am_cv_func_iconv=yes
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839 LIBS="$am_save_LIBS"
6840 CPPFLAGS="$am_save_CPPFLAGS"
6841 fi
6842
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6845 $as_echo "$am_cv_func_iconv" >&6; }
6846
6847 # Set the various flags based on the cache variables. We can't rely
6848 # on the flags to remain set from the above code, due to caching.
6849 LIBICONV=
6850 if test "$am_cv_lib_iconv" = yes; then
6851 LIBICONV="-liconv"
6852 else
6853 LIBICONV_LIBDIR=
6854 LIBICONV_INCLUDE=
6855 fi
6856 if test "$am_cv_use_build_libiconv" = yes; then
6857 LIBICONV="$am_cv_build_libiconv_path"
6858 LIBICONV_LIBDIR=""
6859 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6860 fi
6861 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6862 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6863
6864 if test "$am_cv_func_iconv" = yes; then
6865
6866 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6867
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6869 $as_echo_n "checking for iconv declaration... " >&6; }
6870 if test "${am_cv_proto_iconv+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876
6877 #include <stdlib.h>
6878 #include <iconv.h>
6879 extern
6880 #ifdef __cplusplus
6881 "C"
6882 #endif
6883 #if defined(__STDC__) || defined(__cplusplus)
6884 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6885 #else
6886 size_t iconv();
6887 #endif
6888
6889 int
6890 main ()
6891 {
6892
6893 ;
6894 return 0;
6895 }
6896 _ACEOF
6897 if ac_fn_c_try_compile "$LINENO"; then :
6898 am_cv_proto_iconv_arg1=""
6899 else
6900 am_cv_proto_iconv_arg1="const"
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 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);"
6904 fi
6905
6906 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6908 }$am_cv_proto_iconv" >&5
6909 $as_echo "${ac_t:-
6910 }$am_cv_proto_iconv" >&6; }
6911
6912 cat >>confdefs.h <<_ACEOF
6913 #define ICONV_CONST $am_cv_proto_iconv_arg1
6914 _ACEOF
6915
6916 fi
6917
6918
6919 # GDB may fork/exec the iconv program to get the list of supported character
6920 # sets. Allow the user to specify where to find it.
6921 # There are several factors affecting the choice of option name:
6922 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6923 # the build-time location of libiconv files.
6924 # - The program we need to find is iconv, which comes with glibc. The user
6925 # doesn't necessarily have libiconv installed. Therefore naming this
6926 # --with-libiconv-foo feels wrong.
6927 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6928 # defined to work on directories not files (though it really doesn't know
6929 # the difference).
6930 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6931 # with --with-libiconv-prefix.
6932 # Putting these together is why the option name is --with-iconv-bin.
6933
6934
6935 # Check whether --with-iconv-bin was given.
6936 if test "${with_iconv_bin+set}" = set; then :
6937 withval=$with_iconv_bin; iconv_bin="${withval}"
6938
6939 cat >>confdefs.h <<_ACEOF
6940 #define ICONV_BIN "${iconv_bin}"
6941 _ACEOF
6942
6943
6944 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6945 if test "x$prefix" = xNONE; then
6946 test_prefix=/usr/local
6947 else
6948 test_prefix=$prefix
6949 fi
6950 else
6951 test_prefix=$exec_prefix
6952 fi
6953 value=0
6954 case ${iconv_bin} in
6955 "${test_prefix}"|"${test_prefix}/"*|\
6956 '${exec_prefix}'|'${exec_prefix}/'*)
6957 value=1
6958 ;;
6959 esac
6960
6961 cat >>confdefs.h <<_ACEOF
6962 #define ICONV_BIN_RELOCATABLE $value
6963 _ACEOF
6964
6965
6966
6967 fi
6968
6969
6970 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6971 # There is a very specific comment in /usr/include/curses.h explaining that
6972 # termcap routines built into libcurses must not be used.
6973 #
6974 # The symptoms we observed so far is GDB unexpectedly changing
6975 # the terminal settings when tgetent is called - this is particularly
6976 # visible as the output is missing carriage returns, and so rapidly
6977 # becomes very hard to read.
6978 #
6979 # The readline configure script has already decided that libtermcap
6980 # was enough for its purposes, and so decided to build readline using
6981 # libtermcap. Since the TUI mode requires curses, building GDB with
6982 # TUI enabled results in both libraries to be used at the same time,
6983 # which is not allowed. This basically means that GDB with TUI is
6984 # broken on alpha-osf.
6985
6986 case $host_os in
6987 osf* )
6988 if test x"$enable_tui" = xyes; then
6989 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6990 fi
6991 if test x"$enable_tui" = xauto; then
6992 enable_tui=no
6993 fi
6994 ;;
6995 esac
6996
6997 # For the TUI, we need enhanced curses functionality.
6998 if test x"$enable_tui" != xno; then
6999 prefer_curses=yes
7000 fi
7001
7002 curses_found=no
7003 if test x"$prefer_curses" = xyes; then
7004 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7005 # curses library because the latter might not provide all the
7006 # functionality we need. However, this leads to problems on systems
7007 # where the linker searches /usr/local/lib, but the compiler doesn't
7008 # search /usr/local/include, if ncurses is installed in /usr/local. A
7009 # default installation of ncurses on alpha*-dec-osf* will lead to such
7010 # a situation.
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7012 $as_echo_n "checking for library containing waddstr... " >&6; }
7013 if test "${ac_cv_search_waddstr+set}" = set; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 ac_func_search_save_LIBS=$LIBS
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019
7020 /* Override any GCC internal prototype to avoid an error.
7021 Use char because int might match the return type of a GCC
7022 builtin and then its argument prototype would still apply. */
7023 #ifdef __cplusplus
7024 extern "C"
7025 #endif
7026 char waddstr ();
7027 int
7028 main ()
7029 {
7030 return waddstr ();
7031 ;
7032 return 0;
7033 }
7034 _ACEOF
7035 for ac_lib in '' ncurses cursesX curses; do
7036 if test -z "$ac_lib"; then
7037 ac_res="none required"
7038 else
7039 ac_res=-l$ac_lib
7040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7041 fi
7042 if ac_fn_c_try_link "$LINENO"; then :
7043 ac_cv_search_waddstr=$ac_res
7044 fi
7045 rm -f core conftest.err conftest.$ac_objext \
7046 conftest$ac_exeext
7047 if test "${ac_cv_search_waddstr+set}" = set; then :
7048 break
7049 fi
7050 done
7051 if test "${ac_cv_search_waddstr+set}" = set; then :
7052
7053 else
7054 ac_cv_search_waddstr=no
7055 fi
7056 rm conftest.$ac_ext
7057 LIBS=$ac_func_search_save_LIBS
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7060 $as_echo "$ac_cv_search_waddstr" >&6; }
7061 ac_res=$ac_cv_search_waddstr
7062 if test "$ac_res" != no; then :
7063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7064
7065 fi
7066
7067
7068 if test "$ac_cv_search_waddstr" != no; then
7069 curses_found=yes
7070 fi
7071 fi
7072
7073 # Check whether we should enable the TUI, but only do so if we really
7074 # can.
7075 if test x"$enable_tui" != xno; then
7076 if test -d $srcdir/tui; then
7077 if test "$curses_found" != no; then
7078 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7079 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7080 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7081 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7082 else
7083 if test x"$enable_tui" = xyes; then
7084 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7087 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7088 fi
7089 fi
7090 fi
7091 fi
7092
7093 # Since GDB uses Readline, we need termcap functionality. In many
7094 # cases this will be provided by the curses library, but some systems
7095 # have a seperate termcap library, or no curses library at all.
7096
7097 case $host_os in
7098 cygwin*)
7099 if test -d $srcdir/libtermcap; then
7100 LIBS="../libtermcap/libtermcap.a $LIBS"
7101 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
7102 fi ;;
7103 go32* | *djgpp*)
7104 ac_cv_search_tgetent="none required"
7105 ;;
7106 *mingw32*)
7107 ac_cv_search_tgetent="none required"
7108 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
7109 ;;
7110 esac
7111
7112 # These are the libraries checked by Readline.
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7114 $as_echo_n "checking for library containing tgetent... " >&6; }
7115 if test "${ac_cv_search_tgetent+set}" = set; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 ac_func_search_save_LIBS=$LIBS
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121
7122 /* Override any GCC internal prototype to avoid an error.
7123 Use char because int might match the return type of a GCC
7124 builtin and then its argument prototype would still apply. */
7125 #ifdef __cplusplus
7126 extern "C"
7127 #endif
7128 char tgetent ();
7129 int
7130 main ()
7131 {
7132 return tgetent ();
7133 ;
7134 return 0;
7135 }
7136 _ACEOF
7137 for ac_lib in '' termcap tinfo curses ncurses; do
7138 if test -z "$ac_lib"; then
7139 ac_res="none required"
7140 else
7141 ac_res=-l$ac_lib
7142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7143 fi
7144 if ac_fn_c_try_link "$LINENO"; then :
7145 ac_cv_search_tgetent=$ac_res
7146 fi
7147 rm -f core conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext
7149 if test "${ac_cv_search_tgetent+set}" = set; then :
7150 break
7151 fi
7152 done
7153 if test "${ac_cv_search_tgetent+set}" = set; then :
7154
7155 else
7156 ac_cv_search_tgetent=no
7157 fi
7158 rm conftest.$ac_ext
7159 LIBS=$ac_func_search_save_LIBS
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7162 $as_echo "$ac_cv_search_tgetent" >&6; }
7163 ac_res=$ac_cv_search_tgetent
7164 if test "$ac_res" != no; then :
7165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7166
7167 fi
7168
7169
7170 if test "$ac_cv_search_tgetent" = no; then
7171 as_fn_error "no termcap library found" "$LINENO" 5
7172 fi
7173
7174
7175 # Check whether --with-system-readline was given.
7176 if test "${with_system_readline+set}" = set; then :
7177 withval=$with_system_readline;
7178 fi
7179
7180
7181 if test "$with_system_readline" = yes; then
7182 READLINE=-lreadline
7183 READLINE_DEPS=
7184 READLINE_CFLAGS=
7185 READLINE_TEXI_INCFLAG=
7186 else
7187 READLINE='$(READLINE_DIR)/libreadline.a'
7188 READLINE_DEPS='$(READLINE)'
7189 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7190 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7191 fi
7192
7193
7194
7195
7196
7197 # Generate jit-reader.h
7198
7199 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7200 TARGET_PTR=
7201
7202 # The cast to long int works around a bug in the HP C Compiler
7203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7205 # This bug is HP SR number 8606223364.
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7207 $as_echo_n "checking size of unsigned long long... " >&6; }
7208 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7212
7213 else
7214 if test "$ac_cv_type_unsigned_long_long" = yes; then
7215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7217 { as_fn_set_status 77
7218 as_fn_error "cannot compute sizeof (unsigned long long)
7219 See \`config.log' for more details." "$LINENO" 5; }; }
7220 else
7221 ac_cv_sizeof_unsigned_long_long=0
7222 fi
7223 fi
7224
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7227 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7228
7229
7230
7231 cat >>confdefs.h <<_ACEOF
7232 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7233 _ACEOF
7234
7235
7236 # The cast to long int works around a bug in the HP C Compiler
7237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7239 # This bug is HP SR number 8606223364.
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7241 $as_echo_n "checking size of unsigned long... " >&6; }
7242 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7246
7247 else
7248 if test "$ac_cv_type_unsigned_long" = yes; then
7249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7251 { as_fn_set_status 77
7252 as_fn_error "cannot compute sizeof (unsigned long)
7253 See \`config.log' for more details." "$LINENO" 5; }; }
7254 else
7255 ac_cv_sizeof_unsigned_long=0
7256 fi
7257 fi
7258
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7261 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7262
7263
7264
7265 cat >>confdefs.h <<_ACEOF
7266 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7267 _ACEOF
7268
7269
7270 # The cast to long int works around a bug in the HP C Compiler
7271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7273 # This bug is HP SR number 8606223364.
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7275 $as_echo_n "checking size of unsigned __int128... " >&6; }
7276 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7280
7281 else
7282 if test "$ac_cv_type_unsigned___int128" = yes; then
7283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7285 { as_fn_set_status 77
7286 as_fn_error "cannot compute sizeof (unsigned __int128)
7287 See \`config.log' for more details." "$LINENO" 5; }; }
7288 else
7289 ac_cv_sizeof_unsigned___int128=0
7290 fi
7291 fi
7292
7293 fi
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7295 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7296
7297
7298
7299 cat >>confdefs.h <<_ACEOF
7300 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7301 _ACEOF
7302
7303
7304
7305 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7306 TARGET_PTR="unsigned long"
7307 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7308 TARGET_PTR="unsigned long long"
7309 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7310 TARGET_PTR="unsigned __int128"
7311 else
7312 TARGET_PTR="unsigned long"
7313 fi
7314
7315
7316 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7317
7318
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7320 $as_echo_n "checking for library containing dlopen... " >&6; }
7321 if test "${ac_cv_search_dlopen+set}" = set; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 ac_func_search_save_LIBS=$LIBS
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7327
7328 /* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
7331 #ifdef __cplusplus
7332 extern "C"
7333 #endif
7334 char dlopen ();
7335 int
7336 main ()
7337 {
7338 return dlopen ();
7339 ;
7340 return 0;
7341 }
7342 _ACEOF
7343 for ac_lib in '' dl; do
7344 if test -z "$ac_lib"; then
7345 ac_res="none required"
7346 else
7347 ac_res=-l$ac_lib
7348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7349 fi
7350 if ac_fn_c_try_link "$LINENO"; then :
7351 ac_cv_search_dlopen=$ac_res
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext \
7354 conftest$ac_exeext
7355 if test "${ac_cv_search_dlopen+set}" = set; then :
7356 break
7357 fi
7358 done
7359 if test "${ac_cv_search_dlopen+set}" = set; then :
7360
7361 else
7362 ac_cv_search_dlopen=no
7363 fi
7364 rm conftest.$ac_ext
7365 LIBS=$ac_func_search_save_LIBS
7366 fi
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7368 $as_echo "$ac_cv_search_dlopen" >&6; }
7369 ac_res=$ac_cv_search_dlopen
7370 if test "$ac_res" != no; then :
7371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7372
7373 fi
7374
7375
7376
7377
7378 # Check whether --with-jit-reader-dir was given.
7379 if test "${with_jit_reader_dir+set}" = set; then :
7380 withval=$with_jit_reader_dir;
7381 JIT_READER_DIR=$withval
7382 else
7383 JIT_READER_DIR=${libdir}/gdb
7384 fi
7385
7386
7387 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7388 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7389 ac_define_dir=`eval echo $JIT_READER_DIR`
7390 ac_define_dir=`eval echo $ac_define_dir`
7391
7392 cat >>confdefs.h <<_ACEOF
7393 #define JIT_READER_DIR "$ac_define_dir"
7394 _ACEOF
7395
7396
7397
7398
7399 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7400 if test "x$prefix" = xNONE; then
7401 test_prefix=/usr/local
7402 else
7403 test_prefix=$prefix
7404 fi
7405 else
7406 test_prefix=$exec_prefix
7407 fi
7408 value=0
7409 case ${ac_define_dir} in
7410 "${test_prefix}"|"${test_prefix}/"*|\
7411 '${exec_prefix}'|'${exec_prefix}/'*)
7412 value=1
7413 ;;
7414 esac
7415
7416 cat >>confdefs.h <<_ACEOF
7417 #define JIT_READER_DIR_RELOCATABLE $value
7418 _ACEOF
7419
7420
7421
7422
7423
7424 # Check whether --with-expat was given.
7425 if test "${with_expat+set}" = set; then :
7426 withval=$with_expat;
7427 else
7428 with_expat=auto
7429 fi
7430
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7432 $as_echo_n "checking whether to use expat... " >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7434 $as_echo "$with_expat" >&6; }
7435
7436 if test "${with_expat}" = no; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7438 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7439 HAVE_LIBEXPAT=no
7440 else
7441
7442 if test "X$prefix" = "XNONE"; then
7443 acl_final_prefix="$ac_default_prefix"
7444 else
7445 acl_final_prefix="$prefix"
7446 fi
7447 if test "X$exec_prefix" = "XNONE"; then
7448 acl_final_exec_prefix='${prefix}'
7449 else
7450 acl_final_exec_prefix="$exec_prefix"
7451 fi
7452 acl_save_prefix="$prefix"
7453 prefix="$acl_final_prefix"
7454 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7455 prefix="$acl_save_prefix"
7456
7457
7458 # Check whether --with-gnu-ld was given.
7459 if test "${with_gnu_ld+set}" = set; then :
7460 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7461 else
7462 with_gnu_ld=no
7463 fi
7464
7465 # Prepare PATH_SEPARATOR.
7466 # The user is always right.
7467 if test "${PATH_SEPARATOR+set}" != set; then
7468 echo "#! /bin/sh" >conf$$.sh
7469 echo "exit 0" >>conf$$.sh
7470 chmod +x conf$$.sh
7471 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7472 PATH_SEPARATOR=';'
7473 else
7474 PATH_SEPARATOR=:
7475 fi
7476 rm -f conf$$.sh
7477 fi
7478 ac_prog=ld
7479 if test "$GCC" = yes; then
7480 # Check if gcc -print-prog-name=ld gives a path.
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7482 $as_echo_n "checking for ld used by GCC... " >&6; }
7483 case $host in
7484 *-*-mingw*)
7485 # gcc leaves a trailing carriage return which upsets mingw
7486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7487 *)
7488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7489 esac
7490 case $ac_prog in
7491 # Accept absolute paths.
7492 [\\/]* | [A-Za-z]:[\\/]*)
7493 re_direlt='/[^/][^/]*/\.\./'
7494 # Canonicalize the path of ld
7495 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7496 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7497 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7498 done
7499 test -z "$LD" && LD="$ac_prog"
7500 ;;
7501 "")
7502 # If it fails, then pretend we aren't using GCC.
7503 ac_prog=ld
7504 ;;
7505 *)
7506 # If it is relative, then search for the first ld in PATH.
7507 with_gnu_ld=unknown
7508 ;;
7509 esac
7510 elif test "$with_gnu_ld" = yes; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7512 $as_echo_n "checking for GNU ld... " >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7515 $as_echo_n "checking for non-GNU ld... " >&6; }
7516 fi
7517 if test "${acl_cv_path_LD+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 if test -z "$LD"; then
7521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7522 for ac_dir in $PATH; do
7523 test -z "$ac_dir" && ac_dir=.
7524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7525 acl_cv_path_LD="$ac_dir/$ac_prog"
7526 # Check to see if the program is GNU ld. I'd rather use --version,
7527 # but apparently some GNU ld's only accept -v.
7528 # Break only if it was the GNU/non-GNU ld that we prefer.
7529 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7530 test "$with_gnu_ld" != no && break
7531 else
7532 test "$with_gnu_ld" != yes && break
7533 fi
7534 fi
7535 done
7536 IFS="$ac_save_ifs"
7537 else
7538 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7539 fi
7540 fi
7541
7542 LD="$acl_cv_path_LD"
7543 if test -n "$LD"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7545 $as_echo "$LD" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7552 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7553 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7557 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7558 acl_cv_prog_gnu_ld=yes
7559 else
7560 acl_cv_prog_gnu_ld=no
7561 fi
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7564 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7565 with_gnu_ld=$acl_cv_prog_gnu_ld
7566
7567
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7570 $as_echo_n "checking for shared library run path origin... " >&6; }
7571 if test "${acl_cv_rpath+set}" = set; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574
7575 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7576 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7577 . ./conftest.sh
7578 rm -f ./conftest.sh
7579 acl_cv_rpath=done
7580
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7583 $as_echo "$acl_cv_rpath" >&6; }
7584 wl="$acl_cv_wl"
7585 libext="$acl_cv_libext"
7586 shlibext="$acl_cv_shlibext"
7587 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7588 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7589 hardcode_direct="$acl_cv_hardcode_direct"
7590 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7591 # Check whether --enable-rpath was given.
7592 if test "${enable_rpath+set}" = set; then :
7593 enableval=$enable_rpath; :
7594 else
7595 enable_rpath=yes
7596 fi
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607 use_additional=yes
7608
7609 acl_save_prefix="$prefix"
7610 prefix="$acl_final_prefix"
7611 acl_save_exec_prefix="$exec_prefix"
7612 exec_prefix="$acl_final_exec_prefix"
7613
7614 eval additional_includedir=\"$includedir\"
7615 eval additional_libdir=\"$libdir\"
7616
7617 exec_prefix="$acl_save_exec_prefix"
7618 prefix="$acl_save_prefix"
7619
7620
7621 # Check whether --with-libexpat-prefix was given.
7622 if test "${with_libexpat_prefix+set}" = set; then :
7623 withval=$with_libexpat_prefix;
7624 if test "X$withval" = "Xno"; then
7625 use_additional=no
7626 else
7627 if test "X$withval" = "X"; then
7628
7629 acl_save_prefix="$prefix"
7630 prefix="$acl_final_prefix"
7631 acl_save_exec_prefix="$exec_prefix"
7632 exec_prefix="$acl_final_exec_prefix"
7633
7634 eval additional_includedir=\"$includedir\"
7635 eval additional_libdir=\"$libdir\"
7636
7637 exec_prefix="$acl_save_exec_prefix"
7638 prefix="$acl_save_prefix"
7639
7640 else
7641 additional_includedir="$withval/include"
7642 additional_libdir="$withval/lib"
7643 fi
7644 fi
7645
7646 fi
7647
7648 LIBEXPAT=
7649 LTLIBEXPAT=
7650 INCEXPAT=
7651 rpathdirs=
7652 ltrpathdirs=
7653 names_already_handled=
7654 names_next_round='expat '
7655 while test -n "$names_next_round"; do
7656 names_this_round="$names_next_round"
7657 names_next_round=
7658 for name in $names_this_round; do
7659 already_handled=
7660 for n in $names_already_handled; do
7661 if test "$n" = "$name"; then
7662 already_handled=yes
7663 break
7664 fi
7665 done
7666 if test -z "$already_handled"; then
7667 names_already_handled="$names_already_handled $name"
7668 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7669 eval value=\"\$HAVE_LIB$uppername\"
7670 if test -n "$value"; then
7671 if test "$value" = yes; then
7672 eval value=\"\$LIB$uppername\"
7673 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7674 eval value=\"\$LTLIB$uppername\"
7675 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7676 else
7677 :
7678 fi
7679 else
7680 found_dir=
7681 found_la=
7682 found_so=
7683 found_a=
7684 if test $use_additional = yes; then
7685 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7686 found_dir="$additional_libdir"
7687 found_so="$additional_libdir/lib$name.$shlibext"
7688 if test -f "$additional_libdir/lib$name.la"; then
7689 found_la="$additional_libdir/lib$name.la"
7690 fi
7691 else
7692 if test -f "$additional_libdir/lib$name.$libext"; then
7693 found_dir="$additional_libdir"
7694 found_a="$additional_libdir/lib$name.$libext"
7695 if test -f "$additional_libdir/lib$name.la"; then
7696 found_la="$additional_libdir/lib$name.la"
7697 fi
7698 fi
7699 fi
7700 fi
7701 if test "X$found_dir" = "X"; then
7702 for x in $LDFLAGS $LTLIBEXPAT; do
7703
7704 acl_save_prefix="$prefix"
7705 prefix="$acl_final_prefix"
7706 acl_save_exec_prefix="$exec_prefix"
7707 exec_prefix="$acl_final_exec_prefix"
7708 eval x=\"$x\"
7709 exec_prefix="$acl_save_exec_prefix"
7710 prefix="$acl_save_prefix"
7711
7712 case "$x" in
7713 -L*)
7714 dir=`echo "X$x" | sed -e 's/^X-L//'`
7715 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7716 found_dir="$dir"
7717 found_so="$dir/lib$name.$shlibext"
7718 if test -f "$dir/lib$name.la"; then
7719 found_la="$dir/lib$name.la"
7720 fi
7721 else
7722 if test -f "$dir/lib$name.$libext"; then
7723 found_dir="$dir"
7724 found_a="$dir/lib$name.$libext"
7725 if test -f "$dir/lib$name.la"; then
7726 found_la="$dir/lib$name.la"
7727 fi
7728 fi
7729 fi
7730 ;;
7731 esac
7732 if test "X$found_dir" != "X"; then
7733 break
7734 fi
7735 done
7736 fi
7737 if test "X$found_dir" != "X"; then
7738 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7739 if test "X$found_so" != "X"; then
7740 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7741 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7742 else
7743 haveit=
7744 for x in $ltrpathdirs; do
7745 if test "X$x" = "X$found_dir"; then
7746 haveit=yes
7747 break
7748 fi
7749 done
7750 if test -z "$haveit"; then
7751 ltrpathdirs="$ltrpathdirs $found_dir"
7752 fi
7753 if test "$hardcode_direct" = yes; then
7754 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7755 else
7756 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7757 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7758 haveit=
7759 for x in $rpathdirs; do
7760 if test "X$x" = "X$found_dir"; then
7761 haveit=yes
7762 break
7763 fi
7764 done
7765 if test -z "$haveit"; then
7766 rpathdirs="$rpathdirs $found_dir"
7767 fi
7768 else
7769 haveit=
7770 for x in $LDFLAGS $LIBEXPAT; do
7771
7772 acl_save_prefix="$prefix"
7773 prefix="$acl_final_prefix"
7774 acl_save_exec_prefix="$exec_prefix"
7775 exec_prefix="$acl_final_exec_prefix"
7776 eval x=\"$x\"
7777 exec_prefix="$acl_save_exec_prefix"
7778 prefix="$acl_save_prefix"
7779
7780 if test "X$x" = "X-L$found_dir"; then
7781 haveit=yes
7782 break
7783 fi
7784 done
7785 if test -z "$haveit"; then
7786 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7787 fi
7788 if test "$hardcode_minus_L" != no; then
7789 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7790 else
7791 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7792 fi
7793 fi
7794 fi
7795 fi
7796 else
7797 if test "X$found_a" != "X"; then
7798 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7799 else
7800 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7801 fi
7802 fi
7803 additional_includedir=
7804 case "$found_dir" in
7805 */lib | */lib/)
7806 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7807 additional_includedir="$basedir/include"
7808 ;;
7809 esac
7810 if test "X$additional_includedir" != "X"; then
7811 if test "X$additional_includedir" != "X/usr/include"; then
7812 haveit=
7813 if test "X$additional_includedir" = "X/usr/local/include"; then
7814 if test -n "$GCC"; then
7815 case $host_os in
7816 linux*) haveit=yes;;
7817 esac
7818 fi
7819 fi
7820 if test -z "$haveit"; then
7821 for x in $CPPFLAGS $INCEXPAT; do
7822
7823 acl_save_prefix="$prefix"
7824 prefix="$acl_final_prefix"
7825 acl_save_exec_prefix="$exec_prefix"
7826 exec_prefix="$acl_final_exec_prefix"
7827 eval x=\"$x\"
7828 exec_prefix="$acl_save_exec_prefix"
7829 prefix="$acl_save_prefix"
7830
7831 if test "X$x" = "X-I$additional_includedir"; then
7832 haveit=yes
7833 break
7834 fi
7835 done
7836 if test -z "$haveit"; then
7837 if test -d "$additional_includedir"; then
7838 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7839 fi
7840 fi
7841 fi
7842 fi
7843 fi
7844 if test -n "$found_la"; then
7845 save_libdir="$libdir"
7846 case "$found_la" in
7847 */* | *\\*) . "$found_la" ;;
7848 *) . "./$found_la" ;;
7849 esac
7850 libdir="$save_libdir"
7851 for dep in $dependency_libs; do
7852 case "$dep" in
7853 -L*)
7854 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7855 if test "X$additional_libdir" != "X/usr/lib"; then
7856 haveit=
7857 if test "X$additional_libdir" = "X/usr/local/lib"; then
7858 if test -n "$GCC"; then
7859 case $host_os in
7860 linux*) haveit=yes;;
7861 esac
7862 fi
7863 fi
7864 if test -z "$haveit"; then
7865 haveit=
7866 for x in $LDFLAGS $LIBEXPAT; do
7867
7868 acl_save_prefix="$prefix"
7869 prefix="$acl_final_prefix"
7870 acl_save_exec_prefix="$exec_prefix"
7871 exec_prefix="$acl_final_exec_prefix"
7872 eval x=\"$x\"
7873 exec_prefix="$acl_save_exec_prefix"
7874 prefix="$acl_save_prefix"
7875
7876 if test "X$x" = "X-L$additional_libdir"; then
7877 haveit=yes
7878 break
7879 fi
7880 done
7881 if test -z "$haveit"; then
7882 if test -d "$additional_libdir"; then
7883 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7884 fi
7885 fi
7886 haveit=
7887 for x in $LDFLAGS $LTLIBEXPAT; do
7888
7889 acl_save_prefix="$prefix"
7890 prefix="$acl_final_prefix"
7891 acl_save_exec_prefix="$exec_prefix"
7892 exec_prefix="$acl_final_exec_prefix"
7893 eval x=\"$x\"
7894 exec_prefix="$acl_save_exec_prefix"
7895 prefix="$acl_save_prefix"
7896
7897 if test "X$x" = "X-L$additional_libdir"; then
7898 haveit=yes
7899 break
7900 fi
7901 done
7902 if test -z "$haveit"; then
7903 if test -d "$additional_libdir"; then
7904 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7905 fi
7906 fi
7907 fi
7908 fi
7909 ;;
7910 -R*)
7911 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7912 if test "$enable_rpath" != no; then
7913 haveit=
7914 for x in $rpathdirs; do
7915 if test "X$x" = "X$dir"; then
7916 haveit=yes
7917 break
7918 fi
7919 done
7920 if test -z "$haveit"; then
7921 rpathdirs="$rpathdirs $dir"
7922 fi
7923 haveit=
7924 for x in $ltrpathdirs; do
7925 if test "X$x" = "X$dir"; then
7926 haveit=yes
7927 break
7928 fi
7929 done
7930 if test -z "$haveit"; then
7931 ltrpathdirs="$ltrpathdirs $dir"
7932 fi
7933 fi
7934 ;;
7935 -l*)
7936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7937 ;;
7938 *.la)
7939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7940 ;;
7941 *)
7942 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7943 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7944 ;;
7945 esac
7946 done
7947 fi
7948 else
7949 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7950 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7951 fi
7952 fi
7953 fi
7954 done
7955 done
7956 if test "X$rpathdirs" != "X"; then
7957 if test -n "$hardcode_libdir_separator"; then
7958 alldirs=
7959 for found_dir in $rpathdirs; do
7960 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7961 done
7962 acl_save_libdir="$libdir"
7963 libdir="$alldirs"
7964 eval flag=\"$hardcode_libdir_flag_spec\"
7965 libdir="$acl_save_libdir"
7966 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7967 else
7968 for found_dir in $rpathdirs; do
7969 acl_save_libdir="$libdir"
7970 libdir="$found_dir"
7971 eval flag=\"$hardcode_libdir_flag_spec\"
7972 libdir="$acl_save_libdir"
7973 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7974 done
7975 fi
7976 fi
7977 if test "X$ltrpathdirs" != "X"; then
7978 for found_dir in $ltrpathdirs; do
7979 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7980 done
7981 fi
7982
7983
7984 ac_save_CPPFLAGS="$CPPFLAGS"
7985
7986 for element in $INCEXPAT; do
7987 haveit=
7988 for x in $CPPFLAGS; do
7989
7990 acl_save_prefix="$prefix"
7991 prefix="$acl_final_prefix"
7992 acl_save_exec_prefix="$exec_prefix"
7993 exec_prefix="$acl_final_exec_prefix"
7994 eval x=\"$x\"
7995 exec_prefix="$acl_save_exec_prefix"
7996 prefix="$acl_save_prefix"
7997
7998 if test "X$x" = "X$element"; then
7999 haveit=yes
8000 break
8001 fi
8002 done
8003 if test -z "$haveit"; then
8004 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8005 fi
8006 done
8007
8008
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8010 $as_echo_n "checking for libexpat... " >&6; }
8011 if test "${ac_cv_libexpat+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014
8015 ac_save_LIBS="$LIBS"
8016 LIBS="$LIBS $LIBEXPAT"
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 #include "expat.h"
8020 int
8021 main ()
8022 {
8023 XML_Parser p = XML_ParserCreate (0);
8024 ;
8025 return 0;
8026 }
8027 _ACEOF
8028 if ac_fn_c_try_link "$LINENO"; then :
8029 ac_cv_libexpat=yes
8030 else
8031 ac_cv_libexpat=no
8032 fi
8033 rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS="$ac_save_LIBS"
8036
8037 fi
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8039 $as_echo "$ac_cv_libexpat" >&6; }
8040 if test "$ac_cv_libexpat" = yes; then
8041 HAVE_LIBEXPAT=yes
8042
8043 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8044
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8046 $as_echo_n "checking how to link with libexpat... " >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8048 $as_echo "$LIBEXPAT" >&6; }
8049 else
8050 HAVE_LIBEXPAT=no
8051 CPPFLAGS="$ac_save_CPPFLAGS"
8052 LIBEXPAT=
8053 LTLIBEXPAT=
8054 fi
8055
8056
8057
8058
8059
8060
8061 if test "$HAVE_LIBEXPAT" != yes; then
8062 if test "$with_expat" = yes; then
8063 as_fn_error "expat is missing or unusable" "$LINENO" 5
8064 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8066 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8067 fi
8068 else
8069 save_LIBS=$LIBS
8070 LIBS="$LIBS $LIBEXPAT"
8071 for ac_func in XML_StopParser
8072 do :
8073 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8074 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8075 cat >>confdefs.h <<_ACEOF
8076 #define HAVE_XML_STOPPARSER 1
8077 _ACEOF
8078
8079 fi
8080 done
8081
8082 LIBS=$save_LIBS
8083 fi
8084 fi
8085
8086 # --------------------- #
8087 # Check for libpython. #
8088 # --------------------- #
8089
8090
8091
8092
8093
8094
8095 # Check whether --with-python was given.
8096 if test "${with_python+set}" = set; then :
8097 withval=$with_python;
8098 else
8099 with_python=auto
8100 fi
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8103 $as_echo_n "checking whether to use python... " >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8105 $as_echo "$with_python" >&6; }
8106
8107 if test "${with_python}" = no; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8109 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8110 have_libpython=no
8111 else
8112 case "${with_python}" in
8113 [\\/]* | ?:[\\/]*)
8114 if test -d ${with_python}; then
8115 # Assume the python binary is ${with_python}/bin/python.
8116 python_prog="${with_python}/bin/python"
8117 python_prefix=
8118 # If python does not exit ${with_python}/bin, then try in
8119 # ${with_python}. On Windows/MinGW, this is where the Python
8120 # executable is.
8121 if test ! -x "${python_prog}"; then
8122 python_prog="${with_python}/python"
8123 python_prefix=
8124 fi
8125 if test ! -x "${python_prog}"; then
8126 # Fall back to gdb 7.0/7.1 behaviour.
8127 python_prog=missing
8128 python_prefix=${with_python}
8129 fi
8130 elif test -x "${with_python}"; then
8131 # While we can't run python compiled for $host (unless host == build),
8132 # the user could write a script that provides the needed information,
8133 # so we support that.
8134 python_prog=${with_python}
8135 python_prefix=
8136 else
8137 as_fn_error "invalid value for --with-python" "$LINENO" 5
8138 fi
8139 ;;
8140 */*)
8141 # Disallow --with-python=foo/bar.
8142 as_fn_error "invalid value for --with-python" "$LINENO" 5
8143 ;;
8144 *)
8145 # The user has either specified auto, yes, or the name of the python
8146 # program assumed to be in $PATH.
8147 python_prefix=
8148 case "${with_python}" in
8149 yes | auto)
8150 if test ${build} = ${host}; then
8151 # Extract the first word of "python", so it can be a program name with args.
8152 set dummy python; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 case $python_prog_path in
8159 [\\/]* | ?:[\\/]*)
8160 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8161 ;;
8162 *)
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 break 2
8173 fi
8174 done
8175 done
8176 IFS=$as_save_IFS
8177
8178 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8179 ;;
8180 esac
8181 fi
8182 python_prog_path=$ac_cv_path_python_prog_path
8183 if test -n "$python_prog_path"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8185 $as_echo "$python_prog_path" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190
8191
8192 if test "${python_prog_path}" = missing; then
8193 python_prog=missing
8194 else
8195 python_prog=${python_prog_path}
8196 fi
8197 else
8198 # Not much we can do except assume the cross-compiler will find the
8199 # right files.
8200 python_prog=missing
8201 fi
8202 ;;
8203 *)
8204 # While we can't run python compiled for $host (unless host == build),
8205 # the user could write a script that provides the needed information,
8206 # so we support that.
8207 python_prog="${with_python}"
8208 # Extract the first word of "${python_prog}", so it can be a program name with args.
8209 set dummy ${python_prog}; ac_word=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 case $python_prog_path in
8216 [\\/]* | ?:[\\/]*)
8217 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8218 ;;
8219 *)
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231 done
8232 done
8233 IFS=$as_save_IFS
8234
8235 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8236 ;;
8237 esac
8238 fi
8239 python_prog_path=$ac_cv_path_python_prog_path
8240 if test -n "$python_prog_path"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8242 $as_echo "$python_prog_path" >&6; }
8243 else
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245 $as_echo "no" >&6; }
8246 fi
8247
8248
8249 if test "${python_prog_path}" = missing; then
8250 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8251 fi
8252 ;;
8253 esac
8254 esac
8255
8256 if test "${python_prog}" != missing; then
8257 # We have a python program to use, but it may be too old.
8258 # Don't flag an error for --with-python=auto (the default).
8259 have_python_config=yes
8260 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8261 if test $? != 0; then
8262 have_python_config=failed
8263 if test "${with_python}" != auto; then
8264 as_fn_error "failure running python-config --includes" "$LINENO" 5
8265 fi
8266 fi
8267 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8268 if test $? != 0; then
8269 have_python_config=failed
8270 if test "${with_python}" != auto; then
8271 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8272 fi
8273 fi
8274 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8275 if test $? != 0; then
8276 have_python_config=failed
8277 if test "${with_python}" != auto; then
8278 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8279 fi
8280 fi
8281 else
8282 # We do not have a python executable we can use to determine where
8283 # to find the Python headers and libs. We cannot guess the include
8284 # path from the python_prefix either, because that include path
8285 # depends on the Python version. So, there is nothing much we can
8286 # do except assume that the compiler will be able to find those files.
8287 python_includes=
8288 python_libs=
8289 have_python_config=no
8290 fi
8291
8292 # If we have python-config, only try the configuration it provides.
8293 # Otherwise fallback on the old way of trying different versions of
8294 # python in turn.
8295
8296 have_libpython=no
8297 if test "${have_python_config}" = yes; then
8298 # Determine the Python version by extracting "-lpython<version>"
8299 # part of the python_libs. <version> is usually X.Y with X and Y
8300 # being decimal numbers, but can also be XY (seen on Windows).
8301 #
8302 # The extraction is performed using sed with a regular expression.
8303 # Initially, the regexp used was using the '?' quantifier to make
8304 # the dot in the version number optional. Unfortunately, this
8305 # does not work with non-GNU versions of sed because, because of
8306 # what looks like a limitation (the '?' quantifier does not work
8307 # with back-references). We work around this limitation by using
8308 # the '*' quantifier instead. It means that, in theory, we might
8309 # match unexpected version strings such as "-lpython2..7", but
8310 # this seems unlikely in practice. And even if that happens,
8311 # an error will be triggered later on, when checking that version
8312 # number.
8313 python_version=`echo " ${python_libs} " \
8314 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8315 case "${python_version}" in
8316 python*)
8317
8318 version=${python_version}
8319
8320 new_CPPFLAGS=${python_includes}
8321 new_LIBS=${python_libs}
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8323 $as_echo_n "checking for ${version}... " >&6; }
8324 save_CPPFLAGS=$CPPFLAGS
8325 save_LIBS=$LIBS
8326 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8327 LIBS="$LIBS $new_LIBS"
8328 found_usable_python=no
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8331 #include "Python.h"
8332 int
8333 main ()
8334 {
8335 Py_Initialize ();
8336 ;
8337 return 0;
8338 }
8339 _ACEOF
8340 if ac_fn_c_try_link "$LINENO"; then :
8341 have_libpython=${version}
8342 found_usable_python=yes
8343 PYTHON_CPPFLAGS=$new_CPPFLAGS
8344 PYTHON_LIBS=$new_LIBS
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 CPPFLAGS=$save_CPPFLAGS
8349 LIBS=$save_LIBS
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8351 $as_echo "${found_usable_python}" >&6; }
8352
8353 ;;
8354 *)
8355 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8356 ;;
8357 esac
8358 elif test "${have_python_config}" != failed; then
8359 if test "${have_libpython}" = no; then
8360
8361 version=python2.7
8362
8363 new_CPPFLAGS=${python_includes}
8364 new_LIBS="${python_libs} -lpython2.7"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8366 $as_echo_n "checking for ${version}... " >&6; }
8367 save_CPPFLAGS=$CPPFLAGS
8368 save_LIBS=$LIBS
8369 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8370 LIBS="$LIBS $new_LIBS"
8371 found_usable_python=no
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 #include "Python.h"
8375 int
8376 main ()
8377 {
8378 Py_Initialize ();
8379 ;
8380 return 0;
8381 }
8382 _ACEOF
8383 if ac_fn_c_try_link "$LINENO"; then :
8384 have_libpython=${version}
8385 found_usable_python=yes
8386 PYTHON_CPPFLAGS=$new_CPPFLAGS
8387 PYTHON_LIBS=$new_LIBS
8388 fi
8389 rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 CPPFLAGS=$save_CPPFLAGS
8392 LIBS=$save_LIBS
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8394 $as_echo "${found_usable_python}" >&6; }
8395
8396 fi
8397 if test "${have_libpython}" = no; then
8398
8399 version=python2.6
8400
8401 new_CPPFLAGS=${python_includes}
8402 new_LIBS="${python_libs} -lpython2.6"
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8404 $as_echo_n "checking for ${version}... " >&6; }
8405 save_CPPFLAGS=$CPPFLAGS
8406 save_LIBS=$LIBS
8407 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8408 LIBS="$LIBS $new_LIBS"
8409 found_usable_python=no
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #include "Python.h"
8413 int
8414 main ()
8415 {
8416 Py_Initialize ();
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 if ac_fn_c_try_link "$LINENO"; then :
8422 have_libpython=${version}
8423 found_usable_python=yes
8424 PYTHON_CPPFLAGS=$new_CPPFLAGS
8425 PYTHON_LIBS=$new_LIBS
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext \
8428 conftest$ac_exeext conftest.$ac_ext
8429 CPPFLAGS=$save_CPPFLAGS
8430 LIBS=$save_LIBS
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8432 $as_echo "${found_usable_python}" >&6; }
8433
8434 fi
8435 if test ${have_libpython} = no; then
8436
8437 version=python2.5
8438
8439 new_CPPFLAGS=${python_includes}
8440 new_LIBS="${python_libs} -lpython2.5"
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8442 $as_echo_n "checking for ${version}... " >&6; }
8443 save_CPPFLAGS=$CPPFLAGS
8444 save_LIBS=$LIBS
8445 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8446 LIBS="$LIBS $new_LIBS"
8447 found_usable_python=no
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8450 #include "Python.h"
8451 int
8452 main ()
8453 {
8454 Py_Initialize ();
8455 ;
8456 return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_link "$LINENO"; then :
8460 have_libpython=${version}
8461 found_usable_python=yes
8462 PYTHON_CPPFLAGS=$new_CPPFLAGS
8463 PYTHON_LIBS=$new_LIBS
8464 fi
8465 rm -f core conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8467 CPPFLAGS=$save_CPPFLAGS
8468 LIBS=$save_LIBS
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8470 $as_echo "${found_usable_python}" >&6; }
8471
8472 fi
8473 if test ${have_libpython} = no; then
8474
8475 version=python2.4
8476
8477 new_CPPFLAGS=${python_includes}
8478 new_LIBS="${python_libs} -lpython2.4"
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8480 $as_echo_n "checking for ${version}... " >&6; }
8481 save_CPPFLAGS=$CPPFLAGS
8482 save_LIBS=$LIBS
8483 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8484 LIBS="$LIBS $new_LIBS"
8485 found_usable_python=no
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include "Python.h"
8489 int
8490 main ()
8491 {
8492 Py_Initialize ();
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_link "$LINENO"; then :
8498 have_libpython=${version}
8499 found_usable_python=yes
8500 PYTHON_CPPFLAGS=$new_CPPFLAGS
8501 PYTHON_LIBS=$new_LIBS
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 CPPFLAGS=$save_CPPFLAGS
8506 LIBS=$save_LIBS
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8508 $as_echo "${found_usable_python}" >&6; }
8509
8510 fi
8511 fi
8512 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8513
8514 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8515
8516 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8517
8518 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8519
8520 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8521
8522 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8523
8524 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8525
8526 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8527
8528 fi
8529
8530 if test "${have_libpython}" = no; then
8531 case "${with_python}" in
8532 yes)
8533 as_fn_error "python is missing or unusable" "$LINENO" 5
8534 ;;
8535 auto)
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8537 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8538 ;;
8539 *)
8540 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8541 ;;
8542 esac
8543 else
8544 if test -n "${python_prefix}"; then
8545
8546 cat >>confdefs.h <<_ACEOF
8547 #define WITH_PYTHON_PATH "${python_prefix}"
8548 _ACEOF
8549
8550
8551 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8552 if test "x$prefix" = xNONE; then
8553 test_prefix=/usr/local
8554 else
8555 test_prefix=$prefix
8556 fi
8557 else
8558 test_prefix=$exec_prefix
8559 fi
8560 value=0
8561 case ${python_prefix} in
8562 "${test_prefix}"|"${test_prefix}/"*|\
8563 '${exec_prefix}'|'${exec_prefix}/'*)
8564 value=1
8565 ;;
8566 esac
8567
8568 cat >>confdefs.h <<_ACEOF
8569 #define PYTHON_PATH_RELOCATABLE $value
8570 _ACEOF
8571
8572
8573 fi
8574 fi
8575 fi
8576
8577 if test "${have_libpython}" != no; then
8578
8579 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8580
8581 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8582 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8583 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8584 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8585 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8586
8587 # Flags needed to compile Python code (taken from python-config --cflags).
8588 # We cannot call python-config directly because it will output whatever was
8589 # used when compiling the Python interpreter itself, including flags which
8590 # would make the python-related objects be compiled differently from the
8591 # rest of GDB (e.g., -O2 and -fPIC).
8592 if test "${GCC}" = yes; then
8593 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8594 fi
8595
8596 if test "x${tentative_python_cflags}" != x; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8598 $as_echo_n "checking compiler flags for python code... " >&6; }
8599 for flag in ${tentative_python_cflags}; do
8600 # Check that the compiler accepts it
8601 saved_CFLAGS="$CFLAGS"
8602 CFLAGS="$CFLAGS $flag"
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605
8606 int
8607 main ()
8608 {
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 CFLAGS="$saved_CFLAGS"
8619 done
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8621 $as_echo "${PYTHON_CFLAGS}" >&6; }
8622 fi
8623
8624 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8625 # #if _SGIAPI
8626 # #define siginfo __siginfo
8627 # #endif
8628 # The problem is that including Python causes some XOPEN macros to be
8629 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8630 # to false. So, we work around this issue by defining siginfo ourself
8631 # though the command-line.
8632 #
8633 # On x64 Windows, Python's include headers, and pyconfig.h in
8634 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8635 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8636 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8637 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8638 # The issue was reported to the Python community, but still isn't
8639 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8640
8641 case "$gdb_host" in
8642 irix*) if test "${GCC}" = yes; then
8643 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8644 fi
8645 ;;
8646 mingw64)
8647 if test "${GCC}" = yes; then
8648 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8649 fi
8650 ;;
8651 esac
8652
8653 # Note that "python -m threading" cannot be used to check for
8654 # threading support due to a bug in Python 2.7.3
8655 # (http://bugs.python.org/issue15567).
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8657 $as_echo_n "checking whether python supports threads... " >&6; }
8658 saved_CPPFLAGS="${CPPFLAGS}"
8659 CPPFLAGS="${PYTHON_CPPFLAGS}"
8660 # Note that the test is reversed so that python_has_threads=yes on
8661 # unexpected failures.
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664
8665 #include <Python.h>
8666 #ifdef WITH_THREAD
8667 # error
8668 #endif
8669
8670 _ACEOF
8671 if ac_fn_c_try_cpp "$LINENO"; then :
8672 python_has_threads=no
8673 else
8674 python_has_threads=yes
8675 fi
8676 rm -f conftest.err conftest.$ac_ext
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8678 $as_echo "${python_has_threads}" >&6; }
8679 CPPFLAGS="${saved_CPPFLAGS}"
8680 else
8681 # Even if Python support is not compiled in, we need to have this file
8682 # included so that the "python" command, et.al., still exists.
8683 CONFIG_OBS="$CONFIG_OBS python.o"
8684 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
8685 fi
8686
8687
8688
8689
8690 # -------------------- #
8691 # Check for libguile. #
8692 # -------------------- #
8693
8694
8695 # Extract the first word of "pkg-config", so it can be a program name with args.
8696 set dummy pkg-config; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 case $pkg_config_prog_path in
8703 [\\/]* | ?:[\\/]*)
8704 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
8705 ;;
8706 *)
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8709 do
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8714 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 break 2
8717 fi
8718 done
8719 done
8720 IFS=$as_save_IFS
8721
8722 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
8723 ;;
8724 esac
8725 fi
8726 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
8727 if test -n "$pkg_config_prog_path"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
8729 $as_echo "$pkg_config_prog_path" >&6; }
8730 else
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8733 fi
8734
8735
8736
8737
8738
8739
8740
8741
8742 # Check whether --with-guile was given.
8743 if test "${with_guile+set}" = set; then :
8744 withval=$with_guile;
8745 else
8746 with_guile=auto
8747 fi
8748
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
8750 $as_echo_n "checking whether to use guile... " >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
8752 $as_echo "$with_guile" >&6; }
8753
8754 try_guile_versions="guile-2.0"
8755 have_libguile=no
8756 case "${with_guile}" in
8757 no)
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
8759 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
8760 ;;
8761 auto)
8762
8763 pkg_config=${pkg_config_prog_path}
8764 guile_version_list=${try_guile_versions}
8765 flag_errors=no
8766
8767 if test "${pkg_config}" = "missing"; then
8768 as_fn_error "pkg-config program not found" "$LINENO" 5
8769 fi
8770 if test ! -f "${pkg_config}"; then
8771 as_fn_error "pkg-config program ${pkg_config} not found" "$LINENO" 5
8772 fi
8773 found_usable_guile=checking
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8775 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8776 for guile_version in ${guile_version_list}; do
8777 ${pkg_config} --exists ${guile_version} 2>/dev/null
8778 if test $? != 0; then
8779 continue
8780 fi
8781 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
8782 if test $? != 0; then
8783 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8784 fi
8785 new_LIBS=`${pkg_config} --libs ${guile_version}`
8786 if test $? != 0; then
8787 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8788 fi
8789 found_usable_guile=${guile_version}
8790 break
8791 done
8792 if test "${found_usable_guile}" = "checking"; then
8793 if test "${flag_errors}" = "yes"; then
8794 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8795 else
8796 found_usable_guile=no
8797 fi
8798 fi
8799 if test "${found_usable_guile}" != no; then
8800 save_CPPFLAGS=$CPPFLAGS
8801 save_LIBS=$LIBS
8802 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8803 LIBS="$LIBS $new_LIBS"
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #include "libguile.h"
8807 int
8808 main ()
8809 {
8810 scm_init_guile ();
8811 ;
8812 return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816 have_libguile=yes
8817 GUILE_CPPFLAGS=$new_CPPFLAGS
8818 GUILE_LIBS=$new_LIBS
8819 else
8820 found_usable_guile=no
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 CPPFLAGS=$save_CPPFLAGS
8825 LIBS=$save_LIBS
8826 if test "${found_usable_guile}" = no; then
8827 if test "${flag_errors}" = yes; then
8828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8830 as_fn_error "linking guile version ${guile_version} test program failed
8831 See \`config.log' for more details." "$LINENO" 5; }
8832 fi
8833 fi
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8836 $as_echo "${found_usable_guile}" >&6; }
8837
8838 ;;
8839 yes)
8840
8841 pkg_config=${pkg_config_prog_path}
8842 guile_version_list=${try_guile_versions}
8843 flag_errors=yes
8844
8845 if test "${pkg_config}" = "missing"; then
8846 as_fn_error "pkg-config program not found" "$LINENO" 5
8847 fi
8848 if test ! -f "${pkg_config}"; then
8849 as_fn_error "pkg-config program ${pkg_config} not found" "$LINENO" 5
8850 fi
8851 found_usable_guile=checking
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8853 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8854 for guile_version in ${guile_version_list}; do
8855 ${pkg_config} --exists ${guile_version} 2>/dev/null
8856 if test $? != 0; then
8857 continue
8858 fi
8859 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
8860 if test $? != 0; then
8861 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8862 fi
8863 new_LIBS=`${pkg_config} --libs ${guile_version}`
8864 if test $? != 0; then
8865 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8866 fi
8867 found_usable_guile=${guile_version}
8868 break
8869 done
8870 if test "${found_usable_guile}" = "checking"; then
8871 if test "${flag_errors}" = "yes"; then
8872 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8873 else
8874 found_usable_guile=no
8875 fi
8876 fi
8877 if test "${found_usable_guile}" != no; then
8878 save_CPPFLAGS=$CPPFLAGS
8879 save_LIBS=$LIBS
8880 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8881 LIBS="$LIBS $new_LIBS"
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #include "libguile.h"
8885 int
8886 main ()
8887 {
8888 scm_init_guile ();
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 if ac_fn_c_try_link "$LINENO"; then :
8894 have_libguile=yes
8895 GUILE_CPPFLAGS=$new_CPPFLAGS
8896 GUILE_LIBS=$new_LIBS
8897 else
8898 found_usable_guile=no
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext \
8901 conftest$ac_exeext conftest.$ac_ext
8902 CPPFLAGS=$save_CPPFLAGS
8903 LIBS=$save_LIBS
8904 if test "${found_usable_guile}" = no; then
8905 if test "${flag_errors}" = yes; then
8906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8908 as_fn_error "linking guile version ${guile_version} test program failed
8909 See \`config.log' for more details." "$LINENO" 5; }
8910 fi
8911 fi
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8914 $as_echo "${found_usable_guile}" >&6; }
8915
8916 ;;
8917 [\\/]* | ?:[\\/]*)
8918
8919 pkg_config=${with_guile}
8920 guile_version_list=${try_guile_versions}
8921 flag_errors=yes
8922
8923 if test "${pkg_config}" = "missing"; then
8924 as_fn_error "pkg-config program not found" "$LINENO" 5
8925 fi
8926 if test ! -f "${pkg_config}"; then
8927 as_fn_error "pkg-config program ${pkg_config} not found" "$LINENO" 5
8928 fi
8929 found_usable_guile=checking
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
8931 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
8932 for guile_version in ${guile_version_list}; do
8933 ${pkg_config} --exists ${guile_version} 2>/dev/null
8934 if test $? != 0; then
8935 continue
8936 fi
8937 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
8938 if test $? != 0; then
8939 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
8940 fi
8941 new_LIBS=`${pkg_config} --libs ${guile_version}`
8942 if test $? != 0; then
8943 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
8944 fi
8945 found_usable_guile=${guile_version}
8946 break
8947 done
8948 if test "${found_usable_guile}" = "checking"; then
8949 if test "${flag_errors}" = "yes"; then
8950 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
8951 else
8952 found_usable_guile=no
8953 fi
8954 fi
8955 if test "${found_usable_guile}" != no; then
8956 save_CPPFLAGS=$CPPFLAGS
8957 save_LIBS=$LIBS
8958 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8959 LIBS="$LIBS $new_LIBS"
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 #include "libguile.h"
8963 int
8964 main ()
8965 {
8966 scm_init_guile ();
8967 ;
8968 return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8972 have_libguile=yes
8973 GUILE_CPPFLAGS=$new_CPPFLAGS
8974 GUILE_LIBS=$new_LIBS
8975 else
8976 found_usable_guile=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext conftest.$ac_ext
8980 CPPFLAGS=$save_CPPFLAGS
8981 LIBS=$save_LIBS
8982 if test "${found_usable_guile}" = no; then
8983 if test "${flag_errors}" = yes; then
8984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8986 as_fn_error "linking guile version ${guile_version} test program failed
8987 See \`config.log' for more details." "$LINENO" 5; }
8988 fi
8989 fi
8990 fi
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
8992 $as_echo "${found_usable_guile}" >&6; }
8993
8994 ;;
8995 "" | */*)
8996 # Disallow --with=guile="" and --with-guile=foo/bar.
8997 as_fn_error "invalid value for --with-guile" "$LINENO" 5
8998 ;;
8999 *)
9000 # A space separate list of guile versions to try, in order.
9001
9002 pkg_config=${pkg_config_prog_path}
9003 guile_version_list=${with_guile}
9004 flag_errors=yes
9005
9006 if test "${pkg_config}" = "missing"; then
9007 as_fn_error "pkg-config program not found" "$LINENO" 5
9008 fi
9009 if test ! -f "${pkg_config}"; then
9010 as_fn_error "pkg-config program ${pkg_config} not found" "$LINENO" 5
9011 fi
9012 found_usable_guile=checking
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9014 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9015 for guile_version in ${guile_version_list}; do
9016 ${pkg_config} --exists ${guile_version} 2>/dev/null
9017 if test $? != 0; then
9018 continue
9019 fi
9020 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9021 if test $? != 0; then
9022 as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9023 fi
9024 new_LIBS=`${pkg_config} --libs ${guile_version}`
9025 if test $? != 0; then
9026 as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9027 fi
9028 found_usable_guile=${guile_version}
9029 break
9030 done
9031 if test "${found_usable_guile}" = "checking"; then
9032 if test "${flag_errors}" = "yes"; then
9033 as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9034 else
9035 found_usable_guile=no
9036 fi
9037 fi
9038 if test "${found_usable_guile}" != no; then
9039 save_CPPFLAGS=$CPPFLAGS
9040 save_LIBS=$LIBS
9041 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9042 LIBS="$LIBS $new_LIBS"
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 #include "libguile.h"
9046 int
9047 main ()
9048 {
9049 scm_init_guile ();
9050 ;
9051 return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_link "$LINENO"; then :
9055 have_libguile=yes
9056 GUILE_CPPFLAGS=$new_CPPFLAGS
9057 GUILE_LIBS=$new_LIBS
9058 else
9059 found_usable_guile=no
9060 fi
9061 rm -f core conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063 CPPFLAGS=$save_CPPFLAGS
9064 LIBS=$save_LIBS
9065 if test "${found_usable_guile}" = no; then
9066 if test "${flag_errors}" = yes; then
9067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9069 as_fn_error "linking guile version ${guile_version} test program failed
9070 See \`config.log' for more details." "$LINENO" 5; }
9071 fi
9072 fi
9073 fi
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9075 $as_echo "${found_usable_guile}" >&6; }
9076
9077 ;;
9078 esac
9079
9080 if test "${have_libguile}" != no; then
9081
9082 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9083
9084 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9085 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9086 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9087 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9088 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9089 else
9090 # Even if Guile support is not compiled in, we need to have these files
9091 # included.
9092 CONFIG_OBS="$CONFIG_OBS guile.o"
9093 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
9094 fi
9095
9096
9097
9098 # --------------------- #
9099 # Check for libmcheck. #
9100 # --------------------- #
9101
9102 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9103 # but turn it off if Python is enabled with threads, since -lmcheck is
9104 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9105 # and for releases.
9106 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
9107 && $development; then
9108 libmcheck_default=yes
9109 else
9110 libmcheck_default=no
9111 fi
9112
9113 # Check whether --enable-libmcheck was given.
9114 if test "${enable_libmcheck+set}" = set; then :
9115 enableval=$enable_libmcheck; case "${enableval}" in
9116 yes | y) ENABLE_LIBMCHECK="yes" ;;
9117 no | n) ENABLE_LIBMCHECK="no" ;;
9118 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9119 esac
9120 fi
9121
9122
9123 if test -z "${ENABLE_LIBMCHECK}"; then
9124 ENABLE_LIBMCHECK=${libmcheck_default}
9125 fi
9126
9127 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9129 $as_echo_n "checking for main in -lmcheck... " >&6; }
9130 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 ac_check_lib_save_LIBS=$LIBS
9134 LIBS="-lmcheck $LIBS"
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137
9138
9139 int
9140 main ()
9141 {
9142 return main ();
9143 ;
9144 return 0;
9145 }
9146 _ACEOF
9147 if ac_fn_c_try_link "$LINENO"; then :
9148 ac_cv_lib_mcheck_main=yes
9149 else
9150 ac_cv_lib_mcheck_main=no
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9155 fi
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9157 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9158 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_LIBMCHECK 1
9161 _ACEOF
9162
9163 LIBS="-lmcheck $LIBS"
9164
9165 fi
9166
9167 fi
9168
9169
9170 if test "$ENABLE_LIBMCHECK" = "yes" \
9171 -a "${have_libpython}" != "no" \
9172 -a "${python_has_threads}" = "yes" ; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9174 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9175 fi
9176
9177 # ------------------------- #
9178 # Checks for header files. #
9179 # ------------------------- #
9180
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9182 $as_echo_n "checking for ANSI C header files... " >&6; }
9183 if test "${ac_cv_header_stdc+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #include <stdlib.h>
9189 #include <stdarg.h>
9190 #include <string.h>
9191 #include <float.h>
9192
9193 int
9194 main ()
9195 {
9196
9197 ;
9198 return 0;
9199 }
9200 _ACEOF
9201 if ac_fn_c_try_compile "$LINENO"; then :
9202 ac_cv_header_stdc=yes
9203 else
9204 ac_cv_header_stdc=no
9205 fi
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207
9208 if test $ac_cv_header_stdc = yes; then
9209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 #include <string.h>
9213
9214 _ACEOF
9215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9216 $EGREP "memchr" >/dev/null 2>&1; then :
9217
9218 else
9219 ac_cv_header_stdc=no
9220 fi
9221 rm -f conftest*
9222
9223 fi
9224
9225 if test $ac_cv_header_stdc = yes; then
9226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 #include <stdlib.h>
9230
9231 _ACEOF
9232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9233 $EGREP "free" >/dev/null 2>&1; then :
9234
9235 else
9236 ac_cv_header_stdc=no
9237 fi
9238 rm -f conftest*
9239
9240 fi
9241
9242 if test $ac_cv_header_stdc = yes; then
9243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9244 if test "$cross_compiling" = yes; then :
9245 :
9246 else
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 #include <ctype.h>
9250 #include <stdlib.h>
9251 #if ((' ' & 0x0FF) == 0x020)
9252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9254 #else
9255 # define ISLOWER(c) \
9256 (('a' <= (c) && (c) <= 'i') \
9257 || ('j' <= (c) && (c) <= 'r') \
9258 || ('s' <= (c) && (c) <= 'z'))
9259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9260 #endif
9261
9262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9263 int
9264 main ()
9265 {
9266 int i;
9267 for (i = 0; i < 256; i++)
9268 if (XOR (islower (i), ISLOWER (i))
9269 || toupper (i) != TOUPPER (i))
9270 return 2;
9271 return 0;
9272 }
9273 _ACEOF
9274 if ac_fn_c_try_run "$LINENO"; then :
9275
9276 else
9277 ac_cv_header_stdc=no
9278 fi
9279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9280 conftest.$ac_objext conftest.beam conftest.$ac_ext
9281 fi
9282
9283 fi
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9286 $as_echo "$ac_cv_header_stdc" >&6; }
9287 if test $ac_cv_header_stdc = yes; then
9288
9289 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9290
9291 fi
9292
9293 # elf_hp.h is for HP/UX 64-bit shared library support.
9294 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
9295 thread_db.h \
9296 sys/fault.h \
9297 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
9298 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
9299 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
9300 termios.h termio.h \
9301 sgtty.h elf_hp.h \
9302 dlfcn.h
9303 do :
9304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9305 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9306 eval as_val=\$$as_ac_Header
9307 if test "x$as_val" = x""yes; then :
9308 cat >>confdefs.h <<_ACEOF
9309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310 _ACEOF
9311
9312 fi
9313
9314 done
9315
9316 for ac_header in sys/proc.h
9317 do :
9318 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9319 # include <sys/param.h>
9320 #endif
9321
9322 "
9323 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
9324 cat >>confdefs.h <<_ACEOF
9325 #define HAVE_SYS_PROC_H 1
9326 _ACEOF
9327
9328 fi
9329
9330 done
9331
9332 for ac_header in sys/user.h
9333 do :
9334 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9335 # include <sys/param.h>
9336 #endif
9337
9338 "
9339 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_SYS_USER_H 1
9342 _ACEOF
9343
9344 fi
9345
9346 done
9347
9348
9349 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9350 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9351 # think that we don't have <curses.h> if we're using GCC.
9352 case $host_os in
9353 solaris2.[789])
9354 if test "$GCC" = yes; then
9355
9356 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9357
9358 fi ;;
9359 esac
9360 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
9361 do :
9362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9363 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9364 eval as_val=\$$as_ac_Header
9365 if test "x$as_val" = x""yes; then :
9366 cat >>confdefs.h <<_ACEOF
9367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9368 _ACEOF
9369
9370 fi
9371
9372 done
9373
9374 for ac_header in term.h
9375 do :
9376 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9377 # include <curses.h>
9378 #endif
9379
9380 "
9381 if test "x$ac_cv_header_term_h" = x""yes; then :
9382 cat >>confdefs.h <<_ACEOF
9383 #define HAVE_TERM_H 1
9384 _ACEOF
9385
9386 fi
9387
9388 done
9389
9390
9391 # ------------------------- #
9392 # Checks for declarations. #
9393 # ------------------------- #
9394
9395 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9396 if test "x$ac_cv_have_decl_free" = x""yes; then :
9397 ac_have_decl=1
9398 else
9399 ac_have_decl=0
9400 fi
9401
9402 cat >>confdefs.h <<_ACEOF
9403 #define HAVE_DECL_FREE $ac_have_decl
9404 _ACEOF
9405 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9406 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
9407 ac_have_decl=1
9408 else
9409 ac_have_decl=0
9410 fi
9411
9412 cat >>confdefs.h <<_ACEOF
9413 #define HAVE_DECL_MALLOC $ac_have_decl
9414 _ACEOF
9415 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9416 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
9417 ac_have_decl=1
9418 else
9419 ac_have_decl=0
9420 fi
9421
9422 cat >>confdefs.h <<_ACEOF
9423 #define HAVE_DECL_REALLOC $ac_have_decl
9424 _ACEOF
9425 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9426 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9427 ac_have_decl=1
9428 else
9429 ac_have_decl=0
9430 fi
9431
9432 cat >>confdefs.h <<_ACEOF
9433 #define HAVE_DECL_SNPRINTF $ac_have_decl
9434 _ACEOF
9435
9436
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9438 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9439 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 #include <locale.h>
9445 int
9446 main ()
9447 {
9448 return LC_MESSAGES
9449 ;
9450 return 0;
9451 }
9452 _ACEOF
9453 if ac_fn_c_try_link "$LINENO"; then :
9454 am_cv_val_LC_MESSAGES=yes
9455 else
9456 am_cv_val_LC_MESSAGES=no
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 fi
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9462 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9463 if test $am_cv_val_LC_MESSAGES = yes; then
9464
9465 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9466
9467 fi
9468
9469
9470 # ----------------------- #
9471 # Checks for structures. #
9472 # ----------------------- #
9473
9474 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9475 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9476
9477 cat >>confdefs.h <<_ACEOF
9478 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9479 _ACEOF
9480
9481
9482 fi
9483 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9484 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9485
9486 cat >>confdefs.h <<_ACEOF
9487 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9488 _ACEOF
9489
9490
9491 fi
9492
9493
9494 # ------------------ #
9495 # Checks for types. #
9496 # ------------------ #
9497
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9499 $as_echo_n "checking return type of signal handlers... " >&6; }
9500 if test "${ac_cv_type_signal+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 #include <sys/types.h>
9506 #include <signal.h>
9507
9508 int
9509 main ()
9510 {
9511 return *(signal (0, 0)) (0) == 1;
9512 ;
9513 return 0;
9514 }
9515 _ACEOF
9516 if ac_fn_c_try_compile "$LINENO"; then :
9517 ac_cv_type_signal=int
9518 else
9519 ac_cv_type_signal=void
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9522 fi
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9524 $as_echo "$ac_cv_type_signal" >&6; }
9525
9526 cat >>confdefs.h <<_ACEOF
9527 #define RETSIGTYPE $ac_cv_type_signal
9528 _ACEOF
9529
9530
9531 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9532 #include <sys/socket.h>
9533
9534 "
9535 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9536
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_SOCKLEN_T 1
9539 _ACEOF
9540
9541
9542 fi
9543
9544
9545 # ------------------------------------- #
9546 # Checks for compiler characteristics. #
9547 # ------------------------------------- #
9548
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9550 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9551 if test "${ac_cv_c_const+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556
9557 int
9558 main ()
9559 {
9560 /* FIXME: Include the comments suggested by Paul. */
9561 #ifndef __cplusplus
9562 /* Ultrix mips cc rejects this. */
9563 typedef int charset[2];
9564 const charset cs;
9565 /* SunOS 4.1.1 cc rejects this. */
9566 char const *const *pcpcc;
9567 char **ppc;
9568 /* NEC SVR4.0.2 mips cc rejects this. */
9569 struct point {int x, y;};
9570 static struct point const zero = {0,0};
9571 /* AIX XL C 1.02.0.0 rejects this.
9572 It does not let you subtract one const X* pointer from another in
9573 an arm of an if-expression whose if-part is not a constant
9574 expression */
9575 const char *g = "string";
9576 pcpcc = &g + (g ? g-g : 0);
9577 /* HPUX 7.0 cc rejects these. */
9578 ++pcpcc;
9579 ppc = (char**) pcpcc;
9580 pcpcc = (char const *const *) ppc;
9581 { /* SCO 3.2v4 cc rejects this. */
9582 char *t;
9583 char const *s = 0 ? (char *) 0 : (char const *) 0;
9584
9585 *t++ = 0;
9586 if (s) return 0;
9587 }
9588 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9589 int x[] = {25, 17};
9590 const int *foo = &x[0];
9591 ++foo;
9592 }
9593 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9594 typedef const int *iptr;
9595 iptr p = 0;
9596 ++p;
9597 }
9598 { /* AIX XL C 1.02.0.0 rejects this saying
9599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9600 struct s { int j; const int *ap[3]; };
9601 struct s *b; b->j = 5;
9602 }
9603 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9604 const int foo = 10;
9605 if (!foo) return 0;
9606 }
9607 return !cs[0] && !zero.x;
9608 #endif
9609
9610 ;
9611 return 0;
9612 }
9613 _ACEOF
9614 if ac_fn_c_try_compile "$LINENO"; then :
9615 ac_cv_c_const=yes
9616 else
9617 ac_cv_c_const=no
9618 fi
9619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 fi
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9622 $as_echo "$ac_cv_c_const" >&6; }
9623 if test $ac_cv_c_const = no; then
9624
9625 $as_echo "#define const /**/" >>confdefs.h
9626
9627 fi
9628
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9630 $as_echo_n "checking for inline... " >&6; }
9631 if test "${ac_cv_c_inline+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 ac_cv_c_inline=no
9635 for ac_kw in inline __inline__ __inline; do
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9638 #ifndef __cplusplus
9639 typedef int foo_t;
9640 static $ac_kw foo_t static_foo () {return 0; }
9641 $ac_kw foo_t foo () {return 0; }
9642 #endif
9643
9644 _ACEOF
9645 if ac_fn_c_try_compile "$LINENO"; then :
9646 ac_cv_c_inline=$ac_kw
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 test "$ac_cv_c_inline" != no && break
9650 done
9651
9652 fi
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9654 $as_echo "$ac_cv_c_inline" >&6; }
9655
9656 case $ac_cv_c_inline in
9657 inline | yes) ;;
9658 *)
9659 case $ac_cv_c_inline in
9660 no) ac_val=;;
9661 *) ac_val=$ac_cv_c_inline;;
9662 esac
9663 cat >>confdefs.h <<_ACEOF
9664 #ifndef __cplusplus
9665 #define inline $ac_val
9666 #endif
9667 _ACEOF
9668 ;;
9669 esac
9670
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9672 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9673 if test "${ac_cv_c_bigendian+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 ac_cv_c_bigendian=unknown
9677 # See if we're dealing with a universal compiler.
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 #ifndef __APPLE_CC__
9681 not a universal capable compiler
9682 #endif
9683 typedef int dummy;
9684
9685 _ACEOF
9686 if ac_fn_c_try_compile "$LINENO"; then :
9687
9688 # Check for potential -arch flags. It is not universal unless
9689 # there are at least two -arch flags with different values.
9690 ac_arch=
9691 ac_prev=
9692 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9693 if test -n "$ac_prev"; then
9694 case $ac_word in
9695 i?86 | x86_64 | ppc | ppc64)
9696 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9697 ac_arch=$ac_word
9698 else
9699 ac_cv_c_bigendian=universal
9700 break
9701 fi
9702 ;;
9703 esac
9704 ac_prev=
9705 elif test "x$ac_word" = "x-arch"; then
9706 ac_prev=arch
9707 fi
9708 done
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9711 if test $ac_cv_c_bigendian = unknown; then
9712 # See if sys/param.h defines the BYTE_ORDER macro.
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 #include <sys/types.h>
9716 #include <sys/param.h>
9717
9718 int
9719 main ()
9720 {
9721 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9722 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9723 && LITTLE_ENDIAN)
9724 bogus endian macros
9725 #endif
9726
9727 ;
9728 return 0;
9729 }
9730 _ACEOF
9731 if ac_fn_c_try_compile "$LINENO"; then :
9732 # It does; now see whether it defined to BIG_ENDIAN or not.
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 #include <sys/types.h>
9736 #include <sys/param.h>
9737
9738 int
9739 main ()
9740 {
9741 #if BYTE_ORDER != BIG_ENDIAN
9742 not big endian
9743 #endif
9744
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_c_try_compile "$LINENO"; then :
9750 ac_cv_c_bigendian=yes
9751 else
9752 ac_cv_c_bigendian=no
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 fi
9758 if test $ac_cv_c_bigendian = unknown; then
9759 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 #include <limits.h>
9763
9764 int
9765 main ()
9766 {
9767 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9768 bogus endian macros
9769 #endif
9770
9771 ;
9772 return 0;
9773 }
9774 _ACEOF
9775 if ac_fn_c_try_compile "$LINENO"; then :
9776 # It does; now see whether it defined to _BIG_ENDIAN or not.
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 #include <limits.h>
9780
9781 int
9782 main ()
9783 {
9784 #ifndef _BIG_ENDIAN
9785 not big endian
9786 #endif
9787
9788 ;
9789 return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_compile "$LINENO"; then :
9793 ac_cv_c_bigendian=yes
9794 else
9795 ac_cv_c_bigendian=no
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 fi
9801 if test $ac_cv_c_bigendian = unknown; then
9802 # Compile a test program.
9803 if test "$cross_compiling" = yes; then :
9804 # Try to guess by grepping values from an object file.
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9807 short int ascii_mm[] =
9808 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9809 short int ascii_ii[] =
9810 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9811 int use_ascii (int i) {
9812 return ascii_mm[i] + ascii_ii[i];
9813 }
9814 short int ebcdic_ii[] =
9815 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9816 short int ebcdic_mm[] =
9817 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9818 int use_ebcdic (int i) {
9819 return ebcdic_mm[i] + ebcdic_ii[i];
9820 }
9821 extern int foo;
9822
9823 int
9824 main ()
9825 {
9826 return use_ascii (foo) == use_ebcdic (foo);
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_compile "$LINENO"; then :
9832 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9833 ac_cv_c_bigendian=yes
9834 fi
9835 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9836 if test "$ac_cv_c_bigendian" = unknown; then
9837 ac_cv_c_bigendian=no
9838 else
9839 # finding both strings is unlikely to happen, but who knows?
9840 ac_cv_c_bigendian=unknown
9841 fi
9842 fi
9843 fi
9844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9845 else
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848 $ac_includes_default
9849 int
9850 main ()
9851 {
9852
9853 /* Are we little or big endian? From Harbison&Steele. */
9854 union
9855 {
9856 long int l;
9857 char c[sizeof (long int)];
9858 } u;
9859 u.l = 1;
9860 return u.c[sizeof (long int) - 1] == 1;
9861
9862 ;
9863 return 0;
9864 }
9865 _ACEOF
9866 if ac_fn_c_try_run "$LINENO"; then :
9867 ac_cv_c_bigendian=no
9868 else
9869 ac_cv_c_bigendian=yes
9870 fi
9871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9872 conftest.$ac_objext conftest.beam conftest.$ac_ext
9873 fi
9874
9875 fi
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9878 $as_echo "$ac_cv_c_bigendian" >&6; }
9879 case $ac_cv_c_bigendian in #(
9880 yes)
9881 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9882 ;; #(
9883 no)
9884 ;; #(
9885 universal)
9886
9887 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9888
9889 ;; #(
9890 *)
9891 as_fn_error "unknown endianness
9892 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9893 esac
9894
9895
9896 # ------------------------------ #
9897 # Checks for library functions. #
9898 # ------------------------------ #
9899
9900 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9901 # for constant arguments. Useless!
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9903 $as_echo_n "checking for working alloca.h... " >&6; }
9904 if test "${ac_cv_working_alloca_h+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9909 #include <alloca.h>
9910 int
9911 main ()
9912 {
9913 char *p = (char *) alloca (2 * sizeof (int));
9914 if (p) return 0;
9915 ;
9916 return 0;
9917 }
9918 _ACEOF
9919 if ac_fn_c_try_link "$LINENO"; then :
9920 ac_cv_working_alloca_h=yes
9921 else
9922 ac_cv_working_alloca_h=no
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926 fi
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9928 $as_echo "$ac_cv_working_alloca_h" >&6; }
9929 if test $ac_cv_working_alloca_h = yes; then
9930
9931 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9932
9933 fi
9934
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9936 $as_echo_n "checking for alloca... " >&6; }
9937 if test "${ac_cv_func_alloca_works+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 #ifdef __GNUC__
9943 # define alloca __builtin_alloca
9944 #else
9945 # ifdef _MSC_VER
9946 # include <malloc.h>
9947 # define alloca _alloca
9948 # else
9949 # ifdef HAVE_ALLOCA_H
9950 # include <alloca.h>
9951 # else
9952 # ifdef _AIX
9953 #pragma alloca
9954 # else
9955 # ifndef alloca /* predefined by HP cc +Olibcalls */
9956 char *alloca ();
9957 # endif
9958 # endif
9959 # endif
9960 # endif
9961 #endif
9962
9963 int
9964 main ()
9965 {
9966 char *p = (char *) alloca (1);
9967 if (p) return 0;
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9973 ac_cv_func_alloca_works=yes
9974 else
9975 ac_cv_func_alloca_works=no
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext \
9978 conftest$ac_exeext conftest.$ac_ext
9979 fi
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9981 $as_echo "$ac_cv_func_alloca_works" >&6; }
9982
9983 if test $ac_cv_func_alloca_works = yes; then
9984
9985 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9986
9987 else
9988 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9989 # that cause trouble. Some versions do not even contain alloca or
9990 # contain a buggy version. If you still want to use their alloca,
9991 # use ar to extract alloca.o from them instead of compiling alloca.c.
9992
9993 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9994
9995 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9996
9997
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9999 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10000 if test "${ac_cv_os_cray+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 #if defined CRAY && ! defined CRAY2
10006 webecray
10007 #else
10008 wenotbecray
10009 #endif
10010
10011 _ACEOF
10012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10013 $EGREP "webecray" >/dev/null 2>&1; then :
10014 ac_cv_os_cray=yes
10015 else
10016 ac_cv_os_cray=no
10017 fi
10018 rm -f conftest*
10019
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10022 $as_echo "$ac_cv_os_cray" >&6; }
10023 if test $ac_cv_os_cray = yes; then
10024 for ac_func in _getb67 GETB67 getb67; do
10025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10026 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10027 eval as_val=\$$as_ac_var
10028 if test "x$as_val" = x""yes; then :
10029
10030 cat >>confdefs.h <<_ACEOF
10031 #define CRAY_STACKSEG_END $ac_func
10032 _ACEOF
10033
10034 break
10035 fi
10036
10037 done
10038 fi
10039
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10041 $as_echo_n "checking stack direction for C alloca... " >&6; }
10042 if test "${ac_cv_c_stack_direction+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 if test "$cross_compiling" = yes; then :
10046 ac_cv_c_stack_direction=0
10047 else
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050 $ac_includes_default
10051 int
10052 find_stack_direction ()
10053 {
10054 static char *addr = 0;
10055 auto char dummy;
10056 if (addr == 0)
10057 {
10058 addr = &dummy;
10059 return find_stack_direction ();
10060 }
10061 else
10062 return (&dummy > addr) ? 1 : -1;
10063 }
10064
10065 int
10066 main ()
10067 {
10068 return find_stack_direction () < 0;
10069 }
10070 _ACEOF
10071 if ac_fn_c_try_run "$LINENO"; then :
10072 ac_cv_c_stack_direction=1
10073 else
10074 ac_cv_c_stack_direction=-1
10075 fi
10076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10077 conftest.$ac_objext conftest.beam conftest.$ac_ext
10078 fi
10079
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10082 $as_echo "$ac_cv_c_stack_direction" >&6; }
10083 cat >>confdefs.h <<_ACEOF
10084 #define STACK_DIRECTION $ac_cv_c_stack_direction
10085 _ACEOF
10086
10087
10088 fi
10089
10090 for ac_header in stdlib.h unistd.h
10091 do :
10092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10093 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10094 eval as_val=\$$as_ac_Header
10095 if test "x$as_val" = x""yes; then :
10096 cat >>confdefs.h <<_ACEOF
10097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10098 _ACEOF
10099
10100 fi
10101
10102 done
10103
10104 for ac_func in getpagesize
10105 do :
10106 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10107 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10108 cat >>confdefs.h <<_ACEOF
10109 #define HAVE_GETPAGESIZE 1
10110 _ACEOF
10111
10112 fi
10113 done
10114
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10116 $as_echo_n "checking for working mmap... " >&6; }
10117 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 if test "$cross_compiling" = yes; then :
10121 ac_cv_func_mmap_fixed_mapped=no
10122 else
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 $ac_includes_default
10126 /* malloc might have been renamed as rpl_malloc. */
10127 #undef malloc
10128
10129 /* Thanks to Mike Haertel and Jim Avera for this test.
10130 Here is a matrix of mmap possibilities:
10131 mmap private not fixed
10132 mmap private fixed at somewhere currently unmapped
10133 mmap private fixed at somewhere already mapped
10134 mmap shared not fixed
10135 mmap shared fixed at somewhere currently unmapped
10136 mmap shared fixed at somewhere already mapped
10137 For private mappings, we should verify that changes cannot be read()
10138 back from the file, nor mmap's back from the file at a different
10139 address. (There have been systems where private was not correctly
10140 implemented like the infamous i386 svr4.0, and systems where the
10141 VM page cache was not coherent with the file system buffer cache
10142 like early versions of FreeBSD and possibly contemporary NetBSD.)
10143 For shared mappings, we should conversely verify that changes get
10144 propagated back to all the places they're supposed to be.
10145
10146 Grep wants private fixed already mapped.
10147 The main things grep needs to know about mmap are:
10148 * does it exist and is it safe to write into the mmap'd area
10149 * how to use it (BSD variants) */
10150
10151 #include <fcntl.h>
10152 #include <sys/mman.h>
10153
10154 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10155 char *malloc ();
10156 #endif
10157
10158 /* This mess was copied from the GNU getpagesize.h. */
10159 #ifndef HAVE_GETPAGESIZE
10160 /* Assume that all systems that can run configure have sys/param.h. */
10161 # ifndef HAVE_SYS_PARAM_H
10162 # define HAVE_SYS_PARAM_H 1
10163 # endif
10164
10165 # ifdef _SC_PAGESIZE
10166 # define getpagesize() sysconf(_SC_PAGESIZE)
10167 # else /* no _SC_PAGESIZE */
10168 # ifdef HAVE_SYS_PARAM_H
10169 # include <sys/param.h>
10170 # ifdef EXEC_PAGESIZE
10171 # define getpagesize() EXEC_PAGESIZE
10172 # else /* no EXEC_PAGESIZE */
10173 # ifdef NBPG
10174 # define getpagesize() NBPG * CLSIZE
10175 # ifndef CLSIZE
10176 # define CLSIZE 1
10177 # endif /* no CLSIZE */
10178 # else /* no NBPG */
10179 # ifdef NBPC
10180 # define getpagesize() NBPC
10181 # else /* no NBPC */
10182 # ifdef PAGESIZE
10183 # define getpagesize() PAGESIZE
10184 # endif /* PAGESIZE */
10185 # endif /* no NBPC */
10186 # endif /* no NBPG */
10187 # endif /* no EXEC_PAGESIZE */
10188 # else /* no HAVE_SYS_PARAM_H */
10189 # define getpagesize() 8192 /* punt totally */
10190 # endif /* no HAVE_SYS_PARAM_H */
10191 # endif /* no _SC_PAGESIZE */
10192
10193 #endif /* no HAVE_GETPAGESIZE */
10194
10195 int
10196 main ()
10197 {
10198 char *data, *data2, *data3;
10199 int i, pagesize;
10200 int fd;
10201
10202 pagesize = getpagesize ();
10203
10204 /* First, make a file with some known garbage in it. */
10205 data = (char *) malloc (pagesize);
10206 if (!data)
10207 return 1;
10208 for (i = 0; i < pagesize; ++i)
10209 *(data + i) = rand ();
10210 umask (0);
10211 fd = creat ("conftest.mmap", 0600);
10212 if (fd < 0)
10213 return 1;
10214 if (write (fd, data, pagesize) != pagesize)
10215 return 1;
10216 close (fd);
10217
10218 /* Next, try to mmap the file at a fixed address which already has
10219 something else allocated at it. If we can, also make sure that
10220 we see the same garbage. */
10221 fd = open ("conftest.mmap", O_RDWR);
10222 if (fd < 0)
10223 return 1;
10224 data2 = (char *) malloc (2 * pagesize);
10225 if (!data2)
10226 return 1;
10227 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10228 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10229 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10230 return 1;
10231 for (i = 0; i < pagesize; ++i)
10232 if (*(data + i) != *(data2 + i))
10233 return 1;
10234
10235 /* Finally, make sure that changes to the mapped area do not
10236 percolate back to the file as seen by read(). (This is a bug on
10237 some variants of i386 svr4.0.) */
10238 for (i = 0; i < pagesize; ++i)
10239 *(data2 + i) = *(data2 + i) + 1;
10240 data3 = (char *) malloc (pagesize);
10241 if (!data3)
10242 return 1;
10243 if (read (fd, data3, pagesize) != pagesize)
10244 return 1;
10245 for (i = 0; i < pagesize; ++i)
10246 if (*(data + i) != *(data3 + i))
10247 return 1;
10248 close (fd);
10249 return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_c_try_run "$LINENO"; then :
10253 ac_cv_func_mmap_fixed_mapped=yes
10254 else
10255 ac_cv_func_mmap_fixed_mapped=no
10256 fi
10257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10258 conftest.$ac_objext conftest.beam conftest.$ac_ext
10259 fi
10260
10261 fi
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10263 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10264 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10265
10266 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10267
10268 fi
10269 rm -f conftest.mmap
10270
10271 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10272 if test "x$ac_cv_type_pid_t" = x""yes; then :
10273
10274 else
10275
10276 cat >>confdefs.h <<_ACEOF
10277 #define pid_t int
10278 _ACEOF
10279
10280 fi
10281
10282 for ac_header in vfork.h
10283 do :
10284 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10285 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10286 cat >>confdefs.h <<_ACEOF
10287 #define HAVE_VFORK_H 1
10288 _ACEOF
10289
10290 fi
10291
10292 done
10293
10294 for ac_func in fork vfork
10295 do :
10296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10297 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10298 eval as_val=\$$as_ac_var
10299 if test "x$as_val" = x""yes; then :
10300 cat >>confdefs.h <<_ACEOF
10301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302 _ACEOF
10303
10304 fi
10305 done
10306
10307 if test "x$ac_cv_func_fork" = xyes; then
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10309 $as_echo_n "checking for working fork... " >&6; }
10310 if test "${ac_cv_func_fork_works+set}" = set; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 if test "$cross_compiling" = yes; then :
10314 ac_cv_func_fork_works=cross
10315 else
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10318 $ac_includes_default
10319 int
10320 main ()
10321 {
10322
10323 /* By Ruediger Kuhlmann. */
10324 return fork () < 0;
10325
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_run "$LINENO"; then :
10331 ac_cv_func_fork_works=yes
10332 else
10333 ac_cv_func_fork_works=no
10334 fi
10335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10336 conftest.$ac_objext conftest.beam conftest.$ac_ext
10337 fi
10338
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10341 $as_echo "$ac_cv_func_fork_works" >&6; }
10342
10343 else
10344 ac_cv_func_fork_works=$ac_cv_func_fork
10345 fi
10346 if test "x$ac_cv_func_fork_works" = xcross; then
10347 case $host in
10348 *-*-amigaos* | *-*-msdosdjgpp*)
10349 # Override, as these systems have only a dummy fork() stub
10350 ac_cv_func_fork_works=no
10351 ;;
10352 *)
10353 ac_cv_func_fork_works=yes
10354 ;;
10355 esac
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10357 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10358 fi
10359 ac_cv_func_vfork_works=$ac_cv_func_vfork
10360 if test "x$ac_cv_func_vfork" = xyes; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10362 $as_echo_n "checking for working vfork... " >&6; }
10363 if test "${ac_cv_func_vfork_works+set}" = set; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 if test "$cross_compiling" = yes; then :
10367 ac_cv_func_vfork_works=cross
10368 else
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10371 /* Thanks to Paul Eggert for this test. */
10372 $ac_includes_default
10373 #include <sys/wait.h>
10374 #ifdef HAVE_VFORK_H
10375 # include <vfork.h>
10376 #endif
10377 /* On some sparc systems, changes by the child to local and incoming
10378 argument registers are propagated back to the parent. The compiler
10379 is told about this with #include <vfork.h>, but some compilers
10380 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10381 static variable whose address is put into a register that is
10382 clobbered by the vfork. */
10383 static void
10384 #ifdef __cplusplus
10385 sparc_address_test (int arg)
10386 # else
10387 sparc_address_test (arg) int arg;
10388 #endif
10389 {
10390 static pid_t child;
10391 if (!child) {
10392 child = vfork ();
10393 if (child < 0) {
10394 perror ("vfork");
10395 _exit(2);
10396 }
10397 if (!child) {
10398 arg = getpid();
10399 write(-1, "", 0);
10400 _exit (arg);
10401 }
10402 }
10403 }
10404
10405 int
10406 main ()
10407 {
10408 pid_t parent = getpid ();
10409 pid_t child;
10410
10411 sparc_address_test (0);
10412
10413 child = vfork ();
10414
10415 if (child == 0) {
10416 /* Here is another test for sparc vfork register problems. This
10417 test uses lots of local variables, at least as many local
10418 variables as main has allocated so far including compiler
10419 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10420 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10421 reuse the register of parent for one of the local variables,
10422 since it will think that parent can't possibly be used any more
10423 in this routine. Assigning to the local variable will thus
10424 munge parent in the parent process. */
10425 pid_t
10426 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10427 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10428 /* Convince the compiler that p..p7 are live; otherwise, it might
10429 use the same hardware register for all 8 local variables. */
10430 if (p != p1 || p != p2 || p != p3 || p != p4
10431 || p != p5 || p != p6 || p != p7)
10432 _exit(1);
10433
10434 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10435 from child file descriptors. If the child closes a descriptor
10436 before it execs or exits, this munges the parent's descriptor
10437 as well. Test for this by closing stdout in the child. */
10438 _exit(close(fileno(stdout)) != 0);
10439 } else {
10440 int status;
10441 struct stat st;
10442
10443 while (wait(&status) != child)
10444 ;
10445 return (
10446 /* Was there some problem with vforking? */
10447 child < 0
10448
10449 /* Did the child fail? (This shouldn't happen.) */
10450 || status
10451
10452 /* Did the vfork/compiler bug occur? */
10453 || parent != getpid()
10454
10455 /* Did the file descriptor bug occur? */
10456 || fstat(fileno(stdout), &st) != 0
10457 );
10458 }
10459 }
10460 _ACEOF
10461 if ac_fn_c_try_run "$LINENO"; then :
10462 ac_cv_func_vfork_works=yes
10463 else
10464 ac_cv_func_vfork_works=no
10465 fi
10466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10467 conftest.$ac_objext conftest.beam conftest.$ac_ext
10468 fi
10469
10470 fi
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10472 $as_echo "$ac_cv_func_vfork_works" >&6; }
10473
10474 fi;
10475 if test "x$ac_cv_func_fork_works" = xcross; then
10476 ac_cv_func_vfork_works=$ac_cv_func_vfork
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10478 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10479 fi
10480
10481 if test "x$ac_cv_func_vfork_works" = xyes; then
10482
10483 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10484
10485 else
10486
10487 $as_echo "#define vfork fork" >>confdefs.h
10488
10489 fi
10490 if test "x$ac_cv_func_fork_works" = xyes; then
10491
10492 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10493
10494 fi
10495
10496 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10497 pipe poll pread pread64 pwrite readlink resize_term \
10498 sbrk setpgid setpgrp setsid \
10499 sigaction sigprocmask sigsetmask socketpair \
10500 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10501 setrlimit getrlimit posix_madvise waitpid lstat \
10502 ptrace64
10503 do :
10504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10505 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10506 eval as_val=\$$as_ac_var
10507 if test "x$as_val" = x""yes; then :
10508 cat >>confdefs.h <<_ACEOF
10509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10510 _ACEOF
10511
10512 fi
10513 done
10514
10515
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10517 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10518 if test "${am_cv_langinfo_codeset+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523 #include <langinfo.h>
10524 int
10525 main ()
10526 {
10527 char* cs = nl_langinfo(CODESET);
10528 ;
10529 return 0;
10530 }
10531 _ACEOF
10532 if ac_fn_c_try_link "$LINENO"; then :
10533 am_cv_langinfo_codeset=yes
10534 else
10535 am_cv_langinfo_codeset=no
10536 fi
10537 rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10542 $as_echo "$am_cv_langinfo_codeset" >&6; }
10543 if test $am_cv_langinfo_codeset = yes; then
10544
10545 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10546
10547 fi
10548
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10551 $as_echo_n "checking for ANSI C header files... " >&6; }
10552 if test "${ac_cv_header_stdc+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 #include <stdlib.h>
10558 #include <stdarg.h>
10559 #include <string.h>
10560 #include <float.h>
10561
10562 int
10563 main ()
10564 {
10565
10566 ;
10567 return 0;
10568 }
10569 _ACEOF
10570 if ac_fn_c_try_compile "$LINENO"; then :
10571 ac_cv_header_stdc=yes
10572 else
10573 ac_cv_header_stdc=no
10574 fi
10575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576
10577 if test $ac_cv_header_stdc = yes; then
10578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10581 #include <string.h>
10582
10583 _ACEOF
10584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10585 $EGREP "memchr" >/dev/null 2>&1; then :
10586
10587 else
10588 ac_cv_header_stdc=no
10589 fi
10590 rm -f conftest*
10591
10592 fi
10593
10594 if test $ac_cv_header_stdc = yes; then
10595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10598 #include <stdlib.h>
10599
10600 _ACEOF
10601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10602 $EGREP "free" >/dev/null 2>&1; then :
10603
10604 else
10605 ac_cv_header_stdc=no
10606 fi
10607 rm -f conftest*
10608
10609 fi
10610
10611 if test $ac_cv_header_stdc = yes; then
10612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10613 if test "$cross_compiling" = yes; then :
10614 :
10615 else
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 #include <ctype.h>
10619 #include <stdlib.h>
10620 #if ((' ' & 0x0FF) == 0x020)
10621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10623 #else
10624 # define ISLOWER(c) \
10625 (('a' <= (c) && (c) <= 'i') \
10626 || ('j' <= (c) && (c) <= 'r') \
10627 || ('s' <= (c) && (c) <= 'z'))
10628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10629 #endif
10630
10631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10632 int
10633 main ()
10634 {
10635 int i;
10636 for (i = 0; i < 256; i++)
10637 if (XOR (islower (i), ISLOWER (i))
10638 || toupper (i) != TOUPPER (i))
10639 return 2;
10640 return 0;
10641 }
10642 _ACEOF
10643 if ac_fn_c_try_run "$LINENO"; then :
10644
10645 else
10646 ac_cv_header_stdc=no
10647 fi
10648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10649 conftest.$ac_objext conftest.beam conftest.$ac_ext
10650 fi
10651
10652 fi
10653 fi
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10655 $as_echo "$ac_cv_header_stdc" >&6; }
10656 if test $ac_cv_header_stdc = yes; then
10657
10658 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10659
10660 fi
10661
10662 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10663 # for constant arguments. Useless!
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10665 $as_echo_n "checking for working alloca.h... " >&6; }
10666 if test "${ac_cv_working_alloca_h+set}" = set; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <alloca.h>
10672 int
10673 main ()
10674 {
10675 char *p = (char *) alloca (2 * sizeof (int));
10676 if (p) return 0;
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682 ac_cv_working_alloca_h=yes
10683 else
10684 ac_cv_working_alloca_h=no
10685 fi
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10690 $as_echo "$ac_cv_working_alloca_h" >&6; }
10691 if test $ac_cv_working_alloca_h = yes; then
10692
10693 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10694
10695 fi
10696
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10698 $as_echo_n "checking for alloca... " >&6; }
10699 if test "${ac_cv_func_alloca_works+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 #ifdef __GNUC__
10705 # define alloca __builtin_alloca
10706 #else
10707 # ifdef _MSC_VER
10708 # include <malloc.h>
10709 # define alloca _alloca
10710 # else
10711 # ifdef HAVE_ALLOCA_H
10712 # include <alloca.h>
10713 # else
10714 # ifdef _AIX
10715 #pragma alloca
10716 # else
10717 # ifndef alloca /* predefined by HP cc +Olibcalls */
10718 char *alloca ();
10719 # endif
10720 # endif
10721 # endif
10722 # endif
10723 #endif
10724
10725 int
10726 main ()
10727 {
10728 char *p = (char *) alloca (1);
10729 if (p) return 0;
10730 ;
10731 return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735 ac_cv_func_alloca_works=yes
10736 else
10737 ac_cv_func_alloca_works=no
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741 fi
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10743 $as_echo "$ac_cv_func_alloca_works" >&6; }
10744
10745 if test $ac_cv_func_alloca_works = yes; then
10746
10747 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10748
10749 else
10750 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10751 # that cause trouble. Some versions do not even contain alloca or
10752 # contain a buggy version. If you still want to use their alloca,
10753 # use ar to extract alloca.o from them instead of compiling alloca.c.
10754
10755 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10756
10757 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10758
10759
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10761 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10762 if test "${ac_cv_os_cray+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767 #if defined CRAY && ! defined CRAY2
10768 webecray
10769 #else
10770 wenotbecray
10771 #endif
10772
10773 _ACEOF
10774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10775 $EGREP "webecray" >/dev/null 2>&1; then :
10776 ac_cv_os_cray=yes
10777 else
10778 ac_cv_os_cray=no
10779 fi
10780 rm -f conftest*
10781
10782 fi
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10784 $as_echo "$ac_cv_os_cray" >&6; }
10785 if test $ac_cv_os_cray = yes; then
10786 for ac_func in _getb67 GETB67 getb67; do
10787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10788 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10789 eval as_val=\$$as_ac_var
10790 if test "x$as_val" = x""yes; then :
10791
10792 cat >>confdefs.h <<_ACEOF
10793 #define CRAY_STACKSEG_END $ac_func
10794 _ACEOF
10795
10796 break
10797 fi
10798
10799 done
10800 fi
10801
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10803 $as_echo_n "checking stack direction for C alloca... " >&6; }
10804 if test "${ac_cv_c_stack_direction+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 if test "$cross_compiling" = yes; then :
10808 ac_cv_c_stack_direction=0
10809 else
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812 $ac_includes_default
10813 int
10814 find_stack_direction ()
10815 {
10816 static char *addr = 0;
10817 auto char dummy;
10818 if (addr == 0)
10819 {
10820 addr = &dummy;
10821 return find_stack_direction ();
10822 }
10823 else
10824 return (&dummy > addr) ? 1 : -1;
10825 }
10826
10827 int
10828 main ()
10829 {
10830 return find_stack_direction () < 0;
10831 }
10832 _ACEOF
10833 if ac_fn_c_try_run "$LINENO"; then :
10834 ac_cv_c_stack_direction=1
10835 else
10836 ac_cv_c_stack_direction=-1
10837 fi
10838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10839 conftest.$ac_objext conftest.beam conftest.$ac_ext
10840 fi
10841
10842 fi
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10844 $as_echo "$ac_cv_c_stack_direction" >&6; }
10845 cat >>confdefs.h <<_ACEOF
10846 #define STACK_DIRECTION $ac_cv_c_stack_direction
10847 _ACEOF
10848
10849
10850 fi
10851
10852
10853
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10855 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10856 if test "${am_cv_langinfo_codeset+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861 #include <langinfo.h>
10862 int
10863 main ()
10864 {
10865 char* cs = nl_langinfo(CODESET);
10866 ;
10867 return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_link "$LINENO"; then :
10871 am_cv_langinfo_codeset=yes
10872 else
10873 am_cv_langinfo_codeset=no
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext \
10876 conftest$ac_exeext conftest.$ac_ext
10877
10878 fi
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10880 $as_echo "$am_cv_langinfo_codeset" >&6; }
10881 if test $am_cv_langinfo_codeset = yes; then
10882
10883 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10884
10885 fi
10886
10887
10888 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
10889 do :
10890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10892 eval as_val=\$$as_ac_Header
10893 if test "x$as_val" = x""yes; then :
10894 cat >>confdefs.h <<_ACEOF
10895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10896 _ACEOF
10897
10898 fi
10899
10900 done
10901
10902
10903 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
10904 do :
10905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10907 eval as_val=\$$as_ac_var
10908 if test "x$as_val" = x""yes; then :
10909 cat >>confdefs.h <<_ACEOF
10910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10911 _ACEOF
10912
10913 fi
10914 done
10915
10916
10917 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10918 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
10919 ac_have_decl=1
10920 else
10921 ac_have_decl=0
10922 fi
10923
10924 cat >>confdefs.h <<_ACEOF
10925 #define HAVE_DECL_STRERROR $ac_have_decl
10926 _ACEOF
10927 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10928 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
10929 ac_have_decl=1
10930 else
10931 ac_have_decl=0
10932 fi
10933
10934 cat >>confdefs.h <<_ACEOF
10935 #define HAVE_DECL_STRSTR $ac_have_decl
10936 _ACEOF
10937
10938
10939
10940 # Check the return and argument types of ptrace. No canned test for
10941 # this, so roll our own.
10942 gdb_ptrace_headers='
10943 #include <sys/types.h>
10944 #if HAVE_SYS_PTRACE_H
10945 # include <sys/ptrace.h>
10946 #endif
10947 #if HAVE_UNISTD_H
10948 # include <unistd.h>
10949 #endif
10950 '
10951 # There is no point in checking if we don't have a prototype.
10952 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10953 "
10954 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10955 ac_have_decl=1
10956 else
10957 ac_have_decl=0
10958 fi
10959
10960 cat >>confdefs.h <<_ACEOF
10961 #define HAVE_DECL_PTRACE $ac_have_decl
10962 _ACEOF
10963 if test $ac_have_decl = 1; then :
10964
10965 else
10966
10967 : ${gdb_cv_func_ptrace_ret='int'}
10968 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10969
10970 fi
10971
10972 # Check return type. Varargs (used on GNU/Linux) conflict with the
10973 # empty argument list, so check for that explicitly.
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10975 $as_echo_n "checking return type of ptrace... " >&6; }
10976 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10981 $gdb_ptrace_headers
10982 int
10983 main ()
10984 {
10985 extern long ptrace (enum __ptrace_request, ...);
10986 ;
10987 return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_compile "$LINENO"; then :
10991 gdb_cv_func_ptrace_ret='long'
10992 else
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995 $gdb_ptrace_headers
10996 int
10997 main ()
10998 {
10999 extern int ptrace ();
11000 ;
11001 return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_compile "$LINENO"; then :
11005 gdb_cv_func_ptrace_ret='int'
11006 else
11007 gdb_cv_func_ptrace_ret='long'
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 fi
11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11014 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11015
11016 cat >>confdefs.h <<_ACEOF
11017 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11018 _ACEOF
11019
11020 # Check argument types.
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11022 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11023 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11029 $gdb_ptrace_headers
11030 int
11031 main ()
11032 {
11033 extern long ptrace (enum __ptrace_request, ...);
11034 ;
11035 return 0;
11036 }
11037 _ACEOF
11038 if ac_fn_c_try_compile "$LINENO"; then :
11039 gdb_cv_func_ptrace_args='int,int,long,long'
11040 else
11041
11042 for gdb_arg1 in 'int' 'long'; do
11043 for gdb_arg2 in 'pid_t' 'int' 'long'; do
11044 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11045 for gdb_arg4 in 'int' 'long' 'void *'; do
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11048 $gdb_ptrace_headers
11049 int
11050 main ()
11051 {
11052
11053 extern $gdb_cv_func_ptrace_ret
11054 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11055
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 if ac_fn_c_try_compile "$LINENO"; then :
11061 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11062 break 4;
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 for gdb_arg5 in 'int *' 'int' 'long'; do
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11068 $gdb_ptrace_headers
11069 int
11070 main ()
11071 {
11072
11073 extern $gdb_cv_func_ptrace_ret
11074 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11075
11076 ;
11077 return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_c_try_compile "$LINENO"; then :
11081
11082 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11083 break 5;
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086 done
11087 done
11088 done
11089 done
11090 done
11091 # Provide a safe default value.
11092 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11093
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 fi
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11098 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11099 ac_save_IFS=$IFS; IFS=','
11100 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11101 IFS=$ac_save_IFS
11102 shift
11103
11104 cat >>confdefs.h <<_ACEOF
11105 #define PTRACE_TYPE_ARG3 $3
11106 _ACEOF
11107
11108
11109 cat >>confdefs.h <<_ACEOF
11110 #define PTRACE_TYPE_ARG4 $4
11111 _ACEOF
11112
11113 if test -n "$5"; then
11114
11115 cat >>confdefs.h <<_ACEOF
11116 #define PTRACE_TYPE_ARG5 $5
11117 _ACEOF
11118
11119 fi
11120
11121 if test "$cross_compiling" = no; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11123 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11124 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 if test "$cross_compiling" = yes; then :
11128 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
11129 else
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11132 $ac_includes_default
11133 int
11134 main ()
11135 {
11136 /* If this system has a BSD-style setpgrp which takes arguments,
11137 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11138 exit successfully. */
11139 return setpgrp (1,1) != -1;
11140 ;
11141 return 0;
11142 }
11143 _ACEOF
11144 if ac_fn_c_try_run "$LINENO"; then :
11145 ac_cv_func_setpgrp_void=no
11146 else
11147 ac_cv_func_setpgrp_void=yes
11148 fi
11149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11150 conftest.$ac_objext conftest.beam conftest.$ac_ext
11151 fi
11152
11153 fi
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11155 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11156 if test $ac_cv_func_setpgrp_void = yes; then
11157
11158 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11159
11160 fi
11161
11162 else
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11164 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11165 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11170
11171 #include <unistd.h>
11172
11173 int
11174 main ()
11175 {
11176
11177 if (setpgrp(1,1) == -1)
11178 exit (0);
11179 else
11180 exit (1);
11181
11182 ;
11183 return 0;
11184 }
11185 _ACEOF
11186 if ac_fn_c_try_compile "$LINENO"; then :
11187 ac_cv_func_setpgrp_void=no
11188 else
11189 ac_cv_func_setpgrp_void=yes
11190 fi
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 fi
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11194 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11195 if test $ac_cv_func_setpgrp_void = yes; then
11196 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11197
11198 fi
11199 fi
11200
11201 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11202 # since sigsetjmp might only be defined as a macro.
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11204 $as_echo_n "checking for sigsetjmp... " >&6; }
11205 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210
11211 #include <setjmp.h>
11212
11213 int
11214 main ()
11215 {
11216 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11217 ;
11218 return 0;
11219 }
11220 _ACEOF
11221 if ac_fn_c_try_compile "$LINENO"; then :
11222 gdb_cv_func_sigsetjmp=yes
11223 else
11224 gdb_cv_func_sigsetjmp=no
11225 fi
11226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11227 fi
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11229 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11230 if test $gdb_cv_func_sigsetjmp = yes; then
11231
11232 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11233
11234 fi
11235
11236 # Assume we'll default to using the included libiberty regex.
11237 gdb_use_included_regex=yes
11238
11239 # However, if the system regex is GNU regex, then default to *not*
11240 # using the included regex.
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11242 $as_echo_n "checking for GNU regex... " >&6; }
11243 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248 #include <gnu-versions.h>
11249 int
11250 main ()
11251 {
11252 #define REGEX_INTERFACE_VERSION 1
11253 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11254 # error "Version mismatch"
11255 #endif
11256 ;
11257 return 0;
11258 }
11259 _ACEOF
11260 if ac_fn_c_try_compile "$LINENO"; then :
11261 gdb_cv_have_gnu_regex=yes
11262 else
11263 gdb_cv_have_gnu_regex=no
11264 fi
11265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266 fi
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11268 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11269 if test $gdb_cv_have_gnu_regex = yes; then
11270 gdb_use_included_regex=no
11271 fi
11272
11273
11274 # Check whether --with-included-regex was given.
11275 if test "${with_included_regex+set}" = set; then :
11276 withval=$with_included_regex; gdb_with_regex=$withval
11277 else
11278 gdb_with_regex=$gdb_use_included_regex
11279 fi
11280
11281 if test "$gdb_with_regex" = yes; then
11282
11283 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11284
11285 fi
11286
11287 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11288 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11289 #include <sys/proc.h>
11290
11291 "
11292 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
11293
11294 cat >>confdefs.h <<_ACEOF
11295 #define HAVE_STRUCT_THREAD_TD_PCB 1
11296 _ACEOF
11297
11298
11299 fi
11300
11301
11302 # See if <sys/lwp.h> defines `struct lwp`.
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11304 $as_echo_n "checking for struct lwp... " >&6; }
11305 if test "${gdb_cv_struct_lwp+set}" = set; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11310 #include <sys/param.h>
11311 #include <sys/lwp.h>
11312 int
11313 main ()
11314 {
11315 struct lwp l;
11316 ;
11317 return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_compile "$LINENO"; then :
11321 gdb_cv_struct_lwp=yes
11322 else
11323 gdb_cv_struct_lwp=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326 fi
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11328 $as_echo "$gdb_cv_struct_lwp" >&6; }
11329 if test $gdb_cv_struct_lwp = yes; then
11330
11331 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11332
11333 fi
11334
11335 # See if <machine/reg.h> degines `struct reg'.
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11337 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11338 if test "${gdb_cv_struct_reg+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343 #include <sys/types.h>
11344 #include <machine/reg.h>
11345 int
11346 main ()
11347 {
11348 struct reg r;
11349 ;
11350 return 0;
11351 }
11352 _ACEOF
11353 if ac_fn_c_try_compile "$LINENO"; then :
11354 gdb_cv_struct_reg=yes
11355 else
11356 gdb_cv_struct_reg=no
11357 fi
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 fi
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11361 $as_echo "$gdb_cv_struct_reg" >&6; }
11362 if test $gdb_cv_struct_reg = yes; then
11363
11364 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11365
11366 fi
11367
11368 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11369 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11370 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11371 "
11372 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
11373
11374 cat >>confdefs.h <<_ACEOF
11375 #define HAVE_STRUCT_REG_R_FS 1
11376 _ACEOF
11377
11378
11379 fi
11380 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11381 "
11382 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
11383
11384 cat >>confdefs.h <<_ACEOF
11385 #define HAVE_STRUCT_REG_R_GS 1
11386 _ACEOF
11387
11388
11389 fi
11390
11391
11392 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11393 # Older amd64 Linux's don't have the fs_base and gs_base members of
11394 # `struct user_regs_struct'.
11395 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>
11396 "
11397 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
11398
11399 cat >>confdefs.h <<_ACEOF
11400 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11401 _ACEOF
11402
11403
11404 fi
11405 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>
11406 "
11407 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
11408
11409 cat >>confdefs.h <<_ACEOF
11410 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11411 _ACEOF
11412
11413
11414 fi
11415
11416
11417 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11419 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11420 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11425 #include <sys/ptrace.h>
11426 int
11427 main ()
11428 {
11429 PTRACE_GETREGS;
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_compile "$LINENO"; then :
11435 gdb_cv_have_ptrace_getregs=yes
11436 else
11437 gdb_cv_have_ptrace_getregs=no
11438 fi
11439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440 fi
11441
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11443 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11444 if test $gdb_cv_have_ptrace_getregs = yes; then
11445
11446 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11447
11448 fi
11449
11450 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11452 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11453 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11458 #include <sys/ptrace.h>
11459 int
11460 main ()
11461 {
11462 PTRACE_GETFPXREGS;
11463 ;
11464 return 0;
11465 }
11466 _ACEOF
11467 if ac_fn_c_try_compile "$LINENO"; then :
11468 gdb_cv_have_ptrace_getfpxregs=yes
11469 else
11470 gdb_cv_have_ptrace_getfpxregs=no
11471 fi
11472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11473 fi
11474
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11476 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11477 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11478
11479 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11480
11481 fi
11482
11483 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11485 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11486 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11491 #include <sys/types.h>
11492 #include <sys/ptrace.h>
11493 int
11494 main ()
11495 {
11496 PT_GETDBREGS;
11497 ;
11498 return 0;
11499 }
11500 _ACEOF
11501 if ac_fn_c_try_compile "$LINENO"; then :
11502 gdb_cv_have_pt_getdbregs=yes
11503 else
11504 gdb_cv_have_pt_getdbregs=no
11505 fi
11506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11507 fi
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11510 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11511 if test $gdb_cv_have_pt_getdbregs = yes; then
11512
11513 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11514
11515 fi
11516
11517 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11519 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11520 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525 #include <sys/types.h>
11526 #include <sys/ptrace.h>
11527 int
11528 main ()
11529 {
11530 PT_GETXMMREGS;
11531 ;
11532 return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_compile "$LINENO"; then :
11536 gdb_cv_have_pt_getxmmregs=yes
11537 else
11538 gdb_cv_have_pt_getxmmregs=no
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11541 fi
11542
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11544 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11545 if test $gdb_cv_have_pt_getxmmregs = yes; then
11546
11547 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11548
11549 fi
11550
11551 # Detect which type of /proc is in use, such as for Solaris.
11552
11553 if test "${target}" = "${host}"; then
11554 case "${host}" in
11555 *-*-sysv4.2* | *-*-sysv5* )
11556
11557 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11558
11559 ;;
11560 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
11561
11562 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11563
11564 ;;
11565 mips-sgi-irix5*)
11566 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11567
11568 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11569
11570 ;;
11571 esac
11572 fi
11573
11574 if test "$ac_cv_header_sys_procfs_h" = yes; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11576 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11577 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582
11583 #define _SYSCALL32
11584 /* Needed for new procfs interface on sparc-solaris. */
11585 #define _STRUCTURED_PROC 1
11586 #include <sys/procfs.h>
11587 int
11588 main ()
11589 {
11590 gregset_t avar
11591 ;
11592 return 0;
11593 }
11594 _ACEOF
11595 if ac_fn_c_try_compile "$LINENO"; then :
11596 bfd_cv_have_sys_procfs_type_gregset_t=yes
11597 else
11598 bfd_cv_have_sys_procfs_type_gregset_t=no
11599
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 fi
11603
11604 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11605
11606 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11607
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11610 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11611
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11613 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11614 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619
11620 #define _SYSCALL32
11621 /* Needed for new procfs interface on sparc-solaris. */
11622 #define _STRUCTURED_PROC 1
11623 #include <sys/procfs.h>
11624 int
11625 main ()
11626 {
11627 fpregset_t avar
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_compile "$LINENO"; then :
11633 bfd_cv_have_sys_procfs_type_fpregset_t=yes
11634 else
11635 bfd_cv_have_sys_procfs_type_fpregset_t=no
11636
11637 fi
11638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639 fi
11640
11641 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11642
11643 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11644
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11647 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11648
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11650 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11651 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656
11657 #define _SYSCALL32
11658 /* Needed for new procfs interface on sparc-solaris. */
11659 #define _STRUCTURED_PROC 1
11660 #include <sys/procfs.h>
11661 int
11662 main ()
11663 {
11664 prgregset_t avar
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_compile "$LINENO"; then :
11670 bfd_cv_have_sys_procfs_type_prgregset_t=yes
11671 else
11672 bfd_cv_have_sys_procfs_type_prgregset_t=no
11673
11674 fi
11675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11676 fi
11677
11678 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11679
11680 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11681
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11684 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11685
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11687 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11688 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11693
11694 #define _SYSCALL32
11695 /* Needed for new procfs interface on sparc-solaris. */
11696 #define _STRUCTURED_PROC 1
11697 #include <sys/procfs.h>
11698 int
11699 main ()
11700 {
11701 prfpregset_t avar
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 if ac_fn_c_try_compile "$LINENO"; then :
11707 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
11708 else
11709 bfd_cv_have_sys_procfs_type_prfpregset_t=no
11710
11711 fi
11712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11713 fi
11714
11715 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11716
11717 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11718
11719 fi
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11721 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11722
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11724 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11725 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730
11731 #define _SYSCALL32
11732 /* Needed for new procfs interface on sparc-solaris. */
11733 #define _STRUCTURED_PROC 1
11734 #include <sys/procfs.h>
11735 int
11736 main ()
11737 {
11738 prgregset32_t avar
11739 ;
11740 return 0;
11741 }
11742 _ACEOF
11743 if ac_fn_c_try_compile "$LINENO"; then :
11744 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11745 else
11746 bfd_cv_have_sys_procfs_type_prgregset32_t=no
11747
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750 fi
11751
11752 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11753
11754 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11755
11756 fi
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11758 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11761 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11762 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767
11768 #define _SYSCALL32
11769 /* Needed for new procfs interface on sparc-solaris. */
11770 #define _STRUCTURED_PROC 1
11771 #include <sys/procfs.h>
11772 int
11773 main ()
11774 {
11775 lwpid_t avar
11776 ;
11777 return 0;
11778 }
11779 _ACEOF
11780 if ac_fn_c_try_compile "$LINENO"; then :
11781 bfd_cv_have_sys_procfs_type_lwpid_t=yes
11782 else
11783 bfd_cv_have_sys_procfs_type_lwpid_t=no
11784
11785 fi
11786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11787 fi
11788
11789 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11790
11791 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11792
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11795 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11796
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11798 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11799 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11804
11805 #define _SYSCALL32
11806 /* Needed for new procfs interface on sparc-solaris. */
11807 #define _STRUCTURED_PROC 1
11808 #include <sys/procfs.h>
11809 int
11810 main ()
11811 {
11812 psaddr_t avar
11813 ;
11814 return 0;
11815 }
11816 _ACEOF
11817 if ac_fn_c_try_compile "$LINENO"; then :
11818 bfd_cv_have_sys_procfs_type_psaddr_t=yes
11819 else
11820 bfd_cv_have_sys_procfs_type_psaddr_t=no
11821
11822 fi
11823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11824 fi
11825
11826 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11827
11828 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11829
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11832 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11833
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11835 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11836 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11841
11842 #define _SYSCALL32
11843 /* Needed for new procfs interface on sparc-solaris. */
11844 #define _STRUCTURED_PROC 1
11845 #include <sys/procfs.h>
11846 int
11847 main ()
11848 {
11849 prsysent_t avar
11850 ;
11851 return 0;
11852 }
11853 _ACEOF
11854 if ac_fn_c_try_compile "$LINENO"; then :
11855 bfd_cv_have_sys_procfs_type_prsysent_t=yes
11856 else
11857 bfd_cv_have_sys_procfs_type_prsysent_t=no
11858
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 fi
11862
11863 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11864
11865 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11866
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11869 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11870
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11872 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11873 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878
11879 #define _SYSCALL32
11880 /* Needed for new procfs interface on sparc-solaris. */
11881 #define _STRUCTURED_PROC 1
11882 #include <sys/procfs.h>
11883 int
11884 main ()
11885 {
11886 pr_sigset_t avar
11887 ;
11888 return 0;
11889 }
11890 _ACEOF
11891 if ac_fn_c_try_compile "$LINENO"; then :
11892 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11893 else
11894 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11895
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 fi
11899
11900 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11901
11902 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11903
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11906 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11909 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11910 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915
11916 #define _SYSCALL32
11917 /* Needed for new procfs interface on sparc-solaris. */
11918 #define _STRUCTURED_PROC 1
11919 #include <sys/procfs.h>
11920 int
11921 main ()
11922 {
11923 pr_sigaction64_t avar
11924 ;
11925 return 0;
11926 }
11927 _ACEOF
11928 if ac_fn_c_try_compile "$LINENO"; then :
11929 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11930 else
11931 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11932
11933 fi
11934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 fi
11936
11937 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11938
11939 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11940
11941 fi
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11943 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11944
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11946 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11947 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11952
11953 #define _SYSCALL32
11954 /* Needed for new procfs interface on sparc-solaris. */
11955 #define _STRUCTURED_PROC 1
11956 #include <sys/procfs.h>
11957 int
11958 main ()
11959 {
11960 pr_siginfo64_t avar
11961 ;
11962 return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_compile "$LINENO"; then :
11966 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11967 else
11968 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11969
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 fi
11973
11974 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11975
11976 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11977
11978 fi
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11980 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11981
11982
11983
11984
11985
11986 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11988 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11989 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 if test "$cross_compiling" = yes; then :
11993 gdb_cv_prfpregset_t_broken=yes
11994 else
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11997 #include <sys/procfs.h>
11998 int main ()
11999 {
12000 if (sizeof (prfpregset_t) == sizeof (void *))
12001 return 1;
12002 return 0;
12003 }
12004 _ACEOF
12005 if ac_fn_c_try_run "$LINENO"; then :
12006 gdb_cv_prfpregset_t_broken=no
12007 else
12008 gdb_cv_prfpregset_t_broken=yes
12009 fi
12010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12011 conftest.$ac_objext conftest.beam conftest.$ac_ext
12012 fi
12013
12014 fi
12015
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12017 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12018 if test $gdb_cv_prfpregset_t_broken = yes; then
12019
12020 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12021
12022 fi
12023 fi
12024 fi
12025
12026 # Check if the compiler supports the `long long' type.
12027
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12029 $as_echo_n "checking for long long support in compiler... " >&6; }
12030 if test "${gdb_cv_c_long_long+set}" = set; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035 extern long long foo;
12036 int
12037 main ()
12038 {
12039 switch (foo & 2) { case 0: return 1; }
12040 ;
12041 return 0;
12042 }
12043 _ACEOF
12044 if ac_fn_c_try_compile "$LINENO"; then :
12045 gdb_cv_c_long_long=yes
12046 else
12047 gdb_cv_c_long_long=no
12048 fi
12049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12052 $as_echo "$gdb_cv_c_long_long" >&6; }
12053 if test $gdb_cv_c_long_long != yes; then
12054 # libdecnumber requires long long.
12055 as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
12056 fi
12057
12058 # Check if the compiler and runtime support printing long longs.
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12061 $as_echo_n "checking for long long support in printf... " >&6; }
12062 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 if test "$cross_compiling" = yes; then :
12066 gdb_cv_printf_has_long_long=no
12067 else
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070 $ac_includes_default
12071 int
12072 main ()
12073 {
12074 char buf[32];
12075 long long l = 0;
12076 l = (l << 16) + 0x0123;
12077 l = (l << 16) + 0x4567;
12078 l = (l << 16) + 0x89ab;
12079 l = (l << 16) + 0xcdef;
12080 sprintf (buf, "0x%016llx", l);
12081 return (strcmp ("0x0123456789abcdef", buf));
12082 ;
12083 return 0;
12084 }
12085 _ACEOF
12086 if ac_fn_c_try_run "$LINENO"; then :
12087 gdb_cv_printf_has_long_long=yes
12088 else
12089 gdb_cv_printf_has_long_long=no
12090 fi
12091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12092 conftest.$ac_objext conftest.beam conftest.$ac_ext
12093 fi
12094
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12097 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12098 if test $gdb_cv_printf_has_long_long = yes; then
12099
12100 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12101
12102 fi
12103
12104 # Check if the compiler and runtime support printing decfloats.
12105
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12107 $as_echo_n "checking for decfloat support in printf... " >&6; }
12108 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 if test "$cross_compiling" = yes; then :
12112 gdb_cv_printf_has_decfloat=no
12113 else
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12116 $ac_includes_default
12117 int
12118 main ()
12119 {
12120 char buf[64];
12121 _Decimal32 d32 = 1.2345df;
12122 _Decimal64 d64 = 1.2345dd;
12123 _Decimal128 d128 = 1.2345dl;
12124 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12125 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 if ac_fn_c_try_run "$LINENO"; then :
12131 gdb_cv_printf_has_decfloat=yes
12132 else
12133 gdb_cv_printf_has_decfloat=no
12134 fi
12135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12136 conftest.$ac_objext conftest.beam conftest.$ac_ext
12137 fi
12138
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12141 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12142 if test $gdb_cv_printf_has_decfloat = yes; then
12143
12144 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12145
12146 fi
12147
12148 # Check if the compiler supports the `long double' type. We can't use
12149 # AC_C_LONG_DOUBLE because that one does additional checks on the
12150 # constants defined in <float.h> that fail on some systems,
12151 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12152
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12154 $as_echo_n "checking for long double support in compiler... " >&6; }
12155 if test "${gdb_cv_c_long_double+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12160 long double foo;
12161 _ACEOF
12162 if ac_fn_c_try_compile "$LINENO"; then :
12163 gdb_cv_c_long_double=yes
12164 else
12165 gdb_cv_c_long_double=no
12166 fi
12167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12170 $as_echo "$gdb_cv_c_long_double" >&6; }
12171 if test $gdb_cv_c_long_double = yes; then
12172
12173 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12174
12175 fi
12176
12177 # Check if the compiler and runtime support printing long doubles.
12178
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12180 $as_echo_n "checking for long double support in printf... " >&6; }
12181 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 if test "$cross_compiling" = yes; then :
12185 gdb_cv_printf_has_long_double=no
12186 else
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 $ac_includes_default
12190 int
12191 main ()
12192 {
12193 char buf[16];
12194 long double f = 3.141592653;
12195 sprintf (buf, "%Lg", f);
12196 return (strncmp ("3.14159", buf, 7));
12197 ;
12198 return 0;
12199 }
12200 _ACEOF
12201 if ac_fn_c_try_run "$LINENO"; then :
12202 gdb_cv_printf_has_long_double=yes
12203 else
12204 gdb_cv_printf_has_long_double=no
12205 fi
12206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12207 conftest.$ac_objext conftest.beam conftest.$ac_ext
12208 fi
12209
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12212 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12213 if test $gdb_cv_printf_has_long_double = yes; then
12214
12215 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12216
12217 fi
12218
12219 # Check if the compiler and runtime support scanning long doubles.
12220
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12222 $as_echo_n "checking for long double support in scanf... " >&6; }
12223 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 if test "$cross_compiling" = yes; then :
12227 gdb_cv_scanf_has_long_double=no
12228 else
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231 #include <stdio.h>
12232 int
12233 main ()
12234 {
12235 char *buf = "3.141592653";
12236 long double f = 0;
12237 sscanf (buf, "%Lg", &f);
12238 return !(f > 3.14159 && f < 3.14160);
12239 ;
12240 return 0;
12241 }
12242 _ACEOF
12243 if ac_fn_c_try_run "$LINENO"; then :
12244 gdb_cv_scanf_has_long_double=yes
12245 else
12246 gdb_cv_scanf_has_long_double=no
12247 fi
12248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12249 conftest.$ac_objext conftest.beam conftest.$ac_ext
12250 fi
12251
12252 fi
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12254 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12255 if test $gdb_cv_scanf_has_long_double = yes; then
12256
12257 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12258
12259 fi
12260
12261 case ${host_os} in
12262 aix*)
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12264 $as_echo_n "checking for -bbigtoc option... " >&6; }
12265 if test "${gdb_cv_bigtoc+set}" = set; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268
12269 SAVE_LDFLAGS=$LDFLAGS
12270
12271 case $GCC in
12272 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12273 *) gdb_cv_bigtoc=-bbigtoc ;;
12274 esac
12275
12276 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279
12280 int
12281 main ()
12282 {
12283 int i;
12284 ;
12285 return 0;
12286 }
12287 _ACEOF
12288 if ac_fn_c_try_link "$LINENO"; then :
12289
12290 else
12291 gdb_cv_bigtoc=
12292 fi
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295 LDFLAGS="${SAVE_LDFLAGS}"
12296
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12299 $as_echo "$gdb_cv_bigtoc" >&6; }
12300 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12301 ;;
12302 esac
12303
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12305 $as_echo_n "checking for the dynamic export flag... " >&6; }
12306 dynamic_list=false
12307 if test "${gdb_native}" = yes; then
12308 # The dynamically loaded libthread_db needs access to symbols in the gdb
12309 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
12310 # may not be supported there.
12311 old_LDFLAGS="$LDFLAGS"
12312 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12313 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12314 LDFLAGS="$LDFLAGS $RDYNAMIC"
12315 if test "${have_libpython}" = no; then
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318
12319 int
12320 main ()
12321 {
12322
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 if ac_fn_c_try_link "$LINENO"; then :
12328 dynamic_list=true
12329 fi
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 else
12333 # Workaround http://bugs.python.org/issue4434 where static
12334 # libpythonX.Y.a would get its symbols required for
12335 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12336 # Problem does not happen for the recommended libpythonX.Y.so linkage.
12337 old_CFLAGS="$CFLAGS"
12338 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
12339 old_LIBS="$LIBS"
12340 LIBS="$LIBS $PYTHON_LIBS"
12341 if test "$cross_compiling" = yes; then :
12342 true
12343 else
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12346 #include "${have_libpython}/Python.h"
12347 int
12348 main ()
12349 {
12350 int err;
12351 Py_Initialize ();
12352 err = PyRun_SimpleString ("import itertools\n");
12353 Py_Finalize ();
12354 return err == 0 ? 0 : 1;
12355 ;
12356 return 0;
12357 }
12358 _ACEOF
12359 if ac_fn_c_try_run "$LINENO"; then :
12360 dynamic_list=true
12361 fi
12362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12363 conftest.$ac_objext conftest.beam conftest.$ac_ext
12364 fi
12365
12366 LIBS="$old_LIBS"
12367 CFLAGS="$old_CFLAGS"
12368 fi
12369 LDFLAGS="$old_LDFLAGS"
12370 fi
12371 if $dynamic_list; then
12372 found="-Wl,--dynamic-list"
12373 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12374 else
12375 found="-rdynamic"
12376 RDYNAMIC="-rdynamic"
12377 fi
12378
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12380 $as_echo "$found" >&6; }
12381
12382
12383 if test ${build} = ${host} -a ${host} = ${target} ; then
12384 case ${host_os} in
12385 solaris*)
12386 # See if thread_db library is around for Solaris thread debugging.
12387 # Note that we must explicitly test for version 1 of the library
12388 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12389 # the same API.
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12391 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12392 if test -f /usr/lib/libthread_db.so.1 ; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12394 $as_echo "yes" >&6; }
12395
12396 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12397
12398 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
12399 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12402 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-ldl $LIBS"
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 char dlopen ();
12417 int
12418 main ()
12419 {
12420 return dlopen ();
12421 ;
12422 return 0;
12423 }
12424 _ACEOF
12425 if ac_fn_c_try_link "$LINENO"; then :
12426 ac_cv_lib_dl_dlopen=yes
12427 else
12428 ac_cv_lib_dl_dlopen=no
12429 fi
12430 rm -f core conftest.err conftest.$ac_objext \
12431 conftest$ac_exeext conftest.$ac_ext
12432 LIBS=$ac_check_lib_save_LIBS
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12436 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_LIBDL 1
12439 _ACEOF
12440
12441 LIBS="-ldl $LIBS"
12442
12443 fi
12444
12445 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12446 # Sun randomly tweaked the prototypes in <proc_service.h>
12447 # at one point.
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12449 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12450 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456
12457 #include <proc_service.h>
12458 ps_err_e ps_pdwrite
12459 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12460
12461 int
12462 main ()
12463 {
12464
12465 ;
12466 return 0;
12467 }
12468 _ACEOF
12469 if ac_fn_c_try_compile "$LINENO"; then :
12470 gdb_cv_proc_service_is_old=no
12471 else
12472 gdb_cv_proc_service_is_old=yes
12473 fi
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475
12476 fi
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12479 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12480 if test $gdb_cv_proc_service_is_old = yes; then
12481
12482 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12483
12484 fi
12485 else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12488 fi
12489 ;;
12490 aix*)
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12492 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12493 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12498 #include <sys/pthdebug.h>
12499 int
12500 main ()
12501 {
12502 #ifndef PTHDB_VERSION_3
12503 #error
12504 #endif
12505 ;
12506 return 0;
12507 }
12508 _ACEOF
12509 if ac_fn_c_try_compile "$LINENO"; then :
12510 gdb_cv_have_aix_thread_debug=yes
12511 else
12512 gdb_cv_have_aix_thread_debug=no
12513 fi
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 fi
12516
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12518 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12519 if test $gdb_cv_have_aix_thread_debug = yes; then
12520 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12521 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12522 LIBS="$LIBS -lpthdebug"
12523
12524 # Older versions of AIX do not provide the declaration for
12525 # the getthrds function (it appears that it was introduced
12526 # with AIX 6.x).
12527 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12528 "
12529 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12530 ac_have_decl=1
12531 else
12532 ac_have_decl=0
12533 fi
12534
12535 cat >>confdefs.h <<_ACEOF
12536 #define HAVE_DECL_GETTHRDS $ac_have_decl
12537 _ACEOF
12538
12539 fi
12540 ;;
12541 esac
12542
12543 fi
12544
12545 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12547 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12548 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 #include <thread_db.h>
12554 int
12555 main ()
12556 {
12557 int i = TD_NOTALLOC;
12558 ;
12559 return 0;
12560 }
12561 _ACEOF
12562 if ac_fn_c_try_compile "$LINENO"; then :
12563 gdb_cv_thread_db_h_has_td_notalloc=yes
12564 else
12565 gdb_cv_thread_db_h_has_td_notalloc=no
12566
12567 fi
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569
12570 fi
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12572 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12574 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12575 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12580 #include <thread_db.h>
12581 int
12582 main ()
12583 {
12584 int i = TD_VERSION;
12585 ;
12586 return 0;
12587 }
12588 _ACEOF
12589 if ac_fn_c_try_compile "$LINENO"; then :
12590 gdb_cv_thread_db_h_has_td_version=yes
12591 else
12592 gdb_cv_thread_db_h_has_td_version=no
12593
12594 fi
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12599 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12601 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12602 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 #include <thread_db.h>
12608 int
12609 main ()
12610 {
12611 int i = TD_NOTLS;
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_c_try_compile "$LINENO"; then :
12617 gdb_cv_thread_db_h_has_td_notls=yes
12618 else
12619 gdb_cv_thread_db_h_has_td_notls=no
12620
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623
12624 fi
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12626 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12627 fi
12628 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12629
12630 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12631
12632 fi
12633 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12634
12635 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12636
12637 fi
12638 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12639
12640 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12641
12642 fi
12643
12644 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12646 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12647 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652 #include <sys/syscall.h>
12653 int
12654 main ()
12655 {
12656 int i = __NR_tkill;
12657 ;
12658 return 0;
12659 }
12660 _ACEOF
12661 if ac_fn_c_try_compile "$LINENO"; then :
12662 gdb_cv_sys_syscall_h_has_tkill=yes
12663 else
12664 gdb_cv_sys_syscall_h_has_tkill=no
12665
12666 fi
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668
12669 fi
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12671 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12672 fi
12673 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
12674 ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
12675 if test "x$ac_cv_func_syscall" = x""yes; then :
12676
12677 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12678
12679
12680 fi
12681
12682 fi
12683
12684 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12685 "
12686 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12687 ac_have_decl=1
12688 else
12689 ac_have_decl=0
12690 fi
12691
12692 cat >>confdefs.h <<_ACEOF
12693 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12694 _ACEOF
12695
12696
12697 if test "$cross_compiling" = yes; then :
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12700 #include <sys/personality.h>
12701 int
12702 main ()
12703 {
12704
12705 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12706 # define ADDR_NO_RANDOMIZE 0x0040000
12707 # endif
12708 /* Test the flag could be set and stays set. */
12709 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12710 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12711 return 1
12712 ;
12713 return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"; then :
12717 have_personality=true
12718 else
12719 have_personality=false
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723 else
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12726 #include <sys/personality.h>
12727 int
12728 main ()
12729 {
12730
12731 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12732 # define ADDR_NO_RANDOMIZE 0x0040000
12733 # endif
12734 /* Test the flag could be set and stays set. */
12735 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12736 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12737 return 1
12738 ;
12739 return 0;
12740 }
12741 _ACEOF
12742 if ac_fn_c_try_run "$LINENO"; then :
12743 have_personality=true
12744 else
12745 have_personality=false
12746 fi
12747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12748 conftest.$ac_objext conftest.beam conftest.$ac_ext
12749 fi
12750
12751 if $have_personality
12752 then
12753
12754 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12755
12756 fi
12757
12758 case $host_os in
12759 go32* | *djgpp*)
12760 gdbinit=gdb.ini
12761 ;;
12762 *)
12763 gdbinit=.gdbinit
12764 ;;
12765 esac
12766
12767 cat >>confdefs.h <<_ACEOF
12768 #define GDBINIT "$gdbinit"
12769 _ACEOF
12770
12771
12772
12773 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12774 # except that the argument to --with-sysroot is optional.
12775 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12776 if test "x$with_sysroot" = xyes; then
12777 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12778 fi
12779
12780 # Check whether --with-sysroot was given.
12781 if test "${with_sysroot+set}" = set; then :
12782 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12783 else
12784 TARGET_SYSTEM_ROOT=
12785 fi
12786
12787
12788 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12790 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12791 ac_define_dir=`eval echo $ac_define_dir`
12792
12793 cat >>confdefs.h <<_ACEOF
12794 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12795 _ACEOF
12796
12797
12798
12799
12800 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12801 if test "x$prefix" = xNONE; then
12802 test_prefix=/usr/local
12803 else
12804 test_prefix=$prefix
12805 fi
12806 else
12807 test_prefix=$exec_prefix
12808 fi
12809 value=0
12810 case ${ac_define_dir} in
12811 "${test_prefix}"|"${test_prefix}/"*|\
12812 '${exec_prefix}'|'${exec_prefix}/'*)
12813 value=1
12814 ;;
12815 esac
12816
12817 cat >>confdefs.h <<_ACEOF
12818 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12819 _ACEOF
12820
12821
12822
12823
12824
12825 # Check whether --with-system-gdbinit was given.
12826 if test "${with_system_gdbinit+set}" = set; then :
12827 withval=$with_system_gdbinit;
12828 SYSTEM_GDBINIT=$withval
12829 else
12830 SYSTEM_GDBINIT=
12831 fi
12832
12833
12834 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12835 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12836 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12837 ac_define_dir=`eval echo $ac_define_dir`
12838
12839 cat >>confdefs.h <<_ACEOF
12840 #define SYSTEM_GDBINIT "$ac_define_dir"
12841 _ACEOF
12842
12843
12844
12845
12846 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12847 if test "x$prefix" = xNONE; then
12848 test_prefix=/usr/local
12849 else
12850 test_prefix=$prefix
12851 fi
12852 else
12853 test_prefix=$exec_prefix
12854 fi
12855 value=0
12856 case ${ac_define_dir} in
12857 "${test_prefix}"|"${test_prefix}/"*|\
12858 '${exec_prefix}'|'${exec_prefix}/'*)
12859 value=1
12860 ;;
12861 esac
12862
12863 cat >>confdefs.h <<_ACEOF
12864 #define SYSTEM_GDBINIT_RELOCATABLE $value
12865 _ACEOF
12866
12867
12868
12869
12870 # Check whether --enable-werror was given.
12871 if test "${enable_werror+set}" = set; then :
12872 enableval=$enable_werror; case "${enableval}" in
12873 yes | y) ERROR_ON_WARNING="yes" ;;
12874 no | n) ERROR_ON_WARNING="no" ;;
12875 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12876 esac
12877 fi
12878
12879
12880 # Enable -Werror by default when using gcc. Turn it off for releases.
12881 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12882 ERROR_ON_WARNING=yes
12883 fi
12884
12885 WERROR_CFLAGS=""
12886 if test "${ERROR_ON_WARNING}" = yes ; then
12887 WERROR_CFLAGS="-Werror"
12888 fi
12889
12890 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12891 -Wpointer-sign \
12892 -Wno-unused -Wunused-value -Wunused-function \
12893 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12894 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
12895 -Wold-style-declaration -Wold-style-definition"
12896
12897 # Enable -Wno-format by default when using gcc on mingw since many
12898 # GCC versions complain about %I64.
12899 case "${host}" in
12900 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12901 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
12902 esac
12903
12904 # Check whether --enable-build-warnings was given.
12905 if test "${enable_build_warnings+set}" = set; then :
12906 enableval=$enable_build_warnings; case "${enableval}" in
12907 yes) ;;
12908 no) build_warnings="-w";;
12909 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12910 build_warnings="${build_warnings} ${t}";;
12911 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12912 build_warnings="${t} ${build_warnings}";;
12913 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12914 esac
12915 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12916 echo "Setting compiler warning flags = $build_warnings" 6>&1
12917 fi
12918 fi
12919 # Check whether --enable-gdb-build-warnings was given.
12920 if test "${enable_gdb_build_warnings+set}" = set; then :
12921 enableval=$enable_gdb_build_warnings; case "${enableval}" in
12922 yes) ;;
12923 no) build_warnings="-w";;
12924 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12925 build_warnings="${build_warnings} ${t}";;
12926 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12927 build_warnings="${t} ${build_warnings}";;
12928 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12929 esac
12930 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12931 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12932 fi
12933 fi
12934 WARN_CFLAGS=""
12935 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12936 then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12938 $as_echo_n "checking compiler warning flags... " >&6; }
12939 # Separate out the -Werror flag as some files just cannot be
12940 # compiled with it enabled.
12941 for w in ${build_warnings}; do
12942 case $w in
12943 -Werr*) WERROR_CFLAGS=-Werror ;;
12944 *) # Check that GCC accepts it
12945 saved_CFLAGS="$CFLAGS"
12946 CFLAGS="$CFLAGS $w"
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12949
12950 int
12951 main ()
12952 {
12953
12954 ;
12955 return 0;
12956 }
12957 _ACEOF
12958 if ac_fn_c_try_compile "$LINENO"; then :
12959 WARN_CFLAGS="${WARN_CFLAGS} $w"
12960 fi
12961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12962 CFLAGS="$saved_CFLAGS"
12963 esac
12964 done
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12966 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12967 fi
12968
12969
12970
12971 # In the Cygwin environment, we need some additional flags.
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12973 $as_echo_n "checking for cygwin... " >&6; }
12974 if test "${gdb_cv_os_cygwin+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979
12980 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12981 lose
12982 #endif
12983 _ACEOF
12984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12985 $EGREP "^lose$" >/dev/null 2>&1; then :
12986 gdb_cv_os_cygwin=yes
12987 else
12988 gdb_cv_os_cygwin=no
12989 fi
12990 rm -f conftest*
12991
12992 fi
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12994 $as_echo "$gdb_cv_os_cygwin" >&6; }
12995
12996
12997 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12998 case ${host} in
12999 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13000 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13001 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
13002 esac
13003
13004
13005 # libreadline needs libuser32.a in a cygwin environment
13006 WIN32LIBS=
13007 if test x$gdb_cv_os_cygwin = xyes; then
13008 WIN32LIBS="-luser32"
13009 case "${target}" in
13010 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13011 ;;
13012 esac
13013 fi
13014
13015 # The ser-tcp.c module requires sockets.
13016 case ${host} in
13017 *mingw32*)
13018
13019 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13020
13021 WIN32LIBS="$WIN32LIBS -lws2_32"
13022 ;;
13023 esac
13024
13025
13026 # Add ELF support to GDB, but only if BFD includes ELF support.
13027
13028 OLD_CFLAGS=$CFLAGS
13029 OLD_LDFLAGS=$LDFLAGS
13030 OLD_LIBS=$LIBS
13031 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13032 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13033 # always want our bfd.
13034 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13035 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13036 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13037 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13038 if test "$plugins" = "yes"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13040 $as_echo_n "checking for library containing dlopen... " >&6; }
13041 if test "${ac_cv_search_dlopen+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 ac_func_search_save_LIBS=$LIBS
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047
13048 /* Override any GCC internal prototype to avoid an error.
13049 Use char because int might match the return type of a GCC
13050 builtin and then its argument prototype would still apply. */
13051 #ifdef __cplusplus
13052 extern "C"
13053 #endif
13054 char dlopen ();
13055 int
13056 main ()
13057 {
13058 return dlopen ();
13059 ;
13060 return 0;
13061 }
13062 _ACEOF
13063 for ac_lib in '' dl; do
13064 if test -z "$ac_lib"; then
13065 ac_res="none required"
13066 else
13067 ac_res=-l$ac_lib
13068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13069 fi
13070 if ac_fn_c_try_link "$LINENO"; then :
13071 ac_cv_search_dlopen=$ac_res
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext \
13074 conftest$ac_exeext
13075 if test "${ac_cv_search_dlopen+set}" = set; then :
13076 break
13077 fi
13078 done
13079 if test "${ac_cv_search_dlopen+set}" = set; then :
13080
13081 else
13082 ac_cv_search_dlopen=no
13083 fi
13084 rm conftest.$ac_ext
13085 LIBS=$ac_func_search_save_LIBS
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13088 $as_echo "$ac_cv_search_dlopen" >&6; }
13089 ac_res=$ac_cv_search_dlopen
13090 if test "$ac_res" != no; then :
13091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13092
13093 fi
13094
13095 fi
13096 LIBS="-lbfd -liberty $intl $LIBS"
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13098 $as_echo_n "checking for ELF support in BFD... " >&6; }
13099 if test "${gdb_cv_var_elf+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 <stdlib.h>
13105 #include "bfd.h"
13106 #include "elf-bfd.h"
13107
13108 int
13109 main ()
13110 {
13111 return bfd_get_elf_phdr_upper_bound (NULL);
13112 ;
13113 return 0;
13114 }
13115 _ACEOF
13116 if ac_fn_c_try_link "$LINENO"; then :
13117 gdb_cv_var_elf=yes
13118 else
13119 gdb_cv_var_elf=no
13120 fi
13121 rm -f core conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13123 fi
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13125 $as_echo "$gdb_cv_var_elf" >&6; }
13126 CFLAGS=$OLD_CFLAGS
13127 LDFLAGS=$OLD_LDFLAGS
13128 LIBS=$OLD_LIBS
13129 if test $gdb_cv_var_elf = yes; then
13130 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
13131
13132 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13133
13134 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13135 if test "$plugins" = "yes"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13137 $as_echo_n "checking for library containing dlopen... " >&6; }
13138 if test "${ac_cv_search_dlopen+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 ac_func_search_save_LIBS=$LIBS
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13144
13145 /* Override any GCC internal prototype to avoid an error.
13146 Use char because int might match the return type of a GCC
13147 builtin and then its argument prototype would still apply. */
13148 #ifdef __cplusplus
13149 extern "C"
13150 #endif
13151 char dlopen ();
13152 int
13153 main ()
13154 {
13155 return dlopen ();
13156 ;
13157 return 0;
13158 }
13159 _ACEOF
13160 for ac_lib in '' dl; do
13161 if test -z "$ac_lib"; then
13162 ac_res="none required"
13163 else
13164 ac_res=-l$ac_lib
13165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13166 fi
13167 if ac_fn_c_try_link "$LINENO"; then :
13168 ac_cv_search_dlopen=$ac_res
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext
13172 if test "${ac_cv_search_dlopen+set}" = set; then :
13173 break
13174 fi
13175 done
13176 if test "${ac_cv_search_dlopen+set}" = set; then :
13177
13178 else
13179 ac_cv_search_dlopen=no
13180 fi
13181 rm conftest.$ac_ext
13182 LIBS=$ac_func_search_save_LIBS
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13185 $as_echo "$ac_cv_search_dlopen" >&6; }
13186 ac_res=$ac_cv_search_dlopen
13187 if test "$ac_res" != no; then :
13188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13189
13190 fi
13191
13192 fi
13193 fi
13194
13195 # Add macho support to GDB, but only if BFD includes it.
13196
13197 OLD_CFLAGS=$CFLAGS
13198 OLD_LDFLAGS=$LDFLAGS
13199 OLD_LIBS=$LIBS
13200 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13201 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13202 # always want our bfd.
13203 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13204 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13205 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13206 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13207 if test "$plugins" = "yes"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13209 $as_echo_n "checking for library containing dlopen... " >&6; }
13210 if test "${ac_cv_search_dlopen+set}" = set; then :
13211 $as_echo_n "(cached) " >&6
13212 else
13213 ac_func_search_save_LIBS=$LIBS
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13216
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 char dlopen ();
13224 int
13225 main ()
13226 {
13227 return dlopen ();
13228 ;
13229 return 0;
13230 }
13231 _ACEOF
13232 for ac_lib in '' dl; do
13233 if test -z "$ac_lib"; then
13234 ac_res="none required"
13235 else
13236 ac_res=-l$ac_lib
13237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13238 fi
13239 if ac_fn_c_try_link "$LINENO"; then :
13240 ac_cv_search_dlopen=$ac_res
13241 fi
13242 rm -f core conftest.err conftest.$ac_objext \
13243 conftest$ac_exeext
13244 if test "${ac_cv_search_dlopen+set}" = set; then :
13245 break
13246 fi
13247 done
13248 if test "${ac_cv_search_dlopen+set}" = set; then :
13249
13250 else
13251 ac_cv_search_dlopen=no
13252 fi
13253 rm conftest.$ac_ext
13254 LIBS=$ac_func_search_save_LIBS
13255 fi
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13257 $as_echo "$ac_cv_search_dlopen" >&6; }
13258 ac_res=$ac_cv_search_dlopen
13259 if test "$ac_res" != no; then :
13260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13261
13262 fi
13263
13264 fi
13265 LIBS="-lbfd -liberty $intl $LIBS"
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13267 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13268 if test "${gdb_cv_var_macho+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13273 #include <stdlib.h>
13274 #include "bfd.h"
13275 #include "mach-o.h"
13276
13277 int
13278 main ()
13279 {
13280 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_c_try_link "$LINENO"; then :
13286 gdb_cv_var_macho=yes
13287 else
13288 gdb_cv_var_macho=no
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext \
13291 conftest$ac_exeext conftest.$ac_ext
13292 fi
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13294 $as_echo "$gdb_cv_var_macho" >&6; }
13295 CFLAGS=$OLD_CFLAGS
13296 LDFLAGS=$OLD_LDFLAGS
13297 LIBS=$OLD_LIBS
13298 if test $gdb_cv_var_macho = yes; then
13299 CONFIG_OBS="$CONFIG_OBS machoread.o"
13300 fi
13301
13302 # Add SOM support to GDB, but only if BFD includes it.
13303
13304 OLD_CFLAGS=$CFLAGS
13305 OLD_LDFLAGS=$LDFLAGS
13306 OLD_LIBS=$LIBS
13307 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13308 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13309 # always want our bfd.
13310 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13311 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
13312 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13313 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13314 if test "$plugins" = "yes"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13316 $as_echo_n "checking for library containing dlopen... " >&6; }
13317 if test "${ac_cv_search_dlopen+set}" = set; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 ac_func_search_save_LIBS=$LIBS
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323
13324 /* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13327 #ifdef __cplusplus
13328 extern "C"
13329 #endif
13330 char dlopen ();
13331 int
13332 main ()
13333 {
13334 return dlopen ();
13335 ;
13336 return 0;
13337 }
13338 _ACEOF
13339 for ac_lib in '' dl; do
13340 if test -z "$ac_lib"; then
13341 ac_res="none required"
13342 else
13343 ac_res=-l$ac_lib
13344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13345 fi
13346 if ac_fn_c_try_link "$LINENO"; then :
13347 ac_cv_search_dlopen=$ac_res
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext \
13350 conftest$ac_exeext
13351 if test "${ac_cv_search_dlopen+set}" = set; then :
13352 break
13353 fi
13354 done
13355 if test "${ac_cv_search_dlopen+set}" = set; then :
13356
13357 else
13358 ac_cv_search_dlopen=no
13359 fi
13360 rm conftest.$ac_ext
13361 LIBS=$ac_func_search_save_LIBS
13362 fi
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13364 $as_echo "$ac_cv_search_dlopen" >&6; }
13365 ac_res=$ac_cv_search_dlopen
13366 if test "$ac_res" != no; then :
13367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13368
13369 fi
13370
13371 fi
13372 LIBS="-lbfd -liberty $intl $LIBS"
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
13374 $as_echo_n "checking for SOM support in BFD... " >&6; }
13375 if test "${gdb_cv_var_som+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13377 else
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 #include <stdlib.h>
13381 #include "bfd.h"
13382 #include "som.h"
13383
13384 int
13385 main ()
13386 {
13387 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
13388 ;
13389 return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_link "$LINENO"; then :
13393 gdb_cv_var_som=yes
13394 else
13395 gdb_cv_var_som=no
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 fi
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
13401 $as_echo "$gdb_cv_var_som" >&6; }
13402 CFLAGS=$OLD_CFLAGS
13403 LDFLAGS=$OLD_LDFLAGS
13404 LIBS=$OLD_LIBS
13405 if test $gdb_cv_var_som = yes; then
13406 CONFIG_OBS="$CONFIG_OBS somread.o"
13407 fi
13408
13409 # Add any host-specific objects to GDB.
13410 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
13411
13412 # If building on ELF, look for lzma support for embedded compressed debug info.
13413 if test $gdb_cv_var_elf = yes; then
13414
13415 # Check whether --with-lzma was given.
13416 if test "${with_lzma+set}" = set; then :
13417 withval=$with_lzma;
13418 else
13419 with_lzma=auto
13420 fi
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13423 $as_echo_n "checking whether to use lzma... " >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13425 $as_echo "$with_lzma" >&6; }
13426
13427 if test "${with_lzma}" != no; then
13428
13429
13430
13431
13432
13433
13434
13435
13436 use_additional=yes
13437
13438 acl_save_prefix="$prefix"
13439 prefix="$acl_final_prefix"
13440 acl_save_exec_prefix="$exec_prefix"
13441 exec_prefix="$acl_final_exec_prefix"
13442
13443 eval additional_includedir=\"$includedir\"
13444 eval additional_libdir=\"$libdir\"
13445
13446 exec_prefix="$acl_save_exec_prefix"
13447 prefix="$acl_save_prefix"
13448
13449
13450 # Check whether --with-liblzma-prefix was given.
13451 if test "${with_liblzma_prefix+set}" = set; then :
13452 withval=$with_liblzma_prefix;
13453 if test "X$withval" = "Xno"; then
13454 use_additional=no
13455 else
13456 if test "X$withval" = "X"; then
13457
13458 acl_save_prefix="$prefix"
13459 prefix="$acl_final_prefix"
13460 acl_save_exec_prefix="$exec_prefix"
13461 exec_prefix="$acl_final_exec_prefix"
13462
13463 eval additional_includedir=\"$includedir\"
13464 eval additional_libdir=\"$libdir\"
13465
13466 exec_prefix="$acl_save_exec_prefix"
13467 prefix="$acl_save_prefix"
13468
13469 else
13470 additional_includedir="$withval/include"
13471 additional_libdir="$withval/lib"
13472 fi
13473 fi
13474
13475 fi
13476
13477 LIBLZMA=
13478 LTLIBLZMA=
13479 INCLZMA=
13480 rpathdirs=
13481 ltrpathdirs=
13482 names_already_handled=
13483 names_next_round='lzma '
13484 while test -n "$names_next_round"; do
13485 names_this_round="$names_next_round"
13486 names_next_round=
13487 for name in $names_this_round; do
13488 already_handled=
13489 for n in $names_already_handled; do
13490 if test "$n" = "$name"; then
13491 already_handled=yes
13492 break
13493 fi
13494 done
13495 if test -z "$already_handled"; then
13496 names_already_handled="$names_already_handled $name"
13497 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13498 eval value=\"\$HAVE_LIB$uppername\"
13499 if test -n "$value"; then
13500 if test "$value" = yes; then
13501 eval value=\"\$LIB$uppername\"
13502 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
13503 eval value=\"\$LTLIB$uppername\"
13504 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13505 else
13506 :
13507 fi
13508 else
13509 found_dir=
13510 found_la=
13511 found_so=
13512 found_a=
13513 if test $use_additional = yes; then
13514 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13515 found_dir="$additional_libdir"
13516 found_so="$additional_libdir/lib$name.$shlibext"
13517 if test -f "$additional_libdir/lib$name.la"; then
13518 found_la="$additional_libdir/lib$name.la"
13519 fi
13520 else
13521 if test -f "$additional_libdir/lib$name.$libext"; then
13522 found_dir="$additional_libdir"
13523 found_a="$additional_libdir/lib$name.$libext"
13524 if test -f "$additional_libdir/lib$name.la"; then
13525 found_la="$additional_libdir/lib$name.la"
13526 fi
13527 fi
13528 fi
13529 fi
13530 if test "X$found_dir" = "X"; then
13531 for x in $LDFLAGS $LTLIBLZMA; do
13532
13533 acl_save_prefix="$prefix"
13534 prefix="$acl_final_prefix"
13535 acl_save_exec_prefix="$exec_prefix"
13536 exec_prefix="$acl_final_exec_prefix"
13537 eval x=\"$x\"
13538 exec_prefix="$acl_save_exec_prefix"
13539 prefix="$acl_save_prefix"
13540
13541 case "$x" in
13542 -L*)
13543 dir=`echo "X$x" | sed -e 's/^X-L//'`
13544 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13545 found_dir="$dir"
13546 found_so="$dir/lib$name.$shlibext"
13547 if test -f "$dir/lib$name.la"; then
13548 found_la="$dir/lib$name.la"
13549 fi
13550 else
13551 if test -f "$dir/lib$name.$libext"; then
13552 found_dir="$dir"
13553 found_a="$dir/lib$name.$libext"
13554 if test -f "$dir/lib$name.la"; then
13555 found_la="$dir/lib$name.la"
13556 fi
13557 fi
13558 fi
13559 ;;
13560 esac
13561 if test "X$found_dir" != "X"; then
13562 break
13563 fi
13564 done
13565 fi
13566 if test "X$found_dir" != "X"; then
13567 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13568 if test "X$found_so" != "X"; then
13569 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13570 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13571 else
13572 haveit=
13573 for x in $ltrpathdirs; do
13574 if test "X$x" = "X$found_dir"; then
13575 haveit=yes
13576 break
13577 fi
13578 done
13579 if test -z "$haveit"; then
13580 ltrpathdirs="$ltrpathdirs $found_dir"
13581 fi
13582 if test "$hardcode_direct" = yes; then
13583 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13584 else
13585 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13586 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13587 haveit=
13588 for x in $rpathdirs; do
13589 if test "X$x" = "X$found_dir"; then
13590 haveit=yes
13591 break
13592 fi
13593 done
13594 if test -z "$haveit"; then
13595 rpathdirs="$rpathdirs $found_dir"
13596 fi
13597 else
13598 haveit=
13599 for x in $LDFLAGS $LIBLZMA; do
13600
13601 acl_save_prefix="$prefix"
13602 prefix="$acl_final_prefix"
13603 acl_save_exec_prefix="$exec_prefix"
13604 exec_prefix="$acl_final_exec_prefix"
13605 eval x=\"$x\"
13606 exec_prefix="$acl_save_exec_prefix"
13607 prefix="$acl_save_prefix"
13608
13609 if test "X$x" = "X-L$found_dir"; then
13610 haveit=yes
13611 break
13612 fi
13613 done
13614 if test -z "$haveit"; then
13615 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13616 fi
13617 if test "$hardcode_minus_L" != no; then
13618 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13619 else
13620 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13621 fi
13622 fi
13623 fi
13624 fi
13625 else
13626 if test "X$found_a" != "X"; then
13627 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
13628 else
13629 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13630 fi
13631 fi
13632 additional_includedir=
13633 case "$found_dir" in
13634 */lib | */lib/)
13635 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13636 additional_includedir="$basedir/include"
13637 ;;
13638 esac
13639 if test "X$additional_includedir" != "X"; then
13640 if test "X$additional_includedir" != "X/usr/include"; then
13641 haveit=
13642 if test "X$additional_includedir" = "X/usr/local/include"; then
13643 if test -n "$GCC"; then
13644 case $host_os in
13645 linux*) haveit=yes;;
13646 esac
13647 fi
13648 fi
13649 if test -z "$haveit"; then
13650 for x in $CPPFLAGS $INCLZMA; do
13651
13652 acl_save_prefix="$prefix"
13653 prefix="$acl_final_prefix"
13654 acl_save_exec_prefix="$exec_prefix"
13655 exec_prefix="$acl_final_exec_prefix"
13656 eval x=\"$x\"
13657 exec_prefix="$acl_save_exec_prefix"
13658 prefix="$acl_save_prefix"
13659
13660 if test "X$x" = "X-I$additional_includedir"; then
13661 haveit=yes
13662 break
13663 fi
13664 done
13665 if test -z "$haveit"; then
13666 if test -d "$additional_includedir"; then
13667 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13668 fi
13669 fi
13670 fi
13671 fi
13672 fi
13673 if test -n "$found_la"; then
13674 save_libdir="$libdir"
13675 case "$found_la" in
13676 */* | *\\*) . "$found_la" ;;
13677 *) . "./$found_la" ;;
13678 esac
13679 libdir="$save_libdir"
13680 for dep in $dependency_libs; do
13681 case "$dep" in
13682 -L*)
13683 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13684 if test "X$additional_libdir" != "X/usr/lib"; then
13685 haveit=
13686 if test "X$additional_libdir" = "X/usr/local/lib"; then
13687 if test -n "$GCC"; then
13688 case $host_os in
13689 linux*) haveit=yes;;
13690 esac
13691 fi
13692 fi
13693 if test -z "$haveit"; then
13694 haveit=
13695 for x in $LDFLAGS $LIBLZMA; do
13696
13697 acl_save_prefix="$prefix"
13698 prefix="$acl_final_prefix"
13699 acl_save_exec_prefix="$exec_prefix"
13700 exec_prefix="$acl_final_exec_prefix"
13701 eval x=\"$x\"
13702 exec_prefix="$acl_save_exec_prefix"
13703 prefix="$acl_save_prefix"
13704
13705 if test "X$x" = "X-L$additional_libdir"; then
13706 haveit=yes
13707 break
13708 fi
13709 done
13710 if test -z "$haveit"; then
13711 if test -d "$additional_libdir"; then
13712 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13713 fi
13714 fi
13715 haveit=
13716 for x in $LDFLAGS $LTLIBLZMA; do
13717
13718 acl_save_prefix="$prefix"
13719 prefix="$acl_final_prefix"
13720 acl_save_exec_prefix="$exec_prefix"
13721 exec_prefix="$acl_final_exec_prefix"
13722 eval x=\"$x\"
13723 exec_prefix="$acl_save_exec_prefix"
13724 prefix="$acl_save_prefix"
13725
13726 if test "X$x" = "X-L$additional_libdir"; then
13727 haveit=yes
13728 break
13729 fi
13730 done
13731 if test -z "$haveit"; then
13732 if test -d "$additional_libdir"; then
13733 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13734 fi
13735 fi
13736 fi
13737 fi
13738 ;;
13739 -R*)
13740 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13741 if test "$enable_rpath" != no; then
13742 haveit=
13743 for x in $rpathdirs; do
13744 if test "X$x" = "X$dir"; then
13745 haveit=yes
13746 break
13747 fi
13748 done
13749 if test -z "$haveit"; then
13750 rpathdirs="$rpathdirs $dir"
13751 fi
13752 haveit=
13753 for x in $ltrpathdirs; do
13754 if test "X$x" = "X$dir"; then
13755 haveit=yes
13756 break
13757 fi
13758 done
13759 if test -z "$haveit"; then
13760 ltrpathdirs="$ltrpathdirs $dir"
13761 fi
13762 fi
13763 ;;
13764 -l*)
13765 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13766 ;;
13767 *.la)
13768 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13769 ;;
13770 *)
13771 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
13772 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13773 ;;
13774 esac
13775 done
13776 fi
13777 else
13778 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13779 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13780 fi
13781 fi
13782 fi
13783 done
13784 done
13785 if test "X$rpathdirs" != "X"; then
13786 if test -n "$hardcode_libdir_separator"; then
13787 alldirs=
13788 for found_dir in $rpathdirs; do
13789 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13790 done
13791 acl_save_libdir="$libdir"
13792 libdir="$alldirs"
13793 eval flag=\"$hardcode_libdir_flag_spec\"
13794 libdir="$acl_save_libdir"
13795 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13796 else
13797 for found_dir in $rpathdirs; do
13798 acl_save_libdir="$libdir"
13799 libdir="$found_dir"
13800 eval flag=\"$hardcode_libdir_flag_spec\"
13801 libdir="$acl_save_libdir"
13802 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13803 done
13804 fi
13805 fi
13806 if test "X$ltrpathdirs" != "X"; then
13807 for found_dir in $ltrpathdirs; do
13808 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13809 done
13810 fi
13811
13812
13813 ac_save_CPPFLAGS="$CPPFLAGS"
13814
13815 for element in $INCLZMA; do
13816 haveit=
13817 for x in $CPPFLAGS; do
13818
13819 acl_save_prefix="$prefix"
13820 prefix="$acl_final_prefix"
13821 acl_save_exec_prefix="$exec_prefix"
13822 exec_prefix="$acl_final_exec_prefix"
13823 eval x=\"$x\"
13824 exec_prefix="$acl_save_exec_prefix"
13825 prefix="$acl_save_prefix"
13826
13827 if test "X$x" = "X$element"; then
13828 haveit=yes
13829 break
13830 fi
13831 done
13832 if test -z "$haveit"; then
13833 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13834 fi
13835 done
13836
13837
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13839 $as_echo_n "checking for liblzma... " >&6; }
13840 if test "${ac_cv_liblzma+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843
13844 ac_save_LIBS="$LIBS"
13845 LIBS="$LIBS $LIBLZMA"
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848 #include "lzma.h"
13849 int
13850 main ()
13851 {
13852 lzma_index_iter iter;
13853 lzma_index_iter_init (&iter, 0);
13854 lzma_mf_is_supported (LZMA_MF_HC3);
13855 ;
13856 return 0;
13857 }
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"; then :
13860 ac_cv_liblzma=yes
13861 else
13862 ac_cv_liblzma=no
13863 fi
13864 rm -f core conftest.err conftest.$ac_objext \
13865 conftest$ac_exeext conftest.$ac_ext
13866 LIBS="$ac_save_LIBS"
13867
13868 fi
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13870 $as_echo "$ac_cv_liblzma" >&6; }
13871 if test "$ac_cv_liblzma" = yes; then
13872 HAVE_LIBLZMA=yes
13873
13874 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13875
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13877 $as_echo_n "checking how to link with liblzma... " >&6; }
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13879 $as_echo "$LIBLZMA" >&6; }
13880 else
13881 HAVE_LIBLZMA=no
13882 CPPFLAGS="$ac_save_CPPFLAGS"
13883 LIBLZMA=
13884 LTLIBLZMA=
13885 fi
13886
13887
13888
13889
13890
13891
13892 if test "$HAVE_LIBLZMA" != yes; then
13893 if test "$with_lzma" = yes; then
13894 as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
13895 fi
13896 fi
13897 fi
13898 fi
13899
13900 LIBGUI="../libgui/src/libgui.a"
13901 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13902
13903
13904
13905 WIN32LDAPP=
13906
13907
13908
13909 case "${host}" in
13910 *-*-cygwin* | *-*-mingw* )
13911 configdir="win"
13912 ;;
13913 *)
13914 configdir="unix"
13915 ;;
13916 esac
13917
13918 GDBTKLIBS=
13919 if test "${enable_gdbtk}" = "yes"; then
13920
13921 # Gdbtk must have an absolute path to srcdir in order to run
13922 # properly when not installed.
13923 here=`pwd`
13924 cd ${srcdir}
13925 GDBTK_SRC_DIR=`pwd`
13926 cd $here
13927
13928
13929 #
13930 # Ok, lets find the tcl configuration
13931 # First, look for one uninstalled.
13932 # the alternative search directory is invoked by --with-tcl
13933 #
13934
13935 if test x"${no_tcl}" = x ; then
13936 # we reset no_tcl in case something fails here
13937 no_tcl=true
13938
13939 # Check whether --with-tcl was given.
13940 if test "${with_tcl+set}" = set; then :
13941 withval=$with_tcl; with_tclconfig=${withval}
13942 fi
13943
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13945 $as_echo_n "checking for Tcl configuration... " >&6; }
13946 if test "${ac_cv_c_tclconfig+set}" = set; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949
13950
13951 # First check to see if --with-tcl was specified.
13952 case "${host}" in
13953 *-*-cygwin*) platDir="win" ;;
13954 *) platDir="unix" ;;
13955 esac
13956 if test x"${with_tclconfig}" != x ; then
13957 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13958 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13959 else
13960 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13961 fi
13962 fi
13963
13964 # then check for a private Tcl installation
13965 if test x"${ac_cv_c_tclconfig}" = x ; then
13966 for i in \
13967 ../tcl \
13968 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13969 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13970 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13971 ../../tcl \
13972 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13973 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13974 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13975 ../../../tcl \
13976 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13977 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13978 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13979 if test -f "$i/$platDir/tclConfig.sh" ; then
13980 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13981 break
13982 fi
13983 done
13984 fi
13985
13986 # on Darwin, check in Framework installation locations
13987 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13988 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13989 `ls -d /Library/Frameworks 2>/dev/null` \
13990 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13991 `ls -d /System/Library/Frameworks 2>/dev/null` \
13992 ; do
13993 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13994 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13995 break
13996 fi
13997 done
13998 fi
13999
14000 # check in a few common install locations
14001 if test x"${ac_cv_c_tclconfig}" = x ; then
14002 for i in `ls -d ${libdir} 2>/dev/null` \
14003 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14004 `ls -d ${prefix}/lib 2>/dev/null` \
14005 `ls -d /usr/local/lib 2>/dev/null` \
14006 `ls -d /usr/contrib/lib 2>/dev/null` \
14007 `ls -d /usr/lib 2>/dev/null` \
14008 ; do
14009 if test -f "$i/tclConfig.sh" ; then
14010 ac_cv_c_tclconfig=`(cd $i; pwd)`
14011 break
14012 fi
14013 done
14014 fi
14015
14016 # check in a few other private locations
14017 if test x"${ac_cv_c_tclconfig}" = x ; then
14018 for i in \
14019 ${srcdir}/../tcl \
14020 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14021 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14022 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14023 if test -f "$i/$platDir/tclConfig.sh" ; then
14024 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14025 break
14026 fi
14027 done
14028 fi
14029
14030 fi
14031
14032
14033 if test x"${ac_cv_c_tclconfig}" = x ; then
14034 TCL_BIN_DIR="# no Tcl configs found"
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14036 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14037 else
14038 no_tcl=
14039 TCL_BIN_DIR=${ac_cv_c_tclconfig}
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14041 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14042 fi
14043 fi
14044
14045
14046 # If $no_tk is nonempty, then we can't do Tk, and there is no
14047 # point to doing Tcl.
14048
14049 #
14050 # Ok, lets find the tk configuration
14051 # First, look for one uninstalled.
14052 # the alternative search directory is invoked by --with-tk
14053 #
14054
14055 if test x"${no_tk}" = x ; then
14056 # we reset no_tk in case something fails here
14057 no_tk=true
14058
14059 # Check whether --with-tk was given.
14060 if test "${with_tk+set}" = set; then :
14061 withval=$with_tk; with_tkconfig=${withval}
14062 fi
14063
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14065 $as_echo_n "checking for Tk configuration... " >&6; }
14066 if test "${ac_cv_c_tkconfig+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069
14070
14071 # First check to see if --with-tkconfig was specified.
14072 if test x"${with_tkconfig}" != x ; then
14073 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14074 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
14075 else
14076 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14077 fi
14078 fi
14079
14080 # then check for a private Tk library
14081 case "${host}" in
14082 *-*-cygwin*) platDir="win" ;;
14083 *) platDir="unix" ;;
14084 esac
14085 if test x"${ac_cv_c_tkconfig}" = x ; then
14086 for i in \
14087 ../tk \
14088 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14089 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14090 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14091 ../../tk \
14092 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14093 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14094 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14095 ../../../tk \
14096 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14097 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14098 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14099 if test -f "$i/$platDir/tkConfig.sh" ; then
14100 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14101 break
14102 fi
14103 done
14104 fi
14105
14106 # on Darwin, check in Framework installation locations
14107 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
14108 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14109 `ls -d /Library/Frameworks 2>/dev/null` \
14110 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14111 `ls -d /System/Library/Frameworks 2>/dev/null` \
14112 ; do
14113 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14114 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
14115 break
14116 fi
14117 done
14118 fi
14119
14120 # check in a few common install locations
14121 if test x"${ac_cv_c_tkconfig}" = x ; then
14122 for i in `ls -d ${libdir} 2>/dev/null` \
14123 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14124 `ls -d ${prefix}/lib 2>/dev/null` \
14125 `ls -d /usr/local/lib 2>/dev/null` \
14126 `ls -d /usr/contrib/lib 2>/dev/null` \
14127 `ls -d /usr/lib 2>/dev/null` \
14128 ; do
14129 if test -f "$i/tkConfig.sh" ; then
14130 ac_cv_c_tkconfig=`(cd $i; pwd)`
14131 break
14132 fi
14133 done
14134 fi
14135 # check in a few other private locations
14136 if test x"${ac_cv_c_tkconfig}" = x ; then
14137 for i in \
14138 ${srcdir}/../tk \
14139 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14140 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14141 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14142 if test -f "$i/$platDir/tkConfig.sh" ; then
14143 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14144 break
14145 fi
14146 done
14147 fi
14148
14149 fi
14150
14151
14152 if test x"${ac_cv_c_tkconfig}" = x ; then
14153 TK_BIN_DIR="# no Tk configs found"
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14155 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14156 else
14157 no_tk=
14158 TK_BIN_DIR=${ac_cv_c_tkconfig}
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14160 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14161 fi
14162 fi
14163
14164
14165 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14166
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14168 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14169
14170 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14172 $as_echo "loading" >&6; }
14173 . ${TCL_BIN_DIR}/tclConfig.sh
14174 else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14176 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14177 fi
14178
14179 # eval is required to do the TCL_DBGX substitution
14180 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14181 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14182
14183 # If the TCL_BIN_DIR is the build directory (not the install directory),
14184 # then set the common variable name to the value of the build variables.
14185 # For example, the variable TCL_LIB_SPEC will be set to the value
14186 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14187 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14188 # installed and uninstalled version of Tcl.
14189 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14190 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
14191 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
14192 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
14193 elif test "`uname -s`" = "Darwin"; then
14194 # If Tcl was built as a framework, attempt to use the libraries
14195 # from the framework at the given location so that linking works
14196 # against Tcl.framework installed in an arbitrary location.
14197 case ${TCL_DEFS} in
14198 *TCL_FRAMEWORK*)
14199 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14200 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
14201 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14202 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14203 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14204 break
14205 fi
14206 done
14207 fi
14208 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14209 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14210 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14211 fi
14212 ;;
14213 esac
14214 fi
14215
14216 # eval is required to do the TCL_DBGX substitution
14217 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14218 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14219 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14220 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236 # Check for in-tree tcl
14237 here=`pwd`
14238 cd ${srcdir}/..
14239 topdir=`pwd`
14240 cd ${here}
14241
14242 intree="no"
14243 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14244 intree="yes"
14245 fi
14246
14247 # Find Tcl private headers
14248 if test x"${intree}" = xno; then
14249
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14251 $as_echo_n "checking for Tcl private headers... " >&6; }
14252 private_dir=""
14253 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14254 if test -f ${dir}/tclInt.h ; then
14255 private_dir=${dir}
14256 fi
14257
14258 if test x"${private_dir}" = x; then
14259 as_fn_error "could not find private Tcl headers" "$LINENO" 5
14260 else
14261 TCL_PRIVATE_INCLUDE="-I${private_dir}"
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14263 $as_echo "${private_dir}" >&6; }
14264 fi
14265
14266 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14267 TCL_LIBRARY="${TCL_LIB_SPEC}"
14268 TCL_DEPS=""
14269 else
14270 # If building tcl in the same src tree, private headers
14271 # are not needed, but we need to be sure to use the right
14272 # headers library
14273 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
14274 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
14275 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
14276 fi
14277
14278
14279
14280
14281
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14283 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14284
14285 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14287 $as_echo "loading" >&6; }
14288 . ${TK_BIN_DIR}/tkConfig.sh
14289 else
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14291 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14292 fi
14293
14294 # eval is required to do the TK_DBGX substitution
14295 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14296 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14297
14298 # If the TK_BIN_DIR is the build directory (not the install directory),
14299 # then set the common variable name to the value of the build variables.
14300 # For example, the variable TK_LIB_SPEC will be set to the value
14301 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14302 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14303 # installed and uninstalled version of Tcl.
14304 if test -f "${TK_BIN_DIR}/Makefile" ; then
14305 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
14306 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
14307 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
14308 elif test "`uname -s`" = "Darwin"; then
14309 # If Tk was built as a framework, attempt to use the libraries
14310 # from the framework at the given location so that linking works
14311 # against Tk.framework installed in an arbitrary location.
14312 case ${TK_DEFS} in
14313 *TK_FRAMEWORK*)
14314 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14315 for i in "`cd ${TK_BIN_DIR}; pwd`" \
14316 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14317 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14318 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14319 break
14320 fi
14321 done
14322 fi
14323 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14324 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14325 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14326 fi
14327 ;;
14328 esac
14329 fi
14330
14331 # eval is required to do the TK_DBGX substitution
14332 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14333 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14334 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14335 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350 # Check for in-tree Tk
14351 intree="no"
14352 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14353 intree="yes"
14354 fi
14355
14356 # Find Tk private headers
14357 if test x"${intree}" = xno; then
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14360 $as_echo_n "checking for Tk private headers... " >&6; }
14361 private_dir=""
14362 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14363 if test -f ${dir}/tkInt.h; then
14364 private_dir=${dir}
14365 fi
14366
14367 if test x"${private_dir}" = x; then
14368 as_fn_error "could not find Tk private headers" "$LINENO" 5
14369 else
14370 TK_PRIVATE_INCLUDE="-I${private_dir}"
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14372 $as_echo "${private_dir}" >&6; }
14373 fi
14374
14375 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14376 TK_LIBRARY=${TK_LIB_SPEC}
14377 TK_DEPS=""
14378 else
14379 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
14380 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
14381 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
14382 fi
14383
14384
14385
14386
14387
14388 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14389
14390 # Include some libraries that Tcl and Tk want.
14391 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14392 # Yes, the ordering seems wrong here. But it isn't.
14393 # TK_LIBS is the list of libraries that need to be linked
14394 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14395 # were in LIBS then any link tests after this point would
14396 # try to include things like `$(LIBGUI)', which wouldn't work.
14397 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
14398
14399 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14400 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14401 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14402 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
14403 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
14404 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
14405 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
14406
14407 if test x$gdb_cv_os_cygwin = xyes; then
14408 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14409 WIN32LDAPP="-Wl,--subsystem,console"
14410 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
14411 fi
14412
14413 subdirs="$subdirs gdbtk"
14414
14415 fi
14416 fi
14417
14418
14419
14420
14421
14422
14423
14424
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14426 $as_echo_n "checking for X... " >&6; }
14427
14428
14429 # Check whether --with-x was given.
14430 if test "${with_x+set}" = set; then :
14431 withval=$with_x;
14432 fi
14433
14434 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14435 if test "x$with_x" = xno; then
14436 # The user explicitly disabled X.
14437 have_x=disabled
14438 else
14439 case $x_includes,$x_libraries in #(
14440 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14441 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 # One or both of the vars are not set, and there is no cached value.
14445 ac_x_includes=no ac_x_libraries=no
14446 rm -f -r conftest.dir
14447 if mkdir conftest.dir; then
14448 cd conftest.dir
14449 cat >Imakefile <<'_ACEOF'
14450 incroot:
14451 @echo incroot='${INCROOT}'
14452 usrlibdir:
14453 @echo usrlibdir='${USRLIBDIR}'
14454 libdir:
14455 @echo libdir='${LIBDIR}'
14456 _ACEOF
14457 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14458 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14459 for ac_var in incroot usrlibdir libdir; do
14460 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14461 done
14462 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14463 for ac_extension in a so sl dylib la dll; do
14464 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14465 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14466 ac_im_usrlibdir=$ac_im_libdir; break
14467 fi
14468 done
14469 # Screen out bogus values from the imake configuration. They are
14470 # bogus both because they are the default anyway, and because
14471 # using them would break gcc on systems where it needs fixed includes.
14472 case $ac_im_incroot in
14473 /usr/include) ac_x_includes= ;;
14474 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14475 esac
14476 case $ac_im_usrlibdir in
14477 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14478 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14479 esac
14480 fi
14481 cd ..
14482 rm -f -r conftest.dir
14483 fi
14484
14485 # Standard set of common directories for X headers.
14486 # Check X11 before X11Rn because it is often a symlink to the current release.
14487 ac_x_header_dirs='
14488 /usr/X11/include
14489 /usr/X11R7/include
14490 /usr/X11R6/include
14491 /usr/X11R5/include
14492 /usr/X11R4/include
14493
14494 /usr/include/X11
14495 /usr/include/X11R7
14496 /usr/include/X11R6
14497 /usr/include/X11R5
14498 /usr/include/X11R4
14499
14500 /usr/local/X11/include
14501 /usr/local/X11R7/include
14502 /usr/local/X11R6/include
14503 /usr/local/X11R5/include
14504 /usr/local/X11R4/include
14505
14506 /usr/local/include/X11
14507 /usr/local/include/X11R7
14508 /usr/local/include/X11R6
14509 /usr/local/include/X11R5
14510 /usr/local/include/X11R4
14511
14512 /usr/X386/include
14513 /usr/x386/include
14514 /usr/XFree86/include/X11
14515
14516 /usr/include
14517 /usr/local/include
14518 /usr/unsupported/include
14519 /usr/athena/include
14520 /usr/local/x11r5/include
14521 /usr/lpp/Xamples/include
14522
14523 /usr/openwin/include
14524 /usr/openwin/share/include'
14525
14526 if test "$ac_x_includes" = no; then
14527 # Guess where to find include files, by looking for Xlib.h.
14528 # First, try using that file with no special directory specified.
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 #include <X11/Xlib.h>
14532 _ACEOF
14533 if ac_fn_c_try_cpp "$LINENO"; then :
14534 # We can compile using X headers with no special include directory.
14535 ac_x_includes=
14536 else
14537 for ac_dir in $ac_x_header_dirs; do
14538 if test -r "$ac_dir/X11/Xlib.h"; then
14539 ac_x_includes=$ac_dir
14540 break
14541 fi
14542 done
14543 fi
14544 rm -f conftest.err conftest.$ac_ext
14545 fi # $ac_x_includes = no
14546
14547 if test "$ac_x_libraries" = no; then
14548 # Check for the libraries.
14549 # See if we find them without any special options.
14550 # Don't add to $LIBS permanently.
14551 ac_save_LIBS=$LIBS
14552 LIBS="-lX11 $LIBS"
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14555 #include <X11/Xlib.h>
14556 int
14557 main ()
14558 {
14559 XrmInitialize ()
14560 ;
14561 return 0;
14562 }
14563 _ACEOF
14564 if ac_fn_c_try_link "$LINENO"; then :
14565 LIBS=$ac_save_LIBS
14566 # We can link X programs with no special library path.
14567 ac_x_libraries=
14568 else
14569 LIBS=$ac_save_LIBS
14570 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14571 do
14572 # Don't even attempt the hair of trying to link an X program!
14573 for ac_extension in a so sl dylib la dll; do
14574 if test -r "$ac_dir/libX11.$ac_extension"; then
14575 ac_x_libraries=$ac_dir
14576 break 2
14577 fi
14578 done
14579 done
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 fi # $ac_x_libraries = no
14584
14585 case $ac_x_includes,$ac_x_libraries in #(
14586 no,* | *,no | *\'*)
14587 # Didn't find X, or a directory has "'" in its name.
14588 ac_cv_have_x="have_x=no";; #(
14589 *)
14590 # Record where we found X for the cache.
14591 ac_cv_have_x="have_x=yes\
14592 ac_x_includes='$ac_x_includes'\
14593 ac_x_libraries='$ac_x_libraries'"
14594 esac
14595 fi
14596 ;; #(
14597 *) have_x=yes;;
14598 esac
14599 eval "$ac_cv_have_x"
14600 fi # $with_x != no
14601
14602 if test "$have_x" != yes; then
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14604 $as_echo "$have_x" >&6; }
14605 no_x=yes
14606 else
14607 # If each of the values was on the command line, it overrides each guess.
14608 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14609 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14610 # Update the cache value to reflect the command line values.
14611 ac_cv_have_x="have_x=yes\
14612 ac_x_includes='$x_includes'\
14613 ac_x_libraries='$x_libraries'"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14615 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14616 fi
14617
14618
14619 # Unlike the sim directory, whether a simulator is linked is controlled by
14620 # presence of a gdb_sim definition in the target configure.tgt entry.
14621 # This code just checks for a few cases where we'd like to ignore those
14622 # definitions, even when they're present in the '.mt' file. These cases
14623 # are when --disable-sim is specified, or if the simulator directory is
14624 # not part of the source tree.
14625 #
14626 # Check whether --enable-sim was given.
14627 if test "${enable_sim+set}" = set; then :
14628 enableval=$enable_sim; echo "enable_sim = $enable_sim";
14629 echo "enableval = ${enableval}";
14630 case "${enableval}" in
14631 yes) ignore_sim=false ;;
14632 no) ignore_sim=true ;;
14633 *) ignore_sim=false ;;
14634 esac
14635 else
14636 ignore_sim=false
14637 fi
14638
14639
14640 if test ! -d "${srcdir}/../sim"; then
14641 ignore_sim=true
14642 fi
14643
14644 SIM=
14645 SIM_OBS=
14646 if test "${ignore_sim}" = "false"; then
14647 if test x"${gdb_sim}" != x ; then
14648 SIM="${gdb_sim}"
14649 SIM_OBS="remote-sim.o"
14650
14651 $as_echo "#define WITH_SIM 1" >>confdefs.h
14652
14653 fi
14654 fi
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669 # List of host floatformats.
14670
14671 cat >>confdefs.h <<_ACEOF
14672 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14673 _ACEOF
14674
14675
14676 cat >>confdefs.h <<_ACEOF
14677 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14678 _ACEOF
14679
14680
14681 cat >>confdefs.h <<_ACEOF
14682 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14683 _ACEOF
14684
14685
14686 # target_subdir is used by the testsuite to find the target libraries.
14687 target_subdir=
14688 if test "${host}" != "${target}"; then
14689 target_subdir="${target_alias}/"
14690 fi
14691
14692
14693 frags=
14694 if test "${gdb_native}" = "yes"; then
14695 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14696 if test ! -f ${host_makefile_frag}; then
14697 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14698 fi
14699 frags="$frags $host_makefile_frag"
14700 else
14701 host_makefile_frag=/dev/null
14702 fi
14703
14704
14705
14706
14707 if test "${gdb_native}" = "yes"; then
14708 # We pick this up from the host configuration file (.mh) because we
14709 # do not have a native configuration Makefile fragment.
14710 nativefile=`sed -n '
14711 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14712 ' ${host_makefile_frag}`
14713 fi
14714
14715
14716 if test x"${gdb_osabi}" != x ; then
14717
14718 cat >>confdefs.h <<_ACEOF
14719 #define GDB_OSABI_DEFAULT $gdb_osabi
14720 _ACEOF
14721
14722 fi
14723
14724 # Enable multi-ice-gdb-server.
14725 # Check whether --enable-multi-ice was given.
14726 if test "${enable_multi_ice+set}" = set; then :
14727 enableval=$enable_multi_ice; case $enableval in
14728 yes | no)
14729 ;;
14730 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14731 esac
14732 fi
14733
14734 if test "x$enable_multi_ice" = xyes; then
14735 subdirs="$subdirs multi-ice"
14736
14737 fi
14738
14739 # Check whether --enable-gdbserver was given.
14740 if test "${enable_gdbserver+set}" = set; then :
14741 enableval=$enable_gdbserver; case "${enableval}" in
14742 yes| no|auto) ;;
14743 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14744 esac
14745 else
14746 enable_gdbserver=auto
14747 fi
14748
14749
14750 # We only build gdbserver automatically in a native configuration, and
14751 # only if the user did not explicitly disable its build.
14752 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14754 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14755 if test "x$build_gdbserver" = xyes; then
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14757 $as_echo "yes" >&6; }
14758 subdirs="$subdirs gdbserver"
14759
14760 gdbserver_build_enabled=yes
14761 else
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763 $as_echo "no" >&6; }
14764 fi
14765 fi
14766
14767 # If the user explicitly request the gdbserver to be built, verify that
14768 # we were in fact able to enable it.
14769 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14770 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14771 fi
14772
14773 # Check for babeltrace and babeltrace-ctf
14774
14775 # Check whether --with-babeltrace was given.
14776 if test "${with_babeltrace+set}" = set; then :
14777 withval=$with_babeltrace;
14778 else
14779 with_babeltrace=auto
14780 fi
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
14783 $as_echo_n "checking whether to use babeltrace... " >&6; }
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
14785 $as_echo "$with_babeltrace" >&6; }
14786
14787 if test "x$with_babeltrace" = "xno"; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
14789 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
14790 else
14791 # Append -Werror to CFLAGS so that configure can catch the warning
14792 # "assignment from incompatible pointer type", which is related to
14793 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
14794 # in GDB, while babeltrace 1.0.3 is broken.
14795 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
14796 # safe to save and restore CFLAGS here.
14797 saved_CFLAGS=$CFLAGS
14798 CFLAGS="$CFLAGS -Werror"
14799
14800
14801
14802
14803
14804
14805
14806
14807 use_additional=yes
14808
14809 acl_save_prefix="$prefix"
14810 prefix="$acl_final_prefix"
14811 acl_save_exec_prefix="$exec_prefix"
14812 exec_prefix="$acl_final_exec_prefix"
14813
14814 eval additional_includedir=\"$includedir\"
14815 eval additional_libdir=\"$libdir\"
14816
14817 exec_prefix="$acl_save_exec_prefix"
14818 prefix="$acl_save_prefix"
14819
14820
14821 # Check whether --with-libbabeltrace-prefix was given.
14822 if test "${with_libbabeltrace_prefix+set}" = set; then :
14823 withval=$with_libbabeltrace_prefix;
14824 if test "X$withval" = "Xno"; then
14825 use_additional=no
14826 else
14827 if test "X$withval" = "X"; then
14828
14829 acl_save_prefix="$prefix"
14830 prefix="$acl_final_prefix"
14831 acl_save_exec_prefix="$exec_prefix"
14832 exec_prefix="$acl_final_exec_prefix"
14833
14834 eval additional_includedir=\"$includedir\"
14835 eval additional_libdir=\"$libdir\"
14836
14837 exec_prefix="$acl_save_exec_prefix"
14838 prefix="$acl_save_prefix"
14839
14840 else
14841 additional_includedir="$withval/include"
14842 additional_libdir="$withval/lib"
14843 fi
14844 fi
14845
14846 fi
14847
14848 LIBBABELTRACE=
14849 LTLIBBABELTRACE=
14850 INCBABELTRACE=
14851 rpathdirs=
14852 ltrpathdirs=
14853 names_already_handled=
14854 names_next_round='babeltrace babeltrace-ctf'
14855 while test -n "$names_next_round"; do
14856 names_this_round="$names_next_round"
14857 names_next_round=
14858 for name in $names_this_round; do
14859 already_handled=
14860 for n in $names_already_handled; do
14861 if test "$n" = "$name"; then
14862 already_handled=yes
14863 break
14864 fi
14865 done
14866 if test -z "$already_handled"; then
14867 names_already_handled="$names_already_handled $name"
14868 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14869 eval value=\"\$HAVE_LIB$uppername\"
14870 if test -n "$value"; then
14871 if test "$value" = yes; then
14872 eval value=\"\$LIB$uppername\"
14873 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
14874 eval value=\"\$LTLIB$uppername\"
14875 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
14876 else
14877 :
14878 fi
14879 else
14880 found_dir=
14881 found_la=
14882 found_so=
14883 found_a=
14884 if test $use_additional = yes; then
14885 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14886 found_dir="$additional_libdir"
14887 found_so="$additional_libdir/lib$name.$shlibext"
14888 if test -f "$additional_libdir/lib$name.la"; then
14889 found_la="$additional_libdir/lib$name.la"
14890 fi
14891 else
14892 if test -f "$additional_libdir/lib$name.$libext"; then
14893 found_dir="$additional_libdir"
14894 found_a="$additional_libdir/lib$name.$libext"
14895 if test -f "$additional_libdir/lib$name.la"; then
14896 found_la="$additional_libdir/lib$name.la"
14897 fi
14898 fi
14899 fi
14900 fi
14901 if test "X$found_dir" = "X"; then
14902 for x in $LDFLAGS $LTLIBBABELTRACE; do
14903
14904 acl_save_prefix="$prefix"
14905 prefix="$acl_final_prefix"
14906 acl_save_exec_prefix="$exec_prefix"
14907 exec_prefix="$acl_final_exec_prefix"
14908 eval x=\"$x\"
14909 exec_prefix="$acl_save_exec_prefix"
14910 prefix="$acl_save_prefix"
14911
14912 case "$x" in
14913 -L*)
14914 dir=`echo "X$x" | sed -e 's/^X-L//'`
14915 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14916 found_dir="$dir"
14917 found_so="$dir/lib$name.$shlibext"
14918 if test -f "$dir/lib$name.la"; then
14919 found_la="$dir/lib$name.la"
14920 fi
14921 else
14922 if test -f "$dir/lib$name.$libext"; then
14923 found_dir="$dir"
14924 found_a="$dir/lib$name.$libext"
14925 if test -f "$dir/lib$name.la"; then
14926 found_la="$dir/lib$name.la"
14927 fi
14928 fi
14929 fi
14930 ;;
14931 esac
14932 if test "X$found_dir" != "X"; then
14933 break
14934 fi
14935 done
14936 fi
14937 if test "X$found_dir" != "X"; then
14938 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
14939 if test "X$found_so" != "X"; then
14940 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14941 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14942 else
14943 haveit=
14944 for x in $ltrpathdirs; do
14945 if test "X$x" = "X$found_dir"; then
14946 haveit=yes
14947 break
14948 fi
14949 done
14950 if test -z "$haveit"; then
14951 ltrpathdirs="$ltrpathdirs $found_dir"
14952 fi
14953 if test "$hardcode_direct" = yes; then
14954 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14955 else
14956 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14957 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14958 haveit=
14959 for x in $rpathdirs; do
14960 if test "X$x" = "X$found_dir"; then
14961 haveit=yes
14962 break
14963 fi
14964 done
14965 if test -z "$haveit"; then
14966 rpathdirs="$rpathdirs $found_dir"
14967 fi
14968 else
14969 haveit=
14970 for x in $LDFLAGS $LIBBABELTRACE; do
14971
14972 acl_save_prefix="$prefix"
14973 prefix="$acl_final_prefix"
14974 acl_save_exec_prefix="$exec_prefix"
14975 exec_prefix="$acl_final_exec_prefix"
14976 eval x=\"$x\"
14977 exec_prefix="$acl_save_exec_prefix"
14978 prefix="$acl_save_prefix"
14979
14980 if test "X$x" = "X-L$found_dir"; then
14981 haveit=yes
14982 break
14983 fi
14984 done
14985 if test -z "$haveit"; then
14986 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
14987 fi
14988 if test "$hardcode_minus_L" != no; then
14989 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14990 else
14991 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
14992 fi
14993 fi
14994 fi
14995 fi
14996 else
14997 if test "X$found_a" != "X"; then
14998 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
14999 else
15000 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15001 fi
15002 fi
15003 additional_includedir=
15004 case "$found_dir" in
15005 */lib | */lib/)
15006 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15007 additional_includedir="$basedir/include"
15008 ;;
15009 esac
15010 if test "X$additional_includedir" != "X"; then
15011 if test "X$additional_includedir" != "X/usr/include"; then
15012 haveit=
15013 if test "X$additional_includedir" = "X/usr/local/include"; then
15014 if test -n "$GCC"; then
15015 case $host_os in
15016 linux*) haveit=yes;;
15017 esac
15018 fi
15019 fi
15020 if test -z "$haveit"; then
15021 for x in $CPPFLAGS $INCBABELTRACE; do
15022
15023 acl_save_prefix="$prefix"
15024 prefix="$acl_final_prefix"
15025 acl_save_exec_prefix="$exec_prefix"
15026 exec_prefix="$acl_final_exec_prefix"
15027 eval x=\"$x\"
15028 exec_prefix="$acl_save_exec_prefix"
15029 prefix="$acl_save_prefix"
15030
15031 if test "X$x" = "X-I$additional_includedir"; then
15032 haveit=yes
15033 break
15034 fi
15035 done
15036 if test -z "$haveit"; then
15037 if test -d "$additional_includedir"; then
15038 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15039 fi
15040 fi
15041 fi
15042 fi
15043 fi
15044 if test -n "$found_la"; then
15045 save_libdir="$libdir"
15046 case "$found_la" in
15047 */* | *\\*) . "$found_la" ;;
15048 *) . "./$found_la" ;;
15049 esac
15050 libdir="$save_libdir"
15051 for dep in $dependency_libs; do
15052 case "$dep" in
15053 -L*)
15054 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15055 if test "X$additional_libdir" != "X/usr/lib"; then
15056 haveit=
15057 if test "X$additional_libdir" = "X/usr/local/lib"; then
15058 if test -n "$GCC"; then
15059 case $host_os in
15060 linux*) haveit=yes;;
15061 esac
15062 fi
15063 fi
15064 if test -z "$haveit"; then
15065 haveit=
15066 for x in $LDFLAGS $LIBBABELTRACE; do
15067
15068 acl_save_prefix="$prefix"
15069 prefix="$acl_final_prefix"
15070 acl_save_exec_prefix="$exec_prefix"
15071 exec_prefix="$acl_final_exec_prefix"
15072 eval x=\"$x\"
15073 exec_prefix="$acl_save_exec_prefix"
15074 prefix="$acl_save_prefix"
15075
15076 if test "X$x" = "X-L$additional_libdir"; then
15077 haveit=yes
15078 break
15079 fi
15080 done
15081 if test -z "$haveit"; then
15082 if test -d "$additional_libdir"; then
15083 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15084 fi
15085 fi
15086 haveit=
15087 for x in $LDFLAGS $LTLIBBABELTRACE; do
15088
15089 acl_save_prefix="$prefix"
15090 prefix="$acl_final_prefix"
15091 acl_save_exec_prefix="$exec_prefix"
15092 exec_prefix="$acl_final_exec_prefix"
15093 eval x=\"$x\"
15094 exec_prefix="$acl_save_exec_prefix"
15095 prefix="$acl_save_prefix"
15096
15097 if test "X$x" = "X-L$additional_libdir"; then
15098 haveit=yes
15099 break
15100 fi
15101 done
15102 if test -z "$haveit"; then
15103 if test -d "$additional_libdir"; then
15104 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15105 fi
15106 fi
15107 fi
15108 fi
15109 ;;
15110 -R*)
15111 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15112 if test "$enable_rpath" != no; then
15113 haveit=
15114 for x in $rpathdirs; do
15115 if test "X$x" = "X$dir"; then
15116 haveit=yes
15117 break
15118 fi
15119 done
15120 if test -z "$haveit"; then
15121 rpathdirs="$rpathdirs $dir"
15122 fi
15123 haveit=
15124 for x in $ltrpathdirs; do
15125 if test "X$x" = "X$dir"; then
15126 haveit=yes
15127 break
15128 fi
15129 done
15130 if test -z "$haveit"; then
15131 ltrpathdirs="$ltrpathdirs $dir"
15132 fi
15133 fi
15134 ;;
15135 -l*)
15136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15137 ;;
15138 *.la)
15139 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15140 ;;
15141 *)
15142 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15143 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15144 ;;
15145 esac
15146 done
15147 fi
15148 else
15149 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15150 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15151 fi
15152 fi
15153 fi
15154 done
15155 done
15156 if test "X$rpathdirs" != "X"; then
15157 if test -n "$hardcode_libdir_separator"; then
15158 alldirs=
15159 for found_dir in $rpathdirs; do
15160 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15161 done
15162 acl_save_libdir="$libdir"
15163 libdir="$alldirs"
15164 eval flag=\"$hardcode_libdir_flag_spec\"
15165 libdir="$acl_save_libdir"
15166 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15167 else
15168 for found_dir in $rpathdirs; do
15169 acl_save_libdir="$libdir"
15170 libdir="$found_dir"
15171 eval flag=\"$hardcode_libdir_flag_spec\"
15172 libdir="$acl_save_libdir"
15173 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15174 done
15175 fi
15176 fi
15177 if test "X$ltrpathdirs" != "X"; then
15178 for found_dir in $ltrpathdirs; do
15179 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15180 done
15181 fi
15182
15183
15184 ac_save_CPPFLAGS="$CPPFLAGS"
15185
15186 for element in $INCBABELTRACE; do
15187 haveit=
15188 for x in $CPPFLAGS; do
15189
15190 acl_save_prefix="$prefix"
15191 prefix="$acl_final_prefix"
15192 acl_save_exec_prefix="$exec_prefix"
15193 exec_prefix="$acl_final_exec_prefix"
15194 eval x=\"$x\"
15195 exec_prefix="$acl_save_exec_prefix"
15196 prefix="$acl_save_prefix"
15197
15198 if test "X$x" = "X$element"; then
15199 haveit=yes
15200 break
15201 fi
15202 done
15203 if test -z "$haveit"; then
15204 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15205 fi
15206 done
15207
15208
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15210 $as_echo_n "checking for libbabeltrace... " >&6; }
15211 if test "${ac_cv_libbabeltrace+set}" = set; then :
15212 $as_echo_n "(cached) " >&6
15213 else
15214
15215 ac_save_LIBS="$LIBS"
15216 LIBS="$LIBS $LIBBABELTRACE"
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15219 #include <babeltrace/babeltrace.h>
15220 #include <babeltrace/ctf/events.h>
15221 #include <babeltrace/ctf/iterator.h>
15222 int
15223 main ()
15224 {
15225 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15226 struct bt_ctf_event *event = NULL;
15227 const struct bt_definition *scope;
15228
15229 scope = bt_ctf_get_top_level_scope (event,
15230 BT_STREAM_EVENT_HEADER);
15231 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15232
15233 ;
15234 return 0;
15235 }
15236 _ACEOF
15237 if ac_fn_c_try_link "$LINENO"; then :
15238 ac_cv_libbabeltrace=yes
15239 else
15240 ac_cv_libbabeltrace=no
15241 fi
15242 rm -f core conftest.err conftest.$ac_objext \
15243 conftest$ac_exeext conftest.$ac_ext
15244 LIBS="$ac_save_LIBS"
15245
15246 fi
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15248 $as_echo "$ac_cv_libbabeltrace" >&6; }
15249 if test "$ac_cv_libbabeltrace" = yes; then
15250 HAVE_LIBBABELTRACE=yes
15251
15252 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15253
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15255 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15257 $as_echo "$LIBBABELTRACE" >&6; }
15258 else
15259 HAVE_LIBBABELTRACE=no
15260 CPPFLAGS="$ac_save_CPPFLAGS"
15261 LIBBABELTRACE=
15262 LTLIBBABELTRACE=
15263 fi
15264
15265
15266
15267
15268
15269
15270 CFLAGS=$saved_CFLAGS
15271
15272 if test "$HAVE_LIBBABELTRACE" != yes; then
15273 if test "$with_babeltrace" = yes; then
15274 as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
15275 else
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15277 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15278 fi
15279 fi
15280 fi
15281
15282 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15283 # to an empty version.
15284
15285 files=
15286 links=
15287
15288 rm -f nm.h
15289 if test "${nativefile}" != ""; then
15290 case "${nativefile}" in
15291 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15292 * ) GDB_NM_FILE="${nativefile}"
15293 esac
15294 files="${files} ${GDB_NM_FILE}"
15295 links="${links} nm.h"
15296
15297 cat >>confdefs.h <<_ACEOF
15298 #define GDB_NM_FILE "${GDB_NM_FILE}"
15299 _ACEOF
15300
15301 fi
15302
15303
15304 ac_sources="$files"
15305 ac_dests="$links"
15306 while test -n "$ac_sources"; do
15307 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15308 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15309 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15310 done
15311 ac_config_links="$ac_config_links $ac_config_links_1"
15312
15313
15314
15315
15316
15317 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15318
15319
15320 # Undo the $ec_script escaping suitable for Makefile.
15321 transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15322 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$transform"`
15323 if test "x$GDB_TRANSFORM_NAME" = x; then
15324 GDB_TRANSFORM_NAME=gdb
15325 fi
15326
15327 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$transform"`
15328 if test "x$GCORE_TRANSFORM_NAME" = x; then
15329 GCORE_TRANSFORM_NAME=gcore
15330 fi
15331
15332 ac_config_files="$ac_config_files gcore"
15333
15334
15335 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15336
15337 ac_config_commands="$ac_config_commands default"
15338
15339 cat >confcache <<\_ACEOF
15340 # This file is a shell script that caches the results of configure
15341 # tests run on this system so they can be shared between configure
15342 # scripts and configure runs, see configure's option --config-cache.
15343 # It is not useful on other systems. If it contains results you don't
15344 # want to keep, you may remove or edit it.
15345 #
15346 # config.status only pays attention to the cache file if you give it
15347 # the --recheck option to rerun configure.
15348 #
15349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15351 # following values.
15352
15353 _ACEOF
15354
15355 # The following way of writing the cache mishandles newlines in values,
15356 # but we know of no workaround that is simple, portable, and efficient.
15357 # So, we kill variables containing newlines.
15358 # Ultrix sh set writes to stderr and can't be redirected directly,
15359 # and sets the high bit in the cache file unless we assign to the vars.
15360 (
15361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15362 eval ac_val=\$$ac_var
15363 case $ac_val in #(
15364 *${as_nl}*)
15365 case $ac_var in #(
15366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15368 esac
15369 case $ac_var in #(
15370 _ | IFS | as_nl) ;; #(
15371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15372 *) { eval $ac_var=; unset $ac_var;} ;;
15373 esac ;;
15374 esac
15375 done
15376
15377 (set) 2>&1 |
15378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15379 *${as_nl}ac_space=\ *)
15380 # `set' does not quote correctly, so add quotes: double-quote
15381 # substitution turns \\\\ into \\, and sed turns \\ into \.
15382 sed -n \
15383 "s/'/'\\\\''/g;
15384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15385 ;; #(
15386 *)
15387 # `set' quotes correctly as required by POSIX, so do not add quotes.
15388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15389 ;;
15390 esac |
15391 sort
15392 ) |
15393 sed '
15394 /^ac_cv_env_/b end
15395 t clear
15396 :clear
15397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15398 t end
15399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15400 :end' >>confcache
15401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15402 if test -w "$cache_file"; then
15403 test "x$cache_file" != "x/dev/null" &&
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15405 $as_echo "$as_me: updating cache $cache_file" >&6;}
15406 cat confcache >$cache_file
15407 else
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15409 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15410 fi
15411 fi
15412 rm -f confcache
15413
15414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15415 # Let make expand exec_prefix.
15416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15417
15418 DEFS=-DHAVE_CONFIG_H
15419
15420 ac_libobjs=
15421 ac_ltlibobjs=
15422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15423 # 1. Remove the extension, and $U if already installed.
15424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15425 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15427 # will be set to the directory where LIBOBJS objects are built.
15428 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15429 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15430 done
15431 LIBOBJS=$ac_libobjs
15432
15433 LTLIBOBJS=$ac_ltlibobjs
15434
15435
15436 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15437 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15439 fi
15440 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15441 as_fn_error "conditional \"GMAKE\" was never defined.
15442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15443 fi
15444
15445
15446 : ${CONFIG_STATUS=./config.status}
15447 ac_write_fail=0
15448 ac_clean_files_save=$ac_clean_files
15449 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15451 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15452 as_write_fail=0
15453 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15454 #! $SHELL
15455 # Generated by $as_me.
15456 # Run this file to recreate the current configuration.
15457 # Compiler output produced by configure, useful for debugging
15458 # configure, is in config.log if it exists.
15459
15460 debug=false
15461 ac_cs_recheck=false
15462 ac_cs_silent=false
15463
15464 SHELL=\${CONFIG_SHELL-$SHELL}
15465 export SHELL
15466 _ASEOF
15467 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15468 ## -------------------- ##
15469 ## M4sh Initialization. ##
15470 ## -------------------- ##
15471
15472 # Be more Bourne compatible
15473 DUALCASE=1; export DUALCASE # for MKS sh
15474 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15475 emulate sh
15476 NULLCMD=:
15477 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15478 # is contrary to our usage. Disable this feature.
15479 alias -g '${1+"$@"}'='"$@"'
15480 setopt NO_GLOB_SUBST
15481 else
15482 case `(set -o) 2>/dev/null` in #(
15483 *posix*) :
15484 set -o posix ;; #(
15485 *) :
15486 ;;
15487 esac
15488 fi
15489
15490
15491 as_nl='
15492 '
15493 export as_nl
15494 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15495 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15496 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15497 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15498 # Prefer a ksh shell builtin over an external printf program on Solaris,
15499 # but without wasting forks for bash or zsh.
15500 if test -z "$BASH_VERSION$ZSH_VERSION" \
15501 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15502 as_echo='print -r --'
15503 as_echo_n='print -rn --'
15504 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15505 as_echo='printf %s\n'
15506 as_echo_n='printf %s'
15507 else
15508 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15509 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15510 as_echo_n='/usr/ucb/echo -n'
15511 else
15512 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15513 as_echo_n_body='eval
15514 arg=$1;
15515 case $arg in #(
15516 *"$as_nl"*)
15517 expr "X$arg" : "X\\(.*\\)$as_nl";
15518 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15519 esac;
15520 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15521 '
15522 export as_echo_n_body
15523 as_echo_n='sh -c $as_echo_n_body as_echo'
15524 fi
15525 export as_echo_body
15526 as_echo='sh -c $as_echo_body as_echo'
15527 fi
15528
15529 # The user is always right.
15530 if test "${PATH_SEPARATOR+set}" != set; then
15531 PATH_SEPARATOR=:
15532 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15533 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15534 PATH_SEPARATOR=';'
15535 }
15536 fi
15537
15538
15539 # IFS
15540 # We need space, tab and new line, in precisely that order. Quoting is
15541 # there to prevent editors from complaining about space-tab.
15542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15543 # splitting by setting IFS to empty value.)
15544 IFS=" "" $as_nl"
15545
15546 # Find who we are. Look in the path if we contain no directory separator.
15547 case $0 in #((
15548 *[\\/]* ) as_myself=$0 ;;
15549 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15550 for as_dir in $PATH
15551 do
15552 IFS=$as_save_IFS
15553 test -z "$as_dir" && as_dir=.
15554 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15555 done
15556 IFS=$as_save_IFS
15557
15558 ;;
15559 esac
15560 # We did not find ourselves, most probably we were run as `sh COMMAND'
15561 # in which case we are not to be found in the path.
15562 if test "x$as_myself" = x; then
15563 as_myself=$0
15564 fi
15565 if test ! -f "$as_myself"; then
15566 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15567 exit 1
15568 fi
15569
15570 # Unset variables that we do not need and which cause bugs (e.g. in
15571 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15572 # suppresses any "Segmentation fault" message there. '((' could
15573 # trigger a bug in pdksh 5.2.14.
15574 for as_var in BASH_ENV ENV MAIL MAILPATH
15575 do eval test x\${$as_var+set} = xset \
15576 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15577 done
15578 PS1='$ '
15579 PS2='> '
15580 PS4='+ '
15581
15582 # NLS nuisances.
15583 LC_ALL=C
15584 export LC_ALL
15585 LANGUAGE=C
15586 export LANGUAGE
15587
15588 # CDPATH.
15589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15590
15591
15592 # as_fn_error ERROR [LINENO LOG_FD]
15593 # ---------------------------------
15594 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15595 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15596 # script with status $?, using 1 if that was 0.
15597 as_fn_error ()
15598 {
15599 as_status=$?; test $as_status -eq 0 && as_status=1
15600 if test "$3"; then
15601 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15602 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15603 fi
15604 $as_echo "$as_me: error: $1" >&2
15605 as_fn_exit $as_status
15606 } # as_fn_error
15607
15608
15609 # as_fn_set_status STATUS
15610 # -----------------------
15611 # Set $? to STATUS, without forking.
15612 as_fn_set_status ()
15613 {
15614 return $1
15615 } # as_fn_set_status
15616
15617 # as_fn_exit STATUS
15618 # -----------------
15619 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15620 as_fn_exit ()
15621 {
15622 set +e
15623 as_fn_set_status $1
15624 exit $1
15625 } # as_fn_exit
15626
15627 # as_fn_unset VAR
15628 # ---------------
15629 # Portably unset VAR.
15630 as_fn_unset ()
15631 {
15632 { eval $1=; unset $1;}
15633 }
15634 as_unset=as_fn_unset
15635 # as_fn_append VAR VALUE
15636 # ----------------------
15637 # Append the text in VALUE to the end of the definition contained in VAR. Take
15638 # advantage of any shell optimizations that allow amortized linear growth over
15639 # repeated appends, instead of the typical quadratic growth present in naive
15640 # implementations.
15641 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15642 eval 'as_fn_append ()
15643 {
15644 eval $1+=\$2
15645 }'
15646 else
15647 as_fn_append ()
15648 {
15649 eval $1=\$$1\$2
15650 }
15651 fi # as_fn_append
15652
15653 # as_fn_arith ARG...
15654 # ------------------
15655 # Perform arithmetic evaluation on the ARGs, and store the result in the
15656 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15657 # must be portable across $(()) and expr.
15658 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15659 eval 'as_fn_arith ()
15660 {
15661 as_val=$(( $* ))
15662 }'
15663 else
15664 as_fn_arith ()
15665 {
15666 as_val=`expr "$@" || test $? -eq 1`
15667 }
15668 fi # as_fn_arith
15669
15670
15671 if expr a : '\(a\)' >/dev/null 2>&1 &&
15672 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15673 as_expr=expr
15674 else
15675 as_expr=false
15676 fi
15677
15678 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15679 as_basename=basename
15680 else
15681 as_basename=false
15682 fi
15683
15684 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15685 as_dirname=dirname
15686 else
15687 as_dirname=false
15688 fi
15689
15690 as_me=`$as_basename -- "$0" ||
15691 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15692 X"$0" : 'X\(//\)$' \| \
15693 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15694 $as_echo X/"$0" |
15695 sed '/^.*\/\([^/][^/]*\)\/*$/{
15696 s//\1/
15697 q
15698 }
15699 /^X\/\(\/\/\)$/{
15700 s//\1/
15701 q
15702 }
15703 /^X\/\(\/\).*/{
15704 s//\1/
15705 q
15706 }
15707 s/.*/./; q'`
15708
15709 # Avoid depending upon Character Ranges.
15710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15713 as_cr_digits='0123456789'
15714 as_cr_alnum=$as_cr_Letters$as_cr_digits
15715
15716 ECHO_C= ECHO_N= ECHO_T=
15717 case `echo -n x` in #(((((
15718 -n*)
15719 case `echo 'xy\c'` in
15720 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15721 xy) ECHO_C='\c';;
15722 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15723 ECHO_T=' ';;
15724 esac;;
15725 *)
15726 ECHO_N='-n';;
15727 esac
15728
15729 rm -f conf$$ conf$$.exe conf$$.file
15730 if test -d conf$$.dir; then
15731 rm -f conf$$.dir/conf$$.file
15732 else
15733 rm -f conf$$.dir
15734 mkdir conf$$.dir 2>/dev/null
15735 fi
15736 if (echo >conf$$.file) 2>/dev/null; then
15737 if ln -s conf$$.file conf$$ 2>/dev/null; then
15738 as_ln_s='ln -s'
15739 # ... but there are two gotchas:
15740 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15741 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15742 # In both cases, we have to default to `cp -p'.
15743 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15744 as_ln_s='cp -p'
15745 elif ln conf$$.file conf$$ 2>/dev/null; then
15746 as_ln_s=ln
15747 else
15748 as_ln_s='cp -p'
15749 fi
15750 else
15751 as_ln_s='cp -p'
15752 fi
15753 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15754 rmdir conf$$.dir 2>/dev/null
15755
15756
15757 # as_fn_mkdir_p
15758 # -------------
15759 # Create "$as_dir" as a directory, including parents if necessary.
15760 as_fn_mkdir_p ()
15761 {
15762
15763 case $as_dir in #(
15764 -*) as_dir=./$as_dir;;
15765 esac
15766 test -d "$as_dir" || eval $as_mkdir_p || {
15767 as_dirs=
15768 while :; do
15769 case $as_dir in #(
15770 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15771 *) as_qdir=$as_dir;;
15772 esac
15773 as_dirs="'$as_qdir' $as_dirs"
15774 as_dir=`$as_dirname -- "$as_dir" ||
15775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15776 X"$as_dir" : 'X\(//\)[^/]' \| \
15777 X"$as_dir" : 'X\(//\)$' \| \
15778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15779 $as_echo X"$as_dir" |
15780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15781 s//\1/
15782 q
15783 }
15784 /^X\(\/\/\)[^/].*/{
15785 s//\1/
15786 q
15787 }
15788 /^X\(\/\/\)$/{
15789 s//\1/
15790 q
15791 }
15792 /^X\(\/\).*/{
15793 s//\1/
15794 q
15795 }
15796 s/.*/./; q'`
15797 test -d "$as_dir" && break
15798 done
15799 test -z "$as_dirs" || eval "mkdir $as_dirs"
15800 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15801
15802
15803 } # as_fn_mkdir_p
15804 if mkdir -p . 2>/dev/null; then
15805 as_mkdir_p='mkdir -p "$as_dir"'
15806 else
15807 test -d ./-p && rmdir ./-p
15808 as_mkdir_p=false
15809 fi
15810
15811 if test -x / >/dev/null 2>&1; then
15812 as_test_x='test -x'
15813 else
15814 if ls -dL / >/dev/null 2>&1; then
15815 as_ls_L_option=L
15816 else
15817 as_ls_L_option=
15818 fi
15819 as_test_x='
15820 eval sh -c '\''
15821 if test -d "$1"; then
15822 test -d "$1/.";
15823 else
15824 case $1 in #(
15825 -*)set "./$1";;
15826 esac;
15827 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15828 ???[sx]*):;;*)false;;esac;fi
15829 '\'' sh
15830 '
15831 fi
15832 as_executable_p=$as_test_x
15833
15834 # Sed expression to map a string onto a valid CPP name.
15835 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15836
15837 # Sed expression to map a string onto a valid variable name.
15838 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15839
15840
15841 exec 6>&1
15842 ## ----------------------------------- ##
15843 ## Main body of $CONFIG_STATUS script. ##
15844 ## ----------------------------------- ##
15845 _ASEOF
15846 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15847
15848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15849 # Save the log message, to keep $0 and so on meaningful, and to
15850 # report actual input values of CONFIG_FILES etc. instead of their
15851 # values after options handling.
15852 ac_log="
15853 This file was extended by $as_me, which was
15854 generated by GNU Autoconf 2.64. Invocation command line was
15855
15856 CONFIG_FILES = $CONFIG_FILES
15857 CONFIG_HEADERS = $CONFIG_HEADERS
15858 CONFIG_LINKS = $CONFIG_LINKS
15859 CONFIG_COMMANDS = $CONFIG_COMMANDS
15860 $ $0 $@
15861
15862 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15863 "
15864
15865 _ACEOF
15866
15867 case $ac_config_files in *"
15868 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15869 esac
15870
15871 case $ac_config_headers in *"
15872 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15873 esac
15874
15875
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 # Files that config.status was made for.
15878 config_files="$ac_config_files"
15879 config_headers="$ac_config_headers"
15880 config_links="$ac_config_links"
15881 config_commands="$ac_config_commands"
15882
15883 _ACEOF
15884
15885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15886 ac_cs_usage="\
15887 \`$as_me' instantiates files and other configuration actions
15888 from templates according to the current configuration. Unless the files
15889 and actions are specified as TAGs, all are instantiated by default.
15890
15891 Usage: $0 [OPTION]... [TAG]...
15892
15893 -h, --help print this help, then exit
15894 -V, --version print version number and configuration settings, then exit
15895 -q, --quiet, --silent
15896 do not print progress messages
15897 -d, --debug don't remove temporary files
15898 --recheck update $as_me by reconfiguring in the same conditions
15899 --file=FILE[:TEMPLATE]
15900 instantiate the configuration file FILE
15901 --header=FILE[:TEMPLATE]
15902 instantiate the configuration header FILE
15903
15904 Configuration files:
15905 $config_files
15906
15907 Configuration headers:
15908 $config_headers
15909
15910 Configuration links:
15911 $config_links
15912
15913 Configuration commands:
15914 $config_commands
15915
15916 Report bugs to the package provider."
15917
15918 _ACEOF
15919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15920 ac_cs_version="\\
15921 config.status
15922 configured by $0, generated by GNU Autoconf 2.64,
15923 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15924
15925 Copyright (C) 2009 Free Software Foundation, Inc.
15926 This config.status script is free software; the Free Software Foundation
15927 gives unlimited permission to copy, distribute and modify it."
15928
15929 ac_pwd='$ac_pwd'
15930 srcdir='$srcdir'
15931 INSTALL='$INSTALL'
15932 AWK='$AWK'
15933 test -n "\$AWK" || AWK=awk
15934 _ACEOF
15935
15936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937 # The default lists apply if the user does not specify any file.
15938 ac_need_defaults=:
15939 while test $# != 0
15940 do
15941 case $1 in
15942 --*=*)
15943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15945 ac_shift=:
15946 ;;
15947 *)
15948 ac_option=$1
15949 ac_optarg=$2
15950 ac_shift=shift
15951 ;;
15952 esac
15953
15954 case $ac_option in
15955 # Handling of the options.
15956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15957 ac_cs_recheck=: ;;
15958 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15959 $as_echo "$ac_cs_version"; exit ;;
15960 --debug | --debu | --deb | --de | --d | -d )
15961 debug=: ;;
15962 --file | --fil | --fi | --f )
15963 $ac_shift
15964 case $ac_optarg in
15965 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15966 esac
15967 as_fn_append CONFIG_FILES " '$ac_optarg'"
15968 ac_need_defaults=false;;
15969 --header | --heade | --head | --hea )
15970 $ac_shift
15971 case $ac_optarg in
15972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15973 esac
15974 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15975 ac_need_defaults=false;;
15976 --he | --h)
15977 # Conflict between --help and --header
15978 as_fn_error "ambiguous option: \`$1'
15979 Try \`$0 --help' for more information.";;
15980 --help | --hel | -h )
15981 $as_echo "$ac_cs_usage"; exit ;;
15982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15983 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15984 ac_cs_silent=: ;;
15985
15986 # This is an error.
15987 -*) as_fn_error "unrecognized option: \`$1'
15988 Try \`$0 --help' for more information." ;;
15989
15990 *) as_fn_append ac_config_targets " $1"
15991 ac_need_defaults=false ;;
15992
15993 esac
15994 shift
15995 done
15996
15997 ac_configure_extra_args=
15998
15999 if $ac_cs_silent; then
16000 exec 6>/dev/null
16001 ac_configure_extra_args="$ac_configure_extra_args --silent"
16002 fi
16003
16004 _ACEOF
16005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16006 if \$ac_cs_recheck; then
16007 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16008 shift
16009 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16010 CONFIG_SHELL='$SHELL'
16011 export CONFIG_SHELL
16012 exec "\$@"
16013 fi
16014
16015 _ACEOF
16016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16017 exec 5>>config.log
16018 {
16019 echo
16020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16021 ## Running $as_me. ##
16022 _ASBOX
16023 $as_echo "$ac_log"
16024 } >&5
16025
16026 _ACEOF
16027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16028 #
16029 # INIT-COMMANDS
16030 #
16031 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16032
16033 _ACEOF
16034
16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16036
16037 # Handling of arguments.
16038 for ac_config_target in $ac_config_targets
16039 do
16040 case $ac_config_target in
16041 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16042 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16043 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16044 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16045 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
16046 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16047 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
16048 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16049 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16050 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16051
16052 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16053 esac
16054 done
16055
16056
16057 # If the user did not use the arguments to specify the items to instantiate,
16058 # then the envvar interface is used. Set only those that are not.
16059 # We use the long form for the default assignment because of an extremely
16060 # bizarre bug on SunOS 4.1.3.
16061 if $ac_need_defaults; then
16062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16064 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16066 fi
16067
16068 # Have a temporary directory for convenience. Make it in the build tree
16069 # simply because there is no reason against having it here, and in addition,
16070 # creating and moving files from /tmp can sometimes cause problems.
16071 # Hook for its removal unless debugging.
16072 # Note that there is a small window in which the directory will not be cleaned:
16073 # after its creation but before its name has been assigned to `$tmp'.
16074 $debug ||
16075 {
16076 tmp=
16077 trap 'exit_status=$?
16078 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16079 ' 0
16080 trap 'as_fn_exit 1' 1 2 13 15
16081 }
16082 # Create a (secure) tmp directory for tmp files.
16083
16084 {
16085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16086 test -n "$tmp" && test -d "$tmp"
16087 } ||
16088 {
16089 tmp=./conf$$-$RANDOM
16090 (umask 077 && mkdir "$tmp")
16091 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16092
16093 # Set up the scripts for CONFIG_FILES section.
16094 # No need to generate them if there are no CONFIG_FILES.
16095 # This happens for instance with `./config.status config.h'.
16096 if test -n "$CONFIG_FILES"; then
16097
16098 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16099 ac_cs_awk_getline=:
16100 ac_cs_awk_pipe_init=
16101 ac_cs_awk_read_file='
16102 while ((getline aline < (F[key])) > 0)
16103 print(aline)
16104 close(F[key])'
16105 ac_cs_awk_pipe_fini=
16106 else
16107 ac_cs_awk_getline=false
16108 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16109 ac_cs_awk_read_file='
16110 print "|#_!!_#|"
16111 print "cat " F[key] " &&"
16112 '$ac_cs_awk_pipe_init
16113 # The final `:' finishes the AND list.
16114 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16115 fi
16116 ac_cr=`echo X | tr X '\015'`
16117 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16118 # But we know of no other shell where ac_cr would be empty at this
16119 # point, so we can use a bashism as a fallback.
16120 if test "x$ac_cr" = x; then
16121 eval ac_cr=\$\'\\r\'
16122 fi
16123 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16124 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16125 ac_cs_awk_cr='\r'
16126 else
16127 ac_cs_awk_cr=$ac_cr
16128 fi
16129
16130 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16131 _ACEOF
16132
16133 # Create commands to substitute file output variables.
16134 {
16135 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16136 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16137 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16138 echo "_ACAWK" &&
16139 echo "_ACEOF"
16140 } >conf$$files.sh &&
16141 . ./conf$$files.sh ||
16142 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16143 rm -f conf$$files.sh
16144
16145 {
16146 echo "cat >conf$$subs.awk <<_ACEOF" &&
16147 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16148 echo "_ACEOF"
16149 } >conf$$subs.sh ||
16150 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16151 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16152 ac_delim='%!_!# '
16153 for ac_last_try in false false false false false :; do
16154 . ./conf$$subs.sh ||
16155 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16156
16157 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16158 if test $ac_delim_n = $ac_delim_num; then
16159 break
16160 elif $ac_last_try; then
16161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16162 else
16163 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16164 fi
16165 done
16166 rm -f conf$$subs.sh
16167
16168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16169 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16170 _ACEOF
16171 sed -n '
16172 h
16173 s/^/S["/; s/!.*/"]=/
16174 p
16175 g
16176 s/^[^!]*!//
16177 :repl
16178 t repl
16179 s/'"$ac_delim"'$//
16180 t delim
16181 :nl
16182 h
16183 s/\(.\{148\}\).*/\1/
16184 t more1
16185 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16186 p
16187 n
16188 b repl
16189 :more1
16190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16191 p
16192 g
16193 s/.\{148\}//
16194 t nl
16195 :delim
16196 h
16197 s/\(.\{148\}\).*/\1/
16198 t more2
16199 s/["\\]/\\&/g; s/^/"/; s/$/"/
16200 p
16201 b
16202 :more2
16203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16204 p
16205 g
16206 s/.\{148\}//
16207 t delim
16208 ' <conf$$subs.awk | sed '
16209 /^[^""]/{
16210 N
16211 s/\n//
16212 }
16213 ' >>$CONFIG_STATUS || ac_write_fail=1
16214 rm -f conf$$subs.awk
16215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16216 _ACAWK
16217 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16218 for (key in S) S_is_set[key] = 1
16219 FS = "\a"
16220 \$ac_cs_awk_pipe_init
16221 }
16222 {
16223 line = $ 0
16224 nfields = split(line, field, "@")
16225 substed = 0
16226 len = length(field[1])
16227 for (i = 2; i < nfields; i++) {
16228 key = field[i]
16229 keylen = length(key)
16230 if (S_is_set[key]) {
16231 value = S[key]
16232 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16233 len += length(value) + length(field[++i])
16234 substed = 1
16235 } else
16236 len += 1 + keylen
16237 }
16238 if (nfields == 3 && !substed) {
16239 key = field[2]
16240 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16241 \$ac_cs_awk_read_file
16242 next
16243 }
16244 }
16245 print line
16246 }
16247 \$ac_cs_awk_pipe_fini
16248 _ACAWK
16249 _ACEOF
16250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16251 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16252 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16253 else
16254 cat
16255 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16256 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16257 _ACEOF
16258
16259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16261 # trailing colons and then remove the whole line if VPATH becomes empty
16262 # (actually we leave an empty line to preserve line numbers).
16263 if test "x$srcdir" = x.; then
16264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16265 s/:*\$(srcdir):*/:/
16266 s/:*\${srcdir}:*/:/
16267 s/:*@srcdir@:*/:/
16268 s/^\([^=]*=[ ]*\):*/\1/
16269 s/:*$//
16270 s/^[^=]*=[ ]*$//
16271 }'
16272 fi
16273
16274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16275 fi # test -n "$CONFIG_FILES"
16276
16277 # Set up the scripts for CONFIG_HEADERS section.
16278 # No need to generate them if there are no CONFIG_HEADERS.
16279 # This happens for instance with `./config.status Makefile'.
16280 if test -n "$CONFIG_HEADERS"; then
16281 cat >"$tmp/defines.awk" <<\_ACAWK ||
16282 BEGIN {
16283 _ACEOF
16284
16285 # Transform confdefs.h into an awk script `defines.awk', embedded as
16286 # here-document in config.status, that substitutes the proper values into
16287 # config.h.in to produce config.h.
16288
16289 # Create a delimiter string that does not exist in confdefs.h, to ease
16290 # handling of long lines.
16291 ac_delim='%!_!# '
16292 for ac_last_try in false false :; do
16293 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16294 if test -z "$ac_t"; then
16295 break
16296 elif $ac_last_try; then
16297 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16298 else
16299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16300 fi
16301 done
16302
16303 # For the awk script, D is an array of macro values keyed by name,
16304 # likewise P contains macro parameters if any. Preserve backslash
16305 # newline sequences.
16306
16307 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16308 sed -n '
16309 s/.\{148\}/&'"$ac_delim"'/g
16310 t rset
16311 :rset
16312 s/^[ ]*#[ ]*define[ ][ ]*/ /
16313 t def
16314 d
16315 :def
16316 s/\\$//
16317 t bsnl
16318 s/["\\]/\\&/g
16319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16320 D["\1"]=" \3"/p
16321 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16322 d
16323 :bsnl
16324 s/["\\]/\\&/g
16325 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16326 D["\1"]=" \3\\\\\\n"\\/p
16327 t cont
16328 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16329 t cont
16330 d
16331 :cont
16332 n
16333 s/.\{148\}/&'"$ac_delim"'/g
16334 t clear
16335 :clear
16336 s/\\$//
16337 t bsnlc
16338 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16339 d
16340 :bsnlc
16341 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16342 b cont
16343 ' <confdefs.h | sed '
16344 s/'"$ac_delim"'/"\\\
16345 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16346
16347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16348 for (key in D) D_is_set[key] = 1
16349 FS = "\a"
16350 }
16351 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16352 line = \$ 0
16353 split(line, arg, " ")
16354 if (arg[1] == "#") {
16355 defundef = arg[2]
16356 mac1 = arg[3]
16357 } else {
16358 defundef = substr(arg[1], 2)
16359 mac1 = arg[2]
16360 }
16361 split(mac1, mac2, "(") #)
16362 macro = mac2[1]
16363 prefix = substr(line, 1, index(line, defundef) - 1)
16364 if (D_is_set[macro]) {
16365 # Preserve the white space surrounding the "#".
16366 print prefix "define", macro P[macro] D[macro]
16367 next
16368 } else {
16369 # Replace #undef with comments. This is necessary, for example,
16370 # in the case of _POSIX_SOURCE, which is predefined and required
16371 # on some systems where configure will not decide to define it.
16372 if (defundef == "undef") {
16373 print "/*", prefix defundef, macro, "*/"
16374 next
16375 }
16376 }
16377 }
16378 { print }
16379 _ACAWK
16380 _ACEOF
16381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16382 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16383 fi # test -n "$CONFIG_HEADERS"
16384
16385
16386 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16387 shift
16388 for ac_tag
16389 do
16390 case $ac_tag in
16391 :[FHLC]) ac_mode=$ac_tag; continue;;
16392 esac
16393 case $ac_mode$ac_tag in
16394 :[FHL]*:*);;
16395 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16396 :[FH]-) ac_tag=-:-;;
16397 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16398 esac
16399 ac_save_IFS=$IFS
16400 IFS=:
16401 set x $ac_tag
16402 IFS=$ac_save_IFS
16403 shift
16404 ac_file=$1
16405 shift
16406
16407 case $ac_mode in
16408 :L) ac_source=$1;;
16409 :[FH])
16410 ac_file_inputs=
16411 for ac_f
16412 do
16413 case $ac_f in
16414 -) ac_f="$tmp/stdin";;
16415 *) # Look for the file first in the build tree, then in the source tree
16416 # (if the path is not absolute). The absolute path cannot be DOS-style,
16417 # because $ac_f cannot contain `:'.
16418 test -f "$ac_f" ||
16419 case $ac_f in
16420 [\\/$]*) false;;
16421 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16422 esac ||
16423 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16424 esac
16425 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16426 as_fn_append ac_file_inputs " '$ac_f'"
16427 done
16428
16429 # Let's still pretend it is `configure' which instantiates (i.e., don't
16430 # use $as_me), people would be surprised to read:
16431 # /* config.h. Generated by config.status. */
16432 configure_input='Generated from '`
16433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16434 `' by configure.'
16435 if test x"$ac_file" != x-; then
16436 configure_input="$ac_file. $configure_input"
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16438 $as_echo "$as_me: creating $ac_file" >&6;}
16439 fi
16440 # Neutralize special characters interpreted by sed in replacement strings.
16441 case $configure_input in #(
16442 *\&* | *\|* | *\\* )
16443 ac_sed_conf_input=`$as_echo "$configure_input" |
16444 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16445 *) ac_sed_conf_input=$configure_input;;
16446 esac
16447
16448 case $ac_tag in
16449 *:-:* | *:-) cat >"$tmp/stdin" \
16450 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16451 esac
16452 ;;
16453 esac
16454
16455 ac_dir=`$as_dirname -- "$ac_file" ||
16456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16457 X"$ac_file" : 'X\(//\)[^/]' \| \
16458 X"$ac_file" : 'X\(//\)$' \| \
16459 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16460 $as_echo X"$ac_file" |
16461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16462 s//\1/
16463 q
16464 }
16465 /^X\(\/\/\)[^/].*/{
16466 s//\1/
16467 q
16468 }
16469 /^X\(\/\/\)$/{
16470 s//\1/
16471 q
16472 }
16473 /^X\(\/\).*/{
16474 s//\1/
16475 q
16476 }
16477 s/.*/./; q'`
16478 as_dir="$ac_dir"; as_fn_mkdir_p
16479 ac_builddir=.
16480
16481 case "$ac_dir" in
16482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16483 *)
16484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16485 # A ".." for each directory in $ac_dir_suffix.
16486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16487 case $ac_top_builddir_sub in
16488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16490 esac ;;
16491 esac
16492 ac_abs_top_builddir=$ac_pwd
16493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16494 # for backward compatibility:
16495 ac_top_builddir=$ac_top_build_prefix
16496
16497 case $srcdir in
16498 .) # We are building in place.
16499 ac_srcdir=.
16500 ac_top_srcdir=$ac_top_builddir_sub
16501 ac_abs_top_srcdir=$ac_pwd ;;
16502 [\\/]* | ?:[\\/]* ) # Absolute name.
16503 ac_srcdir=$srcdir$ac_dir_suffix;
16504 ac_top_srcdir=$srcdir
16505 ac_abs_top_srcdir=$srcdir ;;
16506 *) # Relative name.
16507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16508 ac_top_srcdir=$ac_top_build_prefix$srcdir
16509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16510 esac
16511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16512
16513
16514 case $ac_mode in
16515 :F)
16516 #
16517 # CONFIG_FILE
16518 #
16519
16520 case $INSTALL in
16521 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16522 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16523 esac
16524 _ACEOF
16525
16526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16527 # If the template does not know about datarootdir, expand it.
16528 # FIXME: This hack should be removed a few years after 2.60.
16529 ac_datarootdir_hack=; ac_datarootdir_seen=
16530 ac_sed_dataroot='
16531 /datarootdir/ {
16532 p
16533 q
16534 }
16535 /@datadir@/p
16536 /@docdir@/p
16537 /@infodir@/p
16538 /@localedir@/p
16539 /@mandir@/p'
16540 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16541 *datarootdir*) ac_datarootdir_seen=yes;;
16542 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16544 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16545 _ACEOF
16546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16547 ac_datarootdir_hack='
16548 s&@datadir@&$datadir&g
16549 s&@docdir@&$docdir&g
16550 s&@infodir@&$infodir&g
16551 s&@localedir@&$localedir&g
16552 s&@mandir@&$mandir&g
16553 s&\\\${datarootdir}&$datarootdir&g' ;;
16554 esac
16555 _ACEOF
16556
16557 # Neutralize VPATH when `$srcdir' = `.'.
16558 # Shell code in configure.ac might set extrasub.
16559 # FIXME: do we really want to maintain this feature?
16560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16561 ac_sed_extra="$ac_vpsub
16562 $extrasub
16563 _ACEOF
16564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16565 :t
16566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16567 s|@configure_input@|$ac_sed_conf_input|;t t
16568 s&@top_builddir@&$ac_top_builddir_sub&;t t
16569 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16570 s&@srcdir@&$ac_srcdir&;t t
16571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16572 s&@top_srcdir@&$ac_top_srcdir&;t t
16573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16574 s&@builddir@&$ac_builddir&;t t
16575 s&@abs_builddir@&$ac_abs_builddir&;t t
16576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16577 s&@INSTALL@&$ac_INSTALL&;t t
16578 $ac_datarootdir_hack
16579 "
16580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16581 if $ac_cs_awk_getline; then
16582 $AWK -f "$tmp/subs.awk"
16583 else
16584 $AWK -f "$tmp/subs.awk" | $SHELL
16585 fi >$tmp/out \
16586 || as_fn_error "could not create $ac_file" "$LINENO" 5
16587
16588 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16589 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16590 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16592 which seems to be undefined. Please make sure it is defined." >&5
16593 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16594 which seems to be undefined. Please make sure it is defined." >&2;}
16595
16596 rm -f "$tmp/stdin"
16597 case $ac_file in
16598 -) cat "$tmp/out" && rm -f "$tmp/out";;
16599 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16600 esac \
16601 || as_fn_error "could not create $ac_file" "$LINENO" 5
16602 ;;
16603 :H)
16604 #
16605 # CONFIG_HEADER
16606 #
16607 if test x"$ac_file" != x-; then
16608 {
16609 $as_echo "/* $configure_input */" \
16610 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16611 } >"$tmp/config.h" \
16612 || as_fn_error "could not create $ac_file" "$LINENO" 5
16613 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16615 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16616 else
16617 rm -f "$ac_file"
16618 mv "$tmp/config.h" "$ac_file" \
16619 || as_fn_error "could not create $ac_file" "$LINENO" 5
16620 fi
16621 else
16622 $as_echo "/* $configure_input */" \
16623 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16624 || as_fn_error "could not create -" "$LINENO" 5
16625 fi
16626 ;;
16627 :L)
16628 #
16629 # CONFIG_LINK
16630 #
16631
16632 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16633 :
16634 else
16635 # Prefer the file from the source tree if names are identical.
16636 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16637 ac_source=$srcdir/$ac_source
16638 fi
16639
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16641 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16642
16643 if test ! -r "$ac_source"; then
16644 as_fn_error "$ac_source: file not found" "$LINENO" 5
16645 fi
16646 rm -f "$ac_file"
16647
16648 # Try a relative symlink, then a hard link, then a copy.
16649 case $srcdir in
16650 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16651 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16652 esac
16653 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16654 ln "$ac_source" "$ac_file" 2>/dev/null ||
16655 cp -p "$ac_source" "$ac_file" ||
16656 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16657 fi
16658 ;;
16659 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16660 $as_echo "$as_me: executing $ac_file commands" >&6;}
16661 ;;
16662 esac
16663
16664
16665 case $ac_file$ac_mode in
16666 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16667 "gcore":F) chmod +x gcore ;;
16668 "default":C)
16669 case x$CONFIG_HEADERS in
16670 xconfig.h:config.in)
16671 echo > stamp-h ;;
16672 esac
16673 ;;
16674
16675 esac
16676 done # for ac_tag
16677
16678
16679 as_fn_exit 0
16680 _ACEOF
16681 ac_clean_files=$ac_clean_files_save
16682
16683 test $ac_write_fail = 0 ||
16684 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16685
16686
16687 # configure is writing to config.log, and then calls config.status.
16688 # config.status does its own redirection, appending to config.log.
16689 # Unfortunately, on DOS this fails, as config.log is still kept open
16690 # by configure, so config.status won't be able to write to it; its
16691 # output is simply discarded. So we exec the FD to /dev/null,
16692 # effectively closing config.log, so it can be properly (re)opened and
16693 # appended to by config.status. When coming back to configure, we
16694 # need to make the FD available again.
16695 if test "$no_create" != yes; then
16696 ac_cs_success=:
16697 ac_config_status_args=
16698 test "$silent" = yes &&
16699 ac_config_status_args="$ac_config_status_args --quiet"
16700 exec 5>/dev/null
16701 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16702 exec 5>>config.log
16703 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16704 # would make configure fail if this is the last instruction.
16705 $ac_cs_success || as_fn_exit $?
16706 fi
16707
16708 #
16709 # CONFIG_SUBDIRS section.
16710 #
16711 if test "$no_recursion" != yes; then
16712
16713 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16714 # so they do not pile up.
16715 ac_sub_configure_args=
16716 ac_prev=
16717 eval "set x $ac_configure_args"
16718 shift
16719 for ac_arg
16720 do
16721 if test -n "$ac_prev"; then
16722 ac_prev=
16723 continue
16724 fi
16725 case $ac_arg in
16726 -cache-file | --cache-file | --cache-fil | --cache-fi \
16727 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16728 ac_prev=cache_file ;;
16729 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16730 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16731 | --c=*)
16732 ;;
16733 --config-cache | -C)
16734 ;;
16735 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16736 ac_prev=srcdir ;;
16737 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16738 ;;
16739 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16740 ac_prev=prefix ;;
16741 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16742 ;;
16743 --disable-option-checking)
16744 ;;
16745 *)
16746 case $ac_arg in
16747 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16748 esac
16749 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16750 esac
16751 done
16752
16753 # Always prepend --prefix to ensure using the same prefix
16754 # in subdir configurations.
16755 ac_arg="--prefix=$prefix"
16756 case $ac_arg in
16757 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16758 esac
16759 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16760
16761 # Pass --silent
16762 if test "$silent" = yes; then
16763 ac_sub_configure_args="--silent $ac_sub_configure_args"
16764 fi
16765
16766 # Always prepend --disable-option-checking to silence warnings, since
16767 # different subdirs can have different --enable and --with options.
16768 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16769
16770 ac_popdir=`pwd`
16771 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16772
16773 # Do not complain, so a configure script can configure whichever
16774 # parts of a large source tree are present.
16775 test -d "$srcdir/$ac_dir" || continue
16776
16777 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16778 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16779 $as_echo "$ac_msg" >&6
16780 as_dir="$ac_dir"; as_fn_mkdir_p
16781 ac_builddir=.
16782
16783 case "$ac_dir" in
16784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16785 *)
16786 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16787 # A ".." for each directory in $ac_dir_suffix.
16788 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16789 case $ac_top_builddir_sub in
16790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16792 esac ;;
16793 esac
16794 ac_abs_top_builddir=$ac_pwd
16795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16796 # for backward compatibility:
16797 ac_top_builddir=$ac_top_build_prefix
16798
16799 case $srcdir in
16800 .) # We are building in place.
16801 ac_srcdir=.
16802 ac_top_srcdir=$ac_top_builddir_sub
16803 ac_abs_top_srcdir=$ac_pwd ;;
16804 [\\/]* | ?:[\\/]* ) # Absolute name.
16805 ac_srcdir=$srcdir$ac_dir_suffix;
16806 ac_top_srcdir=$srcdir
16807 ac_abs_top_srcdir=$srcdir ;;
16808 *) # Relative name.
16809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16810 ac_top_srcdir=$ac_top_build_prefix$srcdir
16811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16812 esac
16813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16814
16815
16816 cd "$ac_dir"
16817
16818 # Check for guested configure; otherwise get Cygnus style configure.
16819 if test -f "$ac_srcdir/configure.gnu"; then
16820 ac_sub_configure=$ac_srcdir/configure.gnu
16821 elif test -f "$ac_srcdir/configure"; then
16822 ac_sub_configure=$ac_srcdir/configure
16823 elif test -f "$ac_srcdir/configure.in"; then
16824 # This should be Cygnus configure.
16825 ac_sub_configure=$ac_aux_dir/configure
16826 else
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16828 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16829 ac_sub_configure=
16830 fi
16831
16832 # The recursion is here.
16833 if test -n "$ac_sub_configure"; then
16834 # Make the cache file name correct relative to the subdirectory.
16835 case $cache_file in
16836 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16837 *) # Relative name.
16838 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16839 esac
16840
16841 { $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
16842 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16843 # The eval makes quoting arguments work.
16844 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16845 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16846 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16847 fi
16848
16849 cd "$ac_popdir"
16850 done
16851 fi
16852 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16854 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16855 fi
16856
16857
16858 exit 0
This page took 0.533945 seconds and 4 git commands to generate.