common/
[deliverable/binutils-gdb.git] / gdb / configure
... / ...
CommitLineData
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
79fi
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
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
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
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
207fi; }
208IFS=$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+"$@"}
220fi
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
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_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.
267as_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.
277as_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.
327if (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 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # 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.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # 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.
362as_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
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_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.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_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
450ECHO_C= ECHO_N= ECHO_T=
451case `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';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (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
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
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 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_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.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 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.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="main.c"
555# Factoring default headers for most tests.
556ac_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
591gl_header_list=
592enable_option_checking=no
593ac_subst_vars='am__EXEEXT_FALSE
594am__EXEEXT_TRUE
595gltests_LTLIBOBJS
596gltests_LIBOBJS
597gl_LTLIBOBJS
598gl_LIBOBJS
599LTLIBOBJS
600LIBOBJS
601GDB_NM_FILE
602frags
603target_subdir
604CONFIG_UNINSTALL
605CONFIG_INSTALL
606CONFIG_CLEAN
607CONFIG_ALL
608CONFIG_SRCS
609CONFIG_DEPS
610CONFIG_OBS
611PROFILE_CFLAGS
612ENABLE_CFLAGS
613SIM_OBS
614SIM
615XMKMF
616GDBTK_SRC_DIR
617GDBTK_CFLAGS
618GDBTKLIBS
619X_LIBS
620X_LDFLAGS
621X_CFLAGS
622TK_XINCLUDES
623TK_DEPS
624TK_LIBRARY
625TK_INCLUDE
626TK_STUB_LIB_SPEC
627TK_STUB_LIB_FLAG
628TK_STUB_LIB_FILE
629TK_LIB_SPEC
630TK_LIB_FLAG
631TK_LIB_FILE
632TK_SRC_DIR
633TK_BIN_DIR
634TK_VERSION
635TCL_DEPS
636TCL_LIBRARY
637TCL_INCLUDE
638TCL_STUB_LIB_SPEC
639TCL_STUB_LIB_FLAG
640TCL_STUB_LIB_FILE
641TCL_LIB_SPEC
642TCL_LIB_FLAG
643TCL_LIB_FILE
644TCL_SRC_DIR
645TCL_BIN_DIR
646TCL_PATCH_LEVEL
647TCL_VERSION
648WIN32LDAPP
649GUI_CFLAGS_X
650LIBGUI
651WIN32LIBS
652SER_HARDWIRE
653WERROR_CFLAGS
654WARN_CFLAGS
655SYSTEM_GDBINIT
656TARGET_SYSTEM_ROOT_DEFINE
657TARGET_SYSTEM_ROOT
658CONFIG_LDFLAGS
659ALLOCA
660PYTHON_CFLAGS
661LTLIBEXPAT
662LIBEXPAT
663HAVE_LIBEXPAT
664READLINE_CFLAGS
665READLINE_DEPS
666READLINE
667MIG
668WINDRES
669DLLTOOL
670AR
671YFLAGS
672YACC
673LN_S
674REPORT_BUGS_TEXI
675REPORT_BUGS_TO
676PKGVERSION
677TARGET_OBS
678subdirs
679GDB_DATADIR
680DEBUGDIR
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683AMDEPBACKSLASH
684AMDEP_FALSE
685AMDEP_TRUE
686am__quote
687am__include
688am__untar
689am__tar
690AMTAR
691AWK
692mkdir_p
693MKDIR_P
694INSTALL_STRIP_PROGRAM
695STRIP
696install_sh
697MAKEINFO
698AUTOHEADER
699AUTOMAKE
700AUTOCONF
701ACLOCAL
702VERSION
703CYGPATH_W
704am__isrc
705INSTALL_DATA
706INSTALL_SCRIPT
707INSTALL_PROGRAM
708PACKAGE
709GNULIB_STDINT_H
710LIBGNU_LTLIBDEPS
711LIBGNU_LIBDEPS
712NEXT_WCHAR_H
713HAVE_WCHAR_H
714WCHAR_H
715REPLACE_WCWIDTH
716HAVE_DECL_WCWIDTH
717GNULIB_WCWIDTH
718NEXT_STRING_H
719STDINT_H
720WINT_T_SUFFIX
721WCHAR_T_SUFFIX
722SIZE_T_SUFFIX
723SIG_ATOMIC_T_SUFFIX
724PTRDIFF_T_SUFFIX
725HAVE_SIGNED_WINT_T
726HAVE_SIGNED_WCHAR_T
727HAVE_SIGNED_SIG_ATOMIC_T
728BITSIZEOF_WINT_T
729BITSIZEOF_WCHAR_T
730BITSIZEOF_SIZE_T
731BITSIZEOF_SIG_ATOMIC_T
732BITSIZEOF_PTRDIFF_T
733HAVE_SYS_BITYPES_H
734HAVE_SYS_INTTYPES_H
735HAVE_STDINT_H
736NEXT_STDINT_H
737INCLUDE_NEXT
738HAVE_SYS_TYPES_H
739HAVE_INTTYPES_H
740HAVE_UNSIGNED_LONG_LONG_INT
741HAVE_LONG_LONG_INT
742REPLACE_STRSTR
743REPLACE_STRCASESTR
744REPLACE_MEMMEM
745REPLACE_STRSIGNAL
746REPLACE_STRERROR
747HAVE_DECL_STRSIGNAL
748HAVE_DECL_STRERROR
749HAVE_DECL_STRTOK_R
750HAVE_STRCASESTR
751HAVE_STRSEP
752HAVE_STRPBRK
753HAVE_DECL_STRNLEN
754HAVE_DECL_STRNDUP
755HAVE_STRNDUP
756HAVE_DECL_STRDUP
757HAVE_STRCHRNUL
758HAVE_STPNCPY
759HAVE_STPCPY
760HAVE_DECL_MEMRCHR
761HAVE_MEMPCPY
762HAVE_DECL_MEMMEM
763GNULIB_STRSIGNAL
764GNULIB_STRERROR
765GNULIB_MBSTOK_R
766GNULIB_MBSSEP
767GNULIB_MBSSPN
768GNULIB_MBSPBRK
769GNULIB_MBSCSPN
770GNULIB_MBSCASESTR
771GNULIB_MBSPCASECMP
772GNULIB_MBSNCASECMP
773GNULIB_MBSCASECMP
774GNULIB_MBSSTR
775GNULIB_MBSRCHR
776GNULIB_MBSCHR
777GNULIB_MBSNLEN
778GNULIB_MBSLEN
779GNULIB_STRTOK_R
780GNULIB_STRCASESTR
781GNULIB_STRSTR
782GNULIB_STRSEP
783GNULIB_STRPBRK
784GNULIB_STRNLEN
785GNULIB_STRNDUP
786GNULIB_STRDUP
787GNULIB_STRCHRNUL
788GNULIB_STPNCPY
789GNULIB_STPCPY
790GNULIB_MEMRCHR
791GNULIB_MEMPCPY
792GNULIB_MEMMEM
793GL_COND_LIBTOOL_FALSE
794GL_COND_LIBTOOL_TRUE
795CATOBJEXT
796GENCAT
797INSTOBJEXT
798DATADIRNAME
799CATALOGS
800POSUB
801GMSGFMT
802XGETTEXT
803INCINTL
804LIBINTL_DEP
805LIBINTL
806USE_NLS
807SET_MAKE
808GMAKE_FALSE
809GMAKE_TRUE
810MAKE
811CCDEPMODE
812DEPDIR
813am__leading_dot
814target_os
815target_vendor
816target_cpu
817target
818host_os
819host_vendor
820host_cpu
821host
822build_os
823build_vendor
824build_cpu
825build
826RANLIB
827EGREP
828GREP
829CPP
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837MAINT
838MAINTAINER_MODE_FALSE
839MAINTAINER_MODE_TRUE
840target_alias
841host_alias
842build_alias
843LIBS
844ECHO_T
845ECHO_N
846ECHO_C
847DEFS
848mandir
849localedir
850libdir
851psdir
852pdfdir
853dvidir
854htmldir
855infodir
856docdir
857oldincludedir
858includedir
859localstatedir
860sharedstatedir
861sysconfdir
862datadir
863datarootdir
864libexecdir
865sbindir
866bindir
867program_transform_name
868prefix
869exec_prefix
870PACKAGE_URL
871PACKAGE_BUGREPORT
872PACKAGE_STRING
873PACKAGE_VERSION
874PACKAGE_TARNAME
875PACKAGE_NAME
876PATH_SEPARATOR
877SHELL'
878ac_subst_files='host_makefile_frag'
879ac_user_opts='
880enable_option_checking
881enable_maintainer_mode
882enable_plugins
883enable_largefile
884enable_dependency_tracking
885with_separate_debug_dir
886with_gdb_datadir
887with_relocated_sources
888enable_targets
889enable_64_bit_bfd
890enable_gdbcli
891enable_gdbmi
892enable_tui
893enable_gdbtk
894with_libunwind
895with_curses
896enable_profiling
897with_pkgversion
898with_bugurl
899with_zlib
900with_libiconv_prefix
901with_system_readline
902with_expat
903with_gnu_ld
904enable_rpath
905with_libexpat_prefix
906with_python
907with_included_regex
908with_sysroot
909with_system_gdbinit
910enable_werror
911enable_build_warnings
912enable_gdb_build_warnings
913with_tcl
914with_tk
915with_x
916enable_sim
917enable_multi_ice
918'
919 ac_precious_vars='build_alias
920host_alias
921target_alias
922CC
923CFLAGS
924LDFLAGS
925LIBS
926CPPFLAGS
927CPP
928YACC
929YFLAGS
930XMKMF'
931ac_subdirs_all='doc testsuite
932gdbtk
933multi-ice
934gdbserver'
935
936# Initialize some variables set by options.
937ac_init_help=
938ac_init_version=false
939ac_unrecognized_opts=
940ac_unrecognized_sep=
941# The variables have the same names as the options, with
942# dashes changed to underlines.
943cache_file=/dev/null
944exec_prefix=NONE
945no_create=
946no_recursion=
947prefix=NONE
948program_prefix=NONE
949program_suffix=NONE
950program_transform_name=s,x,x,
951silent=
952site=
953srcdir=
954verbose=
955x_includes=NONE
956x_libraries=NONE
957
958# Installation directory options.
959# These are left unexpanded so users can "make install exec_prefix=/foo"
960# and all the variables that are supposed to be based on exec_prefix
961# by default will actually change.
962# Use braces instead of parens because sh, perl, etc. also accept them.
963# (The list follows the same order as the GNU Coding Standards.)
964bindir='${exec_prefix}/bin'
965sbindir='${exec_prefix}/sbin'
966libexecdir='${exec_prefix}/libexec'
967datarootdir='${prefix}/share'
968datadir='${datarootdir}'
969sysconfdir='${prefix}/etc'
970sharedstatedir='${prefix}/com'
971localstatedir='${prefix}/var'
972includedir='${prefix}/include'
973oldincludedir='/usr/include'
974docdir='${datarootdir}/doc/${PACKAGE}'
975infodir='${datarootdir}/info'
976htmldir='${docdir}'
977dvidir='${docdir}'
978pdfdir='${docdir}'
979psdir='${docdir}'
980libdir='${exec_prefix}/lib'
981localedir='${datarootdir}/locale'
982mandir='${datarootdir}/man'
983
984ac_prev=
985ac_dashdash=
986for ac_option
987do
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
993 fi
994
995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
999
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1001
1002 case $ac_dashdash$ac_option in
1003 --)
1004 ac_dashdash=yes ;;
1005
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1010
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1015
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1022
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1025
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1030
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1037
1038 -disable-* | --disable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047"enable_$ac_useropt"
1048"*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=no ;;
1053
1054 -docdir | --docdir | --docdi | --doc | --do)
1055 ac_prev=docdir ;;
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1058
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 ac_prev=dvidir ;;
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1063
1064 -enable-* | --enable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error "invalid feature name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073"enable_$ac_useropt"
1074"*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=\$ac_optarg ;;
1079
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1088
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1091 with_gas=yes ;;
1092
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1099
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1104
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 ac_prev=htmldir ;;
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 | --ht=*)
1109 htmldir=$ac_optarg ;;
1110
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1117
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 ac_prev=infodir ;;
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1122
1123 -libdir | --libdir | --libdi | --libd)
1124 ac_prev=libdir ;;
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1127
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1134
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1139
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1146
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 ac_prev=mandir ;;
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1151
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1154 with_fp=no ;;
1155
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1158 no_create=yes ;;
1159
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 no_recursion=yes ;;
1163
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1172
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 ac_prev=prefix ;;
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1177
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1184
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1191
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1208
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 ac_prev=pdfdir ;;
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1213
1214 -psdir | --psdir | --psdi | --psd | --ps)
1215 ac_prev=psdir ;;
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 psdir=$ac_optarg ;;
1218
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 silent=yes ;;
1222
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 ac_prev=sbindir ;;
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 | --sbi=* | --sb=*)
1227 sbindir=$ac_optarg ;;
1228
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1232 | --sha | --sh)
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 | --sha=* | --sh=*)
1238 sharedstatedir=$ac_optarg ;;
1239
1240 -site | --site | --sit)
1241 ac_prev=site ;;
1242 -site=* | --site=* | --sit=*)
1243 site=$ac_optarg ;;
1244
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 ac_prev=srcdir ;;
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1249
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1256
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1261
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 verbose=yes ;;
1264
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1267
1268 -with-* | --with-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error "invalid package name: $ac_useropt"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277"with_$ac_useropt"
1278"*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=\$ac_optarg ;;
1283
1284 -without-* | --without-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1292 *"
1293"with_$ac_useropt"
1294"*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=no ;;
1299
1300 --x)
1301 # Obsolete; use --with-x.
1302 with_x=yes ;;
1303
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305 | --x-incl | --x-inc | --x-in | --x-i)
1306 ac_prev=x_includes ;;
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309 x_includes=$ac_optarg ;;
1310
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313 ac_prev=x_libraries ;;
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316 x_libraries=$ac_optarg ;;
1317
1318 -*) as_fn_error "unrecognized option: \`$ac_option'
1319Try \`$0 --help' for more information."
1320 ;;
1321
1322 *=*)
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 case $ac_envvar in #(
1326 '' | [0-9]* | *[!_$as_cr_alnum]* )
1327 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1328 esac
1329 eval $ac_envvar=\$ac_optarg
1330 export $ac_envvar ;;
1331
1332 *)
1333 # FIXME: should be removed in autoconf 3.0.
1334 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 ;;
1339
1340 esac
1341done
1342
1343if test -n "$ac_prev"; then
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345 as_fn_error "missing argument to $ac_option"
1346fi
1347
1348if test -n "$ac_unrecognized_opts"; then
1349 case $enable_option_checking in
1350 no) ;;
1351 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1352 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1353 esac
1354fi
1355
1356# Check all directory arguments for consistency.
1357for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1361do
1362 eval ac_val=\$$ac_var
1363 # Remove trailing slashes.
1364 case $ac_val in
1365 */ )
1366 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1367 eval $ac_var=\$ac_val;;
1368 esac
1369 # Be sure to have absolute directory names.
1370 case $ac_val in
1371 [\\/$]* | ?:[\\/]* ) continue;;
1372 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 esac
1374 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1375done
1376
1377# There might be people who depend on the old broken behavior: `$host'
1378# used to hold the argument of --host etc.
1379# FIXME: To remove some day.
1380build=$build_alias
1381host=$host_alias
1382target=$target_alias
1383
1384# FIXME: To remove some day.
1385if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1392 fi
1393fi
1394
1395ac_tool_prefix=
1396test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398test "$silent" = yes && exec 6>/dev/null
1399
1400
1401ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402ac_ls_di=`ls -di .` &&
1403ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 as_fn_error "working directory cannot be determined"
1405test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 as_fn_error "pwd does not report name of working directory"
1407
1408
1409# Find the source files, if location was not specified.
1410if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$as_myself" ||
1414$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418$as_echo X"$as_myself" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\).*/{
1432 s//\1/
1433 q
1434 }
1435 s/.*/./; q'`
1436 srcdir=$ac_confdir
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 srcdir=..
1439 fi
1440else
1441 ac_srcdir_defaulted=no
1442fi
1443if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1446fi
1447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1450 pwd)`
1451# When building in place, set srcdir=.
1452if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1454fi
1455# Remove unnecessary trailing slashes from srcdir.
1456# Double slashes in file names in object file debugging info
1457# mess up M-x gdb in Emacs.
1458case $srcdir in
1459*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460esac
1461for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466done
1467
1468#
1469# Report the --help message.
1470#
1471if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1474 cat <<_ACEOF
1475\`configure' configures this package to adapt to many kinds of systems.
1476
1477Usage: $0 [OPTION]... [VAR=VALUE]...
1478
1479To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480VAR=VALUE. See below for descriptions of some of the useful variables.
1481
1482Defaults for the options are specified in brackets.
1483
1484Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494
1495Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 [PREFIX]
1500
1501By default, \`make install' will install all the files in
1502\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504for instance \`--prefix=\$HOME'.
1505
1506For better control, use the options below.
1507
1508Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1528_ACEOF
1529
1530 cat <<\_ACEOF
1531
1532Program names:
1533 --program-prefix=PREFIX prepend PREFIX to installed program names
1534 --program-suffix=SUFFIX append SUFFIX to installed program names
1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536
1537X features:
1538 --x-includes=DIR X include files are in DIR
1539 --x-libraries=DIR X library files are in DIR
1540
1541System types:
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 --target=TARGET configure for building compilers for TARGET [HOST]
1545_ACEOF
1546fi
1547
1548if test -n "$ac_init_help"; then
1549
1550 cat <<\_ACEOF
1551
1552Optional Features:
1553 --disable-option-checking ignore unrecognized --enable/--with options
1554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1556 --enable-maintainer-mode enable make rules and dependencies not useful
1557 (and sometimes confusing) to the casual installer
1558 --enable-plugins Enable support for plugins (defaults no)
1559 --disable-largefile omit support for large files
1560 --disable-dependency-tracking speeds up one-time build
1561 --enable-dependency-tracking do not reject slow dependency extractors
1562 --enable-targets=TARGETS
1563 alternative target configurations
1564 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1565 --disable-gdbcli disable command-line interface (CLI)
1566 --disable-gdbmi disable machine-interface (MI)
1567 --enable-tui enable full-screen terminal user interface (TUI)
1568 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1569 --enable-profiling enable profiling of GDB
1570 --disable-rpath do not hardcode runtime library paths
1571 --enable-werror treat compile warnings as errors
1572 --enable-build-warnings enable build-time compiler warnings if gcc is used
1573 --enable-gdb-build-warnings
1574 enable GDB specific build-time compiler warnings if
1575 gcc is used
1576 --enable-sim link gdb with simulator
1577 --enable-multi-ice build the multi-ice-gdb-server
1578
1579Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-separate-debug-dir=PATH
1583 look for global separate debug info in this path
1584 [LIBDIR/debug]
1585 --with-gdb-datadir=PATH look for global separate data files in this path
1586 [DATADIR/gdb]
1587 --with-relocated-sources=PATH
1588 automatically relocate this path for source files
1589 --with-libunwind use libunwind frame unwinding support
1590 --with-curses use the curses library instead of the termcap
1591 library
1592 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1593 --with-bugurl=URL Direct users to URL to report a bug
1594 --with-zlib include zlib support (auto/yes/no) default=auto
1595 --with-libiconv-prefix=DIR
1596 search for libiconv in DIR/include and DIR/lib
1597 --with-system-readline use installed readline library
1598 --with-expat include expat support (auto/yes/no)
1599 --with-gnu-ld assume the C compiler uses GNU ld default=no
1600 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1601 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1602 --with-python include python support (auto/yes/no/<path>)
1603 --without-included-regex
1604 don't use included regex; this is the default on
1605 systems with version 2 of the GNU C library (use
1606 with caution on other system)
1607 --with-sysroot[=DIR] search for usr/lib et al within DIR
1608 --with-system-gdbinit=PATH
1609 automatically load a system-wide gdbinit file
1610 --with-tcl directory containing tcl configuration (tclConfig.sh)
1611 --with-tk directory containing tk configuration (tkConfig.sh)
1612 --with-x use the X Window System
1613
1614Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1622 CPP C preprocessor
1623 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1624 the first program found out of: `bison -y', `byacc', `yacc'.
1625 YFLAGS The list of arguments that will be passed by default to $YACC.
1626 This script will default YFLAGS to the empty string to avoid a
1627 default value of `-d' given by some make applications.
1628 XMKMF Path to xmkmf, Makefile generator for X Window System
1629
1630Use these variables to override the choices made by `configure' or to help
1631it to find libraries and programs with nonstandard names/locations.
1632
1633Report bugs to the package provider.
1634_ACEOF
1635ac_status=$?
1636fi
1637
1638if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1645
1646case "$ac_dir" in
1647.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648*)
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656esac
1657ac_abs_top_builddir=$ac_pwd
1658ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659# for backward compatibility:
1660ac_top_builddir=$ac_top_build_prefix
1661
1662case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675esac
1676ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1686 else
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1690 done
1691fi
1692
1693test -n "$ac_init_help" && exit $ac_status
1694if $ac_init_version; then
1695 cat <<\_ACEOF
1696configure
1697generated by GNU Autoconf 2.64
1698
1699Copyright (C) 2009 Free Software Foundation, Inc.
1700This configure script is free software; the Free Software Foundation
1701gives unlimited permission to copy, distribute and modify it.
1702_ACEOF
1703 exit
1704fi
1705
1706## ------------------------ ##
1707## Autoconf initialization. ##
1708## ------------------------ ##
1709
1710# ac_fn_c_try_compile LINENO
1711# --------------------------
1712# Try to compile conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_c_try_compile ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737else
1738 $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742fi
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1745
1746} # ac_fn_c_try_compile
1747
1748# ac_fn_c_try_cpp LINENO
1749# ----------------------
1750# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_cpp ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } >/dev/null && {
1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 }; then :
1773 ac_retval=0
1774else
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779fi
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 return $ac_retval
1782
1783} # ac_fn_c_try_cpp
1784
1785# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786# -------------------------------------------------------
1787# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788# the include files in INCLUDES and setting the cache variable VAR
1789# accordingly.
1790ac_fn_c_check_header_mongrel ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798fi
1799eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802else
1803 # Is the header compilable?
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805$as_echo_n "checking $2 usability... " >&6; }
1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807/* end confdefs.h. */
1808$4
1809#include <$2>
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1813else
1814 ac_header_compiler=no
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818$as_echo "$ac_header_compiler" >&6; }
1819
1820# Is the header present?
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822$as_echo_n "checking $2 presence... " >&6; }
1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1829else
1830 ac_header_preproc=no
1831fi
1832rm -f conftest.err conftest.$ac_ext
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834$as_echo "$ac_header_preproc" >&6; }
1835
1836# So? What about this header?
1837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838 yes:no: )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 no:yes:* )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 ;;
1856esac
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1861else
1862 eval "$3=\$ac_header_compiler"
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867fi
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
1870} # ac_fn_c_check_header_mongrel
1871
1872# ac_fn_c_try_run LINENO
1873# ----------------------
1874# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875# that executables *can* be run.
1876ac_fn_c_try_run ()
1877{
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_link"
1880case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1890 { { case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_try") 2>&5
1897 ac_status=$?
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; }; }; then :
1900 ac_retval=0
1901else
1902 $as_echo "$as_me: program exited with status $ac_status" >&5
1903 $as_echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906 ac_retval=$ac_status
1907fi
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910 return $ac_retval
1911
1912} # ac_fn_c_try_run
1913
1914# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1915# -------------------------------------------------------
1916# Tests whether HEADER exists and can be compiled using the include files in
1917# INCLUDES, setting the cache variable VAR accordingly.
1918ac_fn_c_check_header_compile ()
1919{
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922$as_echo_n "checking for $2... " >&6; }
1923if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1925else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929#include <$2>
1930_ACEOF
1931if ac_fn_c_try_compile "$LINENO"; then :
1932 eval "$3=yes"
1933else
1934 eval "$3=no"
1935fi
1936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937fi
1938eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940$as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1942
1943} # ac_fn_c_check_header_compile
1944
1945# ac_fn_c_try_link LINENO
1946# -----------------------
1947# Try to link conftest.$ac_ext, and return whether this succeeded.
1948ac_fn_c_try_link ()
1949{
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 rm -f conftest.$ac_objext conftest$ac_exeext
1952 if { { ac_try="$ac_link"
1953case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956esac
1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958$as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1965 fi
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && {
1968 test -z "$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 } && test -s conftest$ac_exeext && {
1971 test "$cross_compiling" = yes ||
1972 $as_test_x conftest$ac_exeext
1973 }; then :
1974 ac_retval=0
1975else
1976 $as_echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980fi
1981 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983 # interfere with the next link command; also delete a directory that is
1984 # left behind by Apple's compiler. We do this before executing the actions.
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 return $ac_retval
1988
1989} # ac_fn_c_try_link
1990
1991# ac_fn_c_check_func LINENO FUNC VAR
1992# ----------------------------------
1993# Tests whether FUNC exists, setting the cache variable VAR accordingly
1994ac_fn_c_check_func ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998$as_echo_n "checking for $2... " >&6; }
1999if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2001else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2006#define $2 innocuous_$2
2007
2008/* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $2 (); below.
2010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011 <limits.h> exists even on freestanding compilers. */
2012
2013#ifdef __STDC__
2014# include <limits.h>
2015#else
2016# include <assert.h>
2017#endif
2018
2019#undef $2
2020
2021/* Override any GCC internal prototype to avoid an error.
2022 Use char because int might match the return type of a GCC
2023 builtin and then its argument prototype would still apply. */
2024#ifdef __cplusplus
2025extern "C"
2026#endif
2027char $2 ();
2028/* The GNU C library defines this for functions which it implements
2029 to always fail with ENOSYS. Some functions are actually named
2030 something starting with __ and the normal name is an alias. */
2031#if defined __stub_$2 || defined __stub___$2
2032choke me
2033#endif
2034
2035int
2036main ()
2037{
2038return $2 ();
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_c_try_link "$LINENO"; then :
2044 eval "$3=yes"
2045else
2046 eval "$3=no"
2047fi
2048rm -f core conftest.err conftest.$ac_objext \
2049 conftest$ac_exeext conftest.$ac_ext
2050fi
2051eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055
2056} # ac_fn_c_check_func
2057
2058# ac_fn_c_check_decl LINENO SYMBOL VAR
2059# ------------------------------------
2060# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2061ac_fn_c_check_decl ()
2062{
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2065$as_echo_n "checking whether $2 is declared... " >&6; }
2066if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2068else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071$4
2072int
2073main ()
2074{
2075#ifndef $2
2076 (void) $2;
2077#endif
2078
2079 ;
2080 return 0;
2081}
2082_ACEOF
2083if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$3=yes"
2085else
2086 eval "$3=no"
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089fi
2090eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092$as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094
2095} # ac_fn_c_check_decl
2096
2097# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098# --------------------------------------------
2099# Tries to find the compile-time value of EXPR in a program that includes
2100# INCLUDES, setting VAR accordingly. Returns whether the value could be
2101# computed
2102ac_fn_c_compute_int ()
2103{
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110int
2111main ()
2112{
2113static int test_array [1 - 2 * !(($2) >= 0)];
2114test_array [0] = 0
2115
2116 ;
2117 return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=0 ac_mid=0
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124/* end confdefs.h. */
2125$4
2126int
2127main ()
2128{
2129static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130test_array [0] = 0
2131
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid; break
2138else
2139 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2140 if test $ac_lo -le $ac_mid; then
2141 ac_lo= ac_hi=
2142 break
2143 fi
2144 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2145fi
2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148else
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150/* end confdefs.h. */
2151$4
2152int
2153main ()
2154{
2155static int test_array [1 - 2 * !(($2) < 0)];
2156test_array [0] = 0
2157
2158 ;
2159 return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=-1 ac_mid=-1
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h. */
2167$4
2168int
2169main ()
2170{
2171static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172test_array [0] = 0
2173
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_lo=$ac_mid; break
2180else
2181 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2182 if test $ac_mid -le $ac_hi; then
2183 ac_lo= ac_hi=
2184 break
2185 fi
2186 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190else
2191 ac_lo= ac_hi=
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196# Binary search between lo and hi bounds.
2197while test "x$ac_lo" != "x$ac_hi"; do
2198 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h. */
2201$4
2202int
2203main ()
2204{
2205static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206test_array [0] = 0
2207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid
2214else
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218done
2219case $ac_lo in #((
2220?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2221'') ac_retval=1 ;;
2222esac
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226$4
2227static long int longval () { return $2; }
2228static unsigned long int ulongval () { return $2; }
2229#include <stdio.h>
2230#include <stdlib.h>
2231int
2232main ()
2233{
2234
2235 FILE *f = fopen ("conftest.val", "w");
2236 if (! f)
2237 return 1;
2238 if (($2) < 0)
2239 {
2240 long int i = longval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%ld", i);
2244 }
2245 else
2246 {
2247 unsigned long int i = ulongval ();
2248 if (i != ($2))
2249 return 1;
2250 fprintf (f, "%lu", i);
2251 }
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2255
2256 ;
2257 return 0;
2258}
2259_ACEOF
2260if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2262else
2263 ac_retval=1
2264fi
2265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2267rm -f conftest.val
2268
2269 fi
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 return $ac_retval
2272
2273} # ac_fn_c_compute_int
2274
2275# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2276# ----------------------------------------------------
2277# Tries to find if the field MEMBER exists in type AGGR, after including
2278# INCLUDES, setting cache variable VAR accordingly.
2279ac_fn_c_check_member ()
2280{
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2283$as_echo_n "checking for $2.$3... " >&6; }
2284if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2285 $as_echo_n "(cached) " >&6
2286else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288/* end confdefs.h. */
2289$5
2290int
2291main ()
2292{
2293static $2 ac_aggr;
2294if (ac_aggr.$3)
2295return 0;
2296 ;
2297 return 0;
2298}
2299_ACEOF
2300if ac_fn_c_try_compile "$LINENO"; then :
2301 eval "$4=yes"
2302else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h. */
2305$5
2306int
2307main ()
2308{
2309static $2 ac_aggr;
2310if (sizeof ac_aggr.$3)
2311return 0;
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316if ac_fn_c_try_compile "$LINENO"; then :
2317 eval "$4=yes"
2318else
2319 eval "$4=no"
2320fi
2321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322fi
2323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324fi
2325eval ac_res=\$$4
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327$as_echo "$ac_res" >&6; }
2328 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329
2330} # ac_fn_c_check_member
2331
2332# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2333# -------------------------------------------
2334# Tests whether TYPE exists after having included INCLUDES, setting cache
2335# variable VAR accordingly.
2336ac_fn_c_check_type ()
2337{
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340$as_echo_n "checking for $2... " >&6; }
2341if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2343else
2344 eval "$3=no"
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h. */
2347$4
2348int
2349main ()
2350{
2351if (sizeof ($2))
2352 return 0;
2353 ;
2354 return 0;
2355}
2356_ACEOF
2357if ac_fn_c_try_compile "$LINENO"; then :
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359/* end confdefs.h. */
2360$4
2361int
2362main ()
2363{
2364if (sizeof (($2)))
2365 return 0;
2366 ;
2367 return 0;
2368}
2369_ACEOF
2370if ac_fn_c_try_compile "$LINENO"; then :
2371
2372else
2373 eval "$3=yes"
2374fi
2375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376fi
2377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378fi
2379eval ac_res=\$$3
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381$as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2383
2384} # ac_fn_c_check_type
2385cat >config.log <<_ACEOF
2386This file contains any messages produced by compilers while
2387running configure, to aid debugging if configure makes a mistake.
2388
2389It was created by $as_me, which was
2390generated by GNU Autoconf 2.64. Invocation command line was
2391
2392 $ $0 $@
2393
2394_ACEOF
2395exec 5>>config.log
2396{
2397cat <<_ASUNAME
2398## --------- ##
2399## Platform. ##
2400## --------- ##
2401
2402hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2403uname -m = `(uname -m) 2>/dev/null || echo unknown`
2404uname -r = `(uname -r) 2>/dev/null || echo unknown`
2405uname -s = `(uname -s) 2>/dev/null || echo unknown`
2406uname -v = `(uname -v) 2>/dev/null || echo unknown`
2407
2408/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2409/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2410
2411/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2412/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2413/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2414/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2415/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2416/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2417/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2418
2419_ASUNAME
2420
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 $as_echo "PATH: $as_dir"
2427 done
2428IFS=$as_save_IFS
2429
2430} >&5
2431
2432cat >&5 <<_ACEOF
2433
2434
2435## ----------- ##
2436## Core tests. ##
2437## ----------- ##
2438
2439_ACEOF
2440
2441
2442# Keep a trace of the command line.
2443# Strip out --no-create and --no-recursion so they do not pile up.
2444# Strip out --silent because we don't want to record it for future runs.
2445# Also quote any args containing shell meta-characters.
2446# Make two passes to allow for proper duplicate-argument suppression.
2447ac_configure_args=
2448ac_configure_args0=
2449ac_configure_args1=
2450ac_must_keep_next=false
2451for ac_pass in 1 2
2452do
2453 for ac_arg
2454 do
2455 case $ac_arg in
2456 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2458 | -silent | --silent | --silen | --sile | --sil)
2459 continue ;;
2460 *\'*)
2461 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2462 esac
2463 case $ac_pass in
2464 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2465 2)
2466 as_fn_append ac_configure_args1 " '$ac_arg'"
2467 if test $ac_must_keep_next = true; then
2468 ac_must_keep_next=false # Got value, back to normal.
2469 else
2470 case $ac_arg in
2471 *=* | --config-cache | -C | -disable-* | --disable-* \
2472 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2473 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2474 | -with-* | --with-* | -without-* | --without-* | --x)
2475 case "$ac_configure_args0 " in
2476 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2477 esac
2478 ;;
2479 -* ) ac_must_keep_next=true ;;
2480 esac
2481 fi
2482 as_fn_append ac_configure_args " '$ac_arg'"
2483 ;;
2484 esac
2485 done
2486done
2487{ ac_configure_args0=; unset ac_configure_args0;}
2488{ ac_configure_args1=; unset ac_configure_args1;}
2489
2490# When interrupted or exit'd, cleanup temporary files, and complete
2491# config.log. We remove comments because anyway the quotes in there
2492# would cause problems or look ugly.
2493# WARNING: Use '\'' to represent an apostrophe within the trap.
2494# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2495trap 'exit_status=$?
2496 # Save into config.log some information that might help in debugging.
2497 {
2498 echo
2499
2500 cat <<\_ASBOX
2501## ---------------- ##
2502## Cache variables. ##
2503## ---------------- ##
2504_ASBOX
2505 echo
2506 # The following way of writing the cache mishandles newlines in values,
2507(
2508 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2509 eval ac_val=\$$ac_var
2510 case $ac_val in #(
2511 *${as_nl}*)
2512 case $ac_var in #(
2513 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2514$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2515 esac
2516 case $ac_var in #(
2517 _ | IFS | as_nl) ;; #(
2518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2519 *) { eval $ac_var=; unset $ac_var;} ;;
2520 esac ;;
2521 esac
2522 done
2523 (set) 2>&1 |
2524 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2525 *${as_nl}ac_space=\ *)
2526 sed -n \
2527 "s/'\''/'\''\\\\'\'''\''/g;
2528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2529 ;; #(
2530 *)
2531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2532 ;;
2533 esac |
2534 sort
2535)
2536 echo
2537
2538 cat <<\_ASBOX
2539## ----------------- ##
2540## Output variables. ##
2541## ----------------- ##
2542_ASBOX
2543 echo
2544 for ac_var in $ac_subst_vars
2545 do
2546 eval ac_val=\$$ac_var
2547 case $ac_val in
2548 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2549 esac
2550 $as_echo "$ac_var='\''$ac_val'\''"
2551 done | sort
2552 echo
2553
2554 if test -n "$ac_subst_files"; then
2555 cat <<\_ASBOX
2556## ------------------- ##
2557## File substitutions. ##
2558## ------------------- ##
2559_ASBOX
2560 echo
2561 for ac_var in $ac_subst_files
2562 do
2563 eval ac_val=\$$ac_var
2564 case $ac_val in
2565 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2566 esac
2567 $as_echo "$ac_var='\''$ac_val'\''"
2568 done | sort
2569 echo
2570 fi
2571
2572 if test -s confdefs.h; then
2573 cat <<\_ASBOX
2574## ----------- ##
2575## confdefs.h. ##
2576## ----------- ##
2577_ASBOX
2578 echo
2579 cat confdefs.h
2580 echo
2581 fi
2582 test "$ac_signal" != 0 &&
2583 $as_echo "$as_me: caught signal $ac_signal"
2584 $as_echo "$as_me: exit $exit_status"
2585 } >&5
2586 rm -f core *.core core.conftest.* &&
2587 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2588 exit $exit_status
2589' 0
2590for ac_signal in 1 2 13 15; do
2591 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2592done
2593ac_signal=0
2594
2595# confdefs.h avoids OS command line length limits that DEFS can exceed.
2596rm -f -r conftest* confdefs.h
2597
2598$as_echo "/* confdefs.h */" > confdefs.h
2599
2600# Predefined preprocessor variables.
2601
2602cat >>confdefs.h <<_ACEOF
2603#define PACKAGE_NAME "$PACKAGE_NAME"
2604_ACEOF
2605
2606cat >>confdefs.h <<_ACEOF
2607#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2608_ACEOF
2609
2610cat >>confdefs.h <<_ACEOF
2611#define PACKAGE_VERSION "$PACKAGE_VERSION"
2612_ACEOF
2613
2614cat >>confdefs.h <<_ACEOF
2615#define PACKAGE_STRING "$PACKAGE_STRING"
2616_ACEOF
2617
2618cat >>confdefs.h <<_ACEOF
2619#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2620_ACEOF
2621
2622cat >>confdefs.h <<_ACEOF
2623#define PACKAGE_URL "$PACKAGE_URL"
2624_ACEOF
2625
2626
2627# Let the site file select an alternate cache file if it wants to.
2628# Prefer an explicitly selected file to automatically selected ones.
2629ac_site_file1=NONE
2630ac_site_file2=NONE
2631if test -n "$CONFIG_SITE"; then
2632 ac_site_file1=$CONFIG_SITE
2633elif test "x$prefix" != xNONE; then
2634 ac_site_file1=$prefix/share/config.site
2635 ac_site_file2=$prefix/etc/config.site
2636else
2637 ac_site_file1=$ac_default_prefix/share/config.site
2638 ac_site_file2=$ac_default_prefix/etc/config.site
2639fi
2640for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2641do
2642 test "x$ac_site_file" = xNONE && continue
2643 if test -r "$ac_site_file"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2645$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2646 sed 's/^/| /' "$ac_site_file" >&5
2647 . "$ac_site_file"
2648 fi
2649done
2650
2651if test -r "$cache_file"; then
2652 # Some versions of bash will fail to source /dev/null (special
2653 # files actually), so we avoid doing that.
2654 if test -f "$cache_file"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2656$as_echo "$as_me: loading cache $cache_file" >&6;}
2657 case $cache_file in
2658 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2659 *) . "./$cache_file";;
2660 esac
2661 fi
2662else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2664$as_echo "$as_me: creating cache $cache_file" >&6;}
2665 >$cache_file
2666fi
2667
2668gl_header_list="$gl_header_list stdint.h"
2669gl_header_list="$gl_header_list wchar.h"
2670gl_header_list="$gl_header_list string.h"
2671# Check that the precious variables saved in the cache have kept the same
2672# value.
2673ac_cache_corrupted=false
2674for ac_var in $ac_precious_vars; do
2675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2676 eval ac_new_set=\$ac_env_${ac_var}_set
2677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2678 eval ac_new_val=\$ac_env_${ac_var}_value
2679 case $ac_old_set,$ac_new_set in
2680 set,)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2682$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2683 ac_cache_corrupted=: ;;
2684 ,set)
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2686$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2687 ac_cache_corrupted=: ;;
2688 ,);;
2689 *)
2690 if test "x$ac_old_val" != "x$ac_new_val"; then
2691 # differences in whitespace do not lead to failure.
2692 ac_old_val_w=`echo x $ac_old_val`
2693 ac_new_val_w=`echo x $ac_new_val`
2694 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2696$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2697 ac_cache_corrupted=:
2698 else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2700$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2701 eval $ac_var=\$ac_old_val
2702 fi
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2704$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2706$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2707 fi;;
2708 esac
2709 # Pass precious variables to config.status.
2710 if test "$ac_new_set" = set; then
2711 case $ac_new_val in
2712 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 *) ac_arg=$ac_var=$ac_new_val ;;
2714 esac
2715 case " $ac_configure_args " in
2716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2717 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2718 esac
2719 fi
2720done
2721if $ac_cache_corrupted; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2725$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2726 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2727fi
2728## -------------------- ##
2729## Main body of script. ##
2730## -------------------- ##
2731
2732ac_ext=c
2733ac_cpp='$CPP $CPPFLAGS'
2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737
2738
2739
2740
2741
2742ac_config_headers="$ac_config_headers config.h:config.in"
2743
2744
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2746$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2747 # Check whether --enable-maintainer-mode was given.
2748if test "${enable_maintainer_mode+set}" = set; then :
2749 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2750else
2751 USE_MAINTAINER_MODE=no
2752fi
2753
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2755$as_echo "$USE_MAINTAINER_MODE" >&6; }
2756 if test $USE_MAINTAINER_MODE = yes; then
2757 MAINTAINER_MODE_TRUE=
2758 MAINTAINER_MODE_FALSE='#'
2759else
2760 MAINTAINER_MODE_TRUE='#'
2761 MAINTAINER_MODE_FALSE=
2762fi
2763
2764 MAINT=$MAINTAINER_MODE_TRUE
2765
2766
2767
2768ac_ext=c
2769ac_cpp='$CPP $CPPFLAGS'
2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2775set dummy ${ac_tool_prefix}gcc; ac_word=$2
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if test "${ac_cv_prog_CC+set}" = set; then :
2779 $as_echo_n "(cached) " >&6
2780else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795done
2796 done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801CC=$ac_cv_prog_CC
2802if test -n "$CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2804$as_echo "$CC" >&6; }
2805else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807$as_echo "no" >&6; }
2808fi
2809
2810
2811fi
2812if test -z "$ac_cv_prog_CC"; then
2813 ac_ct_CC=$CC
2814 # Extract the first word of "gcc", so it can be a program name with args.
2815set dummy gcc; ac_word=$2
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817$as_echo_n "checking for $ac_word... " >&6; }
2818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2819 $as_echo_n "(cached) " >&6
2820else
2821 if test -n "$ac_ct_CC"; then
2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CC="gcc"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835done
2836 done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842if test -n "$ac_ct_CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2844$as_echo "$ac_ct_CC" >&6; }
2845else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847$as_echo "no" >&6; }
2848fi
2849
2850 if test "x$ac_ct_CC" = x; then
2851 CC=""
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854yes:)
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857ac_tool_warned=yes ;;
2858esac
2859 CC=$ac_ct_CC
2860 fi
2861else
2862 CC="$ac_cv_prog_CC"
2863fi
2864
2865if test -z "$CC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2868set dummy ${ac_tool_prefix}cc; ac_word=$2
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if test "${ac_cv_prog_CC+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
2873else
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_CC="${ac_tool_prefix}cc"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
2889 done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894CC=$ac_cv_prog_CC
2895if test -n "$CC"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897$as_echo "$CC" >&6; }
2898else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
2902
2903
2904 fi
2905fi
2906if test -z "$CC"; then
2907 # Extract the first word of "cc", so it can be a program name with args.
2908set dummy cc; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
2911if test "${ac_cv_prog_CC+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2913else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916else
2917 ac_prog_rejected=no
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926 ac_prog_rejected=yes
2927 continue
2928 fi
2929 ac_cv_prog_CC="cc"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933done
2934 done
2935IFS=$as_save_IFS
2936
2937if test $ac_prog_rejected = yes; then
2938 # We found a bogon in the path, so make sure we never use it.
2939 set dummy $ac_cv_prog_CC
2940 shift
2941 if test $# != 0; then
2942 # We chose a different compiler from the bogus one.
2943 # However, it has the same basename, so the bogon will be chosen
2944 # first if we set CC to just the basename; use the full file name.
2945 shift
2946 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2947 fi
2948fi
2949fi
2950fi
2951CC=$ac_cv_prog_CC
2952if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954$as_echo "$CC" >&6; }
2955else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957$as_echo "no" >&6; }
2958fi
2959
2960
2961fi
2962if test -z "$CC"; then
2963 if test -n "$ac_tool_prefix"; then
2964 for ac_prog in cl.exe
2965 do
2966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if test "${ac_cv_prog_CC+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
2972else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987done
2988 done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993CC=$ac_cv_prog_CC
2994if test -n "$CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2996$as_echo "$CC" >&6; }
2997else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002
3003 test -n "$CC" && break
3004 done
3005fi
3006if test -z "$CC"; then
3007 ac_ct_CC=$CC
3008 for ac_prog in cl.exe
3009do
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011set dummy $ac_prog; ac_word=$2
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
3014if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3015 $as_echo_n "(cached) " >&6
3016else
3017 if test -n "$ac_ct_CC"; then
3018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_ac_ct_CC="$ac_prog"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031done
3032 done
3033IFS=$as_save_IFS
3034
3035fi
3036fi
3037ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038if test -n "$ac_ct_CC"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3040$as_echo "$ac_ct_CC" >&6; }
3041else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
3044fi
3045
3046
3047 test -n "$ac_ct_CC" && break
3048done
3049
3050 if test "x$ac_ct_CC" = x; then
3051 CC=""
3052 else
3053 case $cross_compiling:$ac_tool_warned in
3054yes:)
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057ac_tool_warned=yes ;;
3058esac
3059 CC=$ac_ct_CC
3060 fi
3061fi
3062
3063fi
3064
3065
3066test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068as_fn_error "no acceptable C compiler found in \$PATH
3069See \`config.log' for more details." "$LINENO" 5; }
3070
3071# Provide some information about the compiler.
3072$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3073set X $ac_compile
3074ac_compiler=$2
3075for ac_option in --version -v -V -qversion; do
3076 { { ac_try="$ac_compiler $ac_option >&5"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082$as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3084 ac_status=$?
3085 if test -s conftest.err; then
3086 sed '10a\
3087... rest of stderr output deleted ...
3088 10q' conftest.err >conftest.er1
3089 cat conftest.er1 >&5
3090 rm -f conftest.er1 conftest.err
3091 fi
3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3093 test $ac_status = 0; }
3094done
3095
3096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3097/* end confdefs.h. */
3098
3099int
3100main ()
3101{
3102
3103 ;
3104 return 0;
3105}
3106_ACEOF
3107ac_clean_files_save=$ac_clean_files
3108ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3109# Try to create an executable without -o first, disregard a.out.
3110# It will help us diagnose broken compilers, and finding out an intuition
3111# of exeext.
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3113$as_echo_n "checking for C compiler default output file name... " >&6; }
3114ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3115
3116# The possible output files:
3117ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3118
3119ac_rmfiles=
3120for ac_file in $ac_files
3121do
3122 case $ac_file in
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3125 esac
3126done
3127rm -f $ac_rmfiles
3128
3129if { { ac_try="$ac_link_default"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135$as_echo "$ac_try_echo"; } >&5
3136 (eval "$ac_link_default") 2>&5
3137 ac_status=$?
3138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139 test $ac_status = 0; }; then :
3140 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3141# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3142# in a Makefile. We should not override ac_cv_exeext if it was cached,
3143# so that the user can short-circuit this test for compilers unknown to
3144# Autoconf.
3145for ac_file in $ac_files ''
3146do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3150 ;;
3151 [ab].out )
3152 # We found the default executable, but exeext='' is most
3153 # certainly right.
3154 break;;
3155 *.* )
3156 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3157 then :; else
3158 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3159 fi
3160 # We set ac_cv_exeext here because the later test for it is not
3161 # safe: cross compilers may not add the suffix if given an `-o'
3162 # argument, so we may need to know it at that point already.
3163 # Even if this section looks crufty: it has the advantage of
3164 # actually working.
3165 break;;
3166 * )
3167 break;;
3168 esac
3169done
3170test "$ac_cv_exeext" = no && ac_cv_exeext=
3171
3172else
3173 ac_file=''
3174fi
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176$as_echo "$ac_file" >&6; }
3177if test -z "$ac_file"; then :
3178 $as_echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183{ as_fn_set_status 77
3184as_fn_error "C compiler cannot create executables
3185See \`config.log' for more details." "$LINENO" 5; }; }
3186fi
3187ac_exeext=$ac_cv_exeext
3188
3189# Check that the compiler produces executables we can run. If not, either
3190# the compiler is broken, or we cross compile.
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3192$as_echo_n "checking whether the C compiler works... " >&6; }
3193# If not cross compiling, check that we can run a simple program.
3194if test "$cross_compiling" != yes; then
3195 if { ac_try='./$ac_file'
3196 { { case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201$as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }; }; then
3206 cross_compiling=no
3207 else
3208 if test "$cross_compiling" = maybe; then
3209 cross_compiling=yes
3210 else
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213as_fn_error "cannot run C compiled programs.
3214If you meant to cross compile, use \`--host'.
3215See \`config.log' for more details." "$LINENO" 5; }
3216 fi
3217 fi
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220$as_echo "yes" >&6; }
3221
3222rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3223ac_clean_files=$ac_clean_files_save
3224# Check that the compiler produces executables we can run. If not, either
3225# the compiler is broken, or we cross compile.
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3227$as_echo_n "checking whether we are cross compiling... " >&6; }
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3229$as_echo "$cross_compiling" >&6; }
3230
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3232$as_echo_n "checking for suffix of executables... " >&6; }
3233if { { ac_try="$ac_link"
3234case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237esac
3238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239$as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_link") 2>&5
3241 ac_status=$?
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }; then :
3244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3245# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3246# work properly (i.e., refer to `conftest.exe'), while it won't with
3247# `rm'.
3248for ac_file in conftest.exe conftest conftest.*; do
3249 test -f "$ac_file" || continue
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253 break;;
3254 * ) break;;
3255 esac
3256done
3257else
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260as_fn_error "cannot compute suffix of executables: cannot compile and link
3261See \`config.log' for more details." "$LINENO" 5; }
3262fi
3263rm -f conftest$ac_cv_exeext
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3265$as_echo "$ac_cv_exeext" >&6; }
3266
3267rm -f conftest.$ac_ext
3268EXEEXT=$ac_cv_exeext
3269ac_exeext=$EXEEXT
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3271$as_echo_n "checking for suffix of object files... " >&6; }
3272if test "${ac_cv_objext+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3274else
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276/* end confdefs.h. */
3277
3278int
3279main ()
3280{
3281
3282 ;
3283 return 0;
3284}
3285_ACEOF
3286rm -f conftest.o conftest.obj
3287if { { ac_try="$ac_compile"
3288case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293$as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_compile") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }; then :
3298 for ac_file in conftest.o conftest.obj conftest.*; do
3299 test -f "$ac_file" || continue;
3300 case $ac_file in
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303 break;;
3304 esac
3305done
3306else
3307 $as_echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312as_fn_error "cannot compute suffix of object files: cannot compile
3313See \`config.log' for more details." "$LINENO" 5; }
3314fi
3315rm -f conftest.$ac_cv_objext conftest.$ac_ext
3316fi
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3318$as_echo "$ac_cv_objext" >&6; }
3319OBJEXT=$ac_cv_objext
3320ac_objext=$OBJEXT
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3322$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3323if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3325else
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327/* end confdefs.h. */
3328
3329int
3330main ()
3331{
3332#ifndef __GNUC__
3333 choke me
3334#endif
3335
3336 ;
3337 return 0;
3338}
3339_ACEOF
3340if ac_fn_c_try_compile "$LINENO"; then :
3341 ac_compiler_gnu=yes
3342else
3343 ac_compiler_gnu=no
3344fi
3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346ac_cv_c_compiler_gnu=$ac_compiler_gnu
3347
3348fi
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3350$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3351if test $ac_compiler_gnu = yes; then
3352 GCC=yes
3353else
3354 GCC=
3355fi
3356ac_test_CFLAGS=${CFLAGS+set}
3357ac_save_CFLAGS=$CFLAGS
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3359$as_echo_n "checking whether $CC accepts -g... " >&6; }
3360if test "${ac_cv_prog_cc_g+set}" = set; then :
3361 $as_echo_n "(cached) " >&6
3362else
3363 ac_save_c_werror_flag=$ac_c_werror_flag
3364 ac_c_werror_flag=yes
3365 ac_cv_prog_cc_g=no
3366 CFLAGS="-g"
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368/* end confdefs.h. */
3369
3370int
3371main ()
3372{
3373
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378if ac_fn_c_try_compile "$LINENO"; then :
3379 ac_cv_prog_cc_g=yes
3380else
3381 CFLAGS=""
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383/* end confdefs.h. */
3384
3385int
3386main ()
3387{
3388
3389 ;
3390 return 0;
3391}
3392_ACEOF
3393if ac_fn_c_try_compile "$LINENO"; then :
3394
3395else
3396 ac_c_werror_flag=$ac_save_c_werror_flag
3397 CFLAGS="-g"
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399/* end confdefs.h. */
3400
3401int
3402main ()
3403{
3404
3405 ;
3406 return 0;
3407}
3408_ACEOF
3409if ac_fn_c_try_compile "$LINENO"; then :
3410 ac_cv_prog_cc_g=yes
3411fi
3412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413fi
3414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415fi
3416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 ac_c_werror_flag=$ac_save_c_werror_flag
3418fi
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3420$as_echo "$ac_cv_prog_cc_g" >&6; }
3421if test "$ac_test_CFLAGS" = set; then
3422 CFLAGS=$ac_save_CFLAGS
3423elif test $ac_cv_prog_cc_g = yes; then
3424 if test "$GCC" = yes; then
3425 CFLAGS="-g -O2"
3426 else
3427 CFLAGS="-g"
3428 fi
3429else
3430 if test "$GCC" = yes; then
3431 CFLAGS="-O2"
3432 else
3433 CFLAGS=
3434 fi
3435fi
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3437$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3438if test "${ac_cv_prog_cc_c89+set}" = set; then :
3439 $as_echo_n "(cached) " >&6
3440else
3441 ac_cv_prog_cc_c89=no
3442ac_save_CC=$CC
3443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h. */
3445#include <stdarg.h>
3446#include <stdio.h>
3447#include <sys/types.h>
3448#include <sys/stat.h>
3449/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3450struct buf { int x; };
3451FILE * (*rcsopen) (struct buf *, struct stat *, int);
3452static char *e (p, i)
3453 char **p;
3454 int i;
3455{
3456 return p[i];
3457}
3458static char *f (char * (*g) (char **, int), char **p, ...)
3459{
3460 char *s;
3461 va_list v;
3462 va_start (v,p);
3463 s = g (p, va_arg (v,int));
3464 va_end (v);
3465 return s;
3466}
3467
3468/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3469 function prototypes and stuff, but not '\xHH' hex character constants.
3470 These don't provoke an error unfortunately, instead are silently treated
3471 as 'x'. The following induces an error, until -std is added to get
3472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3473 array size at least. It's necessary to write '\x00'==0 to get something
3474 that's true only with -std. */
3475int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3476
3477/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3478 inside strings and character constants. */
3479#define FOO(x) 'x'
3480int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3481
3482int test (int i, double x);
3483struct s1 {int (*f) (int a);};
3484struct s2 {int (*f) (double a);};
3485int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3486int argc;
3487char **argv;
3488int
3489main ()
3490{
3491return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3492 ;
3493 return 0;
3494}
3495_ACEOF
3496for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3498do
3499 CC="$ac_save_CC $ac_arg"
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_cv_prog_cc_c89=$ac_arg
3502fi
3503rm -f core conftest.err conftest.$ac_objext
3504 test "x$ac_cv_prog_cc_c89" != "xno" && break
3505done
3506rm -f conftest.$ac_ext
3507CC=$ac_save_CC
3508
3509fi
3510# AC_CACHE_VAL
3511case "x$ac_cv_prog_cc_c89" in
3512 x)
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3514$as_echo "none needed" >&6; } ;;
3515 xno)
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3517$as_echo "unsupported" >&6; } ;;
3518 *)
3519 CC="$CC $ac_cv_prog_cc_c89"
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3521$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3522esac
3523if test "x$ac_cv_prog_cc_c89" != xno; then :
3524
3525fi
3526
3527ac_ext=c
3528ac_cpp='$CPP $CPPFLAGS'
3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3540$as_echo_n "checking how to run the C preprocessor... " >&6; }
3541# On Suns, sometimes $CPP names a directory.
3542if test -n "$CPP" && test -d "$CPP"; then
3543 CPP=
3544fi
3545if test -z "$CPP"; then
3546 if test "${ac_cv_prog_CPP+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548else
3549 # Double quotes because CPP needs to be expanded
3550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3551 do
3552 ac_preproc_ok=false
3553for ac_c_preproc_warn_flag in '' yes
3554do
3555 # Use a header file that comes with gcc, so configuring glibc
3556 # with a fresh cross-compiler works.
3557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558 # <limits.h> exists even on freestanding compilers.
3559 # On the NeXT, cc -E runs the code through the compiler's parser,
3560 # not just through cpp. "Syntax error" is here to catch this case.
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h. */
3563#ifdef __STDC__
3564# include <limits.h>
3565#else
3566# include <assert.h>
3567#endif
3568 Syntax error
3569_ACEOF
3570if ac_fn_c_try_cpp "$LINENO"; then :
3571
3572else
3573 # Broken: fails on valid input.
3574continue
3575fi
3576rm -f conftest.err conftest.$ac_ext
3577
3578 # OK, works on sane cases. Now check whether nonexistent headers
3579 # can be detected and how.
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h. */
3582#include <ac_nonexistent.h>
3583_ACEOF
3584if ac_fn_c_try_cpp "$LINENO"; then :
3585 # Broken: success on invalid input.
3586continue
3587else
3588 # Passes both tests.
3589ac_preproc_ok=:
3590break
3591fi
3592rm -f conftest.err conftest.$ac_ext
3593
3594done
3595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596rm -f conftest.err conftest.$ac_ext
3597if $ac_preproc_ok; then :
3598 break
3599fi
3600
3601 done
3602 ac_cv_prog_CPP=$CPP
3603
3604fi
3605 CPP=$ac_cv_prog_CPP
3606else
3607 ac_cv_prog_CPP=$CPP
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3610$as_echo "$CPP" >&6; }
3611ac_preproc_ok=false
3612for ac_c_preproc_warn_flag in '' yes
3613do
3614 # Use a header file that comes with gcc, so configuring glibc
3615 # with a fresh cross-compiler works.
3616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617 # <limits.h> exists even on freestanding compilers.
3618 # On the NeXT, cc -E runs the code through the compiler's parser,
3619 # not just through cpp. "Syntax error" is here to catch this case.
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621/* end confdefs.h. */
3622#ifdef __STDC__
3623# include <limits.h>
3624#else
3625# include <assert.h>
3626#endif
3627 Syntax error
3628_ACEOF
3629if ac_fn_c_try_cpp "$LINENO"; then :
3630
3631else
3632 # Broken: fails on valid input.
3633continue
3634fi
3635rm -f conftest.err conftest.$ac_ext
3636
3637 # OK, works on sane cases. Now check whether nonexistent headers
3638 # can be detected and how.
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h. */
3641#include <ac_nonexistent.h>
3642_ACEOF
3643if ac_fn_c_try_cpp "$LINENO"; then :
3644 # Broken: success on invalid input.
3645continue
3646else
3647 # Passes both tests.
3648ac_preproc_ok=:
3649break
3650fi
3651rm -f conftest.err conftest.$ac_ext
3652
3653done
3654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655rm -f conftest.err conftest.$ac_ext
3656if $ac_preproc_ok; then :
3657
3658else
3659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661as_fn_error "C preprocessor \"$CPP\" fails sanity check
3662See \`config.log' for more details." "$LINENO" 5; }
3663fi
3664
3665ac_ext=c
3666ac_cpp='$CPP $CPPFLAGS'
3667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670
3671
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3673$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3674if test "${ac_cv_path_GREP+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
3676else
3677 if test -z "$GREP"; then
3678 ac_path_GREP_found=false
3679 # Loop through the user's path and test for each of PROGNAME-LIST
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3682do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_prog in grep ggrep; do
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3688 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3689# Check for GNU ac_path_GREP and select it if it is found.
3690 # Check for GNU $ac_path_GREP
3691case `"$ac_path_GREP" --version 2>&1` in
3692*GNU*)
3693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694*)
3695 ac_count=0
3696 $as_echo_n 0123456789 >"conftest.in"
3697 while :
3698 do
3699 cat "conftest.in" "conftest.in" >"conftest.tmp"
3700 mv "conftest.tmp" "conftest.in"
3701 cp "conftest.in" "conftest.nl"
3702 $as_echo 'GREP' >> "conftest.nl"
3703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3705 as_fn_arith $ac_count + 1 && ac_count=$as_val
3706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707 # Best one so far, save it but keep looking for a better one
3708 ac_cv_path_GREP="$ac_path_GREP"
3709 ac_path_GREP_max=$ac_count
3710 fi
3711 # 10*(2^10) chars as input seems more than enough
3712 test $ac_count -gt 10 && break
3713 done
3714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715esac
3716
3717 $ac_path_GREP_found && break 3
3718 done
3719 done
3720 done
3721IFS=$as_save_IFS
3722 if test -z "$ac_cv_path_GREP"; then
3723 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3724 fi
3725else
3726 ac_cv_path_GREP=$GREP
3727fi
3728
3729fi
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3731$as_echo "$ac_cv_path_GREP" >&6; }
3732 GREP="$ac_cv_path_GREP"
3733
3734
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3736$as_echo_n "checking for egrep... " >&6; }
3737if test "${ac_cv_path_EGREP+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739else
3740 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3741 then ac_cv_path_EGREP="$GREP -E"
3742 else
3743 if test -z "$EGREP"; then
3744 ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3755# Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757case `"$ac_path_EGREP" --version 2>&1` in
3758*GNU*)
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760*)
3761 ac_count=0
3762 $as_echo_n 0123456789 >"conftest.in"
3763 while :
3764 do
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 $as_echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 as_fn_arith $ac_count + 1 && ac_count=$as_val
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3776 fi
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781esac
3782
3783 $ac_path_EGREP_found && break 3
3784 done
3785 done
3786 done
3787IFS=$as_save_IFS
3788 if test -z "$ac_cv_path_EGREP"; then
3789 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3790 fi
3791else
3792 ac_cv_path_EGREP=$EGREP
3793fi
3794
3795 fi
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3798$as_echo "$ac_cv_path_EGREP" >&6; }
3799 EGREP="$ac_cv_path_EGREP"
3800
3801
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3803$as_echo_n "checking for ANSI C header files... " >&6; }
3804if test "${ac_cv_header_stdc+set}" = set; then :
3805 $as_echo_n "(cached) " >&6
3806else
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808/* end confdefs.h. */
3809#include <stdlib.h>
3810#include <stdarg.h>
3811#include <string.h>
3812#include <float.h>
3813
3814int
3815main ()
3816{
3817
3818 ;
3819 return 0;
3820}
3821_ACEOF
3822if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_cv_header_stdc=yes
3824else
3825 ac_cv_header_stdc=no
3826fi
3827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828
3829if test $ac_cv_header_stdc = yes; then
3830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832/* end confdefs.h. */
3833#include <string.h>
3834
3835_ACEOF
3836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3837 $EGREP "memchr" >/dev/null 2>&1; then :
3838
3839else
3840 ac_cv_header_stdc=no
3841fi
3842rm -f conftest*
3843
3844fi
3845
3846if test $ac_cv_header_stdc = yes; then
3847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h. */
3850#include <stdlib.h>
3851
3852_ACEOF
3853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3854 $EGREP "free" >/dev/null 2>&1; then :
3855
3856else
3857 ac_cv_header_stdc=no
3858fi
3859rm -f conftest*
3860
3861fi
3862
3863if test $ac_cv_header_stdc = yes; then
3864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3865 if test "$cross_compiling" = yes; then :
3866 :
3867else
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869/* end confdefs.h. */
3870#include <ctype.h>
3871#include <stdlib.h>
3872#if ((' ' & 0x0FF) == 0x020)
3873# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3874# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3875#else
3876# define ISLOWER(c) \
3877 (('a' <= (c) && (c) <= 'i') \
3878 || ('j' <= (c) && (c) <= 'r') \
3879 || ('s' <= (c) && (c) <= 'z'))
3880# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3881#endif
3882
3883#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3884int
3885main ()
3886{
3887 int i;
3888 for (i = 0; i < 256; i++)
3889 if (XOR (islower (i), ISLOWER (i))
3890 || toupper (i) != TOUPPER (i))
3891 return 2;
3892 return 0;
3893}
3894_ACEOF
3895if ac_fn_c_try_run "$LINENO"; then :
3896
3897else
3898 ac_cv_header_stdc=no
3899fi
3900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3901 conftest.$ac_objext conftest.beam conftest.$ac_ext
3902fi
3903
3904fi
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3907$as_echo "$ac_cv_header_stdc" >&6; }
3908if test $ac_cv_header_stdc = yes; then
3909
3910$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3911
3912fi
3913
3914# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3915for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3916 inttypes.h stdint.h unistd.h
3917do :
3918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3919ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3920"
3921eval as_val=\$$as_ac_Header
3922 if test "x$as_val" = x""yes; then :
3923 cat >>confdefs.h <<_ACEOF
3924#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3925_ACEOF
3926
3927fi
3928
3929done
3930
3931
3932
3933 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3934if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3935 MINIX=yes
3936else
3937 MINIX=
3938fi
3939
3940
3941 if test "$MINIX" = yes; then
3942
3943$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3944
3945
3946$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3947
3948
3949$as_echo "#define _MINIX 1" >>confdefs.h
3950
3951 fi
3952
3953
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3955$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3956if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3958else
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h. */
3961
3962# define __EXTENSIONS__ 1
3963 $ac_includes_default
3964int
3965main ()
3966{
3967
3968 ;
3969 return 0;
3970}
3971_ACEOF
3972if ac_fn_c_try_compile "$LINENO"; then :
3973 ac_cv_safe_to_define___extensions__=yes
3974else
3975 ac_cv_safe_to_define___extensions__=no
3976fi
3977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3980$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3981 test $ac_cv_safe_to_define___extensions__ = yes &&
3982 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3983
3984 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3985
3986 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3987
3988 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3989
3990 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3991
3992
3993if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3995set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997$as_echo_n "checking for $ac_word... " >&6; }
3998if test "${ac_cv_prog_RANLIB+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4000else
4001 if test -n "$RANLIB"; then
4002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4003else
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015done
4016 done
4017IFS=$as_save_IFS
4018
4019fi
4020fi
4021RANLIB=$ac_cv_prog_RANLIB
4022if test -n "$RANLIB"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4024$as_echo "$RANLIB" >&6; }
4025else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027$as_echo "no" >&6; }
4028fi
4029
4030
4031fi
4032if test -z "$ac_cv_prog_RANLIB"; then
4033 ac_ct_RANLIB=$RANLIB
4034 # Extract the first word of "ranlib", so it can be a program name with args.
4035set dummy ranlib; ac_word=$2
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037$as_echo_n "checking for $ac_word... " >&6; }
4038if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040else
4041 if test -n "$ac_ct_RANLIB"; then
4042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4043else
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_prog_ac_ct_RANLIB="ranlib"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4054 fi
4055done
4056 done
4057IFS=$as_save_IFS
4058
4059fi
4060fi
4061ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4062if test -n "$ac_ct_RANLIB"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4064$as_echo "$ac_ct_RANLIB" >&6; }
4065else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067$as_echo "no" >&6; }
4068fi
4069
4070 if test "x$ac_ct_RANLIB" = x; then
4071 RANLIB=":"
4072 else
4073 case $cross_compiling:$ac_tool_warned in
4074yes:)
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4077ac_tool_warned=yes ;;
4078esac
4079 RANLIB=$ac_ct_RANLIB
4080 fi
4081else
4082 RANLIB="$ac_cv_prog_RANLIB"
4083fi
4084
4085
4086
4087
4088
4089
4090ac_aux_dir=
4091for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4092 for ac_t in install-sh install.sh shtool; do
4093 if test -f "$ac_dir/$ac_t"; then
4094 ac_aux_dir=$ac_dir
4095 ac_install_sh="$ac_aux_dir/$ac_t -c"
4096 break 2
4097 fi
4098 done
4099done
4100if test -z "$ac_aux_dir"; then
4101 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4102fi
4103
4104# These three variables are undocumented and unsupported,
4105# and are intended to be withdrawn in a future Autoconf release.
4106# They can cause serious problems if a builder's source tree is in a directory
4107# whose full name contains unusual characters.
4108ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4109ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4110ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4111
4112
4113# Make sure we can run config.sub.
4114$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4115 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4116
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4118$as_echo_n "checking build system type... " >&6; }
4119if test "${ac_cv_build+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121else
4122 ac_build_alias=$build_alias
4123test "x$ac_build_alias" = x &&
4124 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4125test "x$ac_build_alias" = x &&
4126 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4127ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4128 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4129
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4132$as_echo "$ac_cv_build" >&6; }
4133case $ac_cv_build in
4134*-*-*) ;;
4135*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4136esac
4137build=$ac_cv_build
4138ac_save_IFS=$IFS; IFS='-'
4139set x $ac_cv_build
4140shift
4141build_cpu=$1
4142build_vendor=$2
4143shift; shift
4144# Remember, the first character of IFS is used to create $*,
4145# except with old shells:
4146build_os=$*
4147IFS=$ac_save_IFS
4148case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4149
4150
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4152$as_echo_n "checking host system type... " >&6; }
4153if test "${ac_cv_host+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4155else
4156 if test "x$host_alias" = x; then
4157 ac_cv_host=$ac_cv_build
4158else
4159 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4160 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4161fi
4162
4163fi
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4165$as_echo "$ac_cv_host" >&6; }
4166case $ac_cv_host in
4167*-*-*) ;;
4168*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4169esac
4170host=$ac_cv_host
4171ac_save_IFS=$IFS; IFS='-'
4172set x $ac_cv_host
4173shift
4174host_cpu=$1
4175host_vendor=$2
4176shift; shift
4177# Remember, the first character of IFS is used to create $*,
4178# except with old shells:
4179host_os=$*
4180IFS=$ac_save_IFS
4181case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4182
4183
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4185$as_echo_n "checking target system type... " >&6; }
4186if test "${ac_cv_target+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4188else
4189 if test "x$target_alias" = x; then
4190 ac_cv_target=$ac_cv_host
4191else
4192 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4193 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4194fi
4195
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4198$as_echo "$ac_cv_target" >&6; }
4199case $ac_cv_target in
4200*-*-*) ;;
4201*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4202esac
4203target=$ac_cv_target
4204ac_save_IFS=$IFS; IFS='-'
4205set x $ac_cv_target
4206shift
4207target_cpu=$1
4208target_vendor=$2
4209shift; shift
4210# Remember, the first character of IFS is used to create $*,
4211# except with old shells:
4212target_os=$*
4213IFS=$ac_save_IFS
4214case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4215
4216
4217# The aliases save the names the user supplied, while $host etc.
4218# will get canonicalized.
4219test -n "$target_alias" &&
4220 test "$program_prefix$program_suffix$program_transform_name" = \
4221 NONENONEs,x,x, &&
4222 program_prefix=${target_alias}-
4223
4224# The tests for host and target for $enable_largefile require
4225# canonical names.
4226
4227
4228
4229# As the $enable_largefile decision depends on --enable-plugins we must set it
4230# even in directories otherwise not depending on the $plugins option.
4231
4232
4233# Check whether --enable-plugins was given.
4234if test "${enable_plugins+set}" = set; then :
4235 enableval=$enable_plugins; case "${enableval}" in
4236 yes | "") plugins=yes ;;
4237 no) plugins=no ;;
4238 *) plugins=yes ;;
4239 esac
4240else
4241 plugins=no
4242fi
4243
4244
4245
4246case "${host}" in
4247 sparc-*-solaris*|i[3-7]86-*-solaris*)
4248 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4249 # are mutually exclusive; and without procfs support, the bfd/ elf module
4250 # cannot provide certain routines such as elfcore_write_prpsinfo
4251 # or elfcore_write_prstatus. So unless the user explicitly requested
4252 # large-file support through the --enable-largefile switch, disable
4253 # large-file support in favor of procfs support.
4254 test "${target}" = "${host}" -a "x$plugins" = xno \
4255 && : ${enable_largefile="no"}
4256 ;;
4257esac
4258
4259# Check whether --enable-largefile was given.
4260if test "${enable_largefile+set}" = set; then :
4261 enableval=$enable_largefile;
4262fi
4263
4264if test "$enable_largefile" != no; then
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4267$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4268if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270else
4271 ac_cv_sys_largefile_CC=no
4272 if test "$GCC" != yes; then
4273 ac_save_CC=$CC
4274 while :; do
4275 # IRIX 6.2 and later do not support large files by default,
4276 # so use the C compiler's -n32 option if that helps.
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h. */
4279#include <sys/types.h>
4280 /* Check that off_t can represent 2**63 - 1 correctly.
4281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4282 since some C++ compilers masquerading as C compilers
4283 incorrectly reject 9223372036854775807. */
4284#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4286 && LARGE_OFF_T % 2147483647 == 1)
4287 ? 1 : -1];
4288int
4289main ()
4290{
4291
4292 ;
4293 return 0;
4294}
4295_ACEOF
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 break
4298fi
4299rm -f core conftest.err conftest.$ac_objext
4300 CC="$CC -n32"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_sys_largefile_CC=' -n32'; break
4303fi
4304rm -f core conftest.err conftest.$ac_objext
4305 break
4306 done
4307 CC=$ac_save_CC
4308 rm -f conftest.$ac_ext
4309 fi
4310fi
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4312$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4313 if test "$ac_cv_sys_largefile_CC" != no; then
4314 CC=$CC$ac_cv_sys_largefile_CC
4315 fi
4316
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4318$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4319if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321else
4322 while :; do
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324/* end confdefs.h. */
4325#include <sys/types.h>
4326 /* Check that off_t can represent 2**63 - 1 correctly.
4327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4328 since some C++ compilers masquerading as C compilers
4329 incorrectly reject 9223372036854775807. */
4330#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4332 && LARGE_OFF_T % 2147483647 == 1)
4333 ? 1 : -1];
4334int
4335main ()
4336{
4337
4338 ;
4339 return 0;
4340}
4341_ACEOF
4342if ac_fn_c_try_compile "$LINENO"; then :
4343 ac_cv_sys_file_offset_bits=no; break
4344fi
4345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347/* end confdefs.h. */
4348#define _FILE_OFFSET_BITS 64
4349#include <sys/types.h>
4350 /* Check that off_t can represent 2**63 - 1 correctly.
4351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4352 since some C++ compilers masquerading as C compilers
4353 incorrectly reject 9223372036854775807. */
4354#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4356 && LARGE_OFF_T % 2147483647 == 1)
4357 ? 1 : -1];
4358int
4359main ()
4360{
4361
4362 ;
4363 return 0;
4364}
4365_ACEOF
4366if ac_fn_c_try_compile "$LINENO"; then :
4367 ac_cv_sys_file_offset_bits=64; break
4368fi
4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 ac_cv_sys_file_offset_bits=unknown
4371 break
4372done
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4375$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4376case $ac_cv_sys_file_offset_bits in #(
4377 no | unknown) ;;
4378 *)
4379cat >>confdefs.h <<_ACEOF
4380#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4381_ACEOF
4382;;
4383esac
4384rm -rf conftest*
4385 if test $ac_cv_sys_file_offset_bits = unknown; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4387$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4388if test "${ac_cv_sys_large_files+set}" = set; then :
4389 $as_echo_n "(cached) " >&6
4390else
4391 while :; do
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h. */
4394#include <sys/types.h>
4395 /* Check that off_t can represent 2**63 - 1 correctly.
4396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4397 since some C++ compilers masquerading as C compilers
4398 incorrectly reject 9223372036854775807. */
4399#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4401 && LARGE_OFF_T % 2147483647 == 1)
4402 ? 1 : -1];
4403int
4404main ()
4405{
4406
4407 ;
4408 return 0;
4409}
4410_ACEOF
4411if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_cv_sys_large_files=no; break
4413fi
4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h. */
4417#define _LARGE_FILES 1
4418#include <sys/types.h>
4419 /* Check that off_t can represent 2**63 - 1 correctly.
4420 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4421 since some C++ compilers masquerading as C compilers
4422 incorrectly reject 9223372036854775807. */
4423#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4424 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4425 && LARGE_OFF_T % 2147483647 == 1)
4426 ? 1 : -1];
4427int
4428main ()
4429{
4430
4431 ;
4432 return 0;
4433}
4434_ACEOF
4435if ac_fn_c_try_compile "$LINENO"; then :
4436 ac_cv_sys_large_files=1; break
4437fi
4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 ac_cv_sys_large_files=unknown
4440 break
4441done
4442fi
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4444$as_echo "$ac_cv_sys_large_files" >&6; }
4445case $ac_cv_sys_large_files in #(
4446 no | unknown) ;;
4447 *)
4448cat >>confdefs.h <<_ACEOF
4449#define _LARGE_FILES $ac_cv_sys_large_files
4450_ACEOF
4451;;
4452esac
4453rm -rf conftest*
4454 fi
4455fi
4456
4457
4458
4459
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4462$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4463if test "${am_cv_prog_cc_stdc+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465else
4466 am_cv_prog_cc_stdc=no
4467ac_save_CC="$CC"
4468# Don't try gcc -ansi; that turns off useful extensions and
4469# breaks some systems' header files.
4470# AIX -qlanglvl=ansi
4471# Ultrix and OSF/1 -std1
4472# HP-UX 10.20 and later -Ae
4473# HP-UX older versions -Aa -D_HPUX_SOURCE
4474# SVR4 -Xc -D__EXTENSIONS__
4475for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4476do
4477 CC="$ac_save_CC $ac_arg"
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479/* end confdefs.h. */
4480#include <stdarg.h>
4481#include <stdio.h>
4482#include <sys/types.h>
4483#include <sys/stat.h>
4484/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4485struct buf { int x; };
4486FILE * (*rcsopen) (struct buf *, struct stat *, int);
4487static char *e (p, i)
4488 char **p;
4489 int i;
4490{
4491 return p[i];
4492}
4493static char *f (char * (*g) (char **, int), char **p, ...)
4494{
4495 char *s;
4496 va_list v;
4497 va_start (v,p);
4498 s = g (p, va_arg (v,int));
4499 va_end (v);
4500 return s;
4501}
4502int test (int i, double x);
4503struct s1 {int (*f) (int a);};
4504struct s2 {int (*f) (double a);};
4505int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4506int argc;
4507char **argv;
4508
4509int
4510main ()
4511{
4512
4513return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4514
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519if ac_fn_c_try_compile "$LINENO"; then :
4520 am_cv_prog_cc_stdc="$ac_arg"; break
4521fi
4522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523done
4524CC="$ac_save_CC"
4525
4526fi
4527
4528if test -z "$am_cv_prog_cc_stdc"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4530$as_echo "none needed" >&6; }
4531else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4533$as_echo "$am_cv_prog_cc_stdc" >&6; }
4534fi
4535case "x$am_cv_prog_cc_stdc" in
4536 x|xno) ;;
4537 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4538esac
4539
4540
4541ac_aux_dir=
4542for ac_dir in .. "$srcdir"/..; do
4543 for ac_t in install-sh install.sh shtool; do
4544 if test -f "$ac_dir/$ac_t"; then
4545 ac_aux_dir=$ac_dir
4546 ac_install_sh="$ac_aux_dir/$ac_t -c"
4547 break 2
4548 fi
4549 done
4550done
4551if test -z "$ac_aux_dir"; then
4552 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4553fi
4554
4555# These three variables are undocumented and unsupported,
4556# and are intended to be withdrawn in a future Autoconf release.
4557# They can cause serious problems if a builder's source tree is in a directory
4558# whose full name contains unusual characters.
4559ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4560ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4561ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4562
4563
4564
4565
4566# Dependency checking.
4567rm -rf .tst 2>/dev/null
4568mkdir .tst 2>/dev/null
4569if test -d .tst; then
4570 am__leading_dot=.
4571else
4572 am__leading_dot=_
4573fi
4574rmdir .tst 2>/dev/null
4575
4576DEPDIR="${am__leading_dot}deps"
4577
4578ac_config_commands="$ac_config_commands depdir"
4579
4580
4581depcc="$CC" am_compiler_list=
4582
4583am_depcomp=$ac_aux_dir/depcomp
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4585$as_echo_n "checking dependency style of $depcc... " >&6; }
4586if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588else
4589 if test -f "$am_depcomp"; then
4590 # We make a subdir and do the tests there. Otherwise we can end up
4591 # making bogus files that we don't know about and never remove. For
4592 # instance it was reported that on HP-UX the gcc test will end up
4593 # making a dummy file named `D' -- because `-MD' means `put the output
4594 # in D'.
4595 mkdir conftest.dir
4596 # Copy depcomp to subdir because otherwise we won't find it if we're
4597 # using a relative directory.
4598 cp "$am_depcomp" conftest.dir
4599 cd conftest.dir
4600 # We will build objects and dependencies in a subdirectory because
4601 # it helps to detect inapplicable dependency modes. For instance
4602 # both Tru64's cc and ICC support -MD to output dependencies as a
4603 # side effect of compilation, but ICC will put the dependencies in
4604 # the current directory while Tru64 will put them in the object
4605 # directory.
4606 mkdir sub
4607
4608 am_cv_CC_dependencies_compiler_type=none
4609 if test "$am_compiler_list" = ""; then
4610 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4611 fi
4612 for depmode in $am_compiler_list; do
4613 if test $depmode = none; then break; fi
4614
4615 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4616 # Setup a source with many dependencies, because some compilers
4617 # like to wrap large dependency lists on column 80 (with \), and
4618 # we should not choose a depcomp mode which is confused by this.
4619 #
4620 # We need to recreate these files for each test, as the compiler may
4621 # overwrite some of them when testing with obscure command lines.
4622 # This happens at least with the AIX C compiler.
4623 : > sub/conftest.c
4624 for i in 1 2 3 4 5 6; do
4625 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4626 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4627 # Solaris 8's {/usr,}/bin/sh.
4628 touch sub/conftst$i.h
4629 done
4630 echo "include sub/conftest.Po" > confmf
4631
4632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4633 # mode. It turns out that the SunPro C++ compiler does not properly
4634 # handle `-M -o', and we need to detect this.
4635 depcmd="depmode=$depmode \
4636 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4638 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4639 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4640 if env $depcmd > conftest.err 2>&1 &&
4641 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4642 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4643 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4644 # icc doesn't choke on unknown options, it will just issue warnings
4645 # or remarks (even with -Werror). So we grep stderr for any message
4646 # that says an option was ignored or not supported.
4647 # When given -MP, icc 7.0 and 7.1 complain thusly:
4648 # icc: Command line warning: ignoring option '-M'; no argument required
4649 # The diagnosis changed in icc 8.0:
4650 # icc: Command line remark: option '-MP' not supported
4651 if (grep 'ignoring option' conftest.err ||
4652 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4653 am_cv_CC_dependencies_compiler_type=$depmode
4654 $as_echo "$as_me:$LINENO: success" >&5
4655 break
4656 fi
4657 fi
4658 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4659 sed -e 's/^/| /' < conftest.err >&5
4660 done
4661
4662 cd ..
4663 rm -rf conftest.dir
4664else
4665 am_cv_CC_dependencies_compiler_type=none
4666fi
4667
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4670$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4671if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4672then as_fn_error "no usable dependency style found" "$LINENO" 5
4673else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4674
4675fi
4676
4677
4678# Check for the 'make' the user wants to use.
4679for ac_prog in make
4680do
4681 # Extract the first word of "$ac_prog", so it can be a program name with args.
4682set dummy $ac_prog; ac_word=$2
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684$as_echo_n "checking for $ac_word... " >&6; }
4685if test "${ac_cv_prog_MAKE+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687else
4688 if test -n "$MAKE"; then
4689 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4690else
4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH
4693do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_MAKE="$ac_prog"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702done
4703 done
4704IFS=$as_save_IFS
4705
4706fi
4707fi
4708MAKE=$ac_cv_prog_MAKE
4709if test -n "$MAKE"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4711$as_echo "$MAKE" >&6; }
4712else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714$as_echo "no" >&6; }
4715fi
4716
4717
4718 test -n "$MAKE" && break
4719done
4720
4721MAKE_IS_GNU=
4722case "`$MAKE --version 2>&1 | sed 1q`" in
4723 *GNU*)
4724 MAKE_IS_GNU=yes
4725 ;;
4726esac
4727 if test "$MAKE_IS_GNU" = yes; then
4728 GMAKE_TRUE=
4729 GMAKE_FALSE='#'
4730else
4731 GMAKE_TRUE='#'
4732 GMAKE_FALSE=
4733fi
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4736$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4737set x ${MAKE-make}
4738ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4739if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4740 $as_echo_n "(cached) " >&6
4741else
4742 cat >conftest.make <<\_ACEOF
4743SHELL = /bin/sh
4744all:
4745 @echo '@@@%%%=$(MAKE)=@@@%%%'
4746_ACEOF
4747# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4748case `${MAKE-make} -f conftest.make 2>/dev/null` in
4749 *@@@%%%=?*=@@@%%%*)
4750 eval ac_cv_prog_make_${ac_make}_set=yes;;
4751 *)
4752 eval ac_cv_prog_make_${ac_make}_set=no;;
4753esac
4754rm -f conftest.make
4755fi
4756if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758$as_echo "yes" >&6; }
4759 SET_MAKE=
4760else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762$as_echo "no" >&6; }
4763 SET_MAKE="MAKE=${MAKE-make}"
4764fi
4765
4766
4767
4768CONFIG_OBS=
4769CONFIG_DEPS=
4770CONFIG_SRCS=
4771ENABLE_CFLAGS=
4772
4773CONFIG_ALL=
4774CONFIG_CLEAN=
4775CONFIG_INSTALL=
4776CONFIG_UNINSTALL=
4777
4778# If we haven't got the data from the intl directory,
4779# assume NLS is disabled.
4780USE_NLS=no
4781LIBINTL=
4782LIBINTL_DEP=
4783INCINTL=
4784XGETTEXT=
4785GMSGFMT=
4786POSUB=
4787
4788if test -f ../intl/config.intl; then
4789 . ../intl/config.intl
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4792$as_echo_n "checking whether NLS is requested... " >&6; }
4793if test x"$USE_NLS" != xyes; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795$as_echo "no" >&6; }
4796else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4798$as_echo "yes" >&6; }
4799
4800$as_echo "#define ENABLE_NLS 1" >>confdefs.h
4801
4802
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4804$as_echo_n "checking for catalogs to be installed... " >&6; }
4805 # Look for .po and .gmo files in the source directory.
4806 CATALOGS=
4807 XLINGUAS=
4808 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4809 # If there aren't any .gmo files the shell will give us the
4810 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4811 # weeded out.
4812 case "$cat" in *\**)
4813 continue;;
4814 esac
4815 # The quadruple backslash is collapsed to a double backslash
4816 # by the backticks, then collapsed again by the double quotes,
4817 # leaving us with one backslash in the sed expression (right
4818 # before the dot that mustn't act as a wildcard).
4819 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4820 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4821 # The user is allowed to set LINGUAS to a list of languages to
4822 # install catalogs for. If it's empty that means "all of them."
4823 if test "x$LINGUAS" = x; then
4824 CATALOGS="$CATALOGS $cat"
4825 XLINGUAS="$XLINGUAS $lang"
4826 else
4827 case "$LINGUAS" in *$lang*)
4828 CATALOGS="$CATALOGS $cat"
4829 XLINGUAS="$XLINGUAS $lang"
4830 ;;
4831 esac
4832 fi
4833 done
4834 LINGUAS="$XLINGUAS"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4836$as_echo "$LINGUAS" >&6; }
4837
4838
4839 DATADIRNAME=share
4840
4841 INSTOBJEXT=.mo
4842
4843 GENCAT=gencat
4844
4845 CATOBJEXT=.gmo
4846
4847fi
4848
4849localedir='${datadir}/locale'
4850
4851
4852if test x"$USE_NLS" = xyes; then
4853 CONFIG_ALL="$CONFIG_ALL all-po"
4854 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4855 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4856 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4857fi
4858
4859
4860 GNULIB_MEMMEM=0;
4861 GNULIB_MEMPCPY=0;
4862 GNULIB_MEMRCHR=0;
4863 GNULIB_STPCPY=0;
4864 GNULIB_STPNCPY=0;
4865 GNULIB_STRCHRNUL=0;
4866 GNULIB_STRDUP=0;
4867 GNULIB_STRNDUP=0;
4868 GNULIB_STRNLEN=0;
4869 GNULIB_STRPBRK=0;
4870 GNULIB_STRSEP=0;
4871 GNULIB_STRSTR=0;
4872 GNULIB_STRCASESTR=0;
4873 GNULIB_STRTOK_R=0;
4874 GNULIB_MBSLEN=0;
4875 GNULIB_MBSNLEN=0;
4876 GNULIB_MBSCHR=0;
4877 GNULIB_MBSRCHR=0;
4878 GNULIB_MBSSTR=0;
4879 GNULIB_MBSCASECMP=0;
4880 GNULIB_MBSNCASECMP=0;
4881 GNULIB_MBSPCASECMP=0;
4882 GNULIB_MBSCASESTR=0;
4883 GNULIB_MBSCSPN=0;
4884 GNULIB_MBSPBRK=0;
4885 GNULIB_MBSSPN=0;
4886 GNULIB_MBSSEP=0;
4887 GNULIB_MBSTOK_R=0;
4888 GNULIB_STRERROR=0;
4889 GNULIB_STRSIGNAL=0;
4890 HAVE_DECL_MEMMEM=1;
4891 HAVE_MEMPCPY=1;
4892 HAVE_DECL_MEMRCHR=1;
4893 HAVE_STPCPY=1;
4894 HAVE_STPNCPY=1;
4895 HAVE_STRCHRNUL=1;
4896 HAVE_DECL_STRDUP=1;
4897 HAVE_STRNDUP=1;
4898 HAVE_DECL_STRNDUP=1;
4899 HAVE_DECL_STRNLEN=1;
4900 HAVE_STRPBRK=1;
4901 HAVE_STRSEP=1;
4902 HAVE_STRCASESTR=1;
4903 HAVE_DECL_STRTOK_R=1;
4904 HAVE_DECL_STRERROR=1;
4905 HAVE_DECL_STRSIGNAL=1;
4906 REPLACE_STRERROR=0;
4907 REPLACE_STRSIGNAL=0;
4908 REPLACE_MEMMEM=0;
4909 REPLACE_STRCASESTR=0;
4910 REPLACE_STRSTR=0;
4911
4912
4913 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4914if test "x$ac_cv_have_decl_memmem" = x""yes; then :
4915 ac_have_decl=1
4916else
4917 ac_have_decl=0
4918fi
4919
4920cat >>confdefs.h <<_ACEOF
4921#define HAVE_DECL_MEMMEM $ac_have_decl
4922_ACEOF
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936 for ac_func in memmem
4937do :
4938 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
4939if test "x$ac_cv_func_memmem" = x""yes; then :
4940 cat >>confdefs.h <<_ACEOF
4941#define HAVE_MEMMEM 1
4942_ACEOF
4943
4944else
4945
4946 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4947
4948fi
4949done
4950
4951
4952
4953 :
4954
4955
4956
4957
4958
4959 if test $ac_cv_have_decl_memmem = no; then
4960 HAVE_DECL_MEMMEM=0
4961 fi
4962 :
4963
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4966$as_echo_n "checking for long long int... " >&6; }
4967if test "${ac_cv_type_long_long_int+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4969else
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971/* end confdefs.h. */
4972
4973 /* For now, do not test the preprocessor; as of 2007 there are too many
4974 implementations with broken preprocessors. Perhaps this can
4975 be revisited in 2012. In the meantime, code should not expect
4976 #if to work with literals wider than 32 bits. */
4977 /* Test literals. */
4978 long long int ll = 9223372036854775807ll;
4979 long long int nll = -9223372036854775807LL;
4980 unsigned long long int ull = 18446744073709551615ULL;
4981 /* Test constant expressions. */
4982 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4983 ? 1 : -1)];
4984 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4985 ? 1 : -1)];
4986 int i = 63;
4987int
4988main ()
4989{
4990/* Test availability of runtime routines for shift and division. */
4991 long long int llmax = 9223372036854775807ll;
4992 unsigned long long int ullmax = 18446744073709551615ull;
4993 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4994 | (llmax / ll) | (llmax % ll)
4995 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4996 | (ullmax / ull) | (ullmax % ull));
4997 ;
4998 return 0;
4999}
5000
5001_ACEOF
5002if ac_fn_c_try_link "$LINENO"; then :
5003 if test "$cross_compiling" = yes; then :
5004 ac_cv_type_long_long_int=yes
5005else
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h. */
5008#include <limits.h>
5009 #ifndef LLONG_MAX
5010 # define HALF \
5011 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5012 # define LLONG_MAX (HALF - 1 + HALF)
5013 #endif
5014int
5015main ()
5016{
5017long long int n = 1;
5018 int i;
5019 for (i = 0; ; i++)
5020 {
5021 long long int m = n << i;
5022 if (m >> i != n)
5023 return 1;
5024 if (LLONG_MAX / 2 < m)
5025 break;
5026 }
5027 return 0;
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032if ac_fn_c_try_run "$LINENO"; then :
5033 ac_cv_type_long_long_int=yes
5034else
5035 ac_cv_type_long_long_int=no
5036fi
5037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5038 conftest.$ac_objext conftest.beam conftest.$ac_ext
5039fi
5040
5041else
5042 ac_cv_type_long_long_int=no
5043fi
5044rm -f core conftest.err conftest.$ac_objext \
5045 conftest$ac_exeext conftest.$ac_ext
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5048$as_echo "$ac_cv_type_long_long_int" >&6; }
5049 if test $ac_cv_type_long_long_int = yes; then
5050
5051$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5052
5053 fi
5054
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5057$as_echo_n "checking for unsigned long long int... " >&6; }
5058if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060else
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h. */
5063
5064 /* For now, do not test the preprocessor; as of 2007 there are too many
5065 implementations with broken preprocessors. Perhaps this can
5066 be revisited in 2012. In the meantime, code should not expect
5067 #if to work with literals wider than 32 bits. */
5068 /* Test literals. */
5069 long long int ll = 9223372036854775807ll;
5070 long long int nll = -9223372036854775807LL;
5071 unsigned long long int ull = 18446744073709551615ULL;
5072 /* Test constant expressions. */
5073 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5074 ? 1 : -1)];
5075 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5076 ? 1 : -1)];
5077 int i = 63;
5078int
5079main ()
5080{
5081/* Test availability of runtime routines for shift and division. */
5082 long long int llmax = 9223372036854775807ll;
5083 unsigned long long int ullmax = 18446744073709551615ull;
5084 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5085 | (llmax / ll) | (llmax % ll)
5086 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5087 | (ullmax / ull) | (ullmax % ull));
5088 ;
5089 return 0;
5090}
5091
5092_ACEOF
5093if ac_fn_c_try_link "$LINENO"; then :
5094 ac_cv_type_unsigned_long_long_int=yes
5095else
5096 ac_cv_type_unsigned_long_long_int=no
5097fi
5098rm -f core conftest.err conftest.$ac_objext \
5099 conftest$ac_exeext conftest.$ac_ext
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5102$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5103 if test $ac_cv_type_unsigned_long_long_int = yes; then
5104
5105$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5106
5107 fi
5108
5109
5110
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5112$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5113if test "${gl_cv_have_include_next+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115else
5116 rm -rf conftestd1 conftestd2
5117 mkdir conftestd1 conftestd2
5118 cat <<EOF > conftestd1/conftest.h
5119#define DEFINED_IN_CONFTESTD1
5120#include_next <conftest.h>
5121#ifdef DEFINED_IN_CONFTESTD2
5122int foo;
5123#else
5124#error "include_next doesn't work"
5125#endif
5126EOF
5127 cat <<EOF > conftestd2/conftest.h
5128#ifndef DEFINED_IN_CONFTESTD1
5129#error "include_next test doesn't work"
5130#endif
5131#define DEFINED_IN_CONFTESTD2
5132EOF
5133 save_CPPFLAGS="$CPPFLAGS"
5134 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h. */
5137#include <conftest.h>
5138_ACEOF
5139if ac_fn_c_try_compile "$LINENO"; then :
5140 gl_cv_have_include_next=yes
5141else
5142 gl_cv_have_include_next=no
5143fi
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 CPPFLAGS="$save_CPPFLAGS"
5146 rm -rf conftestd1 conftestd2
5147
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5150$as_echo "$gl_cv_have_include_next" >&6; }
5151 if test $gl_cv_have_include_next = yes; then
5152
5153
5154$as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h
5155
5156
5157 INCLUDE_NEXT=include_next
5158 else
5159 INCLUDE_NEXT=include
5160 fi
5161
5162
5163
5164
5165
5166
5167 for ac_header in $gl_header_list
5168do :
5169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5170ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5171eval as_val=\$$as_ac_Header
5172 if test "x$as_val" = x""yes; then :
5173 cat >>confdefs.h <<_ACEOF
5174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5175_ACEOF
5176
5177fi
5178
5179done
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5191$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5192if test "${ac_cv_c_restrict+set}" = set; then :
5193 $as_echo_n "(cached) " >&6
5194else
5195 ac_cv_c_restrict=no
5196 # The order here caters to the fact that C++ does not require restrict.
5197 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h. */
5200typedef int * int_ptr;
5201 int foo (int_ptr $ac_kw ip) {
5202 return ip[0];
5203 }
5204int
5205main ()
5206{
5207int s[1];
5208 int * $ac_kw t = s;
5209 t[0] = 0;
5210 return foo(t)
5211 ;
5212 return 0;
5213}
5214_ACEOF
5215if ac_fn_c_try_compile "$LINENO"; then :
5216 ac_cv_c_restrict=$ac_kw
5217fi
5218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 test "$ac_cv_c_restrict" != no && break
5220 done
5221
5222fi
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5224$as_echo "$ac_cv_c_restrict" >&6; }
5225
5226 case $ac_cv_c_restrict in
5227 restrict) ;;
5228 no) $as_echo "#define restrict /**/" >>confdefs.h
5229 ;;
5230 *) cat >>confdefs.h <<_ACEOF
5231#define restrict $ac_cv_c_restrict
5232_ACEOF
5233 ;;
5234 esac
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247 :
5248
5249
5250
5251
5252
5253
5254
5255 if test $gl_cv_have_include_next = yes; then
5256 gl_cv_next_string_h='<'string.h'>'
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5259$as_echo_n "checking absolute name of <string.h>... " >&6; }
5260if test "${gl_cv_next_string_h+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262else
5263
5264 if test $ac_cv_header_string_h = yes; then
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h. */
5267#include <string.h>
5268
5269_ACEOF
5270 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 sed -n '\#/string.h#{
5272 s#.*"\(.*/string.h\)".*#\1#
5273 s#^/[^/]#//&#
5274 p
5275 q
5276 }'`'"'
5277 else
5278 gl_cv_next_string_h='<'string.h'>'
5279 fi
5280
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5283$as_echo "$gl_cv_next_string_h" >&6; }
5284 fi
5285 NEXT_STRING_H=$gl_cv_next_string_h
5286
5287
5288
5289
5290
5291 GNULIB_WCWIDTH=0;
5292 HAVE_DECL_WCWIDTH=1;
5293 REPLACE_WCWIDTH=0;
5294 WCHAR_H=
5295
5296
5297
5298 if false; then
5299 GL_COND_LIBTOOL_TRUE=
5300 GL_COND_LIBTOOL_FALSE='#'
5301else
5302 GL_COND_LIBTOOL_TRUE='#'
5303 GL_COND_LIBTOOL_FALSE=
5304fi
5305
5306 gl_cond_libtool=false
5307 gl_libdeps=
5308 gl_ltlibdeps=
5309
5310
5311
5312 gl_source_base='gnulib'
5313
5314
5315
5316
5317
5318
5319
5320
5321 for ac_func in memchr
5322do :
5323 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
5324if test "x$ac_cv_func_memchr" = x""yes; then :
5325 cat >>confdefs.h <<_ACEOF
5326#define HAVE_MEMCHR 1
5327_ACEOF
5328
5329else
5330
5331 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5332
5333fi
5334done
5335
5336
5337 if test $ac_cv_func_memchr = no; then
5338
5339 for ac_header in bp-sym.h
5340do :
5341 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5342if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5343 cat >>confdefs.h <<_ACEOF
5344#define HAVE_BP_SYM_H 1
5345_ACEOF
5346
5347fi
5348
5349done
5350
5351
5352 fi
5353
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5356$as_echo_n "checking for working memcmp... " >&6; }
5357if test "${ac_cv_func_memcmp_working+set}" = set; then :
5358 $as_echo_n "(cached) " >&6
5359else
5360 if test "$cross_compiling" = yes; then :
5361 ac_cv_func_memcmp_working=no
5362else
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h. */
5365$ac_includes_default
5366int
5367main ()
5368{
5369
5370 /* Some versions of memcmp are not 8-bit clean. */
5371 char c0 = '\100', c1 = '\200', c2 = '\201';
5372 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5373 return 1;
5374
5375 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5376 or more and with at least one buffer not starting on a 4-byte boundary.
5377 William Lewis provided this test program. */
5378 {
5379 char foo[21];
5380 char bar[21];
5381 int i;
5382 for (i = 0; i < 4; i++)
5383 {
5384 char *a = foo + i;
5385 char *b = bar + i;
5386 strcpy (a, "--------01111111");
5387 strcpy (b, "--------10000000");
5388 if (memcmp (a, b, 16) >= 0)
5389 return 1;
5390 }
5391 return 0;
5392 }
5393
5394 ;
5395 return 0;
5396}
5397_ACEOF
5398if ac_fn_c_try_run "$LINENO"; then :
5399 ac_cv_func_memcmp_working=yes
5400else
5401 ac_cv_func_memcmp_working=no
5402fi
5403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5404 conftest.$ac_objext conftest.beam conftest.$ac_ext
5405fi
5406
5407fi
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5409$as_echo "$ac_cv_func_memcmp_working" >&6; }
5410test $ac_cv_func_memcmp_working = no &&
5411
5412
5413
5414
5415
5416
5417 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5418
5419
5420 if test $ac_cv_func_memcmp_working = no; then
5421
5422$as_echo "#define memcmp rpl_memcmp" >>confdefs.h
5423
5424 :
5425 fi
5426
5427
5428
5429 if test $ac_cv_have_decl_memmem = yes; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5431$as_echo_n "checking whether memmem works in linear time... " >&6; }
5432if test "${gl_cv_func_memmem_works+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5434else
5435 if test "$cross_compiling" = yes; then :
5436 gl_cv_func_memmem_works="guessing no"
5437else
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h. */
5440
5441#include <string.h> /* for memmem */
5442#include <stdlib.h> /* for malloc */
5443#include <unistd.h> /* for alarm */
5444
5445int
5446main ()
5447{
5448size_t m = 1000000;
5449 char *haystack = (char *) malloc (2 * m + 1);
5450 char *needle = (char *) malloc (m + 1);
5451 void *result = 0;
5452 /* Failure to compile this test due to missing alarm is okay,
5453 since all such platforms (mingw) also lack memmem. */
5454 alarm (5);
5455 /* Check for quadratic performance. */
5456 if (haystack && needle)
5457 {
5458 memset (haystack, 'A', 2 * m);
5459 haystack[2 * m] = 'B';
5460 memset (needle, 'A', m);
5461 needle[m] = 'B';
5462 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5463 }
5464 /* Check for empty needle behavior. */
5465 return !result || !memmem ("a", 1, 0, 0);
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470if ac_fn_c_try_run "$LINENO"; then :
5471 gl_cv_func_memmem_works=yes
5472else
5473 gl_cv_func_memmem_works=no
5474fi
5475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5476 conftest.$ac_objext conftest.beam conftest.$ac_ext
5477fi
5478
5479fi
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
5481$as_echo "$gl_cv_func_memmem_works" >&6; }
5482 if test "$gl_cv_func_memmem_works" != yes; then
5483 REPLACE_MEMMEM=1
5484
5485
5486
5487
5488
5489
5490
5491 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5492
5493 fi
5494 fi
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507 for ac_func in memmem
5508do :
5509 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5510if test "x$ac_cv_func_memmem" = x""yes; then :
5511 cat >>confdefs.h <<_ACEOF
5512#define HAVE_MEMMEM 1
5513_ACEOF
5514
5515else
5516
5517 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5518
5519fi
5520done
5521
5522
5523
5524 :
5525
5526
5527
5528
5529
5530 if test $ac_cv_have_decl_memmem = no; then
5531 HAVE_DECL_MEMMEM=0
5532 fi
5533 :
5534
5535
5536
5537 GNULIB_MEMMEM=1
5538
5539
5540
5541
5542 if test $ac_cv_type_long_long_int = yes; then
5543 HAVE_LONG_LONG_INT=1
5544 else
5545 HAVE_LONG_LONG_INT=0
5546 fi
5547
5548
5549 if test $ac_cv_type_unsigned_long_long_int = yes; then
5550 HAVE_UNSIGNED_LONG_LONG_INT=1
5551 else
5552 HAVE_UNSIGNED_LONG_LONG_INT=0
5553 fi
5554
5555
5556 if test $ac_cv_header_inttypes_h = yes; then
5557 HAVE_INTTYPES_H=1
5558 else
5559 HAVE_INTTYPES_H=0
5560 fi
5561
5562
5563 if test $ac_cv_header_sys_types_h = yes; then
5564 HAVE_SYS_TYPES_H=1
5565 else
5566 HAVE_SYS_TYPES_H=0
5567 fi
5568
5569
5570
5571
5572
5573 :
5574
5575
5576
5577
5578
5579
5580
5581 if test $gl_cv_have_include_next = yes; then
5582 gl_cv_next_stdint_h='<'stdint.h'>'
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5585$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5586if test "${gl_cv_next_stdint_h+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588else
5589
5590 if test $ac_cv_header_stdint_h = yes; then
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h. */
5593#include <stdint.h>
5594
5595_ACEOF
5596 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5597 sed -n '\#/stdint.h#{
5598 s#.*"\(.*/stdint.h\)".*#\1#
5599 s#^/[^/]#//&#
5600 p
5601 q
5602 }'`'"'
5603 else
5604 gl_cv_next_stdint_h='<'stdint.h'>'
5605 fi
5606
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5609$as_echo "$gl_cv_next_stdint_h" >&6; }
5610 fi
5611 NEXT_STDINT_H=$gl_cv_next_stdint_h
5612
5613
5614
5615 if test $ac_cv_header_stdint_h = yes; then
5616 HAVE_STDINT_H=1
5617 else
5618 HAVE_STDINT_H=0
5619 fi
5620
5621
5622 if test $ac_cv_header_stdint_h = yes; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5624$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5625if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5627else
5628 gl_cv_header_working_stdint_h=no
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631
5632
5633#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5634#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5635#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5636#include <stdint.h>
5637/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5638#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5639#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5640#endif
5641
5642
5643 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5644 included before <wchar.h>. */
5645 #include <stddef.h>
5646 #include <signal.h>
5647 #if HAVE_WCHAR_H
5648 # include <stdio.h>
5649 # include <time.h>
5650 # include <wchar.h>
5651 #endif
5652
5653
5654#ifdef INT8_MAX
5655int8_t a1 = INT8_MAX;
5656int8_t a1min = INT8_MIN;
5657#endif
5658#ifdef INT16_MAX
5659int16_t a2 = INT16_MAX;
5660int16_t a2min = INT16_MIN;
5661#endif
5662#ifdef INT32_MAX
5663int32_t a3 = INT32_MAX;
5664int32_t a3min = INT32_MIN;
5665#endif
5666#ifdef INT64_MAX
5667int64_t a4 = INT64_MAX;
5668int64_t a4min = INT64_MIN;
5669#endif
5670#ifdef UINT8_MAX
5671uint8_t b1 = UINT8_MAX;
5672#else
5673typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5674#endif
5675#ifdef UINT16_MAX
5676uint16_t b2 = UINT16_MAX;
5677#endif
5678#ifdef UINT32_MAX
5679uint32_t b3 = UINT32_MAX;
5680#endif
5681#ifdef UINT64_MAX
5682uint64_t b4 = UINT64_MAX;
5683#endif
5684int_least8_t c1 = INT8_C (0x7f);
5685int_least8_t c1max = INT_LEAST8_MAX;
5686int_least8_t c1min = INT_LEAST8_MIN;
5687int_least16_t c2 = INT16_C (0x7fff);
5688int_least16_t c2max = INT_LEAST16_MAX;
5689int_least16_t c2min = INT_LEAST16_MIN;
5690int_least32_t c3 = INT32_C (0x7fffffff);
5691int_least32_t c3max = INT_LEAST32_MAX;
5692int_least32_t c3min = INT_LEAST32_MIN;
5693int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5694int_least64_t c4max = INT_LEAST64_MAX;
5695int_least64_t c4min = INT_LEAST64_MIN;
5696uint_least8_t d1 = UINT8_C (0xff);
5697uint_least8_t d1max = UINT_LEAST8_MAX;
5698uint_least16_t d2 = UINT16_C (0xffff);
5699uint_least16_t d2max = UINT_LEAST16_MAX;
5700uint_least32_t d3 = UINT32_C (0xffffffff);
5701uint_least32_t d3max = UINT_LEAST32_MAX;
5702uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5703uint_least64_t d4max = UINT_LEAST64_MAX;
5704int_fast8_t e1 = INT_FAST8_MAX;
5705int_fast8_t e1min = INT_FAST8_MIN;
5706int_fast16_t e2 = INT_FAST16_MAX;
5707int_fast16_t e2min = INT_FAST16_MIN;
5708int_fast32_t e3 = INT_FAST32_MAX;
5709int_fast32_t e3min = INT_FAST32_MIN;
5710int_fast64_t e4 = INT_FAST64_MAX;
5711int_fast64_t e4min = INT_FAST64_MIN;
5712uint_fast8_t f1 = UINT_FAST8_MAX;
5713uint_fast16_t f2 = UINT_FAST16_MAX;
5714uint_fast32_t f3 = UINT_FAST32_MAX;
5715uint_fast64_t f4 = UINT_FAST64_MAX;
5716#ifdef INTPTR_MAX
5717intptr_t g = INTPTR_MAX;
5718intptr_t gmin = INTPTR_MIN;
5719#endif
5720#ifdef UINTPTR_MAX
5721uintptr_t h = UINTPTR_MAX;
5722#endif
5723intmax_t i = INTMAX_MAX;
5724uintmax_t j = UINTMAX_MAX;
5725
5726#include <limits.h> /* for CHAR_BIT */
5727#define TYPE_MINIMUM(t) \
5728 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5729#define TYPE_MAXIMUM(t) \
5730 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5731struct s {
5732 int check_PTRDIFF:
5733 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5734 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5735 ? 1 : -1;
5736 /* Detect bug in FreeBSD 6.0 / ia64. */
5737 int check_SIG_ATOMIC:
5738 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5739 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5740 ? 1 : -1;
5741 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5742 int check_WCHAR:
5743 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5744 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5745 ? 1 : -1;
5746 /* Detect bug in mingw. */
5747 int check_WINT:
5748 WINT_MIN == TYPE_MINIMUM (wint_t)
5749 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5750 ? 1 : -1;
5751
5752 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5753 int check_UINT8_C:
5754 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5755 int check_UINT16_C:
5756 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5757
5758 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5759#ifdef UINT8_MAX
5760 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5761#endif
5762#ifdef UINT16_MAX
5763 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5764#endif
5765#ifdef UINT32_MAX
5766 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5767#endif
5768#ifdef UINT64_MAX
5769 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5770#endif
5771 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5772 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5773 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5774 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5775 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5776 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5777 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5778 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5779 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5780 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5781 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5782};
5783
5784int
5785main ()
5786{
5787
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"; then :
5793 gl_cv_header_working_stdint_h=yes
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5798$as_echo "$gl_cv_header_working_stdint_h" >&6; }
5799 fi
5800 if test "$gl_cv_header_working_stdint_h" = yes; then
5801 STDINT_H=
5802 else
5803 for ac_header in sys/inttypes.h sys/bitypes.h
5804do :
5805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5806ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5807eval as_val=\$$as_ac_Header
5808 if test "x$as_val" = x""yes; then :
5809 cat >>confdefs.h <<_ACEOF
5810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5811_ACEOF
5812
5813fi
5814
5815done
5816
5817 if test $ac_cv_header_sys_inttypes_h = yes; then
5818 HAVE_SYS_INTTYPES_H=1
5819 else
5820 HAVE_SYS_INTTYPES_H=0
5821 fi
5822
5823 if test $ac_cv_header_sys_bitypes_h = yes; then
5824 HAVE_SYS_BITYPES_H=1
5825 else
5826 HAVE_SYS_BITYPES_H=0
5827 fi
5828
5829
5830
5831 :
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5843$as_echo_n "checking for bit size of $gltype... " >&6; }
5844if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5845 $as_echo_n "(cached) " >&6
5846else
5847 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5848 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5849 included before <wchar.h>. */
5850 #include <stddef.h>
5851 #include <signal.h>
5852 #if HAVE_WCHAR_H
5853 # include <stdio.h>
5854 # include <time.h>
5855 # include <wchar.h>
5856 #endif
5857
5858#include <limits.h>"; then :
5859
5860else
5861 result=unknown
5862fi
5863
5864 eval gl_cv_bitsizeof_${gltype}=\$result
5865
5866fi
5867eval ac_res=\$gl_cv_bitsizeof_${gltype}
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5869$as_echo "$ac_res" >&6; }
5870 eval result=\$gl_cv_bitsizeof_${gltype}
5871 if test $result = unknown; then
5872 result=0
5873 fi
5874 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5875 cat >>confdefs.h <<_ACEOF
5876#define BITSIZEOF_${GLTYPE} $result
5877_ACEOF
5878
5879 eval BITSIZEOF_${GLTYPE}=\$result
5880 done
5881
5882
5883
5884
5885 for gltype in sig_atomic_t wchar_t wint_t ; do
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5887$as_echo_n "checking whether $gltype is signed... " >&6; }
5888if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5889 $as_echo_n "(cached) " >&6
5890else
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892/* end confdefs.h. */
5893
5894 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5895 included before <wchar.h>. */
5896 #include <stddef.h>
5897 #include <signal.h>
5898 #if HAVE_WCHAR_H
5899 # include <stdio.h>
5900 # include <time.h>
5901 # include <wchar.h>
5902 #endif
5903
5904 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5905int
5906main ()
5907{
5908
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913if ac_fn_c_try_compile "$LINENO"; then :
5914 result=yes
5915else
5916 result=no
5917fi
5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 eval gl_cv_type_${gltype}_signed=\$result
5920
5921fi
5922eval ac_res=\$gl_cv_type_${gltype}_signed
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5924$as_echo "$ac_res" >&6; }
5925 eval result=\$gl_cv_type_${gltype}_signed
5926 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5927 if test "$result" = yes; then
5928 cat >>confdefs.h <<_ACEOF
5929#define HAVE_SIGNED_${GLTYPE} 1
5930_ACEOF
5931
5932 eval HAVE_SIGNED_${GLTYPE}=1
5933 else
5934 eval HAVE_SIGNED_${GLTYPE}=0
5935 fi
5936 done
5937
5938
5939 gl_cv_type_ptrdiff_t_signed=yes
5940 gl_cv_type_size_t_signed=no
5941
5942
5943 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5945$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5946if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5947 $as_echo_n "(cached) " >&6
5948else
5949 eval gl_cv_type_${gltype}_suffix=no
5950 eval result=\$gl_cv_type_${gltype}_signed
5951 if test "$result" = yes; then
5952 glsufu=
5953 else
5954 glsufu=u
5955 fi
5956 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5957 case $glsuf in
5958 '') gltype1='int';;
5959 l) gltype1='long int';;
5960 ll) gltype1='long long int';;
5961 i64) gltype1='__int64';;
5962 u) gltype1='unsigned int';;
5963 ul) gltype1='unsigned long int';;
5964 ull) gltype1='unsigned long long int';;
5965 ui64)gltype1='unsigned __int64';;
5966 esac
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h. */
5969
5970 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5971 included before <wchar.h>. */
5972 #include <stddef.h>
5973 #include <signal.h>
5974 #if HAVE_WCHAR_H
5975 # include <stdio.h>
5976 # include <time.h>
5977 # include <wchar.h>
5978 #endif
5979
5980 extern $gltype foo;
5981 extern $gltype1 foo;
5982int
5983main ()
5984{
5985
5986 ;
5987 return 0;
5988}
5989_ACEOF
5990if ac_fn_c_try_compile "$LINENO"; then :
5991 eval gl_cv_type_${gltype}_suffix=\$glsuf
5992fi
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994 eval result=\$gl_cv_type_${gltype}_suffix
5995 test "$result" != no && break
5996 done
5997fi
5998eval ac_res=\$gl_cv_type_${gltype}_suffix
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6000$as_echo "$ac_res" >&6; }
6001 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6002 eval result=\$gl_cv_type_${gltype}_suffix
6003 test "$result" = no && result=
6004 eval ${GLTYPE}_SUFFIX=\$result
6005 cat >>confdefs.h <<_ACEOF
6006#define ${GLTYPE}_SUFFIX $result
6007_ACEOF
6008
6009 done
6010
6011
6012
6013 STDINT_H=stdint.h
6014 fi
6015
6016
6017
6018
6019
6020
6021
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
6023$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
6024if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026else
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h. */
6029#include <wchar.h>
6030wchar_t w;
6031_ACEOF
6032if ac_fn_c_try_compile "$LINENO"; then :
6033 gl_cv_header_wchar_h_standalone=yes
6034else
6035 gl_cv_header_wchar_h_standalone=no
6036fi
6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
6040$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
6041 if test $gl_cv_header_wchar_h_standalone != yes; then
6042 WCHAR_H=wchar.h
6043 fi
6044
6045
6046 :
6047
6048
6049
6050
6051
6052 if test $ac_cv_header_wchar_h = yes; then
6053 HAVE_WCHAR_H=1
6054 else
6055 HAVE_WCHAR_H=0
6056 fi
6057
6058
6059
6060
6061 :
6062
6063
6064
6065
6066
6067
6068
6069 if test $gl_cv_have_include_next = yes; then
6070 gl_cv_next_wchar_h='<'wchar.h'>'
6071 else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6073$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6074if test "${gl_cv_next_wchar_h+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076else
6077
6078 if test $ac_cv_header_wchar_h = yes; then
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h. */
6081#include <wchar.h>
6082
6083_ACEOF
6084 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6085 sed -n '\#/wchar.h#{
6086 s#.*"\(.*/wchar.h\)".*#\1#
6087 s#^/[^/]#//&#
6088 p
6089 q
6090 }'`'"'
6091 else
6092 gl_cv_next_wchar_h='<'wchar.h'>'
6093 fi
6094
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
6097$as_echo "$gl_cv_next_wchar_h" >&6; }
6098 fi
6099 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6100
6101
6102
6103
6104
6105
6106
6107
6108 gltests_libdeps=
6109 gltests_ltlibdeps=
6110
6111
6112
6113 gl_source_base='tests'
6114
6115
6116
6117
6118 LIBGNU_LIBDEPS="$gl_libdeps"
6119
6120 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6121
6122
6123
6124# For Makefile dependencies.
6125GNULIB_STDINT_H=
6126if test x"$STDINT_H" != x; then
6127 GNULIB_STDINT_H=gnulib/$STDINT_H
6128fi
6129
6130
6131PACKAGE=gdb
6132
6133cat >>confdefs.h <<_ACEOF
6134#define PACKAGE "$PACKAGE"
6135_ACEOF
6136
6137
6138
6139# GDB does not use automake, but gnulib does. This line lets us
6140# generate its Makefile.in.
6141am__api_version='1.11'
6142
6143# Find a good install program. We prefer a C program (faster),
6144# so one script is as good as another. But avoid the broken or
6145# incompatible versions:
6146# SysV /etc/install, /usr/sbin/install
6147# SunOS /usr/etc/install
6148# IRIX /sbin/install
6149# AIX /bin/install
6150# AmigaOS /C/install, which installs bootblocks on floppy discs
6151# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6152# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6153# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6154# OS/2's system install, which has a completely different semantic
6155# ./install, which can be erroneously created by make from ./install.sh.
6156# Reject install programs that cannot install multiple files.
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6158$as_echo_n "checking for a BSD-compatible install... " >&6; }
6159if test -z "$INSTALL"; then
6160if test "${ac_cv_path_install+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6162else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164for as_dir in $PATH
6165do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 # Account for people who put trailing slashes in PATH elements.
6169case $as_dir/ in #((
6170 ./ | .// | /[cC]/* | \
6171 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6172 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6173 /usr/ucb/* ) ;;
6174 *)
6175 # OSF1 and SCO ODT 3.0 have their own names for install.
6176 # Don't use installbsd from OSF since it installs stuff as root
6177 # by default.
6178 for ac_prog in ginstall scoinst install; do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6181 if test $ac_prog = install &&
6182 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6183 # AIX install. It has an incompatible calling convention.
6184 :
6185 elif test $ac_prog = install &&
6186 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6187 # program-specific install script used by HP pwplus--don't use.
6188 :
6189 else
6190 rm -rf conftest.one conftest.two conftest.dir
6191 echo one > conftest.one
6192 echo two > conftest.two
6193 mkdir conftest.dir
6194 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6195 test -s conftest.one && test -s conftest.two &&
6196 test -s conftest.dir/conftest.one &&
6197 test -s conftest.dir/conftest.two
6198 then
6199 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6200 break 3
6201 fi
6202 fi
6203 fi
6204 done
6205 done
6206 ;;
6207esac
6208
6209 done
6210IFS=$as_save_IFS
6211
6212rm -rf conftest.one conftest.two conftest.dir
6213
6214fi
6215 if test "${ac_cv_path_install+set}" = set; then
6216 INSTALL=$ac_cv_path_install
6217 else
6218 # As a last resort, use the slow shell script. Don't cache a
6219 # value for INSTALL within a source directory, because that will
6220 # break other packages using the cache if that directory is
6221 # removed, or if the value is a relative name.
6222 INSTALL=$ac_install_sh
6223 fi
6224fi
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6226$as_echo "$INSTALL" >&6; }
6227
6228# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6229# It thinks the first close brace ends the variable substitution.
6230test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6231
6232test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6233
6234test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6235
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6237$as_echo_n "checking whether build environment is sane... " >&6; }
6238# Just in case
6239sleep 1
6240echo timestamp > conftest.file
6241# Reject unsafe characters in $srcdir or the absolute working directory
6242# name. Accept space and tab only in the latter.
6243am_lf='
6244'
6245case `pwd` in
6246 *[\\\"\#\$\&\'\`$am_lf]*)
6247 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
6248esac
6249case $srcdir in
6250 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6251 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
6252esac
6253
6254# Do `set' in a subshell so we don't clobber the current shell's
6255# arguments. Must try -L first in case configure is actually a
6256# symlink; some systems play weird games with the mod time of symlinks
6257# (eg FreeBSD returns the mod time of the symlink's containing
6258# directory).
6259if (
6260 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6261 if test "$*" = "X"; then
6262 # -L didn't work.
6263 set X `ls -t "$srcdir/configure" conftest.file`
6264 fi
6265 rm -f conftest.file
6266 if test "$*" != "X $srcdir/configure conftest.file" \
6267 && test "$*" != "X conftest.file $srcdir/configure"; then
6268
6269 # If neither matched, then we have a broken ls. This can happen
6270 # if, for instance, CONFIG_SHELL is bash and it inherits a
6271 # broken ls alias from the environment. This has actually
6272 # happened. Such a system could not be considered "sane".
6273 as_fn_error "ls -t appears to fail. Make sure there is not a broken
6274alias in your environment" "$LINENO" 5
6275 fi
6276
6277 test "$2" = conftest.file
6278 )
6279then
6280 # Ok.
6281 :
6282else
6283 as_fn_error "newly created file is older than distributed files!
6284Check your system clock" "$LINENO" 5
6285fi
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6287$as_echo "yes" >&6; }
6288test "$program_prefix" != NONE &&
6289 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6290# Use a double $ so make ignores it.
6291test "$program_suffix" != NONE &&
6292 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6293# Double any \ or $.
6294# By default was `s,x,x', remove it if useless.
6295ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6296program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6297
6298# expand $ac_aux_dir to an absolute path
6299am_aux_dir=`cd $ac_aux_dir && pwd`
6300
6301if test x"${MISSING+set}" != xset; then
6302 case $am_aux_dir in
6303 *\ * | *\ *)
6304 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
6305 *)
6306 MISSING="\${SHELL} $am_aux_dir/missing" ;;
6307 esac
6308fi
6309# Use eval to expand $SHELL
6310if eval "$MISSING --run true"; then
6311 am_missing_run="$MISSING --run "
6312else
6313 am_missing_run=
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6315$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6316fi
6317
6318if test x"${install_sh}" != xset; then
6319 case $am_aux_dir in
6320 *\ * | *\ *)
6321 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6322 *)
6323 install_sh="\${SHELL} $am_aux_dir/install-sh"
6324 esac
6325fi
6326
6327# Installed binaries are usually stripped using `strip' when the user
6328# run `make install-strip'. However `strip' might not be the right
6329# tool to use in cross-compilation environments, therefore Automake
6330# will honor the `STRIP' environment variable to overrule this program.
6331if test "$cross_compiling" != no; then
6332 if test -n "$ac_tool_prefix"; then
6333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6334set dummy ${ac_tool_prefix}strip; ac_word=$2
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336$as_echo_n "checking for $ac_word... " >&6; }
6337if test "${ac_cv_prog_STRIP+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6339else
6340 if test -n "$STRIP"; then
6341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354done
6355 done
6356IFS=$as_save_IFS
6357
6358fi
6359fi
6360STRIP=$ac_cv_prog_STRIP
6361if test -n "$STRIP"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6363$as_echo "$STRIP" >&6; }
6364else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366$as_echo "no" >&6; }
6367fi
6368
6369
6370fi
6371if test -z "$ac_cv_prog_STRIP"; then
6372 ac_ct_STRIP=$STRIP
6373 # Extract the first word of "strip", so it can be a program name with args.
6374set dummy strip; ac_word=$2
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376$as_echo_n "checking for $ac_word... " >&6; }
6377if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379else
6380 if test -n "$ac_ct_STRIP"; then
6381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_prog_ac_ct_STRIP="strip"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395 done
6396IFS=$as_save_IFS
6397
6398fi
6399fi
6400ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6401if test -n "$ac_ct_STRIP"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6403$as_echo "$ac_ct_STRIP" >&6; }
6404else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406$as_echo "no" >&6; }
6407fi
6408
6409 if test "x$ac_ct_STRIP" = x; then
6410 STRIP=":"
6411 else
6412 case $cross_compiling:$ac_tool_warned in
6413yes:)
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416ac_tool_warned=yes ;;
6417esac
6418 STRIP=$ac_ct_STRIP
6419 fi
6420else
6421 STRIP="$ac_cv_prog_STRIP"
6422fi
6423
6424fi
6425INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6426
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6428$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6429if test -z "$MKDIR_P"; then
6430 if test "${ac_cv_path_mkdir+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
6432else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_prog in mkdir gmkdir; do
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6441 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6442 'mkdir (GNU coreutils) '* | \
6443 'mkdir (coreutils) '* | \
6444 'mkdir (fileutils) '4.1*)
6445 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6446 break 3;;
6447 esac
6448 done
6449 done
6450 done
6451IFS=$as_save_IFS
6452
6453fi
6454
6455 if test "${ac_cv_path_mkdir+set}" = set; then
6456 MKDIR_P="$ac_cv_path_mkdir -p"
6457 else
6458 # As a last resort, use the slow shell script. Don't cache a
6459 # value for MKDIR_P within a source directory, because that will
6460 # break other packages using the cache if that directory is
6461 # removed, or if the value is a relative name.
6462 test -d ./--version && rmdir ./--version
6463 MKDIR_P="$ac_install_sh -d"
6464 fi
6465fi
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6467$as_echo "$MKDIR_P" >&6; }
6468
6469mkdir_p="$MKDIR_P"
6470case $mkdir_p in
6471 [\\/$]* | ?:[\\/]*) ;;
6472 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
6473esac
6474
6475for ac_prog in gawk mawk nawk awk
6476do
6477 # Extract the first word of "$ac_prog", so it can be a program name with args.
6478set dummy $ac_prog; ac_word=$2
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480$as_echo_n "checking for $ac_word... " >&6; }
6481if test "${ac_cv_prog_AWK+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483else
6484 if test -n "$AWK"; then
6485 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6486else
6487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488for as_dir in $PATH
6489do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_AWK="$ac_prog"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498done
6499 done
6500IFS=$as_save_IFS
6501
6502fi
6503fi
6504AWK=$ac_cv_prog_AWK
6505if test -n "$AWK"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6507$as_echo "$AWK" >&6; }
6508else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }
6511fi
6512
6513
6514 test -n "$AWK" && break
6515done
6516
6517ac_config_commands="$ac_config_commands depfiles"
6518
6519
6520am_make=${MAKE-make}
6521cat > confinc << 'END'
6522am__doit:
6523 @echo this is the am__doit target
6524.PHONY: am__doit
6525END
6526# If we don't find an include directive, just comment out the code.
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6528$as_echo_n "checking for style of include used by $am_make... " >&6; }
6529am__include="#"
6530am__quote=
6531_am_result=none
6532# First try GNU make style include.
6533echo "include confinc" > confmf
6534# Ignore all kinds of additional output from `make'.
6535case `$am_make -s -f confmf 2> /dev/null` in #(
6536*the\ am__doit\ target*)
6537 am__include=include
6538 am__quote=
6539 _am_result=GNU
6540 ;;
6541esac
6542# Now try BSD make style include.
6543if test "$am__include" = "#"; then
6544 echo '.include "confinc"' > confmf
6545 case `$am_make -s -f confmf 2> /dev/null` in #(
6546 *the\ am__doit\ target*)
6547 am__include=.include
6548 am__quote="\""
6549 _am_result=BSD
6550 ;;
6551 esac
6552fi
6553
6554
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6556$as_echo "$_am_result" >&6; }
6557rm -f confinc confmf
6558
6559# Check whether --enable-dependency-tracking was given.
6560if test "${enable_dependency_tracking+set}" = set; then :
6561 enableval=$enable_dependency_tracking;
6562fi
6563
6564if test "x$enable_dependency_tracking" != xno; then
6565 am_depcomp="$ac_aux_dir/depcomp"
6566 AMDEPBACKSLASH='\'
6567fi
6568 if test "x$enable_dependency_tracking" != xno; then
6569 AMDEP_TRUE=
6570 AMDEP_FALSE='#'
6571else
6572 AMDEP_TRUE='#'
6573 AMDEP_FALSE=
6574fi
6575
6576
6577if test "`cd $srcdir && pwd`" != "`pwd`"; then
6578 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6579 # is not polluted with repeated "-I."
6580 am__isrc=' -I$(srcdir)'
6581 # test to see if srcdir already configured
6582 if test -f $srcdir/config.status; then
6583 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6584 fi
6585fi
6586
6587# test whether we have cygpath
6588if test -z "$CYGPATH_W"; then
6589 if (cygpath --version) >/dev/null 2>/dev/null; then
6590 CYGPATH_W='cygpath -w'
6591 else
6592 CYGPATH_W=echo
6593 fi
6594fi
6595
6596
6597# Define the identity of the package.
6598 PACKAGE=gdb
6599 VERSION=UNUSED-VERSION
6600
6601
6602# Some tools Automake needs.
6603
6604ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6605
6606
6607AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6608
6609
6610AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6611
6612
6613AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6614
6615
6616MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6617
6618# We need awk for the "check" target. The system "awk" is bad on
6619# some platforms.
6620# Always define AMTAR for backward compatibility.
6621
6622AMTAR=${AMTAR-"${am_missing_run}tar"}
6623
6624am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6625
6626
6627
6628
6629depcc="$CC" am_compiler_list=
6630
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6632$as_echo_n "checking dependency style of $depcc... " >&6; }
6633if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6635else
6636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6637 # We make a subdir and do the tests there. Otherwise we can end up
6638 # making bogus files that we don't know about and never remove. For
6639 # instance it was reported that on HP-UX the gcc test will end up
6640 # making a dummy file named `D' -- because `-MD' means `put the output
6641 # in D'.
6642 mkdir conftest.dir
6643 # Copy depcomp to subdir because otherwise we won't find it if we're
6644 # using a relative directory.
6645 cp "$am_depcomp" conftest.dir
6646 cd conftest.dir
6647 # We will build objects and dependencies in a subdirectory because
6648 # it helps to detect inapplicable dependency modes. For instance
6649 # both Tru64's cc and ICC support -MD to output dependencies as a
6650 # side effect of compilation, but ICC will put the dependencies in
6651 # the current directory while Tru64 will put them in the object
6652 # directory.
6653 mkdir sub
6654
6655 am_cv_CC_dependencies_compiler_type=none
6656 if test "$am_compiler_list" = ""; then
6657 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6658 fi
6659 am__universal=false
6660 case " $depcc " in #(
6661 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6662 esac
6663
6664 for depmode in $am_compiler_list; do
6665 # Setup a source with many dependencies, because some compilers
6666 # like to wrap large dependency lists on column 80 (with \), and
6667 # we should not choose a depcomp mode which is confused by this.
6668 #
6669 # We need to recreate these files for each test, as the compiler may
6670 # overwrite some of them when testing with obscure command lines.
6671 # This happens at least with the AIX C compiler.
6672 : > sub/conftest.c
6673 for i in 1 2 3 4 5 6; do
6674 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6676 # Solaris 8's {/usr,}/bin/sh.
6677 touch sub/conftst$i.h
6678 done
6679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6680
6681 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6682 # mode. It turns out that the SunPro C++ compiler does not properly
6683 # handle `-M -o', and we need to detect this. Also, some Intel
6684 # versions had trouble with output in subdirs
6685 am__obj=sub/conftest.${OBJEXT-o}
6686 am__minus_obj="-o $am__obj"
6687 case $depmode in
6688 gcc)
6689 # This depmode causes a compiler race in universal mode.
6690 test "$am__universal" = false || continue
6691 ;;
6692 nosideeffect)
6693 # after this tag, mechanisms are not by side-effect, so they'll
6694 # only be used when explicitly requested
6695 if test "x$enable_dependency_tracking" = xyes; then
6696 continue
6697 else
6698 break
6699 fi
6700 ;;
6701 msvisualcpp | msvcmsys)
6702 # This compiler won't grok `-c -o', but also, the minuso test has
6703 # not run yet. These depmodes are late enough in the game, and
6704 # so weak that their functioning should not be impacted.
6705 am__obj=conftest.${OBJEXT-o}
6706 am__minus_obj=
6707 ;;
6708 none) break ;;
6709 esac
6710 if depmode=$depmode \
6711 source=sub/conftest.c object=$am__obj \
6712 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6713 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6714 >/dev/null 2>conftest.err &&
6715 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6717 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6719 # icc doesn't choke on unknown options, it will just issue warnings
6720 # or remarks (even with -Werror). So we grep stderr for any message
6721 # that says an option was ignored or not supported.
6722 # When given -MP, icc 7.0 and 7.1 complain thusly:
6723 # icc: Command line warning: ignoring option '-M'; no argument required
6724 # The diagnosis changed in icc 8.0:
6725 # icc: Command line remark: option '-MP' not supported
6726 if (grep 'ignoring option' conftest.err ||
6727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6728 am_cv_CC_dependencies_compiler_type=$depmode
6729 break
6730 fi
6731 fi
6732 done
6733
6734 cd ..
6735 rm -rf conftest.dir
6736else
6737 am_cv_CC_dependencies_compiler_type=none
6738fi
6739
6740fi
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6742$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6743CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6744
6745 if
6746 test "x$enable_dependency_tracking" != xno \
6747 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6748 am__fastdepCC_TRUE=
6749 am__fastdepCC_FALSE='#'
6750else
6751 am__fastdepCC_TRUE='#'
6752 am__fastdepCC_FALSE=
6753fi
6754
6755
6756
6757
6758
6759
6760# Check whether --with-separate-debug-dir was given.
6761if test "${with_separate_debug_dir+set}" = set; then :
6762 withval=$with_separate_debug_dir;
6763 DEBUGDIR=$withval
6764else
6765 DEBUGDIR=${libdir}/debug
6766fi
6767
6768
6769 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6770 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6771 ac_define_dir=`eval echo $DEBUGDIR`
6772 ac_define_dir=`eval echo $ac_define_dir`
6773
6774cat >>confdefs.h <<_ACEOF
6775#define DEBUGDIR "$ac_define_dir"
6776_ACEOF
6777
6778
6779
6780 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6781 if test "x$prefix" = xNONE; then
6782 test_prefix=/usr/local
6783 else
6784 test_prefix=$prefix
6785 fi
6786 else
6787 test_prefix=$exec_prefix
6788 fi
6789 value=0
6790 case ${ac_define_dir} in
6791 "${test_prefix}"|"${test_prefix}/"*|\
6792 '${exec_prefix}'|'${exec_prefix}/'*)
6793 value=1
6794 ;;
6795 esac
6796
6797cat >>confdefs.h <<_ACEOF
6798#define DEBUGDIR_RELOCATABLE $value
6799_ACEOF
6800
6801
6802
6803# GDB's datadir relocation
6804
6805
6806
6807# Check whether --with-gdb-datadir was given.
6808if test "${with_gdb_datadir+set}" = set; then :
6809 withval=$with_gdb_datadir;
6810 GDB_DATADIR=$withval
6811else
6812 GDB_DATADIR=${datadir}/gdb
6813fi
6814
6815
6816 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6818 ac_define_dir=`eval echo $GDB_DATADIR`
6819 ac_define_dir=`eval echo $ac_define_dir`
6820
6821cat >>confdefs.h <<_ACEOF
6822#define GDB_DATADIR "$ac_define_dir"
6823_ACEOF
6824
6825
6826
6827 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6828 if test "x$prefix" = xNONE; then
6829 test_prefix=/usr/local
6830 else
6831 test_prefix=$prefix
6832 fi
6833 else
6834 test_prefix=$exec_prefix
6835 fi
6836 value=0
6837 case ${ac_define_dir} in
6838 "${test_prefix}"|"${test_prefix}/"*|\
6839 '${exec_prefix}'|'${exec_prefix}/'*)
6840 value=1
6841 ;;
6842 esac
6843
6844cat >>confdefs.h <<_ACEOF
6845#define GDB_DATADIR_RELOCATABLE $value
6846_ACEOF
6847
6848
6849
6850
6851# Check whether --with-relocated-sources was given.
6852if test "${with_relocated_sources+set}" = set; then :
6853 withval=$with_relocated_sources; reloc_srcdir="${withval}"
6854
6855 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6857 ac_define_dir=`eval echo $reloc_srcdir`
6858 ac_define_dir=`eval echo $ac_define_dir`
6859
6860cat >>confdefs.h <<_ACEOF
6861#define RELOC_SRCDIR "$ac_define_dir"
6862_ACEOF
6863
6864
6865
6866fi
6867
6868
6869
6870
6871subdirs="$subdirs doc testsuite"
6872
6873
6874# Check whether to support alternative target configurations
6875# Check whether --enable-targets was given.
6876if test "${enable_targets+set}" = set; then :
6877 enableval=$enable_targets; case "${enableval}" in
6878 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
6879 ;;
6880 no) enable_targets= ;;
6881 *) enable_targets=$enableval ;;
6882esac
6883fi
6884
6885
6886# Check whether to enable 64-bit support on 32-bit hosts
6887# Check whether --enable-64-bit-bfd was given.
6888if test "${enable_64_bit_bfd+set}" = set; then :
6889 enableval=$enable_64_bit_bfd; case "${enableval}" in
6890 yes) want64=true ;;
6891 no) want64=false ;;
6892 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6893esac
6894else
6895 want64=false
6896fi
6897
6898# Provide defaults for some variables set by the per-host and per-target
6899# configuration.
6900gdb_host_obs=posix-hdep.o
6901
6902if test "${target}" = "${host}"; then
6903 gdb_native=yes
6904else
6905 gdb_native=no
6906fi
6907
6908. $srcdir/configure.host
6909
6910# Accumulate some settings from configure.tgt over all enabled targets
6911
6912TARGET_OBS=
6913all_targets=
6914
6915for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6916do
6917 if test "$targ_alias" = "all"; then
6918 all_targets=true
6919 else
6920 # Canonicalize the secondary target names.
6921 result=`$ac_config_sub $targ_alias 2>/dev/null`
6922 if test -n "$result"; then
6923 targ=$result
6924 else
6925 targ=$targ_alias
6926 fi
6927
6928 . ${srcdir}/configure.tgt
6929
6930 # Target-specific object files
6931 for i in ${gdb_target_obs}; do
6932 case " $TARGET_OBS " in
6933 *" ${i} "*) ;;
6934 *)
6935 TARGET_OBS="$TARGET_OBS ${i}"
6936 ;;
6937 esac
6938 done
6939
6940 # Check whether this target needs 64-bit CORE_ADDR
6941 if test x${want64} = xfalse; then
6942 . ${srcdir}/../bfd/config.bfd
6943 fi
6944 fi
6945done
6946
6947if test x${all_targets} = xtrue; then
6948
6949 # We want all 64-bit targets if we either:
6950 # - run on a 64-bit host or
6951 # - already require 64-bit support for some other target or
6952 # - the --enable-64-bit-bfd option was supplied
6953 # Otherwise we only support all 32-bit targets.
6954 #
6955 # NOTE: This test must be in sync with the corresponding
6956 # tests in BFD!
6957
6958 if test x${want64} = xfalse; then
6959 # The cast to long int works around a bug in the HP C Compiler
6960# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6961# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6962# This bug is HP SR number 8606223364.
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6964$as_echo_n "checking size of long... " >&6; }
6965if test "${ac_cv_sizeof_long+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967else
6968 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6969
6970else
6971 if test "$ac_cv_type_long" = yes; then
6972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6974{ as_fn_set_status 77
6975as_fn_error "cannot compute sizeof (long)
6976See \`config.log' for more details." "$LINENO" 5; }; }
6977 else
6978 ac_cv_sizeof_long=0
6979 fi
6980fi
6981
6982fi
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6984$as_echo "$ac_cv_sizeof_long" >&6; }
6985
6986
6987
6988cat >>confdefs.h <<_ACEOF
6989#define SIZEOF_LONG $ac_cv_sizeof_long
6990_ACEOF
6991
6992
6993 if test "x${ac_cv_sizeof_long}" = "x8"; then
6994 want64=true
6995 fi
6996 fi
6997 if test x${want64} = xtrue; then
6998 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6999 else
7000 TARGET_OBS='$(ALL_TARGET_OBS)'
7001 fi
7002fi
7003
7004
7005
7006# For other settings, only the main target counts.
7007gdb_sim=
7008gdb_osabi=
7009build_gdbserver=
7010targ=$target; . ${srcdir}/configure.tgt
7011
7012# Fetch the default architecture and default target vector from BFD.
7013targ=$target; . $srcdir/../bfd/config.bfd
7014
7015# We only want the first architecture, so strip off the others if
7016# there is more than one.
7017targ_archs=`echo $targ_archs | sed 's/ .*//'`
7018
7019if test "x$targ_archs" != x; then
7020
7021cat >>confdefs.h <<_ACEOF
7022#define DEFAULT_BFD_ARCH $targ_archs
7023_ACEOF
7024
7025fi
7026if test "x$targ_defvec" != x; then
7027
7028cat >>confdefs.h <<_ACEOF
7029#define DEFAULT_BFD_VEC $targ_defvec
7030_ACEOF
7031
7032fi
7033
7034# The CLI cannot be disabled yet, but may be in the future.
7035
7036# Enable CLI.
7037# Check whether --enable-gdbcli was given.
7038if test "${enable_gdbcli+set}" = set; then :
7039 enableval=$enable_gdbcli; case $enableval in
7040 yes)
7041 ;;
7042 no)
7043 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
7044 *)
7045 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
7046 esac
7047else
7048 enable_gdbcli=yes
7049fi
7050
7051if test x"$enable_gdbcli" = xyes; then
7052 if test -d $srcdir/cli; then
7053 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7054 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7055 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7056 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7057 fi
7058fi
7059
7060# Enable MI.
7061# Check whether --enable-gdbmi was given.
7062if test "${enable_gdbmi+set}" = set; then :
7063 enableval=$enable_gdbmi; case $enableval in
7064 yes | no)
7065 ;;
7066 *)
7067 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
7068 esac
7069else
7070 enable_gdbmi=yes
7071fi
7072
7073if test x"$enable_gdbmi" = xyes; then
7074 if test -d $srcdir/mi; then
7075 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7076 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7077 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7078 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7079 fi
7080fi
7081
7082# Enable TUI.
7083# Check whether --enable-tui was given.
7084if test "${enable_tui+set}" = set; then :
7085 enableval=$enable_tui; case $enableval in
7086 yes | no | auto)
7087 ;;
7088 *)
7089 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
7090 esac
7091else
7092 enable_tui=auto
7093fi
7094
7095
7096# Enable gdbtk.
7097# Check whether --enable-gdbtk was given.
7098if test "${enable_gdbtk+set}" = set; then :
7099 enableval=$enable_gdbtk; case $enableval in
7100 yes | no)
7101 ;;
7102 *)
7103 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
7104 esac
7105else
7106 if test -d $srcdir/gdbtk; then
7107 enable_gdbtk=yes
7108 else
7109 enable_gdbtk=no
7110 fi
7111fi
7112
7113# We unconditionally disable gdbtk tests on selected platforms.
7114case $host_os in
7115 go32* | windows*)
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
7117$as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7118 enable_gdbtk=no ;;
7119esac
7120
7121# Libunwind support.
7122
7123# Check whether --with-libunwind was given.
7124if test "${with_libunwind+set}" = set; then :
7125 withval=$with_libunwind; case "${withval}" in
7126 yes) enable_libunwind=yes ;;
7127 no) enable_libunwind=no ;;
7128 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
7129esac
7130else
7131
7132 for ac_header in libunwind.h libunwind-ia64.h
7133do :
7134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7135ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7136eval as_val=\$$as_ac_Header
7137 if test "x$as_val" = x""yes; then :
7138 cat >>confdefs.h <<_ACEOF
7139#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7140_ACEOF
7141
7142fi
7143
7144done
7145
7146 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7147 enable_libunwind=yes;
7148 fi
7149
7150fi
7151
7152
7153if test x"$enable_libunwind" = xyes; then
7154 for ac_header in libunwind.h libunwind-ia64.h
7155do :
7156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7157ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7158eval as_val=\$$as_ac_Header
7159 if test "x$as_val" = x""yes; then :
7160 cat >>confdefs.h <<_ACEOF
7161#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7162_ACEOF
7163
7164fi
7165
7166done
7167
7168
7169$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
7170
7171 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
7172 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
7173 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
7174fi
7175
7176opt_curses=no
7177
7178# Check whether --with-curses was given.
7179if test "${with_curses+set}" = set; then :
7180 withval=$with_curses; opt_curses=$withval
7181fi
7182
7183
7184prefer_curses=no
7185if test "$opt_curses" = "yes"; then
7186 prefer_curses=yes
7187fi
7188
7189# Profiling support.
7190# Check whether --enable-profiling was given.
7191if test "${enable_profiling+set}" = set; then :
7192 enableval=$enable_profiling; case $enableval in
7193 yes | no)
7194 ;;
7195 *)
7196 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7197 esac
7198else
7199 enable_profiling=no
7200fi
7201
7202
7203for ac_func in monstartup _mcleanup
7204do :
7205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7206ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7207eval as_val=\$$as_ac_var
7208 if test "x$as_val" = x""yes; then :
7209 cat >>confdefs.h <<_ACEOF
7210#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7211_ACEOF
7212
7213fi
7214done
7215
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7217$as_echo_n "checking for _etext... " >&6; }
7218if test "${ac_cv_var__etext+set}" = set; then :
7219 $as_echo_n "(cached) " >&6
7220else
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h. */
7223#include <stdlib.h>
7224extern char _etext;
7225
7226int
7227main ()
7228{
7229free (&_etext);
7230 ;
7231 return 0;
7232}
7233_ACEOF
7234if ac_fn_c_try_link "$LINENO"; then :
7235 ac_cv_var__etext=yes
7236else
7237 ac_cv_var__etext=no
7238fi
7239rm -f core conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7243$as_echo "$ac_cv_var__etext" >&6; }
7244if test $ac_cv_var__etext = yes; then
7245
7246$as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7247
7248fi
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7250$as_echo_n "checking for etext... " >&6; }
7251if test "${ac_cv_var_etext+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
7253else
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h. */
7256#include <stdlib.h>
7257extern char etext;
7258
7259int
7260main ()
7261{
7262free (&etext);
7263 ;
7264 return 0;
7265}
7266_ACEOF
7267if ac_fn_c_try_link "$LINENO"; then :
7268 ac_cv_var_etext=yes
7269else
7270 ac_cv_var_etext=no
7271fi
7272rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7274fi
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7276$as_echo "$ac_cv_var_etext" >&6; }
7277if test $ac_cv_var_etext = yes; then
7278
7279$as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7280
7281fi
7282if test "$enable_profiling" = yes ; then
7283 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7284 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7285 fi
7286 PROFILE_CFLAGS=-pg
7287 OLD_CFLAGS="$CFLAGS"
7288 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7289
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7291$as_echo_n "checking whether $CC supports -pg... " >&6; }
7292if test "${ac_cv_cc_supports_pg+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7294else
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h. */
7297
7298int
7299main ()
7300{
7301int x;
7302 ;
7303 return 0;
7304}
7305_ACEOF
7306if ac_fn_c_try_compile "$LINENO"; then :
7307 ac_cv_cc_supports_pg=yes
7308else
7309 ac_cv_cc_supports_pg=no
7310fi
7311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7314$as_echo "$ac_cv_cc_supports_pg" >&6; }
7315
7316 if test $ac_cv_cc_supports_pg = no; then
7317 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7318 fi
7319
7320 CFLAGS="$OLD_CFLAGS"
7321fi
7322
7323
7324
7325# Check whether --with-pkgversion was given.
7326if test "${with_pkgversion+set}" = set; then :
7327 withval=$with_pkgversion; case "$withval" in
7328 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7329 no) PKGVERSION= ;;
7330 *) PKGVERSION="($withval) " ;;
7331 esac
7332else
7333 PKGVERSION="(GDB) "
7334
7335fi
7336
7337
7338
7339
7340
7341# Check whether --with-bugurl was given.
7342if test "${with_bugurl+set}" = set; then :
7343 withval=$with_bugurl; case "$withval" in
7344 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7345 no) BUGURL=
7346 ;;
7347 *) BUGURL="$withval"
7348 ;;
7349 esac
7350else
7351 BUGURL="http://www.gnu.org/software/gdb/bugs/"
7352
7353fi
7354
7355 case ${BUGURL} in
7356 "")
7357 REPORT_BUGS_TO=
7358 REPORT_BUGS_TEXI=
7359 ;;
7360 *)
7361 REPORT_BUGS_TO="<$BUGURL>"
7362 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7363 ;;
7364 esac;
7365
7366
7367
7368
7369cat >>confdefs.h <<_ACEOF
7370#define PKGVERSION "$PKGVERSION"
7371_ACEOF
7372
7373
7374cat >>confdefs.h <<_ACEOF
7375#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7376_ACEOF
7377
7378
7379# --------------------- #
7380# Checks for programs. #
7381# --------------------- #
7382
7383for ac_prog in gawk mawk nawk awk
7384do
7385 # Extract the first word of "$ac_prog", so it can be a program name with args.
7386set dummy $ac_prog; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if test "${ac_cv_prog_AWK+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7391else
7392 if test -n "$AWK"; then
7393 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402 ac_cv_prog_AWK="$ac_prog"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406done
7407 done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412AWK=$ac_cv_prog_AWK
7413if test -n "$AWK"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7415$as_echo "$AWK" >&6; }
7416else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421
7422 test -n "$AWK" && break
7423done
7424
7425
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7427$as_echo_n "checking whether ln -s works... " >&6; }
7428LN_S=$as_ln_s
7429if test "$LN_S" = "ln -s"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7431$as_echo "yes" >&6; }
7432else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7434$as_echo "no, using $LN_S" >&6; }
7435fi
7436
7437if test -n "$ac_tool_prefix"; then
7438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7439set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441$as_echo_n "checking for $ac_word... " >&6; }
7442if test "${ac_cv_prog_RANLIB+set}" = set; then :
7443 $as_echo_n "(cached) " >&6
7444else
7445 if test -n "$RANLIB"; then
7446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459done
7460 done
7461IFS=$as_save_IFS
7462
7463fi
7464fi
7465RANLIB=$ac_cv_prog_RANLIB
7466if test -n "$RANLIB"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7468$as_echo "$RANLIB" >&6; }
7469else
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471$as_echo "no" >&6; }
7472fi
7473
7474
7475fi
7476if test -z "$ac_cv_prog_RANLIB"; then
7477 ac_ct_RANLIB=$RANLIB
7478 # Extract the first word of "ranlib", so it can be a program name with args.
7479set dummy ranlib; ac_word=$2
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481$as_echo_n "checking for $ac_word... " >&6; }
7482if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7484else
7485 if test -n "$ac_ct_RANLIB"; then
7486 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7487else
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7495 ac_cv_prog_ac_ct_RANLIB="ranlib"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7498 fi
7499done
7500 done
7501IFS=$as_save_IFS
7502
7503fi
7504fi
7505ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7506if test -n "$ac_ct_RANLIB"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7508$as_echo "$ac_ct_RANLIB" >&6; }
7509else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511$as_echo "no" >&6; }
7512fi
7513
7514 if test "x$ac_ct_RANLIB" = x; then
7515 RANLIB=":"
7516 else
7517 case $cross_compiling:$ac_tool_warned in
7518yes:)
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521ac_tool_warned=yes ;;
7522esac
7523 RANLIB=$ac_ct_RANLIB
7524 fi
7525else
7526 RANLIB="$ac_cv_prog_RANLIB"
7527fi
7528
7529for ac_prog in 'bison -y' byacc
7530do
7531 # Extract the first word of "$ac_prog", so it can be a program name with args.
7532set dummy $ac_prog; ac_word=$2
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534$as_echo_n "checking for $ac_word... " >&6; }
7535if test "${ac_cv_prog_YACC+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7537else
7538 if test -n "$YACC"; then
7539 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7540else
7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_prog_YACC="$ac_prog"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
7552done
7553 done
7554IFS=$as_save_IFS
7555
7556fi
7557fi
7558YACC=$ac_cv_prog_YACC
7559if test -n "$YACC"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7561$as_echo "$YACC" >&6; }
7562else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564$as_echo "no" >&6; }
7565fi
7566
7567
7568 test -n "$YACC" && break
7569done
7570test -n "$YACC" || YACC="yacc"
7571
7572
7573if test -n "$ac_tool_prefix"; then
7574 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7575set dummy ${ac_tool_prefix}ar; ac_word=$2
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
7578if test "${ac_cv_prog_AR+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7580else
7581 if test -n "$AR"; then
7582 ac_cv_prog_AR="$AR" # Let the user override the test.
7583else
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_prog_AR="${ac_tool_prefix}ar"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595done
7596 done
7597IFS=$as_save_IFS
7598
7599fi
7600fi
7601AR=$ac_cv_prog_AR
7602if test -n "$AR"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7604$as_echo "$AR" >&6; }
7605else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
7608fi
7609
7610
7611fi
7612if test -z "$ac_cv_prog_AR"; then
7613 ac_ct_AR=$AR
7614 # Extract the first word of "ar", so it can be a program name with args.
7615set dummy ar; ac_word=$2
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617$as_echo_n "checking for $ac_word... " >&6; }
7618if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
7620else
7621 if test -n "$ac_ct_AR"; then
7622 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7623else
7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_prog_ac_ct_AR="ar"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635done
7636 done
7637IFS=$as_save_IFS
7638
7639fi
7640fi
7641ac_ct_AR=$ac_cv_prog_ac_ct_AR
7642if test -n "$ac_ct_AR"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7644$as_echo "$ac_ct_AR" >&6; }
7645else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647$as_echo "no" >&6; }
7648fi
7649
7650 if test "x$ac_ct_AR" = x; then
7651 AR=""
7652 else
7653 case $cross_compiling:$ac_tool_warned in
7654yes:)
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657ac_tool_warned=yes ;;
7658esac
7659 AR=$ac_ct_AR
7660 fi
7661else
7662 AR="$ac_cv_prog_AR"
7663fi
7664
7665if test -n "$ac_tool_prefix"; then
7666 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7667set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669$as_echo_n "checking for $ac_word... " >&6; }
7670if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7672else
7673 if test -n "$DLLTOOL"; then
7674 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7675else
7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687done
7688 done
7689IFS=$as_save_IFS
7690
7691fi
7692fi
7693DLLTOOL=$ac_cv_prog_DLLTOOL
7694if test -n "$DLLTOOL"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7696$as_echo "$DLLTOOL" >&6; }
7697else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699$as_echo "no" >&6; }
7700fi
7701
7702
7703fi
7704if test -z "$ac_cv_prog_DLLTOOL"; then
7705 ac_ct_DLLTOOL=$DLLTOOL
7706 # Extract the first word of "dlltool", so it can be a program name with args.
7707set dummy dlltool; ac_word=$2
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709$as_echo_n "checking for $ac_word... " >&6; }
7710if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712else
7713 if test -n "$ac_ct_DLLTOOL"; then
7714 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7715else
7716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717for as_dir in $PATH
7718do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7726 fi
7727done
7728 done
7729IFS=$as_save_IFS
7730
7731fi
7732fi
7733ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7734if test -n "$ac_ct_DLLTOOL"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7736$as_echo "$ac_ct_DLLTOOL" >&6; }
7737else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739$as_echo "no" >&6; }
7740fi
7741
7742 if test "x$ac_ct_DLLTOOL" = x; then
7743 DLLTOOL=""
7744 else
7745 case $cross_compiling:$ac_tool_warned in
7746yes:)
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7749ac_tool_warned=yes ;;
7750esac
7751 DLLTOOL=$ac_ct_DLLTOOL
7752 fi
7753else
7754 DLLTOOL="$ac_cv_prog_DLLTOOL"
7755fi
7756
7757if test -n "$ac_tool_prefix"; then
7758 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7759set dummy ${ac_tool_prefix}windres; ac_word=$2
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761$as_echo_n "checking for $ac_word... " >&6; }
7762if test "${ac_cv_prog_WINDRES+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7764else
7765 if test -n "$WINDRES"; then
7766 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7767else
7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779done
7780 done
7781IFS=$as_save_IFS
7782
7783fi
7784fi
7785WINDRES=$ac_cv_prog_WINDRES
7786if test -n "$WINDRES"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7788$as_echo "$WINDRES" >&6; }
7789else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
7792fi
7793
7794
7795fi
7796if test -z "$ac_cv_prog_WINDRES"; then
7797 ac_ct_WINDRES=$WINDRES
7798 # Extract the first word of "windres", so it can be a program name with args.
7799set dummy windres; ac_word=$2
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801$as_echo_n "checking for $ac_word... " >&6; }
7802if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7804else
7805 if test -n "$ac_ct_WINDRES"; then
7806 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7807else
7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_ac_ct_WINDRES="windres"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819done
7820 done
7821IFS=$as_save_IFS
7822
7823fi
7824fi
7825ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7826if test -n "$ac_ct_WINDRES"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7828$as_echo "$ac_ct_WINDRES" >&6; }
7829else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831$as_echo "no" >&6; }
7832fi
7833
7834 if test "x$ac_ct_WINDRES" = x; then
7835 WINDRES=""
7836 else
7837 case $cross_compiling:$ac_tool_warned in
7838yes:)
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7841ac_tool_warned=yes ;;
7842esac
7843 WINDRES=$ac_ct_WINDRES
7844 fi
7845else
7846 WINDRES="$ac_cv_prog_WINDRES"
7847fi
7848
7849
7850# Needed for GNU/Hurd.
7851if test -n "$ac_tool_prefix"; then
7852 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7853set dummy ${ac_tool_prefix}mig; ac_word=$2
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855$as_echo_n "checking for $ac_word... " >&6; }
7856if test "${ac_cv_prog_MIG+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858else
7859 if test -n "$MIG"; then
7860 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7861else
7862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863for as_dir in $PATH
7864do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873done
7874 done
7875IFS=$as_save_IFS
7876
7877fi
7878fi
7879MIG=$ac_cv_prog_MIG
7880if test -n "$MIG"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7882$as_echo "$MIG" >&6; }
7883else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886fi
7887
7888
7889fi
7890if test -z "$ac_cv_prog_MIG"; then
7891 ac_ct_MIG=$MIG
7892 # Extract the first word of "mig", so it can be a program name with args.
7893set dummy mig; ac_word=$2
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895$as_echo_n "checking for $ac_word... " >&6; }
7896if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898else
7899 if test -n "$ac_ct_MIG"; then
7900 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_ac_ct_MIG="mig"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913done
7914 done
7915IFS=$as_save_IFS
7916
7917fi
7918fi
7919ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7920if test -n "$ac_ct_MIG"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7922$as_echo "$ac_ct_MIG" >&6; }
7923else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925$as_echo "no" >&6; }
7926fi
7927
7928 if test "x$ac_ct_MIG" = x; then
7929 MIG=""
7930 else
7931 case $cross_compiling:$ac_tool_warned in
7932yes:)
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935ac_tool_warned=yes ;;
7936esac
7937 MIG=$ac_ct_MIG
7938 fi
7939else
7940 MIG="$ac_cv_prog_MIG"
7941fi
7942
7943
7944# ---------------------- #
7945# Checks for libraries. #
7946# ---------------------- #
7947
7948# We might need to link with -lm; most simulators need it.
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7950$as_echo_n "checking for main in -lm... " >&6; }
7951if test "${ac_cv_lib_m_main+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7953else
7954 ac_check_lib_save_LIBS=$LIBS
7955LIBS="-lm $LIBS"
7956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h. */
7958
7959
7960int
7961main ()
7962{
7963return main ();
7964 ;
7965 return 0;
7966}
7967_ACEOF
7968if ac_fn_c_try_link "$LINENO"; then :
7969 ac_cv_lib_m_main=yes
7970else
7971 ac_cv_lib_m_main=no
7972fi
7973rm -f core conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7975LIBS=$ac_check_lib_save_LIBS
7976fi
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7978$as_echo "$ac_cv_lib_m_main" >&6; }
7979if test "x$ac_cv_lib_m_main" = x""yes; then :
7980 cat >>confdefs.h <<_ACEOF
7981#define HAVE_LIBM 1
7982_ACEOF
7983
7984 LIBS="-lm $LIBS"
7985
7986fi
7987
7988
7989# We need to link with -lw to get `wctype' on Solaris before Solaris
7990# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7991# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7992# is known to have this problem). Therefore we avoid libw if we can.
7993ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
7994if test "x$ac_cv_func_wctype" = x""yes; then :
7995
7996else
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
7998$as_echo_n "checking for wctype in -lw... " >&6; }
7999if test "${ac_cv_lib_w_wctype+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001else
8002 ac_check_lib_save_LIBS=$LIBS
8003LIBS="-lw $LIBS"
8004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h. */
8006
8007/* Override any GCC internal prototype to avoid an error.
8008 Use char because int might match the return type of a GCC
8009 builtin and then its argument prototype would still apply. */
8010#ifdef __cplusplus
8011extern "C"
8012#endif
8013char wctype ();
8014int
8015main ()
8016{
8017return wctype ();
8018 ;
8019 return 0;
8020}
8021_ACEOF
8022if ac_fn_c_try_link "$LINENO"; then :
8023 ac_cv_lib_w_wctype=yes
8024else
8025 ac_cv_lib_w_wctype=no
8026fi
8027rm -f core conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029LIBS=$ac_check_lib_save_LIBS
8030fi
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
8032$as_echo "$ac_cv_lib_w_wctype" >&6; }
8033if test "x$ac_cv_lib_w_wctype" = x""yes; then :
8034 cat >>confdefs.h <<_ACEOF
8035#define HAVE_LIBW 1
8036_ACEOF
8037
8038 LIBS="-lw $LIBS"
8039
8040fi
8041
8042fi
8043
8044
8045# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8047$as_echo_n "checking for library containing gethostbyname... " >&6; }
8048if test "${ac_cv_search_gethostbyname+set}" = set; then :
8049 $as_echo_n "(cached) " >&6
8050else
8051 ac_func_search_save_LIBS=$LIBS
8052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h. */
8054
8055/* Override any GCC internal prototype to avoid an error.
8056 Use char because int might match the return type of a GCC
8057 builtin and then its argument prototype would still apply. */
8058#ifdef __cplusplus
8059extern "C"
8060#endif
8061char gethostbyname ();
8062int
8063main ()
8064{
8065return gethostbyname ();
8066 ;
8067 return 0;
8068}
8069_ACEOF
8070for ac_lib in '' nsl; do
8071 if test -z "$ac_lib"; then
8072 ac_res="none required"
8073 else
8074 ac_res=-l$ac_lib
8075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8076 fi
8077 if ac_fn_c_try_link "$LINENO"; then :
8078 ac_cv_search_gethostbyname=$ac_res
8079fi
8080rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext
8082 if test "${ac_cv_search_gethostbyname+set}" = set; then :
8083 break
8084fi
8085done
8086if test "${ac_cv_search_gethostbyname+set}" = set; then :
8087
8088else
8089 ac_cv_search_gethostbyname=no
8090fi
8091rm conftest.$ac_ext
8092LIBS=$ac_func_search_save_LIBS
8093fi
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8095$as_echo "$ac_cv_search_gethostbyname" >&6; }
8096ac_res=$ac_cv_search_gethostbyname
8097if test "$ac_res" != no; then :
8098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8099
8100fi
8101
8102
8103# Some systems (e.g. Solaris) have `socketpair' in libsocket.
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8105$as_echo_n "checking for library containing socketpair... " >&6; }
8106if test "${ac_cv_search_socketpair+set}" = set; then :
8107 $as_echo_n "(cached) " >&6
8108else
8109 ac_func_search_save_LIBS=$LIBS
8110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h. */
8112
8113/* Override any GCC internal prototype to avoid an error.
8114 Use char because int might match the return type of a GCC
8115 builtin and then its argument prototype would still apply. */
8116#ifdef __cplusplus
8117extern "C"
8118#endif
8119char socketpair ();
8120int
8121main ()
8122{
8123return socketpair ();
8124 ;
8125 return 0;
8126}
8127_ACEOF
8128for ac_lib in '' socket; do
8129 if test -z "$ac_lib"; then
8130 ac_res="none required"
8131 else
8132 ac_res=-l$ac_lib
8133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8134 fi
8135 if ac_fn_c_try_link "$LINENO"; then :
8136 ac_cv_search_socketpair=$ac_res
8137fi
8138rm -f core conftest.err conftest.$ac_objext \
8139 conftest$ac_exeext
8140 if test "${ac_cv_search_socketpair+set}" = set; then :
8141 break
8142fi
8143done
8144if test "${ac_cv_search_socketpair+set}" = set; then :
8145
8146else
8147 ac_cv_search_socketpair=no
8148fi
8149rm conftest.$ac_ext
8150LIBS=$ac_func_search_save_LIBS
8151fi
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8153$as_echo "$ac_cv_search_socketpair" >&6; }
8154ac_res=$ac_cv_search_socketpair
8155if test "$ac_res" != no; then :
8156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8157
8158fi
8159
8160
8161# Link in zlib if we can. This allows us to read compressed debug sections.
8162
8163 # See if the user specified whether he wants zlib support or not.
8164
8165# Check whether --with-zlib was given.
8166if test "${with_zlib+set}" = set; then :
8167 withval=$with_zlib;
8168else
8169 with_zlib=auto
8170fi
8171
8172
8173 if test "$with_zlib" != "no"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
8175$as_echo_n "checking for library containing zlibVersion... " >&6; }
8176if test "${ac_cv_search_zlibVersion+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178else
8179 ac_func_search_save_LIBS=$LIBS
8180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181/* end confdefs.h. */
8182
8183/* Override any GCC internal prototype to avoid an error.
8184 Use char because int might match the return type of a GCC
8185 builtin and then its argument prototype would still apply. */
8186#ifdef __cplusplus
8187extern "C"
8188#endif
8189char zlibVersion ();
8190int
8191main ()
8192{
8193return zlibVersion ();
8194 ;
8195 return 0;
8196}
8197_ACEOF
8198for ac_lib in '' z; do
8199 if test -z "$ac_lib"; then
8200 ac_res="none required"
8201 else
8202 ac_res=-l$ac_lib
8203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8204 fi
8205 if ac_fn_c_try_link "$LINENO"; then :
8206 ac_cv_search_zlibVersion=$ac_res
8207fi
8208rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext
8210 if test "${ac_cv_search_zlibVersion+set}" = set; then :
8211 break
8212fi
8213done
8214if test "${ac_cv_search_zlibVersion+set}" = set; then :
8215
8216else
8217 ac_cv_search_zlibVersion=no
8218fi
8219rm conftest.$ac_ext
8220LIBS=$ac_func_search_save_LIBS
8221fi
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
8223$as_echo "$ac_cv_search_zlibVersion" >&6; }
8224ac_res=$ac_cv_search_zlibVersion
8225if test "$ac_res" != no; then :
8226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8227 for ac_header in zlib.h
8228do :
8229 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8230if test "x$ac_cv_header_zlib_h" = x""yes; then :
8231 cat >>confdefs.h <<_ACEOF
8232#define HAVE_ZLIB_H 1
8233_ACEOF
8234
8235fi
8236
8237done
8238
8239fi
8240
8241 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
8242 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
8243 fi
8244 fi
8245
8246
8247# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
8249$as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
8250if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252else
8253 ac_func_search_save_LIBS=$LIBS
8254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255/* end confdefs.h. */
8256
8257/* Override any GCC internal prototype to avoid an error.
8258 Use char because int might match the return type of a GCC
8259 builtin and then its argument prototype would still apply. */
8260#ifdef __cplusplus
8261extern "C"
8262#endif
8263char dlgetmodinfo ();
8264int
8265main ()
8266{
8267return dlgetmodinfo ();
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272for ac_lib in '' dl xpdl; do
8273 if test -z "$ac_lib"; then
8274 ac_res="none required"
8275 else
8276 ac_res=-l$ac_lib
8277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8278 fi
8279 if ac_fn_c_try_link "$LINENO"; then :
8280 ac_cv_search_dlgetmodinfo=$ac_res
8281fi
8282rm -f core conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext
8284 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8285 break
8286fi
8287done
8288if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8289
8290else
8291 ac_cv_search_dlgetmodinfo=no
8292fi
8293rm conftest.$ac_ext
8294LIBS=$ac_func_search_save_LIBS
8295fi
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
8297$as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
8298ac_res=$ac_cv_search_dlgetmodinfo
8299if test "$ac_res" != no; then :
8300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8301
8302fi
8303
8304
8305
8306
8307
8308# Check whether --with-libiconv-prefix was given.
8309if test "${with_libiconv_prefix+set}" = set; then :
8310 withval=$with_libiconv_prefix;
8311 for dir in `echo "$withval" | tr : ' '`; do
8312 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
8313 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
8314 done
8315
8316fi
8317
8318
8319 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
8320 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
8321
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8323$as_echo_n "checking for iconv... " >&6; }
8324if test "${am_cv_func_iconv+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8326else
8327
8328 am_cv_func_iconv="no, consider installing GNU libiconv"
8329 am_cv_lib_iconv=no
8330 am_cv_use_build_libiconv=no
8331 am_cv_build_libiconv_path=
8332
8333 # If libiconv is part of the build tree, then try using it over
8334 # any system iconv.
8335 if test -d ../libiconv; then
8336 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
8337 am_save_LIBS="$LIBS"
8338 am_save_CPPFLAGS="$CPPFLAGS"
8339 LIBS="$LIBS $lib_dir/libiconv.a"
8340 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h. */
8343#include <stdlib.h>
8344#include <iconv.h>
8345int
8346main ()
8347{
8348iconv_t cd = iconv_open("","");
8349 iconv(cd,NULL,NULL,NULL,NULL);
8350 iconv_close(cd);
8351 ;
8352 return 0;
8353}
8354_ACEOF
8355if ac_fn_c_try_link "$LINENO"; then :
8356 am_cv_use_build_libiconv=yes
8357 am_cv_build_libiconv_path=$lib_dir/libiconv.a
8358 am_cv_lib_iconv=yes
8359 am_cv_func_iconv=yes
8360fi
8361rm -f core conftest.err conftest.$ac_objext \
8362 conftest$ac_exeext conftest.$ac_ext
8363 LIBS="$am_save_LIBS"
8364 CPPFLAGS="$am_save_CPPFLAGS"
8365 if test "$am_cv_use_build_libiconv" = "yes"; then
8366 break
8367 fi
8368 done
8369 fi
8370
8371 # Next, try to find iconv in libc.
8372 if test "$am_cv_func_iconv" != yes; then
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h. */
8375#include <stdlib.h>
8376#include <iconv.h>
8377int
8378main ()
8379{
8380iconv_t cd = iconv_open("","");
8381 iconv(cd,NULL,NULL,NULL,NULL);
8382 iconv_close(cd);
8383 ;
8384 return 0;
8385}
8386_ACEOF
8387if ac_fn_c_try_link "$LINENO"; then :
8388 am_cv_func_iconv=yes
8389fi
8390rm -f core conftest.err conftest.$ac_objext \
8391 conftest$ac_exeext conftest.$ac_ext
8392 fi
8393
8394 # If iconv was not in libc, try -liconv. In this case, arrange to
8395 # look in the libiconv prefix, if it was specified by the user.
8396 if test "$am_cv_func_iconv" != yes; then
8397 am_save_CPPFLAGS="$CPPFLAGS"
8398 am_save_LIBS="$LIBS"
8399 if test -n "$LIBICONV_INCLUDE"; then
8400 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
8401 LIBS="$LIBS $LIBICONV_LIBDIR"
8402 fi
8403 LIBS="$LIBS -liconv"
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405/* end confdefs.h. */
8406#include <stdlib.h>
8407#include <iconv.h>
8408int
8409main ()
8410{
8411iconv_t cd = iconv_open("","");
8412 iconv(cd,NULL,NULL,NULL,NULL);
8413 iconv_close(cd);
8414 ;
8415 return 0;
8416}
8417_ACEOF
8418if ac_fn_c_try_link "$LINENO"; then :
8419 am_cv_lib_iconv=yes
8420 am_cv_func_iconv=yes
8421fi
8422rm -f core conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
8424 LIBS="$am_save_LIBS"
8425 CPPFLAGS="$am_save_CPPFLAGS"
8426 fi
8427
8428fi
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8430$as_echo "$am_cv_func_iconv" >&6; }
8431
8432 # Set the various flags based on the cache variables. We can't rely
8433 # on the flags to remain set from the above code, due to caching.
8434 LIBICONV=
8435 if test "$am_cv_lib_iconv" = yes; then
8436 LIBICONV="-liconv"
8437 else
8438 LIBICONV_LIBDIR=
8439 LIBICONV_INCLUDE=
8440 fi
8441 if test "$am_cv_use_build_libiconv" = yes; then
8442 LIBICONV="$am_cv_build_libiconv_path"
8443 LIBICONV_LIBDIR=""
8444 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
8445 fi
8446 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
8447 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
8448
8449 if test "$am_cv_func_iconv" = yes; then
8450
8451$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8454$as_echo_n "checking for iconv declaration... " >&6; }
8455 if test "${am_cv_proto_iconv+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457else
8458
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h. */
8461
8462#include <stdlib.h>
8463#include <iconv.h>
8464extern
8465#ifdef __cplusplus
8466"C"
8467#endif
8468#if defined(__STDC__) || defined(__cplusplus)
8469size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8470#else
8471size_t iconv();
8472#endif
8473
8474int
8475main ()
8476{
8477
8478 ;
8479 return 0;
8480}
8481_ACEOF
8482if ac_fn_c_try_compile "$LINENO"; then :
8483 am_cv_proto_iconv_arg1=""
8484else
8485 am_cv_proto_iconv_arg1="const"
8486fi
8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 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);"
8489fi
8490
8491 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8493 }$am_cv_proto_iconv" >&5
8494$as_echo "${ac_t:-
8495 }$am_cv_proto_iconv" >&6; }
8496
8497cat >>confdefs.h <<_ACEOF
8498#define ICONV_CONST $am_cv_proto_iconv_arg1
8499_ACEOF
8500
8501 fi
8502
8503
8504# On alpha-osf, it appears that libtermcap and libcurses are not compatible.
8505# There is a very specific comment in /usr/include/curses.h explaining that
8506# termcap routines built into libcurses must not be used.
8507#
8508# The symptoms we observed so far is GDB unexpectedly changing
8509# the terminal settings when tgetent is called - this is particularly
8510# visible as the output is missing carriage returns, and so rapidly
8511# becomes very hard to read.
8512#
8513# The readline configure script has already decided that libtermcap
8514# was enough for its purposes, and so decided to build readline using
8515# libtermcap. Since the TUI mode requires curses, building GDB with
8516# TUI enabled results in both libraries to be used at the same time,
8517# which is not allowed. This basically means that GDB with TUI is
8518# broken on alpha-osf.
8519
8520case $host_os in
8521 alpha*-*-osf* )
8522 if "$enable_tui" = "yes"; then
8523 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
8524 fi
8525 if "$enable_tui" = "auto"; then
8526 enable_tui=no
8527 fi
8528 ;;
8529esac
8530
8531# For the TUI, we need enhanced curses functionality.
8532if test x"$enable_tui" != xno; then
8533 prefer_curses=yes
8534fi
8535
8536curses_found=no
8537if test x"$prefer_curses" = xyes; then
8538 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8539 # curses library because the latter might not provide all the
8540 # functionality we need. However, this leads to problems on systems
8541 # where the linker searches /usr/local/lib, but the compiler doesn't
8542 # search /usr/local/include, if ncurses is installed in /usr/local. A
8543 # default installation of ncurses on alpha*-dec-osf* will lead to such
8544 # a situation.
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8546$as_echo_n "checking for library containing waddstr... " >&6; }
8547if test "${ac_cv_search_waddstr+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549else
8550 ac_func_search_save_LIBS=$LIBS
8551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552/* end confdefs.h. */
8553
8554/* Override any GCC internal prototype to avoid an error.
8555 Use char because int might match the return type of a GCC
8556 builtin and then its argument prototype would still apply. */
8557#ifdef __cplusplus
8558extern "C"
8559#endif
8560char waddstr ();
8561int
8562main ()
8563{
8564return waddstr ();
8565 ;
8566 return 0;
8567}
8568_ACEOF
8569for ac_lib in '' ncurses cursesX curses; do
8570 if test -z "$ac_lib"; then
8571 ac_res="none required"
8572 else
8573 ac_res=-l$ac_lib
8574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8575 fi
8576 if ac_fn_c_try_link "$LINENO"; then :
8577 ac_cv_search_waddstr=$ac_res
8578fi
8579rm -f core conftest.err conftest.$ac_objext \
8580 conftest$ac_exeext
8581 if test "${ac_cv_search_waddstr+set}" = set; then :
8582 break
8583fi
8584done
8585if test "${ac_cv_search_waddstr+set}" = set; then :
8586
8587else
8588 ac_cv_search_waddstr=no
8589fi
8590rm conftest.$ac_ext
8591LIBS=$ac_func_search_save_LIBS
8592fi
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8594$as_echo "$ac_cv_search_waddstr" >&6; }
8595ac_res=$ac_cv_search_waddstr
8596if test "$ac_res" != no; then :
8597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8598
8599fi
8600
8601
8602 if test "$ac_cv_search_waddstr" != no; then
8603 curses_found=yes
8604 fi
8605fi
8606
8607# Check whether we should enable the TUI, but only do so if we really
8608# can.
8609if test x"$enable_tui" != xno; then
8610 if test -d $srcdir/tui; then
8611 if test "$curses_found" != no; then
8612 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8613 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8614 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8615 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8616 CONFIG_ALL="${CONFIG_ALL} all-tui"
8617 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
8618 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
8619 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
8620 else
8621 if test x"$enable_tui" = xyes; then
8622 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8625$as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8626 fi
8627 fi
8628 fi
8629fi
8630
8631# Since GDB uses Readline, we need termcap functionality. In many
8632# cases this will be provided by the curses library, but some systems
8633# have a seperate termcap library, or no curses library at all.
8634
8635case $host_os in
8636 cygwin*)
8637 if test -d $srcdir/libtermcap; then
8638 LIBS="../libtermcap/libtermcap.a $LIBS"
8639 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8640 fi ;;
8641 go32* | *djgpp*)
8642 ac_cv_search_tgetent="none required"
8643 ;;
8644 *mingw32*)
8645 ac_cv_search_tgetent="none required"
8646 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
8647 ;;
8648esac
8649
8650# These are the libraries checked by Readline.
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8652$as_echo_n "checking for library containing tgetent... " >&6; }
8653if test "${ac_cv_search_tgetent+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8655else
8656 ac_func_search_save_LIBS=$LIBS
8657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h. */
8659
8660/* Override any GCC internal prototype to avoid an error.
8661 Use char because int might match the return type of a GCC
8662 builtin and then its argument prototype would still apply. */
8663#ifdef __cplusplus
8664extern "C"
8665#endif
8666char tgetent ();
8667int
8668main ()
8669{
8670return tgetent ();
8671 ;
8672 return 0;
8673}
8674_ACEOF
8675for ac_lib in '' termcap tinfo curses ncurses; do
8676 if test -z "$ac_lib"; then
8677 ac_res="none required"
8678 else
8679 ac_res=-l$ac_lib
8680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8681 fi
8682 if ac_fn_c_try_link "$LINENO"; then :
8683 ac_cv_search_tgetent=$ac_res
8684fi
8685rm -f core conftest.err conftest.$ac_objext \
8686 conftest$ac_exeext
8687 if test "${ac_cv_search_tgetent+set}" = set; then :
8688 break
8689fi
8690done
8691if test "${ac_cv_search_tgetent+set}" = set; then :
8692
8693else
8694 ac_cv_search_tgetent=no
8695fi
8696rm conftest.$ac_ext
8697LIBS=$ac_func_search_save_LIBS
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8700$as_echo "$ac_cv_search_tgetent" >&6; }
8701ac_res=$ac_cv_search_tgetent
8702if test "$ac_res" != no; then :
8703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8704
8705fi
8706
8707
8708if test "$ac_cv_search_tgetent" = no; then
8709 as_fn_error "no termcap library found" "$LINENO" 5
8710fi
8711
8712
8713# Check whether --with-system-readline was given.
8714if test "${with_system_readline+set}" = set; then :
8715 withval=$with_system_readline;
8716fi
8717
8718
8719if test "$with_system_readline" = yes; then
8720 READLINE=-lreadline
8721 READLINE_DEPS=
8722 READLINE_CFLAGS=
8723
8724 # readline-6.0 started to use the name `_rl_echoing_p'.
8725 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
8726
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
8728$as_echo_n "checking for readline_echoing_p... " >&6; }
8729 save_LIBS=$LIBS
8730 LIBS="$LIBS $READLINE"
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h. */
8733
8734int
8735main ()
8736{
8737extern int readline_echoing_p;
8738 return readline_echoing_p;
8739 ;
8740 return 0;
8741}
8742_ACEOF
8743if ac_fn_c_try_link "$LINENO"; then :
8744 READLINE_ECHOING_P=yes
8745else
8746 READLINE_ECHOING_P=no
8747
8748$as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
8749
8750fi
8751rm -f core conftest.err conftest.$ac_objext \
8752 conftest$ac_exeext conftest.$ac_ext
8753 LIBS="$save_LIBS"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
8755$as_echo "$READLINE_ECHOING_P" >&6; }
8756else
8757 READLINE='$(READLINE_DIR)/libreadline.a'
8758 READLINE_DEPS='$(READLINE)'
8759 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8760fi
8761
8762
8763
8764
8765
8766# Check whether --with-expat was given.
8767if test "${with_expat+set}" = set; then :
8768 withval=$with_expat;
8769else
8770 with_expat=auto
8771fi
8772
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8774$as_echo_n "checking whether to use expat... " >&6; }
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8776$as_echo "$with_expat" >&6; }
8777
8778if test "${with_expat}" = no; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8780$as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8781 HAVE_LIBEXPAT=no
8782else
8783
8784 if test "X$prefix" = "XNONE"; then
8785 acl_final_prefix="$ac_default_prefix"
8786 else
8787 acl_final_prefix="$prefix"
8788 fi
8789 if test "X$exec_prefix" = "XNONE"; then
8790 acl_final_exec_prefix='${prefix}'
8791 else
8792 acl_final_exec_prefix="$exec_prefix"
8793 fi
8794 acl_save_prefix="$prefix"
8795 prefix="$acl_final_prefix"
8796 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8797 prefix="$acl_save_prefix"
8798
8799
8800# Check whether --with-gnu-ld was given.
8801if test "${with_gnu_ld+set}" = set; then :
8802 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8803else
8804 with_gnu_ld=no
8805fi
8806
8807# Prepare PATH_SEPARATOR.
8808# The user is always right.
8809if test "${PATH_SEPARATOR+set}" != set; then
8810 echo "#! /bin/sh" >conf$$.sh
8811 echo "exit 0" >>conf$$.sh
8812 chmod +x conf$$.sh
8813 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8814 PATH_SEPARATOR=';'
8815 else
8816 PATH_SEPARATOR=:
8817 fi
8818 rm -f conf$$.sh
8819fi
8820ac_prog=ld
8821if test "$GCC" = yes; then
8822 # Check if gcc -print-prog-name=ld gives a path.
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8824$as_echo_n "checking for ld used by GCC... " >&6; }
8825 case $host in
8826 *-*-mingw*)
8827 # gcc leaves a trailing carriage return which upsets mingw
8828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8829 *)
8830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8831 esac
8832 case $ac_prog in
8833 # Accept absolute paths.
8834 [\\/]* | [A-Za-z]:[\\/]*)
8835 re_direlt='/[^/][^/]*/\.\./'
8836 # Canonicalize the path of ld
8837 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8838 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8839 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8840 done
8841 test -z "$LD" && LD="$ac_prog"
8842 ;;
8843 "")
8844 # If it fails, then pretend we aren't using GCC.
8845 ac_prog=ld
8846 ;;
8847 *)
8848 # If it is relative, then search for the first ld in PATH.
8849 with_gnu_ld=unknown
8850 ;;
8851 esac
8852elif test "$with_gnu_ld" = yes; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8854$as_echo_n "checking for GNU ld... " >&6; }
8855else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8857$as_echo_n "checking for non-GNU ld... " >&6; }
8858fi
8859if test "${acl_cv_path_LD+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
8861else
8862 if test -z "$LD"; then
8863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8864 for ac_dir in $PATH; do
8865 test -z "$ac_dir" && ac_dir=.
8866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8867 acl_cv_path_LD="$ac_dir/$ac_prog"
8868 # Check to see if the program is GNU ld. I'd rather use --version,
8869 # but apparently some GNU ld's only accept -v.
8870 # Break only if it was the GNU/non-GNU ld that we prefer.
8871 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8872 test "$with_gnu_ld" != no && break
8873 else
8874 test "$with_gnu_ld" != yes && break
8875 fi
8876 fi
8877 done
8878 IFS="$ac_save_ifs"
8879else
8880 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8881fi
8882fi
8883
8884LD="$acl_cv_path_LD"
8885if test -n "$LD"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8887$as_echo "$LD" >&6; }
8888else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890$as_echo "no" >&6; }
8891fi
8892test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8894$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8895if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8896 $as_echo_n "(cached) " >&6
8897else
8898 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8899if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8900 acl_cv_prog_gnu_ld=yes
8901else
8902 acl_cv_prog_gnu_ld=no
8903fi
8904fi
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8906$as_echo "$acl_cv_prog_gnu_ld" >&6; }
8907with_gnu_ld=$acl_cv_prog_gnu_ld
8908
8909
8910
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8912$as_echo_n "checking for shared library run path origin... " >&6; }
8913if test "${acl_cv_rpath+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
8915else
8916
8917 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8918 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8919 . ./conftest.sh
8920 rm -f ./conftest.sh
8921 acl_cv_rpath=done
8922
8923fi
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8925$as_echo "$acl_cv_rpath" >&6; }
8926 wl="$acl_cv_wl"
8927 libext="$acl_cv_libext"
8928 shlibext="$acl_cv_shlibext"
8929 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8930 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8931 hardcode_direct="$acl_cv_hardcode_direct"
8932 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8933 # Check whether --enable-rpath was given.
8934if test "${enable_rpath+set}" = set; then :
8935 enableval=$enable_rpath; :
8936else
8937 enable_rpath=yes
8938fi
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949 use_additional=yes
8950
8951 acl_save_prefix="$prefix"
8952 prefix="$acl_final_prefix"
8953 acl_save_exec_prefix="$exec_prefix"
8954 exec_prefix="$acl_final_exec_prefix"
8955
8956 eval additional_includedir=\"$includedir\"
8957 eval additional_libdir=\"$libdir\"
8958
8959 exec_prefix="$acl_save_exec_prefix"
8960 prefix="$acl_save_prefix"
8961
8962
8963# Check whether --with-libexpat-prefix was given.
8964if test "${with_libexpat_prefix+set}" = set; then :
8965 withval=$with_libexpat_prefix;
8966 if test "X$withval" = "Xno"; then
8967 use_additional=no
8968 else
8969 if test "X$withval" = "X"; then
8970
8971 acl_save_prefix="$prefix"
8972 prefix="$acl_final_prefix"
8973 acl_save_exec_prefix="$exec_prefix"
8974 exec_prefix="$acl_final_exec_prefix"
8975
8976 eval additional_includedir=\"$includedir\"
8977 eval additional_libdir=\"$libdir\"
8978
8979 exec_prefix="$acl_save_exec_prefix"
8980 prefix="$acl_save_prefix"
8981
8982 else
8983 additional_includedir="$withval/include"
8984 additional_libdir="$withval/lib"
8985 fi
8986 fi
8987
8988fi
8989
8990 LIBEXPAT=
8991 LTLIBEXPAT=
8992 INCEXPAT=
8993 rpathdirs=
8994 ltrpathdirs=
8995 names_already_handled=
8996 names_next_round='expat '
8997 while test -n "$names_next_round"; do
8998 names_this_round="$names_next_round"
8999 names_next_round=
9000 for name in $names_this_round; do
9001 already_handled=
9002 for n in $names_already_handled; do
9003 if test "$n" = "$name"; then
9004 already_handled=yes
9005 break
9006 fi
9007 done
9008 if test -z "$already_handled"; then
9009 names_already_handled="$names_already_handled $name"
9010 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9011 eval value=\"\$HAVE_LIB$uppername\"
9012 if test -n "$value"; then
9013 if test "$value" = yes; then
9014 eval value=\"\$LIB$uppername\"
9015 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9016 eval value=\"\$LTLIB$uppername\"
9017 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9018 else
9019 :
9020 fi
9021 else
9022 found_dir=
9023 found_la=
9024 found_so=
9025 found_a=
9026 if test $use_additional = yes; then
9027 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9028 found_dir="$additional_libdir"
9029 found_so="$additional_libdir/lib$name.$shlibext"
9030 if test -f "$additional_libdir/lib$name.la"; then
9031 found_la="$additional_libdir/lib$name.la"
9032 fi
9033 else
9034 if test -f "$additional_libdir/lib$name.$libext"; then
9035 found_dir="$additional_libdir"
9036 found_a="$additional_libdir/lib$name.$libext"
9037 if test -f "$additional_libdir/lib$name.la"; then
9038 found_la="$additional_libdir/lib$name.la"
9039 fi
9040 fi
9041 fi
9042 fi
9043 if test "X$found_dir" = "X"; then
9044 for x in $LDFLAGS $LTLIBEXPAT; do
9045
9046 acl_save_prefix="$prefix"
9047 prefix="$acl_final_prefix"
9048 acl_save_exec_prefix="$exec_prefix"
9049 exec_prefix="$acl_final_exec_prefix"
9050 eval x=\"$x\"
9051 exec_prefix="$acl_save_exec_prefix"
9052 prefix="$acl_save_prefix"
9053
9054 case "$x" in
9055 -L*)
9056 dir=`echo "X$x" | sed -e 's/^X-L//'`
9057 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9058 found_dir="$dir"
9059 found_so="$dir/lib$name.$shlibext"
9060 if test -f "$dir/lib$name.la"; then
9061 found_la="$dir/lib$name.la"
9062 fi
9063 else
9064 if test -f "$dir/lib$name.$libext"; then
9065 found_dir="$dir"
9066 found_a="$dir/lib$name.$libext"
9067 if test -f "$dir/lib$name.la"; then
9068 found_la="$dir/lib$name.la"
9069 fi
9070 fi
9071 fi
9072 ;;
9073 esac
9074 if test "X$found_dir" != "X"; then
9075 break
9076 fi
9077 done
9078 fi
9079 if test "X$found_dir" != "X"; then
9080 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9081 if test "X$found_so" != "X"; then
9082 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9083 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9084 else
9085 haveit=
9086 for x in $ltrpathdirs; do
9087 if test "X$x" = "X$found_dir"; then
9088 haveit=yes
9089 break
9090 fi
9091 done
9092 if test -z "$haveit"; then
9093 ltrpathdirs="$ltrpathdirs $found_dir"
9094 fi
9095 if test "$hardcode_direct" = yes; then
9096 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9097 else
9098 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9099 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9100 haveit=
9101 for x in $rpathdirs; do
9102 if test "X$x" = "X$found_dir"; then
9103 haveit=yes
9104 break
9105 fi
9106 done
9107 if test -z "$haveit"; then
9108 rpathdirs="$rpathdirs $found_dir"
9109 fi
9110 else
9111 haveit=
9112 for x in $LDFLAGS $LIBEXPAT; do
9113
9114 acl_save_prefix="$prefix"
9115 prefix="$acl_final_prefix"
9116 acl_save_exec_prefix="$exec_prefix"
9117 exec_prefix="$acl_final_exec_prefix"
9118 eval x=\"$x\"
9119 exec_prefix="$acl_save_exec_prefix"
9120 prefix="$acl_save_prefix"
9121
9122 if test "X$x" = "X-L$found_dir"; then
9123 haveit=yes
9124 break
9125 fi
9126 done
9127 if test -z "$haveit"; then
9128 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9129 fi
9130 if test "$hardcode_minus_L" != no; then
9131 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9132 else
9133 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9134 fi
9135 fi
9136 fi
9137 fi
9138 else
9139 if test "X$found_a" != "X"; then
9140 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9141 else
9142 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9143 fi
9144 fi
9145 additional_includedir=
9146 case "$found_dir" in
9147 */lib | */lib/)
9148 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9149 additional_includedir="$basedir/include"
9150 ;;
9151 esac
9152 if test "X$additional_includedir" != "X"; then
9153 if test "X$additional_includedir" != "X/usr/include"; then
9154 haveit=
9155 if test "X$additional_includedir" = "X/usr/local/include"; then
9156 if test -n "$GCC"; then
9157 case $host_os in
9158 linux*) haveit=yes;;
9159 esac
9160 fi
9161 fi
9162 if test -z "$haveit"; then
9163 for x in $CPPFLAGS $INCEXPAT; do
9164
9165 acl_save_prefix="$prefix"
9166 prefix="$acl_final_prefix"
9167 acl_save_exec_prefix="$exec_prefix"
9168 exec_prefix="$acl_final_exec_prefix"
9169 eval x=\"$x\"
9170 exec_prefix="$acl_save_exec_prefix"
9171 prefix="$acl_save_prefix"
9172
9173 if test "X$x" = "X-I$additional_includedir"; then
9174 haveit=yes
9175 break
9176 fi
9177 done
9178 if test -z "$haveit"; then
9179 if test -d "$additional_includedir"; then
9180 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9181 fi
9182 fi
9183 fi
9184 fi
9185 fi
9186 if test -n "$found_la"; then
9187 save_libdir="$libdir"
9188 case "$found_la" in
9189 */* | *\\*) . "$found_la" ;;
9190 *) . "./$found_la" ;;
9191 esac
9192 libdir="$save_libdir"
9193 for dep in $dependency_libs; do
9194 case "$dep" in
9195 -L*)
9196 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9197 if test "X$additional_libdir" != "X/usr/lib"; then
9198 haveit=
9199 if test "X$additional_libdir" = "X/usr/local/lib"; then
9200 if test -n "$GCC"; then
9201 case $host_os in
9202 linux*) haveit=yes;;
9203 esac
9204 fi
9205 fi
9206 if test -z "$haveit"; then
9207 haveit=
9208 for x in $LDFLAGS $LIBEXPAT; do
9209
9210 acl_save_prefix="$prefix"
9211 prefix="$acl_final_prefix"
9212 acl_save_exec_prefix="$exec_prefix"
9213 exec_prefix="$acl_final_exec_prefix"
9214 eval x=\"$x\"
9215 exec_prefix="$acl_save_exec_prefix"
9216 prefix="$acl_save_prefix"
9217
9218 if test "X$x" = "X-L$additional_libdir"; then
9219 haveit=yes
9220 break
9221 fi
9222 done
9223 if test -z "$haveit"; then
9224 if test -d "$additional_libdir"; then
9225 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9226 fi
9227 fi
9228 haveit=
9229 for x in $LDFLAGS $LTLIBEXPAT; do
9230
9231 acl_save_prefix="$prefix"
9232 prefix="$acl_final_prefix"
9233 acl_save_exec_prefix="$exec_prefix"
9234 exec_prefix="$acl_final_exec_prefix"
9235 eval x=\"$x\"
9236 exec_prefix="$acl_save_exec_prefix"
9237 prefix="$acl_save_prefix"
9238
9239 if test "X$x" = "X-L$additional_libdir"; then
9240 haveit=yes
9241 break
9242 fi
9243 done
9244 if test -z "$haveit"; then
9245 if test -d "$additional_libdir"; then
9246 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9247 fi
9248 fi
9249 fi
9250 fi
9251 ;;
9252 -R*)
9253 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9254 if test "$enable_rpath" != no; then
9255 haveit=
9256 for x in $rpathdirs; do
9257 if test "X$x" = "X$dir"; then
9258 haveit=yes
9259 break
9260 fi
9261 done
9262 if test -z "$haveit"; then
9263 rpathdirs="$rpathdirs $dir"
9264 fi
9265 haveit=
9266 for x in $ltrpathdirs; do
9267 if test "X$x" = "X$dir"; then
9268 haveit=yes
9269 break
9270 fi
9271 done
9272 if test -z "$haveit"; then
9273 ltrpathdirs="$ltrpathdirs $dir"
9274 fi
9275 fi
9276 ;;
9277 -l*)
9278 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9279 ;;
9280 *.la)
9281 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9282 ;;
9283 *)
9284 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9285 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9286 ;;
9287 esac
9288 done
9289 fi
9290 else
9291 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9292 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9293 fi
9294 fi
9295 fi
9296 done
9297 done
9298 if test "X$rpathdirs" != "X"; then
9299 if test -n "$hardcode_libdir_separator"; then
9300 alldirs=
9301 for found_dir in $rpathdirs; do
9302 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9303 done
9304 acl_save_libdir="$libdir"
9305 libdir="$alldirs"
9306 eval flag=\"$hardcode_libdir_flag_spec\"
9307 libdir="$acl_save_libdir"
9308 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9309 else
9310 for found_dir in $rpathdirs; do
9311 acl_save_libdir="$libdir"
9312 libdir="$found_dir"
9313 eval flag=\"$hardcode_libdir_flag_spec\"
9314 libdir="$acl_save_libdir"
9315 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9316 done
9317 fi
9318 fi
9319 if test "X$ltrpathdirs" != "X"; then
9320 for found_dir in $ltrpathdirs; do
9321 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9322 done
9323 fi
9324
9325
9326 ac_save_CPPFLAGS="$CPPFLAGS"
9327
9328 for element in $INCEXPAT; do
9329 haveit=
9330 for x in $CPPFLAGS; do
9331
9332 acl_save_prefix="$prefix"
9333 prefix="$acl_final_prefix"
9334 acl_save_exec_prefix="$exec_prefix"
9335 exec_prefix="$acl_final_exec_prefix"
9336 eval x=\"$x\"
9337 exec_prefix="$acl_save_exec_prefix"
9338 prefix="$acl_save_prefix"
9339
9340 if test "X$x" = "X$element"; then
9341 haveit=yes
9342 break
9343 fi
9344 done
9345 if test -z "$haveit"; then
9346 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9347 fi
9348 done
9349
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9352$as_echo_n "checking for libexpat... " >&6; }
9353if test "${ac_cv_libexpat+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355else
9356
9357 ac_save_LIBS="$LIBS"
9358 LIBS="$LIBS $LIBEXPAT"
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h. */
9361#include "expat.h"
9362int
9363main ()
9364{
9365XML_Parser p = XML_ParserCreate (0);
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370if ac_fn_c_try_link "$LINENO"; then :
9371 ac_cv_libexpat=yes
9372else
9373 ac_cv_libexpat=no
9374fi
9375rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9377 LIBS="$ac_save_LIBS"
9378
9379fi
9380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9381$as_echo "$ac_cv_libexpat" >&6; }
9382 if test "$ac_cv_libexpat" = yes; then
9383 HAVE_LIBEXPAT=yes
9384
9385$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9386
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9388$as_echo_n "checking how to link with libexpat... " >&6; }
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9390$as_echo "$LIBEXPAT" >&6; }
9391 else
9392 HAVE_LIBEXPAT=no
9393 CPPFLAGS="$ac_save_CPPFLAGS"
9394 LIBEXPAT=
9395 LTLIBEXPAT=
9396 fi
9397
9398
9399
9400
9401
9402
9403 if test "$HAVE_LIBEXPAT" != yes; then
9404 if test "$with_expat" = yes; then
9405 as_fn_error "expat is missing or unusable" "$LINENO" 5
9406 else
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9408$as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9409 fi
9410 else
9411 save_LIBS=$LIBS
9412 LIBS="$LIBS $LIBEXPAT"
9413 for ac_func in XML_StopParser
9414do :
9415 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9416if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
9417 cat >>confdefs.h <<_ACEOF
9418#define HAVE_XML_STOPPARSER 1
9419_ACEOF
9420
9421fi
9422done
9423
9424 LIBS=$save_LIBS
9425 fi
9426fi
9427
9428
9429
9430
9431# Check whether --with-python was given.
9432if test "${with_python+set}" = set; then :
9433 withval=$with_python;
9434else
9435 with_python=auto
9436fi
9437
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9439$as_echo_n "checking whether to use python... " >&6; }
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9441$as_echo "$with_python" >&6; }
9442
9443if test "${with_python}" = no; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9445$as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9446 have_libpython=no
9447else
9448 case "${with_python}" in
9449 yes | auto)
9450 # Leave as empty, use defaults.
9451 python_includes=
9452 python_libs=
9453 ;;
9454 /*)
9455 python_includes="-I${with_python}/include"
9456 python_libs="-L${with_python}/lib"
9457 ;;
9458 *)
9459 as_fn_error "invalid value for --with-python" "$LINENO" 5
9460 ;;
9461 esac
9462
9463 save_CPPFLAGS=$CPPFLAGS
9464 CPPFLAGS="$CPPFLAGS ${python_includes}"
9465 save_LIBS=$LIBS
9466 LIBS="$LIBS ${python_libs}"
9467 have_libpython=no
9468 if test "${have_libpython}" = no; then
9469
9470 version=python2.6
9471
9472
9473 HAVE_LIBPYTHON2_6=no
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9475$as_echo_n "checking for ${version}... " >&6; }
9476 save_LIBS=$LIBS
9477 LIBS="$LIBS -l${version}"
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h. */
9480#include "${version}/Python.h"
9481int
9482main ()
9483{
9484Py_Initialize ();
9485 ;
9486 return 0;
9487}
9488_ACEOF
9489if ac_fn_c_try_link "$LINENO"; then :
9490 HAVE_LIBPYTHON2_6=yes
9491 have_libpython=yes
9492else
9493 LIBS=$save_LIBS
9494fi
9495rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
9498$as_echo "$HAVE_LIBPYTHON2_6" >&6; }
9499
9500 if test "${HAVE_LIBPYTHON2_6}" = yes; then
9501
9502$as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9503
9504 fi
9505 fi
9506 if test ${have_libpython} = no; then
9507
9508 version=python2.5
9509
9510
9511 HAVE_LIBPYTHON2_5=no
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9513$as_echo_n "checking for ${version}... " >&6; }
9514 save_LIBS=$LIBS
9515 LIBS="$LIBS -l${version}"
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517/* end confdefs.h. */
9518#include "${version}/Python.h"
9519int
9520main ()
9521{
9522Py_Initialize ();
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527if ac_fn_c_try_link "$LINENO"; then :
9528 HAVE_LIBPYTHON2_5=yes
9529 have_libpython=yes
9530else
9531 LIBS=$save_LIBS
9532fi
9533rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
9536$as_echo "$HAVE_LIBPYTHON2_5" >&6; }
9537
9538 if test "${HAVE_LIBPYTHON2_5}" = yes; then
9539
9540$as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9541
9542 fi
9543 fi
9544 if test ${have_libpython} = no; then
9545
9546 version=python2.4
9547
9548
9549 HAVE_LIBPYTHON2_4=no
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9551$as_echo_n "checking for ${version}... " >&6; }
9552 save_LIBS=$LIBS
9553 LIBS="$LIBS -l${version}"
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h. */
9556#include "${version}/Python.h"
9557int
9558main ()
9559{
9560Py_Initialize ();
9561 ;
9562 return 0;
9563}
9564_ACEOF
9565if ac_fn_c_try_link "$LINENO"; then :
9566 HAVE_LIBPYTHON2_4=yes
9567 have_libpython=yes
9568else
9569 LIBS=$save_LIBS
9570fi
9571rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
9574$as_echo "$HAVE_LIBPYTHON2_4" >&6; }
9575
9576 if test "${HAVE_LIBPYTHON2_4}" = yes; then
9577
9578$as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9579
9580 fi
9581 fi
9582 if test ${have_libpython} = no; then
9583 case "${with_python}" in
9584 yes)
9585 as_fn_error "python is missing or unusable" "$LINENO" 5
9586 ;;
9587 auto)
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9589$as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9590 ;;
9591 *)
9592 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
9593 ;;
9594 esac
9595 CPPFLAGS=$save_CPPFLAGS
9596 LIBS=$save_LIBS
9597 fi
9598fi
9599
9600if test "${have_libpython}" = yes; then
9601
9602$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9603
9604 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9605 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9606 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9607 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9608
9609 # Flags needed to compile Python code (taken from python-config --cflags).
9610 # We cannot call python-config directly because it will output whatever was
9611 # used when compiling the Python interpreter itself, including flags which
9612 # would make the python-related objects be compiled differently from the
9613 # rest of GDB (e.g., -O2 and -fPIC).
9614 if test "${GCC}" = yes; then
9615 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9616 fi
9617
9618 if test "x${tentative_python_cflags}" != x; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9620$as_echo_n "checking compiler flags for python code... " >&6; }
9621 for flag in ${tentative_python_cflags}; do
9622 # Check that the compiler accepts it
9623 saved_CFLAGS="$CFLAGS"
9624 CFLAGS="$CFLAGS $flag"
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626/* end confdefs.h. */
9627
9628int
9629main ()
9630{
9631
9632 ;
9633 return 0;
9634}
9635_ACEOF
9636if ac_fn_c_try_compile "$LINENO"; then :
9637 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9638fi
9639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 CFLAGS="$saved_CFLAGS"
9641 done
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9643$as_echo "${PYTHON_CFLAGS}" >&6; }
9644 fi
9645else
9646 # Even if Python support is not compiled in, we need to have these files
9647 # included in order to recognize the GDB command "python".
9648 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o"
9649 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c python/py-prettyprint.c"
9650fi
9651
9652
9653# ------------------------- #
9654# Checks for header files. #
9655# ------------------------- #
9656
9657ac_header_dirent=no
9658for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9659 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9661$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9663 $as_echo_n "(cached) " >&6
9664else
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666/* end confdefs.h. */
9667#include <sys/types.h>
9668#include <$ac_hdr>
9669
9670int
9671main ()
9672{
9673if ((DIR *) 0)
9674return 0;
9675 ;
9676 return 0;
9677}
9678_ACEOF
9679if ac_fn_c_try_compile "$LINENO"; then :
9680 eval "$as_ac_Header=yes"
9681else
9682 eval "$as_ac_Header=no"
9683fi
9684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685fi
9686eval ac_res=\$$as_ac_Header
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9688$as_echo "$ac_res" >&6; }
9689eval as_val=\$$as_ac_Header
9690 if test "x$as_val" = x""yes; then :
9691 cat >>confdefs.h <<_ACEOF
9692#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9693_ACEOF
9694
9695ac_header_dirent=$ac_hdr; break
9696fi
9697
9698done
9699# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9700if test $ac_header_dirent = dirent.h; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9702$as_echo_n "checking for library containing opendir... " >&6; }
9703if test "${ac_cv_search_opendir+set}" = set; then :
9704 $as_echo_n "(cached) " >&6
9705else
9706 ac_func_search_save_LIBS=$LIBS
9707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708/* end confdefs.h. */
9709
9710/* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply. */
9713#ifdef __cplusplus
9714extern "C"
9715#endif
9716char opendir ();
9717int
9718main ()
9719{
9720return opendir ();
9721 ;
9722 return 0;
9723}
9724_ACEOF
9725for ac_lib in '' dir; do
9726 if test -z "$ac_lib"; then
9727 ac_res="none required"
9728 else
9729 ac_res=-l$ac_lib
9730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9731 fi
9732 if ac_fn_c_try_link "$LINENO"; then :
9733 ac_cv_search_opendir=$ac_res
9734fi
9735rm -f core conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext
9737 if test "${ac_cv_search_opendir+set}" = set; then :
9738 break
9739fi
9740done
9741if test "${ac_cv_search_opendir+set}" = set; then :
9742
9743else
9744 ac_cv_search_opendir=no
9745fi
9746rm conftest.$ac_ext
9747LIBS=$ac_func_search_save_LIBS
9748fi
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9750$as_echo "$ac_cv_search_opendir" >&6; }
9751ac_res=$ac_cv_search_opendir
9752if test "$ac_res" != no; then :
9753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9754
9755fi
9756
9757else
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9759$as_echo_n "checking for library containing opendir... " >&6; }
9760if test "${ac_cv_search_opendir+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762else
9763 ac_func_search_save_LIBS=$LIBS
9764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h. */
9766
9767/* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
9770#ifdef __cplusplus
9771extern "C"
9772#endif
9773char opendir ();
9774int
9775main ()
9776{
9777return opendir ();
9778 ;
9779 return 0;
9780}
9781_ACEOF
9782for ac_lib in '' x; do
9783 if test -z "$ac_lib"; then
9784 ac_res="none required"
9785 else
9786 ac_res=-l$ac_lib
9787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9788 fi
9789 if ac_fn_c_try_link "$LINENO"; then :
9790 ac_cv_search_opendir=$ac_res
9791fi
9792rm -f core conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext
9794 if test "${ac_cv_search_opendir+set}" = set; then :
9795 break
9796fi
9797done
9798if test "${ac_cv_search_opendir+set}" = set; then :
9799
9800else
9801 ac_cv_search_opendir=no
9802fi
9803rm conftest.$ac_ext
9804LIBS=$ac_func_search_save_LIBS
9805fi
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9807$as_echo "$ac_cv_search_opendir" >&6; }
9808ac_res=$ac_cv_search_opendir
9809if test "$ac_res" != no; then :
9810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9811
9812fi
9813
9814fi
9815
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9817$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9818if test "${ac_cv_header_stat_broken+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9820else
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822/* end confdefs.h. */
9823#include <sys/types.h>
9824#include <sys/stat.h>
9825
9826#if defined S_ISBLK && defined S_IFDIR
9827extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9828#endif
9829
9830#if defined S_ISBLK && defined S_IFCHR
9831extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9832#endif
9833
9834#if defined S_ISLNK && defined S_IFREG
9835extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9836#endif
9837
9838#if defined S_ISSOCK && defined S_IFREG
9839extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9840#endif
9841
9842_ACEOF
9843if ac_fn_c_try_compile "$LINENO"; then :
9844 ac_cv_header_stat_broken=no
9845else
9846 ac_cv_header_stat_broken=yes
9847fi
9848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849fi
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9851$as_echo "$ac_cv_header_stat_broken" >&6; }
9852if test $ac_cv_header_stat_broken = yes; then
9853
9854$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9855
9856fi
9857
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9859$as_echo_n "checking for ANSI C header files... " >&6; }
9860if test "${ac_cv_header_stdc+set}" = set; then :
9861 $as_echo_n "(cached) " >&6
9862else
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h. */
9865#include <stdlib.h>
9866#include <stdarg.h>
9867#include <string.h>
9868#include <float.h>
9869
9870int
9871main ()
9872{
9873
9874 ;
9875 return 0;
9876}
9877_ACEOF
9878if ac_fn_c_try_compile "$LINENO"; then :
9879 ac_cv_header_stdc=yes
9880else
9881 ac_cv_header_stdc=no
9882fi
9883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884
9885if test $ac_cv_header_stdc = yes; then
9886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h. */
9889#include <string.h>
9890
9891_ACEOF
9892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9893 $EGREP "memchr" >/dev/null 2>&1; then :
9894
9895else
9896 ac_cv_header_stdc=no
9897fi
9898rm -f conftest*
9899
9900fi
9901
9902if test $ac_cv_header_stdc = yes; then
9903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905/* end confdefs.h. */
9906#include <stdlib.h>
9907
9908_ACEOF
9909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9910 $EGREP "free" >/dev/null 2>&1; then :
9911
9912else
9913 ac_cv_header_stdc=no
9914fi
9915rm -f conftest*
9916
9917fi
9918
9919if test $ac_cv_header_stdc = yes; then
9920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9921 if test "$cross_compiling" = yes; then :
9922 :
9923else
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925/* end confdefs.h. */
9926#include <ctype.h>
9927#include <stdlib.h>
9928#if ((' ' & 0x0FF) == 0x020)
9929# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9930# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9931#else
9932# define ISLOWER(c) \
9933 (('a' <= (c) && (c) <= 'i') \
9934 || ('j' <= (c) && (c) <= 'r') \
9935 || ('s' <= (c) && (c) <= 'z'))
9936# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9937#endif
9938
9939#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9940int
9941main ()
9942{
9943 int i;
9944 for (i = 0; i < 256; i++)
9945 if (XOR (islower (i), ISLOWER (i))
9946 || toupper (i) != TOUPPER (i))
9947 return 2;
9948 return 0;
9949}
9950_ACEOF
9951if ac_fn_c_try_run "$LINENO"; then :
9952
9953else
9954 ac_cv_header_stdc=no
9955fi
9956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9957 conftest.$ac_objext conftest.beam conftest.$ac_ext
9958fi
9959
9960fi
9961fi
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9963$as_echo "$ac_cv_header_stdc" >&6; }
9964if test $ac_cv_header_stdc = yes; then
9965
9966$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9967
9968fi
9969
9970# elf_hp.h is for HP/UX 64-bit shared library support.
9971# FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
9972# unconditionally, so what's the point in checking these?
9973for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
9974 thread_db.h gnu/libc-version.h signal.h stddef.h \
9975 stdlib.h string.h memory.h strings.h sys/fault.h \
9976 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
9977 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
9978 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
9979 sys/types.h sys/wait.h wait.h termios.h termio.h \
9980 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
9981do :
9982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9983ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9984eval as_val=\$$as_ac_Header
9985 if test "x$as_val" = x""yes; then :
9986 cat >>confdefs.h <<_ACEOF
9987#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9988_ACEOF
9989
9990fi
9991
9992done
9993
9994for ac_header in link.h
9995do :
9996 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
9997# include <sys/types.h>
9998#endif
9999#if HAVE_NLIST_H
10000# include <nlist.h>
10001#endif
10002
10003"
10004if test "x$ac_cv_header_link_h" = x""yes; then :
10005 cat >>confdefs.h <<_ACEOF
10006#define HAVE_LINK_H 1
10007_ACEOF
10008
10009fi
10010
10011done
10012
10013for ac_header in sys/proc.h
10014do :
10015 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10016# include <sys/param.h>
10017#endif
10018
10019"
10020if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
10021 cat >>confdefs.h <<_ACEOF
10022#define HAVE_SYS_PROC_H 1
10023_ACEOF
10024
10025fi
10026
10027done
10028
10029for ac_header in sys/user.h
10030do :
10031 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10032# include <sys/param.h>
10033#endif
10034
10035"
10036if test "x$ac_cv_header_sys_user_h" = x""yes; then :
10037 cat >>confdefs.h <<_ACEOF
10038#define HAVE_SYS_USER_H 1
10039_ACEOF
10040
10041fi
10042
10043done
10044
10045
10046# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10047# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10048# think that we don't have <curses.h> if we're using GCC.
10049case $host_os in
10050 solaris2.[789])
10051 if test "$GCC" = yes; then
10052
10053$as_echo "#define _MSE_INT_H 1" >>confdefs.h
10054
10055 fi ;;
10056esac
10057for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
10058do :
10059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10060ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10061eval as_val=\$$as_ac_Header
10062 if test "x$as_val" = x""yes; then :
10063 cat >>confdefs.h <<_ACEOF
10064#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10065_ACEOF
10066
10067fi
10068
10069done
10070
10071for ac_header in term.h
10072do :
10073 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10074# include <curses.h>
10075#endif
10076
10077"
10078if test "x$ac_cv_header_term_h" = x""yes; then :
10079 cat >>confdefs.h <<_ACEOF
10080#define HAVE_TERM_H 1
10081_ACEOF
10082
10083fi
10084
10085done
10086
10087
10088# ------------------------- #
10089# Checks for declarations. #
10090# ------------------------- #
10091
10092ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10093if test "x$ac_cv_have_decl_free" = x""yes; then :
10094 ac_have_decl=1
10095else
10096 ac_have_decl=0
10097fi
10098
10099cat >>confdefs.h <<_ACEOF
10100#define HAVE_DECL_FREE $ac_have_decl
10101_ACEOF
10102ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10103if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10104 ac_have_decl=1
10105else
10106 ac_have_decl=0
10107fi
10108
10109cat >>confdefs.h <<_ACEOF
10110#define HAVE_DECL_MALLOC $ac_have_decl
10111_ACEOF
10112ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10113if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10114 ac_have_decl=1
10115else
10116 ac_have_decl=0
10117fi
10118
10119cat >>confdefs.h <<_ACEOF
10120#define HAVE_DECL_REALLOC $ac_have_decl
10121_ACEOF
10122ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
10123if test "x$ac_cv_have_decl_strerror" = x""yes; then :
10124 ac_have_decl=1
10125else
10126 ac_have_decl=0
10127fi
10128
10129cat >>confdefs.h <<_ACEOF
10130#define HAVE_DECL_STRERROR $ac_have_decl
10131_ACEOF
10132ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
10133if test "x$ac_cv_have_decl_strstr" = x""yes; then :
10134 ac_have_decl=1
10135else
10136 ac_have_decl=0
10137fi
10138
10139cat >>confdefs.h <<_ACEOF
10140#define HAVE_DECL_STRSTR $ac_have_decl
10141_ACEOF
10142ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
10143if test "x$ac_cv_have_decl_getopt" = x""yes; then :
10144 ac_have_decl=1
10145else
10146 ac_have_decl=0
10147fi
10148
10149cat >>confdefs.h <<_ACEOF
10150#define HAVE_DECL_GETOPT $ac_have_decl
10151_ACEOF
10152ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10153if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10154 ac_have_decl=1
10155else
10156 ac_have_decl=0
10157fi
10158
10159cat >>confdefs.h <<_ACEOF
10160#define HAVE_DECL_SNPRINTF $ac_have_decl
10161_ACEOF
10162ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10163if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
10164 ac_have_decl=1
10165else
10166 ac_have_decl=0
10167fi
10168
10169cat >>confdefs.h <<_ACEOF
10170#define HAVE_DECL_VSNPRINTF $ac_have_decl
10171_ACEOF
10172
10173
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10175$as_echo_n "checking for LC_MESSAGES... " >&6; }
10176if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10177 $as_echo_n "(cached) " >&6
10178else
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180/* end confdefs.h. */
10181#include <locale.h>
10182int
10183main ()
10184{
10185return LC_MESSAGES
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190if ac_fn_c_try_link "$LINENO"; then :
10191 am_cv_val_LC_MESSAGES=yes
10192else
10193 am_cv_val_LC_MESSAGES=no
10194fi
10195rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197fi
10198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10199$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10200 if test $am_cv_val_LC_MESSAGES = yes; then
10201
10202$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10203
10204 fi
10205
10206
10207# ----------------------- #
10208# Checks for structures. #
10209# ----------------------- #
10210
10211ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10212if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
10213
10214cat >>confdefs.h <<_ACEOF
10215#define HAVE_STRUCT_STAT_ST_BLOCKS 1
10216_ACEOF
10217
10218
10219fi
10220ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10221if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
10222
10223cat >>confdefs.h <<_ACEOF
10224#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10225_ACEOF
10226
10227
10228fi
10229
10230
10231# ------------------ #
10232# Checks for types. #
10233# ------------------ #
10234
10235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10236$as_echo_n "checking return type of signal handlers... " >&6; }
10237if test "${ac_cv_type_signal+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10239else
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h. */
10242#include <sys/types.h>
10243#include <signal.h>
10244
10245int
10246main ()
10247{
10248return *(signal (0, 0)) (0) == 1;
10249 ;
10250 return 0;
10251}
10252_ACEOF
10253if ac_fn_c_try_compile "$LINENO"; then :
10254 ac_cv_type_signal=int
10255else
10256 ac_cv_type_signal=void
10257fi
10258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259fi
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10261$as_echo "$ac_cv_type_signal" >&6; }
10262
10263cat >>confdefs.h <<_ACEOF
10264#define RETSIGTYPE $ac_cv_type_signal
10265_ACEOF
10266
10267
10268ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10269#include <sys/socket.h>
10270
10271"
10272if test "x$ac_cv_type_socklen_t" = x""yes; then :
10273
10274cat >>confdefs.h <<_ACEOF
10275#define HAVE_SOCKLEN_T 1
10276_ACEOF
10277
10278
10279fi
10280
10281
10282# ------------------------------------- #
10283# Checks for compiler characteristics. #
10284# ------------------------------------- #
10285
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10287$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10288if test "${ac_cv_c_const+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10290else
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292/* end confdefs.h. */
10293
10294int
10295main ()
10296{
10297/* FIXME: Include the comments suggested by Paul. */
10298#ifndef __cplusplus
10299 /* Ultrix mips cc rejects this. */
10300 typedef int charset[2];
10301 const charset cs;
10302 /* SunOS 4.1.1 cc rejects this. */
10303 char const *const *pcpcc;
10304 char **ppc;
10305 /* NEC SVR4.0.2 mips cc rejects this. */
10306 struct point {int x, y;};
10307 static struct point const zero = {0,0};
10308 /* AIX XL C 1.02.0.0 rejects this.
10309 It does not let you subtract one const X* pointer from another in
10310 an arm of an if-expression whose if-part is not a constant
10311 expression */
10312 const char *g = "string";
10313 pcpcc = &g + (g ? g-g : 0);
10314 /* HPUX 7.0 cc rejects these. */
10315 ++pcpcc;
10316 ppc = (char**) pcpcc;
10317 pcpcc = (char const *const *) ppc;
10318 { /* SCO 3.2v4 cc rejects this. */
10319 char *t;
10320 char const *s = 0 ? (char *) 0 : (char const *) 0;
10321
10322 *t++ = 0;
10323 if (s) return 0;
10324 }
10325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10326 int x[] = {25, 17};
10327 const int *foo = &x[0];
10328 ++foo;
10329 }
10330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10331 typedef const int *iptr;
10332 iptr p = 0;
10333 ++p;
10334 }
10335 { /* AIX XL C 1.02.0.0 rejects this saying
10336 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10337 struct s { int j; const int *ap[3]; };
10338 struct s *b; b->j = 5;
10339 }
10340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10341 const int foo = 10;
10342 if (!foo) return 0;
10343 }
10344 return !cs[0] && !zero.x;
10345#endif
10346
10347 ;
10348 return 0;
10349}
10350_ACEOF
10351if ac_fn_c_try_compile "$LINENO"; then :
10352 ac_cv_c_const=yes
10353else
10354 ac_cv_c_const=no
10355fi
10356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357fi
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10359$as_echo "$ac_cv_c_const" >&6; }
10360if test $ac_cv_c_const = no; then
10361
10362$as_echo "#define const /**/" >>confdefs.h
10363
10364fi
10365
10366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10367$as_echo_n "checking for inline... " >&6; }
10368if test "${ac_cv_c_inline+set}" = set; then :
10369 $as_echo_n "(cached) " >&6
10370else
10371 ac_cv_c_inline=no
10372for ac_kw in inline __inline__ __inline; do
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h. */
10375#ifndef __cplusplus
10376typedef int foo_t;
10377static $ac_kw foo_t static_foo () {return 0; }
10378$ac_kw foo_t foo () {return 0; }
10379#endif
10380
10381_ACEOF
10382if ac_fn_c_try_compile "$LINENO"; then :
10383 ac_cv_c_inline=$ac_kw
10384fi
10385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 test "$ac_cv_c_inline" != no && break
10387done
10388
10389fi
10390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10391$as_echo "$ac_cv_c_inline" >&6; }
10392
10393case $ac_cv_c_inline in
10394 inline | yes) ;;
10395 *)
10396 case $ac_cv_c_inline in
10397 no) ac_val=;;
10398 *) ac_val=$ac_cv_c_inline;;
10399 esac
10400 cat >>confdefs.h <<_ACEOF
10401#ifndef __cplusplus
10402#define inline $ac_val
10403#endif
10404_ACEOF
10405 ;;
10406esac
10407
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10409$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10410if test "${ac_cv_c_bigendian+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10412else
10413 ac_cv_c_bigendian=unknown
10414 # See if we're dealing with a universal compiler.
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h. */
10417#ifndef __APPLE_CC__
10418 not a universal capable compiler
10419 #endif
10420 typedef int dummy;
10421
10422_ACEOF
10423if ac_fn_c_try_compile "$LINENO"; then :
10424
10425 # Check for potential -arch flags. It is not universal unless
10426 # there are at least two -arch flags with different values.
10427 ac_arch=
10428 ac_prev=
10429 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10430 if test -n "$ac_prev"; then
10431 case $ac_word in
10432 i?86 | x86_64 | ppc | ppc64)
10433 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10434 ac_arch=$ac_word
10435 else
10436 ac_cv_c_bigendian=universal
10437 break
10438 fi
10439 ;;
10440 esac
10441 ac_prev=
10442 elif test "x$ac_word" = "x-arch"; then
10443 ac_prev=arch
10444 fi
10445 done
10446fi
10447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448 if test $ac_cv_c_bigendian = unknown; then
10449 # See if sys/param.h defines the BYTE_ORDER macro.
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451/* end confdefs.h. */
10452#include <sys/types.h>
10453 #include <sys/param.h>
10454
10455int
10456main ()
10457{
10458#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10459 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10460 && LITTLE_ENDIAN)
10461 bogus endian macros
10462 #endif
10463
10464 ;
10465 return 0;
10466}
10467_ACEOF
10468if ac_fn_c_try_compile "$LINENO"; then :
10469 # It does; now see whether it defined to BIG_ENDIAN or not.
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471/* end confdefs.h. */
10472#include <sys/types.h>
10473 #include <sys/param.h>
10474
10475int
10476main ()
10477{
10478#if BYTE_ORDER != BIG_ENDIAN
10479 not big endian
10480 #endif
10481
10482 ;
10483 return 0;
10484}
10485_ACEOF
10486if ac_fn_c_try_compile "$LINENO"; then :
10487 ac_cv_c_bigendian=yes
10488else
10489 ac_cv_c_bigendian=no
10490fi
10491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10492fi
10493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 fi
10495 if test $ac_cv_c_bigendian = unknown; then
10496 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498/* end confdefs.h. */
10499#include <limits.h>
10500
10501int
10502main ()
10503{
10504#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10505 bogus endian macros
10506 #endif
10507
10508 ;
10509 return 0;
10510}
10511_ACEOF
10512if ac_fn_c_try_compile "$LINENO"; then :
10513 # It does; now see whether it defined to _BIG_ENDIAN or not.
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515/* end confdefs.h. */
10516#include <limits.h>
10517
10518int
10519main ()
10520{
10521#ifndef _BIG_ENDIAN
10522 not big endian
10523 #endif
10524
10525 ;
10526 return 0;
10527}
10528_ACEOF
10529if ac_fn_c_try_compile "$LINENO"; then :
10530 ac_cv_c_bigendian=yes
10531else
10532 ac_cv_c_bigendian=no
10533fi
10534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10535fi
10536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537 fi
10538 if test $ac_cv_c_bigendian = unknown; then
10539 # Compile a test program.
10540 if test "$cross_compiling" = yes; then :
10541 # Try to guess by grepping values from an object file.
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543/* end confdefs.h. */
10544short int ascii_mm[] =
10545 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10546 short int ascii_ii[] =
10547 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10548 int use_ascii (int i) {
10549 return ascii_mm[i] + ascii_ii[i];
10550 }
10551 short int ebcdic_ii[] =
10552 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10553 short int ebcdic_mm[] =
10554 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10555 int use_ebcdic (int i) {
10556 return ebcdic_mm[i] + ebcdic_ii[i];
10557 }
10558 extern int foo;
10559
10560int
10561main ()
10562{
10563return use_ascii (foo) == use_ebcdic (foo);
10564 ;
10565 return 0;
10566}
10567_ACEOF
10568if ac_fn_c_try_compile "$LINENO"; then :
10569 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10570 ac_cv_c_bigendian=yes
10571 fi
10572 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10573 if test "$ac_cv_c_bigendian" = unknown; then
10574 ac_cv_c_bigendian=no
10575 else
10576 # finding both strings is unlikely to happen, but who knows?
10577 ac_cv_c_bigendian=unknown
10578 fi
10579 fi
10580fi
10581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10582else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584/* end confdefs.h. */
10585$ac_includes_default
10586int
10587main ()
10588{
10589
10590 /* Are we little or big endian? From Harbison&Steele. */
10591 union
10592 {
10593 long int l;
10594 char c[sizeof (long int)];
10595 } u;
10596 u.l = 1;
10597 return u.c[sizeof (long int) - 1] == 1;
10598
10599 ;
10600 return 0;
10601}
10602_ACEOF
10603if ac_fn_c_try_run "$LINENO"; then :
10604 ac_cv_c_bigendian=no
10605else
10606 ac_cv_c_bigendian=yes
10607fi
10608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10609 conftest.$ac_objext conftest.beam conftest.$ac_ext
10610fi
10611
10612 fi
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10615$as_echo "$ac_cv_c_bigendian" >&6; }
10616 case $ac_cv_c_bigendian in #(
10617 yes)
10618 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10619;; #(
10620 no)
10621 ;; #(
10622 universal)
10623
10624$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10625
10626 ;; #(
10627 *)
10628 as_fn_error "unknown endianness
10629 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10630 esac
10631
10632
10633# ------------------------------ #
10634# Checks for library functions. #
10635# ------------------------------ #
10636
10637# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10638# for constant arguments. Useless!
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10640$as_echo_n "checking for working alloca.h... " >&6; }
10641if test "${ac_cv_working_alloca_h+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10643else
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645/* end confdefs.h. */
10646#include <alloca.h>
10647int
10648main ()
10649{
10650char *p = (char *) alloca (2 * sizeof (int));
10651 if (p) return 0;
10652 ;
10653 return 0;
10654}
10655_ACEOF
10656if ac_fn_c_try_link "$LINENO"; then :
10657 ac_cv_working_alloca_h=yes
10658else
10659 ac_cv_working_alloca_h=no
10660fi
10661rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663fi
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10665$as_echo "$ac_cv_working_alloca_h" >&6; }
10666if test $ac_cv_working_alloca_h = yes; then
10667
10668$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10669
10670fi
10671
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10673$as_echo_n "checking for alloca... " >&6; }
10674if test "${ac_cv_func_alloca_works+set}" = set; then :
10675 $as_echo_n "(cached) " >&6
10676else
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678/* end confdefs.h. */
10679#ifdef __GNUC__
10680# define alloca __builtin_alloca
10681#else
10682# ifdef _MSC_VER
10683# include <malloc.h>
10684# define alloca _alloca
10685# else
10686# ifdef HAVE_ALLOCA_H
10687# include <alloca.h>
10688# else
10689# ifdef _AIX
10690 #pragma alloca
10691# else
10692# ifndef alloca /* predefined by HP cc +Olibcalls */
10693char *alloca ();
10694# endif
10695# endif
10696# endif
10697# endif
10698#endif
10699
10700int
10701main ()
10702{
10703char *p = (char *) alloca (1);
10704 if (p) return 0;
10705 ;
10706 return 0;
10707}
10708_ACEOF
10709if ac_fn_c_try_link "$LINENO"; then :
10710 ac_cv_func_alloca_works=yes
10711else
10712 ac_cv_func_alloca_works=no
10713fi
10714rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716fi
10717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10718$as_echo "$ac_cv_func_alloca_works" >&6; }
10719
10720if test $ac_cv_func_alloca_works = yes; then
10721
10722$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10723
10724else
10725 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10726# that cause trouble. Some versions do not even contain alloca or
10727# contain a buggy version. If you still want to use their alloca,
10728# use ar to extract alloca.o from them instead of compiling alloca.c.
10729
10730ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10731
10732$as_echo "#define C_ALLOCA 1" >>confdefs.h
10733
10734
10735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10736$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10737if test "${ac_cv_os_cray+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739else
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741/* end confdefs.h. */
10742#if defined CRAY && ! defined CRAY2
10743webecray
10744#else
10745wenotbecray
10746#endif
10747
10748_ACEOF
10749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10750 $EGREP "webecray" >/dev/null 2>&1; then :
10751 ac_cv_os_cray=yes
10752else
10753 ac_cv_os_cray=no
10754fi
10755rm -f conftest*
10756
10757fi
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10759$as_echo "$ac_cv_os_cray" >&6; }
10760if test $ac_cv_os_cray = yes; then
10761 for ac_func in _getb67 GETB67 getb67; do
10762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10763ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10764eval as_val=\$$as_ac_var
10765 if test "x$as_val" = x""yes; then :
10766
10767cat >>confdefs.h <<_ACEOF
10768#define CRAY_STACKSEG_END $ac_func
10769_ACEOF
10770
10771 break
10772fi
10773
10774 done
10775fi
10776
10777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10778$as_echo_n "checking stack direction for C alloca... " >&6; }
10779if test "${ac_cv_c_stack_direction+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10781else
10782 if test "$cross_compiling" = yes; then :
10783 ac_cv_c_stack_direction=0
10784else
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786/* end confdefs.h. */
10787$ac_includes_default
10788int
10789find_stack_direction ()
10790{
10791 static char *addr = 0;
10792 auto char dummy;
10793 if (addr == 0)
10794 {
10795 addr = &dummy;
10796 return find_stack_direction ();
10797 }
10798 else
10799 return (&dummy > addr) ? 1 : -1;
10800}
10801
10802int
10803main ()
10804{
10805 return find_stack_direction () < 0;
10806}
10807_ACEOF
10808if ac_fn_c_try_run "$LINENO"; then :
10809 ac_cv_c_stack_direction=1
10810else
10811 ac_cv_c_stack_direction=-1
10812fi
10813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10814 conftest.$ac_objext conftest.beam conftest.$ac_ext
10815fi
10816
10817fi
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10819$as_echo "$ac_cv_c_stack_direction" >&6; }
10820cat >>confdefs.h <<_ACEOF
10821#define STACK_DIRECTION $ac_cv_c_stack_direction
10822_ACEOF
10823
10824
10825fi
10826
10827for ac_header in stdlib.h unistd.h
10828do :
10829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10830ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10831eval as_val=\$$as_ac_Header
10832 if test "x$as_val" = x""yes; then :
10833 cat >>confdefs.h <<_ACEOF
10834#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10835_ACEOF
10836
10837fi
10838
10839done
10840
10841for ac_func in getpagesize
10842do :
10843 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10844if test "x$ac_cv_func_getpagesize" = x""yes; then :
10845 cat >>confdefs.h <<_ACEOF
10846#define HAVE_GETPAGESIZE 1
10847_ACEOF
10848
10849fi
10850done
10851
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10853$as_echo_n "checking for working mmap... " >&6; }
10854if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10856else
10857 if test "$cross_compiling" = yes; then :
10858 ac_cv_func_mmap_fixed_mapped=no
10859else
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861/* end confdefs.h. */
10862$ac_includes_default
10863/* malloc might have been renamed as rpl_malloc. */
10864#undef malloc
10865
10866/* Thanks to Mike Haertel and Jim Avera for this test.
10867 Here is a matrix of mmap possibilities:
10868 mmap private not fixed
10869 mmap private fixed at somewhere currently unmapped
10870 mmap private fixed at somewhere already mapped
10871 mmap shared not fixed
10872 mmap shared fixed at somewhere currently unmapped
10873 mmap shared fixed at somewhere already mapped
10874 For private mappings, we should verify that changes cannot be read()
10875 back from the file, nor mmap's back from the file at a different
10876 address. (There have been systems where private was not correctly
10877 implemented like the infamous i386 svr4.0, and systems where the
10878 VM page cache was not coherent with the file system buffer cache
10879 like early versions of FreeBSD and possibly contemporary NetBSD.)
10880 For shared mappings, we should conversely verify that changes get
10881 propagated back to all the places they're supposed to be.
10882
10883 Grep wants private fixed already mapped.
10884 The main things grep needs to know about mmap are:
10885 * does it exist and is it safe to write into the mmap'd area
10886 * how to use it (BSD variants) */
10887
10888#include <fcntl.h>
10889#include <sys/mman.h>
10890
10891#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10892char *malloc ();
10893#endif
10894
10895/* This mess was copied from the GNU getpagesize.h. */
10896#ifndef HAVE_GETPAGESIZE
10897/* Assume that all systems that can run configure have sys/param.h. */
10898# ifndef HAVE_SYS_PARAM_H
10899# define HAVE_SYS_PARAM_H 1
10900# endif
10901
10902# ifdef _SC_PAGESIZE
10903# define getpagesize() sysconf(_SC_PAGESIZE)
10904# else /* no _SC_PAGESIZE */
10905# ifdef HAVE_SYS_PARAM_H
10906# include <sys/param.h>
10907# ifdef EXEC_PAGESIZE
10908# define getpagesize() EXEC_PAGESIZE
10909# else /* no EXEC_PAGESIZE */
10910# ifdef NBPG
10911# define getpagesize() NBPG * CLSIZE
10912# ifndef CLSIZE
10913# define CLSIZE 1
10914# endif /* no CLSIZE */
10915# else /* no NBPG */
10916# ifdef NBPC
10917# define getpagesize() NBPC
10918# else /* no NBPC */
10919# ifdef PAGESIZE
10920# define getpagesize() PAGESIZE
10921# endif /* PAGESIZE */
10922# endif /* no NBPC */
10923# endif /* no NBPG */
10924# endif /* no EXEC_PAGESIZE */
10925# else /* no HAVE_SYS_PARAM_H */
10926# define getpagesize() 8192 /* punt totally */
10927# endif /* no HAVE_SYS_PARAM_H */
10928# endif /* no _SC_PAGESIZE */
10929
10930#endif /* no HAVE_GETPAGESIZE */
10931
10932int
10933main ()
10934{
10935 char *data, *data2, *data3;
10936 int i, pagesize;
10937 int fd;
10938
10939 pagesize = getpagesize ();
10940
10941 /* First, make a file with some known garbage in it. */
10942 data = (char *) malloc (pagesize);
10943 if (!data)
10944 return 1;
10945 for (i = 0; i < pagesize; ++i)
10946 *(data + i) = rand ();
10947 umask (0);
10948 fd = creat ("conftest.mmap", 0600);
10949 if (fd < 0)
10950 return 1;
10951 if (write (fd, data, pagesize) != pagesize)
10952 return 1;
10953 close (fd);
10954
10955 /* Next, try to mmap the file at a fixed address which already has
10956 something else allocated at it. If we can, also make sure that
10957 we see the same garbage. */
10958 fd = open ("conftest.mmap", O_RDWR);
10959 if (fd < 0)
10960 return 1;
10961 data2 = (char *) malloc (2 * pagesize);
10962 if (!data2)
10963 return 1;
10964 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10965 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10966 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10967 return 1;
10968 for (i = 0; i < pagesize; ++i)
10969 if (*(data + i) != *(data2 + i))
10970 return 1;
10971
10972 /* Finally, make sure that changes to the mapped area do not
10973 percolate back to the file as seen by read(). (This is a bug on
10974 some variants of i386 svr4.0.) */
10975 for (i = 0; i < pagesize; ++i)
10976 *(data2 + i) = *(data2 + i) + 1;
10977 data3 = (char *) malloc (pagesize);
10978 if (!data3)
10979 return 1;
10980 if (read (fd, data3, pagesize) != pagesize)
10981 return 1;
10982 for (i = 0; i < pagesize; ++i)
10983 if (*(data + i) != *(data3 + i))
10984 return 1;
10985 close (fd);
10986 return 0;
10987}
10988_ACEOF
10989if ac_fn_c_try_run "$LINENO"; then :
10990 ac_cv_func_mmap_fixed_mapped=yes
10991else
10992 ac_cv_func_mmap_fixed_mapped=no
10993fi
10994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10995 conftest.$ac_objext conftest.beam conftest.$ac_ext
10996fi
10997
10998fi
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11000$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11001if test $ac_cv_func_mmap_fixed_mapped = yes; then
11002
11003$as_echo "#define HAVE_MMAP 1" >>confdefs.h
11004
11005fi
11006rm -f conftest.mmap
11007
11008ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11009if test "x$ac_cv_type_pid_t" = x""yes; then :
11010
11011else
11012
11013cat >>confdefs.h <<_ACEOF
11014#define pid_t int
11015_ACEOF
11016
11017fi
11018
11019for ac_header in vfork.h
11020do :
11021 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11022if test "x$ac_cv_header_vfork_h" = x""yes; then :
11023 cat >>confdefs.h <<_ACEOF
11024#define HAVE_VFORK_H 1
11025_ACEOF
11026
11027fi
11028
11029done
11030
11031for ac_func in fork vfork
11032do :
11033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11034ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11035eval as_val=\$$as_ac_var
11036 if test "x$as_val" = x""yes; then :
11037 cat >>confdefs.h <<_ACEOF
11038#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11039_ACEOF
11040
11041fi
11042done
11043
11044if test "x$ac_cv_func_fork" = xyes; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11046$as_echo_n "checking for working fork... " >&6; }
11047if test "${ac_cv_func_fork_works+set}" = set; then :
11048 $as_echo_n "(cached) " >&6
11049else
11050 if test "$cross_compiling" = yes; then :
11051 ac_cv_func_fork_works=cross
11052else
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054/* end confdefs.h. */
11055$ac_includes_default
11056int
11057main ()
11058{
11059
11060 /* By Ruediger Kuhlmann. */
11061 return fork () < 0;
11062
11063 ;
11064 return 0;
11065}
11066_ACEOF
11067if ac_fn_c_try_run "$LINENO"; then :
11068 ac_cv_func_fork_works=yes
11069else
11070 ac_cv_func_fork_works=no
11071fi
11072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11073 conftest.$ac_objext conftest.beam conftest.$ac_ext
11074fi
11075
11076fi
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11078$as_echo "$ac_cv_func_fork_works" >&6; }
11079
11080else
11081 ac_cv_func_fork_works=$ac_cv_func_fork
11082fi
11083if test "x$ac_cv_func_fork_works" = xcross; then
11084 case $host in
11085 *-*-amigaos* | *-*-msdosdjgpp*)
11086 # Override, as these systems have only a dummy fork() stub
11087 ac_cv_func_fork_works=no
11088 ;;
11089 *)
11090 ac_cv_func_fork_works=yes
11091 ;;
11092 esac
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11094$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11095fi
11096ac_cv_func_vfork_works=$ac_cv_func_vfork
11097if test "x$ac_cv_func_vfork" = xyes; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11099$as_echo_n "checking for working vfork... " >&6; }
11100if test "${ac_cv_func_vfork_works+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11102else
11103 if test "$cross_compiling" = yes; then :
11104 ac_cv_func_vfork_works=cross
11105else
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107/* end confdefs.h. */
11108/* Thanks to Paul Eggert for this test. */
11109$ac_includes_default
11110#include <sys/wait.h>
11111#ifdef HAVE_VFORK_H
11112# include <vfork.h>
11113#endif
11114/* On some sparc systems, changes by the child to local and incoming
11115 argument registers are propagated back to the parent. The compiler
11116 is told about this with #include <vfork.h>, but some compilers
11117 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11118 static variable whose address is put into a register that is
11119 clobbered by the vfork. */
11120static void
11121#ifdef __cplusplus
11122sparc_address_test (int arg)
11123# else
11124sparc_address_test (arg) int arg;
11125#endif
11126{
11127 static pid_t child;
11128 if (!child) {
11129 child = vfork ();
11130 if (child < 0) {
11131 perror ("vfork");
11132 _exit(2);
11133 }
11134 if (!child) {
11135 arg = getpid();
11136 write(-1, "", 0);
11137 _exit (arg);
11138 }
11139 }
11140}
11141
11142int
11143main ()
11144{
11145 pid_t parent = getpid ();
11146 pid_t child;
11147
11148 sparc_address_test (0);
11149
11150 child = vfork ();
11151
11152 if (child == 0) {
11153 /* Here is another test for sparc vfork register problems. This
11154 test uses lots of local variables, at least as many local
11155 variables as main has allocated so far including compiler
11156 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11157 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11158 reuse the register of parent for one of the local variables,
11159 since it will think that parent can't possibly be used any more
11160 in this routine. Assigning to the local variable will thus
11161 munge parent in the parent process. */
11162 pid_t
11163 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11164 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11165 /* Convince the compiler that p..p7 are live; otherwise, it might
11166 use the same hardware register for all 8 local variables. */
11167 if (p != p1 || p != p2 || p != p3 || p != p4
11168 || p != p5 || p != p6 || p != p7)
11169 _exit(1);
11170
11171 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11172 from child file descriptors. If the child closes a descriptor
11173 before it execs or exits, this munges the parent's descriptor
11174 as well. Test for this by closing stdout in the child. */
11175 _exit(close(fileno(stdout)) != 0);
11176 } else {
11177 int status;
11178 struct stat st;
11179
11180 while (wait(&status) != child)
11181 ;
11182 return (
11183 /* Was there some problem with vforking? */
11184 child < 0
11185
11186 /* Did the child fail? (This shouldn't happen.) */
11187 || status
11188
11189 /* Did the vfork/compiler bug occur? */
11190 || parent != getpid()
11191
11192 /* Did the file descriptor bug occur? */
11193 || fstat(fileno(stdout), &st) != 0
11194 );
11195 }
11196}
11197_ACEOF
11198if ac_fn_c_try_run "$LINENO"; then :
11199 ac_cv_func_vfork_works=yes
11200else
11201 ac_cv_func_vfork_works=no
11202fi
11203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11204 conftest.$ac_objext conftest.beam conftest.$ac_ext
11205fi
11206
11207fi
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11209$as_echo "$ac_cv_func_vfork_works" >&6; }
11210
11211fi;
11212if test "x$ac_cv_func_fork_works" = xcross; then
11213 ac_cv_func_vfork_works=$ac_cv_func_vfork
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11215$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11216fi
11217
11218if test "x$ac_cv_func_vfork_works" = xyes; then
11219
11220$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11221
11222else
11223
11224$as_echo "#define vfork fork" >>confdefs.h
11225
11226fi
11227if test "x$ac_cv_func_fork_works" = xyes; then
11228
11229$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11230
11231fi
11232
11233for ac_func in canonicalize_file_name realpath getrusage getuid \
11234 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
11235 sigaction sigprocmask sigsetmask socketpair syscall \
11236 ttrace wborder setlocale iconvlist libiconvlist btowc \
11237 setrlimit getrlimit
11238do :
11239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11240ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11241eval as_val=\$$as_ac_var
11242 if test "x$as_val" = x""yes; then :
11243 cat >>confdefs.h <<_ACEOF
11244#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11245_ACEOF
11246
11247fi
11248done
11249
11250
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11252$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11253if test "${am_cv_langinfo_codeset+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
11255else
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257/* end confdefs.h. */
11258#include <langinfo.h>
11259int
11260main ()
11261{
11262char* cs = nl_langinfo(CODESET);
11263 ;
11264 return 0;
11265}
11266_ACEOF
11267if ac_fn_c_try_link "$LINENO"; then :
11268 am_cv_langinfo_codeset=yes
11269else
11270 am_cv_langinfo_codeset=no
11271fi
11272rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274
11275fi
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11277$as_echo "$am_cv_langinfo_codeset" >&6; }
11278 if test $am_cv_langinfo_codeset = yes; then
11279
11280$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11281
11282 fi
11283
11284
11285# Check the return and argument types of ptrace. No canned test for
11286# this, so roll our own.
11287gdb_ptrace_headers='
11288#if HAVE_SYS_TYPES_H
11289# include <sys/types.h>
11290#endif
11291#if HAVE_SYS_PTRACE_H
11292# include <sys/ptrace.h>
11293#endif
11294#if HAVE_UNISTD_H
11295# include <unistd.h>
11296#endif
11297'
11298# There is no point in checking if we don't have a prototype.
11299ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11300"
11301if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
11302 ac_have_decl=1
11303else
11304 ac_have_decl=0
11305fi
11306
11307cat >>confdefs.h <<_ACEOF
11308#define HAVE_DECL_PTRACE $ac_have_decl
11309_ACEOF
11310if test $ac_have_decl = 1; then :
11311
11312else
11313
11314 : ${gdb_cv_func_ptrace_ret='int'}
11315 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11316
11317fi
11318
11319# Check return type. Varargs (used on GNU/Linux) conflict with the
11320# empty argument list, so check for that explicitly.
11321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11322$as_echo_n "checking return type of ptrace... " >&6; }
11323if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325else
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327/* end confdefs.h. */
11328$gdb_ptrace_headers
11329int
11330main ()
11331{
11332extern long ptrace (enum __ptrace_request, ...);
11333 ;
11334 return 0;
11335}
11336_ACEOF
11337if ac_fn_c_try_compile "$LINENO"; then :
11338 gdb_cv_func_ptrace_ret='long'
11339else
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341/* end confdefs.h. */
11342$gdb_ptrace_headers
11343int
11344main ()
11345{
11346extern int ptrace ();
11347 ;
11348 return 0;
11349}
11350_ACEOF
11351if ac_fn_c_try_compile "$LINENO"; then :
11352 gdb_cv_func_ptrace_ret='int'
11353else
11354 gdb_cv_func_ptrace_ret='long'
11355fi
11356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357fi
11358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359fi
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11361$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11362
11363cat >>confdefs.h <<_ACEOF
11364#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11365_ACEOF
11366
11367# Check argument types.
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11369$as_echo_n "checking types of arguments for ptrace... " >&6; }
11370if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11371 $as_echo_n "(cached) " >&6
11372else
11373
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375/* end confdefs.h. */
11376$gdb_ptrace_headers
11377int
11378main ()
11379{
11380extern long ptrace (enum __ptrace_request, ...);
11381 ;
11382 return 0;
11383}
11384_ACEOF
11385if ac_fn_c_try_compile "$LINENO"; then :
11386 gdb_cv_func_ptrace_args='int,int,long,long'
11387else
11388
11389for gdb_arg1 in 'int' 'long'; do
11390 for gdb_arg2 in 'pid_t' 'int' 'long'; do
11391 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11392 for gdb_arg4 in 'int' 'long'; do
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394/* end confdefs.h. */
11395$gdb_ptrace_headers
11396int
11397main ()
11398{
11399
11400extern $gdb_cv_func_ptrace_ret
11401 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11402
11403 ;
11404 return 0;
11405}
11406_ACEOF
11407if ac_fn_c_try_compile "$LINENO"; then :
11408 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11409 break 4;
11410fi
11411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11412 for gdb_arg5 in 'int *' 'int' 'long'; do
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414/* end confdefs.h. */
11415$gdb_ptrace_headers
11416int
11417main ()
11418{
11419
11420extern $gdb_cv_func_ptrace_ret
11421 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11422
11423 ;
11424 return 0;
11425}
11426_ACEOF
11427if ac_fn_c_try_compile "$LINENO"; then :
11428
11429gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11430 break 5;
11431fi
11432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11433 done
11434 done
11435 done
11436 done
11437done
11438# Provide a safe default value.
11439: ${gdb_cv_func_ptrace_args='int,int,long,long'}
11440
11441fi
11442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443fi
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11445$as_echo "$gdb_cv_func_ptrace_args" >&6; }
11446ac_save_IFS=$IFS; IFS=','
11447set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11448IFS=$ac_save_IFS
11449shift
11450
11451cat >>confdefs.h <<_ACEOF
11452#define PTRACE_TYPE_ARG3 $3
11453_ACEOF
11454
11455if test -n "$5"; then
11456
11457cat >>confdefs.h <<_ACEOF
11458#define PTRACE_TYPE_ARG5 $5
11459_ACEOF
11460
11461fi
11462
11463if test "$cross_compiling" = no; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11465$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11466if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11468else
11469 if test "$cross_compiling" = yes; then :
11470 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
11471else
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473/* end confdefs.h. */
11474$ac_includes_default
11475int
11476main ()
11477{
11478/* If this system has a BSD-style setpgrp which takes arguments,
11479 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11480 exit successfully. */
11481 return setpgrp (1,1) != -1;
11482 ;
11483 return 0;
11484}
11485_ACEOF
11486if ac_fn_c_try_run "$LINENO"; then :
11487 ac_cv_func_setpgrp_void=no
11488else
11489 ac_cv_func_setpgrp_void=yes
11490fi
11491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11492 conftest.$ac_objext conftest.beam conftest.$ac_ext
11493fi
11494
11495fi
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11497$as_echo "$ac_cv_func_setpgrp_void" >&6; }
11498if test $ac_cv_func_setpgrp_void = yes; then
11499
11500$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11501
11502fi
11503
11504else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11506$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11507if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11509else
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511/* end confdefs.h. */
11512
11513#include <unistd.h>
11514
11515int
11516main ()
11517{
11518
11519 if (setpgrp(1,1) == -1)
11520 exit (0);
11521 else
11522 exit (1);
11523
11524 ;
11525 return 0;
11526}
11527_ACEOF
11528if ac_fn_c_try_compile "$LINENO"; then :
11529 ac_cv_func_setpgrp_void=no
11530else
11531 ac_cv_func_setpgrp_void=yes
11532fi
11533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534fi
11535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11536$as_echo "$ac_cv_func_setpgrp_void" >&6; }
11537if test $ac_cv_func_setpgrp_void = yes; then
11538 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11539
11540fi
11541fi
11542
11543# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11544# since sigsetjmp might only be defined as a macro.
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11546$as_echo_n "checking for sigsetjmp... " >&6; }
11547if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549else
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551/* end confdefs.h. */
11552
11553#include <setjmp.h>
11554
11555int
11556main ()
11557{
11558sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11559 ;
11560 return 0;
11561}
11562_ACEOF
11563if ac_fn_c_try_compile "$LINENO"; then :
11564 gdb_cv_func_sigsetjmp=yes
11565else
11566 gdb_cv_func_sigsetjmp=no
11567fi
11568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569fi
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11571$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11572if test $gdb_cv_func_sigsetjmp = yes; then
11573
11574$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11575
11576fi
11577
11578# Assume we'll default to using the included libiberty regex.
11579gdb_use_included_regex=yes
11580
11581# However, if the system regex is GNU regex, then default to *not*
11582# using the included regex.
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11584$as_echo_n "checking for GNU regex... " >&6; }
11585if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11586 $as_echo_n "(cached) " >&6
11587else
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589/* end confdefs.h. */
11590#include <gnu-versions.h>
11591int
11592main ()
11593{
11594#define REGEX_INTERFACE_VERSION 1
11595#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11596# error "Version mismatch"
11597#endif
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602if ac_fn_c_try_compile "$LINENO"; then :
11603 gdb_cv_have_gnu_regex=yes
11604else
11605 gdb_cv_have_gnu_regex=no
11606fi
11607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608fi
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11610$as_echo "$gdb_cv_have_gnu_regex" >&6; }
11611if test $gdb_cv_have_gnu_regex = yes; then
11612 gdb_use_included_regex=no
11613fi
11614
11615
11616# Check whether --with-included-regex was given.
11617if test "${with_included_regex+set}" = set; then :
11618 withval=$with_included_regex; gdb_with_regex=$withval
11619else
11620 gdb_with_regex=$gdb_use_included_regex
11621fi
11622
11623if test "$gdb_with_regex" = yes; then
11624
11625$as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11626
11627fi
11628
11629# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11630ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11631#include <sys/proc.h>
11632
11633"
11634if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
11635
11636cat >>confdefs.h <<_ACEOF
11637#define HAVE_STRUCT_THREAD_TD_PCB 1
11638_ACEOF
11639
11640
11641fi
11642
11643
11644# See if <sys/lwp.h> defines `struct lwp`.
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11646$as_echo_n "checking for struct lwp... " >&6; }
11647if test "${gdb_cv_struct_lwp+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11649else
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651/* end confdefs.h. */
11652#include <sys/param.h>
11653#include <sys/lwp.h>
11654int
11655main ()
11656{
11657struct lwp l;
11658 ;
11659 return 0;
11660}
11661_ACEOF
11662if ac_fn_c_try_compile "$LINENO"; then :
11663 gdb_cv_struct_lwp=yes
11664else
11665 gdb_cv_struct_lwp=no
11666fi
11667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11670$as_echo "$gdb_cv_struct_lwp" >&6; }
11671if test $gdb_cv_struct_lwp = yes; then
11672
11673$as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11674
11675fi
11676
11677# See if <machine/reg.h> degines `struct reg'.
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11679$as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11680if test "${gdb_cv_struct_reg+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11682else
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684/* end confdefs.h. */
11685#include <sys/types.h>
11686#include <machine/reg.h>
11687int
11688main ()
11689{
11690struct reg r;
11691 ;
11692 return 0;
11693}
11694_ACEOF
11695if ac_fn_c_try_compile "$LINENO"; then :
11696 gdb_cv_struct_reg=yes
11697else
11698 gdb_cv_struct_reg=no
11699fi
11700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11701fi
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11703$as_echo "$gdb_cv_struct_reg" >&6; }
11704if test $gdb_cv_struct_reg = yes; then
11705
11706$as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11707
11708fi
11709
11710# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11711# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11712ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11713"
11714if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
11715
11716cat >>confdefs.h <<_ACEOF
11717#define HAVE_STRUCT_REG_R_FS 1
11718_ACEOF
11719
11720
11721fi
11722ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11723"
11724if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
11725
11726cat >>confdefs.h <<_ACEOF
11727#define HAVE_STRUCT_REG_R_GS 1
11728_ACEOF
11729
11730
11731fi
11732
11733
11734# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11736$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11737if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739else
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741/* end confdefs.h. */
11742#include <sys/ptrace.h>
11743int
11744main ()
11745{
11746PTRACE_GETREGS;
11747 ;
11748 return 0;
11749}
11750_ACEOF
11751if ac_fn_c_try_compile "$LINENO"; then :
11752 gdb_cv_have_ptrace_getregs=yes
11753else
11754 gdb_cv_have_ptrace_getregs=no
11755fi
11756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757fi
11758
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11760$as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11761if test $gdb_cv_have_ptrace_getregs = yes; then
11762
11763$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11764
11765fi
11766
11767# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11769$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11770if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11771 $as_echo_n "(cached) " >&6
11772else
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774/* end confdefs.h. */
11775#include <sys/ptrace.h>
11776int
11777main ()
11778{
11779PTRACE_GETFPXREGS;
11780 ;
11781 return 0;
11782}
11783_ACEOF
11784if ac_fn_c_try_compile "$LINENO"; then :
11785 gdb_cv_have_ptrace_getfpxregs=yes
11786else
11787 gdb_cv_have_ptrace_getfpxregs=no
11788fi
11789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790fi
11791
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11793$as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11794if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11795
11796$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11797
11798fi
11799
11800# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11802$as_echo_n "checking for PT_GETDBREGS... " >&6; }
11803if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11804 $as_echo_n "(cached) " >&6
11805else
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807/* end confdefs.h. */
11808#include <sys/types.h>
11809#include <sys/ptrace.h>
11810int
11811main ()
11812{
11813PT_GETDBREGS;
11814 ;
11815 return 0;
11816}
11817_ACEOF
11818if ac_fn_c_try_compile "$LINENO"; then :
11819 gdb_cv_have_pt_getdbregs=yes
11820else
11821 gdb_cv_have_pt_getdbregs=no
11822fi
11823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11824fi
11825
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11827$as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11828if test $gdb_cv_have_pt_getdbregs = yes; then
11829
11830$as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11831
11832fi
11833
11834# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11836$as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11837if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11838 $as_echo_n "(cached) " >&6
11839else
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841/* end confdefs.h. */
11842#include <sys/types.h>
11843#include <sys/ptrace.h>
11844int
11845main ()
11846{
11847PT_GETXMMREGS;
11848 ;
11849 return 0;
11850}
11851_ACEOF
11852if ac_fn_c_try_compile "$LINENO"; then :
11853 gdb_cv_have_pt_getxmmregs=yes
11854else
11855 gdb_cv_have_pt_getxmmregs=no
11856fi
11857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11858fi
11859
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11861$as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11862if test $gdb_cv_have_pt_getxmmregs = yes; then
11863
11864$as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11865
11866fi
11867
11868# Detect which type of /proc is in use, such as for Unixware or Solaris.
11869
11870if test "${target}" = "${host}"; then
11871 case "${host}" in
11872 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
11873
11874$as_echo "#define NEW_PROC_API 1" >>confdefs.h
11875
11876 ;;
11877 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
11878
11879$as_echo "#define NEW_PROC_API 1" >>confdefs.h
11880
11881 ;;
11882 mips-sgi-irix5*)
11883 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11884
11885$as_echo "#define _KMEMUSER 1" >>confdefs.h
11886
11887 ;;
11888 esac
11889fi
11890
11891if test "$ac_cv_header_sys_procfs_h" = yes; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
11893$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
11894 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11896else
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898/* end confdefs.h. */
11899
11900#define _SYSCALL32
11901/* Needed for new procfs interface on sparc-solaris. */
11902#define _STRUCTURED_PROC 1
11903#include <sys/procfs.h>
11904int
11905main ()
11906{
11907pstatus_t avar
11908 ;
11909 return 0;
11910}
11911_ACEOF
11912if ac_fn_c_try_compile "$LINENO"; then :
11913 bfd_cv_have_sys_procfs_type_pstatus_t=yes
11914else
11915 bfd_cv_have_sys_procfs_type_pstatus_t=no
11916
11917fi
11918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11919fi
11920
11921 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11922
11923$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
11924
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11927$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
11930$as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
11931 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933else
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h. */
11936
11937#define _SYSCALL32
11938/* Needed for new procfs interface on sparc-solaris. */
11939#define _STRUCTURED_PROC 1
11940#include <sys/procfs.h>
11941int
11942main ()
11943{
11944prrun_t avar
11945 ;
11946 return 0;
11947}
11948_ACEOF
11949if ac_fn_c_try_compile "$LINENO"; then :
11950 bfd_cv_have_sys_procfs_type_prrun_t=yes
11951else
11952 bfd_cv_have_sys_procfs_type_prrun_t=no
11953
11954fi
11955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956fi
11957
11958 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
11959
11960$as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
11961
11962 fi
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
11964$as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
11965
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11967$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11968 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970else
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972/* end confdefs.h. */
11973
11974#define _SYSCALL32
11975/* Needed for new procfs interface on sparc-solaris. */
11976#define _STRUCTURED_PROC 1
11977#include <sys/procfs.h>
11978int
11979main ()
11980{
11981gregset_t avar
11982 ;
11983 return 0;
11984}
11985_ACEOF
11986if ac_fn_c_try_compile "$LINENO"; then :
11987 bfd_cv_have_sys_procfs_type_gregset_t=yes
11988else
11989 bfd_cv_have_sys_procfs_type_gregset_t=no
11990
11991fi
11992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11993fi
11994
11995 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11996
11997$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11998
11999 fi
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12001$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12004$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12005 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12006 $as_echo_n "(cached) " >&6
12007else
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009/* end confdefs.h. */
12010
12011#define _SYSCALL32
12012/* Needed for new procfs interface on sparc-solaris. */
12013#define _STRUCTURED_PROC 1
12014#include <sys/procfs.h>
12015int
12016main ()
12017{
12018fpregset_t avar
12019 ;
12020 return 0;
12021}
12022_ACEOF
12023if ac_fn_c_try_compile "$LINENO"; then :
12024 bfd_cv_have_sys_procfs_type_fpregset_t=yes
12025else
12026 bfd_cv_have_sys_procfs_type_fpregset_t=no
12027
12028fi
12029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030fi
12031
12032 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12033
12034$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12035
12036 fi
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12038$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12039
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12041$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12042 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12044else
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h. */
12047
12048#define _SYSCALL32
12049/* Needed for new procfs interface on sparc-solaris. */
12050#define _STRUCTURED_PROC 1
12051#include <sys/procfs.h>
12052int
12053main ()
12054{
12055prgregset_t avar
12056 ;
12057 return 0;
12058}
12059_ACEOF
12060if ac_fn_c_try_compile "$LINENO"; then :
12061 bfd_cv_have_sys_procfs_type_prgregset_t=yes
12062else
12063 bfd_cv_have_sys_procfs_type_prgregset_t=no
12064
12065fi
12066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067fi
12068
12069 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12070
12071$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12072
12073 fi
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12075$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12076
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12078$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12079 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
12081else
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083/* end confdefs.h. */
12084
12085#define _SYSCALL32
12086/* Needed for new procfs interface on sparc-solaris. */
12087#define _STRUCTURED_PROC 1
12088#include <sys/procfs.h>
12089int
12090main ()
12091{
12092prfpregset_t avar
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097if ac_fn_c_try_compile "$LINENO"; then :
12098 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
12099else
12100 bfd_cv_have_sys_procfs_type_prfpregset_t=no
12101
12102fi
12103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104fi
12105
12106 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12107
12108$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12109
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12112$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12115$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12116 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118else
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120/* end confdefs.h. */
12121
12122#define _SYSCALL32
12123/* Needed for new procfs interface on sparc-solaris. */
12124#define _STRUCTURED_PROC 1
12125#include <sys/procfs.h>
12126int
12127main ()
12128{
12129prgregset32_t avar
12130 ;
12131 return 0;
12132}
12133_ACEOF
12134if ac_fn_c_try_compile "$LINENO"; then :
12135 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
12136else
12137 bfd_cv_have_sys_procfs_type_prgregset32_t=no
12138
12139fi
12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141fi
12142
12143 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12144
12145$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12146
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12149$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12150
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
12152$as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
12153 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12155else
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157/* end confdefs.h. */
12158
12159#define _SYSCALL32
12160/* Needed for new procfs interface on sparc-solaris. */
12161#define _STRUCTURED_PROC 1
12162#include <sys/procfs.h>
12163int
12164main ()
12165{
12166prfpregset32_t avar
12167 ;
12168 return 0;
12169}
12170_ACEOF
12171if ac_fn_c_try_compile "$LINENO"; then :
12172 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
12173else
12174 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
12175
12176fi
12177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178fi
12179
12180 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
12181
12182$as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
12183
12184 fi
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
12186$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
12187
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12189$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12190 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12192else
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194/* end confdefs.h. */
12195
12196#define _SYSCALL32
12197/* Needed for new procfs interface on sparc-solaris. */
12198#define _STRUCTURED_PROC 1
12199#include <sys/procfs.h>
12200int
12201main ()
12202{
12203lwpid_t avar
12204 ;
12205 return 0;
12206}
12207_ACEOF
12208if ac_fn_c_try_compile "$LINENO"; then :
12209 bfd_cv_have_sys_procfs_type_lwpid_t=yes
12210else
12211 bfd_cv_have_sys_procfs_type_lwpid_t=no
12212
12213fi
12214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215fi
12216
12217 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12218
12219$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12220
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12223$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12224
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12226$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12227 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229else
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231/* end confdefs.h. */
12232
12233#define _SYSCALL32
12234/* Needed for new procfs interface on sparc-solaris. */
12235#define _STRUCTURED_PROC 1
12236#include <sys/procfs.h>
12237int
12238main ()
12239{
12240psaddr_t avar
12241 ;
12242 return 0;
12243}
12244_ACEOF
12245if ac_fn_c_try_compile "$LINENO"; then :
12246 bfd_cv_have_sys_procfs_type_psaddr_t=yes
12247else
12248 bfd_cv_have_sys_procfs_type_psaddr_t=no
12249
12250fi
12251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252fi
12253
12254 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12255
12256$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12257
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12260$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12261
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12263$as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12264 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12266else
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268/* end confdefs.h. */
12269
12270#define _SYSCALL32
12271/* Needed for new procfs interface on sparc-solaris. */
12272#define _STRUCTURED_PROC 1
12273#include <sys/procfs.h>
12274int
12275main ()
12276{
12277prsysent_t avar
12278 ;
12279 return 0;
12280}
12281_ACEOF
12282if ac_fn_c_try_compile "$LINENO"; then :
12283 bfd_cv_have_sys_procfs_type_prsysent_t=yes
12284else
12285 bfd_cv_have_sys_procfs_type_prsysent_t=no
12286
12287fi
12288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289fi
12290
12291 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12292
12293$as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12294
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12297$as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12298
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12300$as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12301 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12302 $as_echo_n "(cached) " >&6
12303else
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305/* end confdefs.h. */
12306
12307#define _SYSCALL32
12308/* Needed for new procfs interface on sparc-solaris. */
12309#define _STRUCTURED_PROC 1
12310#include <sys/procfs.h>
12311int
12312main ()
12313{
12314pr_sigset_t avar
12315 ;
12316 return 0;
12317}
12318_ACEOF
12319if ac_fn_c_try_compile "$LINENO"; then :
12320 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
12321else
12322 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
12323
12324fi
12325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326fi
12327
12328 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12329
12330$as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12331
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12334$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12335
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12337$as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12338 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12340else
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342/* end confdefs.h. */
12343
12344#define _SYSCALL32
12345/* Needed for new procfs interface on sparc-solaris. */
12346#define _STRUCTURED_PROC 1
12347#include <sys/procfs.h>
12348int
12349main ()
12350{
12351pr_sigaction64_t avar
12352 ;
12353 return 0;
12354}
12355_ACEOF
12356if ac_fn_c_try_compile "$LINENO"; then :
12357 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
12358else
12359 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
12360
12361fi
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363fi
12364
12365 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12366
12367$as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12368
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12371$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12372
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12374$as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12375 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12377else
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h. */
12380
12381#define _SYSCALL32
12382/* Needed for new procfs interface on sparc-solaris. */
12383#define _STRUCTURED_PROC 1
12384#include <sys/procfs.h>
12385int
12386main ()
12387{
12388pr_siginfo64_t avar
12389 ;
12390 return 0;
12391}
12392_ACEOF
12393if ac_fn_c_try_compile "$LINENO"; then :
12394 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
12395else
12396 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
12397
12398fi
12399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12400fi
12401
12402 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12403
12404$as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12405
12406 fi
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12408$as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12409
12410
12411
12412
12413
12414 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12416$as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12417 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419else
12420 if test "$cross_compiling" = yes; then :
12421 gdb_cv_prfpregset_t_broken=yes
12422else
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424/* end confdefs.h. */
12425#include <sys/procfs.h>
12426 int main ()
12427 {
12428 if (sizeof (prfpregset_t) == sizeof (void *))
12429 return 1;
12430 return 0;
12431 }
12432_ACEOF
12433if ac_fn_c_try_run "$LINENO"; then :
12434 gdb_cv_prfpregset_t_broken=no
12435else
12436 gdb_cv_prfpregset_t_broken=yes
12437fi
12438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12439 conftest.$ac_objext conftest.beam conftest.$ac_ext
12440fi
12441
12442fi
12443
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12445$as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12446 if test $gdb_cv_prfpregset_t_broken = yes; then
12447
12448$as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12449
12450 fi
12451 fi
12452
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
12455$as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
12456 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12458else
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460/* end confdefs.h. */
12461#include <unistd.h>
12462#include <sys/types.h>
12463#include <sys/procfs.h>
12464
12465int
12466main ()
12467{
12468
12469 int dummy;;
12470 dummy = ioctl(0, PIOCSET, &dummy);
12471
12472 ;
12473 return 0;
12474}
12475_ACEOF
12476if ac_fn_c_try_compile "$LINENO"; then :
12477 gdb_cv_have_procfs_piocset=yes
12478else
12479 gdb_cv_have_procfs_piocset=no
12480fi
12481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482fi
12483
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
12485$as_echo "$gdb_cv_have_procfs_piocset" >&6; }
12486 if test $gdb_cv_have_procfs_piocset = yes; then
12487
12488$as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
12489
12490 fi
12491fi
12492
12493if test ${host} = ${target} ; then
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
12496$as_echo_n "checking for member l_addr in struct link_map... " >&6; }
12497 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12499else
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501/* end confdefs.h. */
12502#include <link.h>
12503int
12504main ()
12505{
12506struct link_map lm; (void) lm.l_addr;
12507 ;
12508 return 0;
12509}
12510_ACEOF
12511if ac_fn_c_try_compile "$LINENO"; then :
12512 gdb_cv_have_struct_link_map_with_l_members=yes
12513else
12514 gdb_cv_have_struct_link_map_with_l_members=no
12515fi
12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517fi
12518
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
12520$as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
12521 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
12522
12523$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
12524
12525 fi
12526
12527
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
12529$as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
12530 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12532else
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534/* end confdefs.h. */
12535#include <sys/types.h>
12536#include <link.h>
12537int
12538main ()
12539{
12540struct link_map lm; (void) lm.lm_addr;
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545if ac_fn_c_try_compile "$LINENO"; then :
12546 gdb_cv_have_struct_link_map_with_lm_members=yes
12547else
12548 gdb_cv_have_struct_link_map_with_lm_members=no
12549fi
12550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551fi
12552
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
12554$as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
12555 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
12556
12557$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
12558
12559 fi
12560
12561
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
12563$as_echo_n "checking for member som_addr in struct so_map... " >&6; }
12564 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
12566else
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568/* end confdefs.h. */
12569#include <sys/types.h>
12570#ifdef HAVE_NLIST_H
12571#include <nlist.h>
12572#endif
12573#include <link.h>
12574int
12575main ()
12576{
12577struct so_map lm; (void) lm.som_addr;
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582if ac_fn_c_try_compile "$LINENO"; then :
12583 gdb_cv_have_struct_so_map_with_som_members=yes
12584else
12585 gdb_cv_have_struct_so_map_with_som_members=no
12586fi
12587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12588fi
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
12591$as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
12592 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
12593
12594$as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
12595
12596 fi
12597
12598
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
12600$as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
12601 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603else
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605/* end confdefs.h. */
12606#define _SYSCALL32
12607#include <sys/link.h>
12608int
12609main ()
12610{
12611struct link_map32 l;
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616if ac_fn_c_try_compile "$LINENO"; then :
12617 gdb_cv_have_struct_link_map32=yes
12618else
12619 gdb_cv_have_struct_link_map32=no
12620fi
12621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622fi
12623
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
12625$as_echo "$gdb_cv_have_struct_link_map32" >&6; }
12626 if test $gdb_cv_have_struct_link_map32 = yes; then
12627
12628$as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
12629
12630
12631$as_echo "#define _SYSCALL32 1" >>confdefs.h
12632
12633 fi
12634fi
12635
12636# Check if the compiler supports the `long long' type.
12637
12638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12639$as_echo_n "checking for long long support in compiler... " >&6; }
12640if test "${gdb_cv_c_long_long+set}" = set; then :
12641 $as_echo_n "(cached) " >&6
12642else
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644/* end confdefs.h. */
12645extern long long foo;
12646int
12647main ()
12648{
12649switch (foo & 2) { case 0: return 1; }
12650 ;
12651 return 0;
12652}
12653_ACEOF
12654if ac_fn_c_try_compile "$LINENO"; then :
12655 gdb_cv_c_long_long=yes
12656else
12657 gdb_cv_c_long_long=no
12658fi
12659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660fi
12661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12662$as_echo "$gdb_cv_c_long_long" >&6; }
12663if test $gdb_cv_c_long_long = yes; then
12664
12665$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12666
12667fi
12668
12669# Check if the compiler and runtime support printing long longs.
12670
12671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12672$as_echo_n "checking for long long support in printf... " >&6; }
12673if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12674 $as_echo_n "(cached) " >&6
12675else
12676 if test "$cross_compiling" = yes; then :
12677 gdb_cv_printf_has_long_long=no
12678else
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680/* end confdefs.h. */
12681$ac_includes_default
12682int
12683main ()
12684{
12685char buf[32];
12686 long long l = 0;
12687 l = (l << 16) + 0x0123;
12688 l = (l << 16) + 0x4567;
12689 l = (l << 16) + 0x89ab;
12690 l = (l << 16) + 0xcdef;
12691 sprintf (buf, "0x%016llx", l);
12692 return (strcmp ("0x0123456789abcdef", buf));
12693 ;
12694 return 0;
12695}
12696_ACEOF
12697if ac_fn_c_try_run "$LINENO"; then :
12698 gdb_cv_printf_has_long_long=yes
12699else
12700 gdb_cv_printf_has_long_long=no
12701fi
12702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12703 conftest.$ac_objext conftest.beam conftest.$ac_ext
12704fi
12705
12706fi
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12708$as_echo "$gdb_cv_printf_has_long_long" >&6; }
12709if test $gdb_cv_printf_has_long_long = yes; then
12710
12711$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12712
12713fi
12714
12715# Check if the compiler and runtime support printing decfloats.
12716
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12718$as_echo_n "checking for decfloat support in printf... " >&6; }
12719if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721else
12722 if test "$cross_compiling" = yes; then :
12723 gdb_cv_printf_has_decfloat=no
12724else
12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726/* end confdefs.h. */
12727$ac_includes_default
12728int
12729main ()
12730{
12731char buf[64];
12732 _Decimal32 d32 = 1.2345df;
12733 _Decimal64 d64 = 1.2345dd;
12734 _Decimal128 d128 = 1.2345dl;
12735 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12736 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12737 ;
12738 return 0;
12739}
12740_ACEOF
12741if ac_fn_c_try_run "$LINENO"; then :
12742 gdb_cv_printf_has_decfloat=yes
12743else
12744 gdb_cv_printf_has_decfloat=no
12745fi
12746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12747 conftest.$ac_objext conftest.beam conftest.$ac_ext
12748fi
12749
12750fi
12751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12752$as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12753if test $gdb_cv_printf_has_decfloat = yes; then
12754
12755$as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12756
12757fi
12758
12759# Check if the compiler supports the `long double' type. We can't use
12760# AC_C_LONG_DOUBLE because that one does additional checks on the
12761# constants defined in <float.h> that fail on some systems,
12762# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12763
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12765$as_echo_n "checking for long double support in compiler... " >&6; }
12766if test "${gdb_cv_c_long_double+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768else
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770/* end confdefs.h. */
12771long double foo;
12772_ACEOF
12773if ac_fn_c_try_compile "$LINENO"; then :
12774 gdb_cv_c_long_double=yes
12775else
12776 gdb_cv_c_long_double=no
12777fi
12778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779fi
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12781$as_echo "$gdb_cv_c_long_double" >&6; }
12782if test $gdb_cv_c_long_double = yes; then
12783
12784$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12785
12786fi
12787
12788# Check if the compiler and runtime support printing long doubles.
12789
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12791$as_echo_n "checking for long double support in printf... " >&6; }
12792if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12793 $as_echo_n "(cached) " >&6
12794else
12795 if test "$cross_compiling" = yes; then :
12796 gdb_cv_printf_has_long_double=no
12797else
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799/* end confdefs.h. */
12800$ac_includes_default
12801int
12802main ()
12803{
12804char buf[16];
12805 long double f = 3.141592653;
12806 sprintf (buf, "%Lg", f);
12807 return (strncmp ("3.14159", buf, 7));
12808 ;
12809 return 0;
12810}
12811_ACEOF
12812if ac_fn_c_try_run "$LINENO"; then :
12813 gdb_cv_printf_has_long_double=yes
12814else
12815 gdb_cv_printf_has_long_double=no
12816fi
12817rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12818 conftest.$ac_objext conftest.beam conftest.$ac_ext
12819fi
12820
12821fi
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12823$as_echo "$gdb_cv_printf_has_long_double" >&6; }
12824if test $gdb_cv_printf_has_long_double = yes; then
12825
12826$as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12827
12828fi
12829
12830# Check if the compiler and runtime support scanning long doubles.
12831
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12833$as_echo_n "checking for long double support in scanf... " >&6; }
12834if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
12836else
12837 if test "$cross_compiling" = yes; then :
12838 gdb_cv_scanf_has_long_double=no
12839else
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841/* end confdefs.h. */
12842#include <stdio.h>
12843int
12844main ()
12845{
12846char *buf = "3.141592653";
12847 long double f = 0;
12848 sscanf (buf, "%Lg", &f);
12849 return !(f > 3.14159 && f < 3.14160);
12850 ;
12851 return 0;
12852}
12853_ACEOF
12854if ac_fn_c_try_run "$LINENO"; then :
12855 gdb_cv_scanf_has_long_double=yes
12856else
12857 gdb_cv_scanf_has_long_double=no
12858fi
12859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12860 conftest.$ac_objext conftest.beam conftest.$ac_ext
12861fi
12862
12863fi
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12865$as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12866if test $gdb_cv_scanf_has_long_double = yes; then
12867
12868$as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12869
12870fi
12871
12872case ${host_os} in
12873aix*)
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12875$as_echo_n "checking for -bbigtoc option... " >&6; }
12876if test "${gdb_cv_bigtoc+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
12878else
12879
12880 SAVE_LDFLAGS=$LDFLAGS
12881
12882 case $GCC in
12883 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12884 *) gdb_cv_bigtoc=-bbigtoc ;;
12885 esac
12886
12887 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889/* end confdefs.h. */
12890
12891int
12892main ()
12893{
12894int i;
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899if ac_fn_c_try_link "$LINENO"; then :
12900
12901else
12902 gdb_cv_bigtoc=
12903fi
12904rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
12906 LDFLAGS="${SAVE_LDFLAGS}"
12907
12908fi
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12910$as_echo "$gdb_cv_bigtoc" >&6; }
12911 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12912 ;;
12913esac
12914
12915
12916
12917if test ${build} = ${host} -a ${host} = ${target} ; then
12918 case ${host_os} in
12919 hpux*)
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
12921$as_echo_n "checking for HPUX/OSF thread support... " >&6; }
12922 if test -f /usr/include/dce/cma_config.h ; then
12923 if test "$GCC" = "yes" ; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12925$as_echo "yes" >&6; }
12926
12927$as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
12928
12929 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
12930 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
12931 else
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
12933$as_echo "no (suppressed because you are not using GCC)" >&6; }
12934 fi
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937$as_echo "no" >&6; }
12938 fi
12939 ;;
12940 solaris*)
12941 # See if thread_db library is around for Solaris thread debugging.
12942 # Note that we must explicitly test for version 1 of the library
12943 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12944 # the same API.
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12946$as_echo_n "checking for Solaris thread debugging library... " >&6; }
12947 if test -f /usr/lib/libthread_db.so.1 ; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12949$as_echo "yes" >&6; }
12950
12951$as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12952
12953 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
12954 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12956$as_echo_n "checking for dlopen in -ldl... " >&6; }
12957if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12958 $as_echo_n "(cached) " >&6
12959else
12960 ac_check_lib_save_LIBS=$LIBS
12961LIBS="-ldl $LIBS"
12962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963/* end confdefs.h. */
12964
12965/* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968#ifdef __cplusplus
12969extern "C"
12970#endif
12971char dlopen ();
12972int
12973main ()
12974{
12975return dlopen ();
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980if ac_fn_c_try_link "$LINENO"; then :
12981 ac_cv_lib_dl_dlopen=yes
12982else
12983 ac_cv_lib_dl_dlopen=no
12984fi
12985rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987LIBS=$ac_check_lib_save_LIBS
12988fi
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12990$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12991if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12992 cat >>confdefs.h <<_ACEOF
12993#define HAVE_LIBDL 1
12994_ACEOF
12995
12996 LIBS="-ldl $LIBS"
12997
12998fi
12999
13000 if test "$GCC" = "yes" ; then
13001 # The GNU linker requires the -export-dynamic option to make
13002 # all symbols visible in the dynamic symbol table.
13003 hold_ldflags=$LDFLAGS
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
13005$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
13006 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008/* end confdefs.h. */
13009
13010int
13011main ()
13012{
13013int i;
13014 ;
13015 return 0;
13016}
13017_ACEOF
13018if ac_fn_c_try_link "$LINENO"; then :
13019 found=yes
13020else
13021 found=no
13022fi
13023rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13025 LDFLAGS=$hold_ldflags
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13027$as_echo "$found" >&6; }
13028 if test $found = yes; then
13029 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
13030 fi
13031 fi
13032 # Sun randomly tweaked the prototypes in <proc_service.h>
13033 # at one point.
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13035$as_echo_n "checking if <proc_service.h> is old... " >&6; }
13036 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038else
13039
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041/* end confdefs.h. */
13042
13043 #include <proc_service.h>
13044 ps_err_e ps_pdwrite
13045 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13046
13047int
13048main ()
13049{
13050
13051 ;
13052 return 0;
13053}
13054_ACEOF
13055if ac_fn_c_try_compile "$LINENO"; then :
13056 gdb_cv_proc_service_is_old=no
13057else
13058 gdb_cv_proc_service_is_old=yes
13059fi
13060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061
13062fi
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13065$as_echo "$gdb_cv_proc_service_is_old" >&6; }
13066 if test $gdb_cv_proc_service_is_old = yes; then
13067
13068$as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13069
13070 fi
13071 else
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073$as_echo "no" >&6; }
13074 fi
13075 ;;
13076 aix*)
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13078$as_echo_n "checking for AiX thread debugging library... " >&6; }
13079 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13080 $as_echo_n "(cached) " >&6
13081else
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083/* end confdefs.h. */
13084#include <sys/pthdebug.h>
13085int
13086main ()
13087{
13088#ifndef PTHDB_VERSION_3
13089 #error
13090 #endif
13091 ;
13092 return 0;
13093}
13094_ACEOF
13095if ac_fn_c_try_compile "$LINENO"; then :
13096 gdb_cv_have_aix_thread_debug=yes
13097else
13098 gdb_cv_have_aix_thread_debug=no
13099fi
13100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101fi
13102
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13104$as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13105 if test $gdb_cv_have_aix_thread_debug = yes; then
13106 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
13107 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
13108 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
13109 fi
13110 ;;
13111 esac
13112
13113fi
13114
13115if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13117$as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13118if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13120else
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122/* end confdefs.h. */
13123#include <thread_db.h>
13124int
13125main ()
13126{
13127int i = TD_NOTALLOC;
13128 ;
13129 return 0;
13130}
13131_ACEOF
13132if ac_fn_c_try_compile "$LINENO"; then :
13133 gdb_cv_thread_db_h_has_td_notalloc=yes
13134else
13135 gdb_cv_thread_db_h_has_td_notalloc=no
13136
13137fi
13138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139
13140fi
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13142$as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13144$as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13145if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13147else
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h. */
13150#include <thread_db.h>
13151int
13152main ()
13153{
13154int i = TD_VERSION;
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159if ac_fn_c_try_compile "$LINENO"; then :
13160 gdb_cv_thread_db_h_has_td_version=yes
13161else
13162 gdb_cv_thread_db_h_has_td_version=no
13163
13164fi
13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166
13167fi
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13169$as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13171$as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13172if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13174else
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176/* end confdefs.h. */
13177#include <thread_db.h>
13178int
13179main ()
13180{
13181int i = TD_NOTLS;
13182 ;
13183 return 0;
13184}
13185_ACEOF
13186if ac_fn_c_try_compile "$LINENO"; then :
13187 gdb_cv_thread_db_h_has_td_notls=yes
13188else
13189 gdb_cv_thread_db_h_has_td_notls=no
13190
13191fi
13192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193
13194fi
13195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13196$as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13197fi
13198if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13199
13200$as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13201
13202fi
13203if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13204
13205$as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13206
13207fi
13208if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13209
13210$as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13211
13212fi
13213
13214if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13216$as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13217if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13219else
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221/* end confdefs.h. */
13222#include <sys/syscall.h>
13223int
13224main ()
13225{
13226int i = __NR_tkill;
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231if ac_fn_c_try_compile "$LINENO"; then :
13232 gdb_cv_sys_syscall_h_has_tkill=yes
13233else
13234 gdb_cv_sys_syscall_h_has_tkill=no
13235
13236fi
13237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238
13239fi
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13241$as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13242fi
13243if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
13244
13245$as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13246
13247fi
13248
13249ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13250"
13251if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
13252 ac_have_decl=1
13253else
13254 ac_have_decl=0
13255fi
13256
13257cat >>confdefs.h <<_ACEOF
13258#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13259_ACEOF
13260
13261
13262if test "$cross_compiling" = yes; then :
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264/* end confdefs.h. */
13265#include <sys/personality.h>
13266int
13267main ()
13268{
13269
13270# if !HAVE_DECL_ADDR_NO_RANDOMIZE
13271# define ADDR_NO_RANDOMIZE 0x0040000
13272# endif
13273 /* Test the flag could be set and stays set. */
13274 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13275 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13276 return 1
13277 ;
13278 return 0;
13279}
13280_ACEOF
13281if ac_fn_c_try_link "$LINENO"; then :
13282 have_personality=true
13283else
13284 have_personality=false
13285fi
13286rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288else
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290/* end confdefs.h. */
13291#include <sys/personality.h>
13292int
13293main ()
13294{
13295
13296# if !HAVE_DECL_ADDR_NO_RANDOMIZE
13297# define ADDR_NO_RANDOMIZE 0x0040000
13298# endif
13299 /* Test the flag could be set and stays set. */
13300 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13301 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13302 return 1
13303 ;
13304 return 0;
13305}
13306_ACEOF
13307if ac_fn_c_try_run "$LINENO"; then :
13308 have_personality=true
13309else
13310 have_personality=false
13311fi
13312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13313 conftest.$ac_objext conftest.beam conftest.$ac_ext
13314fi
13315
13316if $have_personality
13317then
13318
13319$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13320
13321fi
13322
13323
13324target_sysroot_reloc=0
13325
13326# Check whether --with-sysroot was given.
13327if test "${with_sysroot+set}" = set; then :
13328 withval=$with_sysroot;
13329 case ${with_sysroot} in
13330 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
13331 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
13332 esac
13333
13334 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
13335
13336 if test "x$prefix" = xNONE; then
13337 test_prefix=/usr/local
13338 else
13339 test_prefix=$prefix
13340 fi
13341 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13342 test_exec_prefix=$test_prefix
13343 else
13344 test_exec_prefix=$exec_prefix
13345 fi
13346 case ${TARGET_SYSTEM_ROOT} in
13347 "${test_prefix}"|"${test_prefix}/"*|\
13348 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
13349 '${prefix}'|'${prefix}/'*|\
13350 '${exec_prefix}'|'${exec_prefix}/'*)
13351 target_sysroot_reloc=1
13352 ;;
13353 esac
13354
13355else
13356
13357 TARGET_SYSTEM_ROOT=
13358 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
13359
13360fi
13361
13362TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
13363
13364
13365
13366
13367
13368# Check whether --with-system-gdbinit was given.
13369if test "${with_system_gdbinit+set}" = set; then :
13370 withval=$with_system_gdbinit;
13371 SYSTEM_GDBINIT=$withval
13372else
13373 SYSTEM_GDBINIT=
13374fi
13375
13376
13377 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13379 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
13380 ac_define_dir=`eval echo $ac_define_dir`
13381
13382cat >>confdefs.h <<_ACEOF
13383#define SYSTEM_GDBINIT "$ac_define_dir"
13384_ACEOF
13385
13386
13387
13388 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13389 if test "x$prefix" = xNONE; then
13390 test_prefix=/usr/local
13391 else
13392 test_prefix=$prefix
13393 fi
13394 else
13395 test_prefix=$exec_prefix
13396 fi
13397 value=0
13398 case ${ac_define_dir} in
13399 "${test_prefix}"|"${test_prefix}/"*|\
13400 '${exec_prefix}'|'${exec_prefix}/'*)
13401 value=1
13402 ;;
13403 esac
13404
13405cat >>confdefs.h <<_ACEOF
13406#define SYSTEM_GDBINIT_RELOCATABLE $value
13407_ACEOF
13408
13409
13410
13411# Check whether --enable-werror was given.
13412if test "${enable_werror+set}" = set; then :
13413 enableval=$enable_werror; case "${enableval}" in
13414 yes | y) ERROR_ON_WARNING="yes" ;;
13415 no | n) ERROR_ON_WARNING="no" ;;
13416 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13417 esac
13418fi
13419
13420
13421# Enable -Werror by default when using gcc
13422if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13423 ERROR_ON_WARNING=yes
13424fi
13425
13426WERROR_CFLAGS=""
13427if test "${ERROR_ON_WARNING}" = yes ; then
13428 WERROR_CFLAGS="-Werror"
13429fi
13430
13431# The entries after -Wno-pointer-sign are disabled warnings which may
13432# be enabled in the future, which can not currently be used to build
13433# GDB.
13434# NOTE: If you change this list, remember to update
13435# gdb/doc/gdbint.texinfo.
13436build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13437-Wformat-nonliteral -Wno-pointer-sign \
13438-Wno-unused -Wunused-value -Wunused-function \
13439-Wno-switch -Wno-char-subscripts"
13440
13441# Enable -Wno-format by default when using gcc on mingw since many
13442# GCC versions complain about %I64.
13443case "${host}" in
13444 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13445esac
13446
13447# Check whether --enable-build-warnings was given.
13448if test "${enable_build_warnings+set}" = set; then :
13449 enableval=$enable_build_warnings; case "${enableval}" in
13450 yes) ;;
13451 no) build_warnings="-w";;
13452 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13453 build_warnings="${build_warnings} ${t}";;
13454 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13455 build_warnings="${t} ${build_warnings}";;
13456 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13457esac
13458if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13459 echo "Setting compiler warning flags = $build_warnings" 6>&1
13460fi
13461fi
13462# Check whether --enable-gdb-build-warnings was given.
13463if test "${enable_gdb_build_warnings+set}" = set; then :
13464 enableval=$enable_gdb_build_warnings; case "${enableval}" in
13465 yes) ;;
13466 no) build_warnings="-w";;
13467 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13468 build_warnings="${build_warnings} ${t}";;
13469 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
13470 build_warnings="${t} ${build_warnings}";;
13471 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13472esac
13473if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13474 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13475fi
13476fi
13477WARN_CFLAGS=""
13478if test "x${build_warnings}" != x -a "x$GCC" = xyes
13479then
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13481$as_echo_n "checking compiler warning flags... " >&6; }
13482 # Separate out the -Werror flag as some files just cannot be
13483 # compiled with it enabled.
13484 for w in ${build_warnings}; do
13485 case $w in
13486 -Werr*) WERROR_CFLAGS=-Werror ;;
13487 *) # Check that GCC accepts it
13488 saved_CFLAGS="$CFLAGS"
13489 CFLAGS="$CFLAGS $w"
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h. */
13492
13493int
13494main ()
13495{
13496
13497 ;
13498 return 0;
13499}
13500_ACEOF
13501if ac_fn_c_try_compile "$LINENO"; then :
13502 WARN_CFLAGS="${WARN_CFLAGS} $w"
13503fi
13504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 CFLAGS="$saved_CFLAGS"
13506 esac
13507 done
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13509$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13510fi
13511
13512
13513
13514# In the Cygwin environment, we need some additional flags.
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13516$as_echo_n "checking for cygwin... " >&6; }
13517if test "${gdb_cv_os_cygwin+set}" = set; then :
13518 $as_echo_n "(cached) " >&6
13519else
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521/* end confdefs.h. */
13522
13523#if defined (__CYGWIN__) || defined (__CYGWIN32__)
13524lose
13525#endif
13526_ACEOF
13527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13528 $EGREP "lose" >/dev/null 2>&1; then :
13529 gdb_cv_os_cygwin=yes
13530else
13531 gdb_cv_os_cygwin=no
13532fi
13533rm -f conftest*
13534
13535fi
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
13537$as_echo "$gdb_cv_os_cygwin" >&6; }
13538
13539
13540SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
13541case ${host} in
13542 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13543 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13544 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
13545esac
13546
13547
13548# libreadline needs libuser32.a in a cygwin environment
13549WIN32LIBS=
13550if test x$gdb_cv_os_cygwin = xyes; then
13551 WIN32LIBS="-luser32"
13552 case "${target}" in
13553 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13554 ;;
13555 esac
13556fi
13557
13558# The ser-tcp.c module requires sockets.
13559case ${host} in
13560 *mingw32*)
13561
13562$as_echo "#define USE_WIN32API 1" >>confdefs.h
13563
13564 WIN32LIBS="$WIN32LIBS -lws2_32"
13565 ;;
13566esac
13567
13568
13569# Add ELF support to GDB, but only if BFD includes ELF support.
13570OLD_CFLAGS=$CFLAGS
13571OLD_LDFLAGS=$LDFLAGS
13572OLD_LIBS=$LIBS
13573CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
13574LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
13575intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13576LIBS="-lbfd -liberty $intl $LIBS"
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13578$as_echo_n "checking for ELF support in BFD... " >&6; }
13579if test "${gdb_cv_var_elf+set}" = set; then :
13580 $as_echo_n "(cached) " >&6
13581else
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583/* end confdefs.h. */
13584#include <stdlib.h>
13585#include "bfd.h"
13586#include "elf-bfd.h"
13587
13588int
13589main ()
13590{
13591bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
13592 ;
13593 return 0;
13594}
13595_ACEOF
13596if ac_fn_c_try_link "$LINENO"; then :
13597 gdb_cv_var_elf=yes
13598else
13599 gdb_cv_var_elf=no
13600fi
13601rm -f core conftest.err conftest.$ac_objext \
13602 conftest$ac_exeext conftest.$ac_ext
13603fi
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13605$as_echo "$gdb_cv_var_elf" >&6; }
13606if test $gdb_cv_var_elf = yes; then
13607 CONFIG_OBS="$CONFIG_OBS elfread.o"
13608
13609$as_echo "#define HAVE_ELF 1" >>confdefs.h
13610
13611fi
13612CFLAGS=$OLD_CFLAGS
13613LDFLAGS=$OLD_LDFLAGS
13614LIBS=$OLD_LIBS
13615
13616# Add any host-specific objects to GDB.
13617CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
13618
13619LIBGUI="../libgui/src/libgui.a"
13620GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13621
13622
13623
13624WIN32LDAPP=
13625
13626
13627
13628case "${host}" in
13629*-*-cygwin* | *-*-mingw* )
13630 configdir="win"
13631 ;;
13632*)
13633 configdir="unix"
13634 ;;
13635esac
13636
13637GDBTKLIBS=
13638if test "${enable_gdbtk}" = "yes"; then
13639
13640 # Gdbtk must have an absolute path to srcdir in order to run
13641 # properly when not installed.
13642 here=`pwd`
13643 cd ${srcdir}
13644 GDBTK_SRC_DIR=`pwd`
13645 cd $here
13646
13647
13648 #
13649 # Ok, lets find the tcl configuration
13650 # First, look for one uninstalled.
13651 # the alternative search directory is invoked by --with-tcl
13652 #
13653
13654 if test x"${no_tcl}" = x ; then
13655 # we reset no_tcl in case something fails here
13656 no_tcl=true
13657
13658# Check whether --with-tcl was given.
13659if test "${with_tcl+set}" = set; then :
13660 withval=$with_tcl; with_tclconfig=${withval}
13661fi
13662
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13664$as_echo_n "checking for Tcl configuration... " >&6; }
13665 if test "${ac_cv_c_tclconfig+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
13667else
13668
13669
13670 # First check to see if --with-tcl was specified.
13671 case "${host}" in
13672 *-*-cygwin*) platDir="win" ;;
13673 *) platDir="unix" ;;
13674 esac
13675 if test x"${with_tclconfig}" != x ; then
13676 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13677 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13678 else
13679 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13680 fi
13681 fi
13682
13683 # then check for a private Tcl installation
13684 if test x"${ac_cv_c_tclconfig}" = x ; then
13685 for i in \
13686 ../tcl \
13687 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13688 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13689 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13690 ../../tcl \
13691 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13692 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13693 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13694 ../../../tcl \
13695 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13696 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13697 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13698 if test -f "$i/$platDir/tclConfig.sh" ; then
13699 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13700 break
13701 fi
13702 done
13703 fi
13704
13705 # on Darwin, check in Framework installation locations
13706 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13707 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13708 `ls -d /Library/Frameworks 2>/dev/null` \
13709 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13710 `ls -d /System/Library/Frameworks 2>/dev/null` \
13711 ; do
13712 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13713 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13714 break
13715 fi
13716 done
13717 fi
13718
13719 # check in a few common install locations
13720 if test x"${ac_cv_c_tclconfig}" = x ; then
13721 for i in `ls -d ${libdir} 2>/dev/null` \
13722 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13723 `ls -d ${prefix}/lib 2>/dev/null` \
13724 `ls -d /usr/local/lib 2>/dev/null` \
13725 `ls -d /usr/contrib/lib 2>/dev/null` \
13726 `ls -d /usr/lib 2>/dev/null` \
13727 ; do
13728 if test -f "$i/tclConfig.sh" ; then
13729 ac_cv_c_tclconfig=`(cd $i; pwd)`
13730 break
13731 fi
13732 done
13733 fi
13734
13735 # check in a few other private locations
13736 if test x"${ac_cv_c_tclconfig}" = x ; then
13737 for i in \
13738 ${srcdir}/../tcl \
13739 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13740 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13741 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13742 if test -f "$i/$platDir/tclConfig.sh" ; then
13743 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13744 break
13745 fi
13746 done
13747 fi
13748
13749fi
13750
13751
13752 if test x"${ac_cv_c_tclconfig}" = x ; then
13753 TCL_BIN_DIR="# no Tcl configs found"
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13755$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13756 else
13757 no_tcl=
13758 TCL_BIN_DIR=${ac_cv_c_tclconfig}
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13760$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13761 fi
13762 fi
13763
13764
13765 # If $no_tk is nonempty, then we can't do Tk, and there is no
13766 # point to doing Tcl.
13767
13768 #
13769 # Ok, lets find the tk configuration
13770 # First, look for one uninstalled.
13771 # the alternative search directory is invoked by --with-tk
13772 #
13773
13774 if test x"${no_tk}" = x ; then
13775 # we reset no_tk in case something fails here
13776 no_tk=true
13777
13778# Check whether --with-tk was given.
13779if test "${with_tk+set}" = set; then :
13780 withval=$with_tk; with_tkconfig=${withval}
13781fi
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13784$as_echo_n "checking for Tk configuration... " >&6; }
13785 if test "${ac_cv_c_tkconfig+set}" = set; then :
13786 $as_echo_n "(cached) " >&6
13787else
13788
13789
13790 # First check to see if --with-tkconfig was specified.
13791 if test x"${with_tkconfig}" != x ; then
13792 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13793 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
13794 else
13795 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13796 fi
13797 fi
13798
13799 # then check for a private Tk library
13800 case "${host}" in
13801 *-*-cygwin*) platDir="win" ;;
13802 *) platDir="unix" ;;
13803 esac
13804 if test x"${ac_cv_c_tkconfig}" = x ; then
13805 for i in \
13806 ../tk \
13807 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13808 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13809 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13810 ../../tk \
13811 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13812 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13813 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13814 ../../../tk \
13815 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13816 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13817 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13818 if test -f "$i/$platDir/tkConfig.sh" ; then
13819 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13820 break
13821 fi
13822 done
13823 fi
13824
13825 # on Darwin, check in Framework installation locations
13826 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
13827 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13828 `ls -d /Library/Frameworks 2>/dev/null` \
13829 `ls -d /Network/Library/Frameworks 2>/dev/null` \
13830 `ls -d /System/Library/Frameworks 2>/dev/null` \
13831 ; do
13832 if test -f "$i/Tk.framework/tkConfig.sh" ; then
13833 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
13834 break
13835 fi
13836 done
13837 fi
13838
13839 # check in a few common install locations
13840 if test x"${ac_cv_c_tkconfig}" = x ; then
13841 for i in `ls -d ${libdir} 2>/dev/null` \
13842 `ls -d ${exec_prefix}/lib 2>/dev/null` \
13843 `ls -d ${prefix}/lib 2>/dev/null` \
13844 `ls -d /usr/local/lib 2>/dev/null` \
13845 `ls -d /usr/contrib/lib 2>/dev/null` \
13846 `ls -d /usr/lib 2>/dev/null` \
13847 ; do
13848 if test -f "$i/tkConfig.sh" ; then
13849 ac_cv_c_tkconfig=`(cd $i; pwd)`
13850 break
13851 fi
13852 done
13853 fi
13854 # check in a few other private locations
13855 if test x"${ac_cv_c_tkconfig}" = x ; then
13856 for i in \
13857 ${srcdir}/../tk \
13858 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13859 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13860 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13861 if test -f "$i/$platDir/tkConfig.sh" ; then
13862 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13863 break
13864 fi
13865 done
13866 fi
13867
13868fi
13869
13870
13871 if test x"${ac_cv_c_tkconfig}" = x ; then
13872 TK_BIN_DIR="# no Tk configs found"
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13874$as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13875 else
13876 no_tk=
13877 TK_BIN_DIR=${ac_cv_c_tkconfig}
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13879$as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13880 fi
13881 fi
13882
13883
13884 if test -z "${no_tcl}" -a -z "${no_tk}"; then
13885
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13887$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13888
13889 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13891$as_echo "loading" >&6; }
13892 . ${TCL_BIN_DIR}/tclConfig.sh
13893 else
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13895$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13896 fi
13897
13898 # eval is required to do the TCL_DBGX substitution
13899 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13900 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13901
13902 # If the TCL_BIN_DIR is the build directory (not the install directory),
13903 # then set the common variable name to the value of the build variables.
13904 # For example, the variable TCL_LIB_SPEC will be set to the value
13905 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13906 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13907 # installed and uninstalled version of Tcl.
13908 if test -f "${TCL_BIN_DIR}/Makefile" ; then
13909 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13910 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13911 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13912 elif test "`uname -s`" = "Darwin"; then
13913 # If Tcl was built as a framework, attempt to use the libraries
13914 # from the framework at the given location so that linking works
13915 # against Tcl.framework installed in an arbitary location.
13916 case ${TCL_DEFS} in
13917 *TCL_FRAMEWORK*)
13918 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13919 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
13920 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13921 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13922 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13923 break
13924 fi
13925 done
13926 fi
13927 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13928 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13929 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13930 fi
13931 ;;
13932 esac
13933 fi
13934
13935 # eval is required to do the TCL_DBGX substitution
13936 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13937 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13938 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13939 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955 # Check for in-tree tcl
13956 here=`pwd`
13957 cd ${srcdir}/..
13958 topdir=`pwd`
13959 cd ${here}
13960
13961 intree="no"
13962 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13963 intree="yes"
13964 fi
13965
13966 # Find Tcl private headers
13967 if test x"${intree}" = xno; then
13968
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13970$as_echo_n "checking for Tcl private headers... " >&6; }
13971 private_dir=""
13972 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13973 if test -f ${dir}/tclInt.h ; then
13974 private_dir=${dir}
13975 fi
13976
13977 if test x"${private_dir}" = x; then
13978 as_fn_error "could not find private Tcl headers" "$LINENO" 5
13979 else
13980 TCL_PRIVATE_INCLUDE="-I${private_dir}"
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13982$as_echo "${private_dir}" >&6; }
13983 fi
13984
13985 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13986 TCL_LIBRARY="${TCL_LIB_SPEC}"
13987 TCL_DEPS=""
13988 else
13989 # If building tcl in the same src tree, private headers
13990 # are not needed, but we need to be sure to use the right
13991 # headers library
13992 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
13993 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
13994 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
13995 fi
13996
13997
13998
13999
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14002$as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14003
14004 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14006$as_echo "loading" >&6; }
14007 . ${TK_BIN_DIR}/tkConfig.sh
14008 else
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14010$as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14011 fi
14012
14013 # eval is required to do the TK_DBGX substitution
14014 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14015 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14016
14017 # If the TK_BIN_DIR is the build directory (not the install directory),
14018 # then set the common variable name to the value of the build variables.
14019 # For example, the variable TK_LIB_SPEC will be set to the value
14020 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14021 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14022 # installed and uninstalled version of Tcl.
14023 if test -f "${TK_BIN_DIR}/Makefile" ; then
14024 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
14025 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
14026 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
14027 elif test "`uname -s`" = "Darwin"; then
14028 # If Tk was built as a framework, attempt to use the libraries
14029 # from the framework at the given location so that linking works
14030 # against Tk.framework installed in an arbitary location.
14031 case ${TK_DEFS} in
14032 *TK_FRAMEWORK*)
14033 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14034 for i in "`cd ${TK_BIN_DIR}; pwd`" \
14035 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14036 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14037 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14038 break
14039 fi
14040 done
14041 fi
14042 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14043 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14044 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14045 fi
14046 ;;
14047 esac
14048 fi
14049
14050 # eval is required to do the TK_DBGX substitution
14051 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14052 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14053 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14054 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069 # Check for in-tree Tk
14070 intree="no"
14071 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14072 intree="yes"
14073 fi
14074
14075 # Find Tk private headers
14076 if test x"${intree}" = xno; then
14077
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14079$as_echo_n "checking for Tk private headers... " >&6; }
14080 private_dir=""
14081 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14082 if test -f ${dir}/tkInt.h; then
14083 private_dir=${dir}
14084 fi
14085
14086 if test x"${private_dir}" = x; then
14087 as_fn_error "could not find Tk private headers" "$LINENO" 5
14088 else
14089 TK_PRIVATE_INCLUDE="-I${private_dir}"
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14091$as_echo "${private_dir}" >&6; }
14092 fi
14093
14094 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14095 TK_LIBRARY=${TK_LIB_SPEC}
14096 TK_DEPS=""
14097 else
14098 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
14099 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
14100 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
14101 fi
14102
14103
14104
14105
14106
14107 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14108
14109 # Include some libraries that Tcl and Tk want.
14110 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14111 # Yes, the ordering seems wrong here. But it isn't.
14112 # TK_LIBS is the list of libraries that need to be linked
14113 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14114 # were in LIBS then any link tests after this point would
14115 # try to include things like `$(LIBGUI)', which wouldn't work.
14116 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
14117
14118 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14119 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14120 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14121 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
14122 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
14123 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
14124 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
14125
14126 if test x$gdb_cv_os_cygwin = xyes; then
14127 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14128 WIN32LDAPP="-Wl,--subsystem,console"
14129 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
14130 fi
14131
14132 subdirs="$subdirs gdbtk"
14133
14134 fi
14135fi
14136
14137
14138
14139
14140
14141
14142
14143
14144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14145$as_echo_n "checking for X... " >&6; }
14146
14147
14148# Check whether --with-x was given.
14149if test "${with_x+set}" = set; then :
14150 withval=$with_x;
14151fi
14152
14153# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14154if test "x$with_x" = xno; then
14155 # The user explicitly disabled X.
14156 have_x=disabled
14157else
14158 case $x_includes,$x_libraries in #(
14159 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14160 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14161 $as_echo_n "(cached) " >&6
14162else
14163 # One or both of the vars are not set, and there is no cached value.
14164ac_x_includes=no ac_x_libraries=no
14165rm -f -r conftest.dir
14166if mkdir conftest.dir; then
14167 cd conftest.dir
14168 cat >Imakefile <<'_ACEOF'
14169incroot:
14170 @echo incroot='${INCROOT}'
14171usrlibdir:
14172 @echo usrlibdir='${USRLIBDIR}'
14173libdir:
14174 @echo libdir='${LIBDIR}'
14175_ACEOF
14176 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14178 for ac_var in incroot usrlibdir libdir; do
14179 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14180 done
14181 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14182 for ac_extension in a so sl dylib la dll; do
14183 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14184 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14185 ac_im_usrlibdir=$ac_im_libdir; break
14186 fi
14187 done
14188 # Screen out bogus values from the imake configuration. They are
14189 # bogus both because they are the default anyway, and because
14190 # using them would break gcc on systems where it needs fixed includes.
14191 case $ac_im_incroot in
14192 /usr/include) ac_x_includes= ;;
14193 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14194 esac
14195 case $ac_im_usrlibdir in
14196 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14197 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14198 esac
14199 fi
14200 cd ..
14201 rm -f -r conftest.dir
14202fi
14203
14204# Standard set of common directories for X headers.
14205# Check X11 before X11Rn because it is often a symlink to the current release.
14206ac_x_header_dirs='
14207/usr/X11/include
14208/usr/X11R7/include
14209/usr/X11R6/include
14210/usr/X11R5/include
14211/usr/X11R4/include
14212
14213/usr/include/X11
14214/usr/include/X11R7
14215/usr/include/X11R6
14216/usr/include/X11R5
14217/usr/include/X11R4
14218
14219/usr/local/X11/include
14220/usr/local/X11R7/include
14221/usr/local/X11R6/include
14222/usr/local/X11R5/include
14223/usr/local/X11R4/include
14224
14225/usr/local/include/X11
14226/usr/local/include/X11R7
14227/usr/local/include/X11R6
14228/usr/local/include/X11R5
14229/usr/local/include/X11R4
14230
14231/usr/X386/include
14232/usr/x386/include
14233/usr/XFree86/include/X11
14234
14235/usr/include
14236/usr/local/include
14237/usr/unsupported/include
14238/usr/athena/include
14239/usr/local/x11r5/include
14240/usr/lpp/Xamples/include
14241
14242/usr/openwin/include
14243/usr/openwin/share/include'
14244
14245if test "$ac_x_includes" = no; then
14246 # Guess where to find include files, by looking for Xlib.h.
14247 # First, try using that file with no special directory specified.
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249/* end confdefs.h. */
14250#include <X11/Xlib.h>
14251_ACEOF
14252if ac_fn_c_try_cpp "$LINENO"; then :
14253 # We can compile using X headers with no special include directory.
14254ac_x_includes=
14255else
14256 for ac_dir in $ac_x_header_dirs; do
14257 if test -r "$ac_dir/X11/Xlib.h"; then
14258 ac_x_includes=$ac_dir
14259 break
14260 fi
14261done
14262fi
14263rm -f conftest.err conftest.$ac_ext
14264fi # $ac_x_includes = no
14265
14266if test "$ac_x_libraries" = no; then
14267 # Check for the libraries.
14268 # See if we find them without any special options.
14269 # Don't add to $LIBS permanently.
14270 ac_save_LIBS=$LIBS
14271 LIBS="-lX11 $LIBS"
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h. */
14274#include <X11/Xlib.h>
14275int
14276main ()
14277{
14278XrmInitialize ()
14279 ;
14280 return 0;
14281}
14282_ACEOF
14283if ac_fn_c_try_link "$LINENO"; then :
14284 LIBS=$ac_save_LIBS
14285# We can link X programs with no special library path.
14286ac_x_libraries=
14287else
14288 LIBS=$ac_save_LIBS
14289for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14290do
14291 # Don't even attempt the hair of trying to link an X program!
14292 for ac_extension in a so sl dylib la dll; do
14293 if test -r "$ac_dir/libX11.$ac_extension"; then
14294 ac_x_libraries=$ac_dir
14295 break 2
14296 fi
14297 done
14298done
14299fi
14300rm -f core conftest.err conftest.$ac_objext \
14301 conftest$ac_exeext conftest.$ac_ext
14302fi # $ac_x_libraries = no
14303
14304case $ac_x_includes,$ac_x_libraries in #(
14305 no,* | *,no | *\'*)
14306 # Didn't find X, or a directory has "'" in its name.
14307 ac_cv_have_x="have_x=no";; #(
14308 *)
14309 # Record where we found X for the cache.
14310 ac_cv_have_x="have_x=yes\
14311 ac_x_includes='$ac_x_includes'\
14312 ac_x_libraries='$ac_x_libraries'"
14313esac
14314fi
14315;; #(
14316 *) have_x=yes;;
14317 esac
14318 eval "$ac_cv_have_x"
14319fi # $with_x != no
14320
14321if test "$have_x" != yes; then
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14323$as_echo "$have_x" >&6; }
14324 no_x=yes
14325else
14326 # If each of the values was on the command line, it overrides each guess.
14327 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14328 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14329 # Update the cache value to reflect the command line values.
14330 ac_cv_have_x="have_x=yes\
14331 ac_x_includes='$x_includes'\
14332 ac_x_libraries='$x_libraries'"
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14334$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14335fi
14336
14337
14338# Unlike the sim directory, whether a simulator is linked is controlled by
14339# presence of a gdb_sim definition in the target configure.tgt entry.
14340# This code just checks for a few cases where we'd like to ignore those
14341# definitions, even when they're present in the '.mt' file. These cases
14342# are when --disable-sim is specified, or if the simulator directory is
14343# not part of the source tree.
14344#
14345# Check whether --enable-sim was given.
14346if test "${enable_sim+set}" = set; then :
14347 enableval=$enable_sim; echo "enable_sim = $enable_sim";
14348 echo "enableval = ${enableval}";
14349 case "${enableval}" in
14350 yes) ignore_sim=false ;;
14351 no) ignore_sim=true ;;
14352 *) ignore_sim=false ;;
14353 esac
14354else
14355 ignore_sim=false
14356fi
14357
14358
14359if test ! -d "${srcdir}/../sim"; then
14360 ignore_sim=true
14361fi
14362
14363SIM=
14364SIM_OBS=
14365if test "${ignore_sim}" = "false"; then
14366 if test x"${gdb_sim}" != x ; then
14367 SIM="${gdb_sim}"
14368 SIM_OBS="remote-sim.o"
14369
14370$as_echo "#define WITH_SIM 1" >>confdefs.h
14371
14372 fi
14373fi
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388# List of host floatformats.
14389
14390cat >>confdefs.h <<_ACEOF
14391#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14392_ACEOF
14393
14394
14395cat >>confdefs.h <<_ACEOF
14396#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14397_ACEOF
14398
14399
14400cat >>confdefs.h <<_ACEOF
14401#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14402_ACEOF
14403
14404
14405# target_subdir is used by the testsuite to find the target libraries.
14406target_subdir=
14407if test "${host}" != "${target}"; then
14408 target_subdir="${target_alias}/"
14409fi
14410
14411
14412frags=
14413if test "${gdb_native}" = "yes"; then
14414 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14415 if test ! -f ${host_makefile_frag}; then
14416 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14417 fi
14418 frags="$frags $host_makefile_frag"
14419else
14420 host_makefile_frag=/dev/null
14421fi
14422
14423
14424
14425
14426if test "${gdb_native}" = "yes"; then
14427# We pick this up from the host configuration file (.mh) because we
14428# do not have a native configuration Makefile fragment.
14429nativefile=`sed -n '
14430s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14431' ${host_makefile_frag}`
14432fi
14433
14434
14435if test x"${gdb_osabi}" != x ; then
14436
14437cat >>confdefs.h <<_ACEOF
14438#define GDB_OSABI_DEFAULT $gdb_osabi
14439_ACEOF
14440
14441fi
14442
14443# Enable multi-ice-gdb-server.
14444# Check whether --enable-multi-ice was given.
14445if test "${enable_multi_ice+set}" = set; then :
14446 enableval=$enable_multi_ice; case $enableval in
14447 yes | no)
14448 ;;
14449 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14450 esac
14451fi
14452
14453if test "x$enable_multi_ice" = xyes; then
14454 subdirs="$subdirs multi-ice"
14455
14456fi
14457
14458# We only build gdbserver automatically in a native configuration.
14459if test "$gdb_native" = "yes"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14461$as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14462 if test "x$build_gdbserver" = xyes; then
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14464$as_echo "yes" >&6; }
14465 subdirs="$subdirs gdbserver"
14466
14467 else
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469$as_echo "no" >&6; }
14470 fi
14471fi
14472
14473# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14474# to an empty version.
14475
14476files=
14477links=
14478
14479rm -f nm.h
14480if test "${nativefile}" != ""; then
14481 case "${nativefile}" in
14482 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
14483 * ) GDB_NM_FILE="${nativefile}"
14484 esac
14485 files="${files} ${GDB_NM_FILE}"
14486 links="${links} nm.h"
14487
14488cat >>confdefs.h <<_ACEOF
14489#define GDB_NM_FILE "${GDB_NM_FILE}"
14490_ACEOF
14491
14492fi
14493
14494
14495ac_sources="$files"
14496ac_dests="$links"
14497while test -n "$ac_sources"; do
14498 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14499 set $ac_sources; ac_source=$1; shift; ac_sources=$*
14500 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14501done
14502ac_config_links="$ac_config_links $ac_config_links_1"
14503
14504
14505
14506
14507
14508$as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14509
14510
14511ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
14512
14513ac_config_commands="$ac_config_commands default"
14514
14515cat >confcache <<\_ACEOF
14516# This file is a shell script that caches the results of configure
14517# tests run on this system so they can be shared between configure
14518# scripts and configure runs, see configure's option --config-cache.
14519# It is not useful on other systems. If it contains results you don't
14520# want to keep, you may remove or edit it.
14521#
14522# config.status only pays attention to the cache file if you give it
14523# the --recheck option to rerun configure.
14524#
14525# `ac_cv_env_foo' variables (set or unset) will be overridden when
14526# loading this file, other *unset* `ac_cv_foo' will be assigned the
14527# following values.
14528
14529_ACEOF
14530
14531# The following way of writing the cache mishandles newlines in values,
14532# but we know of no workaround that is simple, portable, and efficient.
14533# So, we kill variables containing newlines.
14534# Ultrix sh set writes to stderr and can't be redirected directly,
14535# and sets the high bit in the cache file unless we assign to the vars.
14536(
14537 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14538 eval ac_val=\$$ac_var
14539 case $ac_val in #(
14540 *${as_nl}*)
14541 case $ac_var in #(
14542 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14543$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14544 esac
14545 case $ac_var in #(
14546 _ | IFS | as_nl) ;; #(
14547 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14548 *) { eval $ac_var=; unset $ac_var;} ;;
14549 esac ;;
14550 esac
14551 done
14552
14553 (set) 2>&1 |
14554 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14555 *${as_nl}ac_space=\ *)
14556 # `set' does not quote correctly, so add quotes: double-quote
14557 # substitution turns \\\\ into \\, and sed turns \\ into \.
14558 sed -n \
14559 "s/'/'\\\\''/g;
14560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14561 ;; #(
14562 *)
14563 # `set' quotes correctly as required by POSIX, so do not add quotes.
14564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14565 ;;
14566 esac |
14567 sort
14568) |
14569 sed '
14570 /^ac_cv_env_/b end
14571 t clear
14572 :clear
14573 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14574 t end
14575 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14576 :end' >>confcache
14577if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14578 if test -w "$cache_file"; then
14579 test "x$cache_file" != "x/dev/null" &&
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14581$as_echo "$as_me: updating cache $cache_file" >&6;}
14582 cat confcache >$cache_file
14583 else
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14585$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14586 fi
14587fi
14588rm -f confcache
14589
14590test "x$prefix" = xNONE && prefix=$ac_default_prefix
14591# Let make expand exec_prefix.
14592test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14593
14594DEFS=-DHAVE_CONFIG_H
14595
14596ac_libobjs=
14597ac_ltlibobjs=
14598for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14599 # 1. Remove the extension, and $U if already installed.
14600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14601 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14603 # will be set to the directory where LIBOBJS objects are built.
14604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14606done
14607LIBOBJS=$ac_libobjs
14608
14609LTLIBOBJS=$ac_ltlibobjs
14610
14611
14612if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14613 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14614Usually this means the macro was only invoked conditionally." "$LINENO" 5
14615fi
14616if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14617 as_fn_error "conditional \"GMAKE\" was never defined.
14618Usually this means the macro was only invoked conditionally." "$LINENO" 5
14619fi
14620if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14621 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14622Usually this means the macro was only invoked conditionally." "$LINENO" 5
14623fi
14624
14625 gl_libobjs=
14626 gl_ltlibobjs=
14627 if test -n "$gl_LIBOBJS"; then
14628 # Remove the extension.
14629 sed_drop_objext='s/\.o$//;s/\.obj$//'
14630 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14631 gl_libobjs="$gl_libobjs $i.$ac_objext"
14632 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14633 done
14634 fi
14635 gl_LIBOBJS=$gl_libobjs
14636
14637 gl_LTLIBOBJS=$gl_ltlibobjs
14638
14639
14640
14641 gltests_libobjs=
14642 gltests_ltlibobjs=
14643 if test -n "$gltests_LIBOBJS"; then
14644 # Remove the extension.
14645 sed_drop_objext='s/\.o$//;s/\.obj$//'
14646 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14647 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14648 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14649 done
14650 fi
14651 gltests_LIBOBJS=$gltests_libobjs
14652
14653 gltests_LTLIBOBJS=$gltests_ltlibobjs
14654
14655
14656if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14657 as_fn_error "conditional \"AMDEP\" was never defined.
14658Usually this means the macro was only invoked conditionally." "$LINENO" 5
14659fi
14660if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14661 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14662Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663fi
14664 if test -n "$EXEEXT"; then
14665 am__EXEEXT_TRUE=
14666 am__EXEEXT_FALSE='#'
14667else
14668 am__EXEEXT_TRUE='#'
14669 am__EXEEXT_FALSE=
14670fi
14671
14672
14673
14674: ${CONFIG_STATUS=./config.status}
14675ac_write_fail=0
14676ac_clean_files_save=$ac_clean_files
14677ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14679$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14680as_write_fail=0
14681cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14682#! $SHELL
14683# Generated by $as_me.
14684# Run this file to recreate the current configuration.
14685# Compiler output produced by configure, useful for debugging
14686# configure, is in config.log if it exists.
14687
14688debug=false
14689ac_cs_recheck=false
14690ac_cs_silent=false
14691
14692SHELL=\${CONFIG_SHELL-$SHELL}
14693export SHELL
14694_ASEOF
14695cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14696## -------------------- ##
14697## M4sh Initialization. ##
14698## -------------------- ##
14699
14700# Be more Bourne compatible
14701DUALCASE=1; export DUALCASE # for MKS sh
14702if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14703 emulate sh
14704 NULLCMD=:
14705 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14706 # is contrary to our usage. Disable this feature.
14707 alias -g '${1+"$@"}'='"$@"'
14708 setopt NO_GLOB_SUBST
14709else
14710 case `(set -o) 2>/dev/null` in #(
14711 *posix*) :
14712 set -o posix ;; #(
14713 *) :
14714 ;;
14715esac
14716fi
14717
14718
14719as_nl='
14720'
14721export as_nl
14722# Printing a long string crashes Solaris 7 /usr/bin/printf.
14723as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14724as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14725as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14726# Prefer a ksh shell builtin over an external printf program on Solaris,
14727# but without wasting forks for bash or zsh.
14728if test -z "$BASH_VERSION$ZSH_VERSION" \
14729 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14730 as_echo='print -r --'
14731 as_echo_n='print -rn --'
14732elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14733 as_echo='printf %s\n'
14734 as_echo_n='printf %s'
14735else
14736 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14737 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14738 as_echo_n='/usr/ucb/echo -n'
14739 else
14740 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14741 as_echo_n_body='eval
14742 arg=$1;
14743 case $arg in #(
14744 *"$as_nl"*)
14745 expr "X$arg" : "X\\(.*\\)$as_nl";
14746 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14747 esac;
14748 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14749 '
14750 export as_echo_n_body
14751 as_echo_n='sh -c $as_echo_n_body as_echo'
14752 fi
14753 export as_echo_body
14754 as_echo='sh -c $as_echo_body as_echo'
14755fi
14756
14757# The user is always right.
14758if test "${PATH_SEPARATOR+set}" != set; then
14759 PATH_SEPARATOR=:
14760 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14761 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14762 PATH_SEPARATOR=';'
14763 }
14764fi
14765
14766
14767# IFS
14768# We need space, tab and new line, in precisely that order. Quoting is
14769# there to prevent editors from complaining about space-tab.
14770# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14771# splitting by setting IFS to empty value.)
14772IFS=" "" $as_nl"
14773
14774# Find who we are. Look in the path if we contain no directory separator.
14775case $0 in #((
14776 *[\\/]* ) as_myself=$0 ;;
14777 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14778for as_dir in $PATH
14779do
14780 IFS=$as_save_IFS
14781 test -z "$as_dir" && as_dir=.
14782 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14783 done
14784IFS=$as_save_IFS
14785
14786 ;;
14787esac
14788# We did not find ourselves, most probably we were run as `sh COMMAND'
14789# in which case we are not to be found in the path.
14790if test "x$as_myself" = x; then
14791 as_myself=$0
14792fi
14793if test ! -f "$as_myself"; then
14794 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14795 exit 1
14796fi
14797
14798# Unset variables that we do not need and which cause bugs (e.g. in
14799# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14800# suppresses any "Segmentation fault" message there. '((' could
14801# trigger a bug in pdksh 5.2.14.
14802for as_var in BASH_ENV ENV MAIL MAILPATH
14803do eval test x\${$as_var+set} = xset \
14804 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14805done
14806PS1='$ '
14807PS2='> '
14808PS4='+ '
14809
14810# NLS nuisances.
14811LC_ALL=C
14812export LC_ALL
14813LANGUAGE=C
14814export LANGUAGE
14815
14816# CDPATH.
14817(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14818
14819
14820# as_fn_error ERROR [LINENO LOG_FD]
14821# ---------------------------------
14822# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14823# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14824# script with status $?, using 1 if that was 0.
14825as_fn_error ()
14826{
14827 as_status=$?; test $as_status -eq 0 && as_status=1
14828 if test "$3"; then
14829 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14830 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14831 fi
14832 $as_echo "$as_me: error: $1" >&2
14833 as_fn_exit $as_status
14834} # as_fn_error
14835
14836
14837# as_fn_set_status STATUS
14838# -----------------------
14839# Set $? to STATUS, without forking.
14840as_fn_set_status ()
14841{
14842 return $1
14843} # as_fn_set_status
14844
14845# as_fn_exit STATUS
14846# -----------------
14847# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14848as_fn_exit ()
14849{
14850 set +e
14851 as_fn_set_status $1
14852 exit $1
14853} # as_fn_exit
14854
14855# as_fn_unset VAR
14856# ---------------
14857# Portably unset VAR.
14858as_fn_unset ()
14859{
14860 { eval $1=; unset $1;}
14861}
14862as_unset=as_fn_unset
14863# as_fn_append VAR VALUE
14864# ----------------------
14865# Append the text in VALUE to the end of the definition contained in VAR. Take
14866# advantage of any shell optimizations that allow amortized linear growth over
14867# repeated appends, instead of the typical quadratic growth present in naive
14868# implementations.
14869if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14870 eval 'as_fn_append ()
14871 {
14872 eval $1+=\$2
14873 }'
14874else
14875 as_fn_append ()
14876 {
14877 eval $1=\$$1\$2
14878 }
14879fi # as_fn_append
14880
14881# as_fn_arith ARG...
14882# ------------------
14883# Perform arithmetic evaluation on the ARGs, and store the result in the
14884# global $as_val. Take advantage of shells that can avoid forks. The arguments
14885# must be portable across $(()) and expr.
14886if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14887 eval 'as_fn_arith ()
14888 {
14889 as_val=$(( $* ))
14890 }'
14891else
14892 as_fn_arith ()
14893 {
14894 as_val=`expr "$@" || test $? -eq 1`
14895 }
14896fi # as_fn_arith
14897
14898
14899if expr a : '\(a\)' >/dev/null 2>&1 &&
14900 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14901 as_expr=expr
14902else
14903 as_expr=false
14904fi
14905
14906if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14907 as_basename=basename
14908else
14909 as_basename=false
14910fi
14911
14912if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14913 as_dirname=dirname
14914else
14915 as_dirname=false
14916fi
14917
14918as_me=`$as_basename -- "$0" ||
14919$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14920 X"$0" : 'X\(//\)$' \| \
14921 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14922$as_echo X/"$0" |
14923 sed '/^.*\/\([^/][^/]*\)\/*$/{
14924 s//\1/
14925 q
14926 }
14927 /^X\/\(\/\/\)$/{
14928 s//\1/
14929 q
14930 }
14931 /^X\/\(\/\).*/{
14932 s//\1/
14933 q
14934 }
14935 s/.*/./; q'`
14936
14937# Avoid depending upon Character Ranges.
14938as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14939as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14940as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14941as_cr_digits='0123456789'
14942as_cr_alnum=$as_cr_Letters$as_cr_digits
14943
14944ECHO_C= ECHO_N= ECHO_T=
14945case `echo -n x` in #(((((
14946-n*)
14947 case `echo 'xy\c'` in
14948 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14949 xy) ECHO_C='\c';;
14950 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14951 ECHO_T=' ';;
14952 esac;;
14953*)
14954 ECHO_N='-n';;
14955esac
14956
14957rm -f conf$$ conf$$.exe conf$$.file
14958if test -d conf$$.dir; then
14959 rm -f conf$$.dir/conf$$.file
14960else
14961 rm -f conf$$.dir
14962 mkdir conf$$.dir 2>/dev/null
14963fi
14964if (echo >conf$$.file) 2>/dev/null; then
14965 if ln -s conf$$.file conf$$ 2>/dev/null; then
14966 as_ln_s='ln -s'
14967 # ... but there are two gotchas:
14968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14970 # In both cases, we have to default to `cp -p'.
14971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14972 as_ln_s='cp -p'
14973 elif ln conf$$.file conf$$ 2>/dev/null; then
14974 as_ln_s=ln
14975 else
14976 as_ln_s='cp -p'
14977 fi
14978else
14979 as_ln_s='cp -p'
14980fi
14981rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14982rmdir conf$$.dir 2>/dev/null
14983
14984
14985# as_fn_mkdir_p
14986# -------------
14987# Create "$as_dir" as a directory, including parents if necessary.
14988as_fn_mkdir_p ()
14989{
14990
14991 case $as_dir in #(
14992 -*) as_dir=./$as_dir;;
14993 esac
14994 test -d "$as_dir" || eval $as_mkdir_p || {
14995 as_dirs=
14996 while :; do
14997 case $as_dir in #(
14998 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14999 *) as_qdir=$as_dir;;
15000 esac
15001 as_dirs="'$as_qdir' $as_dirs"
15002 as_dir=`$as_dirname -- "$as_dir" ||
15003$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15004 X"$as_dir" : 'X\(//\)[^/]' \| \
15005 X"$as_dir" : 'X\(//\)$' \| \
15006 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15007$as_echo X"$as_dir" |
15008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15009 s//\1/
15010 q
15011 }
15012 /^X\(\/\/\)[^/].*/{
15013 s//\1/
15014 q
15015 }
15016 /^X\(\/\/\)$/{
15017 s//\1/
15018 q
15019 }
15020 /^X\(\/\).*/{
15021 s//\1/
15022 q
15023 }
15024 s/.*/./; q'`
15025 test -d "$as_dir" && break
15026 done
15027 test -z "$as_dirs" || eval "mkdir $as_dirs"
15028 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15029
15030
15031} # as_fn_mkdir_p
15032if mkdir -p . 2>/dev/null; then
15033 as_mkdir_p='mkdir -p "$as_dir"'
15034else
15035 test -d ./-p && rmdir ./-p
15036 as_mkdir_p=false
15037fi
15038
15039if test -x / >/dev/null 2>&1; then
15040 as_test_x='test -x'
15041else
15042 if ls -dL / >/dev/null 2>&1; then
15043 as_ls_L_option=L
15044 else
15045 as_ls_L_option=
15046 fi
15047 as_test_x='
15048 eval sh -c '\''
15049 if test -d "$1"; then
15050 test -d "$1/.";
15051 else
15052 case $1 in #(
15053 -*)set "./$1";;
15054 esac;
15055 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15056 ???[sx]*):;;*)false;;esac;fi
15057 '\'' sh
15058 '
15059fi
15060as_executable_p=$as_test_x
15061
15062# Sed expression to map a string onto a valid CPP name.
15063as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15064
15065# Sed expression to map a string onto a valid variable name.
15066as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15067
15068
15069exec 6>&1
15070## ----------------------------------- ##
15071## Main body of $CONFIG_STATUS script. ##
15072## ----------------------------------- ##
15073_ASEOF
15074test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15075
15076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15077# Save the log message, to keep $0 and so on meaningful, and to
15078# report actual input values of CONFIG_FILES etc. instead of their
15079# values after options handling.
15080ac_log="
15081This file was extended by $as_me, which was
15082generated by GNU Autoconf 2.64. Invocation command line was
15083
15084 CONFIG_FILES = $CONFIG_FILES
15085 CONFIG_HEADERS = $CONFIG_HEADERS
15086 CONFIG_LINKS = $CONFIG_LINKS
15087 CONFIG_COMMANDS = $CONFIG_COMMANDS
15088 $ $0 $@
15089
15090on `(hostname || uname -n) 2>/dev/null | sed 1q`
15091"
15092
15093_ACEOF
15094
15095case $ac_config_files in *"
15096"*) set x $ac_config_files; shift; ac_config_files=$*;;
15097esac
15098
15099case $ac_config_headers in *"
15100"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15101esac
15102
15103
15104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15105# Files that config.status was made for.
15106config_files="$ac_config_files"
15107config_headers="$ac_config_headers"
15108config_links="$ac_config_links"
15109config_commands="$ac_config_commands"
15110
15111_ACEOF
15112
15113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15114ac_cs_usage="\
15115\`$as_me' instantiates files and other configuration actions
15116from templates according to the current configuration. Unless the files
15117and actions are specified as TAGs, all are instantiated by default.
15118
15119Usage: $0 [OPTION]... [TAG]...
15120
15121 -h, --help print this help, then exit
15122 -V, --version print version number and configuration settings, then exit
15123 -q, --quiet, --silent
15124 do not print progress messages
15125 -d, --debug don't remove temporary files
15126 --recheck update $as_me by reconfiguring in the same conditions
15127 --file=FILE[:TEMPLATE]
15128 instantiate the configuration file FILE
15129 --header=FILE[:TEMPLATE]
15130 instantiate the configuration header FILE
15131
15132Configuration files:
15133$config_files
15134
15135Configuration headers:
15136$config_headers
15137
15138Configuration links:
15139$config_links
15140
15141Configuration commands:
15142$config_commands
15143
15144Report bugs to the package provider."
15145
15146_ACEOF
15147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15148ac_cs_version="\\
15149config.status
15150configured by $0, generated by GNU Autoconf 2.64,
15151 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15152
15153Copyright (C) 2009 Free Software Foundation, Inc.
15154This config.status script is free software; the Free Software Foundation
15155gives unlimited permission to copy, distribute and modify it."
15156
15157ac_pwd='$ac_pwd'
15158srcdir='$srcdir'
15159INSTALL='$INSTALL'
15160MKDIR_P='$MKDIR_P'
15161AWK='$AWK'
15162test -n "\$AWK" || AWK=awk
15163_ACEOF
15164
15165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15166# The default lists apply if the user does not specify any file.
15167ac_need_defaults=:
15168while test $# != 0
15169do
15170 case $1 in
15171 --*=*)
15172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15174 ac_shift=:
15175 ;;
15176 *)
15177 ac_option=$1
15178 ac_optarg=$2
15179 ac_shift=shift
15180 ;;
15181 esac
15182
15183 case $ac_option in
15184 # Handling of the options.
15185 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15186 ac_cs_recheck=: ;;
15187 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15188 $as_echo "$ac_cs_version"; exit ;;
15189 --debug | --debu | --deb | --de | --d | -d )
15190 debug=: ;;
15191 --file | --fil | --fi | --f )
15192 $ac_shift
15193 case $ac_optarg in
15194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15195 esac
15196 as_fn_append CONFIG_FILES " '$ac_optarg'"
15197 ac_need_defaults=false;;
15198 --header | --heade | --head | --hea )
15199 $ac_shift
15200 case $ac_optarg in
15201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15202 esac
15203 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15204 ac_need_defaults=false;;
15205 --he | --h)
15206 # Conflict between --help and --header
15207 as_fn_error "ambiguous option: \`$1'
15208Try \`$0 --help' for more information.";;
15209 --help | --hel | -h )
15210 $as_echo "$ac_cs_usage"; exit ;;
15211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15212 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15213 ac_cs_silent=: ;;
15214
15215 # This is an error.
15216 -*) as_fn_error "unrecognized option: \`$1'
15217Try \`$0 --help' for more information." ;;
15218
15219 *) as_fn_append ac_config_targets " $1"
15220 ac_need_defaults=false ;;
15221
15222 esac
15223 shift
15224done
15225
15226ac_configure_extra_args=
15227
15228if $ac_cs_silent; then
15229 exec 6>/dev/null
15230 ac_configure_extra_args="$ac_configure_extra_args --silent"
15231fi
15232
15233_ACEOF
15234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15235if \$ac_cs_recheck; then
15236 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15237 shift
15238 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15239 CONFIG_SHELL='$SHELL'
15240 export CONFIG_SHELL
15241 exec "\$@"
15242fi
15243
15244_ACEOF
15245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15246exec 5>>config.log
15247{
15248 echo
15249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15250## Running $as_me. ##
15251_ASBOX
15252 $as_echo "$ac_log"
15253} >&5
15254
15255_ACEOF
15256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15257#
15258# INIT-COMMANDS
15259#
15260ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15261AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15262
15263_ACEOF
15264
15265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15266
15267# Handling of arguments.
15268for ac_config_target in $ac_config_targets
15269do
15270 case $ac_config_target in
15271 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15272 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
15273 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15274 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
15275 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15276 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15277 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
15278 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15279
15280 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15281 esac
15282done
15283
15284
15285# If the user did not use the arguments to specify the items to instantiate,
15286# then the envvar interface is used. Set only those that are not.
15287# We use the long form for the default assignment because of an extremely
15288# bizarre bug on SunOS 4.1.3.
15289if $ac_need_defaults; then
15290 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15291 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15292 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15293 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15294fi
15295
15296# Have a temporary directory for convenience. Make it in the build tree
15297# simply because there is no reason against having it here, and in addition,
15298# creating and moving files from /tmp can sometimes cause problems.
15299# Hook for its removal unless debugging.
15300# Note that there is a small window in which the directory will not be cleaned:
15301# after its creation but before its name has been assigned to `$tmp'.
15302$debug ||
15303{
15304 tmp=
15305 trap 'exit_status=$?
15306 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15307' 0
15308 trap 'as_fn_exit 1' 1 2 13 15
15309}
15310# Create a (secure) tmp directory for tmp files.
15311
15312{
15313 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15314 test -n "$tmp" && test -d "$tmp"
15315} ||
15316{
15317 tmp=./conf$$-$RANDOM
15318 (umask 077 && mkdir "$tmp")
15319} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15320
15321# Set up the scripts for CONFIG_FILES section.
15322# No need to generate them if there are no CONFIG_FILES.
15323# This happens for instance with `./config.status config.h'.
15324if test -n "$CONFIG_FILES"; then
15325
15326if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15327 ac_cs_awk_getline=:
15328 ac_cs_awk_pipe_init=
15329 ac_cs_awk_read_file='
15330 while ((getline aline < (F[key])) > 0)
15331 print(aline)
15332 close(F[key])'
15333 ac_cs_awk_pipe_fini=
15334else
15335 ac_cs_awk_getline=false
15336 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15337 ac_cs_awk_read_file='
15338 print "|#_!!_#|"
15339 print "cat " F[key] " &&"
15340 '$ac_cs_awk_pipe_init
15341 # The final `:' finishes the AND list.
15342 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15343fi
15344ac_cr=`echo X | tr X '\015'`
15345# On cygwin, bash can eat \r inside `` if the user requested igncr.
15346# But we know of no other shell where ac_cr would be empty at this
15347# point, so we can use a bashism as a fallback.
15348if test "x$ac_cr" = x; then
15349 eval ac_cr=\$\'\\r\'
15350fi
15351ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15352if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15353 ac_cs_awk_cr='\r'
15354else
15355 ac_cs_awk_cr=$ac_cr
15356fi
15357
15358echo 'BEGIN {' >"$tmp/subs1.awk" &&
15359_ACEOF
15360
15361# Create commands to substitute file output variables.
15362{
15363 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15364 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15365 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15366 echo "_ACAWK" &&
15367 echo "_ACEOF"
15368} >conf$$files.sh &&
15369. ./conf$$files.sh ||
15370 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15371rm -f conf$$files.sh
15372
15373{
15374 echo "cat >conf$$subs.awk <<_ACEOF" &&
15375 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15376 echo "_ACEOF"
15377} >conf$$subs.sh ||
15378 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15379ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15380ac_delim='%!_!# '
15381for ac_last_try in false false false false false :; do
15382 . ./conf$$subs.sh ||
15383 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15384
15385 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15386 if test $ac_delim_n = $ac_delim_num; then
15387 break
15388 elif $ac_last_try; then
15389 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15390 else
15391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15392 fi
15393done
15394rm -f conf$$subs.sh
15395
15396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15397cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15398_ACEOF
15399sed -n '
15400h
15401s/^/S["/; s/!.*/"]=/
15402p
15403g
15404s/^[^!]*!//
15405:repl
15406t repl
15407s/'"$ac_delim"'$//
15408t delim
15409:nl
15410h
15411s/\(.\{148\}\).*/\1/
15412t more1
15413s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15414p
15415n
15416b repl
15417:more1
15418s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15419p
15420g
15421s/.\{148\}//
15422t nl
15423:delim
15424h
15425s/\(.\{148\}\).*/\1/
15426t more2
15427s/["\\]/\\&/g; s/^/"/; s/$/"/
15428p
15429b
15430:more2
15431s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15432p
15433g
15434s/.\{148\}//
15435t delim
15436' <conf$$subs.awk | sed '
15437/^[^""]/{
15438 N
15439 s/\n//
15440}
15441' >>$CONFIG_STATUS || ac_write_fail=1
15442rm -f conf$$subs.awk
15443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15444_ACAWK
15445cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15446 for (key in S) S_is_set[key] = 1
15447 FS = "\a"
15448 \$ac_cs_awk_pipe_init
15449}
15450{
15451 line = $ 0
15452 nfields = split(line, field, "@")
15453 substed = 0
15454 len = length(field[1])
15455 for (i = 2; i < nfields; i++) {
15456 key = field[i]
15457 keylen = length(key)
15458 if (S_is_set[key]) {
15459 value = S[key]
15460 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15461 len += length(value) + length(field[++i])
15462 substed = 1
15463 } else
15464 len += 1 + keylen
15465 }
15466 if (nfields == 3 && !substed) {
15467 key = field[2]
15468 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15469 \$ac_cs_awk_read_file
15470 next
15471 }
15472 }
15473 print line
15474}
15475\$ac_cs_awk_pipe_fini
15476_ACAWK
15477_ACEOF
15478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15479if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15480 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15481else
15482 cat
15483fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15484 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15485_ACEOF
15486
15487# VPATH may cause trouble with some makes, so we remove $(srcdir),
15488# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15489# trailing colons and then remove the whole line if VPATH becomes empty
15490# (actually we leave an empty line to preserve line numbers).
15491if test "x$srcdir" = x.; then
15492 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15493s/:*\$(srcdir):*/:/
15494s/:*\${srcdir}:*/:/
15495s/:*@srcdir@:*/:/
15496s/^\([^=]*=[ ]*\):*/\1/
15497s/:*$//
15498s/^[^=]*=[ ]*$//
15499}'
15500fi
15501
15502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15503fi # test -n "$CONFIG_FILES"
15504
15505# Set up the scripts for CONFIG_HEADERS section.
15506# No need to generate them if there are no CONFIG_HEADERS.
15507# This happens for instance with `./config.status Makefile'.
15508if test -n "$CONFIG_HEADERS"; then
15509cat >"$tmp/defines.awk" <<\_ACAWK ||
15510BEGIN {
15511_ACEOF
15512
15513# Transform confdefs.h into an awk script `defines.awk', embedded as
15514# here-document in config.status, that substitutes the proper values into
15515# config.h.in to produce config.h.
15516
15517# Create a delimiter string that does not exist in confdefs.h, to ease
15518# handling of long lines.
15519ac_delim='%!_!# '
15520for ac_last_try in false false :; do
15521 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15522 if test -z "$ac_t"; then
15523 break
15524 elif $ac_last_try; then
15525 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15526 else
15527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15528 fi
15529done
15530
15531# For the awk script, D is an array of macro values keyed by name,
15532# likewise P contains macro parameters if any. Preserve backslash
15533# newline sequences.
15534
15535ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15536sed -n '
15537s/.\{148\}/&'"$ac_delim"'/g
15538t rset
15539:rset
15540s/^[ ]*#[ ]*define[ ][ ]*/ /
15541t def
15542d
15543:def
15544s/\\$//
15545t bsnl
15546s/["\\]/\\&/g
15547s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15548D["\1"]=" \3"/p
15549s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15550d
15551:bsnl
15552s/["\\]/\\&/g
15553s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15554D["\1"]=" \3\\\\\\n"\\/p
15555t cont
15556s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15557t cont
15558d
15559:cont
15560n
15561s/.\{148\}/&'"$ac_delim"'/g
15562t clear
15563:clear
15564s/\\$//
15565t bsnlc
15566s/["\\]/\\&/g; s/^/"/; s/$/"/p
15567d
15568:bsnlc
15569s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15570b cont
15571' <confdefs.h | sed '
15572s/'"$ac_delim"'/"\\\
15573"/g' >>$CONFIG_STATUS || ac_write_fail=1
15574
15575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15576 for (key in D) D_is_set[key] = 1
15577 FS = "\a"
15578}
15579/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15580 line = \$ 0
15581 split(line, arg, " ")
15582 if (arg[1] == "#") {
15583 defundef = arg[2]
15584 mac1 = arg[3]
15585 } else {
15586 defundef = substr(arg[1], 2)
15587 mac1 = arg[2]
15588 }
15589 split(mac1, mac2, "(") #)
15590 macro = mac2[1]
15591 prefix = substr(line, 1, index(line, defundef) - 1)
15592 if (D_is_set[macro]) {
15593 # Preserve the white space surrounding the "#".
15594 print prefix "define", macro P[macro] D[macro]
15595 next
15596 } else {
15597 # Replace #undef with comments. This is necessary, for example,
15598 # in the case of _POSIX_SOURCE, which is predefined and required
15599 # on some systems where configure will not decide to define it.
15600 if (defundef == "undef") {
15601 print "/*", prefix defundef, macro, "*/"
15602 next
15603 }
15604 }
15605}
15606{ print }
15607_ACAWK
15608_ACEOF
15609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15610 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15611fi # test -n "$CONFIG_HEADERS"
15612
15613
15614eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15615shift
15616for ac_tag
15617do
15618 case $ac_tag in
15619 :[FHLC]) ac_mode=$ac_tag; continue;;
15620 esac
15621 case $ac_mode$ac_tag in
15622 :[FHL]*:*);;
15623 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15624 :[FH]-) ac_tag=-:-;;
15625 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15626 esac
15627 ac_save_IFS=$IFS
15628 IFS=:
15629 set x $ac_tag
15630 IFS=$ac_save_IFS
15631 shift
15632 ac_file=$1
15633 shift
15634
15635 case $ac_mode in
15636 :L) ac_source=$1;;
15637 :[FH])
15638 ac_file_inputs=
15639 for ac_f
15640 do
15641 case $ac_f in
15642 -) ac_f="$tmp/stdin";;
15643 *) # Look for the file first in the build tree, then in the source tree
15644 # (if the path is not absolute). The absolute path cannot be DOS-style,
15645 # because $ac_f cannot contain `:'.
15646 test -f "$ac_f" ||
15647 case $ac_f in
15648 [\\/$]*) false;;
15649 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15650 esac ||
15651 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15652 esac
15653 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15654 as_fn_append ac_file_inputs " '$ac_f'"
15655 done
15656
15657 # Let's still pretend it is `configure' which instantiates (i.e., don't
15658 # use $as_me), people would be surprised to read:
15659 # /* config.h. Generated by config.status. */
15660 configure_input='Generated from '`
15661 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15662 `' by configure.'
15663 if test x"$ac_file" != x-; then
15664 configure_input="$ac_file. $configure_input"
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15666$as_echo "$as_me: creating $ac_file" >&6;}
15667 fi
15668 # Neutralize special characters interpreted by sed in replacement strings.
15669 case $configure_input in #(
15670 *\&* | *\|* | *\\* )
15671 ac_sed_conf_input=`$as_echo "$configure_input" |
15672 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15673 *) ac_sed_conf_input=$configure_input;;
15674 esac
15675
15676 case $ac_tag in
15677 *:-:* | *:-) cat >"$tmp/stdin" \
15678 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15679 esac
15680 ;;
15681 esac
15682
15683 ac_dir=`$as_dirname -- "$ac_file" ||
15684$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15685 X"$ac_file" : 'X\(//\)[^/]' \| \
15686 X"$ac_file" : 'X\(//\)$' \| \
15687 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15688$as_echo X"$ac_file" |
15689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15690 s//\1/
15691 q
15692 }
15693 /^X\(\/\/\)[^/].*/{
15694 s//\1/
15695 q
15696 }
15697 /^X\(\/\/\)$/{
15698 s//\1/
15699 q
15700 }
15701 /^X\(\/\).*/{
15702 s//\1/
15703 q
15704 }
15705 s/.*/./; q'`
15706 as_dir="$ac_dir"; as_fn_mkdir_p
15707 ac_builddir=.
15708
15709case "$ac_dir" in
15710.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15711*)
15712 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15713 # A ".." for each directory in $ac_dir_suffix.
15714 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15715 case $ac_top_builddir_sub in
15716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15718 esac ;;
15719esac
15720ac_abs_top_builddir=$ac_pwd
15721ac_abs_builddir=$ac_pwd$ac_dir_suffix
15722# for backward compatibility:
15723ac_top_builddir=$ac_top_build_prefix
15724
15725case $srcdir in
15726 .) # We are building in place.
15727 ac_srcdir=.
15728 ac_top_srcdir=$ac_top_builddir_sub
15729 ac_abs_top_srcdir=$ac_pwd ;;
15730 [\\/]* | ?:[\\/]* ) # Absolute name.
15731 ac_srcdir=$srcdir$ac_dir_suffix;
15732 ac_top_srcdir=$srcdir
15733 ac_abs_top_srcdir=$srcdir ;;
15734 *) # Relative name.
15735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15736 ac_top_srcdir=$ac_top_build_prefix$srcdir
15737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15738esac
15739ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15740
15741
15742 case $ac_mode in
15743 :F)
15744 #
15745 # CONFIG_FILE
15746 #
15747
15748 case $INSTALL in
15749 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15750 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15751 esac
15752 ac_MKDIR_P=$MKDIR_P
15753 case $MKDIR_P in
15754 [\\/$]* | ?:[\\/]* ) ;;
15755 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15756 esac
15757_ACEOF
15758
15759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15760# If the template does not know about datarootdir, expand it.
15761# FIXME: This hack should be removed a few years after 2.60.
15762ac_datarootdir_hack=; ac_datarootdir_seen=
15763ac_sed_dataroot='
15764/datarootdir/ {
15765 p
15766 q
15767}
15768/@datadir@/p
15769/@docdir@/p
15770/@infodir@/p
15771/@localedir@/p
15772/@mandir@/p'
15773case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15774*datarootdir*) ac_datarootdir_seen=yes;;
15775*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15777$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15778_ACEOF
15779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15780 ac_datarootdir_hack='
15781 s&@datadir@&$datadir&g
15782 s&@docdir@&$docdir&g
15783 s&@infodir@&$infodir&g
15784 s&@localedir@&$localedir&g
15785 s&@mandir@&$mandir&g
15786 s&\\\${datarootdir}&$datarootdir&g' ;;
15787esac
15788_ACEOF
15789
15790# Neutralize VPATH when `$srcdir' = `.'.
15791# Shell code in configure.ac might set extrasub.
15792# FIXME: do we really want to maintain this feature?
15793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15794ac_sed_extra="$ac_vpsub
15795$extrasub
15796_ACEOF
15797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15798:t
15799/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15800s|@configure_input@|$ac_sed_conf_input|;t t
15801s&@top_builddir@&$ac_top_builddir_sub&;t t
15802s&@top_build_prefix@&$ac_top_build_prefix&;t t
15803s&@srcdir@&$ac_srcdir&;t t
15804s&@abs_srcdir@&$ac_abs_srcdir&;t t
15805s&@top_srcdir@&$ac_top_srcdir&;t t
15806s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15807s&@builddir@&$ac_builddir&;t t
15808s&@abs_builddir@&$ac_abs_builddir&;t t
15809s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15810s&@INSTALL@&$ac_INSTALL&;t t
15811s&@MKDIR_P@&$ac_MKDIR_P&;t t
15812$ac_datarootdir_hack
15813"
15814eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15815if $ac_cs_awk_getline; then
15816 $AWK -f "$tmp/subs.awk"
15817else
15818 $AWK -f "$tmp/subs.awk" | $SHELL
15819fi >$tmp/out \
15820 || as_fn_error "could not create $ac_file" "$LINENO" 5
15821
15822test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15823 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15826which seems to be undefined. Please make sure it is defined." >&5
15827$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15828which seems to be undefined. Please make sure it is defined." >&2;}
15829
15830 rm -f "$tmp/stdin"
15831 case $ac_file in
15832 -) cat "$tmp/out" && rm -f "$tmp/out";;
15833 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15834 esac \
15835 || as_fn_error "could not create $ac_file" "$LINENO" 5
15836 ;;
15837 :H)
15838 #
15839 # CONFIG_HEADER
15840 #
15841 if test x"$ac_file" != x-; then
15842 {
15843 $as_echo "/* $configure_input */" \
15844 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15845 } >"$tmp/config.h" \
15846 || as_fn_error "could not create $ac_file" "$LINENO" 5
15847 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15849$as_echo "$as_me: $ac_file is unchanged" >&6;}
15850 else
15851 rm -f "$ac_file"
15852 mv "$tmp/config.h" "$ac_file" \
15853 || as_fn_error "could not create $ac_file" "$LINENO" 5
15854 fi
15855 else
15856 $as_echo "/* $configure_input */" \
15857 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15858 || as_fn_error "could not create -" "$LINENO" 5
15859 fi
15860# Compute "$ac_file"'s index in $config_headers.
15861_am_arg="$ac_file"
15862_am_stamp_count=1
15863for _am_header in $config_headers :; do
15864 case $_am_header in
15865 $_am_arg | $_am_arg:* )
15866 break ;;
15867 * )
15868 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15869 esac
15870done
15871echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15872$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15873 X"$_am_arg" : 'X\(//\)[^/]' \| \
15874 X"$_am_arg" : 'X\(//\)$' \| \
15875 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15876$as_echo X"$_am_arg" |
15877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15878 s//\1/
15879 q
15880 }
15881 /^X\(\/\/\)[^/].*/{
15882 s//\1/
15883 q
15884 }
15885 /^X\(\/\/\)$/{
15886 s//\1/
15887 q
15888 }
15889 /^X\(\/\).*/{
15890 s//\1/
15891 q
15892 }
15893 s/.*/./; q'`/stamp-h$_am_stamp_count
15894 ;;
15895 :L)
15896 #
15897 # CONFIG_LINK
15898 #
15899
15900 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15901 :
15902 else
15903 # Prefer the file from the source tree if names are identical.
15904 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15905 ac_source=$srcdir/$ac_source
15906 fi
15907
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15909$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15910
15911 if test ! -r "$ac_source"; then
15912 as_fn_error "$ac_source: file not found" "$LINENO" 5
15913 fi
15914 rm -f "$ac_file"
15915
15916 # Try a relative symlink, then a hard link, then a copy.
15917 case $srcdir in
15918 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15919 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15920 esac
15921 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15922 ln "$ac_source" "$ac_file" 2>/dev/null ||
15923 cp -p "$ac_source" "$ac_file" ||
15924 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15925 fi
15926 ;;
15927 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15928$as_echo "$as_me: executing $ac_file commands" >&6;}
15929 ;;
15930 esac
15931
15932
15933 case $ac_file$ac_mode in
15934 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
15935 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15936 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15937 # are listed without --file. Let's play safe and only enable the eval
15938 # if we detect the quoting.
15939 case $CONFIG_FILES in
15940 *\'*) eval set x "$CONFIG_FILES" ;;
15941 *) set x $CONFIG_FILES ;;
15942 esac
15943 shift
15944 for mf
15945 do
15946 # Strip MF so we end up with the name of the file.
15947 mf=`echo "$mf" | sed -e 's/:.*$//'`
15948 # Check whether this is an Automake generated Makefile or not.
15949 # We used to match only the files named `Makefile.in', but
15950 # some people rename them; so instead we look at the file content.
15951 # Grep'ing the first line is not enough: some people post-process
15952 # each Makefile.in and add a new line on top of each file to say so.
15953 # Grep'ing the whole file is not good either: AIX grep has a line
15954 # limit of 2048, but all sed's we know have understand at least 4000.
15955 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15956 dirpart=`$as_dirname -- "$mf" ||
15957$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15958 X"$mf" : 'X\(//\)[^/]' \| \
15959 X"$mf" : 'X\(//\)$' \| \
15960 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15961$as_echo X"$mf" |
15962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15963 s//\1/
15964 q
15965 }
15966 /^X\(\/\/\)[^/].*/{
15967 s//\1/
15968 q
15969 }
15970 /^X\(\/\/\)$/{
15971 s//\1/
15972 q
15973 }
15974 /^X\(\/\).*/{
15975 s//\1/
15976 q
15977 }
15978 s/.*/./; q'`
15979 else
15980 continue
15981 fi
15982 # Extract the definition of DEPDIR, am__include, and am__quote
15983 # from the Makefile without running `make'.
15984 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15985 test -z "$DEPDIR" && continue
15986 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15987 test -z "am__include" && continue
15988 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15989 # When using ansi2knr, U may be empty or an underscore; expand it
15990 U=`sed -n 's/^U = //p' < "$mf"`
15991 # Find all dependency output files, they are included files with
15992 # $(DEPDIR) in their names. We invoke sed twice because it is the
15993 # simplest approach to changing $(DEPDIR) to its actual value in the
15994 # expansion.
15995 for file in `sed -n "
15996 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15997 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15998 # Make sure the directory exists.
15999 test -f "$dirpart/$file" && continue
16000 fdir=`$as_dirname -- "$file" ||
16001$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16002 X"$file" : 'X\(//\)[^/]' \| \
16003 X"$file" : 'X\(//\)$' \| \
16004 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16005$as_echo X"$file" |
16006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16007 s//\1/
16008 q
16009 }
16010 /^X\(\/\/\)[^/].*/{
16011 s//\1/
16012 q
16013 }
16014 /^X\(\/\/\)$/{
16015 s//\1/
16016 q
16017 }
16018 /^X\(\/\).*/{
16019 s//\1/
16020 q
16021 }
16022 s/.*/./; q'`
16023 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16024 # echo "creating $dirpart/$file"
16025 echo '# dummy' > "$dirpart/$file"
16026 done
16027 done
16028}
16029 ;;
16030 "default":C)
16031case x$CONFIG_HEADERS in
16032xconfig.h:config.in)
16033echo > stamp-h ;;
16034esac
16035 ;;
16036
16037 esac
16038done # for ac_tag
16039
16040
16041as_fn_exit 0
16042_ACEOF
16043ac_clean_files=$ac_clean_files_save
16044
16045test $ac_write_fail = 0 ||
16046 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16047
16048
16049# configure is writing to config.log, and then calls config.status.
16050# config.status does its own redirection, appending to config.log.
16051# Unfortunately, on DOS this fails, as config.log is still kept open
16052# by configure, so config.status won't be able to write to it; its
16053# output is simply discarded. So we exec the FD to /dev/null,
16054# effectively closing config.log, so it can be properly (re)opened and
16055# appended to by config.status. When coming back to configure, we
16056# need to make the FD available again.
16057if test "$no_create" != yes; then
16058 ac_cs_success=:
16059 ac_config_status_args=
16060 test "$silent" = yes &&
16061 ac_config_status_args="$ac_config_status_args --quiet"
16062 exec 5>/dev/null
16063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16064 exec 5>>config.log
16065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16066 # would make configure fail if this is the last instruction.
16067 $ac_cs_success || as_fn_exit $?
16068fi
16069
16070#
16071# CONFIG_SUBDIRS section.
16072#
16073if test "$no_recursion" != yes; then
16074
16075 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16076 # so they do not pile up.
16077 ac_sub_configure_args=
16078 ac_prev=
16079 eval "set x $ac_configure_args"
16080 shift
16081 for ac_arg
16082 do
16083 if test -n "$ac_prev"; then
16084 ac_prev=
16085 continue
16086 fi
16087 case $ac_arg in
16088 -cache-file | --cache-file | --cache-fil | --cache-fi \
16089 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16090 ac_prev=cache_file ;;
16091 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16092 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16093 | --c=*)
16094 ;;
16095 --config-cache | -C)
16096 ;;
16097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16098 ac_prev=srcdir ;;
16099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16100 ;;
16101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16102 ac_prev=prefix ;;
16103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16104 ;;
16105 --disable-option-checking)
16106 ;;
16107 *)
16108 case $ac_arg in
16109 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16110 esac
16111 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16112 esac
16113 done
16114
16115 # Always prepend --prefix to ensure using the same prefix
16116 # in subdir configurations.
16117 ac_arg="--prefix=$prefix"
16118 case $ac_arg in
16119 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16120 esac
16121 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16122
16123 # Pass --silent
16124 if test "$silent" = yes; then
16125 ac_sub_configure_args="--silent $ac_sub_configure_args"
16126 fi
16127
16128 # Always prepend --disable-option-checking to silence warnings, since
16129 # different subdirs can have different --enable and --with options.
16130 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16131
16132 ac_popdir=`pwd`
16133 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16134
16135 # Do not complain, so a configure script can configure whichever
16136 # parts of a large source tree are present.
16137 test -d "$srcdir/$ac_dir" || continue
16138
16139 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16140 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16141 $as_echo "$ac_msg" >&6
16142 as_dir="$ac_dir"; as_fn_mkdir_p
16143 ac_builddir=.
16144
16145case "$ac_dir" in
16146.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16147*)
16148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16149 # A ".." for each directory in $ac_dir_suffix.
16150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16151 case $ac_top_builddir_sub in
16152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16154 esac ;;
16155esac
16156ac_abs_top_builddir=$ac_pwd
16157ac_abs_builddir=$ac_pwd$ac_dir_suffix
16158# for backward compatibility:
16159ac_top_builddir=$ac_top_build_prefix
16160
16161case $srcdir in
16162 .) # We are building in place.
16163 ac_srcdir=.
16164 ac_top_srcdir=$ac_top_builddir_sub
16165 ac_abs_top_srcdir=$ac_pwd ;;
16166 [\\/]* | ?:[\\/]* ) # Absolute name.
16167 ac_srcdir=$srcdir$ac_dir_suffix;
16168 ac_top_srcdir=$srcdir
16169 ac_abs_top_srcdir=$srcdir ;;
16170 *) # Relative name.
16171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16172 ac_top_srcdir=$ac_top_build_prefix$srcdir
16173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16174esac
16175ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16176
16177
16178 cd "$ac_dir"
16179
16180 # Check for guested configure; otherwise get Cygnus style configure.
16181 if test -f "$ac_srcdir/configure.gnu"; then
16182 ac_sub_configure=$ac_srcdir/configure.gnu
16183 elif test -f "$ac_srcdir/configure"; then
16184 ac_sub_configure=$ac_srcdir/configure
16185 elif test -f "$ac_srcdir/configure.in"; then
16186 # This should be Cygnus configure.
16187 ac_sub_configure=$ac_aux_dir/configure
16188 else
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16190$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16191 ac_sub_configure=
16192 fi
16193
16194 # The recursion is here.
16195 if test -n "$ac_sub_configure"; then
16196 # Make the cache file name correct relative to the subdirectory.
16197 case $cache_file in
16198 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16199 *) # Relative name.
16200 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16201 esac
16202
16203 { $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
16204$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16205 # The eval makes quoting arguments work.
16206 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16207 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16208 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16209 fi
16210
16211 cd "$ac_popdir"
16212 done
16213fi
16214if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16216$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16217fi
16218
16219
16220exit 0
This page took 0.089551 seconds and 4 git commands to generate.