PR python/11900:
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
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.
c906108c
SS
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
bec39cab 14
81ecdfbb
RW
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 :
bec39cab
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
bec39cab 31fi
bec39cab 32
81ecdfbb
RW
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 }
bec39cab
AC
79fi
80
81
81ecdfbb
RW
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
bec39cab
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
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
bec39cab 184do
81ecdfbb
RW
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."
bec39cab 228 else
81ecdfbb
RW
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."
bec39cab 233 fi
81ecdfbb
RW
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
bec39cab 263
81ecdfbb
RW
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
bec39cab
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
bec39cab 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
bec39cab
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
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'`
bec39cab 410
b4e70030
JB
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
4e8d927d 417
bec39cab 418
81ecdfbb
RW
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 |
bec39cab 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
bec39cab 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bec39cab 436 t loop
81ecdfbb 437 s/-\n.*//
bec39cab 438 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
bec39cab
AC
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
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
bec39cab
AC
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
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';;
bec39cab
AC
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
bec39cab 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
bec39cab 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030 472 as_ln_s='ln -s'
81ecdfbb
RW
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'
b4e70030 483 fi
bec39cab
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
bec39cab
AC
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
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
bec39cab
AC
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
81ecdfbb 527exec 7<&0 </dev/null 6>&1
c906108c 528
bec39cab
AC
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
bec39cab
AC
534#
535# Initializations.
536#
c906108c 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
bec39cab 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
bec39cab
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b4e70030 545
bec39cab
AC
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
bec39cab
AC
553
554ac_unique_file="main.c"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
bec39cab
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
bec39cab
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
bec39cab
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
bec39cab
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bec39cab
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
bec39cab
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
bec39cab 582# include <inttypes.h>
bec39cab 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
bec39cab
AC
588# include <unistd.h>
589#endif"
590
783e057b 591gl_header_list=
f434ba03 592gl_func_list=
81ecdfbb
RW
593enable_option_checking=no
594ac_subst_vars='am__EXEEXT_FALSE
595am__EXEEXT_TRUE
596gltests_LTLIBOBJS
597gltests_LIBOBJS
598gl_LTLIBOBJS
599gl_LIBOBJS
600LTLIBOBJS
601LIBOBJS
602GDB_NM_FILE
603frags
604target_subdir
605CONFIG_UNINSTALL
606CONFIG_INSTALL
607CONFIG_CLEAN
608CONFIG_ALL
609CONFIG_SRCS
610CONFIG_DEPS
611CONFIG_OBS
612PROFILE_CFLAGS
613ENABLE_CFLAGS
614SIM_OBS
615SIM
616XMKMF
617GDBTK_SRC_DIR
618GDBTK_CFLAGS
619GDBTKLIBS
620X_LIBS
621X_LDFLAGS
622X_CFLAGS
623TK_XINCLUDES
624TK_DEPS
625TK_LIBRARY
626TK_INCLUDE
627TK_STUB_LIB_SPEC
628TK_STUB_LIB_FLAG
629TK_STUB_LIB_FILE
630TK_LIB_SPEC
631TK_LIB_FLAG
632TK_LIB_FILE
633TK_SRC_DIR
634TK_BIN_DIR
635TK_VERSION
636TCL_DEPS
637TCL_LIBRARY
638TCL_INCLUDE
639TCL_STUB_LIB_SPEC
640TCL_STUB_LIB_FLAG
641TCL_STUB_LIB_FILE
642TCL_LIB_SPEC
643TCL_LIB_FLAG
644TCL_LIB_FILE
645TCL_SRC_DIR
646TCL_BIN_DIR
647TCL_PATCH_LEVEL
648TCL_VERSION
649WIN32LDAPP
650GUI_CFLAGS_X
651LIBGUI
652WIN32LIBS
653SER_HARDWIRE
654WERROR_CFLAGS
655WARN_CFLAGS
656SYSTEM_GDBINIT
657TARGET_SYSTEM_ROOT_DEFINE
658TARGET_SYSTEM_ROOT
659CONFIG_LDFLAGS
f6528abd 660RDYNAMIC
81ecdfbb
RW
661ALLOCA
662PYTHON_CFLAGS
ec685c5e 663python_prog_path
81ecdfbb
RW
664LTLIBEXPAT
665LIBEXPAT
666HAVE_LIBEXPAT
667READLINE_CFLAGS
668READLINE_DEPS
669READLINE
670MIG
671WINDRES
672DLLTOOL
673AR
674YFLAGS
675YACC
676LN_S
677REPORT_BUGS_TEXI
678REPORT_BUGS_TO
679PKGVERSION
680TARGET_OBS
681subdirs
682GDB_DATADIR
683DEBUGDIR
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686AMDEPBACKSLASH
687AMDEP_FALSE
688AMDEP_TRUE
689am__quote
690am__include
691am__untar
692am__tar
693AMTAR
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706CYGPATH_W
707am__isrc
708INSTALL_DATA
709INSTALL_SCRIPT
710INSTALL_PROGRAM
711PACKAGE
712GNULIB_STDINT_H
713LIBGNU_LTLIBDEPS
714LIBGNU_LIBDEPS
f434ba03
PA
715gltests_WITNESS
716HAVE_WINT_T
81ecdfbb 717HAVE_WCHAR_H
f434ba03
PA
718NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
719NEXT_WCHAR_H
81ecdfbb 720REPLACE_WCWIDTH
f434ba03
PA
721REPLACE_WCSNRTOMBS
722REPLACE_WCSRTOMBS
723REPLACE_WCRTOMB
724REPLACE_MBSNRTOWCS
725REPLACE_MBSRTOWCS
726REPLACE_MBRLEN
727REPLACE_MBRTOWC
728REPLACE_MBSINIT
729REPLACE_WCTOB
730REPLACE_BTOWC
731REPLACE_MBSTATE_T
81ecdfbb 732HAVE_DECL_WCWIDTH
f434ba03
PA
733HAVE_DECL_WCTOB
734HAVE_WCSNRTOMBS
735HAVE_WCSRTOMBS
736HAVE_WCRTOMB
737HAVE_MBSNRTOWCS
738HAVE_MBSRTOWCS
739HAVE_MBRLEN
740HAVE_MBRTOWC
741HAVE_MBSINIT
742HAVE_BTOWC
81ecdfbb 743GNULIB_WCWIDTH
f434ba03
PA
744GNULIB_WCSNRTOMBS
745GNULIB_WCSRTOMBS
746GNULIB_WCRTOMB
747GNULIB_MBSNRTOWCS
748GNULIB_MBSRTOWCS
749GNULIB_MBRLEN
750GNULIB_MBRTOWC
751GNULIB_MBSINIT
752GNULIB_WCTOB
753GNULIB_BTOWC
754NEXT_AS_FIRST_DIRECTIVE_STRING_H
81ecdfbb
RW
755NEXT_STRING_H
756STDINT_H
757WINT_T_SUFFIX
758WCHAR_T_SUFFIX
81ecdfbb 759SIG_ATOMIC_T_SUFFIX
f434ba03 760SIZE_T_SUFFIX
81ecdfbb
RW
761PTRDIFF_T_SUFFIX
762HAVE_SIGNED_WINT_T
763HAVE_SIGNED_WCHAR_T
764HAVE_SIGNED_SIG_ATOMIC_T
765BITSIZEOF_WINT_T
766BITSIZEOF_WCHAR_T
81ecdfbb 767BITSIZEOF_SIG_ATOMIC_T
f434ba03 768BITSIZEOF_SIZE_T
81ecdfbb
RW
769BITSIZEOF_PTRDIFF_T
770HAVE_SYS_BITYPES_H
771HAVE_SYS_INTTYPES_H
772HAVE_STDINT_H
f434ba03 773NEXT_AS_FIRST_DIRECTIVE_STDINT_H
81ecdfbb 774NEXT_STDINT_H
81ecdfbb
RW
775HAVE_SYS_TYPES_H
776HAVE_INTTYPES_H
777HAVE_UNSIGNED_LONG_LONG_INT
778HAVE_LONG_LONG_INT
f434ba03
PA
779NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
780NEXT_STDDEF_H
781PRAGMA_SYSTEM_HEADER
782INCLUDE_NEXT_AS_FIRST_DIRECTIVE
783INCLUDE_NEXT
784STDDEF_H
785HAVE_WCHAR_T
786REPLACE_NULL
787APPLE_UNIVERSAL_BUILD
788UNDEFINE_STRTOK_R
789REPLACE_STRTOK_R
81ecdfbb 790REPLACE_STRSIGNAL
f434ba03
PA
791REPLACE_STRNLEN
792REPLACE_STRNDUP
793REPLACE_STRNCAT
81ecdfbb 794REPLACE_STRERROR
f434ba03
PA
795REPLACE_STRCASESTR
796REPLACE_STRSTR
797REPLACE_STRDUP
798REPLACE_STPNCPY
799REPLACE_MEMMEM
800REPLACE_MEMCHR
801HAVE_STRVERSCMP
81ecdfbb 802HAVE_DECL_STRSIGNAL
81ecdfbb
RW
803HAVE_DECL_STRTOK_R
804HAVE_STRCASESTR
805HAVE_STRSEP
806HAVE_STRPBRK
807HAVE_DECL_STRNLEN
808HAVE_DECL_STRNDUP
81ecdfbb
RW
809HAVE_DECL_STRDUP
810HAVE_STRCHRNUL
811HAVE_STPNCPY
812HAVE_STPCPY
f434ba03 813HAVE_RAWMEMCHR
81ecdfbb
RW
814HAVE_DECL_MEMRCHR
815HAVE_MEMPCPY
816HAVE_DECL_MEMMEM
f434ba03
PA
817HAVE_MEMCHR
818HAVE_MBSLEN
819GNULIB_STRVERSCMP
81ecdfbb
RW
820GNULIB_STRSIGNAL
821GNULIB_STRERROR
822GNULIB_MBSTOK_R
823GNULIB_MBSSEP
824GNULIB_MBSSPN
825GNULIB_MBSPBRK
826GNULIB_MBSCSPN
827GNULIB_MBSCASESTR
828GNULIB_MBSPCASECMP
829GNULIB_MBSNCASECMP
830GNULIB_MBSCASECMP
831GNULIB_MBSSTR
832GNULIB_MBSRCHR
833GNULIB_MBSCHR
834GNULIB_MBSNLEN
835GNULIB_MBSLEN
836GNULIB_STRTOK_R
837GNULIB_STRCASESTR
838GNULIB_STRSTR
839GNULIB_STRSEP
840GNULIB_STRPBRK
841GNULIB_STRNLEN
842GNULIB_STRNDUP
f434ba03 843GNULIB_STRNCAT
81ecdfbb
RW
844GNULIB_STRDUP
845GNULIB_STRCHRNUL
846GNULIB_STPNCPY
847GNULIB_STPCPY
f434ba03 848GNULIB_RAWMEMCHR
81ecdfbb
RW
849GNULIB_MEMRCHR
850GNULIB_MEMPCPY
851GNULIB_MEMMEM
f434ba03 852GNULIB_MEMCHR
81ecdfbb
RW
853GL_COND_LIBTOOL_FALSE
854GL_COND_LIBTOOL_TRUE
855CATOBJEXT
856GENCAT
857INSTOBJEXT
858DATADIRNAME
859CATALOGS
860POSUB
861GMSGFMT
862XGETTEXT
863INCINTL
864LIBINTL_DEP
865LIBINTL
866USE_NLS
867SET_MAKE
868GMAKE_FALSE
869GMAKE_TRUE
870MAKE
871CCDEPMODE
872DEPDIR
873am__leading_dot
874target_os
875target_vendor
876target_cpu
877target
f434ba03
PA
878RANLIB
879EGREP
880GREP
881CPP
81ecdfbb
RW
882host_os
883host_vendor
884host_cpu
885host
886build_os
887build_vendor
888build_cpu
889build
81ecdfbb
RW
890OBJEXT
891EXEEXT
892ac_ct_CC
893CPPFLAGS
894LDFLAGS
895CFLAGS
896CC
897MAINT
898MAINTAINER_MODE_FALSE
899MAINTAINER_MODE_TRUE
900target_alias
901host_alias
902build_alias
903LIBS
904ECHO_T
905ECHO_N
906ECHO_C
907DEFS
908mandir
909localedir
910libdir
911psdir
912pdfdir
913dvidir
914htmldir
915infodir
916docdir
917oldincludedir
918includedir
919localstatedir
920sharedstatedir
921sysconfdir
922datadir
923datarootdir
924libexecdir
925sbindir
926bindir
927program_transform_name
928prefix
929exec_prefix
930PACKAGE_URL
931PACKAGE_BUGREPORT
932PACKAGE_STRING
933PACKAGE_VERSION
934PACKAGE_TARNAME
935PACKAGE_NAME
936PATH_SEPARATOR
937SHELL'
a4ce5b0d 938ac_subst_files='host_makefile_frag'
81ecdfbb
RW
939ac_user_opts='
940enable_option_checking
941enable_maintainer_mode
da2f07f1
JK
942enable_plugins
943enable_largefile
81ecdfbb
RW
944enable_dependency_tracking
945with_separate_debug_dir
946with_gdb_datadir
947with_relocated_sources
948enable_targets
949enable_64_bit_bfd
950enable_gdbcli
951enable_gdbmi
952enable_tui
953enable_gdbtk
954with_libunwind
955with_curses
956enable_profiling
957with_pkgversion
958with_bugurl
b040ad30 959with_zlib
81ecdfbb
RW
960with_libiconv_prefix
961with_system_readline
962with_expat
963with_gnu_ld
964enable_rpath
965with_libexpat_prefix
966with_python
967with_included_regex
968with_sysroot
969with_system_gdbinit
970enable_werror
971enable_build_warnings
972enable_gdb_build_warnings
973with_tcl
974with_tk
975with_x
976enable_sim
977enable_multi_ice
81ecdfbb
RW
978'
979 ac_precious_vars='build_alias
980host_alias
981target_alias
982CC
983CFLAGS
984LDFLAGS
985LIBS
986CPPFLAGS
987CPP
988YACC
989YFLAGS
990XMKMF'
991ac_subdirs_all='doc testsuite
992gdbtk
993multi-ice
994gdbserver'
c906108c
SS
995
996# Initialize some variables set by options.
bec39cab
AC
997ac_init_help=
998ac_init_version=false
81ecdfbb
RW
999ac_unrecognized_opts=
1000ac_unrecognized_sep=
c906108c
SS
1001# The variables have the same names as the options, with
1002# dashes changed to underlines.
bec39cab 1003cache_file=/dev/null
c906108c 1004exec_prefix=NONE
c906108c 1005no_create=
c906108c
SS
1006no_recursion=
1007prefix=NONE
1008program_prefix=NONE
1009program_suffix=NONE
1010program_transform_name=s,x,x,
1011silent=
1012site=
1013srcdir=
c906108c
SS
1014verbose=
1015x_includes=NONE
1016x_libraries=NONE
bec39cab
AC
1017
1018# Installation directory options.
1019# These are left unexpanded so users can "make install exec_prefix=/foo"
1020# and all the variables that are supposed to be based on exec_prefix
1021# by default will actually change.
1022# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 1023# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
1024bindir='${exec_prefix}/bin'
1025sbindir='${exec_prefix}/sbin'
1026libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
1027datarootdir='${prefix}/share'
1028datadir='${datarootdir}'
c906108c
SS
1029sysconfdir='${prefix}/etc'
1030sharedstatedir='${prefix}/com'
1031localstatedir='${prefix}/var'
c906108c
SS
1032includedir='${prefix}/include'
1033oldincludedir='/usr/include'
81ecdfbb
RW
1034docdir='${datarootdir}/doc/${PACKAGE}'
1035infodir='${datarootdir}/info'
1036htmldir='${docdir}'
1037dvidir='${docdir}'
1038pdfdir='${docdir}'
1039psdir='${docdir}'
1040libdir='${exec_prefix}/lib'
1041localedir='${datarootdir}/locale'
1042mandir='${datarootdir}/man'
c906108c 1043
c906108c 1044ac_prev=
81ecdfbb 1045ac_dashdash=
c906108c
SS
1046for ac_option
1047do
c906108c
SS
1048 # If the previous option needs an argument, assign it.
1049 if test -n "$ac_prev"; then
81ecdfbb 1050 eval $ac_prev=\$ac_option
c906108c
SS
1051 ac_prev=
1052 continue
1053 fi
1054
81ecdfbb
RW
1055 case $ac_option in
1056 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1057 *) ac_optarg=yes ;;
1058 esac
c906108c
SS
1059
1060 # Accept the important Cygnus configure options, so we can diagnose typos.
1061
81ecdfbb
RW
1062 case $ac_dashdash$ac_option in
1063 --)
1064 ac_dashdash=yes ;;
c906108c
SS
1065
1066 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1067 ac_prev=bindir ;;
1068 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 1069 bindir=$ac_optarg ;;
c906108c
SS
1070
1071 -build | --build | --buil | --bui | --bu)
bec39cab 1072 ac_prev=build_alias ;;
c906108c 1073 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 1074 build_alias=$ac_optarg ;;
c906108c
SS
1075
1076 -cache-file | --cache-file | --cache-fil | --cache-fi \
1077 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1078 ac_prev=cache_file ;;
1079 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1080 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
1081 cache_file=$ac_optarg ;;
1082
1083 --config-cache | -C)
1084 cache_file=config.cache ;;
c906108c 1085
81ecdfbb 1086 -datadir | --datadir | --datadi | --datad)
c906108c 1087 ac_prev=datadir ;;
81ecdfbb 1088 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bec39cab 1089 datadir=$ac_optarg ;;
c906108c 1090
81ecdfbb
RW
1091 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1092 | --dataroo | --dataro | --datar)
1093 ac_prev=datarootdir ;;
1094 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1095 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1096 datarootdir=$ac_optarg ;;
1097
c906108c 1098 -disable-* | --disable-*)
81ecdfbb 1099 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 1100 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid feature name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107"enable_$ac_useropt"
1108"*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval enable_$ac_useropt=no ;;
1113
1114 -docdir | --docdir | --docdi | --doc | --do)
1115 ac_prev=docdir ;;
1116 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1117 docdir=$ac_optarg ;;
1118
1119 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1120 ac_prev=dvidir ;;
1121 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1122 dvidir=$ac_optarg ;;
c906108c
SS
1123
1124 -enable-* | --enable-*)
81ecdfbb 1125 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 1126 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid feature name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1132 *"
1133"enable_$ac_useropt"
1134"*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
b4e70030 1137 esac
81ecdfbb 1138 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1139
1140 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142 | --exec | --exe | --ex)
1143 ac_prev=exec_prefix ;;
1144 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146 | --exec=* | --exe=* | --ex=*)
bec39cab 1147 exec_prefix=$ac_optarg ;;
c906108c
SS
1148
1149 -gas | --gas | --ga | --g)
1150 # Obsolete; use --with-gas.
1151 with_gas=yes ;;
1152
bec39cab
AC
1153 -help | --help | --hel | --he | -h)
1154 ac_init_help=long ;;
1155 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156 ac_init_help=recursive ;;
1157 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158 ac_init_help=short ;;
c906108c
SS
1159
1160 -host | --host | --hos | --ho)
bec39cab 1161 ac_prev=host_alias ;;
c906108c 1162 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 1163 host_alias=$ac_optarg ;;
c906108c 1164
81ecdfbb
RW
1165 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166 ac_prev=htmldir ;;
1167 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168 | --ht=*)
1169 htmldir=$ac_optarg ;;
1170
c906108c
SS
1171 -includedir | --includedir | --includedi | --included | --include \
1172 | --includ | --inclu | --incl | --inc)
1173 ac_prev=includedir ;;
1174 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 1176 includedir=$ac_optarg ;;
c906108c
SS
1177
1178 -infodir | --infodir | --infodi | --infod | --info | --inf)
1179 ac_prev=infodir ;;
1180 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 1181 infodir=$ac_optarg ;;
c906108c
SS
1182
1183 -libdir | --libdir | --libdi | --libd)
1184 ac_prev=libdir ;;
1185 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 1186 libdir=$ac_optarg ;;
c906108c
SS
1187
1188 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189 | --libexe | --libex | --libe)
1190 ac_prev=libexecdir ;;
1191 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192 | --libexe=* | --libex=* | --libe=*)
bec39cab 1193 libexecdir=$ac_optarg ;;
c906108c 1194
81ecdfbb
RW
1195 -localedir | --localedir | --localedi | --localed | --locale)
1196 ac_prev=localedir ;;
1197 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198 localedir=$ac_optarg ;;
1199
c906108c 1200 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1201 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1202 ac_prev=localstatedir ;;
1203 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1204 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bec39cab 1205 localstatedir=$ac_optarg ;;
c906108c
SS
1206
1207 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208 ac_prev=mandir ;;
1209 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 1210 mandir=$ac_optarg ;;
c906108c
SS
1211
1212 -nfp | --nfp | --nf)
1213 # Obsolete; use --without-fp.
1214 with_fp=no ;;
1215
1216 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 1217 | --no-cr | --no-c | -n)
c906108c
SS
1218 no_create=yes ;;
1219
1220 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 no_recursion=yes ;;
1223
1224 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226 | --oldin | --oldi | --old | --ol | --o)
1227 ac_prev=oldincludedir ;;
1228 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 1231 oldincludedir=$ac_optarg ;;
c906108c
SS
1232
1233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234 ac_prev=prefix ;;
1235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 1236 prefix=$ac_optarg ;;
c906108c
SS
1237
1238 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239 | --program-pre | --program-pr | --program-p)
1240 ac_prev=program_prefix ;;
1241 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 1243 program_prefix=$ac_optarg ;;
c906108c
SS
1244
1245 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246 | --program-suf | --program-su | --program-s)
1247 ac_prev=program_suffix ;;
1248 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 1250 program_suffix=$ac_optarg ;;
c906108c
SS
1251
1252 -program-transform-name | --program-transform-name \
1253 | --program-transform-nam | --program-transform-na \
1254 | --program-transform-n | --program-transform- \
1255 | --program-transform | --program-transfor \
1256 | --program-transfo | --program-transf \
1257 | --program-trans | --program-tran \
1258 | --progr-tra | --program-tr | --program-t)
1259 ac_prev=program_transform_name ;;
1260 -program-transform-name=* | --program-transform-name=* \
1261 | --program-transform-nam=* | --program-transform-na=* \
1262 | --program-transform-n=* | --program-transform-=* \
1263 | --program-transform=* | --program-transfor=* \
1264 | --program-transfo=* | --program-transf=* \
1265 | --program-trans=* | --program-tran=* \
1266 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 1267 program_transform_name=$ac_optarg ;;
c906108c 1268
81ecdfbb
RW
1269 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270 ac_prev=pdfdir ;;
1271 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272 pdfdir=$ac_optarg ;;
1273
1274 -psdir | --psdir | --psdi | --psd | --ps)
1275 ac_prev=psdir ;;
1276 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 psdir=$ac_optarg ;;
1278
c906108c
SS
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 silent=yes ;;
1282
1283 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1284 ac_prev=sbindir ;;
1285 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286 | --sbi=* | --sb=*)
bec39cab 1287 sbindir=$ac_optarg ;;
c906108c
SS
1288
1289 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1290 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1291 | --sharedst | --shareds | --shared | --share | --shar \
1292 | --sha | --sh)
1293 ac_prev=sharedstatedir ;;
1294 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1295 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1296 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1297 | --sha=* | --sh=*)
bec39cab 1298 sharedstatedir=$ac_optarg ;;
c906108c
SS
1299
1300 -site | --site | --sit)
1301 ac_prev=site ;;
1302 -site=* | --site=* | --sit=*)
bec39cab 1303 site=$ac_optarg ;;
3ace7edb 1304
c906108c
SS
1305 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1306 ac_prev=srcdir ;;
1307 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 1308 srcdir=$ac_optarg ;;
c906108c
SS
1309
1310 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1311 | --syscon | --sysco | --sysc | --sys | --sy)
1312 ac_prev=sysconfdir ;;
1313 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1314 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 1315 sysconfdir=$ac_optarg ;;
c906108c
SS
1316
1317 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 1318 ac_prev=target_alias ;;
c906108c 1319 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 1320 target_alias=$ac_optarg ;;
c906108c
SS
1321
1322 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323 verbose=yes ;;
1324
bec39cab
AC
1325 -version | --version | --versio | --versi | --vers | -V)
1326 ac_init_version=: ;;
c906108c
SS
1327
1328 -with-* | --with-*)
81ecdfbb 1329 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1330 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 as_fn_error "invalid package name: $ac_useropt"
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1336 *"
1337"with_$ac_useropt"
1338"*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
b4e70030 1341 esac
81ecdfbb 1342 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1343
1344 -without-* | --without-*)
81ecdfbb 1345 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1346 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 as_fn_error "invalid package name: $ac_useropt"
1349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1352 *"
1353"with_$ac_useropt"
1354"*) ;;
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1357 esac
1358 eval with_$ac_useropt=no ;;
c906108c
SS
1359
1360 --x)
1361 # Obsolete; use --with-x.
1362 with_x=yes ;;
1363
1364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365 | --x-incl | --x-inc | --x-in | --x-i)
1366 ac_prev=x_includes ;;
1367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 1369 x_includes=$ac_optarg ;;
c906108c
SS
1370
1371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373 ac_prev=x_libraries ;;
1374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 1376 x_libraries=$ac_optarg ;;
c906108c 1377
81ecdfbb
RW
1378 -*) as_fn_error "unrecognized option: \`$ac_option'
1379Try \`$0 --help' for more information."
c906108c
SS
1380 ;;
1381
bec39cab
AC
1382 *=*)
1383 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1384 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1385 case $ac_envvar in #(
1386 '' | [0-9]* | *[!_$as_cr_alnum]* )
1387 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1388 esac
1389 eval $ac_envvar=\$ac_optarg
bec39cab
AC
1390 export $ac_envvar ;;
1391
c906108c 1392 *)
bec39cab 1393 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1394 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bec39cab 1395 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1396 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bec39cab 1397 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
1398 ;;
1399
1400 esac
1401done
1402
1403if test -n "$ac_prev"; then
bec39cab 1404 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1405 as_fn_error "missing argument to $ac_option"
c906108c 1406fi
c906108c 1407
81ecdfbb
RW
1408if test -n "$ac_unrecognized_opts"; then
1409 case $enable_option_checking in
1410 no) ;;
1411 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1412 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b4e70030 1413 esac
81ecdfbb 1414fi
b4e70030 1415
81ecdfbb
RW
1416# Check all directory arguments for consistency.
1417for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1418 datadir sysconfdir sharedstatedir localstatedir includedir \
1419 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1420 libdir localedir mandir
b4e70030 1421do
81ecdfbb
RW
1422 eval ac_val=\$$ac_var
1423 # Remove trailing slashes.
1424 case $ac_val in
1425 */ )
1426 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1427 eval $ac_var=\$ac_val;;
1428 esac
1429 # Be sure to have absolute directory names.
b4e70030 1430 case $ac_val in
81ecdfbb
RW
1431 [\\/$]* | ?:[\\/]* ) continue;;
1432 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1433 esac
81ecdfbb 1434 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1435done
1436
bec39cab
AC
1437# There might be people who depend on the old broken behavior: `$host'
1438# used to hold the argument of --host etc.
1439# FIXME: To remove some day.
1440build=$build_alias
1441host=$host_alias
1442target=$target_alias
1443
1444# FIXME: To remove some day.
1445if test "x$host_alias" != x; then
1446 if test "x$build_alias" = x; then
1447 cross_compiling=maybe
81ecdfbb 1448 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bec39cab
AC
1449 If a cross compiler is detected then cross compile mode will be used." >&2
1450 elif test "x$build_alias" != "x$host_alias"; then
1451 cross_compiling=yes
1452 fi
1453fi
c906108c 1454
bec39cab
AC
1455ac_tool_prefix=
1456test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457
1458test "$silent" = yes && exec 6>/dev/null
c906108c 1459
c906108c 1460
81ecdfbb
RW
1461ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462ac_ls_di=`ls -di .` &&
1463ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464 as_fn_error "working directory cannot be determined"
1465test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 as_fn_error "pwd does not report name of working directory"
1467
1468
c906108c
SS
1469# Find the source files, if location was not specified.
1470if test -z "$srcdir"; then
1471 ac_srcdir_defaulted=yes
81ecdfbb
RW
1472 # Try the directory containing this script, then the parent directory.
1473 ac_confdir=`$as_dirname -- "$as_myself" ||
1474$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475 X"$as_myself" : 'X\(//\)[^/]' \| \
1476 X"$as_myself" : 'X\(//\)$' \| \
1477 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478$as_echo X"$as_myself" |
1479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1480 s//\1/
1481 q
1482 }
1483 /^X\(\/\/\)[^/].*/{
1484 s//\1/
1485 q
1486 }
1487 /^X\(\/\/\)$/{
1488 s//\1/
1489 q
1490 }
1491 /^X\(\/\).*/{
1492 s//\1/
1493 q
1494 }
1495 s/.*/./; q'`
c906108c 1496 srcdir=$ac_confdir
81ecdfbb 1497 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1498 srcdir=..
1499 fi
1500else
1501 ac_srcdir_defaulted=no
1502fi
81ecdfbb
RW
1503if test ! -r "$srcdir/$ac_unique_file"; then
1504 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1505 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1506fi
1507ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508ac_abs_confdir=`(
1509 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1510 pwd)`
1511# When building in place, set srcdir=.
1512if test "$ac_abs_confdir" = "$ac_pwd"; then
1513 srcdir=.
1514fi
1515# Remove unnecessary trailing slashes from srcdir.
1516# Double slashes in file names in object file debugging info
1517# mess up M-x gdb in Emacs.
1518case $srcdir in
1519*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520esac
1521for ac_var in $ac_precious_vars; do
1522 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1523 eval ac_env_${ac_var}_value=\$${ac_var}
1524 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1525 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1526done
c906108c 1527
bec39cab
AC
1528#
1529# Report the --help message.
1530#
1531if test "$ac_init_help" = "long"; then
1532 # Omit some internal or obsolete options to make the list less imposing.
1533 # This message is too long to be a string in the A/UX 3.1 sh.
1534 cat <<_ACEOF
1535\`configure' configures this package to adapt to many kinds of systems.
1536
1537Usage: $0 [OPTION]... [VAR=VALUE]...
1538
1539To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540VAR=VALUE. See below for descriptions of some of the useful variables.
1541
1542Defaults for the options are specified in brackets.
1543
1544Configuration:
1545 -h, --help display this help and exit
1546 --help=short display options specific to this package
1547 --help=recursive display the short help of all the included packages
1548 -V, --version display version information and exit
1549 -q, --quiet, --silent do not print \`checking...' messages
1550 --cache-file=FILE cache test results in FILE [disabled]
1551 -C, --config-cache alias for \`--cache-file=config.cache'
1552 -n, --no-create do not create output files
1553 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1554
bec39cab
AC
1555Installation directories:
1556 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1557 [$ac_default_prefix]
bec39cab 1558 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1559 [PREFIX]
bec39cab
AC
1560
1561By default, \`make install' will install all the files in
1562\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1563an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564for instance \`--prefix=\$HOME'.
1565
1566For better control, use the options below.
1567
1568Fine tuning of the installation directories:
81ecdfbb
RW
1569 --bindir=DIR user executables [EPREFIX/bin]
1570 --sbindir=DIR system admin executables [EPREFIX/sbin]
1571 --libexecdir=DIR program executables [EPREFIX/libexec]
1572 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1573 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1574 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1575 --libdir=DIR object code libraries [EPREFIX/lib]
1576 --includedir=DIR C header files [PREFIX/include]
1577 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1578 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1579 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1580 --infodir=DIR info documentation [DATAROOTDIR/info]
1581 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1582 --mandir=DIR man documentation [DATAROOTDIR/man]
1583 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1584 --htmldir=DIR html documentation [DOCDIR]
1585 --dvidir=DIR dvi documentation [DOCDIR]
1586 --pdfdir=DIR pdf documentation [DOCDIR]
1587 --psdir=DIR ps documentation [DOCDIR]
bec39cab
AC
1588_ACEOF
1589
1590 cat <<\_ACEOF
1591
1592Program names:
1593 --program-prefix=PREFIX prepend PREFIX to installed program names
1594 --program-suffix=SUFFIX append SUFFIX to installed program names
1595 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1596
1597X features:
1598 --x-includes=DIR X include files are in DIR
1599 --x-libraries=DIR X library files are in DIR
1600
1601System types:
1602 --build=BUILD configure for building on BUILD [guessed]
1603 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1604 --target=TARGET configure for building compilers for TARGET [HOST]
1605_ACEOF
1606fi
1607
1608if test -n "$ac_init_help"; then
1609
1610 cat <<\_ACEOF
1611
1612Optional Features:
81ecdfbb 1613 --disable-option-checking ignore unrecognized --enable/--with options
bec39cab
AC
1614 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1615 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
1616 --enable-maintainer-mode enable make rules and dependencies not useful
1617 (and sometimes confusing) to the casual installer
da2f07f1
JK
1618 --enable-plugins Enable support for plugins (defaults no)
1619 --disable-largefile omit support for large files
e28b3332
DJ
1620 --disable-dependency-tracking speeds up one-time build
1621 --enable-dependency-tracking do not reject slow dependency extractors
a1220294
TT
1622 --enable-targets=TARGETS
1623 alternative target configurations
c0993dbe 1624 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
bec39cab
AC
1625 --disable-gdbcli disable command-line interface (CLI)
1626 --disable-gdbmi disable machine-interface (MI)
1627 --enable-tui enable full-screen terminal user interface (TUI)
1628 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1629 --enable-profiling enable profiling of GDB
3841debe 1630 --disable-rpath do not hardcode runtime library paths
a1220294 1631 --enable-werror treat compile warnings as errors
32c1c914 1632 --enable-build-warnings enable build-time compiler warnings if gcc is used
a1220294 1633 --enable-gdb-build-warnings
32c1c914 1634 enable GDB specific build-time compiler warnings if
a1220294 1635 gcc is used
32c1c914 1636 --enable-sim link gdb with simulator
bec39cab
AC
1637 --enable-multi-ice build the multi-ice-gdb-server
1638
1639Optional Packages:
1640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a1220294 1642 --with-separate-debug-dir=PATH
32c1c914 1643 look for global separate debug info in this path
62e4f60c 1644 [LIBDIR/debug]
b14b1491
TT
1645 --with-gdb-datadir=PATH look for global separate data files in this path
1646 [DATADIR/gdb]
29b0e8a2 1647 --with-relocated-sources=PATH
32c1c914
TT
1648 automatically relocate this path for source files
1649 --with-libunwind use libunwind frame unwinding support
cb01cfba
JB
1650 --with-curses use the curses library instead of the termcap
1651 library
c16158bc
JM
1652 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1653 --with-bugurl=URL Direct users to URL to report a bug
b040ad30 1654 --with-zlib include zlib support (auto/yes/no) default=auto
a1220294
TT
1655 --with-libiconv-prefix=DIR
1656 search for libiconv in DIR/include and DIR/lib
6a30b0a5 1657 --with-system-readline use installed readline library
5c39566f 1658 --with-expat include expat support (auto/yes/no)
3841debe
DJ
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1661 --without-libexpat-prefix don't search for libexpat in includedir and libdir
0c4a4063
DE
1662 --with-python[=PYTHON] include python support
1663 (auto/yes/no/<python-program>)
a1220294
TT
1664 --without-included-regex
1665 don't use included regex; this is the default on
1666 systems with version 2 of the GNU C library (use
1667 with caution on other system)
81ecdfbb 1668 --with-sysroot[=DIR] search for usr/lib et al within DIR
b14b1491 1669 --with-system-gdbinit=PATH
32c1c914 1670 automatically load a system-wide gdbinit file
5062cc19
KS
1671 --with-tcl directory containing tcl configuration (tclConfig.sh)
1672 --with-tk directory containing tk configuration (tkConfig.sh)
bec39cab 1673 --with-x use the X Window System
bec39cab
AC
1674
1675Some influential environment variables:
1676 CC C compiler command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1679 nonstandard directory <lib dir>
81ecdfbb
RW
1680 LIBS libraries to pass to the linker, e.g. -l<library>
1681 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682 you have headers in a nonstandard directory <include dir>
bec39cab 1683 CPP C preprocessor
81ecdfbb
RW
1684 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1685 the first program found out of: `bison -y', `byacc', `yacc'.
1686 YFLAGS The list of arguments that will be passed by default to $YACC.
1687 This script will default YFLAGS to the empty string to avoid a
1688 default value of `-d' given by some make applications.
1689 XMKMF Path to xmkmf, Makefile generator for X Window System
bec39cab
AC
1690
1691Use these variables to override the choices made by `configure' or to help
1692it to find libraries and programs with nonstandard names/locations.
1693
81ecdfbb 1694Report bugs to the package provider.
bec39cab 1695_ACEOF
81ecdfbb 1696ac_status=$?
bec39cab
AC
1697fi
1698
1699if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
bec39cab 1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704 continue
bec39cab
AC
1705 ac_builddir=.
1706
81ecdfbb
RW
1707case "$ac_dir" in
1708.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709*)
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 esac ;;
1717esac
1718ac_abs_top_builddir=$ac_pwd
1719ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720# for backward compatibility:
1721ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
1722
1723case $srcdir in
81ecdfbb 1724 .) # We are building in place.
bec39cab 1725 ac_srcdir=.
81ecdfbb
RW
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 1729 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1732 *) # Relative name.
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 1736esac
81ecdfbb 1737ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 1738
81ecdfbb
RW
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1742 echo &&
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure" --help=recursive
3ace7edb 1747 else
81ecdfbb
RW
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749 fi || ac_status=$?
1750 cd "$ac_pwd" || { ac_status=$?; break; }
bec39cab
AC
1751 done
1752fi
1753
81ecdfbb 1754test -n "$ac_init_help" && exit $ac_status
bec39cab
AC
1755if $ac_init_version; then
1756 cat <<\_ACEOF
81ecdfbb
RW
1757configure
1758generated by GNU Autoconf 2.64
bec39cab 1759
81ecdfbb 1760Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
1761This configure script is free software; the Free Software Foundation
1762gives unlimited permission to copy, distribute and modify it.
1763_ACEOF
81ecdfbb 1764 exit
bec39cab 1765fi
bec39cab 1766
81ecdfbb
RW
1767## ------------------------ ##
1768## Autoconf initialization. ##
1769## ------------------------ ##
bec39cab 1770
81ecdfbb
RW
1771# ac_fn_c_try_compile LINENO
1772# --------------------------
1773# Try to compile conftest.$ac_ext, and return whether this succeeded.
1774ac_fn_c_try_compile ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1797 ac_retval=0
1798else
1799 $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1801
81ecdfbb
RW
1802 ac_retval=1
1803fi
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1806
1807} # ac_fn_c_try_compile
1808
1809# ac_fn_c_try_cpp LINENO
1810# ----------------------
1811# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_cpp ()
bec39cab 1813{
81ecdfbb
RW
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
1816case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } >/dev/null && {
1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 }; then :
1834 ac_retval=0
1835else
1836 $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1838
81ecdfbb
RW
1839 ac_retval=1
1840fi
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 return $ac_retval
bec39cab 1843
81ecdfbb 1844} # ac_fn_c_try_cpp
bec39cab 1845
81ecdfbb
RW
1846# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847# -------------------------------------------------------
1848# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849# the include files in INCLUDES and setting the cache variable VAR
1850# accordingly.
1851ac_fn_c_check_header_mongrel ()
1852{
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 $as_echo_n "(cached) " >&6
1859fi
1860eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863else
1864 # Is the header compilable?
1865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866$as_echo_n "checking $2 usability... " >&6; }
1867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h. */
1869$4
1870#include <$2>
1871_ACEOF
1872if ac_fn_c_try_compile "$LINENO"; then :
1873 ac_header_compiler=yes
1874else
1875 ac_header_compiler=no
1876fi
1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879$as_echo "$ac_header_compiler" >&6; }
bec39cab 1880
81ecdfbb
RW
1881# Is the header present?
1882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883$as_echo_n "checking $2 presence... " >&6; }
1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h. */
1886#include <$2>
1887_ACEOF
1888if ac_fn_c_try_cpp "$LINENO"; then :
1889 ac_header_preproc=yes
1890else
1891 ac_header_preproc=no
1892fi
1893rm -f conftest.err conftest.$ac_ext
1894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895$as_echo "$ac_header_preproc" >&6; }
bec39cab 1896
81ecdfbb
RW
1897# So? What about this header?
1898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1899 yes:no: )
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 ;;
1905 no:yes:* )
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1909$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1913$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 ;;
1917esac
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 $as_echo_n "(cached) " >&6
1922else
1923 eval "$3=\$ac_header_compiler"
1924fi
1925eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928fi
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 1930
81ecdfbb 1931} # ac_fn_c_check_header_mongrel
bec39cab 1932
81ecdfbb
RW
1933# ac_fn_c_try_run LINENO
1934# ----------------------
1935# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936# that executables *can* be run.
1937ac_fn_c_try_run ()
1938{
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_link"
1941case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944esac
1945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946$as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>&5
1948 ac_status=$?
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951 { { case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_try") 2>&5
1958 ac_status=$?
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; }; }; then :
1961 ac_retval=0
1962else
1963 $as_echo "$as_me: program exited with status $ac_status" >&5
1964 $as_echo "$as_me: failed program was:" >&5
1965sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 1966
81ecdfbb
RW
1967 ac_retval=$ac_status
1968fi
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 return $ac_retval
bec39cab 1972
81ecdfbb 1973} # ac_fn_c_try_run
bec39cab 1974
81ecdfbb
RW
1975# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976# -------------------------------------------------------
1977# Tests whether HEADER exists and can be compiled using the include files in
1978# INCLUDES, setting the cache variable VAR accordingly.
1979ac_fn_c_check_header_compile ()
1980{
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983$as_echo_n "checking for $2... " >&6; }
1984if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 $as_echo_n "(cached) " >&6
1986else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990#include <$2>
bec39cab 1991_ACEOF
81ecdfbb
RW
1992if ac_fn_c_try_compile "$LINENO"; then :
1993 eval "$3=yes"
1994else
1995 eval "$3=no"
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001$as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 2003
81ecdfbb 2004} # ac_fn_c_check_header_compile
bec39cab 2005
81ecdfbb
RW
2006# ac_fn_c_try_link LINENO
2007# -----------------------
2008# Try to link conftest.$ac_ext, and return whether this succeeded.
2009ac_fn_c_try_link ()
b4e70030 2010{
81ecdfbb
RW
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 rm -f conftest.$ac_objext conftest$ac_exeext
2013 if { { ac_try="$ac_link"
2014case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2017esac
2018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019$as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>conftest.err
2021 ac_status=$?
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2026 fi
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest$ac_exeext && {
2032 test "$cross_compiling" = yes ||
2033 $as_test_x conftest$ac_exeext
2034 }; then :
2035 ac_retval=0
2036else
2037 $as_echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 2039
81ecdfbb
RW
2040 ac_retval=1
2041fi
2042 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044 # interfere with the next link command; also delete a directory that is
2045 # left behind by Apple's compiler. We do this before executing the actions.
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 return $ac_retval
bec39cab 2049
81ecdfbb 2050} # ac_fn_c_try_link
bec39cab 2051
81ecdfbb
RW
2052# ac_fn_c_check_func LINENO FUNC VAR
2053# ----------------------------------
2054# Tests whether FUNC exists, setting the cache variable VAR accordingly
2055ac_fn_c_check_func ()
2056{
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
2060if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2061 $as_echo_n "(cached) " >&6
2062else
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h. */
2065/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2067#define $2 innocuous_$2
bec39cab 2068
81ecdfbb
RW
2069/* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char $2 (); below.
2071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2072 <limits.h> exists even on freestanding compilers. */
bec39cab 2073
81ecdfbb
RW
2074#ifdef __STDC__
2075# include <limits.h>
2076#else
2077# include <assert.h>
2078#endif
bec39cab 2079
81ecdfbb 2080#undef $2
bec39cab 2081
81ecdfbb
RW
2082/* Override any GCC internal prototype to avoid an error.
2083 Use char because int might match the return type of a GCC
2084 builtin and then its argument prototype would still apply. */
2085#ifdef __cplusplus
2086extern "C"
2087#endif
2088char $2 ();
2089/* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092#if defined __stub_$2 || defined __stub___$2
2093choke me
2094#endif
bec39cab 2095
81ecdfbb
RW
2096int
2097main ()
2098{
2099return $2 ();
2100 ;
2101 return 0;
2102}
bec39cab 2103_ACEOF
81ecdfbb
RW
2104if ac_fn_c_try_link "$LINENO"; then :
2105 eval "$3=yes"
2106else
2107 eval "$3=no"
2108fi
2109rm -f core conftest.err conftest.$ac_objext \
2110 conftest$ac_exeext conftest.$ac_ext
2111fi
2112eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114$as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 2116
81ecdfbb 2117} # ac_fn_c_check_func
bec39cab 2118
81ecdfbb
RW
2119# ac_fn_c_check_decl LINENO SYMBOL VAR
2120# ------------------------------------
2121# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2122ac_fn_c_check_decl ()
2123{
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
e7a30f46
DE
2125 as_decl_name=`echo $2|sed 's/ *(.*//'`
2126 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2128$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2129if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2130 $as_echo_n "(cached) " >&6
2131else
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134$4
2135int
2136main ()
2137{
e7a30f46
DE
2138#ifndef $as_decl_name
2139#ifdef __cplusplus
2140 (void) $as_decl_use;
2141#else
2142 (void) $as_decl_name;
2143#endif
81ecdfbb 2144#endif
bec39cab 2145
81ecdfbb
RW
2146 ;
2147 return 0;
2148}
bec39cab 2149_ACEOF
81ecdfbb
RW
2150if ac_fn_c_try_compile "$LINENO"; then :
2151 eval "$3=yes"
2152else
2153 eval "$3=no"
2154fi
2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156fi
2157eval ac_res=\$$3
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159$as_echo "$ac_res" >&6; }
2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 2161
81ecdfbb 2162} # ac_fn_c_check_decl
bec39cab 2163
81ecdfbb
RW
2164# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2165# --------------------------------------------
2166# Tries to find the compile-time value of EXPR in a program that includes
2167# INCLUDES, setting VAR accordingly. Returns whether the value could be
2168# computed
2169ac_fn_c_compute_int ()
2170{
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if test "$cross_compiling" = yes; then
2173 # Depending upon the size, compute the lo and hi bounds.
2174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h. */
2176$4
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(($2) >= 0)];
2181test_array [0] = 0
bec39cab 2182
81ecdfbb
RW
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188 ac_lo=0 ac_mid=0
2189 while :; do
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h. */
2192$4
2193int
2194main ()
2195{
2196static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197test_array [0] = 0
bec39cab 2198
81ecdfbb
RW
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_hi=$ac_mid; break
2205else
2206 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2207 if test $ac_lo -le $ac_mid; then
2208 ac_lo= ac_hi=
2209 break
2210 fi
2211 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
c906108c 2212fi
81ecdfbb
RW
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
c906108c 2215else
81ecdfbb
RW
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h. */
2218$4
2219int
2220main ()
2221{
2222static int test_array [1 - 2 * !(($2) < 0)];
2223test_array [0] = 0
bec39cab 2224
81ecdfbb
RW
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"; then :
2230 ac_hi=-1 ac_mid=-1
2231 while :; do
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h. */
2234$4
2235int
2236main ()
2237{
2238static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2239test_array [0] = 0
bec39cab 2240
81ecdfbb
RW
2241 ;
2242 return 0;
2243}
2244_ACEOF
2245if ac_fn_c_try_compile "$LINENO"; then :
2246 ac_lo=$ac_mid; break
2247else
2248 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2249 if test $ac_mid -le $ac_hi; then
2250 ac_lo= ac_hi=
2251 break
2252 fi
2253 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2254fi
2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 done
2257else
2258 ac_lo= ac_hi=
2259fi
2260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261fi
2262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263# Binary search between lo and hi bounds.
2264while test "x$ac_lo" != "x$ac_hi"; do
2265 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267/* end confdefs.h. */
2268$4
2269int
2270main ()
2271{
2272static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2273test_array [0] = 0
bec39cab 2274
81ecdfbb
RW
2275 ;
2276 return 0;
2277}
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280 ac_hi=$ac_mid
2281else
2282 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2283fi
2284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285done
2286case $ac_lo in #((
2287?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2288'') ac_retval=1 ;;
2289esac
2290 else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292/* end confdefs.h. */
2293$4
2294static long int longval () { return $2; }
2295static unsigned long int ulongval () { return $2; }
2296#include <stdio.h>
2297#include <stdlib.h>
2298int
2299main ()
2300{
bec39cab 2301
81ecdfbb
RW
2302 FILE *f = fopen ("conftest.val", "w");
2303 if (! f)
2304 return 1;
2305 if (($2) < 0)
2306 {
2307 long int i = longval ();
2308 if (i != ($2))
2309 return 1;
2310 fprintf (f, "%ld", i);
2311 }
2312 else
2313 {
2314 unsigned long int i = ulongval ();
2315 if (i != ($2))
2316 return 1;
2317 fprintf (f, "%lu", i);
2318 }
2319 /* Do not output a trailing newline, as this causes \r\n confusion
2320 on some platforms. */
2321 return ferror (f) || fclose (f) != 0;
bec39cab 2322
81ecdfbb
RW
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327if ac_fn_c_try_run "$LINENO"; then :
2328 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2329else
2330 ac_retval=1
2331fi
2332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2333 conftest.$ac_objext conftest.beam conftest.$ac_ext
2334rm -f conftest.val
bec39cab 2335
81ecdfbb
RW
2336 fi
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338 return $ac_retval
bec39cab 2339
81ecdfbb 2340} # ac_fn_c_compute_int
bec39cab 2341
81ecdfbb
RW
2342# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2343# ----------------------------------------------------
2344# Tries to find if the field MEMBER exists in type AGGR, after including
2345# INCLUDES, setting cache variable VAR accordingly.
2346ac_fn_c_check_member ()
2347{
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2350$as_echo_n "checking for $2.$3... " >&6; }
2351if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2352 $as_echo_n "(cached) " >&6
2353else
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355/* end confdefs.h. */
2356$5
2357int
2358main ()
2359{
2360static $2 ac_aggr;
2361if (ac_aggr.$3)
2362return 0;
2363 ;
2364 return 0;
2365}
2366_ACEOF
2367if ac_fn_c_try_compile "$LINENO"; then :
2368 eval "$4=yes"
2369else
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371/* end confdefs.h. */
2372$5
2373int
2374main ()
2375{
2376static $2 ac_aggr;
2377if (sizeof ac_aggr.$3)
2378return 0;
2379 ;
2380 return 0;
2381}
2382_ACEOF
2383if ac_fn_c_try_compile "$LINENO"; then :
2384 eval "$4=yes"
2385else
2386 eval "$4=no"
2387fi
2388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389fi
2390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391fi
2392eval ac_res=\$$4
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394$as_echo "$ac_res" >&6; }
2395 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
bec39cab 2396
81ecdfbb 2397} # ac_fn_c_check_member
bec39cab 2398
81ecdfbb
RW
2399# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2400# -------------------------------------------
2401# Tests whether TYPE exists after having included INCLUDES, setting cache
2402# variable VAR accordingly.
2403ac_fn_c_check_type ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2407$as_echo_n "checking for $2... " >&6; }
2408if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2409 $as_echo_n "(cached) " >&6
2410else
2411 eval "$3=no"
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413/* end confdefs.h. */
2414$4
2415int
2416main ()
2417{
2418if (sizeof ($2))
2419 return 0;
2420 ;
2421 return 0;
2422}
2423_ACEOF
2424if ac_fn_c_try_compile "$LINENO"; then :
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426/* end confdefs.h. */
2427$4
2428int
2429main ()
2430{
2431if (sizeof (($2)))
2432 return 0;
2433 ;
2434 return 0;
2435}
2436_ACEOF
2437if ac_fn_c_try_compile "$LINENO"; then :
d5af19ba 2438
81ecdfbb
RW
2439else
2440 eval "$3=yes"
2441fi
2442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443fi
2444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445fi
2446eval ac_res=\$$3
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448$as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
d5af19ba 2450
81ecdfbb
RW
2451} # ac_fn_c_check_type
2452cat >config.log <<_ACEOF
2453This file contains any messages produced by compilers while
2454running configure, to aid debugging if configure makes a mistake.
d5af19ba 2455
81ecdfbb
RW
2456It was created by $as_me, which was
2457generated by GNU Autoconf 2.64. Invocation command line was
b4e70030 2458
81ecdfbb 2459 $ $0 $@
413ccac7 2460
81ecdfbb
RW
2461_ACEOF
2462exec 5>>config.log
2463{
2464cat <<_ASUNAME
2465## --------- ##
2466## Platform. ##
2467## --------- ##
413ccac7 2468
81ecdfbb
RW
2469hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2470uname -m = `(uname -m) 2>/dev/null || echo unknown`
2471uname -r = `(uname -r) 2>/dev/null || echo unknown`
2472uname -s = `(uname -s) 2>/dev/null || echo unknown`
2473uname -v = `(uname -v) 2>/dev/null || echo unknown`
85981d60 2474
81ecdfbb
RW
2475/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2476/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
413ccac7 2477
81ecdfbb
RW
2478/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2479/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2480/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2481/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2482/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2483/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2484/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
c906108c 2485
81ecdfbb 2486_ASUNAME
bec39cab 2487
bec39cab
AC
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2493 $as_echo "PATH: $as_dir"
2494 done
2495IFS=$as_save_IFS
bec39cab 2496
81ecdfbb 2497} >&5
bec39cab 2498
81ecdfbb 2499cat >&5 <<_ACEOF
bec39cab 2500
bec39cab 2501
81ecdfbb
RW
2502## ----------- ##
2503## Core tests. ##
2504## ----------- ##
2505
2506_ACEOF
2507
2508
2509# Keep a trace of the command line.
2510# Strip out --no-create and --no-recursion so they do not pile up.
2511# Strip out --silent because we don't want to record it for future runs.
2512# Also quote any args containing shell meta-characters.
2513# Make two passes to allow for proper duplicate-argument suppression.
2514ac_configure_args=
2515ac_configure_args0=
2516ac_configure_args1=
2517ac_must_keep_next=false
2518for ac_pass in 1 2
2519do
2520 for ac_arg
2521 do
2522 case $ac_arg in
2523 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2525 | -silent | --silent | --silen | --sile | --sil)
2526 continue ;;
2527 *\'*)
2528 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2529 esac
2530 case $ac_pass in
2531 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2532 2)
2533 as_fn_append ac_configure_args1 " '$ac_arg'"
2534 if test $ac_must_keep_next = true; then
2535 ac_must_keep_next=false # Got value, back to normal.
2536 else
2537 case $ac_arg in
2538 *=* | --config-cache | -C | -disable-* | --disable-* \
2539 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2540 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2541 | -with-* | --with-* | -without-* | --without-* | --x)
2542 case "$ac_configure_args0 " in
2543 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2544 esac
2545 ;;
2546 -* ) ac_must_keep_next=true ;;
2547 esac
2548 fi
2549 as_fn_append ac_configure_args " '$ac_arg'"
2550 ;;
2551 esac
2552 done
2553done
2554{ ac_configure_args0=; unset ac_configure_args0;}
2555{ ac_configure_args1=; unset ac_configure_args1;}
2556
2557# When interrupted or exit'd, cleanup temporary files, and complete
2558# config.log. We remove comments because anyway the quotes in there
2559# would cause problems or look ugly.
2560# WARNING: Use '\'' to represent an apostrophe within the trap.
2561# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2562trap 'exit_status=$?
2563 # Save into config.log some information that might help in debugging.
2564 {
2565 echo
2566
2567 cat <<\_ASBOX
2568## ---------------- ##
2569## Cache variables. ##
2570## ---------------- ##
2571_ASBOX
2572 echo
2573 # The following way of writing the cache mishandles newlines in values,
2574(
2575 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2576 eval ac_val=\$$ac_var
2577 case $ac_val in #(
2578 *${as_nl}*)
2579 case $ac_var in #(
2580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2581$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2582 esac
2583 case $ac_var in #(
2584 _ | IFS | as_nl) ;; #(
2585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2586 *) { eval $ac_var=; unset $ac_var;} ;;
2587 esac ;;
2588 esac
2589 done
2590 (set) 2>&1 |
2591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2592 *${as_nl}ac_space=\ *)
2593 sed -n \
2594 "s/'\''/'\''\\\\'\'''\''/g;
2595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2596 ;; #(
2597 *)
2598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2599 ;;
2600 esac |
2601 sort
2602)
2603 echo
2604
2605 cat <<\_ASBOX
2606## ----------------- ##
2607## Output variables. ##
2608## ----------------- ##
2609_ASBOX
2610 echo
2611 for ac_var in $ac_subst_vars
2612 do
2613 eval ac_val=\$$ac_var
2614 case $ac_val in
2615 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2616 esac
2617 $as_echo "$ac_var='\''$ac_val'\''"
2618 done | sort
2619 echo
2620
2621 if test -n "$ac_subst_files"; then
2622 cat <<\_ASBOX
2623## ------------------- ##
2624## File substitutions. ##
2625## ------------------- ##
2626_ASBOX
2627 echo
2628 for ac_var in $ac_subst_files
2629 do
2630 eval ac_val=\$$ac_var
2631 case $ac_val in
2632 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2633 esac
2634 $as_echo "$ac_var='\''$ac_val'\''"
2635 done | sort
2636 echo
2637 fi
2638
2639 if test -s confdefs.h; then
2640 cat <<\_ASBOX
2641## ----------- ##
2642## confdefs.h. ##
2643## ----------- ##
2644_ASBOX
2645 echo
2646 cat confdefs.h
2647 echo
2648 fi
2649 test "$ac_signal" != 0 &&
2650 $as_echo "$as_me: caught signal $ac_signal"
2651 $as_echo "$as_me: exit $exit_status"
2652 } >&5
2653 rm -f core *.core core.conftest.* &&
2654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2655 exit $exit_status
2656' 0
2657for ac_signal in 1 2 13 15; do
2658 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2659done
2660ac_signal=0
2661
2662# confdefs.h avoids OS command line length limits that DEFS can exceed.
2663rm -f -r conftest* confdefs.h
2664
2665$as_echo "/* confdefs.h */" > confdefs.h
2666
2667# Predefined preprocessor variables.
2668
2669cat >>confdefs.h <<_ACEOF
2670#define PACKAGE_NAME "$PACKAGE_NAME"
2671_ACEOF
2672
2673cat >>confdefs.h <<_ACEOF
2674#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2675_ACEOF
2676
2677cat >>confdefs.h <<_ACEOF
2678#define PACKAGE_VERSION "$PACKAGE_VERSION"
2679_ACEOF
2680
2681cat >>confdefs.h <<_ACEOF
2682#define PACKAGE_STRING "$PACKAGE_STRING"
2683_ACEOF
2684
2685cat >>confdefs.h <<_ACEOF
2686#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2687_ACEOF
2688
2689cat >>confdefs.h <<_ACEOF
2690#define PACKAGE_URL "$PACKAGE_URL"
2691_ACEOF
2692
2693
2694# Let the site file select an alternate cache file if it wants to.
2695# Prefer an explicitly selected file to automatically selected ones.
2696ac_site_file1=NONE
2697ac_site_file2=NONE
2698if test -n "$CONFIG_SITE"; then
2699 ac_site_file1=$CONFIG_SITE
2700elif test "x$prefix" != xNONE; then
2701 ac_site_file1=$prefix/share/config.site
2702 ac_site_file2=$prefix/etc/config.site
2703else
2704 ac_site_file1=$ac_default_prefix/share/config.site
2705 ac_site_file2=$ac_default_prefix/etc/config.site
2706fi
2707for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2708do
2709 test "x$ac_site_file" = xNONE && continue
2710 if test -r "$ac_site_file"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2712$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2713 sed 's/^/| /' "$ac_site_file" >&5
2714 . "$ac_site_file"
2715 fi
2716done
2717
2718if test -r "$cache_file"; then
2719 # Some versions of bash will fail to source /dev/null (special
2720 # files actually), so we avoid doing that.
2721 if test -f "$cache_file"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2723$as_echo "$as_me: loading cache $cache_file" >&6;}
2724 case $cache_file in
2725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2726 *) . "./$cache_file";;
2727 esac
2728 fi
2729else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2731$as_echo "$as_me: creating cache $cache_file" >&6;}
2732 >$cache_file
bec39cab
AC
2733fi
2734
f434ba03
PA
2735gl_header_list="$gl_header_list sys/mman.h"
2736gl_func_list="$gl_func_list mprotect"
2737gl_func_list="$gl_func_list memchr"
2738gl_header_list="$gl_header_list stddef.h"
81ecdfbb
RW
2739gl_header_list="$gl_header_list stdint.h"
2740gl_header_list="$gl_header_list wchar.h"
2741gl_header_list="$gl_header_list string.h"
2742# Check that the precious variables saved in the cache have kept the same
2743# value.
2744ac_cache_corrupted=false
2745for ac_var in $ac_precious_vars; do
2746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2747 eval ac_new_set=\$ac_env_${ac_var}_set
2748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2749 eval ac_new_val=\$ac_env_${ac_var}_value
2750 case $ac_old_set,$ac_new_set in
2751 set,)
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2753$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2754 ac_cache_corrupted=: ;;
2755 ,set)
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2757$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2758 ac_cache_corrupted=: ;;
2759 ,);;
2760 *)
2761 if test "x$ac_old_val" != "x$ac_new_val"; then
2762 # differences in whitespace do not lead to failure.
2763 ac_old_val_w=`echo x $ac_old_val`
2764 ac_new_val_w=`echo x $ac_new_val`
2765 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2767$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2768 ac_cache_corrupted=:
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2771$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2772 eval $ac_var=\$ac_old_val
2773 fi
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2775$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2777$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2778 fi;;
2779 esac
2780 # Pass precious variables to config.status.
2781 if test "$ac_new_set" = set; then
2782 case $ac_new_val in
2783 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2784 *) ac_arg=$ac_var=$ac_new_val ;;
2785 esac
2786 case " $ac_configure_args " in
2787 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2788 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2789 esac
2790 fi
2791done
2792if $ac_cache_corrupted; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2796$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2797 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2798fi
2799## -------------------- ##
2800## Main body of script. ##
2801## -------------------- ##
2802
2803ac_ext=c
2804ac_cpp='$CPP $CPPFLAGS'
2805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
2809
2810
2811
2812
2813ac_config_headers="$ac_config_headers config.h:config.in"
2814
2815
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2817$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2818 # Check whether --enable-maintainer-mode was given.
2819if test "${enable_maintainer_mode+set}" = set; then :
2820 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2821else
2822 USE_MAINTAINER_MODE=no
2823fi
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2826$as_echo "$USE_MAINTAINER_MODE" >&6; }
2827 if test $USE_MAINTAINER_MODE = yes; then
2828 MAINTAINER_MODE_TRUE=
2829 MAINTAINER_MODE_FALSE='#'
2830else
2831 MAINTAINER_MODE_TRUE='#'
2832 MAINTAINER_MODE_FALSE=
2833fi
2834
2835 MAINT=$MAINTAINER_MODE_TRUE
2836
2837
2838
2839ac_ext=c
2840ac_cpp='$CPP $CPPFLAGS'
2841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848$as_echo_n "checking for $ac_word... " >&6; }
2849if test "${ac_cv_prog_CC+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
c906108c
SS
2851else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854else
bec39cab
AC
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2864 break 2
2865 fi
2866done
81ecdfbb
RW
2867 done
2868IFS=$as_save_IFS
bec39cab 2869
c906108c
SS
2870fi
2871fi
bec39cab 2872CC=$ac_cv_prog_CC
c906108c 2873if test -n "$CC"; then
81ecdfbb
RW
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875$as_echo "$CC" >&6; }
c906108c 2876else
81ecdfbb
RW
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878$as_echo "no" >&6; }
c906108c
SS
2879fi
2880
81ecdfbb 2881
b4e70030
JB
2882fi
2883if test -z "$ac_cv_prog_CC"; then
2884 ac_ct_CC=$CC
81ecdfbb
RW
2885 # Extract the first word of "gcc", so it can be a program name with args.
2886set dummy gcc; ac_word=$2
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
b4e70030
JB
2891else
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC="gcc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b4e70030 2904 break 2
4e8d927d 2905 fi
b4e70030 2906done
81ecdfbb
RW
2907 done
2908IFS=$as_save_IFS
b4e70030
JB
2909
2910fi
2911fi
2912ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915$as_echo "$ac_ct_CC" >&6; }
b4e70030 2916else
81ecdfbb
RW
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
b4e70030
JB
2919fi
2920
81ecdfbb
RW
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925yes:)
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928ac_tool_warned=yes ;;
2929esac
2930 CC=$ac_ct_CC
2931 fi
b4e70030
JB
2932else
2933 CC="$ac_cv_prog_CC"
2934fi
2935
c906108c 2936if test -z "$CC"; then
81ecdfbb
RW
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939set dummy ${ac_tool_prefix}cc; ac_word=$2
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if test "${ac_cv_prog_CC+set}" = set; then :
2943 $as_echo_n "(cached) " >&6
c906108c
SS
2944else
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2947else
bec39cab
AC
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 ac_cv_prog_CC="${ac_tool_prefix}cc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
2957 break 2
2958 fi
2959done
81ecdfbb
RW
2960 done
2961IFS=$as_save_IFS
2962
2963fi
2964fi
2965CC=$ac_cv_prog_CC
2966if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968$as_echo "$CC" >&6; }
2969else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972fi
2973
2974
2975 fi
2976fi
2977if test -z "$CC"; then
2978 # Extract the first word of "cc", so it can be a program name with args.
2979set dummy cc; ac_word=$2
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981$as_echo_n "checking for $ac_word... " >&6; }
2982if test "${ac_cv_prog_CC+set}" = set; then :
2983 $as_echo_n "(cached) " >&6
2984else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987else
2988 ac_prog_rejected=no
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997 ac_prog_rejected=yes
2998 continue
2999 fi
3000 ac_cv_prog_CC="cc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004done
3005 done
3006IFS=$as_save_IFS
bec39cab 3007
c906108c
SS
3008if test $ac_prog_rejected = yes; then
3009 # We found a bogon in the path, so make sure we never use it.
3010 set dummy $ac_cv_prog_CC
3011 shift
bec39cab 3012 if test $# != 0; then
c906108c
SS
3013 # We chose a different compiler from the bogus one.
3014 # However, it has the same basename, so the bogon will be chosen
3015 # first if we set CC to just the basename; use the full file name.
3016 shift
bec39cab 3017 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
3018 fi
3019fi
3020fi
3021fi
bec39cab 3022CC=$ac_cv_prog_CC
c906108c 3023if test -n "$CC"; then
81ecdfbb
RW
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025$as_echo "$CC" >&6; }
c906108c 3026else
81ecdfbb
RW
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028$as_echo "no" >&6; }
c906108c
SS
3029fi
3030
81ecdfbb 3031
bec39cab
AC
3032fi
3033if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
81ecdfbb 3035 for ac_prog in cl.exe
bec39cab
AC
3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040$as_echo_n "checking for $ac_word... " >&6; }
3041if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
c906108c
SS
3043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
bec39cab
AC
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
3056 break 2
3057 fi
3058done
81ecdfbb
RW
3059 done
3060IFS=$as_save_IFS
bec39cab 3061
c906108c
SS
3062fi
3063fi
bec39cab 3064CC=$ac_cv_prog_CC
c906108c 3065if test -n "$CC"; then
81ecdfbb
RW
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067$as_echo "$CC" >&6; }
c906108c 3068else
81ecdfbb
RW
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
c906108c 3071fi
bec39cab 3072
81ecdfbb 3073
bec39cab
AC
3074 test -n "$CC" && break
3075 done
3076fi
3077if test -z "$CC"; then
3078 ac_ct_CC=$CC
81ecdfbb 3079 for ac_prog in cl.exe
bec39cab
AC
3080do
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
bec39cab
AC
3087else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 3098 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab 3100 break 2
c906108c 3101 fi
bec39cab 3102done
81ecdfbb
RW
3103 done
3104IFS=$as_save_IFS
bec39cab
AC
3105
3106fi
3107fi
3108ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111$as_echo "$ac_ct_CC" >&6; }
bec39cab 3112else
81ecdfbb
RW
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
c906108c
SS
3115fi
3116
81ecdfbb 3117
bec39cab
AC
3118 test -n "$ac_ct_CC" && break
3119done
c906108c 3120
81ecdfbb
RW
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125yes:)
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128ac_tool_warned=yes ;;
3129esac
3130 CC=$ac_ct_CC
3131 fi
bec39cab
AC
3132fi
3133
3134fi
3135
3136
81ecdfbb
RW
3137test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139as_fn_error "no acceptable C compiler found in \$PATH
3140See \`config.log' for more details." "$LINENO" 5; }
bec39cab
AC
3141
3142# Provide some information about the compiler.
81ecdfbb
RW
3143$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3144set X $ac_compile
3145ac_compiler=$2
3146for ac_option in --version -v -V -qversion; do
3147 { { ac_try="$ac_compiler $ac_option >&5"
3148case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153$as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
bec39cab 3155 ac_status=$?
81ecdfbb
RW
3156 if test -s conftest.err; then
3157 sed '10a\
3158... rest of stderr output deleted ...
3159 10q' conftest.err >conftest.er1
3160 cat conftest.er1 >&5
3161 rm -f conftest.er1 conftest.err
3162 fi
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3165done
bec39cab 3166
81ecdfbb 3167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3168/* end confdefs.h. */
3169
3170int
3171main ()
3172{
3173
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178ac_clean_files_save=$ac_clean_files
81ecdfbb 3179ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
bec39cab
AC
3180# Try to create an executable without -o first, disregard a.out.
3181# It will help us diagnose broken compilers, and finding out an intuition
3182# of exeext.
81ecdfbb
RW
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3184$as_echo_n "checking for C compiler default output file name... " >&6; }
3185ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3186
3187# The possible output files:
3188ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3189
3190ac_rmfiles=
3191for ac_file in $ac_files
3192do
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 esac
3197done
3198rm -f $ac_rmfiles
3199
3200if { { ac_try="$ac_link_default"
3201case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206$as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_link_default") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; then :
3211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3212# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3213# in a Makefile. We should not override ac_cv_exeext if it was cached,
3214# so that the user can short-circuit this test for compilers unknown to
3215# Autoconf.
3216for ac_file in $ac_files ''
bec39cab
AC
3217do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
81ecdfbb 3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b4e70030
JB
3221 ;;
3222 [ab].out )
3223 # We found the default executable, but exeext='' is most
3224 # certainly right.
3225 break;;
3226 *.* )
81ecdfbb
RW
3227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3228 then :; else
3229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 fi
3231 # We set ac_cv_exeext here because the later test for it is not
3232 # safe: cross compilers may not add the suffix if given an `-o'
3233 # argument, so we may need to know it at that point already.
3234 # Even if this section looks crufty: it has the advantage of
3235 # actually working.
b4e70030
JB
3236 break;;
3237 * )
3238 break;;
bec39cab
AC
3239 esac
3240done
81ecdfbb
RW
3241test "$ac_cv_exeext" = no && ac_cv_exeext=
3242
bec39cab 3243else
81ecdfbb
RW
3244 ac_file=''
3245fi
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3247$as_echo "$ac_file" >&6; }
3248if test -z "$ac_file"; then :
3249 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
3250sed 's/^/| /' conftest.$ac_ext >&5
3251
81ecdfbb
RW
3252{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254{ as_fn_set_status 77
3255as_fn_error "C compiler cannot create executables
3256See \`config.log' for more details." "$LINENO" 5; }; }
bec39cab 3257fi
b4e70030 3258ac_exeext=$ac_cv_exeext
b4e70030 3259
81ecdfbb 3260# Check that the compiler produces executables we can run. If not, either
bec39cab 3261# the compiler is broken, or we cross compile.
81ecdfbb
RW
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3263$as_echo_n "checking whether the C compiler works... " >&6; }
bec39cab
AC
3264# If not cross compiling, check that we can run a simple program.
3265if test "$cross_compiling" != yes; then
3266 if { ac_try='./$ac_file'
81ecdfbb
RW
3267 { { case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272$as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_try") 2>&5
bec39cab 3274 ac_status=$?
81ecdfbb
RW
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; }; then
bec39cab 3277 cross_compiling=no
c906108c 3278 else
bec39cab
AC
3279 if test "$cross_compiling" = maybe; then
3280 cross_compiling=yes
3281 else
81ecdfbb
RW
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284as_fn_error "cannot run C compiled programs.
bec39cab 3285If you meant to cross compile, use \`--host'.
81ecdfbb 3286See \`config.log' for more details." "$LINENO" 5; }
bec39cab 3287 fi
c906108c 3288 fi
bec39cab 3289fi
81ecdfbb
RW
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291$as_echo "yes" >&6; }
bec39cab 3292
81ecdfbb 3293rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b4e70030 3294ac_clean_files=$ac_clean_files_save
81ecdfbb 3295# Check that the compiler produces executables we can run. If not, either
b4e70030 3296# the compiler is broken, or we cross compile.
81ecdfbb
RW
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3298$as_echo_n "checking whether we are cross compiling... " >&6; }
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300$as_echo "$cross_compiling" >&6; }
3301
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3303$as_echo_n "checking for suffix of executables... " >&6; }
3304if { { ac_try="$ac_link"
3305case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link") 2>&5
bec39cab 3312 ac_status=$?
81ecdfbb
RW
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
b4e70030
JB
3315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3316# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3317# work properly (i.e., refer to `conftest.exe'), while it won't with
3318# `rm'.
3319for ac_file in conftest.exe conftest conftest.*; do
3320 test -f "$ac_file" || continue
3321 case $ac_file in
81ecdfbb 3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b4e70030 3323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b4e70030
JB
3324 break;;
3325 * ) break;;
3326 esac
3327done
c906108c 3328else
81ecdfbb
RW
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331as_fn_error "cannot compute suffix of executables: cannot compile and link
3332See \`config.log' for more details." "$LINENO" 5; }
c906108c 3333fi
b4e70030 3334rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3336$as_echo "$ac_cv_exeext" >&6; }
c906108c 3337
b4e70030 3338rm -f conftest.$ac_ext
bec39cab
AC
3339EXEEXT=$ac_cv_exeext
3340ac_exeext=$EXEEXT
81ecdfbb
RW
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3342$as_echo_n "checking for suffix of object files... " >&6; }
3343if test "${ac_cv_objext+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
bec39cab 3345else
81ecdfbb 3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4e70030
JB
3347/* end confdefs.h. */
3348
3349int
3350main ()
3351{
3352
3353 ;
3354 return 0;
3355}
3356_ACEOF
3357rm -f conftest.o conftest.obj
81ecdfbb
RW
3358if { { ac_try="$ac_compile"
3359case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364$as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_compile") 2>&5
3366 ac_status=$?
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }; then :
3369 for ac_file in conftest.o conftest.obj conftest.*; do
3370 test -f "$ac_file" || continue;
bec39cab 3371 case $ac_file in
81ecdfbb 3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bec39cab
AC
3373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3374 break;;
3375 esac
3376done
c906108c 3377else
81ecdfbb 3378 $as_echo "$as_me: failed program was:" >&5
bec39cab
AC
3379sed 's/^/| /' conftest.$ac_ext >&5
3380
81ecdfbb
RW
3381{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383as_fn_error "cannot compute suffix of object files: cannot compile
3384See \`config.log' for more details." "$LINENO" 5; }
c906108c 3385fi
b4e70030 3386rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 3387fi
81ecdfbb
RW
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3389$as_echo "$ac_cv_objext" >&6; }
bec39cab
AC
3390OBJEXT=$ac_cv_objext
3391ac_objext=$OBJEXT
81ecdfbb
RW
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3393$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3394if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3395 $as_echo_n "(cached) " >&6
c906108c 3396else
81ecdfbb 3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3398/* end confdefs.h. */
3399
3400int
3401main ()
3402{
3403#ifndef __GNUC__
3404 choke me
3405#endif
3406
3407 ;
3408 return 0;
3409}
3410_ACEOF
81ecdfbb 3411if ac_fn_c_try_compile "$LINENO"; then :
bec39cab
AC
3412 ac_compiler_gnu=yes
3413else
81ecdfbb 3414 ac_compiler_gnu=no
bec39cab 3415fi
81ecdfbb 3416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
3417ac_cv_c_compiler_gnu=$ac_compiler_gnu
3418
3419fi
81ecdfbb
RW
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3421$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3422if test $ac_compiler_gnu = yes; then
3423 GCC=yes
3424else
3425 GCC=
3426fi
bec39cab
AC
3427ac_test_CFLAGS=${CFLAGS+set}
3428ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3430$as_echo_n "checking whether $CC accepts -g... " >&6; }
3431if test "${ac_cv_prog_cc_g+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
bec39cab 3433else
81ecdfbb
RW
3434 ac_save_c_werror_flag=$ac_c_werror_flag
3435 ac_c_werror_flag=yes
3436 ac_cv_prog_cc_g=no
3437 CFLAGS="-g"
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3439/* end confdefs.h. */
3440
3441int
3442main ()
3443{
3444
3445 ;
3446 return 0;
3447}
3448_ACEOF
81ecdfbb 3449if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
3450 ac_cv_prog_cc_g=yes
3451else
81ecdfbb
RW
3452 CFLAGS=""
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454/* end confdefs.h. */
3455
3456int
3457main ()
3458{
3459
3460 ;
3461 return 0;
3462}
3463_ACEOF
3464if ac_fn_c_try_compile "$LINENO"; then :
3465
3466else
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3468 CFLAGS="-g"
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h. */
3471
3472int
3473main ()
3474{
c906108c 3475
81ecdfbb
RW
3476 ;
3477 return 0;
3478}
3479_ACEOF
3480if ac_fn_c_try_compile "$LINENO"; then :
3481 ac_cv_prog_cc_g=yes
3482fi
3483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484fi
3485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d 3486fi
81ecdfbb
RW
3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_c_werror_flag=$ac_save_c_werror_flag
bec39cab 3489fi
81ecdfbb
RW
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3491$as_echo "$ac_cv_prog_cc_g" >&6; }
c906108c 3492if test "$ac_test_CFLAGS" = set; then
bec39cab 3493 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3494elif test $ac_cv_prog_cc_g = yes; then
3495 if test "$GCC" = yes; then
3496 CFLAGS="-g -O2"
3497 else
3498 CFLAGS="-g"
3499 fi
3500else
3501 if test "$GCC" = yes; then
3502 CFLAGS="-O2"
3503 else
3504 CFLAGS=
3505 fi
3506fi
81ecdfbb
RW
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3508$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3509if test "${ac_cv_prog_cc_c89+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
bec39cab 3511else
81ecdfbb 3512 ac_cv_prog_cc_c89=no
bec39cab 3513ac_save_CC=$CC
81ecdfbb 3514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3515/* end confdefs.h. */
c906108c
SS
3516#include <stdarg.h>
3517#include <stdio.h>
3518#include <sys/types.h>
3519#include <sys/stat.h>
3520/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3521struct buf { int x; };
3522FILE * (*rcsopen) (struct buf *, struct stat *, int);
3523static char *e (p, i)
3524 char **p;
3525 int i;
3526{
3527 return p[i];
3528}
3529static char *f (char * (*g) (char **, int), char **p, ...)
3530{
3531 char *s;
3532 va_list v;
3533 va_start (v,p);
3534 s = g (p, va_arg (v,int));
3535 va_end (v);
3536 return s;
3537}
bec39cab
AC
3538
3539/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3540 function prototypes and stuff, but not '\xHH' hex character constants.
3541 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3542 as 'x'. The following induces an error, until -std is added to get
bec39cab
AC
3543 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3544 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3545 that's true only with -std. */
bec39cab
AC
3546int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3547
81ecdfbb
RW
3548/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3549 inside strings and character constants. */
3550#define FOO(x) 'x'
3551int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3552
c906108c
SS
3553int test (int i, double x);
3554struct s1 {int (*f) (int a);};
3555struct s2 {int (*f) (double a);};
3556int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3557int argc;
3558char **argv;
bec39cab
AC
3559int
3560main ()
3561{
c906108c 3562return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
3563 ;
3564 return 0;
3565}
3566_ACEOF
81ecdfbb
RW
3567for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3568 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
3569do
3570 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572 ac_cv_prog_cc_c89=$ac_arg
c906108c 3573fi
81ecdfbb
RW
3574rm -f core conftest.err conftest.$ac_objext
3575 test "x$ac_cv_prog_cc_c89" != "xno" && break
c906108c 3576done
81ecdfbb 3577rm -f conftest.$ac_ext
bec39cab 3578CC=$ac_save_CC
c906108c
SS
3579
3580fi
81ecdfbb
RW
3581# AC_CACHE_VAL
3582case "x$ac_cv_prog_cc_c89" in
3583 x)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3585$as_echo "none needed" >&6; } ;;
3586 xno)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3588$as_echo "unsupported" >&6; } ;;
bec39cab 3589 *)
81ecdfbb
RW
3590 CC="$CC $ac_cv_prog_cc_c89"
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3592$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c906108c 3593esac
81ecdfbb 3594if test "x$ac_cv_prog_cc_c89" != xno; then :
c906108c 3595
b4e70030
JB
3596fi
3597
bec39cab
AC
3598ac_ext=c
3599ac_cpp='$CPP $CPPFLAGS'
3600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 3603
f434ba03
PA
3604ac_aux_dir=
3605for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3606 for ac_t in install-sh install.sh shtool; do
3607 if test -f "$ac_dir/$ac_t"; then
3608 ac_aux_dir=$ac_dir
3609 ac_install_sh="$ac_aux_dir/$ac_t -c"
3610 break 2
3611 fi
3612 done
3613done
3614if test -z "$ac_aux_dir"; then
3615 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3616fi
3617
3618# These three variables are undocumented and unsupported,
3619# and are intended to be withdrawn in a future Autoconf release.
3620# They can cause serious problems if a builder's source tree is in a directory
3621# whose full name contains unusual characters.
3622ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3623ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3624ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3625
3626
3627# Make sure we can run config.sub.
3628$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3629 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3630
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3632$as_echo_n "checking build system type... " >&6; }
3633if test "${ac_cv_build+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3635else
3636 ac_build_alias=$build_alias
3637test "x$ac_build_alias" = x &&
3638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3639test "x$ac_build_alias" = x &&
3640 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3641ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3642 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3643
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3646$as_echo "$ac_cv_build" >&6; }
3647case $ac_cv_build in
3648*-*-*) ;;
3649*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3650esac
3651build=$ac_cv_build
3652ac_save_IFS=$IFS; IFS='-'
3653set x $ac_cv_build
3654shift
3655build_cpu=$1
3656build_vendor=$2
3657shift; shift
3658# Remember, the first character of IFS is used to create $*,
3659# except with old shells:
3660build_os=$*
3661IFS=$ac_save_IFS
3662case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3663
3664
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3666$as_echo_n "checking host system type... " >&6; }
3667if test "${ac_cv_host+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3669else
3670 if test "x$host_alias" = x; then
3671 ac_cv_host=$ac_cv_build
3672else
3673 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3674 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3675fi
3676
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3679$as_echo "$ac_cv_host" >&6; }
3680case $ac_cv_host in
3681*-*-*) ;;
3682*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3683esac
3684host=$ac_cv_host
3685ac_save_IFS=$IFS; IFS='-'
3686set x $ac_cv_host
3687shift
3688host_cpu=$1
3689host_vendor=$2
3690shift; shift
3691# Remember, the first character of IFS is used to create $*,
3692# except with old shells:
3693host_os=$*
3694IFS=$ac_save_IFS
3695case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3696
3697
60ca704f 3698
bec39cab
AC
3699ac_ext=c
3700ac_cpp='$CPP $CPPFLAGS'
3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3705$as_echo_n "checking how to run the C preprocessor... " >&6; }
bec39cab
AC
3706# On Suns, sometimes $CPP names a directory.
3707if test -n "$CPP" && test -d "$CPP"; then
3708 CPP=
8bb2c122 3709fi
bec39cab 3710if test -z "$CPP"; then
81ecdfbb
RW
3711 if test "${ac_cv_prog_CPP+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
bec39cab
AC
3713else
3714 # Double quotes because CPP needs to be expanded
3715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3716 do
3717 ac_preproc_ok=false
3718for ac_c_preproc_warn_flag in '' yes
3719do
3720 # Use a header file that comes with gcc, so configuring glibc
3721 # with a fresh cross-compiler works.
3722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3723 # <limits.h> exists even on freestanding compilers.
3724 # On the NeXT, cc -E runs the code through the compiler's parser,
3725 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3727/* end confdefs.h. */
3728#ifdef __STDC__
3729# include <limits.h>
3730#else
3731# include <assert.h>
3732#endif
3733 Syntax error
3734_ACEOF
81ecdfbb 3735if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3736
81ecdfbb 3737else
bec39cab
AC
3738 # Broken: fails on valid input.
3739continue
3740fi
3741rm -f conftest.err conftest.$ac_ext
3742
81ecdfbb 3743 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3744 # can be detected and how.
81ecdfbb 3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3746/* end confdefs.h. */
3747#include <ac_nonexistent.h>
3748_ACEOF
81ecdfbb 3749if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3750 # Broken: success on invalid input.
3751continue
8bb2c122 3752else
bec39cab
AC
3753 # Passes both tests.
3754ac_preproc_ok=:
3755break
8bb2c122 3756fi
bec39cab 3757rm -f conftest.err conftest.$ac_ext
8bb2c122 3758
bec39cab
AC
3759done
3760# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3761rm -f conftest.err conftest.$ac_ext
81ecdfbb 3762if $ac_preproc_ok; then :
bec39cab
AC
3763 break
3764fi
8bb2c122 3765
bec39cab
AC
3766 done
3767 ac_cv_prog_CPP=$CPP
ddc9cd0f 3768
c906108c 3769fi
bec39cab
AC
3770 CPP=$ac_cv_prog_CPP
3771else
3772 ac_cv_prog_CPP=$CPP
c906108c 3773fi
81ecdfbb
RW
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3775$as_echo "$CPP" >&6; }
bec39cab
AC
3776ac_preproc_ok=false
3777for ac_c_preproc_warn_flag in '' yes
3778do
3779 # Use a header file that comes with gcc, so configuring glibc
3780 # with a fresh cross-compiler works.
3781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3782 # <limits.h> exists even on freestanding compilers.
3783 # On the NeXT, cc -E runs the code through the compiler's parser,
3784 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3786/* end confdefs.h. */
3787#ifdef __STDC__
3788# include <limits.h>
3789#else
3790# include <assert.h>
3791#endif
3792 Syntax error
3793_ACEOF
81ecdfbb 3794if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab 3795
81ecdfbb 3796else
bec39cab
AC
3797 # Broken: fails on valid input.
3798continue
3799fi
3800rm -f conftest.err conftest.$ac_ext
3801
81ecdfbb 3802 # OK, works on sane cases. Now check whether nonexistent headers
bec39cab 3803 # can be detected and how.
81ecdfbb 3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
3805/* end confdefs.h. */
3806#include <ac_nonexistent.h>
3807_ACEOF
81ecdfbb 3808if ac_fn_c_try_cpp "$LINENO"; then :
bec39cab
AC
3809 # Broken: success on invalid input.
3810continue
c906108c 3811else
bec39cab
AC
3812 # Passes both tests.
3813ac_preproc_ok=:
3814break
c906108c 3815fi
bec39cab 3816rm -f conftest.err conftest.$ac_ext
c906108c 3817
bec39cab
AC
3818done
3819# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3820rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3821if $ac_preproc_ok; then :
3822
c906108c 3823else
81ecdfbb
RW
3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826as_fn_error "C preprocessor \"$CPP\" fails sanity check
3827See \`config.log' for more details." "$LINENO" 5; }
c906108c 3828fi
c906108c 3829
bec39cab
AC
3830ac_ext=c
3831ac_cpp='$CPP $CPPFLAGS'
3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836
81ecdfbb
RW
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3838$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3839if test "${ac_cv_path_GREP+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
4e8d927d 3841else
81ecdfbb
RW
3842 if test -z "$GREP"; then
3843 ac_path_GREP_found=false
3844 # Loop through the user's path and test for each of PROGNAME-LIST
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847do
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_prog in grep ggrep; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3853 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3854# Check for GNU ac_path_GREP and select it if it is found.
3855 # Check for GNU $ac_path_GREP
3856case `"$ac_path_GREP" --version 2>&1` in
3857*GNU*)
3858 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3859*)
3860 ac_count=0
3861 $as_echo_n 0123456789 >"conftest.in"
3862 while :
3863 do
3864 cat "conftest.in" "conftest.in" >"conftest.tmp"
3865 mv "conftest.tmp" "conftest.in"
3866 cp "conftest.in" "conftest.nl"
3867 $as_echo 'GREP' >> "conftest.nl"
3868 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870 as_fn_arith $ac_count + 1 && ac_count=$as_val
3871 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3872 # Best one so far, save it but keep looking for a better one
3873 ac_cv_path_GREP="$ac_path_GREP"
3874 ac_path_GREP_max=$ac_count
bec39cab 3875 fi
81ecdfbb
RW
3876 # 10*(2^10) chars as input seems more than enough
3877 test $ac_count -gt 10 && break
3878 done
3879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880esac
bec39cab 3881
81ecdfbb
RW
3882 $ac_path_GREP_found && break 3
3883 done
3884 done
3885 done
3886IFS=$as_save_IFS
3887 if test -z "$ac_cv_path_GREP"; then
3888 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3889 fi
c906108c 3890else
81ecdfbb 3891 ac_cv_path_GREP=$GREP
c906108c 3892fi
c906108c 3893
81ecdfbb
RW
3894fi
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3896$as_echo "$ac_cv_path_GREP" >&6; }
3897 GREP="$ac_cv_path_GREP"
c906108c 3898
c906108c 3899
81ecdfbb
RW
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3901$as_echo_n "checking for egrep... " >&6; }
3902if test "${ac_cv_path_EGREP+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
783e057b 3904else
81ecdfbb
RW
3905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906 then ac_cv_path_EGREP="$GREP -E"
3907 else
3908 if test -z "$EGREP"; then
3909 ac_path_EGREP_found=false
3910 # Loop through the user's path and test for each of PROGNAME-LIST
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
783e057b
DJ
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3916 for ac_prog in egrep; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3920# Check for GNU ac_path_EGREP and select it if it is found.
3921 # Check for GNU $ac_path_EGREP
3922case `"$ac_path_EGREP" --version 2>&1` in
3923*GNU*)
3924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3925*)
3926 ac_count=0
3927 $as_echo_n 0123456789 >"conftest.in"
3928 while :
3929 do
3930 cat "conftest.in" "conftest.in" >"conftest.tmp"
3931 mv "conftest.tmp" "conftest.in"
3932 cp "conftest.in" "conftest.nl"
3933 $as_echo 'EGREP' >> "conftest.nl"
3934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936 as_fn_arith $ac_count + 1 && ac_count=$as_val
3937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3938 # Best one so far, save it but keep looking for a better one
3939 ac_cv_path_EGREP="$ac_path_EGREP"
3940 ac_path_EGREP_max=$ac_count
3941 fi
3942 # 10*(2^10) chars as input seems more than enough
3943 test $ac_count -gt 10 && break
3944 done
3945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946esac
bec39cab 3947
81ecdfbb
RW
3948 $ac_path_EGREP_found && break 3
3949 done
3950 done
3951 done
3952IFS=$as_save_IFS
3953 if test -z "$ac_cv_path_EGREP"; then
3954 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
783e057b 3955 fi
783e057b 3956else
81ecdfbb 3957 ac_cv_path_EGREP=$EGREP
783e057b
DJ
3958fi
3959
81ecdfbb 3960 fi
783e057b 3961fi
81ecdfbb
RW
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3963$as_echo "$ac_cv_path_EGREP" >&6; }
3964 EGREP="$ac_cv_path_EGREP"
3965
783e057b 3966
81ecdfbb
RW
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3968$as_echo_n "checking for ANSI C header files... " >&6; }
3969if test "${ac_cv_header_stdc+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
783e057b 3971else
81ecdfbb 3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 3973/* end confdefs.h. */
783e057b 3974#include <stdlib.h>
bec39cab 3975#include <stdarg.h>
783e057b
DJ
3976#include <string.h>
3977#include <float.h>
c906108c 3978
bec39cab
AC
3979int
3980main ()
3981{
c906108c 3982
bec39cab
AC
3983 ;
3984 return 0;
3985}
3986_ACEOF
81ecdfbb 3987if ac_fn_c_try_compile "$LINENO"; then :
783e057b 3988 ac_cv_header_stdc=yes
c906108c 3989else
81ecdfbb 3990 ac_cv_header_stdc=no
c906108c 3991fi
81ecdfbb 3992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3993
783e057b
DJ
3994if test $ac_cv_header_stdc = yes; then
3995 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
3997/* end confdefs.h. */
3998#include <string.h>
c906108c 3999
783e057b
DJ
4000_ACEOF
4001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4002 $EGREP "memchr" >/dev/null 2>&1; then :
4003
c906108c 4004else
783e057b 4005 ac_cv_header_stdc=no
c906108c 4006fi
783e057b 4007rm -f conftest*
c906108c
SS
4008
4009fi
4010
783e057b
DJ
4011if test $ac_cv_header_stdc = yes; then
4012 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
4014/* end confdefs.h. */
4015#include <stdlib.h>
bec39cab 4016
783e057b
DJ
4017_ACEOF
4018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4019 $EGREP "free" >/dev/null 2>&1; then :
4020
bec39cab 4021else
783e057b 4022 ac_cv_header_stdc=no
bec39cab 4023fi
783e057b 4024rm -f conftest*
bec39cab
AC
4025
4026fi
bec39cab 4027
783e057b
DJ
4028if test $ac_cv_header_stdc = yes; then
4029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4030 if test "$cross_compiling" = yes; then :
783e057b 4031 :
bec39cab 4032else
81ecdfbb 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
4034/* end confdefs.h. */
4035#include <ctype.h>
81ecdfbb 4036#include <stdlib.h>
783e057b
DJ
4037#if ((' ' & 0x0FF) == 0x020)
4038# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4039# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4040#else
4041# define ISLOWER(c) \
4042 (('a' <= (c) && (c) <= 'i') \
4043 || ('j' <= (c) && (c) <= 'r') \
4044 || ('s' <= (c) && (c) <= 'z'))
4045# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4046#endif
4047
4048#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4049int
4050main ()
4051{
4052 int i;
4053 for (i = 0; i < 256; i++)
4054 if (XOR (islower (i), ISLOWER (i))
4055 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4056 return 2;
4057 return 0;
783e057b
DJ
4058}
4059_ACEOF
81ecdfbb 4060if ac_fn_c_try_run "$LINENO"; then :
783e057b 4061
81ecdfbb
RW
4062else
4063 ac_cv_header_stdc=no
783e057b 4064fi
81ecdfbb
RW
4065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4066 conftest.$ac_objext conftest.beam conftest.$ac_ext
783e057b 4067fi
81ecdfbb 4068
783e057b
DJ
4069fi
4070fi
81ecdfbb
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4072$as_echo "$ac_cv_header_stdc" >&6; }
783e057b
DJ
4073if test $ac_cv_header_stdc = yes; then
4074
81ecdfbb 4075$as_echo "#define STDC_HEADERS 1" >>confdefs.h
783e057b
DJ
4076
4077fi
4078
4079# On IRIX 5.3, sys/types and inttypes.h are conflicting.
783e057b
DJ
4080for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4081 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4082do :
4083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4084ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4085"
4086eval as_val=\$$as_ac_Header
4087 if test "x$as_val" = x""yes; then :
783e057b 4088 cat >>confdefs.h <<_ACEOF
81ecdfbb 4089#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
783e057b
DJ
4090_ACEOF
4091
4092fi
4093
4094done
4095
4096
4097
f434ba03
PA
4098
4099
81ecdfbb
RW
4100 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4101if test "x$ac_cv_header_minix_config_h" = x""yes; then :
783e057b
DJ
4102 MINIX=yes
4103else
4104 MINIX=
4105fi
4106
4107
4108 if test "$MINIX" = yes; then
4109
81ecdfbb 4110$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
783e057b
DJ
4111
4112
81ecdfbb 4113$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
783e057b
DJ
4114
4115
81ecdfbb 4116$as_echo "#define _MINIX 1" >>confdefs.h
783e057b
DJ
4117
4118 fi
4119
f434ba03
PA
4120 case "$host_os" in
4121 hpux*)
4122
4123$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4124
4125 ;;
4126 esac
4127
783e057b 4128
81ecdfbb
RW
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4130$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4131if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
783e057b 4133else
81ecdfbb 4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
4135/* end confdefs.h. */
4136
f434ba03
PA
4137# define __EXTENSIONS__ 1
4138 $ac_includes_default
783e057b
DJ
4139int
4140main ()
4141{
4142
4143 ;
4144 return 0;
4145}
4146_ACEOF
81ecdfbb 4147if ac_fn_c_try_compile "$LINENO"; then :
783e057b
DJ
4148 ac_cv_safe_to_define___extensions__=yes
4149else
81ecdfbb 4150 ac_cv_safe_to_define___extensions__=no
783e057b 4151fi
81ecdfbb 4152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b 4153fi
81ecdfbb
RW
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4155$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
783e057b 4156 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4157 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
783e057b 4158
81ecdfbb 4159 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
783e057b 4160
81ecdfbb 4161 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
783e057b 4162
81ecdfbb 4163 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
783e057b 4164
81ecdfbb 4165 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
783e057b
DJ
4166
4167
81ecdfbb
RW
4168if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4170set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172$as_echo_n "checking for $ac_word... " >&6; }
4173if test "${ac_cv_prog_RANLIB+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4175else
4176 if test -n "$RANLIB"; then
4177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4178else
4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4189 fi
4190done
4191 done
4192IFS=$as_save_IFS
783e057b 4193
81ecdfbb
RW
4194fi
4195fi
4196RANLIB=$ac_cv_prog_RANLIB
4197if test -n "$RANLIB"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4199$as_echo "$RANLIB" >&6; }
4200else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
4203fi
783e057b
DJ
4204
4205
81ecdfbb
RW
4206fi
4207if test -z "$ac_cv_prog_RANLIB"; then
4208 ac_ct_RANLIB=$RANLIB
4209 # Extract the first word of "ranlib", so it can be a program name with args.
4210set dummy ranlib; ac_word=$2
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
4213if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
783e057b 4215else
81ecdfbb
RW
4216 if test -n "$ac_ct_RANLIB"; then
4217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4218else
4219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_ac_ct_RANLIB="ranlib"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230done
4231 done
4232IFS=$as_save_IFS
4233
4234fi
4235fi
4236ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4237if test -n "$ac_ct_RANLIB"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4239$as_echo "$ac_ct_RANLIB" >&6; }
4240else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242$as_echo "no" >&6; }
4243fi
4244
4245 if test "x$ac_ct_RANLIB" = x; then
4246 RANLIB=":"
4247 else
4248 case $cross_compiling:$ac_tool_warned in
4249yes:)
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252ac_tool_warned=yes ;;
4253esac
4254 RANLIB=$ac_ct_RANLIB
4255 fi
4256else
4257 RANLIB="$ac_cv_prog_RANLIB"
4258fi
4259
4260
4261
4262
4263
4264
3388710e
JM
4265
4266
3388710e 4267
f434ba03
PA
4268 # Code from module arg-nonnull:
4269 # Code from module c++defs:
4270 # Code from module extensions:
3388710e 4271
f434ba03
PA
4272 # Code from module include_next:
4273 # Code from module memchr:
4274 # Code from module memmem:
4275 # Code from module memmem-simple:
4276 # Code from module multiarch:
4277 # Code from module stddef:
4278 # Code from module stdint:
4279 # Code from module string:
4280 # Code from module warn-on-use:
4281 # Code from module wchar:
3388710e
JM
4282
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4284$as_echo_n "checking target system type... " >&6; }
4285if test "${ac_cv_target+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287else
4288 if test "x$target_alias" = x; then
4289 ac_cv_target=$ac_cv_host
4290else
4291 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4292 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4293fi
4294
4295fi
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4297$as_echo "$ac_cv_target" >&6; }
4298case $ac_cv_target in
4299*-*-*) ;;
4300*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4301esac
4302target=$ac_cv_target
4303ac_save_IFS=$IFS; IFS='-'
4304set x $ac_cv_target
4305shift
4306target_cpu=$1
4307target_vendor=$2
4308shift; shift
4309# Remember, the first character of IFS is used to create $*,
4310# except with old shells:
4311target_os=$*
4312IFS=$ac_save_IFS
4313case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4314
4315
4316# The aliases save the names the user supplied, while $host etc.
4317# will get canonicalized.
4318test -n "$target_alias" &&
4319 test "$program_prefix$program_suffix$program_transform_name" = \
4320 NONENONEs,x,x, &&
4321 program_prefix=${target_alias}-
4322
4323# The tests for host and target for $enable_largefile require
4324# canonical names.
4325
4326
81ecdfbb 4327
da2f07f1
JK
4328# As the $enable_largefile decision depends on --enable-plugins we must set it
4329# even in directories otherwise not depending on the $plugins option.
4330
4331
4332# Check whether --enable-plugins was given.
4333if test "${enable_plugins+set}" = set; then :
4334 enableval=$enable_plugins; case "${enableval}" in
4335 yes | "") plugins=yes ;;
4336 no) plugins=no ;;
4337 *) plugins=yes ;;
4338 esac
4339else
4340 plugins=no
4341fi
4342
4343
4344
4345case "${host}" in
4346 sparc-*-solaris*|i[3-7]86-*-solaris*)
4347 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4348 # are mutually exclusive; and without procfs support, the bfd/ elf module
4349 # cannot provide certain routines such as elfcore_write_prpsinfo
4350 # or elfcore_write_prstatus. So unless the user explicitly requested
4351 # large-file support through the --enable-largefile switch, disable
4352 # large-file support in favor of procfs support.
4353 test "${target}" = "${host}" -a "x$plugins" = xno \
4354 && : ${enable_largefile="no"}
4355 ;;
4356esac
4357
4358# Check whether --enable-largefile was given.
4359if test "${enable_largefile+set}" = set; then :
4360 enableval=$enable_largefile;
4361fi
4362
4363if test "$enable_largefile" != no; then
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4366$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4367if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4369else
4370 ac_cv_sys_largefile_CC=no
4371 if test "$GCC" != yes; then
4372 ac_save_CC=$CC
4373 while :; do
4374 # IRIX 6.2 and later do not support large files by default,
4375 # so use the C compiler's -n32 option if that helps.
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h. */
4378#include <sys/types.h>
4379 /* Check that off_t can represent 2**63 - 1 correctly.
4380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4381 since some C++ compilers masquerading as C compilers
4382 incorrectly reject 9223372036854775807. */
4383#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4385 && LARGE_OFF_T % 2147483647 == 1)
4386 ? 1 : -1];
4387int
4388main ()
4389{
4390
4391 ;
4392 return 0;
4393}
4394_ACEOF
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396 break
4397fi
4398rm -f core conftest.err conftest.$ac_objext
4399 CC="$CC -n32"
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401 ac_cv_sys_largefile_CC=' -n32'; break
4402fi
4403rm -f core conftest.err conftest.$ac_objext
4404 break
4405 done
4406 CC=$ac_save_CC
4407 rm -f conftest.$ac_ext
4408 fi
4409fi
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4411$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4412 if test "$ac_cv_sys_largefile_CC" != no; then
4413 CC=$CC$ac_cv_sys_largefile_CC
4414 fi
4415
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4417$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4418if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420else
4421 while :; do
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423/* end confdefs.h. */
4424#include <sys/types.h>
4425 /* Check that off_t can represent 2**63 - 1 correctly.
4426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4427 since some C++ compilers masquerading as C compilers
4428 incorrectly reject 9223372036854775807. */
4429#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4431 && LARGE_OFF_T % 2147483647 == 1)
4432 ? 1 : -1];
4433int
4434main ()
4435{
4436
4437 ;
4438 return 0;
4439}
4440_ACEOF
4441if ac_fn_c_try_compile "$LINENO"; then :
4442 ac_cv_sys_file_offset_bits=no; break
4443fi
4444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446/* end confdefs.h. */
4447#define _FILE_OFFSET_BITS 64
4448#include <sys/types.h>
4449 /* Check that off_t can represent 2**63 - 1 correctly.
4450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4451 since some C++ compilers masquerading as C compilers
4452 incorrectly reject 9223372036854775807. */
4453#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4455 && LARGE_OFF_T % 2147483647 == 1)
4456 ? 1 : -1];
4457int
4458main ()
4459{
4460
4461 ;
4462 return 0;
4463}
4464_ACEOF
4465if ac_fn_c_try_compile "$LINENO"; then :
4466 ac_cv_sys_file_offset_bits=64; break
4467fi
4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 ac_cv_sys_file_offset_bits=unknown
4470 break
4471done
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4474$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4475case $ac_cv_sys_file_offset_bits in #(
4476 no | unknown) ;;
4477 *)
4478cat >>confdefs.h <<_ACEOF
4479#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4480_ACEOF
4481;;
4482esac
4483rm -rf conftest*
4484 if test $ac_cv_sys_file_offset_bits = unknown; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4486$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4487if test "${ac_cv_sys_large_files+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489else
4490 while :; do
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492/* end confdefs.h. */
4493#include <sys/types.h>
4494 /* Check that off_t can represent 2**63 - 1 correctly.
4495 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4496 since some C++ compilers masquerading as C compilers
4497 incorrectly reject 9223372036854775807. */
4498#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4499 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4500 && LARGE_OFF_T % 2147483647 == 1)
4501 ? 1 : -1];
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510if ac_fn_c_try_compile "$LINENO"; then :
4511 ac_cv_sys_large_files=no; break
4512fi
4513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h. */
4516#define _LARGE_FILES 1
4517#include <sys/types.h>
4518 /* Check that off_t can represent 2**63 - 1 correctly.
4519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4520 since some C++ compilers masquerading as C compilers
4521 incorrectly reject 9223372036854775807. */
4522#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4524 && LARGE_OFF_T % 2147483647 == 1)
4525 ? 1 : -1];
4526int
4527main ()
4528{
4529
4530 ;
4531 return 0;
4532}
4533_ACEOF
4534if ac_fn_c_try_compile "$LINENO"; then :
4535 ac_cv_sys_large_files=1; break
4536fi
4537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cv_sys_large_files=unknown
4539 break
4540done
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4543$as_echo "$ac_cv_sys_large_files" >&6; }
4544case $ac_cv_sys_large_files in #(
4545 no | unknown) ;;
4546 *)
4547cat >>confdefs.h <<_ACEOF
4548#define _LARGE_FILES $ac_cv_sys_large_files
4549_ACEOF
4550;;
4551esac
4552rm -rf conftest*
4553 fi
4554fi
4555
4556
4557
81ecdfbb
RW
4558
4559
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4561$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4562if test "${am_cv_prog_cc_stdc+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564else
4565 am_cv_prog_cc_stdc=no
4566ac_save_CC="$CC"
4567# Don't try gcc -ansi; that turns off useful extensions and
4568# breaks some systems' header files.
4569# AIX -qlanglvl=ansi
4570# Ultrix and OSF/1 -std1
4571# HP-UX 10.20 and later -Ae
4572# HP-UX older versions -Aa -D_HPUX_SOURCE
4573# SVR4 -Xc -D__EXTENSIONS__
4574for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4575do
783e057b 4576 CC="$ac_save_CC $ac_arg"
81ecdfbb 4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
4578/* end confdefs.h. */
4579#include <stdarg.h>
4580#include <stdio.h>
4581#include <sys/types.h>
4582#include <sys/stat.h>
4583/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4584struct buf { int x; };
4585FILE * (*rcsopen) (struct buf *, struct stat *, int);
4586static char *e (p, i)
4587 char **p;
4588 int i;
4589{
4590 return p[i];
4591}
4592static char *f (char * (*g) (char **, int), char **p, ...)
4593{
4594 char *s;
4595 va_list v;
4596 va_start (v,p);
4597 s = g (p, va_arg (v,int));
4598 va_end (v);
4599 return s;
4600}
4601int test (int i, double x);
4602struct s1 {int (*f) (int a);};
4603struct s2 {int (*f) (double a);};
4604int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4605int argc;
4606char **argv;
4607
4608int
4609main ()
4610{
4611
4612return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4613
4614 ;
4615 return 0;
4616}
4617_ACEOF
81ecdfbb 4618if ac_fn_c_try_compile "$LINENO"; then :
783e057b 4619 am_cv_prog_cc_stdc="$ac_arg"; break
783e057b 4620fi
81ecdfbb 4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b
DJ
4622done
4623CC="$ac_save_CC"
4624
4625fi
4626
4627if test -z "$am_cv_prog_cc_stdc"; then
81ecdfbb
RW
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4629$as_echo "none needed" >&6; }
783e057b 4630else
81ecdfbb
RW
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4632$as_echo "$am_cv_prog_cc_stdc" >&6; }
783e057b
DJ
4633fi
4634case "x$am_cv_prog_cc_stdc" in
4635 x|xno) ;;
4636 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4637esac
4638
4639
4640ac_aux_dir=
81ecdfbb
RW
4641for ac_dir in .. "$srcdir"/..; do
4642 for ac_t in install-sh install.sh shtool; do
4643 if test -f "$ac_dir/$ac_t"; then
4644 ac_aux_dir=$ac_dir
4645 ac_install_sh="$ac_aux_dir/$ac_t -c"
4646 break 2
4647 fi
4648 done
783e057b
DJ
4649done
4650if test -z "$ac_aux_dir"; then
81ecdfbb 4651 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
783e057b 4652fi
81ecdfbb
RW
4653
4654# These three variables are undocumented and unsupported,
4655# and are intended to be withdrawn in a future Autoconf release.
4656# They can cause serious problems if a builder's source tree is in a directory
4657# whose full name contains unusual characters.
4658ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4659ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4660ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4661
783e057b 4662
783e057b 4663
81ecdfbb 4664
a417dc56
RW
4665# Dependency checking.
4666rm -rf .tst 2>/dev/null
4667mkdir .tst 2>/dev/null
4668if test -d .tst; then
4669 am__leading_dot=.
4670else
4671 am__leading_dot=_
4672fi
4673rmdir .tst 2>/dev/null
4674
4675DEPDIR="${am__leading_dot}deps"
4676
81ecdfbb 4677ac_config_commands="$ac_config_commands depdir"
a417dc56
RW
4678
4679
4680depcc="$CC" am_compiler_list=
4681
4682am_depcomp=$ac_aux_dir/depcomp
81ecdfbb
RW
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4684$as_echo_n "checking dependency style of $depcc... " >&6; }
4685if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
a417dc56
RW
4687else
4688 if test -f "$am_depcomp"; then
4689 # We make a subdir and do the tests there. Otherwise we can end up
4690 # making bogus files that we don't know about and never remove. For
4691 # instance it was reported that on HP-UX the gcc test will end up
4692 # making a dummy file named `D' -- because `-MD' means `put the output
4693 # in D'.
4694 mkdir conftest.dir
4695 # Copy depcomp to subdir because otherwise we won't find it if we're
4696 # using a relative directory.
4697 cp "$am_depcomp" conftest.dir
4698 cd conftest.dir
4699 # We will build objects and dependencies in a subdirectory because
4700 # it helps to detect inapplicable dependency modes. For instance
4701 # both Tru64's cc and ICC support -MD to output dependencies as a
4702 # side effect of compilation, but ICC will put the dependencies in
4703 # the current directory while Tru64 will put them in the object
4704 # directory.
4705 mkdir sub
4706
4707 am_cv_CC_dependencies_compiler_type=none
4708 if test "$am_compiler_list" = ""; then
4709 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4710 fi
4711 for depmode in $am_compiler_list; do
4712 if test $depmode = none; then break; fi
4713
81ecdfbb 4714 $as_echo "$as_me:$LINENO: trying $depmode" >&5
a417dc56
RW
4715 # Setup a source with many dependencies, because some compilers
4716 # like to wrap large dependency lists on column 80 (with \), and
4717 # we should not choose a depcomp mode which is confused by this.
4718 #
4719 # We need to recreate these files for each test, as the compiler may
4720 # overwrite some of them when testing with obscure command lines.
4721 # This happens at least with the AIX C compiler.
4722 : > sub/conftest.c
4723 for i in 1 2 3 4 5 6; do
4724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4725 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4726 # Solaris 8's {/usr,}/bin/sh.
4727 touch sub/conftst$i.h
4728 done
4729 echo "include sub/conftest.Po" > confmf
4730
4731 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4732 # mode. It turns out that the SunPro C++ compiler does not properly
4733 # handle `-M -o', and we need to detect this.
4734 depcmd="depmode=$depmode \
4735 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4736 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4737 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4738 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4739 if env $depcmd > conftest.err 2>&1 &&
4740 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4741 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4742 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4743 # icc doesn't choke on unknown options, it will just issue warnings
4744 # or remarks (even with -Werror). So we grep stderr for any message
4745 # that says an option was ignored or not supported.
4746 # When given -MP, icc 7.0 and 7.1 complain thusly:
4747 # icc: Command line warning: ignoring option '-M'; no argument required
4748 # The diagnosis changed in icc 8.0:
4749 # icc: Command line remark: option '-MP' not supported
4750 if (grep 'ignoring option' conftest.err ||
4751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4752 am_cv_CC_dependencies_compiler_type=$depmode
81ecdfbb 4753 $as_echo "$as_me:$LINENO: success" >&5
a417dc56
RW
4754 break
4755 fi
4756 fi
81ecdfbb 4757 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
a417dc56
RW
4758 sed -e 's/^/| /' < conftest.err >&5
4759 done
4760
4761 cd ..
4762 rm -rf conftest.dir
4763else
4764 am_cv_CC_dependencies_compiler_type=none
4765fi
4766
4767fi
81ecdfbb
RW
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4769$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
a417dc56 4770if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
81ecdfbb 4771then as_fn_error "no usable dependency style found" "$LINENO" 5
a417dc56
RW
4772else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4773
4774fi
4775
4776
4777# Check for the 'make' the user wants to use.
4778for ac_prog in make
4779do
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
4784if test "${ac_cv_prog_MAKE+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
a417dc56
RW
4786else
4787 if test -n "$MAKE"; then
4788 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a417dc56 4797 ac_cv_prog_MAKE="$ac_prog"
81ecdfbb 4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a417dc56
RW
4799 break 2
4800 fi
4801done
81ecdfbb
RW
4802 done
4803IFS=$as_save_IFS
a417dc56
RW
4804
4805fi
4806fi
4807MAKE=$ac_cv_prog_MAKE
4808if test -n "$MAKE"; then
81ecdfbb
RW
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4810$as_echo "$MAKE" >&6; }
a417dc56 4811else
81ecdfbb
RW
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
a417dc56
RW
4814fi
4815
81ecdfbb 4816
a417dc56
RW
4817 test -n "$MAKE" && break
4818done
4819
4820MAKE_IS_GNU=
4821case "`$MAKE --version 2>&1 | sed 1q`" in
4822 *GNU*)
4823 MAKE_IS_GNU=yes
4824 ;;
4825esac
81ecdfbb 4826 if test "$MAKE_IS_GNU" = yes; then
a417dc56
RW
4827 GMAKE_TRUE=
4828 GMAKE_FALSE='#'
4829else
4830 GMAKE_TRUE='#'
4831 GMAKE_FALSE=
4832fi
4833
81ecdfbb
RW
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4835$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4836set x ${MAKE-make}
4837ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4838if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4839 $as_echo_n "(cached) " >&6
a417dc56
RW
4840else
4841 cat >conftest.make <<\_ACEOF
81ecdfbb 4842SHELL = /bin/sh
a417dc56 4843all:
81ecdfbb 4844 @echo '@@@%%%=$(MAKE)=@@@%%%'
a417dc56
RW
4845_ACEOF
4846# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
4847case `${MAKE-make} -f conftest.make 2>/dev/null` in
4848 *@@@%%%=?*=@@@%%%*)
4849 eval ac_cv_prog_make_${ac_make}_set=yes;;
4850 *)
4851 eval ac_cv_prog_make_${ac_make}_set=no;;
4852esac
a417dc56
RW
4853rm -f conftest.make
4854fi
81ecdfbb
RW
4855if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4857$as_echo "yes" >&6; }
a417dc56
RW
4858 SET_MAKE=
4859else
81ecdfbb
RW
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861$as_echo "no" >&6; }
a417dc56
RW
4862 SET_MAKE="MAKE=${MAKE-make}"
4863fi
4864
4865
783e057b
DJ
4866
4867CONFIG_OBS=
4868CONFIG_DEPS=
4869CONFIG_SRCS=
4870ENABLE_CFLAGS=
4871
4872CONFIG_ALL=
4873CONFIG_CLEAN=
4874CONFIG_INSTALL=
4875CONFIG_UNINSTALL=
4876
4877# If we haven't got the data from the intl directory,
4878# assume NLS is disabled.
4879USE_NLS=no
4880LIBINTL=
4881LIBINTL_DEP=
4882INCINTL=
4883XGETTEXT=
4884GMSGFMT=
4885POSUB=
4886
4887if test -f ../intl/config.intl; then
4888 . ../intl/config.intl
4889fi
81ecdfbb
RW
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4891$as_echo_n "checking whether NLS is requested... " >&6; }
783e057b 4892if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
783e057b 4895else
81ecdfbb
RW
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4897$as_echo "yes" >&6; }
783e057b 4898
81ecdfbb 4899$as_echo "#define ENABLE_NLS 1" >>confdefs.h
783e057b
DJ
4900
4901
81ecdfbb
RW
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4903$as_echo_n "checking for catalogs to be installed... " >&6; }
783e057b
DJ
4904 # Look for .po and .gmo files in the source directory.
4905 CATALOGS=
4906 XLINGUAS=
4907 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4908 # If there aren't any .gmo files the shell will give us the
4909 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4910 # weeded out.
4911 case "$cat" in *\**)
4912 continue;;
4913 esac
4914 # The quadruple backslash is collapsed to a double backslash
4915 # by the backticks, then collapsed again by the double quotes,
4916 # leaving us with one backslash in the sed expression (right
4917 # before the dot that mustn't act as a wildcard).
4918 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4919 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4920 # The user is allowed to set LINGUAS to a list of languages to
4921 # install catalogs for. If it's empty that means "all of them."
4922 if test "x$LINGUAS" = x; then
4923 CATALOGS="$CATALOGS $cat"
4924 XLINGUAS="$XLINGUAS $lang"
4925 else
4926 case "$LINGUAS" in *$lang*)
4927 CATALOGS="$CATALOGS $cat"
4928 XLINGUAS="$XLINGUAS $lang"
4929 ;;
4930 esac
4931 fi
4932 done
4933 LINGUAS="$XLINGUAS"
81ecdfbb
RW
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4935$as_echo "$LINGUAS" >&6; }
783e057b
DJ
4936
4937
4938 DATADIRNAME=share
4939
4940 INSTOBJEXT=.mo
4941
4942 GENCAT=gencat
4943
4944 CATOBJEXT=.gmo
4945
4946fi
4947
4948localedir='${datadir}/locale'
4949
4950
4951if test x"$USE_NLS" = xyes; then
4952 CONFIG_ALL="$CONFIG_ALL all-po"
4953 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4954 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4955 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4956fi
4957
4958
f434ba03
PA
4959
4960
4961
4962 LIBC_FATAL_STDERR_=1
4963 export LIBC_FATAL_STDERR_
4964
4965
4966
4967
4968
4969 for ac_header in $gl_header_list
4970do :
4971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4973eval as_val=\$$as_ac_Header
4974 if test "x$as_val" = x""yes; then :
4975 cat >>confdefs.h <<_ACEOF
4976#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977_ACEOF
4978
4979fi
4980
4981done
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991 for ac_func in $gl_func_list
4992do :
4993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4994ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4995eval as_val=\$$as_ac_var
4996 if test "x$as_val" = x""yes; then :
4997 cat >>confdefs.h <<_ACEOF
4998#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4999_ACEOF
5000
5001fi
5002done
5003
5004
5005
5006
5007
5008
5009 GNULIB_MEMCHR=0;
5010 GNULIB_MEMMEM=0;
5011 GNULIB_MEMPCPY=0;
5012 GNULIB_MEMRCHR=0;
5013 GNULIB_RAWMEMCHR=0;
5014 GNULIB_STPCPY=0;
5015 GNULIB_STPNCPY=0;
5016 GNULIB_STRCHRNUL=0;
5017 GNULIB_STRDUP=0;
5018 GNULIB_STRNCAT=0;
5019 GNULIB_STRNDUP=0;
5020 GNULIB_STRNLEN=0;
5021 GNULIB_STRPBRK=0;
5022 GNULIB_STRSEP=0;
5023 GNULIB_STRSTR=0;
5024 GNULIB_STRCASESTR=0;
5025 GNULIB_STRTOK_R=0;
5026 GNULIB_MBSLEN=0;
5027 GNULIB_MBSNLEN=0;
5028 GNULIB_MBSCHR=0;
5029 GNULIB_MBSRCHR=0;
5030 GNULIB_MBSSTR=0;
5031 GNULIB_MBSCASECMP=0;
5032 GNULIB_MBSNCASECMP=0;
5033 GNULIB_MBSPCASECMP=0;
5034 GNULIB_MBSCASESTR=0;
5035 GNULIB_MBSCSPN=0;
5036 GNULIB_MBSPBRK=0;
5037 GNULIB_MBSSPN=0;
5038 GNULIB_MBSSEP=0;
5039 GNULIB_MBSTOK_R=0;
5040 GNULIB_STRERROR=0;
5041 GNULIB_STRSIGNAL=0;
5042 GNULIB_STRVERSCMP=0;
5043 HAVE_MBSLEN=0;
5044 HAVE_MEMCHR=1;
5045 HAVE_DECL_MEMMEM=1;
5046 HAVE_MEMPCPY=1;
5047 HAVE_DECL_MEMRCHR=1;
5048 HAVE_RAWMEMCHR=1;
5049 HAVE_STPCPY=1;
5050 HAVE_STPNCPY=1;
5051 HAVE_STRCHRNUL=1;
5052 HAVE_DECL_STRDUP=1;
5053 HAVE_DECL_STRNDUP=1;
5054 HAVE_DECL_STRNLEN=1;
5055 HAVE_STRPBRK=1;
5056 HAVE_STRSEP=1;
5057 HAVE_STRCASESTR=1;
5058 HAVE_DECL_STRTOK_R=1;
5059 HAVE_DECL_STRSIGNAL=1;
5060 HAVE_STRVERSCMP=1;
5061 REPLACE_MEMCHR=0;
783e057b 5062 REPLACE_MEMMEM=0;
f434ba03
PA
5063 REPLACE_STPNCPY=0;
5064 REPLACE_STRDUP=0;
783e057b 5065 REPLACE_STRSTR=0;
f434ba03
PA
5066 REPLACE_STRCASESTR=0;
5067 REPLACE_STRERROR=0;
5068 REPLACE_STRNCAT=0;
5069 REPLACE_STRNDUP=0;
5070 REPLACE_STRNLEN=0;
5071 REPLACE_STRSIGNAL=0;
5072 REPLACE_STRTOK_R=0;
5073 UNDEFINE_STRTOK_R=0;
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5088 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5089 # irrelevant for anonymous mappings.
5090 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5091if test "x$ac_cv_func_mmap" = x""yes; then :
5092 gl_have_mmap=yes
5093else
5094 gl_have_mmap=no
5095fi
5096
5097
5098 # Try to allow MAP_ANONYMOUS.
5099 gl_have_mmap_anonymous=no
5100 if test $gl_have_mmap = yes; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5102$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h. */
5105
5106#include <sys/mman.h>
5107#ifdef MAP_ANONYMOUS
5108 I cant identify this map.
5109#endif
5110
5111_ACEOF
5112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5113 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5114 gl_have_mmap_anonymous=yes
5115fi
5116rm -f conftest*
5117
5118 if test $gl_have_mmap_anonymous != yes; then
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120/* end confdefs.h. */
5121
5122#include <sys/mman.h>
5123#ifdef MAP_ANON
5124 I cant identify this map.
5125#endif
5126
5127_ACEOF
5128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5129 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5130
5131$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5132
5133 gl_have_mmap_anonymous=yes
5134fi
5135rm -f conftest*
5136
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5139$as_echo "$gl_have_mmap_anonymous" >&6; }
5140 if test $gl_have_mmap_anonymous = yes; then
5141
5142$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5143
5144 fi
5145 fi
5146
5147
5148 :
5149
5150
5151
5152
5153
5154
5155 :
5156
5157
5158
5159
5160
5161
5162
5163
5164 :
5165
5166
5167
5168
5169
5170 if test $ac_cv_func_memchr = yes; then
5171 # Detect platform-specific bugs in some versions of glibc:
5172 # memchr should not dereference anything with length 0
5173 # http://bugzilla.redhat.com/499689
5174 # memchr should not dereference overestimated length after a match
5175 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5176 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5177 # Assume that memchr works on platforms that lack mprotect.
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5179$as_echo_n "checking whether memchr works... " >&6; }
5180if test "${gl_cv_func_memchr_works+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5182else
5183 if test "$cross_compiling" = yes; then :
5184 gl_cv_func_memchr_works="guessing no"
5185else
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h. */
5188
5189#include <string.h>
5190#if HAVE_SYS_MMAN_H
5191# include <fcntl.h>
5192# include <unistd.h>
5193# include <sys/types.h>
5194# include <sys/mman.h>
5195# ifndef MAP_FILE
5196# define MAP_FILE 0
5197# endif
5198#endif
5199
5200int
5201main ()
5202{
5203
5204 char *fence = NULL;
5205#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5206# if HAVE_MAP_ANONYMOUS
5207 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5208 const int fd = -1;
5209# else /* !HAVE_MAP_ANONYMOUS */
5210 const int flags = MAP_FILE | MAP_PRIVATE;
5211 int fd = open ("/dev/zero", O_RDONLY, 0666);
5212 if (fd >= 0)
5213# endif
5214 {
5215 int pagesize = getpagesize ();
5216 char *two_pages =
5217 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5218 flags, fd, 0);
5219 if (two_pages != (char *)(-1)
5220 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5221 fence = two_pages + pagesize;
5222 }
5223#endif
5224 if (fence)
5225 {
5226 if (memchr (fence, 0, 0))
5227 return 1;
5228 strcpy (fence - 9, "12345678");
5229 if (memchr (fence - 9, 0, 79) != fence - 1)
5230 return 2;
5231 }
5232 return 0;
5233
5234 ;
5235 return 0;
5236}
5237_ACEOF
5238if ac_fn_c_try_run "$LINENO"; then :
5239 gl_cv_func_memchr_works=yes
5240else
5241 gl_cv_func_memchr_works=no
5242fi
5243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5244 conftest.$ac_objext conftest.beam conftest.$ac_ext
5245fi
5246
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5249$as_echo "$gl_cv_func_memchr_works" >&6; }
5250 if test "$gl_cv_func_memchr_works" != yes; then
5251 REPLACE_MEMCHR=1
5252 fi
5253 else
5254 HAVE_MEMCHR=0
5255 fi
5256 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5257
5258
5259
5260
5261
5262
5263
5264
5265 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5266
5267
5268 for ac_header in bp-sym.h
5269do :
5270 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5271if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5272 cat >>confdefs.h <<_ACEOF
5273#define HAVE_BP_SYM_H 1
5274_ACEOF
5275
5276fi
5277
5278done
5279
5280
5281 fi
783e057b
DJ
5282
5283
81ecdfbb
RW
5284 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5285if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5286 ac_have_decl=1
783e057b 5287else
81ecdfbb 5288 ac_have_decl=0
783e057b 5289fi
783e057b
DJ
5290
5291cat >>confdefs.h <<_ACEOF
81ecdfbb 5292#define HAVE_DECL_MEMMEM $ac_have_decl
783e057b
DJ
5293_ACEOF
5294
5295
783e057b
DJ
5296
5297
5298
5299
5300
5301
5302
5303
783e057b 5304
783e057b 5305
783e057b 5306
f434ba03 5307
81ecdfbb
RW
5308 for ac_func in memmem
5309do :
5310 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5311if test "x$ac_cv_func_memmem" = x""yes; then :
783e057b 5312 cat >>confdefs.h <<_ACEOF
81ecdfbb 5313#define HAVE_MEMMEM 1
783e057b
DJ
5314_ACEOF
5315
5316else
5317
5318 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5319
5320fi
5321done
5322
5323
5324
5325 :
5326
5327
5328
5329
5330
5331 if test $ac_cv_have_decl_memmem = no; then
5332 HAVE_DECL_MEMMEM=0
5333 fi
5334 :
5335
5336
f434ba03
PA
5337 gl_cv_c_multiarch=no
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h. */
5340#ifndef __APPLE_CC__
5341 not a universal capable compiler
5342 #endif
5343 typedef int dummy;
5344
5345_ACEOF
5346if ac_fn_c_try_compile "$LINENO"; then :
5347
5348 arch=
5349 prev=
5350 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5351 if test -n "$prev"; then
5352 case $word in
5353 i?86 | x86_64 | ppc | ppc64)
5354 if test -z "$arch" || test "$arch" = "$word"; then
5355 arch="$word"
5356 else
5357 gl_cv_c_multiarch=yes
5358 fi
5359 ;;
5360 esac
5361 prev=
5362 else
5363 if test "x$word" = "x-arch"; then
5364 prev=arch
5365 fi
5366 fi
5367 done
5368
5369fi
5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 if test $gl_cv_c_multiarch = yes; then
5372
5373$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5374
5375 APPLE_UNIVERSAL_BUILD=1
5376 else
5377 APPLE_UNIVERSAL_BUILD=0
5378 fi
5379
5380
5381
5382 REPLACE_NULL=0;
5383 HAVE_WCHAR_T=1;
5384 STDDEF_H='';
5385
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5388$as_echo_n "checking for wchar_t... " >&6; }
5389if test "${gt_cv_c_wchar_t+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5391else
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h. */
5394#include <stddef.h>
5395 wchar_t foo = (wchar_t)'\0';
5396int
5397main ()
5398{
5399
5400 ;
5401 return 0;
5402}
5403_ACEOF
5404if ac_fn_c_try_compile "$LINENO"; then :
5405 gt_cv_c_wchar_t=yes
5406else
5407 gt_cv_c_wchar_t=no
5408fi
5409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410fi
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5412$as_echo "$gt_cv_c_wchar_t" >&6; }
5413 if test $gt_cv_c_wchar_t = yes; then
5414
5415$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5416
5417 fi
5418
5419
5420
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5422$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5423if test "${gl_cv_have_include_next+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5425else
5426 rm -rf conftestd1a conftestd1b conftestd2
5427 mkdir conftestd1a conftestd1b conftestd2
5428 cat <<EOF > conftestd1a/conftest.h
5429#define DEFINED_IN_CONFTESTD1
5430#include_next <conftest.h>
5431#ifdef DEFINED_IN_CONFTESTD2
5432int foo;
5433#else
5434#error "include_next doesn't work"
5435#endif
5436EOF
5437 cat <<EOF > conftestd1b/conftest.h
5438#define DEFINED_IN_CONFTESTD1
5439#include <stdio.h>
5440#include_next <conftest.h>
5441#ifdef DEFINED_IN_CONFTESTD2
5442int foo;
5443#else
5444#error "include_next doesn't work"
5445#endif
5446EOF
5447 cat <<EOF > conftestd2/conftest.h
5448#ifndef DEFINED_IN_CONFTESTD1
5449#error "include_next test doesn't work"
5450#endif
5451#define DEFINED_IN_CONFTESTD2
5452EOF
5453 gl_save_CPPFLAGS="$CPPFLAGS"
5454 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h. */
5457#include <conftest.h>
5458_ACEOF
5459if ac_fn_c_try_compile "$LINENO"; then :
5460 gl_cv_have_include_next=yes
5461else
5462 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h. */
5465#include <conftest.h>
5466_ACEOF
5467if ac_fn_c_try_compile "$LINENO"; then :
5468 gl_cv_have_include_next=buggy
5469else
5470 gl_cv_have_include_next=no
5471fi
5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473
5474fi
5475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 CPPFLAGS="$gl_save_CPPFLAGS"
5477 rm -rf conftestd1a conftestd1b conftestd2
5478
5479fi
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5481$as_echo "$gl_cv_have_include_next" >&6; }
5482 PRAGMA_SYSTEM_HEADER=
5483 if test $gl_cv_have_include_next = yes; then
5484 INCLUDE_NEXT=include_next
5485 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5486 if test -n "$GCC"; then
5487 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5488 fi
5489 else
5490 if test $gl_cv_have_include_next = buggy; then
5491 INCLUDE_NEXT=include
5492 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5493 else
5494 INCLUDE_NEXT=include
5495 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5496 fi
5497 fi
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
81ecdfbb
RW
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5509$as_echo_n "checking for long long int... " >&6; }
5510if test "${ac_cv_type_long_long_int+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
783e057b 5512else
81ecdfbb 5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b 5514/* end confdefs.h. */
81ecdfbb
RW
5515
5516 /* For now, do not test the preprocessor; as of 2007 there are too many
f434ba03
PA
5517 implementations with broken preprocessors. Perhaps this can
5518 be revisited in 2012. In the meantime, code should not expect
5519 #if to work with literals wider than 32 bits. */
783e057b
DJ
5520 /* Test literals. */
5521 long long int ll = 9223372036854775807ll;
5522 long long int nll = -9223372036854775807LL;
5523 unsigned long long int ull = 18446744073709551615ULL;
5524 /* Test constant expressions. */
5525 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
f434ba03 5526 ? 1 : -1)];
783e057b 5527 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
f434ba03 5528 ? 1 : -1)];
783e057b
DJ
5529 int i = 63;
5530int
5531main ()
5532{
5533/* Test availability of runtime routines for shift and division. */
5534 long long int llmax = 9223372036854775807ll;
5535 unsigned long long int ullmax = 18446744073709551615ull;
5536 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
f434ba03
PA
5537 | (llmax / ll) | (llmax % ll)
5538 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5539 | (ullmax / ull) | (ullmax % ull));
783e057b
DJ
5540 ;
5541 return 0;
5542}
5543
5544_ACEOF
81ecdfbb 5545if ac_fn_c_try_link "$LINENO"; then :
f434ba03 5546 if test "$cross_compiling" = yes; then :
783e057b
DJ
5547 ac_cv_type_long_long_int=yes
5548else
81ecdfbb 5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
5550/* end confdefs.h. */
5551#include <limits.h>
f434ba03
PA
5552 #ifndef LLONG_MAX
5553 # define HALF \
5554 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5555 # define LLONG_MAX (HALF - 1 + HALF)
5556 #endif
783e057b
DJ
5557int
5558main ()
5559{
5560long long int n = 1;
f434ba03
PA
5561 int i;
5562 for (i = 0; ; i++)
5563 {
5564 long long int m = n << i;
5565 if (m >> i != n)
5566 return 1;
5567 if (LLONG_MAX / 2 < m)
5568 break;
5569 }
5570 return 0;
783e057b
DJ
5571 ;
5572 return 0;
5573}
5574_ACEOF
81ecdfbb 5575if ac_fn_c_try_run "$LINENO"; then :
783e057b
DJ
5576 ac_cv_type_long_long_int=yes
5577else
81ecdfbb 5578 ac_cv_type_long_long_int=no
783e057b 5579fi
81ecdfbb
RW
5580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5581 conftest.$ac_objext conftest.beam conftest.$ac_ext
783e057b 5582fi
783e057b 5583
81ecdfbb
RW
5584else
5585 ac_cv_type_long_long_int=no
783e057b 5586fi
81ecdfbb
RW
5587rm -f core conftest.err conftest.$ac_objext \
5588 conftest$ac_exeext conftest.$ac_ext
783e057b 5589fi
81ecdfbb
RW
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5591$as_echo "$ac_cv_type_long_long_int" >&6; }
783e057b
DJ
5592 if test $ac_cv_type_long_long_int = yes; then
5593
81ecdfbb 5594$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
783e057b
DJ
5595
5596 fi
5597
5598
81ecdfbb
RW
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5600$as_echo_n "checking for unsigned long long int... " >&6; }
5601if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5602 $as_echo_n "(cached) " >&6
783e057b 5603else
81ecdfbb 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b 5605/* end confdefs.h. */
81ecdfbb
RW
5606
5607 /* For now, do not test the preprocessor; as of 2007 there are too many
f434ba03
PA
5608 implementations with broken preprocessors. Perhaps this can
5609 be revisited in 2012. In the meantime, code should not expect
5610 #if to work with literals wider than 32 bits. */
783e057b
DJ
5611 /* Test literals. */
5612 long long int ll = 9223372036854775807ll;
5613 long long int nll = -9223372036854775807LL;
5614 unsigned long long int ull = 18446744073709551615ULL;
5615 /* Test constant expressions. */
5616 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
f434ba03 5617 ? 1 : -1)];
783e057b 5618 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
f434ba03 5619 ? 1 : -1)];
783e057b
DJ
5620 int i = 63;
5621int
5622main ()
5623{
5624/* Test availability of runtime routines for shift and division. */
5625 long long int llmax = 9223372036854775807ll;
5626 unsigned long long int ullmax = 18446744073709551615ull;
5627 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
f434ba03
PA
5628 | (llmax / ll) | (llmax % ll)
5629 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5630 | (ullmax / ull) | (ullmax % ull));
783e057b
DJ
5631 ;
5632 return 0;
5633}
5634
5635_ACEOF
81ecdfbb 5636if ac_fn_c_try_link "$LINENO"; then :
783e057b
DJ
5637 ac_cv_type_unsigned_long_long_int=yes
5638else
81ecdfbb 5639 ac_cv_type_unsigned_long_long_int=no
783e057b 5640fi
81ecdfbb
RW
5641rm -f core conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
783e057b 5643fi
81ecdfbb
RW
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5645$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
783e057b
DJ
5646 if test $ac_cv_type_unsigned_long_long_int = yes; then
5647
81ecdfbb 5648$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
783e057b
DJ
5649
5650 fi
5651
5652
5653
783e057b
DJ
5654
5655
5656
5657
5658
5659
5660
5661
81ecdfbb
RW
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5663$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5664if test "${ac_cv_c_restrict+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
783e057b
DJ
5666else
5667 ac_cv_c_restrict=no
5668 # The order here caters to the fact that C++ does not require restrict.
5669 for ac_kw in __restrict __restrict__ _Restrict restrict; do
81ecdfbb 5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
5671/* end confdefs.h. */
5672typedef int * int_ptr;
5673 int foo (int_ptr $ac_kw ip) {
5674 return ip[0];
5675 }
5676int
5677main ()
5678{
5679int s[1];
5680 int * $ac_kw t = s;
5681 t[0] = 0;
5682 return foo(t)
5683 ;
5684 return 0;
5685}
5686_ACEOF
81ecdfbb 5687if ac_fn_c_try_compile "$LINENO"; then :
783e057b 5688 ac_cv_c_restrict=$ac_kw
783e057b 5689fi
81ecdfbb 5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b
DJ
5691 test "$ac_cv_c_restrict" != no && break
5692 done
5693
5694fi
81ecdfbb
RW
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5696$as_echo "$ac_cv_c_restrict" >&6; }
783e057b
DJ
5697
5698 case $ac_cv_c_restrict in
5699 restrict) ;;
81ecdfbb 5700 no) $as_echo "#define restrict /**/" >>confdefs.h
783e057b
DJ
5701 ;;
5702 *) cat >>confdefs.h <<_ACEOF
5703#define restrict $ac_cv_c_restrict
5704_ACEOF
5705 ;;
5706 esac
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
f434ba03 5719
783e057b
DJ
5720 :
5721
5722
5723
5724
5725
5726
5727
f434ba03
PA
5728 if test $gl_cv_have_include_next = yes; then
5729 gl_cv_next_string_h='<'string.h'>'
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5732$as_echo_n "checking absolute name of <string.h>... " >&6; }
5733if test "${gl_cv_next_string_h+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5735else
5736
5737 if test $ac_cv_header_string_h = yes; then
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h. */
5740#include <string.h>
5741
5742_ACEOF
5743 case "$host_os" in
5744 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5745 *) gl_absname_cpp="$ac_cpp" ;;
5746 esac
5747 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5748 sed -n '\#/string.h#{
5749 s#.*"\(.*/string.h\)".*#\1#
5750 s#^/[^/]#//&#
5751 p
5752 q
5753 }'`'"'
5754 else
5755 gl_cv_next_string_h='<'string.h'>'
5756 fi
5757
5758fi
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5760$as_echo "$gl_cv_next_string_h" >&6; }
5761 fi
5762 NEXT_STRING_H=$gl_cv_next_string_h
5763
5764 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5765 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5766 gl_next_as_first_directive='<'string.h'>'
5767 else
5768 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5769 gl_next_as_first_directive=$gl_cv_next_string_h
5770 fi
5771 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5772
5773
5774
5775
5776
5777 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5778 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5780$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5781if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5782 $as_echo_n "(cached) " >&6
5783else
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h. */
5786#include <string.h>
5787
5788int
5789main ()
5790{
5791#undef $gl_func
5792 (void) $gl_func;
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"; then :
5798 eval "$as_gl_Symbol=yes"
5799else
5800 eval "$as_gl_Symbol=no"
5801fi
5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803fi
5804eval ac_res=\$$as_gl_Symbol
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5806$as_echo "$ac_res" >&6; }
5807 eval as_val=\$$as_gl_Symbol
5808 if test "x$as_val" = x""yes; then :
5809 cat >>confdefs.h <<_ACEOF
5810#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5811_ACEOF
5812
5813 eval ac_cv_have_decl_$gl_func=yes
5814fi
5815 done
5816
5817
5818
5819 GNULIB_BTOWC=0;
5820 GNULIB_WCTOB=0;
5821 GNULIB_MBSINIT=0;
5822 GNULIB_MBRTOWC=0;
5823 GNULIB_MBRLEN=0;
5824 GNULIB_MBSRTOWCS=0;
5825 GNULIB_MBSNRTOWCS=0;
5826 GNULIB_WCRTOMB=0;
5827 GNULIB_WCSRTOMBS=0;
5828 GNULIB_WCSNRTOMBS=0;
5829 GNULIB_WCWIDTH=0;
5830 HAVE_BTOWC=1;
5831 HAVE_MBSINIT=1;
5832 HAVE_MBRTOWC=1;
5833 HAVE_MBRLEN=1;
5834 HAVE_MBSRTOWCS=1;
5835 HAVE_MBSNRTOWCS=1;
5836 HAVE_WCRTOMB=1;
5837 HAVE_WCSRTOMBS=1;
5838 HAVE_WCSNRTOMBS=1;
5839 HAVE_DECL_WCTOB=1;
5840 HAVE_DECL_WCWIDTH=1;
5841 REPLACE_MBSTATE_T=0;
5842 REPLACE_BTOWC=0;
5843 REPLACE_WCTOB=0;
5844 REPLACE_MBSINIT=0;
5845 REPLACE_MBRTOWC=0;
5846 REPLACE_MBRLEN=0;
5847 REPLACE_MBSRTOWCS=0;
5848 REPLACE_MBSNRTOWCS=0;
5849 REPLACE_WCRTOMB=0;
5850 REPLACE_WCSRTOMBS=0;
5851 REPLACE_WCSNRTOMBS=0;
5852 REPLACE_WCWIDTH=0;
5853
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5856$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5857if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
81ecdfbb 5858 $as_echo_n "(cached) " >&6
783e057b 5859else
f434ba03
PA
5860 gl_cv_header_wchar_h_correct_inline=yes
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862/* end confdefs.h. */
783e057b 5863
f434ba03
PA
5864 #define wcstod renamed_wcstod
5865#include <wchar.h>
5866extern int zero (void);
5867int main () { return zero(); }
5868
5869_ACEOF
5870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5871 (eval $ac_compile) 2>&5
5872 ac_status=$?
5873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874 test $ac_status = 0; }; then
5875 mv conftest.$ac_objext conftest1.$ac_objext
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b 5877/* end confdefs.h. */
f434ba03
PA
5878
5879 #define wcstod renamed_wcstod
5880#include <wchar.h>
5881int zero (void) { return 0; }
783e057b
DJ
5882
5883_ACEOF
f434ba03
PA
5884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5885 (eval $ac_compile) 2>&5
5886 ac_status=$?
5887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888 test $ac_status = 0; }; then
5889 mv conftest.$ac_objext conftest2.$ac_objext
5890 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5891 :
5892 else
5893 gl_cv_header_wchar_h_correct_inline=no
5894 fi
5895 fi
5896 fi
5897 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
783e057b
DJ
5898
5899fi
f434ba03
PA
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5901$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5902 if test $gl_cv_header_wchar_h_correct_inline = no; then
5903 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5904This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5905C99 mode. You have four options:
5906 - Add the flag -fgnu89-inline to CC and reconfigure, or
5907 - Fix your include files, using parts of
5908 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5909 - Use a gcc version older than 4.3, or
5910 - Don't use the flags -std=c99 or -std=gnu99.
5911Configuration aborted." "$LINENO" 5
5912 fi
783e057b
DJ
5913
5914
f434ba03
PA
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5916$as_echo_n "checking for wint_t... " >&6; }
5917if test "${gt_cv_c_wint_t+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5919else
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h. */
783e057b 5922
f434ba03
PA
5923/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5924 <wchar.h>.
5925 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5926 before <wchar.h>. */
5927#include <stddef.h>
5928#include <stdio.h>
5929#include <time.h>
5930#include <wchar.h>
5931 wint_t foo = (wchar_t)'\0';
5932int
5933main ()
5934{
783e057b 5935
f434ba03
PA
5936 ;
5937 return 0;
5938}
5939_ACEOF
5940if ac_fn_c_try_compile "$LINENO"; then :
5941 gt_cv_c_wint_t=yes
5942else
5943 gt_cv_c_wint_t=no
5944fi
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946fi
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5948$as_echo "$gt_cv_c_wint_t" >&6; }
5949 if test $gt_cv_c_wint_t = yes; then
783e057b 5950
f434ba03 5951$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
783e057b 5952
f434ba03 5953 fi
783e057b
DJ
5954
5955
81ecdfbb 5956 if false; then
783e057b
DJ
5957 GL_COND_LIBTOOL_TRUE=
5958 GL_COND_LIBTOOL_FALSE='#'
5959else
5960 GL_COND_LIBTOOL_TRUE='#'
5961 GL_COND_LIBTOOL_FALSE=
5962fi
5963
5964 gl_cond_libtool=false
5965 gl_libdeps=
5966 gl_ltlibdeps=
f434ba03 5967 gl_m4_base='gnulib/m4'
783e057b
DJ
5968
5969
5970
783e057b
DJ
5971
5972
5973
5974
5975
5976
f434ba03
PA
5977 gl_source_base='gnulib'
5978 # Code from module arg-nonnull:
5979 # Code from module c++defs:
5980 # Code from module extensions:
5981 # Code from module include_next:
5982 # Code from module memchr:
783e057b 5983
783e057b 5984
783e057b 5985
783e057b 5986
f434ba03 5987 GNULIB_MEMCHR=1
783e057b 5988
783e057b 5989
783e057b 5990
f434ba03 5991$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
783e057b 5992
783e057b
DJ
5993
5994
f434ba03 5995 # Code from module memmem:
783e057b
DJ
5996
5997
f434ba03
PA
5998 if test $ac_cv_have_decl_memmem = yes; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6000$as_echo_n "checking whether memmem works in linear time... " >&6; }
6001if test "${gl_cv_func_memmem_works+set}" = set; then :
81ecdfbb 6002 $as_echo_n "(cached) " >&6
783e057b 6003else
81ecdfbb 6004 if test "$cross_compiling" = yes; then :
f434ba03 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b 6006/* end confdefs.h. */
783e057b 6007
f434ba03
PA
6008#include <features.h>
6009#ifdef __GNU_LIBRARY__
6010 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6011 Lucky user
6012 #endif
6013#endif
6014#ifdef __CYGWIN__
6015 #include <cygwin/version.h>
6016 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6017 Lucky user
6018 #endif
6019#endif
783e057b 6020
783e057b 6021_ACEOF
f434ba03
PA
6022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023 $EGREP "Lucky user" >/dev/null 2>&1; then :
6024 gl_cv_func_memmem_works=yes
783e057b 6025else
f434ba03 6026 gl_cv_func_memmem_works="guessing no"
783e057b 6027fi
f434ba03 6028rm -f conftest*
783e057b
DJ
6029
6030
783e057b 6031else
81ecdfbb 6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6033/* end confdefs.h. */
6034
f434ba03 6035#include <signal.h> /* for signal */
783e057b
DJ
6036#include <string.h> /* for memmem */
6037#include <stdlib.h> /* for malloc */
6038#include <unistd.h> /* for alarm */
6039
6040int
6041main ()
6042{
6043size_t m = 1000000;
6044 char *haystack = (char *) malloc (2 * m + 1);
6045 char *needle = (char *) malloc (m + 1);
6046 void *result = 0;
6047 /* Failure to compile this test due to missing alarm is okay,
6048 since all such platforms (mingw) also lack memmem. */
f434ba03 6049 signal (SIGALRM, SIG_DFL);
783e057b
DJ
6050 alarm (5);
6051 /* Check for quadratic performance. */
6052 if (haystack && needle)
6053 {
f434ba03
PA
6054 memset (haystack, 'A', 2 * m);
6055 haystack[2 * m] = 'B';
6056 memset (needle, 'A', m);
6057 needle[m] = 'B';
6058 result = memmem (haystack, 2 * m + 1, needle, m + 1);
783e057b
DJ
6059 }
6060 /* Check for empty needle behavior. */
6061 return !result || !memmem ("a", 1, 0, 0);
6062 ;
6063 return 0;
6064}
6065_ACEOF
81ecdfbb 6066if ac_fn_c_try_run "$LINENO"; then :
783e057b
DJ
6067 gl_cv_func_memmem_works=yes
6068else
81ecdfbb 6069 gl_cv_func_memmem_works=no
783e057b 6070fi
81ecdfbb
RW
6071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6072 conftest.$ac_objext conftest.beam conftest.$ac_ext
783e057b 6073fi
81ecdfbb 6074
f434ba03 6075
783e057b 6076fi
81ecdfbb
RW
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6078$as_echo "$gl_cv_func_memmem_works" >&6; }
783e057b
DJ
6079 if test "$gl_cv_func_memmem_works" != yes; then
6080 REPLACE_MEMMEM=1
6081
6082
6083
6084
6085
6086
6087
f434ba03 6088
783e057b
DJ
6089 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6090
6091 fi
6092 fi
6093
f434ba03
PA
6094 # Code from module memmem-simple:
6095
783e057b
DJ
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
81ecdfbb
RW
6107 for ac_func in memmem
6108do :
6109 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6110if test "x$ac_cv_func_memmem" = x""yes; then :
783e057b 6111 cat >>confdefs.h <<_ACEOF
81ecdfbb 6112#define HAVE_MEMMEM 1
783e057b
DJ
6113_ACEOF
6114
6115else
6116
6117 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6118
6119fi
6120done
6121
6122
6123
6124 :
6125
6126
6127
6128
6129
6130 if test $ac_cv_have_decl_memmem = no; then
6131 HAVE_DECL_MEMMEM=0
6132 fi
6133 :
6134
6135
6136
f434ba03 6137
783e057b
DJ
6138 GNULIB_MEMMEM=1
6139
6140
6141
f434ba03
PA
6142$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6143
6144
6145
6146 # Code from module multiarch:
6147
6148 # Code from module stddef:
6149
6150
6151
6152 if test $gt_cv_c_wchar_t = no; then
6153 HAVE_WCHAR_T=0
6154 STDDEF_H=stddef.h
6155 fi
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6157$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6158if test "${gl_cv_decl_null_works+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h. */
6163#include <stddef.h>
6164 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6165
6166int
6167main ()
6168{
6169
6170 ;
6171 return 0;
6172}
6173_ACEOF
6174if ac_fn_c_try_compile "$LINENO"; then :
6175 gl_cv_decl_null_works=yes
6176else
6177 gl_cv_decl_null_works=no
6178fi
6179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180fi
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6182$as_echo "$gl_cv_decl_null_works" >&6; }
6183 if test $gl_cv_decl_null_works = no; then
6184 REPLACE_NULL=1
6185 STDDEF_H=stddef.h
6186 fi
6187 if test -n "$STDDEF_H"; then
6188
6189
6190
6191
6192 :
6193
6194
6195
6196
6197
6198
6199
6200 if test $gl_cv_have_include_next = yes; then
6201 gl_cv_next_stddef_h='<'stddef.h'>'
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6204$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6205if test "${gl_cv_next_stddef_h+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207else
6208
6209 if test $ac_cv_header_stddef_h = yes; then
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h. */
6212#include <stddef.h>
6213
6214_ACEOF
6215 case "$host_os" in
6216 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6217 *) gl_absname_cpp="$ac_cpp" ;;
6218 esac
6219 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6220 sed -n '\#/stddef.h#{
6221 s#.*"\(.*/stddef.h\)".*#\1#
6222 s#^/[^/]#//&#
6223 p
6224 q
6225 }'`'"'
6226 else
6227 gl_cv_next_stddef_h='<'stddef.h'>'
6228 fi
6229
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6232$as_echo "$gl_cv_next_stddef_h" >&6; }
6233 fi
6234 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6235
6236 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6238 gl_next_as_first_directive='<'stddef.h'>'
6239 else
6240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6241 gl_next_as_first_directive=$gl_cv_next_stddef_h
6242 fi
6243 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6244
6245
6246
6247 fi
6248
6249 # Code from module stdint:
6250
6251
783e057b
DJ
6252
6253 if test $ac_cv_type_long_long_int = yes; then
6254 HAVE_LONG_LONG_INT=1
6255 else
6256 HAVE_LONG_LONG_INT=0
6257 fi
6258
6259
6260 if test $ac_cv_type_unsigned_long_long_int = yes; then
6261 HAVE_UNSIGNED_LONG_LONG_INT=1
6262 else
6263 HAVE_UNSIGNED_LONG_LONG_INT=0
6264 fi
6265
6266
6267 if test $ac_cv_header_inttypes_h = yes; then
6268 HAVE_INTTYPES_H=1
6269 else
6270 HAVE_INTTYPES_H=0
6271 fi
6272
6273
6274 if test $ac_cv_header_sys_types_h = yes; then
6275 HAVE_SYS_TYPES_H=1
6276 else
6277 HAVE_SYS_TYPES_H=0
6278 fi
6279
6280
6281
6282
6283
f434ba03 6284
783e057b
DJ
6285 :
6286
6287
6288
6289
6290
6291
6292
6293 if test $gl_cv_have_include_next = yes; then
6294 gl_cv_next_stdint_h='<'stdint.h'>'
6295 else
81ecdfbb
RW
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6297$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6298if test "${gl_cv_next_stdint_h+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
783e057b
DJ
6300else
6301
f434ba03
PA
6302 if test $ac_cv_header_stdint_h = yes; then
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6304/* end confdefs.h. */
6305#include <stdint.h>
6306
6307_ACEOF
f434ba03
PA
6308 case "$host_os" in
6309 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6310 *) gl_absname_cpp="$ac_cpp" ;;
6311 esac
6312 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6313 sed -n '\#/stdint.h#{
6314 s#.*"\(.*/stdint.h\)".*#\1#
6315 s#^/[^/]#//&#
6316 p
6317 q
6318 }'`'"'
6319 else
6320 gl_cv_next_stdint_h='<'stdint.h'>'
6321 fi
783e057b
DJ
6322
6323fi
81ecdfbb
RW
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6325$as_echo "$gl_cv_next_stdint_h" >&6; }
783e057b
DJ
6326 fi
6327 NEXT_STDINT_H=$gl_cv_next_stdint_h
6328
f434ba03
PA
6329 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6331 gl_next_as_first_directive='<'stdint.h'>'
6332 else
6333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6334 gl_next_as_first_directive=$gl_cv_next_stdint_h
6335 fi
6336 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6337
783e057b
DJ
6338
6339
6340 if test $ac_cv_header_stdint_h = yes; then
6341 HAVE_STDINT_H=1
6342 else
6343 HAVE_STDINT_H=0
6344 fi
6345
6346
6347 if test $ac_cv_header_stdint_h = yes; then
81ecdfbb
RW
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6349$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6350if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
783e057b
DJ
6352else
6353 gl_cv_header_working_stdint_h=no
81ecdfbb 6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6355/* end confdefs.h. */
6356
81ecdfbb 6357
783e057b
DJ
6358#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6359#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6360#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6361#include <stdint.h>
6362/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6363#if !(defined WCHAR_MIN && defined WCHAR_MAX)
6364#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6365#endif
6366
6367
6368 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6369 included before <wchar.h>. */
6370 #include <stddef.h>
6371 #include <signal.h>
6372 #if HAVE_WCHAR_H
6373 # include <stdio.h>
6374 # include <time.h>
6375 # include <wchar.h>
6376 #endif
6377
6378
6379#ifdef INT8_MAX
6380int8_t a1 = INT8_MAX;
6381int8_t a1min = INT8_MIN;
6382#endif
6383#ifdef INT16_MAX
6384int16_t a2 = INT16_MAX;
6385int16_t a2min = INT16_MIN;
6386#endif
6387#ifdef INT32_MAX
6388int32_t a3 = INT32_MAX;
6389int32_t a3min = INT32_MIN;
6390#endif
6391#ifdef INT64_MAX
6392int64_t a4 = INT64_MAX;
6393int64_t a4min = INT64_MIN;
6394#endif
6395#ifdef UINT8_MAX
6396uint8_t b1 = UINT8_MAX;
6397#else
6398typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6399#endif
6400#ifdef UINT16_MAX
6401uint16_t b2 = UINT16_MAX;
6402#endif
6403#ifdef UINT32_MAX
6404uint32_t b3 = UINT32_MAX;
6405#endif
6406#ifdef UINT64_MAX
6407uint64_t b4 = UINT64_MAX;
6408#endif
6409int_least8_t c1 = INT8_C (0x7f);
6410int_least8_t c1max = INT_LEAST8_MAX;
6411int_least8_t c1min = INT_LEAST8_MIN;
6412int_least16_t c2 = INT16_C (0x7fff);
6413int_least16_t c2max = INT_LEAST16_MAX;
6414int_least16_t c2min = INT_LEAST16_MIN;
6415int_least32_t c3 = INT32_C (0x7fffffff);
6416int_least32_t c3max = INT_LEAST32_MAX;
6417int_least32_t c3min = INT_LEAST32_MIN;
6418int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6419int_least64_t c4max = INT_LEAST64_MAX;
6420int_least64_t c4min = INT_LEAST64_MIN;
6421uint_least8_t d1 = UINT8_C (0xff);
6422uint_least8_t d1max = UINT_LEAST8_MAX;
6423uint_least16_t d2 = UINT16_C (0xffff);
6424uint_least16_t d2max = UINT_LEAST16_MAX;
6425uint_least32_t d3 = UINT32_C (0xffffffff);
6426uint_least32_t d3max = UINT_LEAST32_MAX;
6427uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6428uint_least64_t d4max = UINT_LEAST64_MAX;
6429int_fast8_t e1 = INT_FAST8_MAX;
6430int_fast8_t e1min = INT_FAST8_MIN;
6431int_fast16_t e2 = INT_FAST16_MAX;
6432int_fast16_t e2min = INT_FAST16_MIN;
6433int_fast32_t e3 = INT_FAST32_MAX;
6434int_fast32_t e3min = INT_FAST32_MIN;
6435int_fast64_t e4 = INT_FAST64_MAX;
6436int_fast64_t e4min = INT_FAST64_MIN;
6437uint_fast8_t f1 = UINT_FAST8_MAX;
6438uint_fast16_t f2 = UINT_FAST16_MAX;
6439uint_fast32_t f3 = UINT_FAST32_MAX;
6440uint_fast64_t f4 = UINT_FAST64_MAX;
6441#ifdef INTPTR_MAX
6442intptr_t g = INTPTR_MAX;
6443intptr_t gmin = INTPTR_MIN;
6444#endif
6445#ifdef UINTPTR_MAX
6446uintptr_t h = UINTPTR_MAX;
6447#endif
6448intmax_t i = INTMAX_MAX;
6449uintmax_t j = UINTMAX_MAX;
6450
6451#include <limits.h> /* for CHAR_BIT */
6452#define TYPE_MINIMUM(t) \
6453 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6454#define TYPE_MAXIMUM(t) \
6455 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6456struct s {
6457 int check_PTRDIFF:
6458 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6459 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6460 ? 1 : -1;
6461 /* Detect bug in FreeBSD 6.0 / ia64. */
6462 int check_SIG_ATOMIC:
6463 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6464 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6465 ? 1 : -1;
6466 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6467 int check_WCHAR:
6468 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6469 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6470 ? 1 : -1;
6471 /* Detect bug in mingw. */
6472 int check_WINT:
6473 WINT_MIN == TYPE_MINIMUM (wint_t)
6474 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6475 ? 1 : -1;
6476
f434ba03
PA
6477 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6478 int check_UINT8_C:
6479 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6480 int check_UINT16_C:
6481 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6482
6483 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6484#ifdef UINT8_MAX
6485 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6486#endif
6487#ifdef UINT16_MAX
6488 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6489#endif
6490#ifdef UINT32_MAX
6491 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6492#endif
6493#ifdef UINT64_MAX
6494 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6495#endif
6496 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6497 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6498 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6499 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6500 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6501 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6502 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6503 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6504 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6505 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6506 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6507};
6508
6509int
6510main ()
6511{
6512
6513 ;
6514 return 0;
6515}
6516_ACEOF
6517if ac_fn_c_try_compile "$LINENO"; then :
6518 if test "$cross_compiling" = yes; then :
6519 gl_cv_header_working_stdint_h=yes
6520
6521else
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523/* end confdefs.h. */
6524
6525
6526#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6527#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6528#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6529#include <stdint.h>
6530
783e057b 6531
f434ba03
PA
6532 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6533 included before <wchar.h>. */
6534 #include <stddef.h>
6535 #include <signal.h>
6536 #if HAVE_WCHAR_H
6537 # include <stdio.h>
6538 # include <time.h>
6539 # include <wchar.h>
6540 #endif
6541
6542
6543#include <stdio.h>
6544#include <string.h>
6545#define MVAL(macro) MVAL1(macro)
6546#define MVAL1(expression) #expression
6547static const char *macro_values[] =
6548 {
6549#ifdef INT8_MAX
6550 MVAL (INT8_MAX),
6551#endif
6552#ifdef INT16_MAX
6553 MVAL (INT16_MAX),
6554#endif
6555#ifdef INT32_MAX
6556 MVAL (INT32_MAX),
6557#endif
6558#ifdef INT64_MAX
6559 MVAL (INT64_MAX),
6560#endif
783e057b 6561#ifdef UINT8_MAX
f434ba03 6562 MVAL (UINT8_MAX),
783e057b
DJ
6563#endif
6564#ifdef UINT16_MAX
f434ba03 6565 MVAL (UINT16_MAX),
783e057b
DJ
6566#endif
6567#ifdef UINT32_MAX
f434ba03 6568 MVAL (UINT32_MAX),
783e057b
DJ
6569#endif
6570#ifdef UINT64_MAX
f434ba03 6571 MVAL (UINT64_MAX),
783e057b 6572#endif
f434ba03
PA
6573 NULL
6574 };
783e057b
DJ
6575
6576int
6577main ()
6578{
6579
f434ba03
PA
6580 const char **mv;
6581 for (mv = macro_values; *mv != NULL; mv++)
6582 {
6583 const char *value = *mv;
6584 /* Test whether it looks like a cast expression. */
6585 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6586 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6587 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6588 || strncmp (value, "((int)"/*)*/, 6) == 0
6589 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6590 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6591 return 1;
6592 }
6593 return 0;
6594
783e057b
DJ
6595 ;
6596 return 0;
6597}
6598_ACEOF
f434ba03 6599if ac_fn_c_try_run "$LINENO"; then :
783e057b 6600 gl_cv_header_working_stdint_h=yes
f434ba03
PA
6601fi
6602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6603 conftest.$ac_objext conftest.beam conftest.$ac_ext
6604fi
6605
6606
783e057b 6607fi
81ecdfbb 6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f434ba03 6609
783e057b 6610fi
81ecdfbb
RW
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6612$as_echo "$gl_cv_header_working_stdint_h" >&6; }
783e057b
DJ
6613 fi
6614 if test "$gl_cv_header_working_stdint_h" = yes; then
6615 STDINT_H=
6616 else
81ecdfbb
RW
6617 for ac_header in sys/inttypes.h sys/bitypes.h
6618do :
6619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6620ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6621eval as_val=\$$as_ac_Header
6622 if test "x$as_val" = x""yes; then :
783e057b 6623 cat >>confdefs.h <<_ACEOF
81ecdfbb 6624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
783e057b
DJ
6625_ACEOF
6626
6627fi
6628
6629done
6630
6631 if test $ac_cv_header_sys_inttypes_h = yes; then
6632 HAVE_SYS_INTTYPES_H=1
6633 else
6634 HAVE_SYS_INTTYPES_H=0
6635 fi
6636
6637 if test $ac_cv_header_sys_bitypes_h = yes; then
6638 HAVE_SYS_BITYPES_H=1
6639 else
6640 HAVE_SYS_BITYPES_H=0
6641 fi
6642
6643
6644
6645 :
6646
6647
6648
6649
6650
6651
6652
6653
f434ba03
PA
6654 if test $APPLE_UNIVERSAL_BUILD = 0; then
6655
6656
6657 for gltype in ptrdiff_t size_t ; do
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6659$as_echo_n "checking for bit size of $gltype... " >&6; }
6660if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6661 $as_echo_n "(cached) " >&6
6662else
6663 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6664 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6665 included before <wchar.h>. */
6666 #include <stddef.h>
6667 #include <signal.h>
6668 #if HAVE_WCHAR_H
6669 # include <stdio.h>
6670 # include <time.h>
6671 # include <wchar.h>
6672 #endif
6673
6674#include <limits.h>"; then :
6675
6676else
6677 result=unknown
6678fi
6679
6680 eval gl_cv_bitsizeof_${gltype}=\$result
6681
6682fi
6683eval ac_res=\$gl_cv_bitsizeof_${gltype}
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6685$as_echo "$ac_res" >&6; }
6686 eval result=\$gl_cv_bitsizeof_${gltype}
6687 if test $result = unknown; then
6688 result=0
6689 fi
6690 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6691 cat >>confdefs.h <<_ACEOF
6692#define BITSIZEOF_${GLTYPE} $result
6693_ACEOF
6694
6695 eval BITSIZEOF_${GLTYPE}=\$result
6696 done
6697
6698
6699 fi
6700
783e057b 6701
f434ba03 6702 for gltype in sig_atomic_t wchar_t wint_t ; do
81ecdfbb
RW
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6704$as_echo_n "checking for bit size of $gltype... " >&6; }
6705if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6706 $as_echo_n "(cached) " >&6
6707else
6708 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6709 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6710 included before <wchar.h>. */
6711 #include <stddef.h>
6712 #include <signal.h>
6713 #if HAVE_WCHAR_H
6714 # include <stdio.h>
6715 # include <time.h>
6716 # include <wchar.h>
6717 #endif
6718
6719#include <limits.h>"; then :
6720
6721else
6722 result=unknown
6723fi
6724
6725 eval gl_cv_bitsizeof_${gltype}=\$result
6726
6727fi
6728eval ac_res=\$gl_cv_bitsizeof_${gltype}
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6730$as_echo "$ac_res" >&6; }
6731 eval result=\$gl_cv_bitsizeof_${gltype}
6732 if test $result = unknown; then
6733 result=0
6734 fi
6735 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6736 cat >>confdefs.h <<_ACEOF
6737#define BITSIZEOF_${GLTYPE} $result
6738_ACEOF
783e057b 6739
81ecdfbb
RW
6740 eval BITSIZEOF_${GLTYPE}=\$result
6741 done
783e057b
DJ
6742
6743
6744
6745
81ecdfbb
RW
6746 for gltype in sig_atomic_t wchar_t wint_t ; do
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6748$as_echo_n "checking whether $gltype is signed... " >&6; }
6749if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6750 $as_echo_n "(cached) " >&6
783e057b 6751else
81ecdfbb 6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6753/* end confdefs.h. */
6754
6755 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6756 included before <wchar.h>. */
6757 #include <stddef.h>
6758 #include <signal.h>
6759 #if HAVE_WCHAR_H
6760 # include <stdio.h>
6761 # include <time.h>
6762 # include <wchar.h>
6763 #endif
6764
6765 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6766int
6767main ()
6768{
6769
6770 ;
6771 return 0;
6772}
6773_ACEOF
81ecdfbb 6774if ac_fn_c_try_compile "$LINENO"; then :
783e057b
DJ
6775 result=yes
6776else
81ecdfbb 6777 result=no
20e95c23 6778fi
81ecdfbb 6779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b
DJ
6780 eval gl_cv_type_${gltype}_signed=\$result
6781
6782fi
81ecdfbb
RW
6783eval ac_res=\$gl_cv_type_${gltype}_signed
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6785$as_echo "$ac_res" >&6; }
783e057b
DJ
6786 eval result=\$gl_cv_type_${gltype}_signed
6787 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6788 if test "$result" = yes; then
6789 cat >>confdefs.h <<_ACEOF
6790#define HAVE_SIGNED_${GLTYPE} 1
6791_ACEOF
6792
6793 eval HAVE_SIGNED_${GLTYPE}=1
6794 else
6795 eval HAVE_SIGNED_${GLTYPE}=0
6796 fi
6797 done
6798
6799
6800 gl_cv_type_ptrdiff_t_signed=yes
6801 gl_cv_type_size_t_signed=no
f434ba03 6802 if test $APPLE_UNIVERSAL_BUILD = 0; then
783e057b
DJ
6803
6804
f434ba03 6805 for gltype in ptrdiff_t size_t ; do
81ecdfbb
RW
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6807$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6808if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6809 $as_echo_n "(cached) " >&6
c906108c 6810else
783e057b
DJ
6811 eval gl_cv_type_${gltype}_suffix=no
6812 eval result=\$gl_cv_type_${gltype}_signed
6813 if test "$result" = yes; then
6814 glsufu=
6815 else
6816 glsufu=u
6817 fi
6818 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6819 case $glsuf in
6820 '') gltype1='int';;
f434ba03
PA
6821 l) gltype1='long int';;
6822 ll) gltype1='long long int';;
6823 i64) gltype1='__int64';;
6824 u) gltype1='unsigned int';;
6825 ul) gltype1='unsigned long int';;
6826 ull) gltype1='unsigned long long int';;
783e057b
DJ
6827 ui64)gltype1='unsigned __int64';;
6828 esac
81ecdfbb 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6830/* end confdefs.h. */
6831
6832 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6833 included before <wchar.h>. */
6834 #include <stddef.h>
6835 #include <signal.h>
6836 #if HAVE_WCHAR_H
6837 # include <stdio.h>
6838 # include <time.h>
6839 # include <wchar.h>
6840 #endif
6841
6842 extern $gltype foo;
6843 extern $gltype1 foo;
6844int
6845main ()
6846{
6847
6848 ;
6849 return 0;
6850}
6851_ACEOF
81ecdfbb 6852if ac_fn_c_try_compile "$LINENO"; then :
783e057b 6853 eval gl_cv_type_${gltype}_suffix=\$glsuf
783e057b 6854fi
81ecdfbb 6855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
783e057b
DJ
6856 eval result=\$gl_cv_type_${gltype}_suffix
6857 test "$result" != no && break
6858 done
6859fi
81ecdfbb
RW
6860eval ac_res=\$gl_cv_type_${gltype}_suffix
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6862$as_echo "$ac_res" >&6; }
783e057b
DJ
6863 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6864 eval result=\$gl_cv_type_${gltype}_suffix
6865 test "$result" = no && result=
6866 eval ${GLTYPE}_SUFFIX=\$result
6867 cat >>confdefs.h <<_ACEOF
6868#define ${GLTYPE}_SUFFIX $result
6869_ACEOF
6870
6871 done
6872
6873
783e057b
DJ
6874 fi
6875
6876
f434ba03
PA
6877 for gltype in sig_atomic_t wchar_t wint_t ; do
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6879$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6880if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
81ecdfbb 6881 $as_echo_n "(cached) " >&6
783e057b 6882else
f434ba03
PA
6883 eval gl_cv_type_${gltype}_suffix=no
6884 eval result=\$gl_cv_type_${gltype}_signed
6885 if test "$result" = yes; then
6886 glsufu=
6887 else
6888 glsufu=u
6889 fi
6890 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6891 case $glsuf in
6892 '') gltype1='int';;
6893 l) gltype1='long int';;
6894 ll) gltype1='long long int';;
6895 i64) gltype1='__int64';;
6896 u) gltype1='unsigned int';;
6897 ul) gltype1='unsigned long int';;
6898 ull) gltype1='unsigned long long int';;
6899 ui64)gltype1='unsigned __int64';;
6900 esac
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 6902/* end confdefs.h. */
f434ba03
PA
6903
6904 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6905 included before <wchar.h>. */
6906 #include <stddef.h>
6907 #include <signal.h>
6908 #if HAVE_WCHAR_H
6909 # include <stdio.h>
6910 # include <time.h>
6911 # include <wchar.h>
6912 #endif
6913
6914 extern $gltype foo;
6915 extern $gltype1 foo;
6916int
6917main ()
6918{
6919
6920 ;
6921 return 0;
6922}
783e057b 6923_ACEOF
81ecdfbb 6924if ac_fn_c_try_compile "$LINENO"; then :
f434ba03 6925 eval gl_cv_type_${gltype}_suffix=\$glsuf
783e057b 6926fi
81ecdfbb 6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f434ba03
PA
6928 eval result=\$gl_cv_type_${gltype}_suffix
6929 test "$result" != no && break
6930 done
783e057b 6931fi
f434ba03
PA
6932eval ac_res=\$gl_cv_type_${gltype}_suffix
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6934$as_echo "$ac_res" >&6; }
6935 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6936 eval result=\$gl_cv_type_${gltype}_suffix
6937 test "$result" = no && result=
6938 eval ${GLTYPE}_SUFFIX=\$result
6939 cat >>confdefs.h <<_ACEOF
6940#define ${GLTYPE}_SUFFIX $result
6941_ACEOF
6942
6943 done
6944
6945
6946
6947 STDINT_H=stdint.h
783e057b
DJ
6948 fi
6949
6950
f434ba03
PA
6951 # Code from module string:
6952
6953
6954
6955 # Code from module warn-on-use:
6956 # Code from module wchar:
6957
6958
6959
6960
783e057b
DJ
6961 :
6962
6963
6964
6965
6966
783e057b
DJ
6967
6968
6969
6970
6971 :
6972
6973
6974
6975
6976
6977
6978
6979 if test $gl_cv_have_include_next = yes; then
6980 gl_cv_next_wchar_h='<'wchar.h'>'
6981 else
81ecdfbb
RW
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6983$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6984if test "${gl_cv_next_wchar_h+set}" = set; then :
6985 $as_echo_n "(cached) " >&6
783e057b
DJ
6986else
6987
f434ba03
PA
6988 if test $ac_cv_header_wchar_h = yes; then
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
783e057b
DJ
6990/* end confdefs.h. */
6991#include <wchar.h>
6992
6993_ACEOF
f434ba03
PA
6994 case "$host_os" in
6995 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6996 *) gl_absname_cpp="$ac_cpp" ;;
6997 esac
6998 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6999 sed -n '\#/wchar.h#{
7000 s#.*"\(.*/wchar.h\)".*#\1#
7001 s#^/[^/]#//&#
7002 p
7003 q
7004 }'`'"'
7005 else
7006 gl_cv_next_wchar_h='<'wchar.h'>'
7007 fi
783e057b
DJ
7008
7009fi
81ecdfbb
RW
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7011$as_echo "$gl_cv_next_wchar_h" >&6; }
783e057b
DJ
7012 fi
7013 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7014
f434ba03
PA
7015 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7016 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7017 gl_next_as_first_directive='<'wchar.h'>'
7018 else
7019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7020 gl_next_as_first_directive=$gl_cv_next_wchar_h
7021 fi
7022 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7023
7024
7025
7026 if test $ac_cv_header_wchar_h = yes; then
7027 HAVE_WCHAR_H=1
7028 else
7029 HAVE_WCHAR_H=0
7030 fi
7031
7032
7033
7034 if test $gt_cv_c_wint_t = yes; then
7035 HAVE_WINT_T=1
7036 else
7037 HAVE_WINT_T=0
7038 fi
7039
7040
7041
7042 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7043 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7045$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7046if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7047 $as_echo_n "(cached) " >&6
7048else
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050/* end confdefs.h. */
7051
7052/* Some systems require additional headers. */
7053#ifndef __GLIBC__
7054# include <stddef.h>
7055# include <stdio.h>
7056# include <time.h>
7057#endif
7058#include <wchar.h>
7059
7060int
7061main ()
7062{
7063#undef $gl_func
7064 (void) $gl_func;
7065 ;
7066 return 0;
7067}
7068_ACEOF
7069if ac_fn_c_try_compile "$LINENO"; then :
7070 eval "$as_gl_Symbol=yes"
7071else
7072 eval "$as_gl_Symbol=no"
7073fi
7074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075fi
7076eval ac_res=\$$as_gl_Symbol
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7078$as_echo "$ac_res" >&6; }
7079 eval as_val=\$$as_gl_Symbol
7080 if test "x$as_val" = x""yes; then :
7081 cat >>confdefs.h <<_ACEOF
7082#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7083_ACEOF
7084
7085 eval ac_cv_have_decl_$gl_func=yes
7086fi
7087 done
7088
7089
7090 # Code from module dummy:
7091 # End of code from modules
7092
7093
c906108c 7094
c906108c 7095
c906108c 7096
c906108c 7097
c906108c 7098
c906108c 7099
c906108c 7100
783e057b
DJ
7101 gltests_libdeps=
7102 gltests_ltlibdeps=
20e95c23 7103
20e95c23 7104
20e95c23 7105
f434ba03
PA
7106
7107
7108
7109
7110
7111
783e057b 7112 gl_source_base='tests'
f434ba03
PA
7113 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
7114
7115 gl_module_indicator_condition=$gltests_WITNESS
7116
7117
7118
7119
7120
c906108c 7121
bec39cab 7122
bec39cab 7123
783e057b
DJ
7124
7125 LIBGNU_LIBDEPS="$gl_libdeps"
7126
7127 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7128
7129
e28b3332 7130
d5af19ba
DJ
7131# For Makefile dependencies.
7132GNULIB_STDINT_H=
7133if test x"$STDINT_H" != x; then
7134 GNULIB_STDINT_H=gnulib/$STDINT_H
7135fi
7136
7137
bec39cab
AC
7138PACKAGE=gdb
7139
7140cat >>confdefs.h <<_ACEOF
7141#define PACKAGE "$PACKAGE"
7142_ACEOF
7143
7144
7145
e28b3332
DJ
7146# GDB does not use automake, but gnulib does. This line lets us
7147# generate its Makefile.in.
81ecdfbb
RW
7148am__api_version='1.11'
7149
e28b3332
DJ
7150# Find a good install program. We prefer a C program (faster),
7151# so one script is as good as another. But avoid the broken or
7152# incompatible versions:
7153# SysV /etc/install, /usr/sbin/install
7154# SunOS /usr/etc/install
7155# IRIX /sbin/install
7156# AIX /bin/install
7157# AmigaOS /C/install, which installs bootblocks on floppy discs
7158# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7159# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7160# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7161# OS/2's system install, which has a completely different semantic
7162# ./install, which can be erroneously created by make from ./install.sh.
85541719 7163# Reject install programs that cannot install multiple files.
81ecdfbb
RW
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7165$as_echo_n "checking for a BSD-compatible install... " >&6; }
e28b3332 7166if test -z "$INSTALL"; then
81ecdfbb
RW
7167if test "${ac_cv_path_install+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
e28b3332
DJ
7169else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7175 # Account for people who put trailing slashes in PATH elements.
7176case $as_dir/ in #((
7177 ./ | .// | /[cC]/* | \
e28b3332 7178 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 7179 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
e28b3332
DJ
7180 /usr/ucb/* ) ;;
7181 *)
7182 # OSF1 and SCO ODT 3.0 have their own names for install.
7183 # Don't use installbsd from OSF since it installs stuff as root
7184 # by default.
7185 for ac_prog in ginstall scoinst install; do
7186 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 7187 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e28b3332
DJ
7188 if test $ac_prog = install &&
7189 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7190 # AIX install. It has an incompatible calling convention.
7191 :
7192 elif test $ac_prog = install &&
7193 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7194 # program-specific install script used by HP pwplus--don't use.
7195 :
7196 else
85541719
DE
7197 rm -rf conftest.one conftest.two conftest.dir
7198 echo one > conftest.one
7199 echo two > conftest.two
7200 mkdir conftest.dir
7201 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7202 test -s conftest.one && test -s conftest.two &&
7203 test -s conftest.dir/conftest.one &&
7204 test -s conftest.dir/conftest.two
7205 then
7206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7207 break 3
7208 fi
e28b3332
DJ
7209 fi
7210 fi
7211 done
7212 done
7213 ;;
7214esac
81ecdfbb
RW
7215
7216 done
7217IFS=$as_save_IFS
e28b3332 7218
85541719 7219rm -rf conftest.one conftest.two conftest.dir
e28b3332
DJ
7220
7221fi
7222 if test "${ac_cv_path_install+set}" = set; then
7223 INSTALL=$ac_cv_path_install
7224 else
85541719
DE
7225 # As a last resort, use the slow shell script. Don't cache a
7226 # value for INSTALL within a source directory, because that will
e28b3332 7227 # break other packages using the cache if that directory is
85541719 7228 # removed, or if the value is a relative name.
e28b3332
DJ
7229 INSTALL=$ac_install_sh
7230 fi
7231fi
81ecdfbb
RW
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7233$as_echo "$INSTALL" >&6; }
e28b3332
DJ
7234
7235# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7236# It thinks the first close brace ends the variable substitution.
7237test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7238
7239test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7240
7241test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7242
81ecdfbb
RW
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7244$as_echo_n "checking whether build environment is sane... " >&6; }
e28b3332
DJ
7245# Just in case
7246sleep 1
7247echo timestamp > conftest.file
81ecdfbb
RW
7248# Reject unsafe characters in $srcdir or the absolute working directory
7249# name. Accept space and tab only in the latter.
7250am_lf='
7251'
7252case `pwd` in
7253 *[\\\"\#\$\&\'\`$am_lf]*)
7254 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7255esac
7256case $srcdir in
7257 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7258 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7259esac
7260
e28b3332
DJ
7261# Do `set' in a subshell so we don't clobber the current shell's
7262# arguments. Must try -L first in case configure is actually a
7263# symlink; some systems play weird games with the mod time of symlinks
7264# (eg FreeBSD returns the mod time of the symlink's containing
7265# directory).
7266if (
81ecdfbb 7267 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
e28b3332
DJ
7268 if test "$*" = "X"; then
7269 # -L didn't work.
81ecdfbb 7270 set X `ls -t "$srcdir/configure" conftest.file`
e28b3332
DJ
7271 fi
7272 rm -f conftest.file
7273 if test "$*" != "X $srcdir/configure conftest.file" \
7274 && test "$*" != "X conftest.file $srcdir/configure"; then
7275
7276 # If neither matched, then we have a broken ls. This can happen
7277 # if, for instance, CONFIG_SHELL is bash and it inherits a
7278 # broken ls alias from the environment. This has actually
7279 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
7280 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7281alias in your environment" "$LINENO" 5
e28b3332
DJ
7282 fi
7283
7284 test "$2" = conftest.file
7285 )
7286then
7287 # Ok.
7288 :
7289else
81ecdfbb
RW
7290 as_fn_error "newly created file is older than distributed files!
7291Check your system clock" "$LINENO" 5
e28b3332 7292fi
81ecdfbb
RW
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7294$as_echo "yes" >&6; }
e28b3332 7295test "$program_prefix" != NONE &&
81ecdfbb 7296 program_transform_name="s&^&$program_prefix&;$program_transform_name"
e28b3332
DJ
7297# Use a double $ so make ignores it.
7298test "$program_suffix" != NONE &&
81ecdfbb
RW
7299 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7300# Double any \ or $.
e28b3332 7301# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
7302ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7303program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
e28b3332
DJ
7304
7305# expand $ac_aux_dir to an absolute path
7306am_aux_dir=`cd $ac_aux_dir && pwd`
7307
81ecdfbb
RW
7308if test x"${MISSING+set}" != xset; then
7309 case $am_aux_dir in
7310 *\ * | *\ *)
7311 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7312 *)
7313 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7314 esac
7315fi
e28b3332
DJ
7316# Use eval to expand $SHELL
7317if eval "$MISSING --run true"; then
7318 am_missing_run="$MISSING --run "
7319else
7320 am_missing_run=
81ecdfbb
RW
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7322$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7323fi
7324
7325if test x"${install_sh}" != xset; then
7326 case $am_aux_dir in
7327 *\ * | *\ *)
7328 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7329 *)
7330 install_sh="\${SHELL} $am_aux_dir/install-sh"
7331 esac
7332fi
7333
7334# Installed binaries are usually stripped using `strip' when the user
7335# run `make install-strip'. However `strip' might not be the right
7336# tool to use in cross-compilation environments, therefore Automake
7337# will honor the `STRIP' environment variable to overrule this program.
7338if test "$cross_compiling" != no; then
7339 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7341set dummy ${ac_tool_prefix}strip; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_STRIP+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7346else
7347 if test -n "$STRIP"; then
7348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361done
7362 done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367STRIP=$ac_cv_prog_STRIP
7368if test -n "$STRIP"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7370$as_echo "$STRIP" >&6; }
7371else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376
7377fi
7378if test -z "$ac_cv_prog_STRIP"; then
7379 ac_ct_STRIP=$STRIP
7380 # Extract the first word of "strip", so it can be a program name with args.
7381set dummy strip; ac_word=$2
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383$as_echo_n "checking for $ac_word... " >&6; }
7384if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7385 $as_echo_n "(cached) " >&6
7386else
7387 if test -n "$ac_ct_STRIP"; then
7388 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7389else
7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_prog_ac_ct_STRIP="strip"
7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401done
7402 done
7403IFS=$as_save_IFS
7404
7405fi
7406fi
7407ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7408if test -n "$ac_ct_STRIP"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7410$as_echo "$ac_ct_STRIP" >&6; }
7411else
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413$as_echo "no" >&6; }
7414fi
7415
7416 if test "x$ac_ct_STRIP" = x; then
7417 STRIP=":"
7418 else
7419 case $cross_compiling:$ac_tool_warned in
7420yes:)
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423ac_tool_warned=yes ;;
7424esac
7425 STRIP=$ac_ct_STRIP
7426 fi
7427else
7428 STRIP="$ac_cv_prog_STRIP"
7429fi
7430
7431fi
7432INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7433
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7435$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7436if test -z "$MKDIR_P"; then
7437 if test "${ac_cv_path_mkdir+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7439else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_prog in mkdir gmkdir; do
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7448 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7449 'mkdir (GNU coreutils) '* | \
7450 'mkdir (coreutils) '* | \
7451 'mkdir (fileutils) '4.1*)
7452 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7453 break 3;;
7454 esac
7455 done
7456 done
e28b3332 7457 done
81ecdfbb
RW
7458IFS=$as_save_IFS
7459
7460fi
7461
7462 if test "${ac_cv_path_mkdir+set}" = set; then
7463 MKDIR_P="$ac_cv_path_mkdir -p"
e28b3332 7464 else
81ecdfbb
RW
7465 # As a last resort, use the slow shell script. Don't cache a
7466 # value for MKDIR_P within a source directory, because that will
7467 # break other packages using the cache if that directory is
7468 # removed, or if the value is a relative name.
7469 test -d ./--version && rmdir ./--version
7470 MKDIR_P="$ac_install_sh -d"
e28b3332
DJ
7471 fi
7472fi
81ecdfbb
RW
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7474$as_echo "$MKDIR_P" >&6; }
7475
f434ba03 7476
81ecdfbb
RW
7477mkdir_p="$MKDIR_P"
7478case $mkdir_p in
7479 [\\/$]* | ?:[\\/]*) ;;
7480 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7481esac
e28b3332
DJ
7482
7483for ac_prog in gawk mawk nawk awk
7484do
7485 # Extract the first word of "$ac_prog", so it can be a program name with args.
7486set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488$as_echo_n "checking for $ac_word... " >&6; }
7489if test "${ac_cv_prog_AWK+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
e28b3332
DJ
7491else
7492 if test -n "$AWK"; then
7493 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7494else
7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496for as_dir in $PATH
7497do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e28b3332 7502 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e28b3332
DJ
7504 break 2
7505 fi
7506done
81ecdfbb
RW
7507 done
7508IFS=$as_save_IFS
e28b3332
DJ
7509
7510fi
7511fi
7512AWK=$ac_cv_prog_AWK
7513if test -n "$AWK"; then
81ecdfbb
RW
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7515$as_echo "$AWK" >&6; }
e28b3332 7516else
81ecdfbb
RW
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518$as_echo "no" >&6; }
e28b3332
DJ
7519fi
7520
81ecdfbb 7521
e28b3332
DJ
7522 test -n "$AWK" && break
7523done
7524
81ecdfbb 7525ac_config_commands="$ac_config_commands depfiles"
e28b3332
DJ
7526
7527
7528am_make=${MAKE-make}
7529cat > confinc << 'END'
7530am__doit:
81ecdfbb 7531 @echo this is the am__doit target
e28b3332
DJ
7532.PHONY: am__doit
7533END
7534# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7536$as_echo_n "checking for style of include used by $am_make... " >&6; }
e28b3332
DJ
7537am__include="#"
7538am__quote=
7539_am_result=none
7540# First try GNU make style include.
7541echo "include confinc" > confmf
81ecdfbb
RW
7542# Ignore all kinds of additional output from `make'.
7543case `$am_make -s -f confmf 2> /dev/null` in #(
7544*the\ am__doit\ target*)
7545 am__include=include
7546 am__quote=
7547 _am_result=GNU
7548 ;;
7549esac
e28b3332
DJ
7550# Now try BSD make style include.
7551if test "$am__include" = "#"; then
7552 echo '.include "confinc"' > confmf
81ecdfbb
RW
7553 case `$am_make -s -f confmf 2> /dev/null` in #(
7554 *the\ am__doit\ target*)
7555 am__include=.include
7556 am__quote="\""
7557 _am_result=BSD
7558 ;;
7559 esac
e28b3332
DJ
7560fi
7561
7562
81ecdfbb
RW
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7564$as_echo "$_am_result" >&6; }
e28b3332
DJ
7565rm -f confinc confmf
7566
81ecdfbb
RW
7567# Check whether --enable-dependency-tracking was given.
7568if test "${enable_dependency_tracking+set}" = set; then :
7569 enableval=$enable_dependency_tracking;
7570fi
e28b3332 7571
e28b3332
DJ
7572if test "x$enable_dependency_tracking" != xno; then
7573 am_depcomp="$ac_aux_dir/depcomp"
7574 AMDEPBACKSLASH='\'
7575fi
81ecdfbb 7576 if test "x$enable_dependency_tracking" != xno; then
e28b3332
DJ
7577 AMDEP_TRUE=
7578 AMDEP_FALSE='#'
7579else
7580 AMDEP_TRUE='#'
7581 AMDEP_FALSE=
7582fi
7583
7584
81ecdfbb
RW
7585if test "`cd $srcdir && pwd`" != "`pwd`"; then
7586 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7587 # is not polluted with repeated "-I."
7588 am__isrc=' -I$(srcdir)'
7589 # test to see if srcdir already configured
7590 if test -f $srcdir/config.status; then
7591 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7592 fi
e28b3332
DJ
7593fi
7594
7595# test whether we have cygpath
7596if test -z "$CYGPATH_W"; then
7597 if (cygpath --version) >/dev/null 2>/dev/null; then
7598 CYGPATH_W='cygpath -w'
7599 else
7600 CYGPATH_W=echo
7601 fi
7602fi
7603
7604
7605# Define the identity of the package.
7606 PACKAGE=gdb
7607 VERSION=UNUSED-VERSION
7608
7609
7610# Some tools Automake needs.
7611
7612ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7613
7614
7615AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7616
7617
7618AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7619
7620
7621AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7622
7623
7624MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7625
e28b3332
DJ
7626# We need awk for the "check" target. The system "awk" is bad on
7627# some platforms.
7628# Always define AMTAR for backward compatibility.
7629
7630AMTAR=${AMTAR-"${am_missing_run}tar"}
7631
7632am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7633
7634
7635
7636
7637depcc="$CC" am_compiler_list=
7638
81ecdfbb
RW
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7640$as_echo_n "checking dependency style of $depcc... " >&6; }
7641if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
e28b3332
DJ
7643else
7644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7645 # We make a subdir and do the tests there. Otherwise we can end up
7646 # making bogus files that we don't know about and never remove. For
7647 # instance it was reported that on HP-UX the gcc test will end up
7648 # making a dummy file named `D' -- because `-MD' means `put the output
7649 # in D'.
7650 mkdir conftest.dir
7651 # Copy depcomp to subdir because otherwise we won't find it if we're
7652 # using a relative directory.
7653 cp "$am_depcomp" conftest.dir
7654 cd conftest.dir
7655 # We will build objects and dependencies in a subdirectory because
7656 # it helps to detect inapplicable dependency modes. For instance
7657 # both Tru64's cc and ICC support -MD to output dependencies as a
7658 # side effect of compilation, but ICC will put the dependencies in
7659 # the current directory while Tru64 will put them in the object
7660 # directory.
7661 mkdir sub
7662
7663 am_cv_CC_dependencies_compiler_type=none
7664 if test "$am_compiler_list" = ""; then
7665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7666 fi
81ecdfbb
RW
7667 am__universal=false
7668 case " $depcc " in #(
7669 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7670 esac
7671
e28b3332
DJ
7672 for depmode in $am_compiler_list; do
7673 # Setup a source with many dependencies, because some compilers
7674 # like to wrap large dependency lists on column 80 (with \), and
7675 # we should not choose a depcomp mode which is confused by this.
7676 #
7677 # We need to recreate these files for each test, as the compiler may
7678 # overwrite some of them when testing with obscure command lines.
7679 # This happens at least with the AIX C compiler.
7680 : > sub/conftest.c
7681 for i in 1 2 3 4 5 6; do
7682 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7683 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7684 # Solaris 8's {/usr,}/bin/sh.
7685 touch sub/conftst$i.h
7686 done
7687 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7688
81ecdfbb
RW
7689 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7690 # mode. It turns out that the SunPro C++ compiler does not properly
7691 # handle `-M -o', and we need to detect this. Also, some Intel
7692 # versions had trouble with output in subdirs
7693 am__obj=sub/conftest.${OBJEXT-o}
7694 am__minus_obj="-o $am__obj"
e28b3332 7695 case $depmode in
81ecdfbb
RW
7696 gcc)
7697 # This depmode causes a compiler race in universal mode.
7698 test "$am__universal" = false || continue
7699 ;;
e28b3332
DJ
7700 nosideeffect)
7701 # after this tag, mechanisms are not by side-effect, so they'll
7702 # only be used when explicitly requested
7703 if test "x$enable_dependency_tracking" = xyes; then
7704 continue
7705 else
7706 break
7707 fi
7708 ;;
81ecdfbb
RW
7709 msvisualcpp | msvcmsys)
7710 # This compiler won't grok `-c -o', but also, the minuso test has
7711 # not run yet. These depmodes are late enough in the game, and
7712 # so weak that their functioning should not be impacted.
7713 am__obj=conftest.${OBJEXT-o}
7714 am__minus_obj=
7715 ;;
e28b3332
DJ
7716 none) break ;;
7717 esac
e28b3332 7718 if depmode=$depmode \
81ecdfbb 7719 source=sub/conftest.c object=$am__obj \
e28b3332 7720 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 7721 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
e28b3332 7722 >/dev/null 2>conftest.err &&
81ecdfbb 7723 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
e28b3332 7724 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 7725 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
e28b3332
DJ
7726 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7727 # icc doesn't choke on unknown options, it will just issue warnings
7728 # or remarks (even with -Werror). So we grep stderr for any message
7729 # that says an option was ignored or not supported.
7730 # When given -MP, icc 7.0 and 7.1 complain thusly:
7731 # icc: Command line warning: ignoring option '-M'; no argument required
7732 # The diagnosis changed in icc 8.0:
7733 # icc: Command line remark: option '-MP' not supported
7734 if (grep 'ignoring option' conftest.err ||
7735 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7736 am_cv_CC_dependencies_compiler_type=$depmode
7737 break
7738 fi
7739 fi
7740 done
7741
7742 cd ..
7743 rm -rf conftest.dir
7744else
7745 am_cv_CC_dependencies_compiler_type=none
7746fi
7747
7748fi
81ecdfbb
RW
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7750$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
e28b3332
DJ
7751CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7752
81ecdfbb 7753 if
e28b3332
DJ
7754 test "x$enable_dependency_tracking" != xno \
7755 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7756 am__fastdepCC_TRUE=
7757 am__fastdepCC_FALSE='#'
7758else
7759 am__fastdepCC_TRUE='#'
7760 am__fastdepCC_FALSE=
7761fi
7762
7763
7764
7765
bec39cab
AC
7766
7767
81ecdfbb
RW
7768# Check whether --with-separate-debug-dir was given.
7769if test "${with_separate_debug_dir+set}" = set; then :
7770 withval=$with_separate_debug_dir;
b14b1491
TT
7771 DEBUGDIR=$withval
7772else
7773 DEBUGDIR=${libdir}/debug
81ecdfbb
RW
7774fi
7775
20e95c23 7776
783e057b
DJ
7777 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b14b1491 7779 ac_define_dir=`eval echo $DEBUGDIR`
783e057b 7780 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 7781
783e057b
DJ
7782cat >>confdefs.h <<_ACEOF
7783#define DEBUGDIR "$ac_define_dir"
20e95c23 7784_ACEOF
20e95c23 7785
20e95c23 7786
20e95c23 7787
0c4a4063 7788
b14b1491
TT
7789 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7790 if test "x$prefix" = xNONE; then
7791 test_prefix=/usr/local
7792 else
7793 test_prefix=$prefix
7794 fi
783e057b 7795 else
b14b1491 7796 test_prefix=$exec_prefix
783e057b 7797 fi
b14b1491
TT
7798 value=0
7799 case ${ac_define_dir} in
7800 "${test_prefix}"|"${test_prefix}/"*|\
7801 '${exec_prefix}'|'${exec_prefix}/'*)
7802 value=1
7803 ;;
7804 esac
7805
7806cat >>confdefs.h <<_ACEOF
7807#define DEBUGDIR_RELOCATABLE $value
7808_ACEOF
7809
7810
7811
0c4a4063 7812
b14b1491
TT
7813# GDB's datadir relocation
7814
7815
7816
81ecdfbb
RW
7817# Check whether --with-gdb-datadir was given.
7818if test "${with_gdb_datadir+set}" = set; then :
7819 withval=$with_gdb_datadir;
b14b1491 7820 GDB_DATADIR=$withval
20e95c23 7821else
b14b1491 7822 GDB_DATADIR=${datadir}/gdb
81ecdfbb
RW
7823fi
7824
20e95c23 7825
b14b1491
TT
7826 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7828 ac_define_dir=`eval echo $GDB_DATADIR`
7829 ac_define_dir=`eval echo $ac_define_dir`
7830
7831cat >>confdefs.h <<_ACEOF
7832#define GDB_DATADIR "$ac_define_dir"
20e95c23
DJ
7833_ACEOF
7834
b14b1491
TT
7835
7836
0c4a4063 7837
b14b1491
TT
7838 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7839 if test "x$prefix" = xNONE; then
7840 test_prefix=/usr/local
7841 else
7842 test_prefix=$prefix
7843 fi
7844 else
7845 test_prefix=$exec_prefix
7846 fi
7847 value=0
7848 case ${ac_define_dir} in
7849 "${test_prefix}"|"${test_prefix}/"*|\
7850 '${exec_prefix}'|'${exec_prefix}/'*)
7851 value=1
7852 ;;
7853 esac
7854
7855cat >>confdefs.h <<_ACEOF
7856#define GDB_DATADIR_RELOCATABLE $value
7857_ACEOF
7858
7859
783e057b 7860
20e95c23 7861
0c4a4063 7862
81ecdfbb
RW
7863# Check whether --with-relocated-sources was given.
7864if test "${with_relocated_sources+set}" = set; then :
7865 withval=$with_relocated_sources; reloc_srcdir="${withval}"
29b0e8a2
JM
7866
7867 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7869 ac_define_dir=`eval echo $reloc_srcdir`
7870 ac_define_dir=`eval echo $ac_define_dir`
7871
7872cat >>confdefs.h <<_ACEOF
7873#define RELOC_SRCDIR "$ac_define_dir"
7874_ACEOF
7875
7876
7877
81ecdfbb
RW
7878fi
7879
29b0e8a2
JM
7880
7881
20e95c23 7882
783e057b 7883subdirs="$subdirs doc testsuite"
20e95c23
DJ
7884
7885
783e057b 7886# Check whether to support alternative target configurations
81ecdfbb
RW
7887# Check whether --enable-targets was given.
7888if test "${enable_targets+set}" = set; then :
7889 enableval=$enable_targets; case "${enableval}" in
7890 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
783e057b
DJ
7891 ;;
7892 no) enable_targets= ;;
7893 *) enable_targets=$enableval ;;
7894esac
81ecdfbb
RW
7895fi
7896
20e95c23 7897
783e057b 7898# Check whether to enable 64-bit support on 32-bit hosts
81ecdfbb
RW
7899# Check whether --enable-64-bit-bfd was given.
7900if test "${enable_64_bit_bfd+set}" = set; then :
7901 enableval=$enable_64_bit_bfd; case "${enableval}" in
783e057b
DJ
7902 yes) want64=true ;;
7903 no) want64=false ;;
81ecdfbb 7904 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
783e057b
DJ
7905esac
7906else
7907 want64=false
81ecdfbb
RW
7908fi
7909
783e057b
DJ
7910# Provide defaults for some variables set by the per-host and per-target
7911# configuration.
7912gdb_host_obs=posix-hdep.o
20e95c23 7913
783e057b
DJ
7914if test "${target}" = "${host}"; then
7915 gdb_native=yes
7916else
7917 gdb_native=no
7918fi
20e95c23 7919
783e057b 7920. $srcdir/configure.host
20e95c23 7921
783e057b 7922# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 7923
783e057b
DJ
7924TARGET_OBS=
7925all_targets=
20e95c23 7926
783e057b 7927for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 7928do
783e057b
DJ
7929 if test "$targ_alias" = "all"; then
7930 all_targets=true
7931 else
7932 # Canonicalize the secondary target names.
7933 result=`$ac_config_sub $targ_alias 2>/dev/null`
7934 if test -n "$result"; then
7935 targ=$result
7936 else
7937 targ=$targ_alias
7938 fi
20e95c23 7939
783e057b 7940 . ${srcdir}/configure.tgt
20e95c23 7941
bf307134
JB
7942 if test -z "${gdb_target_obs}"; then :
7943 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7944fi
7945
783e057b
DJ
7946 # Target-specific object files
7947 for i in ${gdb_target_obs}; do
7948 case " $TARGET_OBS " in
7949 *" ${i} "*) ;;
7950 *)
7951 TARGET_OBS="$TARGET_OBS ${i}"
7952 ;;
7953 esac
7954 done
20e95c23 7955
783e057b
DJ
7956 # Check whether this target needs 64-bit CORE_ADDR
7957 if test x${want64} = xfalse; then
7958 . ${srcdir}/../bfd/config.bfd
7959 fi
7960 fi
20e95c23
DJ
7961done
7962
783e057b
DJ
7963if test x${all_targets} = xtrue; then
7964
7965 # We want all 64-bit targets if we either:
7966 # - run on a 64-bit host or
7967 # - already require 64-bit support for some other target or
7968 # - the --enable-64-bit-bfd option was supplied
7969 # Otherwise we only support all 32-bit targets.
7970 #
7971 # NOTE: This test must be in sync with the corresponding
7972 # tests in BFD!
20e95c23 7973
783e057b 7974 if test x${want64} = xfalse; then
81ecdfbb
RW
7975 # The cast to long int works around a bug in the HP C Compiler
7976# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7977# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7978# This bug is HP SR number 8606223364.
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7980$as_echo_n "checking size of long... " >&6; }
7981if test "${ac_cv_sizeof_long+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
c0993dbe 7983else
81ecdfbb 7984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
c0993dbe 7985
81ecdfbb
RW
7986else
7987 if test "$ac_cv_type_long" = yes; then
7988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7990{ as_fn_set_status 77
7991as_fn_error "cannot compute sizeof (long)
7992See \`config.log' for more details." "$LINENO" 5; }; }
7993 else
7994 ac_cv_sizeof_long=0
7995 fi
c0993dbe 7996fi
81ecdfbb 7997
c0993dbe 7998fi
81ecdfbb
RW
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8000$as_echo "$ac_cv_sizeof_long" >&6; }
c0993dbe 8001
c0993dbe 8002
c0993dbe 8003
c0993dbe
UW
8004cat >>confdefs.h <<_ACEOF
8005#define SIZEOF_LONG $ac_cv_sizeof_long
8006_ACEOF
8007
8008
8009 if test "x${ac_cv_sizeof_long}" = "x8"; then
8010 want64=true
8011 fi
8012 fi
8013 if test x${want64} = xtrue; then
8014 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8015 else
8016 TARGET_OBS='$(ALL_TARGET_OBS)'
8017 fi
8018fi
8019
8020
8021
8022# For other settings, only the main target counts.
8023gdb_sim=
8024gdb_osabi=
8025build_gdbserver=
8026targ=$target; . ${srcdir}/configure.tgt
8027
8028# Fetch the default architecture and default target vector from BFD.
8029targ=$target; . $srcdir/../bfd/config.bfd
8030
8031# We only want the first architecture, so strip off the others if
8032# there is more than one.
8033targ_archs=`echo $targ_archs | sed 's/ .*//'`
8034
8035if test "x$targ_archs" != x; then
8036
8037cat >>confdefs.h <<_ACEOF
8038#define DEFAULT_BFD_ARCH $targ_archs
8039_ACEOF
8040
8041fi
8042if test "x$targ_defvec" != x; then
8043
8044cat >>confdefs.h <<_ACEOF
8045#define DEFAULT_BFD_VEC $targ_defvec
8046_ACEOF
8047
8048fi
8049
c0993dbe
UW
8050# The CLI cannot be disabled yet, but may be in the future.
8051
8052# Enable CLI.
81ecdfbb
RW
8053# Check whether --enable-gdbcli was given.
8054if test "${enable_gdbcli+set}" = set; then :
8055 enableval=$enable_gdbcli; case $enableval in
c0993dbe
UW
8056 yes)
8057 ;;
8058 no)
81ecdfbb 8059 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
c0993dbe 8060 *)
81ecdfbb 8061 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
c0993dbe
UW
8062 esac
8063else
8064 enable_gdbcli=yes
81ecdfbb
RW
8065fi
8066
c0993dbe
UW
8067if test x"$enable_gdbcli" = xyes; then
8068 if test -d $srcdir/cli; then
8069 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8070 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8071 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8072 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8073 fi
8074fi
8075
8076# Enable MI.
81ecdfbb
RW
8077# Check whether --enable-gdbmi was given.
8078if test "${enable_gdbmi+set}" = set; then :
8079 enableval=$enable_gdbmi; case $enableval in
c0993dbe
UW
8080 yes | no)
8081 ;;
8082 *)
81ecdfbb 8083 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
c0993dbe
UW
8084 esac
8085else
8086 enable_gdbmi=yes
81ecdfbb
RW
8087fi
8088
c0993dbe
UW
8089if test x"$enable_gdbmi" = xyes; then
8090 if test -d $srcdir/mi; then
8091 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8092 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8093 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8094 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8095 fi
8096fi
8097
8098# Enable TUI.
81ecdfbb
RW
8099# Check whether --enable-tui was given.
8100if test "${enable_tui+set}" = set; then :
8101 enableval=$enable_tui; case $enableval in
3ca64bd3 8102 yes | no | auto)
c0993dbe
UW
8103 ;;
8104 *)
81ecdfbb 8105 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
c0993dbe
UW
8106 esac
8107else
3ca64bd3 8108 enable_tui=auto
81ecdfbb
RW
8109fi
8110
c0993dbe
UW
8111
8112# Enable gdbtk.
81ecdfbb
RW
8113# Check whether --enable-gdbtk was given.
8114if test "${enable_gdbtk+set}" = set; then :
8115 enableval=$enable_gdbtk; case $enableval in
c0993dbe
UW
8116 yes | no)
8117 ;;
8118 *)
81ecdfbb 8119 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
c0993dbe
UW
8120 esac
8121else
5062cc19 8122 if test -d $srcdir/gdbtk; then
c0993dbe
UW
8123 enable_gdbtk=yes
8124 else
8125 enable_gdbtk=no
8126 fi
81ecdfbb
RW
8127fi
8128
c0993dbe
UW
8129# We unconditionally disable gdbtk tests on selected platforms.
8130case $host_os in
8131 go32* | windows*)
81ecdfbb
RW
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8133$as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
c0993dbe
UW
8134 enable_gdbtk=no ;;
8135esac
8136
8137# Libunwind support.
bec39cab 8138
81ecdfbb
RW
8139# Check whether --with-libunwind was given.
8140if test "${with_libunwind+set}" = set; then :
8141 withval=$with_libunwind; case "${withval}" in
bec39cab
AC
8142 yes) enable_libunwind=yes ;;
8143 no) enable_libunwind=no ;;
81ecdfbb 8144 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
bec39cab 8145esac
bec39cab 8146else
bec39cab 8147
81ecdfbb
RW
8148 for ac_header in libunwind.h libunwind-ia64.h
8149do :
8150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8151ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8152eval as_val=\$$as_ac_Header
8153 if test "x$as_val" = x""yes; then :
bec39cab 8154 cat >>confdefs.h <<_ACEOF
81ecdfbb 8155#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
8156_ACEOF
8157
8158fi
8159
8160done
8161
a9322a30
TT
8162 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8163 enable_libunwind=yes;
8164 fi
8165
bec39cab 8166fi
bec39cab 8167
bec39cab 8168
81ecdfbb
RW
8169if test x"$enable_libunwind" = xyes; then
8170 for ac_header in libunwind.h libunwind-ia64.h
8171do :
8172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8173ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8174eval as_val=\$$as_ac_Header
8175 if test "x$as_val" = x""yes; then :
bec39cab 8176 cat >>confdefs.h <<_ACEOF
81ecdfbb 8177#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab
AC
8178_ACEOF
8179
8180fi
8181
8182done
8183
bec39cab 8184
81ecdfbb 8185$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
a9322a30
TT
8186
8187 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8188 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8189 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8190fi
8191
cb01cfba
JB
8192opt_curses=no
8193
81ecdfbb
RW
8194# Check whether --with-curses was given.
8195if test "${with_curses+set}" = set; then :
8196 withval=$with_curses; opt_curses=$withval
8197fi
8198
cb01cfba 8199
76a39ba7 8200prefer_curses=no
cb01cfba 8201if test "$opt_curses" = "yes"; then
76a39ba7 8202 prefer_curses=yes
cb01cfba
JB
8203fi
8204
a9322a30 8205# Profiling support.
81ecdfbb
RW
8206# Check whether --enable-profiling was given.
8207if test "${enable_profiling+set}" = set; then :
8208 enableval=$enable_profiling; case $enableval in
a9322a30
TT
8209 yes | no)
8210 ;;
8211 *)
81ecdfbb 8212 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
a9322a30
TT
8213 esac
8214else
8215 enable_profiling=no
81ecdfbb 8216fi
bec39cab 8217
a9322a30
TT
8218
8219for ac_func in monstartup _mcleanup
81ecdfbb
RW
8220do :
8221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8222ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8223eval as_val=\$$as_ac_var
8224 if test "x$as_val" = x""yes; then :
8225 cat >>confdefs.h <<_ACEOF
8226#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 8227_ACEOF
a9322a30 8228
81ecdfbb
RW
8229fi
8230done
a9322a30 8231
81ecdfbb
RW
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8233$as_echo_n "checking for _etext... " >&6; }
8234if test "${ac_cv_var__etext+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8236else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h. */
8239#include <stdlib.h>
8240extern char _etext;
a9322a30
TT
8241
8242int
8243main ()
8244{
8245free (&_etext);
8246 ;
8247 return 0;
8248}
bec39cab 8249_ACEOF
81ecdfbb 8250if ac_fn_c_try_link "$LINENO"; then :
a9322a30 8251 ac_cv_var__etext=yes
bec39cab 8252else
81ecdfbb 8253 ac_cv_var__etext=no
bec39cab 8254fi
81ecdfbb
RW
8255rm -f core conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
bec39cab 8257fi
81ecdfbb
RW
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8259$as_echo "$ac_cv_var__etext" >&6; }
a9322a30 8260if test $ac_cv_var__etext = yes; then
60ca704f 8261
81ecdfbb 8262$as_echo "#define HAVE__ETEXT 1" >>confdefs.h
bec39cab 8263
bec39cab 8264fi
81ecdfbb
RW
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8266$as_echo_n "checking for etext... " >&6; }
8267if test "${ac_cv_var_etext+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
bec39cab 8269else
81ecdfbb 8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 8271/* end confdefs.h. */
a9322a30
TT
8272#include <stdlib.h>
8273extern char etext;
bec39cab
AC
8274
8275int
8276main ()
8277{
a9322a30 8278free (&etext);
bec39cab
AC
8279 ;
8280 return 0;
8281}
8282_ACEOF
81ecdfbb 8283if ac_fn_c_try_link "$LINENO"; then :
a9322a30 8284 ac_cv_var_etext=yes
bec39cab 8285else
81ecdfbb 8286 ac_cv_var_etext=no
bec39cab 8287fi
81ecdfbb
RW
8288rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
bec39cab 8290fi
81ecdfbb
RW
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8292$as_echo "$ac_cv_var_etext" >&6; }
a9322a30
TT
8293if test $ac_cv_var_etext = yes; then
8294
81ecdfbb 8295$as_echo "#define HAVE_ETEXT 1" >>confdefs.h
bec39cab
AC
8296
8297fi
a9322a30
TT
8298if test "$enable_profiling" = yes ; then
8299 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
81ecdfbb 8300 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
a9322a30
TT
8301 fi
8302 PROFILE_CFLAGS=-pg
8303 OLD_CFLAGS="$CFLAGS"
8304 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
bec39cab 8305
81ecdfbb
RW
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8307$as_echo_n "checking whether $CC supports -pg... " >&6; }
8308if test "${ac_cv_cc_supports_pg+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
bec39cab 8310else
81ecdfbb 8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 8312/* end confdefs.h. */
bec39cab
AC
8313
8314int
8315main ()
8316{
a9322a30 8317int x;
bec39cab
AC
8318 ;
8319 return 0;
8320}
8321_ACEOF
81ecdfbb 8322if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 8323 ac_cv_cc_supports_pg=yes
bec39cab 8324else
81ecdfbb 8325 ac_cv_cc_supports_pg=no
bec39cab 8326fi
81ecdfbb 8327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 8328fi
81ecdfbb
RW
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8330$as_echo "$ac_cv_cc_supports_pg" >&6; }
bec39cab 8331
a9322a30 8332 if test $ac_cv_cc_supports_pg = no; then
81ecdfbb 8333 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
a9322a30 8334 fi
bec39cab 8335
a9322a30 8336 CFLAGS="$OLD_CFLAGS"
bec39cab
AC
8337fi
8338
c16158bc
JM
8339
8340
81ecdfbb
RW
8341# Check whether --with-pkgversion was given.
8342if test "${with_pkgversion+set}" = set; then :
8343 withval=$with_pkgversion; case "$withval" in
8344 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
c16158bc
JM
8345 no) PKGVERSION= ;;
8346 *) PKGVERSION="($withval) " ;;
8347 esac
8348else
8349 PKGVERSION="(GDB) "
8350
81ecdfbb 8351fi
c16158bc
JM
8352
8353
8354
8355
81ecdfbb
RW
8356
8357# Check whether --with-bugurl was given.
8358if test "${with_bugurl+set}" = set; then :
8359 withval=$with_bugurl; case "$withval" in
8360 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
c16158bc
JM
8361 no) BUGURL=
8362 ;;
8363 *) BUGURL="$withval"
8364 ;;
8365 esac
8366else
8367 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8368
81ecdfbb
RW
8369fi
8370
c16158bc
JM
8371 case ${BUGURL} in
8372 "")
8373 REPORT_BUGS_TO=
8374 REPORT_BUGS_TEXI=
8375 ;;
8376 *)
8377 REPORT_BUGS_TO="<$BUGURL>"
8378 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8379 ;;
8380 esac;
8381
8382
8383
8384
8385cat >>confdefs.h <<_ACEOF
8386#define PKGVERSION "$PKGVERSION"
8387_ACEOF
8388
8389
8390cat >>confdefs.h <<_ACEOF
8391#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8392_ACEOF
8393
8394
bec39cab
AC
8395# --------------------- #
8396# Checks for programs. #
8397# --------------------- #
8398
8399for ac_prog in gawk mawk nawk awk
8400do
8401 # Extract the first word of "$ac_prog", so it can be a program name with args.
8402set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404$as_echo_n "checking for $ac_word... " >&6; }
8405if test "${ac_cv_prog_AWK+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
bec39cab
AC
8407else
8408 if test -n "$AWK"; then
8409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8410else
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8418 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8420 break 2
8421 fi
8422done
81ecdfbb
RW
8423 done
8424IFS=$as_save_IFS
bec39cab
AC
8425
8426fi
8427fi
8428AWK=$ac_cv_prog_AWK
8429if test -n "$AWK"; then
81ecdfbb
RW
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8431$as_echo "$AWK" >&6; }
bec39cab 8432else
81ecdfbb
RW
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434$as_echo "no" >&6; }
bec39cab
AC
8435fi
8436
bec39cab 8437
81ecdfbb 8438 test -n "$AWK" && break
bec39cab
AC
8439done
8440
bec39cab 8441
81ecdfbb
RW
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8443$as_echo_n "checking whether ln -s works... " >&6; }
bec39cab
AC
8444LN_S=$as_ln_s
8445if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8447$as_echo "yes" >&6; }
bec39cab 8448else
81ecdfbb
RW
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8450$as_echo "no, using $LN_S" >&6; }
bec39cab
AC
8451fi
8452
8453if test -n "$ac_tool_prefix"; then
8454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8455set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457$as_echo_n "checking for $ac_word... " >&6; }
8458if test "${ac_cv_prog_RANLIB+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
bec39cab
AC
8460else
8461 if test -n "$RANLIB"; then
8462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8463else
8464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465for as_dir in $PATH
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8473 break 2
8474 fi
8475done
81ecdfbb
RW
8476 done
8477IFS=$as_save_IFS
bec39cab
AC
8478
8479fi
8480fi
8481RANLIB=$ac_cv_prog_RANLIB
8482if test -n "$RANLIB"; then
81ecdfbb
RW
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8484$as_echo "$RANLIB" >&6; }
bec39cab 8485else
81ecdfbb
RW
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
bec39cab
AC
8488fi
8489
81ecdfbb 8490
bec39cab
AC
8491fi
8492if test -z "$ac_cv_prog_RANLIB"; then
8493 ac_ct_RANLIB=$RANLIB
8494 # Extract the first word of "ranlib", so it can be a program name with args.
8495set dummy ranlib; ac_word=$2
81ecdfbb
RW
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
8498if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
bec39cab
AC
8500else
8501 if test -n "$ac_ct_RANLIB"; then
8502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8503else
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8511 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8513 break 2
8514 fi
8515done
81ecdfbb
RW
8516 done
8517IFS=$as_save_IFS
bec39cab 8518
bec39cab
AC
8519fi
8520fi
8521ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8522if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8524$as_echo "$ac_ct_RANLIB" >&6; }
bec39cab 8525else
81ecdfbb
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
bec39cab
AC
8528fi
8529
81ecdfbb
RW
8530 if test "x$ac_ct_RANLIB" = x; then
8531 RANLIB=":"
8532 else
8533 case $cross_compiling:$ac_tool_warned in
8534yes:)
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8537ac_tool_warned=yes ;;
8538esac
8539 RANLIB=$ac_ct_RANLIB
8540 fi
bec39cab
AC
8541else
8542 RANLIB="$ac_cv_prog_RANLIB"
8543fi
8544
8545for ac_prog in 'bison -y' byacc
8546do
8547 # Extract the first word of "$ac_prog", so it can be a program name with args.
8548set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550$as_echo_n "checking for $ac_word... " >&6; }
8551if test "${ac_cv_prog_YACC+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
bec39cab
AC
8553else
8554 if test -n "$YACC"; then
8555 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8556else
8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8564 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8566 break 2
8567 fi
8568done
81ecdfbb
RW
8569 done
8570IFS=$as_save_IFS
bec39cab
AC
8571
8572fi
8573fi
8574YACC=$ac_cv_prog_YACC
8575if test -n "$YACC"; then
81ecdfbb
RW
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8577$as_echo "$YACC" >&6; }
bec39cab 8578else
81ecdfbb
RW
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580$as_echo "no" >&6; }
bec39cab
AC
8581fi
8582
81ecdfbb 8583
bec39cab
AC
8584 test -n "$YACC" && break
8585done
8586test -n "$YACC" || YACC="yacc"
8587
8588
8589if test -n "$ac_tool_prefix"; then
8590 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8591set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593$as_echo_n "checking for $ac_word... " >&6; }
8594if test "${ac_cv_prog_AR+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
bec39cab
AC
8596else
8597 if test -n "$AR"; then
8598 ac_cv_prog_AR="$AR" # Let the user override the test.
8599else
8600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601for as_dir in $PATH
8602do
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8607 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8609 break 2
8610 fi
8611done
81ecdfbb
RW
8612 done
8613IFS=$as_save_IFS
bec39cab
AC
8614
8615fi
8616fi
8617AR=$ac_cv_prog_AR
8618if test -n "$AR"; then
81ecdfbb
RW
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8620$as_echo "$AR" >&6; }
bec39cab 8621else
81ecdfbb
RW
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623$as_echo "no" >&6; }
bec39cab
AC
8624fi
8625
81ecdfbb 8626
bec39cab
AC
8627fi
8628if test -z "$ac_cv_prog_AR"; then
8629 ac_ct_AR=$AR
8630 # Extract the first word of "ar", so it can be a program name with args.
8631set dummy ar; ac_word=$2
81ecdfbb
RW
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633$as_echo_n "checking for $ac_word... " >&6; }
8634if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
bec39cab
AC
8636else
8637 if test -n "$ac_ct_AR"; then
8638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8639else
8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8647 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8649 break 2
8650 fi
8651done
81ecdfbb
RW
8652 done
8653IFS=$as_save_IFS
bec39cab
AC
8654
8655fi
8656fi
8657ac_ct_AR=$ac_cv_prog_ac_ct_AR
8658if test -n "$ac_ct_AR"; then
81ecdfbb
RW
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8660$as_echo "$ac_ct_AR" >&6; }
bec39cab 8661else
81ecdfbb
RW
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663$as_echo "no" >&6; }
bec39cab
AC
8664fi
8665
81ecdfbb
RW
8666 if test "x$ac_ct_AR" = x; then
8667 AR=""
8668 else
8669 case $cross_compiling:$ac_tool_warned in
8670yes:)
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673ac_tool_warned=yes ;;
8674esac
8675 AR=$ac_ct_AR
8676 fi
bec39cab
AC
8677else
8678 AR="$ac_cv_prog_AR"
8679fi
8680
8681if test -n "$ac_tool_prefix"; then
8682 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8683set dummy ${ac_tool_prefix}dlltool; ac_word=$2
81ecdfbb
RW
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685$as_echo_n "checking for $ac_word... " >&6; }
8686if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
bec39cab
AC
8688else
8689 if test -n "$DLLTOOL"; then
8690 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8691else
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8699 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
81ecdfbb 8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8701 break 2
8702 fi
8703done
81ecdfbb
RW
8704 done
8705IFS=$as_save_IFS
bec39cab
AC
8706
8707fi
8708fi
8709DLLTOOL=$ac_cv_prog_DLLTOOL
8710if test -n "$DLLTOOL"; then
81ecdfbb
RW
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8712$as_echo "$DLLTOOL" >&6; }
bec39cab 8713else
81ecdfbb
RW
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715$as_echo "no" >&6; }
bec39cab
AC
8716fi
8717
81ecdfbb 8718
bec39cab
AC
8719fi
8720if test -z "$ac_cv_prog_DLLTOOL"; then
8721 ac_ct_DLLTOOL=$DLLTOOL
8722 # Extract the first word of "dlltool", so it can be a program name with args.
8723set dummy dlltool; ac_word=$2
81ecdfbb
RW
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725$as_echo_n "checking for $ac_word... " >&6; }
8726if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
bec39cab
AC
8728else
8729 if test -n "$ac_ct_DLLTOOL"; then
8730 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8731else
8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733for as_dir in $PATH
8734do
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8739 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
81ecdfbb 8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8741 break 2
8742 fi
8743done
81ecdfbb
RW
8744 done
8745IFS=$as_save_IFS
bec39cab
AC
8746
8747fi
8748fi
8749ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8750if test -n "$ac_ct_DLLTOOL"; then
81ecdfbb
RW
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8752$as_echo "$ac_ct_DLLTOOL" >&6; }
bec39cab 8753else
81ecdfbb
RW
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755$as_echo "no" >&6; }
bec39cab
AC
8756fi
8757
81ecdfbb
RW
8758 if test "x$ac_ct_DLLTOOL" = x; then
8759 DLLTOOL=""
8760 else
8761 case $cross_compiling:$ac_tool_warned in
8762yes:)
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765ac_tool_warned=yes ;;
8766esac
8767 DLLTOOL=$ac_ct_DLLTOOL
8768 fi
bec39cab
AC
8769else
8770 DLLTOOL="$ac_cv_prog_DLLTOOL"
8771fi
8772
8773if test -n "$ac_tool_prefix"; then
8774 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8775set dummy ${ac_tool_prefix}windres; ac_word=$2
81ecdfbb
RW
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777$as_echo_n "checking for $ac_word... " >&6; }
8778if test "${ac_cv_prog_WINDRES+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
bec39cab
AC
8780else
8781 if test -n "$WINDRES"; then
8782 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8783else
8784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785for as_dir in $PATH
8786do
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8791 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
81ecdfbb 8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8793 break 2
8794 fi
8795done
81ecdfbb
RW
8796 done
8797IFS=$as_save_IFS
bec39cab
AC
8798
8799fi
8800fi
8801WINDRES=$ac_cv_prog_WINDRES
8802if test -n "$WINDRES"; then
81ecdfbb
RW
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8804$as_echo "$WINDRES" >&6; }
bec39cab 8805else
81ecdfbb
RW
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
bec39cab
AC
8808fi
8809
81ecdfbb 8810
bec39cab
AC
8811fi
8812if test -z "$ac_cv_prog_WINDRES"; then
8813 ac_ct_WINDRES=$WINDRES
8814 # Extract the first word of "windres", so it can be a program name with args.
8815set dummy windres; ac_word=$2
81ecdfbb
RW
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817$as_echo_n "checking for $ac_word... " >&6; }
8818if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
bec39cab
AC
8820else
8821 if test -n "$ac_ct_WINDRES"; then
8822 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8823else
8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $PATH
8826do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8831 ac_cv_prog_ac_ct_WINDRES="windres"
81ecdfbb 8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8833 break 2
8834 fi
8835done
81ecdfbb
RW
8836 done
8837IFS=$as_save_IFS
bec39cab
AC
8838
8839fi
8840fi
8841ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8842if test -n "$ac_ct_WINDRES"; then
81ecdfbb
RW
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8844$as_echo "$ac_ct_WINDRES" >&6; }
bec39cab 8845else
81ecdfbb
RW
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
c906108c 8848fi
bec39cab 8849
81ecdfbb
RW
8850 if test "x$ac_ct_WINDRES" = x; then
8851 WINDRES=""
8852 else
8853 case $cross_compiling:$ac_tool_warned in
8854yes:)
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857ac_tool_warned=yes ;;
8858esac
8859 WINDRES=$ac_ct_WINDRES
8860 fi
c906108c 8861else
bec39cab 8862 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
8863fi
8864
bec39cab
AC
8865
8866# Needed for GNU/Hurd.
8867if test -n "$ac_tool_prefix"; then
8868 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8869set dummy ${ac_tool_prefix}mig; ac_word=$2
81ecdfbb
RW
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871$as_echo_n "checking for $ac_word... " >&6; }
8872if test "${ac_cv_prog_MIG+set}" = set; then :
8873 $as_echo_n "(cached) " >&6
c906108c 8874else
bec39cab
AC
8875 if test -n "$MIG"; then
8876 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8877else
8878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879for as_dir in $PATH
8880do
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8885 ac_cv_prog_MIG="${ac_tool_prefix}mig"
81ecdfbb 8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8887 break 2
8888 fi
8889done
81ecdfbb
RW
8890 done
8891IFS=$as_save_IFS
bec39cab 8892
c906108c 8893fi
bec39cab
AC
8894fi
8895MIG=$ac_cv_prog_MIG
8896if test -n "$MIG"; then
81ecdfbb
RW
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8898$as_echo "$MIG" >&6; }
c906108c 8899else
81ecdfbb
RW
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901$as_echo "no" >&6; }
c906108c
SS
8902fi
8903
81ecdfbb 8904
bec39cab
AC
8905fi
8906if test -z "$ac_cv_prog_MIG"; then
8907 ac_ct_MIG=$MIG
8908 # Extract the first word of "mig", so it can be a program name with args.
8909set dummy mig; ac_word=$2
81ecdfbb
RW
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911$as_echo_n "checking for $ac_word... " >&6; }
8912if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8913 $as_echo_n "(cached) " >&6
bec39cab
AC
8914else
8915 if test -n "$ac_ct_MIG"; then
8916 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8917else
8918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919for as_dir in $PATH
8920do
8921 IFS=$as_save_IFS
8922 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8923 for ac_exec_ext in '' $ac_executable_extensions; do
8924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bec39cab 8925 ac_cv_prog_ac_ct_MIG="mig"
81ecdfbb 8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
bec39cab
AC
8927 break 2
8928 fi
8929done
81ecdfbb
RW
8930 done
8931IFS=$as_save_IFS
c906108c 8932
bec39cab
AC
8933fi
8934fi
8935ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8936if test -n "$ac_ct_MIG"; then
81ecdfbb
RW
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8938$as_echo "$ac_ct_MIG" >&6; }
bec39cab 8939else
81ecdfbb
RW
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941$as_echo "no" >&6; }
bec39cab 8942fi
c906108c 8943
81ecdfbb
RW
8944 if test "x$ac_ct_MIG" = x; then
8945 MIG=""
8946 else
8947 case $cross_compiling:$ac_tool_warned in
8948yes:)
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8951ac_tool_warned=yes ;;
8952esac
8953 MIG=$ac_ct_MIG
8954 fi
bec39cab
AC
8955else
8956 MIG="$ac_cv_prog_MIG"
8957fi
c906108c 8958
c906108c 8959
bec39cab
AC
8960# ---------------------- #
8961# Checks for libraries. #
8962# ---------------------- #
c906108c 8963
bec39cab 8964# We might need to link with -lm; most simulators need it.
81ecdfbb
RW
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8966$as_echo_n "checking for main in -lm... " >&6; }
8967if test "${ac_cv_lib_m_main+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
bec39cab
AC
8969else
8970 ac_check_lib_save_LIBS=$LIBS
8971LIBS="-lm $LIBS"
81ecdfbb 8972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 8973/* end confdefs.h. */
c906108c 8974
c906108c 8975
bec39cab
AC
8976int
8977main ()
8978{
81ecdfbb 8979return main ();
bec39cab
AC
8980 ;
8981 return 0;
8982}
8983_ACEOF
81ecdfbb 8984if ac_fn_c_try_link "$LINENO"; then :
bec39cab
AC
8985 ac_cv_lib_m_main=yes
8986else
81ecdfbb 8987 ac_cv_lib_m_main=no
bec39cab 8988fi
81ecdfbb
RW
8989rm -f core conftest.err conftest.$ac_objext \
8990 conftest$ac_exeext conftest.$ac_ext
bec39cab
AC
8991LIBS=$ac_check_lib_save_LIBS
8992fi
81ecdfbb
RW
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8994$as_echo "$ac_cv_lib_m_main" >&6; }
8995if test "x$ac_cv_lib_m_main" = x""yes; then :
bec39cab
AC
8996 cat >>confdefs.h <<_ACEOF
8997#define HAVE_LIBM 1
8998_ACEOF
8999
9000 LIBS="-lm $LIBS"
c906108c 9001
c906108c 9002fi
bec39cab
AC
9003
9004
9005# We need to link with -lw to get `wctype' on Solaris before Solaris
9006# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9007# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9008# is known to have this problem). Therefore we avoid libw if we can.
81ecdfbb
RW
9009ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9010if test "x$ac_cv_func_wctype" = x""yes; then :
bec39cab 9011
c906108c 9012else
81ecdfbb
RW
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9014$as_echo_n "checking for wctype in -lw... " >&6; }
9015if test "${ac_cv_lib_w_wctype+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
bec39cab
AC
9017else
9018 ac_check_lib_save_LIBS=$LIBS
9019LIBS="-lw $LIBS"
81ecdfbb 9020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 9021/* end confdefs.h. */
c906108c 9022
81ecdfbb
RW
9023/* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
bec39cab
AC
9026#ifdef __cplusplus
9027extern "C"
9028#endif
bec39cab
AC
9029char wctype ();
9030int
9031main ()
9032{
81ecdfbb 9033return wctype ();
bec39cab
AC
9034 ;
9035 return 0;
9036}
9037_ACEOF
81ecdfbb 9038if ac_fn_c_try_link "$LINENO"; then :
bec39cab
AC
9039 ac_cv_lib_w_wctype=yes
9040else
81ecdfbb 9041 ac_cv_lib_w_wctype=no
bec39cab 9042fi
81ecdfbb
RW
9043rm -f core conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
bec39cab
AC
9045LIBS=$ac_check_lib_save_LIBS
9046fi
81ecdfbb
RW
9047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9048$as_echo "$ac_cv_lib_w_wctype" >&6; }
9049if test "x$ac_cv_lib_w_wctype" = x""yes; then :
bec39cab
AC
9050 cat >>confdefs.h <<_ACEOF
9051#define HAVE_LIBW 1
9052_ACEOF
c906108c 9053
bec39cab 9054 LIBS="-lw $LIBS"
c906108c 9055
bec39cab 9056fi
c906108c 9057
bec39cab 9058fi
c906108c 9059
ddc9cd0f 9060
bec39cab 9061# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
81ecdfbb
RW
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9063$as_echo_n "checking for library containing gethostbyname... " >&6; }
9064if test "${ac_cv_search_gethostbyname+set}" = set; then :
9065 $as_echo_n "(cached) " >&6
bec39cab
AC
9066else
9067 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 9069/* end confdefs.h. */
ddc9cd0f 9070
81ecdfbb
RW
9071/* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
bec39cab
AC
9074#ifdef __cplusplus
9075extern "C"
9076#endif
bec39cab
AC
9077char gethostbyname ();
9078int
9079main ()
9080{
81ecdfbb 9081return gethostbyname ();
bec39cab
AC
9082 ;
9083 return 0;
9084}
9085_ACEOF
81ecdfbb
RW
9086for ac_lib in '' nsl; do
9087 if test -z "$ac_lib"; then
9088 ac_res="none required"
9089 else
9090 ac_res=-l$ac_lib
b4e70030 9091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
9092 fi
9093 if ac_fn_c_try_link "$LINENO"; then :
9094 ac_cv_search_gethostbyname=$ac_res
9095fi
9096rm -f core conftest.err conftest.$ac_objext \
9097 conftest$ac_exeext
9098 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9099 break
9100fi
9101done
9102if test "${ac_cv_search_gethostbyname+set}" = set; then :
ddc9cd0f 9103
bec39cab 9104else
81ecdfbb 9105 ac_cv_search_gethostbyname=no
bec39cab 9106fi
81ecdfbb 9107rm conftest.$ac_ext
bec39cab
AC
9108LIBS=$ac_func_search_save_LIBS
9109fi
81ecdfbb
RW
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9111$as_echo "$ac_cv_search_gethostbyname" >&6; }
9112ac_res=$ac_cv_search_gethostbyname
9113if test "$ac_res" != no; then :
9114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
96baa820 9115
bec39cab 9116fi
96baa820 9117
c906108c 9118
b4e70030 9119# Some systems (e.g. Solaris) have `socketpair' in libsocket.
81ecdfbb
RW
9120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9121$as_echo_n "checking for library containing socketpair... " >&6; }
9122if test "${ac_cv_search_socketpair+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
b4e70030
JB
9124else
9125 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4e70030
JB
9127/* end confdefs.h. */
9128
81ecdfbb
RW
9129/* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
b4e70030
JB
9132#ifdef __cplusplus
9133extern "C"
9134#endif
b4e70030
JB
9135char socketpair ();
9136int
9137main ()
9138{
81ecdfbb 9139return socketpair ();
b4e70030
JB
9140 ;
9141 return 0;
9142}
9143_ACEOF
81ecdfbb
RW
9144for ac_lib in '' socket; do
9145 if test -z "$ac_lib"; then
9146 ac_res="none required"
9147 else
9148 ac_res=-l$ac_lib
b4e70030 9149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
9150 fi
9151 if ac_fn_c_try_link "$LINENO"; then :
9152 ac_cv_search_socketpair=$ac_res
9153fi
9154rm -f core conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext
9156 if test "${ac_cv_search_socketpair+set}" = set; then :
9157 break
9158fi
9159done
9160if test "${ac_cv_search_socketpair+set}" = set; then :
b4e70030 9161
b4e70030 9162else
81ecdfbb 9163 ac_cv_search_socketpair=no
b4e70030 9164fi
81ecdfbb 9165rm conftest.$ac_ext
b4e70030
JB
9166LIBS=$ac_func_search_save_LIBS
9167fi
81ecdfbb
RW
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9169$as_echo "$ac_cv_search_socketpair" >&6; }
9170ac_res=$ac_cv_search_socketpair
9171if test "$ac_res" != no; then :
9172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b4e70030
JB
9173
9174fi
9175
9176
233a11ab 9177# Link in zlib if we can. This allows us to read compressed debug sections.
b040ad30
JB
9178
9179 # See if the user specified whether he wants zlib support or not.
9180
9181# Check whether --with-zlib was given.
9182if test "${with_zlib+set}" = set; then :
9183 withval=$with_zlib;
9184else
9185 with_zlib=auto
9186fi
9187
9188
9189 if test "$with_zlib" != "no"; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
9191$as_echo_n "checking for library containing zlibVersion... " >&6; }
9192if test "${ac_cv_search_zlibVersion+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
233a11ab
CS
9194else
9195 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
233a11ab
CS
9197/* end confdefs.h. */
9198
81ecdfbb
RW
9199/* Override any GCC internal prototype to avoid an error.
9200 Use char because int might match the return type of a GCC
233a11ab 9201 builtin and then its argument prototype would still apply. */
233a11ab
CS
9202#ifdef __cplusplus
9203extern "C"
9204#endif
233a11ab
CS
9205char zlibVersion ();
9206int
9207main ()
9208{
81ecdfbb 9209return zlibVersion ();
233a11ab
CS
9210 ;
9211 return 0;
9212}
9213_ACEOF
81ecdfbb
RW
9214for ac_lib in '' z; do
9215 if test -z "$ac_lib"; then
9216 ac_res="none required"
233a11ab 9217 else
81ecdfbb
RW
9218 ac_res=-l$ac_lib
9219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
233a11ab 9220 fi
81ecdfbb
RW
9221 if ac_fn_c_try_link "$LINENO"; then :
9222 ac_cv_search_zlibVersion=$ac_res
233a11ab 9223fi
81ecdfbb
RW
9224rm -f core conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext
9226 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9227 break
233a11ab 9228fi
81ecdfbb
RW
9229done
9230if test "${ac_cv_search_zlibVersion+set}" = set; then :
233a11ab 9231
233a11ab 9232else
81ecdfbb 9233 ac_cv_search_zlibVersion=no
233a11ab 9234fi
81ecdfbb
RW
9235rm conftest.$ac_ext
9236LIBS=$ac_func_search_save_LIBS
233a11ab 9237fi
81ecdfbb
RW
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9239$as_echo "$ac_cv_search_zlibVersion" >&6; }
9240ac_res=$ac_cv_search_zlibVersion
9241if test "$ac_res" != no; then :
9242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9243 for ac_header in zlib.h
9244do :
9245 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9246if test "x$ac_cv_header_zlib_h" = x""yes; then :
233a11ab 9247 cat >>confdefs.h <<_ACEOF
81ecdfbb 9248#define HAVE_ZLIB_H 1
233a11ab
CS
9249_ACEOF
9250
9251fi
9252
9253done
9254
9255fi
9256
b040ad30
JB
9257 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9258 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9259 fi
9260 fi
9261
233a11ab 9262
77f120bf 9263# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
81ecdfbb
RW
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9265$as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9266if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
bec39cab
AC
9268else
9269 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 9271/* end confdefs.h. */
c906108c 9272
81ecdfbb
RW
9273/* Override any GCC internal prototype to avoid an error.
9274 Use char because int might match the return type of a GCC
9275 builtin and then its argument prototype would still apply. */
bec39cab
AC
9276#ifdef __cplusplus
9277extern "C"
9278#endif
77f120bf 9279char dlgetmodinfo ();
bec39cab
AC
9280int
9281main ()
9282{
81ecdfbb 9283return dlgetmodinfo ();
bec39cab
AC
9284 ;
9285 return 0;
9286}
9287_ACEOF
81ecdfbb
RW
9288for ac_lib in '' dl xpdl; do
9289 if test -z "$ac_lib"; then
9290 ac_res="none required"
9291 else
9292 ac_res=-l$ac_lib
b4e70030 9293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
9294 fi
9295 if ac_fn_c_try_link "$LINENO"; then :
9296 ac_cv_search_dlgetmodinfo=$ac_res
9297fi
9298rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext
9300 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9301 break
9302fi
9303done
9304if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
b4e70030 9305
4e8d927d 9306else
81ecdfbb 9307 ac_cv_search_dlgetmodinfo=no
1ba607ad 9308fi
81ecdfbb 9309rm conftest.$ac_ext
bec39cab
AC
9310LIBS=$ac_func_search_save_LIBS
9311fi
81ecdfbb
RW
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9313$as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9314ac_res=$ac_cv_search_dlgetmodinfo
9315if test "$ac_res" != no; then :
9316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
c906108c 9317
8bb2c122 9318fi
8bb2c122 9319
8bb2c122 9320
77f120bf 9321
77f120bf 9322
6c7a06a3 9323
81ecdfbb
RW
9324# Check whether --with-libiconv-prefix was given.
9325if test "${with_libiconv_prefix+set}" = set; then :
9326 withval=$with_libiconv_prefix;
6c7a06a3 9327 for dir in `echo "$withval" | tr : ' '`; do
94ae1714
TT
9328 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9329 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6c7a06a3
TT
9330 done
9331
81ecdfbb
RW
9332fi
9333
6c7a06a3 9334
f18c4681 9335 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6c7a06a3
TT
9336 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9337
81ecdfbb
RW
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9339$as_echo_n "checking for iconv... " >&6; }
9340if test "${am_cv_func_iconv+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
d542061a 9342else
6c7a06a3
TT
9343
9344 am_cv_func_iconv="no, consider installing GNU libiconv"
9345 am_cv_lib_iconv=no
9346 am_cv_use_build_libiconv=no
f0f20949 9347 am_cv_build_libiconv_path=
4edb1e84
JB
9348
9349 # If libiconv is part of the build tree, then try using it over
9350 # any system iconv.
9351 if test -d ../libiconv; then
f18c4681
JB
9352 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9353 am_save_LIBS="$LIBS"
9354 am_save_CPPFLAGS="$CPPFLAGS"
9355 LIBS="$LIBS $lib_dir/libiconv.a"
9356 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d542061a 9358/* end confdefs.h. */
6c7a06a3
TT
9359#include <stdlib.h>
9360#include <iconv.h>
d542061a
UW
9361int
9362main ()
9363{
6c7a06a3 9364iconv_t cd = iconv_open("","");
f18c4681
JB
9365 iconv(cd,NULL,NULL,NULL,NULL);
9366 iconv_close(cd);
d542061a
UW
9367 ;
9368 return 0;
9369}
9370_ACEOF
81ecdfbb 9371if ac_fn_c_try_link "$LINENO"; then :
4edb1e84 9372 am_cv_use_build_libiconv=yes
f0f20949 9373 am_cv_build_libiconv_path=$lib_dir/libiconv.a
f18c4681
JB
9374 am_cv_lib_iconv=yes
9375 am_cv_func_iconv=yes
d542061a 9376fi
81ecdfbb
RW
9377rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
f18c4681
JB
9379 LIBS="$am_save_LIBS"
9380 CPPFLAGS="$am_save_CPPFLAGS"
9381 if test "$am_cv_use_build_libiconv" = "yes"; then
f18c4681
JB
9382 break
9383 fi
9384 done
4edb1e84 9385 fi
94ae1714 9386
4edb1e84 9387 # Next, try to find iconv in libc.
6c7a06a3 9388 if test "$am_cv_func_iconv" != yes; then
81ecdfbb 9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d542061a 9390/* end confdefs.h. */
6c7a06a3
TT
9391#include <stdlib.h>
9392#include <iconv.h>
d542061a
UW
9393int
9394main ()
9395{
6c7a06a3
TT
9396iconv_t cd = iconv_open("","");
9397 iconv(cd,NULL,NULL,NULL,NULL);
9398 iconv_close(cd);
d542061a
UW
9399 ;
9400 return 0;
9401}
9402_ACEOF
81ecdfbb 9403if ac_fn_c_try_link "$LINENO"; then :
4edb1e84 9404 am_cv_func_iconv=yes
d542061a 9405fi
81ecdfbb
RW
9406rm -f core conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext conftest.$ac_ext
77f120bf 9408 fi
94ae1714 9409
4edb1e84
JB
9410 # If iconv was not in libc, try -liconv. In this case, arrange to
9411 # look in the libiconv prefix, if it was specified by the user.
9412 if test "$am_cv_func_iconv" != yes; then
6c7a06a3 9413 am_save_CPPFLAGS="$CPPFLAGS"
4edb1e84
JB
9414 am_save_LIBS="$LIBS"
9415 if test -n "$LIBICONV_INCLUDE"; then
9416 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9417 LIBS="$LIBS $LIBICONV_LIBDIR"
9418 fi
9419 LIBS="$LIBS -liconv"
81ecdfbb 9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 9421/* end confdefs.h. */
6c7a06a3
TT
9422#include <stdlib.h>
9423#include <iconv.h>
bec39cab
AC
9424int
9425main ()
9426{
6c7a06a3
TT
9427iconv_t cd = iconv_open("","");
9428 iconv(cd,NULL,NULL,NULL,NULL);
9429 iconv_close(cd);
bec39cab
AC
9430 ;
9431 return 0;
9432}
9433_ACEOF
81ecdfbb 9434if ac_fn_c_try_link "$LINENO"; then :
4edb1e84 9435 am_cv_lib_iconv=yes
6c7a06a3 9436 am_cv_func_iconv=yes
627af7ea 9437fi
81ecdfbb
RW
9438rm -f core conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
6c7a06a3 9440 LIBS="$am_save_LIBS"
fc3b640d 9441 CPPFLAGS="$am_save_CPPFLAGS"
6c7a06a3
TT
9442 fi
9443
9444fi
81ecdfbb
RW
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9446$as_echo "$am_cv_func_iconv" >&6; }
94ae1714
TT
9447
9448 # Set the various flags based on the cache variables. We can't rely
9449 # on the flags to remain set from the above code, due to caching.
fc3b640d
TT
9450 LIBICONV=
9451 if test "$am_cv_lib_iconv" = yes; then
9452 LIBICONV="-liconv"
94ae1714
TT
9453 else
9454 LIBICONV_LIBDIR=
9455 LIBICONV_INCLUDE=
fc3b640d
TT
9456 fi
9457 if test "$am_cv_use_build_libiconv" = yes; then
f0f20949 9458 LIBICONV="$am_cv_build_libiconv_path"
f18c4681 9459 LIBICONV_LIBDIR=""
fc3b640d
TT
9460 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9461 fi
9462 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9463 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
94ae1714 9464
6c7a06a3
TT
9465 if test "$am_cv_func_iconv" = yes; then
9466
81ecdfbb 9467$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6c7a06a3 9468
81ecdfbb
RW
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9470$as_echo_n "checking for iconv declaration... " >&6; }
9471 if test "${am_cv_proto_iconv+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
6c7a06a3
TT
9473else
9474
81ecdfbb 9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b4e70030
JB
9476/* end confdefs.h. */
9477
6c7a06a3
TT
9478#include <stdlib.h>
9479#include <iconv.h>
9480extern
b4e70030 9481#ifdef __cplusplus
6c7a06a3 9482"C"
b4e70030 9483#endif
6c7a06a3
TT
9484#if defined(__STDC__) || defined(__cplusplus)
9485size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9486#else
9487size_t iconv();
9488#endif
9489
b4e70030
JB
9490int
9491main ()
9492{
6c7a06a3 9493
b4e70030
JB
9494 ;
9495 return 0;
9496}
9497_ACEOF
81ecdfbb 9498if ac_fn_c_try_compile "$LINENO"; then :
6c7a06a3 9499 am_cv_proto_iconv_arg1=""
4e8d927d 9500else
81ecdfbb 9501 am_cv_proto_iconv_arg1="const"
b4e70030 9502fi
81ecdfbb 9503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6c7a06a3
TT
9504 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);"
9505fi
9506
9507 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
81ecdfbb 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6c7a06a3 9509 }$am_cv_proto_iconv" >&5
81ecdfbb
RW
9510$as_echo "${ac_t:-
9511 }$am_cv_proto_iconv" >&6; }
6c7a06a3
TT
9512
9513cat >>confdefs.h <<_ACEOF
9514#define ICONV_CONST $am_cv_proto_iconv_arg1
9515_ACEOF
9516
9517 fi
6c7a06a3
TT
9518
9519
9520# On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9521# There is a very specific comment in /usr/include/curses.h explaining that
9522# termcap routines built into libcurses must not be used.
9523#
9524# The symptoms we observed so far is GDB unexpectedly changing
9525# the terminal settings when tgetent is called - this is particularly
9526# visible as the output is missing carriage returns, and so rapidly
9527# becomes very hard to read.
9528#
9529# The readline configure script has already decided that libtermcap
9530# was enough for its purposes, and so decided to build readline using
9531# libtermcap. Since the TUI mode requires curses, building GDB with
9532# TUI enabled results in both libraries to be used at the same time,
9533# which is not allowed. This basically means that GDB with TUI is
9534# broken on alpha-osf.
9535
9536case $host_os in
6bcc772d
RO
9537 osf* )
9538 if test x"$enable_tui" = xyes; then
81ecdfbb 9539 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6c7a06a3 9540 fi
6bcc772d 9541 if test x"$enable_tui" = xauto; then
6c7a06a3
TT
9542 enable_tui=no
9543 fi
9544 ;;
9545esac
9546
cb01cfba 9547# For the TUI, we need enhanced curses functionality.
bd8a8e1b 9548if test x"$enable_tui" != xno; then
cb01cfba
JB
9549 prefer_curses=yes
9550fi
9551
9552curses_found=no
9553if test x"$prefer_curses" = xyes; then
9554 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9555 # curses library because the latter might not provide all the
9556 # functionality we need. However, this leads to problems on systems
9557 # where the linker searches /usr/local/lib, but the compiler doesn't
9558 # search /usr/local/include, if ncurses is installed in /usr/local. A
9559 # default installation of ncurses on alpha*-dec-osf* will lead to such
9560 # a situation.
81ecdfbb
RW
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9562$as_echo_n "checking for library containing waddstr... " >&6; }
9563if test "${ac_cv_search_waddstr+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
6c7a06a3
TT
9565else
9566 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6c7a06a3
TT
9568/* end confdefs.h. */
9569
81ecdfbb
RW
9570/* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
6c7a06a3
TT
9573#ifdef __cplusplus
9574extern "C"
9575#endif
6c7a06a3
TT
9576char waddstr ();
9577int
9578main ()
9579{
81ecdfbb 9580return waddstr ();
6c7a06a3
TT
9581 ;
9582 return 0;
9583}
9584_ACEOF
81ecdfbb
RW
9585for ac_lib in '' ncurses cursesX curses; do
9586 if test -z "$ac_lib"; then
9587 ac_res="none required"
9588 else
9589 ac_res=-l$ac_lib
9590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9591 fi
9592 if ac_fn_c_try_link "$LINENO"; then :
9593 ac_cv_search_waddstr=$ac_res
9594fi
9595rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext
9597 if test "${ac_cv_search_waddstr+set}" = set; then :
9598 break
9599fi
9600done
9601if test "${ac_cv_search_waddstr+set}" = set; then :
9602
6c7a06a3 9603else
81ecdfbb
RW
9604 ac_cv_search_waddstr=no
9605fi
9606rm conftest.$ac_ext
9607LIBS=$ac_func_search_save_LIBS
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9610$as_echo "$ac_cv_search_waddstr" >&6; }
9611ac_res=$ac_cv_search_waddstr
9612if test "$ac_res" != no; then :
9613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6c7a06a3
TT
9614
9615fi
9616
9617
cb01cfba
JB
9618 if test "$ac_cv_search_waddstr" != no; then
9619 curses_found=yes
9620 fi
9621fi
9622
9623# Check whether we should enable the TUI, but only do so if we really
9624# can.
9625if test x"$enable_tui" != xno; then
9626 if test -d $srcdir/tui; then
9627 if test "$curses_found" != no; then
6c7a06a3
TT
9628 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9629 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9630 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9631 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9632 CONFIG_ALL="${CONFIG_ALL} all-tui"
9633 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9634 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9635 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9636 else
9637 if test x"$enable_tui" = xyes; then
81ecdfbb 9638 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6c7a06a3 9639 else
81ecdfbb
RW
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9641$as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6c7a06a3
TT
9642 fi
9643 fi
9644 fi
9645fi
9646
9647# Since GDB uses Readline, we need termcap functionality. In many
9648# cases this will be provided by the curses library, but some systems
9649# have a seperate termcap library, or no curses library at all.
9650
9651case $host_os in
9652 cygwin*)
9653 if test -d $srcdir/libtermcap; then
9654 LIBS="../libtermcap/libtermcap.a $LIBS"
9655 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9656 fi ;;
9657 go32* | *djgpp*)
9658 ac_cv_search_tgetent="none required"
9659 ;;
9660 *mingw32*)
9661 ac_cv_search_tgetent="none required"
9662 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9663 ;;
9664esac
9665
9666# These are the libraries checked by Readline.
81ecdfbb
RW
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9668$as_echo_n "checking for library containing tgetent... " >&6; }
9669if test "${ac_cv_search_tgetent+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
6c7a06a3
TT
9671else
9672 ac_func_search_save_LIBS=$LIBS
81ecdfbb 9673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6c7a06a3
TT
9674/* end confdefs.h. */
9675
81ecdfbb
RW
9676/* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
6c7a06a3
TT
9679#ifdef __cplusplus
9680extern "C"
9681#endif
6c7a06a3
TT
9682char tgetent ();
9683int
9684main ()
9685{
81ecdfbb 9686return tgetent ();
6c7a06a3
TT
9687 ;
9688 return 0;
9689}
9690_ACEOF
81ecdfbb
RW
9691for ac_lib in '' termcap tinfo curses ncurses; do
9692 if test -z "$ac_lib"; then
9693 ac_res="none required"
9694 else
9695 ac_res=-l$ac_lib
6c7a06a3 9696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
9697 fi
9698 if ac_fn_c_try_link "$LINENO"; then :
9699 ac_cv_search_tgetent=$ac_res
9700fi
9701rm -f core conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext
9703 if test "${ac_cv_search_tgetent+set}" = set; then :
9704 break
9705fi
9706done
9707if test "${ac_cv_search_tgetent+set}" = set; then :
6c7a06a3 9708
6c7a06a3 9709else
81ecdfbb 9710 ac_cv_search_tgetent=no
6c7a06a3 9711fi
81ecdfbb 9712rm conftest.$ac_ext
6c7a06a3
TT
9713LIBS=$ac_func_search_save_LIBS
9714fi
81ecdfbb
RW
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9716$as_echo "$ac_cv_search_tgetent" >&6; }
9717ac_res=$ac_cv_search_tgetent
9718if test "$ac_res" != no; then :
9719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6c7a06a3 9720
06825bd1
MK
9721fi
9722
06825bd1 9723
bec39cab 9724if test "$ac_cv_search_tgetent" = no; then
81ecdfbb 9725 as_fn_error "no termcap library found" "$LINENO" 5
8ee53726
MK
9726fi
9727
3841debe 9728
81ecdfbb
RW
9729# Check whether --with-system-readline was given.
9730if test "${with_system_readline+set}" = set; then :
9731 withval=$with_system_readline;
9732fi
6a30b0a5 9733
6a30b0a5
AS
9734
9735if test "$with_system_readline" = yes; then
9736 READLINE=-lreadline
9737 READLINE_DEPS=
9738 READLINE_CFLAGS=
a71e0887
JK
9739
9740 # readline-6.0 started to use the name `_rl_echoing_p'.
9741 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9744$as_echo_n "checking for readline_echoing_p... " >&6; }
9745 save_LIBS=$LIBS
9746 LIBS="$LIBS $READLINE"
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h. */
9749
9750int
9751main ()
9752{
9753extern int readline_echoing_p;
9754 return readline_echoing_p;
9755 ;
9756 return 0;
9757}
9758_ACEOF
9759if ac_fn_c_try_link "$LINENO"; then :
9760 READLINE_ECHOING_P=yes
9761else
9762 READLINE_ECHOING_P=no
9763
9764$as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9765
9766fi
9767rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769 LIBS="$save_LIBS"
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9771$as_echo "$READLINE_ECHOING_P" >&6; }
6a30b0a5
AS
9772else
9773 READLINE='$(READLINE_DIR)/libreadline.a'
9774 READLINE_DEPS='$(READLINE)'
9775 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9776fi
9777
9778
9779
9780
9781
81ecdfbb
RW
9782# Check whether --with-expat was given.
9783if test "${with_expat+set}" = set; then :
9784 withval=$with_expat;
5c39566f
DJ
9785else
9786 with_expat=auto
81ecdfbb
RW
9787fi
9788
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9790$as_echo_n "checking whether to use expat... " >&6; }
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9792$as_echo "$with_expat" >&6; }
5c39566f
DJ
9793
9794if test "${with_expat}" = no; then
81ecdfbb
RW
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9796$as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5c39566f
DJ
9797 HAVE_LIBEXPAT=no
9798else
9799
3841debe
DJ
9800 if test "X$prefix" = "XNONE"; then
9801 acl_final_prefix="$ac_default_prefix"
9802 else
9803 acl_final_prefix="$prefix"
9804 fi
9805 if test "X$exec_prefix" = "XNONE"; then
9806 acl_final_exec_prefix='${prefix}'
9807 else
9808 acl_final_exec_prefix="$exec_prefix"
9809 fi
9810 acl_save_prefix="$prefix"
9811 prefix="$acl_final_prefix"
9812 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9813 prefix="$acl_save_prefix"
9814
9815
81ecdfbb
RW
9816# Check whether --with-gnu-ld was given.
9817if test "${with_gnu_ld+set}" = set; then :
9818 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3841debe
DJ
9819else
9820 with_gnu_ld=no
81ecdfbb
RW
9821fi
9822
3841debe
DJ
9823# Prepare PATH_SEPARATOR.
9824# The user is always right.
9825if test "${PATH_SEPARATOR+set}" != set; then
9826 echo "#! /bin/sh" >conf$$.sh
9827 echo "exit 0" >>conf$$.sh
9828 chmod +x conf$$.sh
9829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9830 PATH_SEPARATOR=';'
9831 else
9832 PATH_SEPARATOR=:
9833 fi
9834 rm -f conf$$.sh
9835fi
9836ac_prog=ld
9837if test "$GCC" = yes; then
9838 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9840$as_echo_n "checking for ld used by GCC... " >&6; }
3841debe
DJ
9841 case $host in
9842 *-*-mingw*)
9843 # gcc leaves a trailing carriage return which upsets mingw
9844 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9845 *)
9846 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9847 esac
9848 case $ac_prog in
9849 # Accept absolute paths.
9850 [\\/]* | [A-Za-z]:[\\/]*)
9851 re_direlt='/[^/][^/]*/\.\./'
9852 # Canonicalize the path of ld
9853 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9854 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9855 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9856 done
9857 test -z "$LD" && LD="$ac_prog"
9858 ;;
9859 "")
9860 # If it fails, then pretend we aren't using GCC.
9861 ac_prog=ld
9862 ;;
9863 *)
9864 # If it is relative, then search for the first ld in PATH.
9865 with_gnu_ld=unknown
9866 ;;
9867 esac
9868elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9870$as_echo_n "checking for GNU ld... " >&6; }
3841debe 9871else
81ecdfbb
RW
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9873$as_echo_n "checking for non-GNU ld... " >&6; }
3841debe 9874fi
81ecdfbb
RW
9875if test "${acl_cv_path_LD+set}" = set; then :
9876 $as_echo_n "(cached) " >&6
3841debe
DJ
9877else
9878 if test -z "$LD"; then
9879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9880 for ac_dir in $PATH; do
9881 test -z "$ac_dir" && ac_dir=.
9882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9883 acl_cv_path_LD="$ac_dir/$ac_prog"
9884 # Check to see if the program is GNU ld. I'd rather use --version,
9885 # but apparently some GNU ld's only accept -v.
9886 # Break only if it was the GNU/non-GNU ld that we prefer.
9887 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9888 test "$with_gnu_ld" != no && break
9889 else
9890 test "$with_gnu_ld" != yes && break
9891 fi
9892 fi
9893 done
9894 IFS="$ac_save_ifs"
9895else
9896 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9897fi
9898fi
9899
9900LD="$acl_cv_path_LD"
9901if test -n "$LD"; then
81ecdfbb
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9903$as_echo "$LD" >&6; }
3841debe 9904else
81ecdfbb
RW
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906$as_echo "no" >&6; }
3841debe 9907fi
81ecdfbb
RW
9908test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9910$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9911if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
3841debe
DJ
9913else
9914 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9915if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9916 acl_cv_prog_gnu_ld=yes
9917else
9918 acl_cv_prog_gnu_ld=no
9919fi
9920fi
81ecdfbb
RW
9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9922$as_echo "$acl_cv_prog_gnu_ld" >&6; }
3841debe
DJ
9923with_gnu_ld=$acl_cv_prog_gnu_ld
9924
9925
9926
81ecdfbb
RW
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9928$as_echo_n "checking for shared library run path origin... " >&6; }
9929if test "${acl_cv_rpath+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
3841debe
DJ
9931else
9932
9933 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9934 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9935 . ./conftest.sh
9936 rm -f ./conftest.sh
9937 acl_cv_rpath=done
9938
9939fi
81ecdfbb
RW
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9941$as_echo "$acl_cv_rpath" >&6; }
3841debe
DJ
9942 wl="$acl_cv_wl"
9943 libext="$acl_cv_libext"
9944 shlibext="$acl_cv_shlibext"
9945 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9946 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9947 hardcode_direct="$acl_cv_hardcode_direct"
9948 hardcode_minus_L="$acl_cv_hardcode_minus_L"
81ecdfbb
RW
9949 # Check whether --enable-rpath was given.
9950if test "${enable_rpath+set}" = set; then :
9951 enableval=$enable_rpath; :
3841debe
DJ
9952else
9953 enable_rpath=yes
81ecdfbb
RW
9954fi
9955
3841debe
DJ
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965 use_additional=yes
9966
9967 acl_save_prefix="$prefix"
9968 prefix="$acl_final_prefix"
9969 acl_save_exec_prefix="$exec_prefix"
9970 exec_prefix="$acl_final_exec_prefix"
9971
9972 eval additional_includedir=\"$includedir\"
9973 eval additional_libdir=\"$libdir\"
9974
9975 exec_prefix="$acl_save_exec_prefix"
9976 prefix="$acl_save_prefix"
9977
9978
81ecdfbb
RW
9979# Check whether --with-libexpat-prefix was given.
9980if test "${with_libexpat_prefix+set}" = set; then :
9981 withval=$with_libexpat_prefix;
3841debe
DJ
9982 if test "X$withval" = "Xno"; then
9983 use_additional=no
9984 else
9985 if test "X$withval" = "X"; then
9986
9987 acl_save_prefix="$prefix"
9988 prefix="$acl_final_prefix"
9989 acl_save_exec_prefix="$exec_prefix"
9990 exec_prefix="$acl_final_exec_prefix"
9991
9992 eval additional_includedir=\"$includedir\"
9993 eval additional_libdir=\"$libdir\"
9994
9995 exec_prefix="$acl_save_exec_prefix"
9996 prefix="$acl_save_prefix"
9997
9998 else
9999 additional_includedir="$withval/include"
10000 additional_libdir="$withval/lib"
10001 fi
10002 fi
10003
81ecdfbb
RW
10004fi
10005
3841debe
DJ
10006 LIBEXPAT=
10007 LTLIBEXPAT=
10008 INCEXPAT=
10009 rpathdirs=
10010 ltrpathdirs=
10011 names_already_handled=
10012 names_next_round='expat '
10013 while test -n "$names_next_round"; do
10014 names_this_round="$names_next_round"
10015 names_next_round=
10016 for name in $names_this_round; do
10017 already_handled=
10018 for n in $names_already_handled; do
10019 if test "$n" = "$name"; then
10020 already_handled=yes
10021 break
10022 fi
10023 done
10024 if test -z "$already_handled"; then
10025 names_already_handled="$names_already_handled $name"
10026 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10027 eval value=\"\$HAVE_LIB$uppername\"
10028 if test -n "$value"; then
10029 if test "$value" = yes; then
10030 eval value=\"\$LIB$uppername\"
10031 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10032 eval value=\"\$LTLIB$uppername\"
10033 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10034 else
10035 :
10036 fi
10037 else
10038 found_dir=
10039 found_la=
10040 found_so=
10041 found_a=
10042 if test $use_additional = yes; then
10043 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10044 found_dir="$additional_libdir"
10045 found_so="$additional_libdir/lib$name.$shlibext"
10046 if test -f "$additional_libdir/lib$name.la"; then
10047 found_la="$additional_libdir/lib$name.la"
10048 fi
10049 else
10050 if test -f "$additional_libdir/lib$name.$libext"; then
10051 found_dir="$additional_libdir"
10052 found_a="$additional_libdir/lib$name.$libext"
10053 if test -f "$additional_libdir/lib$name.la"; then
10054 found_la="$additional_libdir/lib$name.la"
10055 fi
10056 fi
10057 fi
10058 fi
10059 if test "X$found_dir" = "X"; then
10060 for x in $LDFLAGS $LTLIBEXPAT; do
10061
10062 acl_save_prefix="$prefix"
10063 prefix="$acl_final_prefix"
10064 acl_save_exec_prefix="$exec_prefix"
10065 exec_prefix="$acl_final_exec_prefix"
10066 eval x=\"$x\"
10067 exec_prefix="$acl_save_exec_prefix"
10068 prefix="$acl_save_prefix"
10069
10070 case "$x" in
10071 -L*)
10072 dir=`echo "X$x" | sed -e 's/^X-L//'`
10073 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10074 found_dir="$dir"
10075 found_so="$dir/lib$name.$shlibext"
10076 if test -f "$dir/lib$name.la"; then
10077 found_la="$dir/lib$name.la"
10078 fi
10079 else
10080 if test -f "$dir/lib$name.$libext"; then
10081 found_dir="$dir"
10082 found_a="$dir/lib$name.$libext"
10083 if test -f "$dir/lib$name.la"; then
10084 found_la="$dir/lib$name.la"
10085 fi
10086 fi
10087 fi
10088 ;;
10089 esac
10090 if test "X$found_dir" != "X"; then
10091 break
10092 fi
10093 done
10094 fi
10095 if test "X$found_dir" != "X"; then
10096 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10097 if test "X$found_so" != "X"; then
10098 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10099 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10100 else
10101 haveit=
10102 for x in $ltrpathdirs; do
10103 if test "X$x" = "X$found_dir"; then
10104 haveit=yes
10105 break
10106 fi
10107 done
10108 if test -z "$haveit"; then
10109 ltrpathdirs="$ltrpathdirs $found_dir"
10110 fi
10111 if test "$hardcode_direct" = yes; then
10112 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10113 else
10114 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10115 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10116 haveit=
10117 for x in $rpathdirs; do
10118 if test "X$x" = "X$found_dir"; then
10119 haveit=yes
10120 break
10121 fi
10122 done
10123 if test -z "$haveit"; then
10124 rpathdirs="$rpathdirs $found_dir"
10125 fi
10126 else
10127 haveit=
10128 for x in $LDFLAGS $LIBEXPAT; do
10129
10130 acl_save_prefix="$prefix"
10131 prefix="$acl_final_prefix"
10132 acl_save_exec_prefix="$exec_prefix"
10133 exec_prefix="$acl_final_exec_prefix"
10134 eval x=\"$x\"
10135 exec_prefix="$acl_save_exec_prefix"
10136 prefix="$acl_save_prefix"
10137
10138 if test "X$x" = "X-L$found_dir"; then
10139 haveit=yes
10140 break
10141 fi
10142 done
10143 if test -z "$haveit"; then
10144 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10145 fi
10146 if test "$hardcode_minus_L" != no; then
10147 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10148 else
10149 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10150 fi
10151 fi
10152 fi
10153 fi
10154 else
10155 if test "X$found_a" != "X"; then
10156 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10157 else
10158 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10159 fi
10160 fi
10161 additional_includedir=
10162 case "$found_dir" in
10163 */lib | */lib/)
10164 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10165 additional_includedir="$basedir/include"
10166 ;;
10167 esac
10168 if test "X$additional_includedir" != "X"; then
10169 if test "X$additional_includedir" != "X/usr/include"; then
10170 haveit=
10171 if test "X$additional_includedir" = "X/usr/local/include"; then
10172 if test -n "$GCC"; then
10173 case $host_os in
10174 linux*) haveit=yes;;
10175 esac
10176 fi
10177 fi
10178 if test -z "$haveit"; then
10179 for x in $CPPFLAGS $INCEXPAT; do
10180
10181 acl_save_prefix="$prefix"
10182 prefix="$acl_final_prefix"
10183 acl_save_exec_prefix="$exec_prefix"
10184 exec_prefix="$acl_final_exec_prefix"
10185 eval x=\"$x\"
10186 exec_prefix="$acl_save_exec_prefix"
10187 prefix="$acl_save_prefix"
10188
10189 if test "X$x" = "X-I$additional_includedir"; then
10190 haveit=yes
10191 break
10192 fi
10193 done
10194 if test -z "$haveit"; then
10195 if test -d "$additional_includedir"; then
10196 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10197 fi
10198 fi
10199 fi
10200 fi
10201 fi
10202 if test -n "$found_la"; then
10203 save_libdir="$libdir"
10204 case "$found_la" in
10205 */* | *\\*) . "$found_la" ;;
10206 *) . "./$found_la" ;;
10207 esac
10208 libdir="$save_libdir"
10209 for dep in $dependency_libs; do
10210 case "$dep" in
10211 -L*)
10212 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10213 if test "X$additional_libdir" != "X/usr/lib"; then
10214 haveit=
10215 if test "X$additional_libdir" = "X/usr/local/lib"; then
10216 if test -n "$GCC"; then
10217 case $host_os in
10218 linux*) haveit=yes;;
10219 esac
10220 fi
10221 fi
10222 if test -z "$haveit"; then
10223 haveit=
10224 for x in $LDFLAGS $LIBEXPAT; do
10225
10226 acl_save_prefix="$prefix"
10227 prefix="$acl_final_prefix"
10228 acl_save_exec_prefix="$exec_prefix"
10229 exec_prefix="$acl_final_exec_prefix"
10230 eval x=\"$x\"
10231 exec_prefix="$acl_save_exec_prefix"
10232 prefix="$acl_save_prefix"
10233
10234 if test "X$x" = "X-L$additional_libdir"; then
10235 haveit=yes
10236 break
10237 fi
10238 done
10239 if test -z "$haveit"; then
10240 if test -d "$additional_libdir"; then
10241 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10242 fi
10243 fi
10244 haveit=
10245 for x in $LDFLAGS $LTLIBEXPAT; do
10246
10247 acl_save_prefix="$prefix"
10248 prefix="$acl_final_prefix"
10249 acl_save_exec_prefix="$exec_prefix"
10250 exec_prefix="$acl_final_exec_prefix"
10251 eval x=\"$x\"
10252 exec_prefix="$acl_save_exec_prefix"
10253 prefix="$acl_save_prefix"
10254
10255 if test "X$x" = "X-L$additional_libdir"; then
10256 haveit=yes
10257 break
10258 fi
10259 done
10260 if test -z "$haveit"; then
10261 if test -d "$additional_libdir"; then
10262 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10263 fi
10264 fi
10265 fi
10266 fi
10267 ;;
10268 -R*)
10269 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10270 if test "$enable_rpath" != no; then
10271 haveit=
10272 for x in $rpathdirs; do
10273 if test "X$x" = "X$dir"; then
10274 haveit=yes
10275 break
10276 fi
10277 done
10278 if test -z "$haveit"; then
10279 rpathdirs="$rpathdirs $dir"
10280 fi
10281 haveit=
10282 for x in $ltrpathdirs; do
10283 if test "X$x" = "X$dir"; then
10284 haveit=yes
10285 break
10286 fi
10287 done
10288 if test -z "$haveit"; then
10289 ltrpathdirs="$ltrpathdirs $dir"
10290 fi
10291 fi
10292 ;;
10293 -l*)
10294 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10295 ;;
10296 *.la)
10297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10298 ;;
10299 *)
10300 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10301 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10302 ;;
81ecdfbb
RW
10303 esac
10304 done
10305 fi
10306 else
10307 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10308 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10309 fi
10310 fi
10311 fi
10312 done
10313 done
10314 if test "X$rpathdirs" != "X"; then
10315 if test -n "$hardcode_libdir_separator"; then
10316 alldirs=
10317 for found_dir in $rpathdirs; do
10318 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10319 done
10320 acl_save_libdir="$libdir"
10321 libdir="$alldirs"
10322 eval flag=\"$hardcode_libdir_flag_spec\"
10323 libdir="$acl_save_libdir"
10324 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10325 else
10326 for found_dir in $rpathdirs; do
10327 acl_save_libdir="$libdir"
10328 libdir="$found_dir"
10329 eval flag=\"$hardcode_libdir_flag_spec\"
10330 libdir="$acl_save_libdir"
10331 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10332 done
10333 fi
10334 fi
10335 if test "X$ltrpathdirs" != "X"; then
10336 for found_dir in $ltrpathdirs; do
10337 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10338 done
10339 fi
a9322a30
TT
10340
10341
81ecdfbb 10342 ac_save_CPPFLAGS="$CPPFLAGS"
a9322a30 10343
81ecdfbb
RW
10344 for element in $INCEXPAT; do
10345 haveit=
10346 for x in $CPPFLAGS; do
a9322a30 10347
81ecdfbb
RW
10348 acl_save_prefix="$prefix"
10349 prefix="$acl_final_prefix"
10350 acl_save_exec_prefix="$exec_prefix"
10351 exec_prefix="$acl_final_exec_prefix"
10352 eval x=\"$x\"
10353 exec_prefix="$acl_save_exec_prefix"
10354 prefix="$acl_save_prefix"
a8111142 10355
81ecdfbb
RW
10356 if test "X$x" = "X$element"; then
10357 haveit=yes
10358 break
10359 fi
10360 done
10361 if test -z "$haveit"; then
10362 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10363 fi
10364 done
a9322a30
TT
10365
10366
81ecdfbb
RW
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10368$as_echo_n "checking for libexpat... " >&6; }
10369if test "${ac_cv_libexpat+set}" = set; then :
10370 $as_echo_n "(cached) " >&6
bec39cab 10371else
bec39cab 10372
81ecdfbb
RW
10373 ac_save_LIBS="$LIBS"
10374 LIBS="$LIBS $LIBEXPAT"
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 10376/* end confdefs.h. */
81ecdfbb
RW
10377#include "expat.h"
10378int
10379main ()
10380{
10381XML_Parser p = XML_ParserCreate (0);
10382 ;
10383 return 0;
10384}
bec39cab 10385_ACEOF
81ecdfbb
RW
10386if ac_fn_c_try_link "$LINENO"; then :
10387 ac_cv_libexpat=yes
c906108c 10388else
81ecdfbb 10389 ac_cv_libexpat=no
bec39cab 10390fi
81ecdfbb
RW
10391rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LIBS="$ac_save_LIBS"
c906108c 10394
95ca63c4 10395fi
81ecdfbb
RW
10396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10397$as_echo "$ac_cv_libexpat" >&6; }
10398 if test "$ac_cv_libexpat" = yes; then
10399 HAVE_LIBEXPAT=yes
bec39cab 10400
81ecdfbb 10401$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
bec39cab 10402
81ecdfbb
RW
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10404$as_echo_n "checking how to link with libexpat... " >&6; }
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10406$as_echo "$LIBEXPAT" >&6; }
10407 else
10408 HAVE_LIBEXPAT=no
10409 CPPFLAGS="$ac_save_CPPFLAGS"
10410 LIBEXPAT=
10411 LTLIBEXPAT=
10412 fi
95ca63c4
CF
10413
10414
10415
7cb9022a
MK
10416
10417
bec39cab 10418
81ecdfbb
RW
10419 if test "$HAVE_LIBEXPAT" != yes; then
10420 if test "$with_expat" = yes; then
10421 as_fn_error "expat is missing or unusable" "$LINENO" 5
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10424$as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10425 fi
10426 else
10427 save_LIBS=$LIBS
10428 LIBS="$LIBS $LIBEXPAT"
10429 for ac_func in XML_StopParser
10430do :
10431 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10432if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
bec39cab 10433 cat >>confdefs.h <<_ACEOF
81ecdfbb 10434#define HAVE_XML_STOPPARSER 1
bec39cab 10435_ACEOF
95ca63c4 10436
bec39cab 10437fi
bec39cab 10438done
95ca63c4 10439
81ecdfbb
RW
10440 LIBS=$save_LIBS
10441 fi
a9322a30
TT
10442fi
10443
a9322a30 10444
a9322a30
TT
10445
10446
ec685c5e 10447
0c4a4063 10448
81ecdfbb
RW
10449# Check whether --with-python was given.
10450if test "${with_python+set}" = set; then :
10451 withval=$with_python;
bec39cab 10452else
81ecdfbb 10453 with_python=auto
bec39cab 10454fi
bec39cab 10455
81ecdfbb
RW
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10457$as_echo_n "checking whether to use python... " >&6; }
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10459$as_echo "$with_python" >&6; }
9a156167 10460
81ecdfbb
RW
10461if test "${with_python}" = no; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10463$as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10464 have_libpython=no
bec39cab 10465else
81ecdfbb 10466 case "${with_python}" in
81ecdfbb 10467 /*)
ec685c5e
DE
10468 if test -d ${with_python}; then
10469 # Assume the python binary is ${with_python}/bin/python.
ec685c5e 10470 python_prog="${with_python}/bin/python"
0c4a4063 10471 python_prefix=
e7a30f46 10472 if test ! -x "${python_prog}"; then
ec685c5e
DE
10473 # Fall back to gdb 7.0/7.1 behaviour.
10474 python_prog=missing
0c4a4063 10475 python_prefix=${with_python}
ec685c5e 10476 fi
e7a30f46 10477 elif test -x "${with_python}"; then
ec685c5e
DE
10478 # While we can't run python compiled for $host (unless host == build),
10479 # the user could write a script that provides the needed information,
10480 # so we support that.
ec685c5e 10481 python_prog=${with_python}
0c4a4063 10482 python_prefix=
ec685c5e
DE
10483 else
10484 as_fn_error "invalid value for --with-python" "$LINENO" 5
10485 fi
81ecdfbb 10486 ;;
ec685c5e
DE
10487 */*)
10488 # Disallow --with-python=foo/bar.
81ecdfbb
RW
10489 as_fn_error "invalid value for --with-python" "$LINENO" 5
10490 ;;
ec685c5e
DE
10491 *)
10492 # The user has either specified auto, yes, or the name of the python
10493 # program assumed to be in $PATH.
10494 python_prefix=
10495 case "${with_python}" in
10496 yes | auto)
10497 if test ${build} = ${host}; then
10498 # Extract the first word of "python", so it can be a program name with args.
10499set dummy python; ac_word=$2
10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501$as_echo_n "checking for $ac_word... " >&6; }
10502if test "${ac_cv_path_python_prog_path+set}" = set; then :
10503 $as_echo_n "(cached) " >&6
10504else
10505 case $python_prog_path in
10506 [\\/]* | ?:[\\/]*)
10507 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10508 ;;
10509 *)
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $PATH
10512do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10520 fi
10521done
10522 done
10523IFS=$as_save_IFS
10524
10525 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10526 ;;
10527esac
10528fi
10529python_prog_path=$ac_cv_path_python_prog_path
10530if test -n "$python_prog_path"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10532$as_echo "$python_prog_path" >&6; }
10533else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535$as_echo "no" >&6; }
10536fi
10537
10538
10539 if test "${python_prog_path}" = missing; then
10540 python_prog=missing
10541 else
10542 python_prog=${python_prog_path}
10543 fi
10544 else
10545 # Not much we can do except assume the cross-compiler will find the
10546 # right files.
10547 python_prog=missing
10548 fi
10549 ;;
10550 *)
10551 # While we can't run python compiled for $host (unless host == build),
10552 # the user could write a script that provides the needed information,
10553 # so we support that.
10554 python_prog="${with_python}"
10555 # Extract the first word of "${python_prog}", so it can be a program name with args.
10556set dummy ${python_prog}; ac_word=$2
10557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558$as_echo_n "checking for $ac_word... " >&6; }
10559if test "${ac_cv_path_python_prog_path+set}" = set; then :
10560 $as_echo_n "(cached) " >&6
10561else
10562 case $python_prog_path in
10563 [\\/]* | ?:[\\/]*)
10564 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10565 ;;
10566 *)
10567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568for as_dir in $PATH
10569do
10570 IFS=$as_save_IFS
10571 test -z "$as_dir" && as_dir=.
10572 for ac_exec_ext in '' $ac_executable_extensions; do
10573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10574 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576 break 2
10577 fi
10578done
10579 done
10580IFS=$as_save_IFS
10581
10582 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10583 ;;
10584esac
10585fi
10586python_prog_path=$ac_cv_path_python_prog_path
10587if test -n "$python_prog_path"; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10589$as_echo "$python_prog_path" >&6; }
10590else
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592$as_echo "no" >&6; }
10593fi
10594
10595
10596 if test "${python_prog_path}" = missing; then
10597 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10598 fi
10599 ;;
10600 esac
81ecdfbb
RW
10601 esac
10602
ec685c5e 10603 if test "${python_prog}" != missing; then
e7a30f46
DE
10604 # We have a python program to use, but it may be too old.
10605 # Don't flag an error for --with-python=auto (the default).
10606 have_python_config=yes
ec685c5e
DE
10607 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10608 if test $? != 0; then
e7a30f46
DE
10609 have_python_config=failed
10610 if test "${with_python}" != auto; then
10611 as_fn_error "failure running python-config --includes" "$LINENO" 5
10612 fi
ec685c5e
DE
10613 fi
10614 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10615 if test $? != 0; then
e7a30f46
DE
10616 have_python_config=failed
10617 if test "${with_python}" != auto; then
10618 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10619 fi
ec685c5e 10620 fi
0c4a4063
DE
10621 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10622 if test $? != 0; then
e7a30f46
DE
10623 have_python_config=failed
10624 if test "${with_python}" != auto; then
10625 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10626 fi
0c4a4063 10627 fi
ec685c5e
DE
10628 else
10629 # Fall back to gdb 7.0/7.1 behaviour.
10630 if test -z ${python_prefix}; then
10631 python_includes=
10632 python_libs=
10633 else
10634 python_includes="-I${python_prefix}/include"
10635 python_libs="-L${python_prefix}/lib"
10636 fi
0c4a4063 10637 have_python_config=no
ec685c5e 10638 fi
bec39cab 10639
ec685c5e
DE
10640 # Having "/pythonX.Y" in the include path is awkward.
10641 # All those python headers get bubbled up to the top inviting lots
10642 # of random collisions. GDB originally didn't use python-config to
10643 # find the compilation parameters and includes "pythonX.Y/" in the
10644 # path of the, umm, include file. So strip away this part of the
10645 # output of python-config --includes.
10646 python_includes=`echo "${python_includes} " \
0c4a4063 10647 | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
bec39cab 10648
ec685c5e
DE
10649 # If we have python-config, only try the configuration it provides.
10650 # Otherwise fallback on the old way of trying different versions of
10651 # python in turn.
81ecdfbb 10652
ec685c5e
DE
10653 have_libpython=no
10654 if test "${have_python_config}" = yes; then
10655 python_version=`echo " ${python_libs} " \
0c4a4063
DE
10656 | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10657 case "${python_version}" in
10658 python*)
ec685c5e
DE
10659
10660 version=${python_version}
10661
10662 new_CPPFLAGS=${python_includes}
10663 new_LIBS=${python_libs}
81ecdfbb
RW
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10665$as_echo_n "checking for ${version}... " >&6; }
ec685c5e 10666 save_CPPFLAGS=$CPPFLAGS
81ecdfbb 10667 save_LIBS=$LIBS
ec685c5e
DE
10668 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10669 LIBS="$LIBS $new_LIBS"
10670 found_usable_python=no
81ecdfbb 10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 10672/* end confdefs.h. */
81ecdfbb
RW
10673#include "${version}/Python.h"
10674int
10675main ()
10676{
10677Py_Initialize ();
10678 ;
10679 return 0;
10680}
bec39cab 10681_ACEOF
81ecdfbb 10682if ac_fn_c_try_link "$LINENO"; then :
ec685c5e
DE
10683 have_libpython=${version}
10684 found_usable_python=yes
bec39cab 10685else
ec685c5e
DE
10686 CPPFLAGS=$save_CPPFLAGS
10687 LIBS=$save_LIBS
9a156167 10688fi
81ecdfbb
RW
10689rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
ec685c5e
DE
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10692$as_echo "${found_usable_python}" >&6; }
9a156167 10693
0c4a4063
DE
10694 ;;
10695 *)
ec685c5e 10696 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
0c4a4063
DE
10697 ;;
10698 esac
e7a30f46 10699 elif test "${have_python_config}" != failed; then
ec685c5e 10700 if test "${have_libpython}" = no; then
9a156167 10701
420697bb
TT
10702 version=python2.7
10703
10704 new_CPPFLAGS=${python_includes}
10705 new_LIBS="${python_libs} -lpython2.7"
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10707$as_echo_n "checking for ${version}... " >&6; }
10708 save_CPPFLAGS=$CPPFLAGS
10709 save_LIBS=$LIBS
10710 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10711 LIBS="$LIBS $new_LIBS"
10712 found_usable_python=no
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714/* end confdefs.h. */
10715#include "${version}/Python.h"
10716int
10717main ()
10718{
10719Py_Initialize ();
10720 ;
10721 return 0;
10722}
10723_ACEOF
10724if ac_fn_c_try_link "$LINENO"; then :
10725 have_libpython=${version}
10726 found_usable_python=yes
10727else
10728 CPPFLAGS=$save_CPPFLAGS
10729 LIBS=$save_LIBS
10730fi
10731rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10734$as_echo "${found_usable_python}" >&6; }
10735
10736 fi
10737 if test "${have_libpython}" = no; then
10738
ec685c5e
DE
10739 version=python2.6
10740
10741 new_CPPFLAGS=${python_includes}
10742 new_LIBS="${python_libs} -lpython2.6"
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10744$as_echo_n "checking for ${version}... " >&6; }
10745 save_CPPFLAGS=$CPPFLAGS
10746 save_LIBS=$LIBS
10747 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10748 LIBS="$LIBS $new_LIBS"
10749 found_usable_python=no
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751/* end confdefs.h. */
10752#include "${version}/Python.h"
10753int
10754main ()
10755{
10756Py_Initialize ();
10757 ;
10758 return 0;
10759}
10760_ACEOF
10761if ac_fn_c_try_link "$LINENO"; then :
10762 have_libpython=${version}
10763 found_usable_python=yes
10764else
10765 CPPFLAGS=$save_CPPFLAGS
10766 LIBS=$save_LIBS
10767fi
10768rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10771$as_echo "${found_usable_python}" >&6; }
9a156167 10772
81ecdfbb 10773 fi
ec685c5e 10774 if test ${have_libpython} = no; then
9a156167 10775
81ecdfbb 10776 version=python2.5
9a156167 10777
ec685c5e
DE
10778 new_CPPFLAGS=${python_includes}
10779 new_LIBS="${python_libs} -lpython2.5"
81ecdfbb
RW
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10781$as_echo_n "checking for ${version}... " >&6; }
ec685c5e 10782 save_CPPFLAGS=$CPPFLAGS
81ecdfbb 10783 save_LIBS=$LIBS
ec685c5e
DE
10784 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10785 LIBS="$LIBS $new_LIBS"
10786 found_usable_python=no
81ecdfbb 10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
436868fb 10788/* end confdefs.h. */
81ecdfbb
RW
10789#include "${version}/Python.h"
10790int
10791main ()
10792{
10793Py_Initialize ();
10794 ;
10795 return 0;
10796}
436868fb 10797_ACEOF
81ecdfbb 10798if ac_fn_c_try_link "$LINENO"; then :
ec685c5e
DE
10799 have_libpython=${version}
10800 found_usable_python=yes
436868fb 10801else
ec685c5e
DE
10802 CPPFLAGS=$save_CPPFLAGS
10803 LIBS=$save_LIBS
436868fb 10804fi
81ecdfbb
RW
10805rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
ec685c5e
DE
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10808$as_echo "${found_usable_python}" >&6; }
a9322a30 10809
81ecdfbb 10810 fi
ec685c5e 10811 if test ${have_libpython} = no; then
a9322a30 10812
81ecdfbb 10813 version=python2.4
a9322a30 10814
ec685c5e
DE
10815 new_CPPFLAGS=${python_includes}
10816 new_LIBS="${python_libs} -lpython2.4"
81ecdfbb
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10818$as_echo_n "checking for ${version}... " >&6; }
ec685c5e 10819 save_CPPFLAGS=$CPPFLAGS
81ecdfbb 10820 save_LIBS=$LIBS
ec685c5e
DE
10821 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10822 LIBS="$LIBS $new_LIBS"
10823 found_usable_python=no
81ecdfbb 10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
436868fb 10825/* end confdefs.h. */
81ecdfbb 10826#include "${version}/Python.h"
a9322a30
TT
10827int
10828main ()
10829{
81ecdfbb 10830Py_Initialize ();
a9322a30
TT
10831 ;
10832 return 0;
10833}
436868fb 10834_ACEOF
81ecdfbb 10835if ac_fn_c_try_link "$LINENO"; then :
ec685c5e
DE
10836 have_libpython=${version}
10837 found_usable_python=yes
436868fb 10838else
ec685c5e
DE
10839 CPPFLAGS=$save_CPPFLAGS
10840 LIBS=$save_LIBS
436868fb 10841fi
81ecdfbb
RW
10842rm -f core conftest.err conftest.$ac_objext \
10843 conftest$ac_exeext conftest.$ac_ext
ec685c5e
DE
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10845$as_echo "${found_usable_python}" >&6; }
81ecdfbb 10846
ec685c5e
DE
10847 fi
10848 fi
11763c18
TT
10849 if test "${have_libpython}" = python2.7; then
10850
10851$as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10852
10853 elif test "${have_libpython}" = python2.6; then
ec685c5e
DE
10854
10855$as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10856
10857 elif test "${have_libpython}" = python2.5; then
10858
10859$as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10860
10861 elif test "${have_libpython}" = python2.4; then
81ecdfbb
RW
10862
10863$as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10864
81ecdfbb 10865 fi
ec685c5e
DE
10866
10867 if test "${have_libpython}" = no; then
81ecdfbb
RW
10868 case "${with_python}" in
10869 yes)
10870 as_fn_error "python is missing or unusable" "$LINENO" 5
10871 ;;
10872 auto)
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10874$as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10875 ;;
10876 *)
10877 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10878 ;;
10879 esac
0c4a4063
DE
10880 else
10881 if test -n "${python_prefix}"; then
10882
10883cat >>confdefs.h <<_ACEOF
10884#define WITH_PYTHON_PATH "${python_prefix}"
10885_ACEOF
10886
10887
10888 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10889 if test "x$prefix" = xNONE; then
10890 test_prefix=/usr/local
10891 else
10892 test_prefix=$prefix
10893 fi
10894 else
10895 test_prefix=$exec_prefix
10896 fi
10897 value=0
10898 case ${python_prefix} in
10899 "${test_prefix}"|"${test_prefix}/"*|\
10900 '${exec_prefix}'|'${exec_prefix}/'*)
10901 value=1
10902 ;;
10903 esac
10904
10905cat >>confdefs.h <<_ACEOF
10906#define PYTHON_PATH_RELOCATABLE $value
10907_ACEOF
10908
10909
10910 fi
81ecdfbb 10911 fi
436868fb 10912fi
436868fb 10913
ec685c5e 10914if test "${have_libpython}" != no; then
436868fb 10915
81ecdfbb 10916$as_echo "#define HAVE_PYTHON 1" >>confdefs.h
436868fb 10917
81ecdfbb
RW
10918 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10919 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10920 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
94f7449c 10921 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
81ecdfbb 10922 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
436868fb 10923
81ecdfbb
RW
10924 # Flags needed to compile Python code (taken from python-config --cflags).
10925 # We cannot call python-config directly because it will output whatever was
10926 # used when compiling the Python interpreter itself, including flags which
10927 # would make the python-related objects be compiled differently from the
10928 # rest of GDB (e.g., -O2 and -fPIC).
10929 if test "${GCC}" = yes; then
10930 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10931 fi
436868fb 10932
81ecdfbb
RW
10933 if test "x${tentative_python_cflags}" != x; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10935$as_echo_n "checking compiler flags for python code... " >&6; }
10936 for flag in ${tentative_python_cflags}; do
10937 # Check that the compiler accepts it
10938 saved_CFLAGS="$CFLAGS"
10939 CFLAGS="$CFLAGS $flag"
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 10941/* end confdefs.h. */
81ecdfbb 10942
a9322a30
TT
10943int
10944main ()
10945{
a9322a30
TT
10946
10947 ;
10948 return 0;
10949}
bec39cab 10950_ACEOF
81ecdfbb
RW
10951if ac_fn_c_try_compile "$LINENO"; then :
10952 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
bec39cab 10953fi
81ecdfbb
RW
10954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10955 CFLAGS="$saved_CFLAGS"
10956 done
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10958$as_echo "${PYTHON_CFLAGS}" >&6; }
10959 fi
10960else
10961 # Even if Python support is not compiled in, we need to have these files
88a1906b
DE
10962 # included.
10963 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10964 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10965 python/py-prettyprint.c python/py-auto-load.c"
a9322a30 10966fi
9a156167 10967
9a156167 10968
81ecdfbb
RW
10969# ------------------------- #
10970# Checks for header files. #
10971# ------------------------- #
c890192f 10972
81ecdfbb
RW
10973ac_header_dirent=no
10974for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10975 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10977$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10979 $as_echo_n "(cached) " >&6
bec39cab 10980else
81ecdfbb 10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 10982/* end confdefs.h. */
81ecdfbb
RW
10983#include <sys/types.h>
10984#include <$ac_hdr>
10985
a9322a30
TT
10986int
10987main ()
10988{
81ecdfbb
RW
10989if ((DIR *) 0)
10990return 0;
a9322a30
TT
10991 ;
10992 return 0;
10993}
bec39cab 10994_ACEOF
81ecdfbb
RW
10995if ac_fn_c_try_compile "$LINENO"; then :
10996 eval "$as_ac_Header=yes"
bec39cab 10997else
81ecdfbb 10998 eval "$as_ac_Header=no"
bec39cab 10999fi
81ecdfbb 11000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9322a30 11001fi
81ecdfbb
RW
11002eval ac_res=\$$as_ac_Header
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11004$as_echo "$ac_res" >&6; }
11005eval as_val=\$$as_ac_Header
11006 if test "x$as_val" = x""yes; then :
11007 cat >>confdefs.h <<_ACEOF
11008#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
bec39cab 11009_ACEOF
bec39cab 11010
81ecdfbb
RW
11011ac_header_dirent=$ac_hdr; break
11012fi
bec39cab 11013
81ecdfbb
RW
11014done
11015# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11016if test $ac_header_dirent = dirent.h; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11018$as_echo_n "checking for library containing opendir... " >&6; }
11019if test "${ac_cv_search_opendir+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
c890192f 11021else
81ecdfbb
RW
11022 ac_func_search_save_LIBS=$LIBS
11023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024/* end confdefs.h. */
11025
11026/* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11029#ifdef __cplusplus
11030extern "C"
11031#endif
11032char opendir ();
11033int
11034main ()
11035{
11036return opendir ();
11037 ;
11038 return 0;
11039}
bec39cab 11040_ACEOF
81ecdfbb
RW
11041for ac_lib in '' dir; do
11042 if test -z "$ac_lib"; then
11043 ac_res="none required"
11044 else
11045 ac_res=-l$ac_lib
11046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11047 fi
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_search_opendir=$ac_res
11050fi
11051rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext
11053 if test "${ac_cv_search_opendir+set}" = set; then :
11054 break
11055fi
11056done
11057if test "${ac_cv_search_opendir+set}" = set; then :
c890192f 11058
81ecdfbb
RW
11059else
11060 ac_cv_search_opendir=no
11061fi
11062rm conftest.$ac_ext
11063LIBS=$ac_func_search_save_LIBS
11064fi
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11066$as_echo "$ac_cv_search_opendir" >&6; }
11067ac_res=$ac_cv_search_opendir
11068if test "$ac_res" != no; then :
11069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
bec39cab 11070
bec39cab 11071fi
81ecdfbb 11072
bec39cab 11073else
81ecdfbb
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11075$as_echo_n "checking for library containing opendir... " >&6; }
11076if test "${ac_cv_search_opendir+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078else
11079 ac_func_search_save_LIBS=$LIBS
11080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11081/* end confdefs.h. */
81ecdfbb
RW
11082
11083/* Override any GCC internal prototype to avoid an error.
11084 Use char because int might match the return type of a GCC
11085 builtin and then its argument prototype would still apply. */
11086#ifdef __cplusplus
11087extern "C"
11088#endif
11089char opendir ();
a9322a30
TT
11090int
11091main ()
11092{
81ecdfbb 11093return opendir ();
a9322a30
TT
11094 ;
11095 return 0;
11096}
bec39cab 11097_ACEOF
81ecdfbb
RW
11098for ac_lib in '' x; do
11099 if test -z "$ac_lib"; then
11100 ac_res="none required"
11101 else
11102 ac_res=-l$ac_lib
11103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11104 fi
11105 if ac_fn_c_try_link "$LINENO"; then :
11106 ac_cv_search_opendir=$ac_res
11107fi
11108rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext
11110 if test "${ac_cv_search_opendir+set}" = set; then :
11111 break
11112fi
11113done
11114if test "${ac_cv_search_opendir+set}" = set; then :
bec39cab 11115
81ecdfbb
RW
11116else
11117 ac_cv_search_opendir=no
bec39cab 11118fi
81ecdfbb
RW
11119rm conftest.$ac_ext
11120LIBS=$ac_func_search_save_LIBS
a9322a30 11121fi
81ecdfbb
RW
11122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11123$as_echo "$ac_cv_search_opendir" >&6; }
11124ac_res=$ac_cv_search_opendir
11125if test "$ac_res" != no; then :
11126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
bec39cab 11127
81ecdfbb 11128fi
bec39cab 11129
81ecdfbb 11130fi
bec39cab 11131
81ecdfbb
RW
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11133$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11134if test "${ac_cv_header_stat_broken+set}" = set; then :
11135 $as_echo_n "(cached) " >&6
9a156167 11136else
81ecdfbb
RW
11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138/* end confdefs.h. */
11139#include <sys/types.h>
11140#include <sys/stat.h>
11141
11142#if defined S_ISBLK && defined S_IFDIR
11143extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11144#endif
11145
11146#if defined S_ISBLK && defined S_IFCHR
11147extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11148#endif
11149
11150#if defined S_ISLNK && defined S_IFREG
11151extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11152#endif
11153
11154#if defined S_ISSOCK && defined S_IFREG
11155extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11156#endif
11157
bec39cab 11158_ACEOF
81ecdfbb
RW
11159if ac_fn_c_try_compile "$LINENO"; then :
11160 ac_cv_header_stat_broken=no
11161else
11162 ac_cv_header_stat_broken=yes
11163fi
11164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165fi
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11167$as_echo "$ac_cv_header_stat_broken" >&6; }
11168if test $ac_cv_header_stat_broken = yes; then
9a156167 11169
81ecdfbb 11170$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
06825bd1 11171
bec39cab 11172fi
81ecdfbb
RW
11173
11174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11175$as_echo_n "checking for ANSI C header files... " >&6; }
11176if test "${ac_cv_header_stdc+set}" = set; then :
11177 $as_echo_n "(cached) " >&6
bec39cab 11178else
81ecdfbb 11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11180/* end confdefs.h. */
81ecdfbb
RW
11181#include <stdlib.h>
11182#include <stdarg.h>
11183#include <string.h>
11184#include <float.h>
11185
a9322a30
TT
11186int
11187main ()
11188{
a9322a30
TT
11189
11190 ;
11191 return 0;
11192}
bec39cab 11193_ACEOF
81ecdfbb
RW
11194if ac_fn_c_try_compile "$LINENO"; then :
11195 ac_cv_header_stdc=yes
bec39cab 11196else
81ecdfbb 11197 ac_cv_header_stdc=no
a9322a30 11198fi
81ecdfbb 11199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11200
81ecdfbb
RW
11201if test $ac_cv_header_stdc = yes; then
11202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204/* end confdefs.h. */
11205#include <string.h>
bec39cab 11206
81ecdfbb
RW
11207_ACEOF
11208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11209 $EGREP "memchr" >/dev/null 2>&1; then :
bec39cab 11210
bec39cab 11211else
81ecdfbb
RW
11212 ac_cv_header_stdc=no
11213fi
11214rm -f conftest*
11215
11216fi
11217
11218if test $ac_cv_header_stdc = yes; then
11219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221/* end confdefs.h. */
11222#include <stdlib.h>
11223
bec39cab 11224_ACEOF
81ecdfbb
RW
11225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11226 $EGREP "free" >/dev/null 2>&1; then :
06825bd1 11227
81ecdfbb
RW
11228else
11229 ac_cv_header_stdc=no
11230fi
11231rm -f conftest*
bec39cab 11232
bec39cab 11233fi
81ecdfbb
RW
11234
11235if test $ac_cv_header_stdc = yes; then
11236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11237 if test "$cross_compiling" = yes; then :
11238 :
bec39cab 11239else
81ecdfbb 11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11241/* end confdefs.h. */
81ecdfbb
RW
11242#include <ctype.h>
11243#include <stdlib.h>
11244#if ((' ' & 0x0FF) == 0x020)
11245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11247#else
11248# define ISLOWER(c) \
11249 (('a' <= (c) && (c) <= 'i') \
11250 || ('j' <= (c) && (c) <= 'r') \
11251 || ('s' <= (c) && (c) <= 'z'))
11252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11253#endif
11254
11255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
a9322a30
TT
11256int
11257main ()
11258{
81ecdfbb
RW
11259 int i;
11260 for (i = 0; i < 256; i++)
11261 if (XOR (islower (i), ISLOWER (i))
11262 || toupper (i) != TOUPPER (i))
11263 return 2;
a9322a30
TT
11264 return 0;
11265}
bec39cab 11266_ACEOF
81ecdfbb
RW
11267if ac_fn_c_try_run "$LINENO"; then :
11268
bec39cab 11269else
81ecdfbb
RW
11270 ac_cv_header_stdc=no
11271fi
11272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11273 conftest.$ac_objext conftest.beam conftest.$ac_ext
11274fi
bec39cab 11275
bec39cab 11276fi
a9322a30 11277fi
81ecdfbb
RW
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11279$as_echo "$ac_cv_header_stdc" >&6; }
11280if test $ac_cv_header_stdc = yes; then
bec39cab 11281
81ecdfbb 11282$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5ee754fc 11283
81ecdfbb 11284fi
bec39cab 11285
81ecdfbb
RW
11286# elf_hp.h is for HP/UX 64-bit shared library support.
11287# FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11288# unconditionally, so what's the point in checking these?
11289for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11290 thread_db.h gnu/libc-version.h signal.h stddef.h \
11291 stdlib.h string.h memory.h strings.h sys/fault.h \
11292 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11293 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11294 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11295 sys/types.h sys/wait.h wait.h termios.h termio.h \
11296 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11297do :
11298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11299ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11300eval as_val=\$$as_ac_Header
11301 if test "x$as_val" = x""yes; then :
bec39cab 11302 cat >>confdefs.h <<_ACEOF
81ecdfbb 11303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 11304_ACEOF
c906108c 11305
bec39cab 11306fi
81ecdfbb
RW
11307
11308done
11309
11310for ac_header in link.h
11311do :
11312 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11313# include <sys/types.h>
11314#endif
11315#if HAVE_NLIST_H
11316# include <nlist.h>
a9322a30
TT
11317#endif
11318
81ecdfbb
RW
11319"
11320if test "x$ac_cv_header_link_h" = x""yes; then :
11321 cat >>confdefs.h <<_ACEOF
11322#define HAVE_LINK_H 1
bec39cab 11323_ACEOF
bec39cab 11324
a9322a30 11325fi
bec39cab 11326
81ecdfbb 11327done
c906108c 11328
81ecdfbb
RW
11329for ac_header in sys/proc.h
11330do :
11331 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11332# include <sys/param.h>
11333#endif
c906108c 11334
81ecdfbb
RW
11335"
11336if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
bec39cab 11337 cat >>confdefs.h <<_ACEOF
81ecdfbb 11338#define HAVE_SYS_PROC_H 1
bec39cab 11339_ACEOF
5ee754fc 11340
bec39cab 11341fi
81ecdfbb
RW
11342
11343done
11344
11345for ac_header in sys/user.h
11346do :
11347 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11348# include <sys/param.h>
a9322a30
TT
11349#endif
11350
81ecdfbb
RW
11351"
11352if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11353 cat >>confdefs.h <<_ACEOF
11354#define HAVE_SYS_USER_H 1
bec39cab 11355_ACEOF
bec39cab 11356
a9322a30 11357fi
bec39cab 11358
81ecdfbb 11359done
5ee754fc 11360
5ee754fc 11361
81ecdfbb
RW
11362# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11363# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11364# think that we don't have <curses.h> if we're using GCC.
11365case $host_os in
11366 solaris2.[789])
11367 if test "$GCC" = yes; then
11368
11369$as_echo "#define _MSE_INT_H 1" >>confdefs.h
11370
11371 fi ;;
11372esac
11373for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11374do :
11375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11376ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11377eval as_val=\$$as_ac_Header
11378 if test "x$as_val" = x""yes; then :
bec39cab 11379 cat >>confdefs.h <<_ACEOF
81ecdfbb 11380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 11381_ACEOF
5ee754fc
MK
11382
11383fi
11384
81ecdfbb 11385done
bec39cab 11386
81ecdfbb
RW
11387for ac_header in term.h
11388do :
11389 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11390# include <curses.h>
11391#endif
bec39cab 11392
81ecdfbb
RW
11393"
11394if test "x$ac_cv_header_term_h" = x""yes; then :
11395 cat >>confdefs.h <<_ACEOF
11396#define HAVE_TERM_H 1
a8111142 11397_ACEOF
a8111142 11398
a8111142 11399fi
a8111142 11400
81ecdfbb 11401done
a8111142
TT
11402
11403
81ecdfbb
RW
11404# ------------------------- #
11405# Checks for declarations. #
11406# ------------------------- #
a9322a30 11407
81ecdfbb
RW
11408ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11409if test "x$ac_cv_have_decl_free" = x""yes; then :
11410 ac_have_decl=1
bec39cab 11411else
81ecdfbb
RW
11412 ac_have_decl=0
11413fi
11414
11415cat >>confdefs.h <<_ACEOF
11416#define HAVE_DECL_FREE $ac_have_decl
bec39cab 11417_ACEOF
81ecdfbb
RW
11418ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11419if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11420 ac_have_decl=1
11421else
11422 ac_have_decl=0
11423fi
11424
11425cat >>confdefs.h <<_ACEOF
11426#define HAVE_DECL_MALLOC $ac_have_decl
bec39cab 11427_ACEOF
81ecdfbb
RW
11428ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11429if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11430 ac_have_decl=1
bec39cab 11431else
81ecdfbb
RW
11432 ac_have_decl=0
11433fi
bec39cab 11434
81ecdfbb
RW
11435cat >>confdefs.h <<_ACEOF
11436#define HAVE_DECL_REALLOC $ac_have_decl
bec39cab 11437_ACEOF
81ecdfbb
RW
11438ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11439if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11440 ac_have_decl=1
11441else
11442 ac_have_decl=0
11443fi
11444
11445cat >>confdefs.h <<_ACEOF
11446#define HAVE_DECL_STRERROR $ac_have_decl
bec39cab 11447_ACEOF
81ecdfbb
RW
11448ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11449if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11450 ac_have_decl=1
bec39cab 11451else
81ecdfbb
RW
11452 ac_have_decl=0
11453fi
5ee754fc 11454
81ecdfbb
RW
11455cat >>confdefs.h <<_ACEOF
11456#define HAVE_DECL_STRSTR $ac_have_decl
11457_ACEOF
11458ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11459if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11460 ac_have_decl=1
11461else
11462 ac_have_decl=0
5ee754fc 11463fi
81ecdfbb
RW
11464
11465cat >>confdefs.h <<_ACEOF
11466#define HAVE_DECL_GETOPT $ac_have_decl
11467_ACEOF
11468ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11469if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11470 ac_have_decl=1
11471else
11472 ac_have_decl=0
5ee754fc 11473fi
81ecdfbb
RW
11474
11475cat >>confdefs.h <<_ACEOF
11476#define HAVE_DECL_SNPRINTF $ac_have_decl
11477_ACEOF
11478ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11479if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11480 ac_have_decl=1
11481else
11482 ac_have_decl=0
5ee754fc
MK
11483fi
11484
a9322a30 11485cat >>confdefs.h <<_ACEOF
81ecdfbb 11486#define HAVE_DECL_VSNPRINTF $ac_have_decl
a9322a30 11487_ACEOF
5ee754fc 11488
5ee754fc 11489
81ecdfbb
RW
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11491$as_echo_n "checking for LC_MESSAGES... " >&6; }
11492if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11493 $as_echo_n "(cached) " >&6
bec39cab 11494else
81ecdfbb 11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11496/* end confdefs.h. */
81ecdfbb 11497#include <locale.h>
a9322a30
TT
11498int
11499main ()
11500{
81ecdfbb 11501return LC_MESSAGES
a9322a30
TT
11502 ;
11503 return 0;
11504}
bec39cab 11505_ACEOF
81ecdfbb
RW
11506if ac_fn_c_try_link "$LINENO"; then :
11507 am_cv_val_LC_MESSAGES=yes
bec39cab 11508else
81ecdfbb
RW
11509 am_cv_val_LC_MESSAGES=no
11510fi
11511rm -f core conftest.err conftest.$ac_objext \
11512 conftest$ac_exeext conftest.$ac_ext
11513fi
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11515$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11516 if test $am_cv_val_LC_MESSAGES = yes; then
bec39cab 11517
81ecdfbb
RW
11518$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11519
11520 fi
11521
11522
11523# ----------------------- #
11524# Checks for structures. #
11525# ----------------------- #
11526
11527ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11528if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11529
11530cat >>confdefs.h <<_ACEOF
11531#define HAVE_STRUCT_STAT_ST_BLOCKS 1
7eb368b3 11532_ACEOF
7eb368b3 11533
81ecdfbb 11534
7eb368b3 11535fi
81ecdfbb
RW
11536ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11537if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
7eb368b3 11538
a9322a30
TT
11539cat >>confdefs.h <<_ACEOF
11540#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7eb368b3
NR
11541_ACEOF
11542
a9322a30 11543
7eb368b3
NR
11544fi
11545
7eb368b3 11546
a9322a30
TT
11547# ------------------ #
11548# Checks for types. #
11549# ------------------ #
7eb368b3 11550
81ecdfbb
RW
11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11552$as_echo_n "checking return type of signal handlers... " >&6; }
11553if test "${ac_cv_type_signal+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
bec39cab 11555else
81ecdfbb 11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11557/* end confdefs.h. */
a9322a30
TT
11558#include <sys/types.h>
11559#include <signal.h>
7cb9022a 11560
a9322a30
TT
11561int
11562main ()
11563{
81ecdfbb 11564return *(signal (0, 0)) (0) == 1;
a9322a30
TT
11565 ;
11566 return 0;
11567}
bec39cab 11568_ACEOF
81ecdfbb
RW
11569if ac_fn_c_try_compile "$LINENO"; then :
11570 ac_cv_type_signal=int
bec39cab 11571else
81ecdfbb 11572 ac_cv_type_signal=void
bec39cab 11573fi
81ecdfbb 11574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11575fi
81ecdfbb
RW
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11577$as_echo "$ac_cv_type_signal" >&6; }
bec39cab 11578
a9322a30
TT
11579cat >>confdefs.h <<_ACEOF
11580#define RETSIGTYPE $ac_cv_type_signal
11581_ACEOF
5ee754fc 11582
bec39cab 11583
81ecdfbb 11584ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
a9322a30
TT
11585#include <sys/socket.h>
11586
81ecdfbb
RW
11587"
11588if test "x$ac_cv_type_socklen_t" = x""yes; then :
bec39cab 11589
a9322a30
TT
11590cat >>confdefs.h <<_ACEOF
11591#define HAVE_SOCKLEN_T 1
11592_ACEOF
11593
11594
11595fi
11596
11597
11598# ------------------------------------- #
11599# Checks for compiler characteristics. #
11600# ------------------------------------- #
11601
81ecdfbb
RW
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11603$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11604if test "${ac_cv_c_const+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
a9322a30 11606else
81ecdfbb 11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11608/* end confdefs.h. */
a9322a30
TT
11609
11610int
11611main ()
11612{
11613/* FIXME: Include the comments suggested by Paul. */
11614#ifndef __cplusplus
11615 /* Ultrix mips cc rejects this. */
11616 typedef int charset[2];
81ecdfbb 11617 const charset cs;
a9322a30 11618 /* SunOS 4.1.1 cc rejects this. */
81ecdfbb
RW
11619 char const *const *pcpcc;
11620 char **ppc;
a9322a30
TT
11621 /* NEC SVR4.0.2 mips cc rejects this. */
11622 struct point {int x, y;};
11623 static struct point const zero = {0,0};
11624 /* AIX XL C 1.02.0.0 rejects this.
11625 It does not let you subtract one const X* pointer from another in
11626 an arm of an if-expression whose if-part is not a constant
11627 expression */
11628 const char *g = "string";
81ecdfbb 11629 pcpcc = &g + (g ? g-g : 0);
a9322a30 11630 /* HPUX 7.0 cc rejects these. */
81ecdfbb
RW
11631 ++pcpcc;
11632 ppc = (char**) pcpcc;
11633 pcpcc = (char const *const *) ppc;
a9322a30
TT
11634 { /* SCO 3.2v4 cc rejects this. */
11635 char *t;
11636 char const *s = 0 ? (char *) 0 : (char const *) 0;
11637
11638 *t++ = 0;
81ecdfbb 11639 if (s) return 0;
a9322a30
TT
11640 }
11641 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11642 int x[] = {25, 17};
11643 const int *foo = &x[0];
11644 ++foo;
11645 }
11646 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11647 typedef const int *iptr;
11648 iptr p = 0;
11649 ++p;
11650 }
11651 { /* AIX XL C 1.02.0.0 rejects this saying
11652 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11653 struct s { int j; const int *ap[3]; };
11654 struct s *b; b->j = 5;
11655 }
11656 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11657 const int foo = 10;
81ecdfbb 11658 if (!foo) return 0;
a9322a30 11659 }
81ecdfbb 11660 return !cs[0] && !zero.x;
a9322a30
TT
11661#endif
11662
11663 ;
11664 return 0;
11665}
bec39cab 11666_ACEOF
81ecdfbb 11667if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 11668 ac_cv_c_const=yes
5ee754fc 11669else
81ecdfbb 11670 ac_cv_c_const=no
5ee754fc 11671fi
81ecdfbb 11672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 11673fi
81ecdfbb
RW
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11675$as_echo "$ac_cv_c_const" >&6; }
a9322a30 11676if test $ac_cv_c_const = no; then
bec39cab 11677
81ecdfbb 11678$as_echo "#define const /**/" >>confdefs.h
bec39cab 11679
5ee754fc 11680fi
bec39cab 11681
81ecdfbb
RW
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11683$as_echo_n "checking for inline... " >&6; }
11684if test "${ac_cv_c_inline+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
bec39cab 11686else
a9322a30
TT
11687 ac_cv_c_inline=no
11688for ac_kw in inline __inline__ __inline; do
81ecdfbb 11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11690/* end confdefs.h. */
a9322a30
TT
11691#ifndef __cplusplus
11692typedef int foo_t;
11693static $ac_kw foo_t static_foo () {return 0; }
11694$ac_kw foo_t foo () {return 0; }
11695#endif
11696
bec39cab 11697_ACEOF
81ecdfbb
RW
11698if ac_fn_c_try_compile "$LINENO"; then :
11699 ac_cv_c_inline=$ac_kw
bec39cab 11700fi
81ecdfbb
RW
11701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11702 test "$ac_cv_c_inline" != no && break
a9322a30 11703done
bec39cab 11704
5ee754fc 11705fi
81ecdfbb
RW
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11707$as_echo "$ac_cv_c_inline" >&6; }
5ee754fc 11708
a9322a30
TT
11709case $ac_cv_c_inline in
11710 inline | yes) ;;
11711 *)
11712 case $ac_cv_c_inline in
11713 no) ac_val=;;
11714 *) ac_val=$ac_cv_c_inline;;
11715 esac
11716 cat >>confdefs.h <<_ACEOF
11717#ifndef __cplusplus
11718#define inline $ac_val
11719#endif
11720_ACEOF
bec39cab
AC
11721 ;;
11722esac
bec39cab 11723
81ecdfbb
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11725$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11726if test "${ac_cv_c_bigendian+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
bec39cab 11728else
81ecdfbb
RW
11729 ac_cv_c_bigendian=unknown
11730 # See if we're dealing with a universal compiler.
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732/* end confdefs.h. */
11733#ifndef __APPLE_CC__
11734 not a universal capable compiler
11735 #endif
11736 typedef int dummy;
11737
11738_ACEOF
11739if ac_fn_c_try_compile "$LINENO"; then :
11740
11741 # Check for potential -arch flags. It is not universal unless
11742 # there are at least two -arch flags with different values.
11743 ac_arch=
11744 ac_prev=
11745 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11746 if test -n "$ac_prev"; then
11747 case $ac_word in
11748 i?86 | x86_64 | ppc | ppc64)
11749 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11750 ac_arch=$ac_word
11751 else
11752 ac_cv_c_bigendian=universal
11753 break
11754 fi
11755 ;;
11756 esac
11757 ac_prev=
11758 elif test "x$ac_word" = "x-arch"; then
11759 ac_prev=arch
11760 fi
11761 done
11762fi
11763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11764 if test $ac_cv_c_bigendian = unknown; then
11765 # See if sys/param.h defines the BYTE_ORDER macro.
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11767/* end confdefs.h. */
a9322a30 11768#include <sys/types.h>
81ecdfbb 11769 #include <sys/param.h>
a9322a30
TT
11770
11771int
11772main ()
11773{
81ecdfbb
RW
11774#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11775 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11776 && LITTLE_ENDIAN)
11777 bogus endian macros
11778 #endif
a9322a30
TT
11779
11780 ;
11781 return 0;
11782}
bec39cab 11783_ACEOF
81ecdfbb 11784if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 11785 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11787/* end confdefs.h. */
a9322a30 11788#include <sys/types.h>
81ecdfbb 11789 #include <sys/param.h>
a9322a30
TT
11790
11791int
11792main ()
11793{
11794#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
11795 not big endian
11796 #endif
a9322a30
TT
11797
11798 ;
11799 return 0;
11800}
bec39cab 11801_ACEOF
81ecdfbb 11802if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 11803 ac_cv_c_bigendian=yes
5ee754fc 11804else
81ecdfbb 11805 ac_cv_c_bigendian=no
5ee754fc 11806fi
81ecdfbb
RW
11807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11808fi
11809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 fi
11811 if test $ac_cv_c_bigendian = unknown; then
11812 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814/* end confdefs.h. */
11815#include <limits.h>
bec39cab 11816
81ecdfbb
RW
11817int
11818main ()
11819{
11820#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11821 bogus endian macros
11822 #endif
11823
11824 ;
11825 return 0;
11826}
7eb368b3 11827_ACEOF
81ecdfbb
RW
11828if ac_fn_c_try_compile "$LINENO"; then :
11829 # It does; now see whether it defined to _BIG_ENDIAN or not.
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eb368b3 11831/* end confdefs.h. */
81ecdfbb
RW
11832#include <limits.h>
11833
7eb368b3
NR
11834int
11835main ()
11836{
81ecdfbb
RW
11837#ifndef _BIG_ENDIAN
11838 not big endian
11839 #endif
11840
7eb368b3
NR
11841 ;
11842 return 0;
11843}
11844_ACEOF
81ecdfbb 11845if ac_fn_c_try_compile "$LINENO"; then :
a9322a30 11846 ac_cv_c_bigendian=yes
81ecdfbb
RW
11847else
11848 ac_cv_c_bigendian=no
a9322a30 11849fi
81ecdfbb 11850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a9322a30 11851fi
81ecdfbb
RW
11852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 fi
11854 if test $ac_cv_c_bigendian = unknown; then
11855 # Compile a test program.
11856 if test "$cross_compiling" = yes; then :
11857 # Try to guess by grepping values from an object file.
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859/* end confdefs.h. */
11860short int ascii_mm[] =
11861 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11862 short int ascii_ii[] =
11863 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11864 int use_ascii (int i) {
11865 return ascii_mm[i] + ascii_ii[i];
11866 }
11867 short int ebcdic_ii[] =
11868 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11869 short int ebcdic_mm[] =
11870 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11871 int use_ebcdic (int i) {
11872 return ebcdic_mm[i] + ebcdic_ii[i];
11873 }
11874 extern int foo;
7eb368b3 11875
81ecdfbb
RW
11876int
11877main ()
11878{
11879return use_ascii (foo) == use_ebcdic (foo);
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884if ac_fn_c_try_compile "$LINENO"; then :
11885 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11886 ac_cv_c_bigendian=yes
11887 fi
11888 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11889 if test "$ac_cv_c_bigendian" = unknown; then
11890 ac_cv_c_bigendian=no
11891 else
11892 # finding both strings is unlikely to happen, but who knows?
11893 ac_cv_c_bigendian=unknown
11894 fi
11895 fi
7eb368b3 11896fi
81ecdfbb 11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11898else
81ecdfbb 11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11900/* end confdefs.h. */
81ecdfbb 11901$ac_includes_default
d3ea6809
MM
11902int
11903main ()
11904{
81ecdfbb
RW
11905
11906 /* Are we little or big endian? From Harbison&Steele. */
11907 union
11908 {
11909 long int l;
11910 char c[sizeof (long int)];
11911 } u;
11912 u.l = 1;
11913 return u.c[sizeof (long int) - 1] == 1;
11914
11915 ;
11916 return 0;
d3ea6809
MM
11917}
11918_ACEOF
81ecdfbb 11919if ac_fn_c_try_run "$LINENO"; then :
a9322a30 11920 ac_cv_c_bigendian=no
d3ea6809 11921else
81ecdfbb 11922 ac_cv_c_bigendian=yes
d3ea6809 11923fi
81ecdfbb
RW
11924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11925 conftest.$ac_objext conftest.beam conftest.$ac_ext
a9322a30 11926fi
a9322a30 11927
81ecdfbb
RW
11928 fi
11929fi
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11931$as_echo "$ac_cv_c_bigendian" >&6; }
11932 case $ac_cv_c_bigendian in #(
11933 yes)
11934 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11935;; #(
11936 no)
11937 ;; #(
11938 universal)
11939
11940$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11941
11942 ;; #(
11943 *)
11944 as_fn_error "unknown endianness
11945 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11946 esac
d3ea6809
MM
11947
11948
a9322a30
TT
11949# ------------------------------ #
11950# Checks for library functions. #
11951# ------------------------------ #
d3ea6809 11952
a9322a30
TT
11953# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11954# for constant arguments. Useless!
81ecdfbb
RW
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11956$as_echo_n "checking for working alloca.h... " >&6; }
11957if test "${ac_cv_working_alloca_h+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
d3ea6809 11959else
81ecdfbb 11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d3ea6809 11961/* end confdefs.h. */
a9322a30 11962#include <alloca.h>
bec39cab
AC
11963int
11964main ()
11965{
a9322a30 11966char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 11967 if (p) return 0;
bec39cab
AC
11968 ;
11969 return 0;
11970}
11971_ACEOF
81ecdfbb 11972if ac_fn_c_try_link "$LINENO"; then :
a9322a30 11973 ac_cv_working_alloca_h=yes
bec39cab 11974else
81ecdfbb 11975 ac_cv_working_alloca_h=no
bec39cab 11976fi
81ecdfbb
RW
11977rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
bec39cab 11979fi
81ecdfbb
RW
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11981$as_echo "$ac_cv_working_alloca_h" >&6; }
a9322a30
TT
11982if test $ac_cv_working_alloca_h = yes; then
11983
81ecdfbb 11984$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c906108c 11985
c906108c 11986fi
bec39cab 11987
81ecdfbb
RW
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11989$as_echo_n "checking for alloca... " >&6; }
11990if test "${ac_cv_func_alloca_works+set}" = set; then :
11991 $as_echo_n "(cached) " >&6
bec39cab 11992else
81ecdfbb 11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 11994/* end confdefs.h. */
a9322a30
TT
11995#ifdef __GNUC__
11996# define alloca __builtin_alloca
b4e70030 11997#else
a9322a30
TT
11998# ifdef _MSC_VER
11999# include <malloc.h>
12000# define alloca _alloca
12001# else
81ecdfbb 12002# ifdef HAVE_ALLOCA_H
a9322a30
TT
12003# include <alloca.h>
12004# else
12005# ifdef _AIX
12006 #pragma alloca
12007# else
12008# ifndef alloca /* predefined by HP cc +Olibcalls */
12009char *alloca ();
12010# endif
12011# endif
12012# endif
12013# endif
c906108c 12014#endif
97bf5e38 12015
bec39cab
AC
12016int
12017main ()
12018{
a9322a30 12019char *p = (char *) alloca (1);
81ecdfbb 12020 if (p) return 0;
bec39cab
AC
12021 ;
12022 return 0;
12023}
12024_ACEOF
81ecdfbb 12025if ac_fn_c_try_link "$LINENO"; then :
a9322a30 12026 ac_cv_func_alloca_works=yes
bec39cab 12027else
81ecdfbb 12028 ac_cv_func_alloca_works=no
bec39cab 12029fi
81ecdfbb
RW
12030rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
bec39cab 12032fi
81ecdfbb
RW
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12034$as_echo "$ac_cv_func_alloca_works" >&6; }
a9322a30
TT
12035
12036if test $ac_cv_func_alloca_works = yes; then
12037
81ecdfbb 12038$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c906108c 12039
a9322a30
TT
12040else
12041 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12042# that cause trouble. Some versions do not even contain alloca or
12043# contain a buggy version. If you still want to use their alloca,
12044# use ar to extract alloca.o from them instead of compiling alloca.c.
12045
81ecdfbb 12046ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a9322a30 12047
81ecdfbb 12048$as_echo "#define C_ALLOCA 1" >>confdefs.h
c906108c 12049
bec39cab 12050
81ecdfbb
RW
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12052$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12053if test "${ac_cv_os_cray+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
a9322a30 12055else
81ecdfbb 12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9322a30 12057/* end confdefs.h. */
81ecdfbb 12058#if defined CRAY && ! defined CRAY2
a9322a30
TT
12059webecray
12060#else
12061wenotbecray
12062#endif
12063
12064_ACEOF
12065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 12066 $EGREP "webecray" >/dev/null 2>&1; then :
a9322a30
TT
12067 ac_cv_os_cray=yes
12068else
81ecdfbb 12069 ac_cv_os_cray=no
bec39cab 12070fi
81ecdfbb
RW
12071rm -f conftest*
12072
bec39cab 12073fi
81ecdfbb
RW
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12075$as_echo "$ac_cv_os_cray" >&6; }
12076if test $ac_cv_os_cray = yes; then
12077 for ac_func in _getb67 GETB67 getb67; do
12078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12079ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12080eval as_val=\$$as_ac_var
12081 if test "x$as_val" = x""yes; then :
a9322a30
TT
12082
12083cat >>confdefs.h <<_ACEOF
12084#define CRAY_STACKSEG_END $ac_func
bec39cab 12085_ACEOF
c906108c 12086
a9322a30 12087 break
c906108c
SS
12088fi
12089
a9322a30
TT
12090 done
12091fi
bec39cab 12092
81ecdfbb
RW
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12094$as_echo_n "checking stack direction for C alloca... " >&6; }
12095if test "${ac_cv_c_stack_direction+set}" = set; then :
12096 $as_echo_n "(cached) " >&6
a9322a30 12097else
81ecdfbb 12098 if test "$cross_compiling" = yes; then :
a9322a30 12099 ac_cv_c_stack_direction=0
bec39cab 12100else
81ecdfbb 12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12102/* end confdefs.h. */
81ecdfbb 12103$ac_includes_default
a9322a30
TT
12104int
12105find_stack_direction ()
b4e70030 12106{
a9322a30
TT
12107 static char *addr = 0;
12108 auto char dummy;
12109 if (addr == 0)
12110 {
12111 addr = &dummy;
12112 return find_stack_direction ();
12113 }
12114 else
12115 return (&dummy > addr) ? 1 : -1;
b4e70030 12116}
b757528f 12117
bec39cab
AC
12118int
12119main ()
12120{
81ecdfbb 12121 return find_stack_direction () < 0;
bec39cab
AC
12122}
12123_ACEOF
81ecdfbb 12124if ac_fn_c_try_run "$LINENO"; then :
a9322a30
TT
12125 ac_cv_c_stack_direction=1
12126else
81ecdfbb 12127 ac_cv_c_stack_direction=-1
a9322a30 12128fi
81ecdfbb
RW
12129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12130 conftest.$ac_objext conftest.beam conftest.$ac_ext
a9322a30 12131fi
a9322a30 12132
81ecdfbb
RW
12133fi
12134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12135$as_echo "$ac_cv_c_stack_direction" >&6; }
a9322a30
TT
12136cat >>confdefs.h <<_ACEOF
12137#define STACK_DIRECTION $ac_cv_c_stack_direction
12138_ACEOF
12139
12140
12141fi
12142
a9322a30 12143for ac_header in stdlib.h unistd.h
81ecdfbb
RW
12144do :
12145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12146ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12147eval as_val=\$$as_ac_Header
12148 if test "x$as_val" = x""yes; then :
bec39cab 12149 cat >>confdefs.h <<_ACEOF
81ecdfbb 12150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 12151_ACEOF
b757528f 12152
b757528f 12153fi
bec39cab 12154
a9322a30 12155done
a3828db0 12156
a9322a30 12157for ac_func in getpagesize
81ecdfbb
RW
12158do :
12159 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12160if test "x$ac_cv_func_getpagesize" = x""yes; then :
bec39cab 12161 cat >>confdefs.h <<_ACEOF
81ecdfbb 12162#define HAVE_GETPAGESIZE 1
bec39cab 12163_ACEOF
bcb3dc3d 12164
bcb3dc3d
MK
12165fi
12166done
12167
81ecdfbb
RW
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12169$as_echo_n "checking for working mmap... " >&6; }
12170if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
a9322a30 12172else
81ecdfbb 12173 if test "$cross_compiling" = yes; then :
a9322a30 12174 ac_cv_func_mmap_fixed_mapped=no
bec39cab 12175else
81ecdfbb 12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12177/* end confdefs.h. */
a9322a30
TT
12178$ac_includes_default
12179/* malloc might have been renamed as rpl_malloc. */
12180#undef malloc
bec39cab 12181
a9322a30
TT
12182/* Thanks to Mike Haertel and Jim Avera for this test.
12183 Here is a matrix of mmap possibilities:
12184 mmap private not fixed
12185 mmap private fixed at somewhere currently unmapped
12186 mmap private fixed at somewhere already mapped
12187 mmap shared not fixed
12188 mmap shared fixed at somewhere currently unmapped
12189 mmap shared fixed at somewhere already mapped
12190 For private mappings, we should verify that changes cannot be read()
12191 back from the file, nor mmap's back from the file at a different
12192 address. (There have been systems where private was not correctly
12193 implemented like the infamous i386 svr4.0, and systems where the
12194 VM page cache was not coherent with the file system buffer cache
12195 like early versions of FreeBSD and possibly contemporary NetBSD.)
12196 For shared mappings, we should conversely verify that changes get
12197 propagated back to all the places they're supposed to be.
bec39cab 12198
a9322a30
TT
12199 Grep wants private fixed already mapped.
12200 The main things grep needs to know about mmap are:
12201 * does it exist and is it safe to write into the mmap'd area
12202 * how to use it (BSD variants) */
8b9cf735 12203
a9322a30
TT
12204#include <fcntl.h>
12205#include <sys/mman.h>
8b9cf735 12206
81ecdfbb 12207#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
a9322a30 12208char *malloc ();
a3828db0
MK
12209#endif
12210
a9322a30 12211/* This mess was copied from the GNU getpagesize.h. */
81ecdfbb 12212#ifndef HAVE_GETPAGESIZE
a9322a30 12213/* Assume that all systems that can run configure have sys/param.h. */
81ecdfbb 12214# ifndef HAVE_SYS_PARAM_H
a9322a30
TT
12215# define HAVE_SYS_PARAM_H 1
12216# endif
12217
12218# ifdef _SC_PAGESIZE
12219# define getpagesize() sysconf(_SC_PAGESIZE)
12220# else /* no _SC_PAGESIZE */
81ecdfbb 12221# ifdef HAVE_SYS_PARAM_H
a9322a30
TT
12222# include <sys/param.h>
12223# ifdef EXEC_PAGESIZE
12224# define getpagesize() EXEC_PAGESIZE
12225# else /* no EXEC_PAGESIZE */
12226# ifdef NBPG
12227# define getpagesize() NBPG * CLSIZE
12228# ifndef CLSIZE
12229# define CLSIZE 1
12230# endif /* no CLSIZE */
12231# else /* no NBPG */
12232# ifdef NBPC
12233# define getpagesize() NBPC
12234# else /* no NBPC */
12235# ifdef PAGESIZE
12236# define getpagesize() PAGESIZE
12237# endif /* PAGESIZE */
12238# endif /* no NBPC */
12239# endif /* no NBPG */
12240# endif /* no EXEC_PAGESIZE */
12241# else /* no HAVE_SYS_PARAM_H */
12242# define getpagesize() 8192 /* punt totally */
12243# endif /* no HAVE_SYS_PARAM_H */
12244# endif /* no _SC_PAGESIZE */
12245
12246#endif /* no HAVE_GETPAGESIZE */
12247
bec39cab
AC
12248int
12249main ()
12250{
a9322a30
TT
12251 char *data, *data2, *data3;
12252 int i, pagesize;
12253 int fd;
12254
12255 pagesize = getpagesize ();
12256
12257 /* First, make a file with some known garbage in it. */
12258 data = (char *) malloc (pagesize);
12259 if (!data)
81ecdfbb 12260 return 1;
a9322a30
TT
12261 for (i = 0; i < pagesize; ++i)
12262 *(data + i) = rand ();
12263 umask (0);
12264 fd = creat ("conftest.mmap", 0600);
12265 if (fd < 0)
81ecdfbb 12266 return 1;
a9322a30 12267 if (write (fd, data, pagesize) != pagesize)
81ecdfbb 12268 return 1;
a9322a30
TT
12269 close (fd);
12270
12271 /* Next, try to mmap the file at a fixed address which already has
12272 something else allocated at it. If we can, also make sure that
12273 we see the same garbage. */
12274 fd = open ("conftest.mmap", O_RDWR);
12275 if (fd < 0)
81ecdfbb 12276 return 1;
a9322a30
TT
12277 data2 = (char *) malloc (2 * pagesize);
12278 if (!data2)
81ecdfbb
RW
12279 return 1;
12280 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
a9322a30
TT
12281 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12282 MAP_PRIVATE | MAP_FIXED, fd, 0L))
81ecdfbb 12283 return 1;
a9322a30
TT
12284 for (i = 0; i < pagesize; ++i)
12285 if (*(data + i) != *(data2 + i))
81ecdfbb 12286 return 1;
a9322a30
TT
12287
12288 /* Finally, make sure that changes to the mapped area do not
12289 percolate back to the file as seen by read(). (This is a bug on
12290 some variants of i386 svr4.0.) */
12291 for (i = 0; i < pagesize; ++i)
12292 *(data2 + i) = *(data2 + i) + 1;
12293 data3 = (char *) malloc (pagesize);
12294 if (!data3)
81ecdfbb 12295 return 1;
a9322a30 12296 if (read (fd, data3, pagesize) != pagesize)
81ecdfbb 12297 return 1;
a9322a30
TT
12298 for (i = 0; i < pagesize; ++i)
12299 if (*(data + i) != *(data3 + i))
81ecdfbb 12300 return 1;
a9322a30 12301 close (fd);
81ecdfbb 12302 return 0;
bec39cab
AC
12303}
12304_ACEOF
81ecdfbb 12305if ac_fn_c_try_run "$LINENO"; then :
a9322a30 12306 ac_cv_func_mmap_fixed_mapped=yes
086ec9eb 12307else
81ecdfbb 12308 ac_cv_func_mmap_fixed_mapped=no
a3828db0 12309fi
81ecdfbb
RW
12310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12311 conftest.$ac_objext conftest.beam conftest.$ac_ext
a3828db0 12312fi
81ecdfbb 12313
a9322a30 12314fi
81ecdfbb
RW
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12316$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
a9322a30
TT
12317if test $ac_cv_func_mmap_fixed_mapped = yes; then
12318
81ecdfbb 12319$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a3828db0 12320
086ec9eb 12321fi
a9322a30 12322rm -f conftest.mmap
a3828db0 12323
81ecdfbb
RW
12324ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12325if test "x$ac_cv_type_pid_t" = x""yes; then :
bec39cab 12326
a9322a30
TT
12327else
12328
12329cat >>confdefs.h <<_ACEOF
12330#define pid_t int
bec39cab 12331_ACEOF
086ec9eb
MK
12332
12333fi
12334
81ecdfbb
RW
12335for ac_header in vfork.h
12336do :
12337 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12338if test "x$ac_cv_header_vfork_h" = x""yes; then :
a3828db0 12339 cat >>confdefs.h <<_ACEOF
81ecdfbb 12340#define HAVE_VFORK_H 1
bec39cab 12341_ACEOF
c906108c
SS
12342
12343fi
a9322a30 12344
a3828db0 12345done
c906108c 12346
a9322a30 12347for ac_func in fork vfork
81ecdfbb
RW
12348do :
12349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12350ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12351eval as_val=\$$as_ac_var
12352 if test "x$as_val" = x""yes; then :
a3828db0 12353 cat >>confdefs.h <<_ACEOF
81ecdfbb 12354#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 12355_ACEOF
b83266a0 12356
97bf5e38 12357fi
a3828db0 12358done
b83266a0 12359
a9322a30 12360if test "x$ac_cv_func_fork" = xyes; then
81ecdfbb
RW
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12362$as_echo_n "checking for working fork... " >&6; }
12363if test "${ac_cv_func_fork_works+set}" = set; then :
12364 $as_echo_n "(cached) " >&6
a9322a30 12365else
81ecdfbb 12366 if test "$cross_compiling" = yes; then :
a9322a30
TT
12367 ac_cv_func_fork_works=cross
12368else
81ecdfbb
RW
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370/* end confdefs.h. */
12371$ac_includes_default
12372int
12373main ()
12374{
12375
12376 /* By Ruediger Kuhlmann. */
12377 return fork () < 0;
12378
12379 ;
12380 return 0;
12381}
a9322a30 12382_ACEOF
81ecdfbb 12383if ac_fn_c_try_run "$LINENO"; then :
a9322a30
TT
12384 ac_cv_func_fork_works=yes
12385else
81ecdfbb 12386 ac_cv_func_fork_works=no
a9322a30 12387fi
81ecdfbb
RW
12388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12389 conftest.$ac_objext conftest.beam conftest.$ac_ext
a9322a30 12390fi
81ecdfbb 12391
a9322a30 12392fi
81ecdfbb
RW
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12394$as_echo "$ac_cv_func_fork_works" >&6; }
a9322a30
TT
12395
12396else
12397 ac_cv_func_fork_works=$ac_cv_func_fork
12398fi
12399if test "x$ac_cv_func_fork_works" = xcross; then
12400 case $host in
12401 *-*-amigaos* | *-*-msdosdjgpp*)
12402 # Override, as these systems have only a dummy fork() stub
12403 ac_cv_func_fork_works=no
12404 ;;
12405 *)
12406 ac_cv_func_fork_works=yes
12407 ;;
12408 esac
81ecdfbb
RW
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12410$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a9322a30
TT
12411fi
12412ac_cv_func_vfork_works=$ac_cv_func_vfork
12413if test "x$ac_cv_func_vfork" = xyes; then
81ecdfbb
RW
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12415$as_echo_n "checking for working vfork... " >&6; }
12416if test "${ac_cv_func_vfork_works+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
a9322a30 12418else
81ecdfbb 12419 if test "$cross_compiling" = yes; then :
a9322a30
TT
12420 ac_cv_func_vfork_works=cross
12421else
81ecdfbb 12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a9322a30
TT
12423/* end confdefs.h. */
12424/* Thanks to Paul Eggert for this test. */
81ecdfbb 12425$ac_includes_default
a9322a30 12426#include <sys/wait.h>
81ecdfbb 12427#ifdef HAVE_VFORK_H
a9322a30
TT
12428# include <vfork.h>
12429#endif
12430/* On some sparc systems, changes by the child to local and incoming
12431 argument registers are propagated back to the parent. The compiler
12432 is told about this with #include <vfork.h>, but some compilers
12433 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12434 static variable whose address is put into a register that is
12435 clobbered by the vfork. */
12436static void
12437#ifdef __cplusplus
12438sparc_address_test (int arg)
12439# else
12440sparc_address_test (arg) int arg;
12441#endif
12442{
12443 static pid_t child;
12444 if (!child) {
12445 child = vfork ();
12446 if (child < 0) {
12447 perror ("vfork");
12448 _exit(2);
12449 }
12450 if (!child) {
12451 arg = getpid();
12452 write(-1, "", 0);
12453 _exit (arg);
12454 }
12455 }
12456}
12457
12458int
12459main ()
12460{
12461 pid_t parent = getpid ();
12462 pid_t child;
12463
12464 sparc_address_test (0);
12465
12466 child = vfork ();
12467
12468 if (child == 0) {
12469 /* Here is another test for sparc vfork register problems. This
12470 test uses lots of local variables, at least as many local
12471 variables as main has allocated so far including compiler
12472 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12473 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12474 reuse the register of parent for one of the local variables,
12475 since it will think that parent can't possibly be used any more
12476 in this routine. Assigning to the local variable will thus
12477 munge parent in the parent process. */
12478 pid_t
12479 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12480 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12481 /* Convince the compiler that p..p7 are live; otherwise, it might
12482 use the same hardware register for all 8 local variables. */
12483 if (p != p1 || p != p2 || p != p3 || p != p4
12484 || p != p5 || p != p6 || p != p7)
12485 _exit(1);
12486
12487 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12488 from child file descriptors. If the child closes a descriptor
12489 before it execs or exits, this munges the parent's descriptor
12490 as well. Test for this by closing stdout in the child. */
12491 _exit(close(fileno(stdout)) != 0);
12492 } else {
12493 int status;
12494 struct stat st;
12495
12496 while (wait(&status) != child)
12497 ;
81ecdfbb 12498 return (
a9322a30
TT
12499 /* Was there some problem with vforking? */
12500 child < 0
12501
12502 /* Did the child fail? (This shouldn't happen.) */
12503 || status
12504
12505 /* Did the vfork/compiler bug occur? */
12506 || parent != getpid()
12507
12508 /* Did the file descriptor bug occur? */
12509 || fstat(fileno(stdout), &st) != 0
12510 );
12511 }
12512}
12513_ACEOF
81ecdfbb 12514if ac_fn_c_try_run "$LINENO"; then :
a9322a30
TT
12515 ac_cv_func_vfork_works=yes
12516else
81ecdfbb 12517 ac_cv_func_vfork_works=no
a9322a30 12518fi
81ecdfbb
RW
12519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12520 conftest.$ac_objext conftest.beam conftest.$ac_ext
a9322a30 12521fi
81ecdfbb 12522
a9322a30 12523fi
81ecdfbb
RW
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12525$as_echo "$ac_cv_func_vfork_works" >&6; }
a9322a30
TT
12526
12527fi;
12528if test "x$ac_cv_func_fork_works" = xcross; then
12529 ac_cv_func_vfork_works=$ac_cv_func_vfork
81ecdfbb
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12531$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
a9322a30
TT
12532fi
12533
12534if test "x$ac_cv_func_vfork_works" = xyes; then
12535
81ecdfbb 12536$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a9322a30
TT
12537
12538else
12539
81ecdfbb 12540$as_echo "#define vfork fork" >>confdefs.h
a9322a30
TT
12541
12542fi
12543if test "x$ac_cv_func_fork_works" = xyes; then
12544
81ecdfbb 12545$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a9322a30
TT
12546
12547fi
12548
a9322a30 12549for ac_func in canonicalize_file_name realpath getrusage getuid \
db5e03ae 12550 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
a9322a30 12551 sigaction sigprocmask sigsetmask socketpair syscall \
110ed339 12552 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
be391dca 12553 setrlimit getrlimit posix_madvise
81ecdfbb
RW
12554do :
12555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12556ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12557eval as_val=\$$as_ac_var
12558 if test "x$as_val" = x""yes; then :
6c7a06a3 12559 cat >>confdefs.h <<_ACEOF
81ecdfbb 12560#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6c7a06a3
TT
12561_ACEOF
12562
12563fi
12564done
12565
12566
81ecdfbb
RW
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12568$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12569if test "${am_cv_langinfo_codeset+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
6c7a06a3 12571else
81ecdfbb 12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6c7a06a3
TT
12573/* end confdefs.h. */
12574#include <langinfo.h>
12575int
12576main ()
12577{
12578char* cs = nl_langinfo(CODESET);
bec39cab
AC
12579 ;
12580 return 0;
12581}
12582_ACEOF
81ecdfbb 12583if ac_fn_c_try_link "$LINENO"; then :
6c7a06a3 12584 am_cv_langinfo_codeset=yes
a4db0f07 12585else
81ecdfbb 12586 am_cv_langinfo_codeset=no
a4db0f07 12587fi
81ecdfbb
RW
12588rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
6c7a06a3 12590
a4db0f07 12591fi
81ecdfbb
RW
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12593$as_echo "$am_cv_langinfo_codeset" >&6; }
6c7a06a3
TT
12594 if test $am_cv_langinfo_codeset = yes; then
12595
81ecdfbb 12596$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
a4db0f07 12597
6c7a06a3 12598 fi
c906108c 12599
06825bd1 12600
a3828db0
MK
12601# Check the return and argument types of ptrace. No canned test for
12602# this, so roll our own.
12603gdb_ptrace_headers='
12604#if HAVE_SYS_TYPES_H
12605# include <sys/types.h>
12606#endif
12607#if HAVE_SYS_PTRACE_H
12608# include <sys/ptrace.h>
12609#endif
12610#if HAVE_UNISTD_H
12611# include <unistd.h>
12612#endif
12613'
12614# There is no point in checking if we don't have a prototype.
81ecdfbb
RW
12615ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12616"
12617if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12618 ac_have_decl=1
06825bd1 12619else
81ecdfbb 12620 ac_have_decl=0
06825bd1 12621fi
06825bd1 12622
a3828db0 12623cat >>confdefs.h <<_ACEOF
81ecdfbb 12624#define HAVE_DECL_PTRACE $ac_have_decl
a3828db0 12625_ACEOF
81ecdfbb 12626if test $ac_have_decl = 1; then :
bec39cab 12627
a3828db0 12628else
a3828db0
MK
12629
12630 : ${gdb_cv_func_ptrace_ret='int'}
12631 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12632
06825bd1
MK
12633fi
12634
064ef605
DJ
12635# Check return type. Varargs (used on GNU/Linux) conflict with the
12636# empty argument list, so check for that explicitly.
81ecdfbb
RW
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12638$as_echo_n "checking return type of ptrace... " >&6; }
12639if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
bec39cab 12641else
81ecdfbb 12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12643/* end confdefs.h. */
a3828db0 12644$gdb_ptrace_headers
bec39cab
AC
12645int
12646main ()
12647{
064ef605
DJ
12648extern long ptrace (enum __ptrace_request, ...);
12649 ;
12650 return 0;
12651}
12652_ACEOF
81ecdfbb 12653if ac_fn_c_try_compile "$LINENO"; then :
064ef605
DJ
12654 gdb_cv_func_ptrace_ret='long'
12655else
81ecdfbb 12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
064ef605
DJ
12657/* end confdefs.h. */
12658$gdb_ptrace_headers
12659int
12660main ()
12661{
a3828db0 12662extern int ptrace ();
bec39cab
AC
12663 ;
12664 return 0;
12665}
12666_ACEOF
81ecdfbb 12667if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 12668 gdb_cv_func_ptrace_ret='int'
70f9f479 12669else
81ecdfbb 12670 gdb_cv_func_ptrace_ret='long'
70f9f479 12671fi
81ecdfbb 12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 12673fi
81ecdfbb 12674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
064ef605 12675fi
81ecdfbb
RW
12676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12677$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
bec39cab 12678
a3828db0
MK
12679cat >>confdefs.h <<_ACEOF
12680#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 12681_ACEOF
70f9f479 12682
a3828db0 12683# Check argument types.
81ecdfbb
RW
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12685$as_echo_n "checking types of arguments for ptrace... " >&6; }
12686if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
bec39cab 12688else
a3828db0 12689
81ecdfbb 12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
064ef605
DJ
12691/* end confdefs.h. */
12692$gdb_ptrace_headers
12693int
12694main ()
12695{
12696extern long ptrace (enum __ptrace_request, ...);
12697 ;
12698 return 0;
12699}
12700_ACEOF
81ecdfbb 12701if ac_fn_c_try_compile "$LINENO"; then :
064ef605
DJ
12702 gdb_cv_func_ptrace_args='int,int,long,long'
12703else
064ef605 12704
a3828db0
MK
12705for gdb_arg1 in 'int' 'long'; do
12706 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 12707 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0 12708 for gdb_arg4 in 'int' 'long'; do
81ecdfbb 12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12710/* end confdefs.h. */
a3828db0 12711$gdb_ptrace_headers
bec39cab
AC
12712int
12713main ()
12714{
a3828db0
MK
12715
12716extern $gdb_cv_func_ptrace_ret
12717 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12718
bec39cab
AC
12719 ;
12720 return 0;
12721}
12722_ACEOF
81ecdfbb 12723if ac_fn_c_try_compile "$LINENO"; then :
a3828db0
MK
12724 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12725 break 4;
5c7f2947 12726fi
81ecdfbb 12727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0 12728 for gdb_arg5 in 'int *' 'int' 'long'; do
81ecdfbb 12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12730/* end confdefs.h. */
a3828db0 12731$gdb_ptrace_headers
bec39cab
AC
12732int
12733main ()
12734{
a3828db0
MK
12735
12736extern $gdb_cv_func_ptrace_ret
12737 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12738
bec39cab
AC
12739 ;
12740 return 0;
12741}
12742_ACEOF
81ecdfbb 12743if ac_fn_c_try_compile "$LINENO"; then :
a3828db0
MK
12744
12745gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12746 break 5;
78434e59 12747fi
81ecdfbb 12748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
12749 done
12750 done
12751 done
12752 done
12753done
12754# Provide a safe default value.
12755: ${gdb_cv_func_ptrace_args='int,int,long,long'}
12756
064ef605 12757fi
81ecdfbb 12758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78434e59 12759fi
81ecdfbb
RW
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12761$as_echo "$gdb_cv_func_ptrace_args" >&6; }
a3828db0
MK
12762ac_save_IFS=$IFS; IFS=','
12763set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12764IFS=$ac_save_IFS
12765shift
bec39cab 12766
a3828db0
MK
12767cat >>confdefs.h <<_ACEOF
12768#define PTRACE_TYPE_ARG3 $3
12769_ACEOF
12770
12771if test -n "$5"; then
12772
12773cat >>confdefs.h <<_ACEOF
12774#define PTRACE_TYPE_ARG5 $5
bec39cab 12775_ACEOF
78434e59
MK
12776
12777fi
12778
a3828db0 12779if test "$cross_compiling" = no; then
81ecdfbb
RW
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12781$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12782if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
a3828db0 12784else
81ecdfbb
RW
12785 if test "$cross_compiling" = yes; then :
12786 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
bec39cab 12787else
81ecdfbb 12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12789/* end confdefs.h. */
81ecdfbb 12790$ac_includes_default
bec39cab
AC
12791int
12792main ()
12793{
a3828db0
MK
12794/* If this system has a BSD-style setpgrp which takes arguments,
12795 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12796 exit successfully. */
81ecdfbb 12797 return setpgrp (1,1) != -1;
bec39cab
AC
12798 ;
12799 return 0;
12800}
12801_ACEOF
81ecdfbb 12802if ac_fn_c_try_run "$LINENO"; then :
a3828db0 12803 ac_cv_func_setpgrp_void=no
c906108c 12804else
81ecdfbb 12805 ac_cv_func_setpgrp_void=yes
c906108c 12806fi
81ecdfbb
RW
12807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12808 conftest.$ac_objext conftest.beam conftest.$ac_ext
97bf5e38 12809fi
81ecdfbb 12810
a3828db0 12811fi
81ecdfbb
RW
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12813$as_echo "$ac_cv_func_setpgrp_void" >&6; }
a3828db0
MK
12814if test $ac_cv_func_setpgrp_void = yes; then
12815
81ecdfbb 12816$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
97bf5e38
MK
12817
12818fi
a3828db0
MK
12819
12820else
81ecdfbb
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12822$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12823if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12824 $as_echo_n "(cached) " >&6
97bf5e38 12825else
81ecdfbb 12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12827/* end confdefs.h. */
a3828db0
MK
12828
12829#include <unistd.h>
12830
bec39cab
AC
12831int
12832main ()
12833{
a3828db0
MK
12834
12835 if (setpgrp(1,1) == -1)
12836 exit (0);
12837 else
12838 exit (1);
12839
bec39cab
AC
12840 ;
12841 return 0;
12842}
12843_ACEOF
81ecdfbb 12844if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 12845 ac_cv_func_setpgrp_void=no
c906108c 12846else
81ecdfbb 12847 ac_cv_func_setpgrp_void=yes
c906108c 12848fi
81ecdfbb 12849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12850fi
81ecdfbb
RW
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12852$as_echo "$ac_cv_func_setpgrp_void" >&6; }
a3828db0 12853if test $ac_cv_func_setpgrp_void = yes; then
81ecdfbb 12854 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
c3f6f71d 12855
a3828db0 12856fi
c906108c
SS
12857fi
12858
a3828db0
MK
12859# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12860# since sigsetjmp might only be defined as a macro.
81ecdfbb
RW
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12862$as_echo_n "checking for sigsetjmp... " >&6; }
12863if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
bec39cab 12865else
81ecdfbb 12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12867/* end confdefs.h. */
a3828db0
MK
12868
12869#include <setjmp.h>
12870
bec39cab
AC
12871int
12872main ()
12873{
a3828db0 12874sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
12875 ;
12876 return 0;
12877}
12878_ACEOF
81ecdfbb 12879if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 12880 gdb_cv_func_sigsetjmp=yes
c906108c 12881else
81ecdfbb 12882 gdb_cv_func_sigsetjmp=no
c906108c 12883fi
81ecdfbb 12884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12885fi
81ecdfbb
RW
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12887$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
a3828db0 12888if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 12889
81ecdfbb 12890$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
c906108c 12891
97bf5e38 12892fi
c906108c 12893
a3828db0
MK
12894# Assume we'll default to using the included libiberty regex.
12895gdb_use_included_regex=yes
12896
12897# However, if the system regex is GNU regex, then default to *not*
12898# using the included regex.
81ecdfbb
RW
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12900$as_echo_n "checking for GNU regex... " >&6; }
12901if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
bec39cab 12903else
81ecdfbb 12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12905/* end confdefs.h. */
a3828db0 12906#include <gnu-versions.h>
bec39cab
AC
12907int
12908main ()
12909{
81ecdfbb
RW
12910#define REGEX_INTERFACE_VERSION 1
12911#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12912# error "Version mismatch"
12913#endif
5c45e068
MK
12914 ;
12915 return 0;
12916}
12917_ACEOF
81ecdfbb
RW
12918if ac_fn_c_try_compile "$LINENO"; then :
12919 gdb_cv_have_gnu_regex=yes
5c45e068 12920else
81ecdfbb
RW
12921 gdb_cv_have_gnu_regex=no
12922fi
12923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924fi
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12926$as_echo "$gdb_cv_have_gnu_regex" >&6; }
12927if test $gdb_cv_have_gnu_regex = yes; then
12928 gdb_use_included_regex=no
5c45e068 12929fi
81ecdfbb
RW
12930
12931
12932# Check whether --with-included-regex was given.
12933if test "${with_included_regex+set}" = set; then :
12934 withval=$with_included_regex; gdb_with_regex=$withval
12935else
12936 gdb_with_regex=$gdb_use_included_regex
c906108c 12937fi
81ecdfbb
RW
12938
12939if test "$gdb_with_regex" = yes; then
12940
12941$as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12942
c906108c 12943fi
81ecdfbb
RW
12944
12945# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12946ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12947#include <sys/proc.h>
12948
12949"
12950if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
c906108c 12951
5c45e068 12952cat >>confdefs.h <<_ACEOF
a3828db0 12953#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 12954_ACEOF
c906108c 12955
5c45e068 12956
97bf5e38 12957fi
c906108c 12958
5c45e068 12959
a3828db0 12960# See if <sys/lwp.h> defines `struct lwp`.
81ecdfbb
RW
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12962$as_echo_n "checking for struct lwp... " >&6; }
12963if test "${gdb_cv_struct_lwp+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
bec39cab 12965else
81ecdfbb 12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 12967/* end confdefs.h. */
a3828db0
MK
12968#include <sys/param.h>
12969#include <sys/lwp.h>
bec39cab
AC
12970int
12971main ()
12972{
a3828db0 12973struct lwp l;
bec39cab
AC
12974 ;
12975 return 0;
12976}
12977_ACEOF
81ecdfbb 12978if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 12979 gdb_cv_struct_lwp=yes
c906108c 12980else
81ecdfbb 12981 gdb_cv_struct_lwp=no
c906108c 12982fi
81ecdfbb 12983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12984fi
81ecdfbb
RW
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12986$as_echo "$gdb_cv_struct_lwp" >&6; }
a3828db0 12987if test $gdb_cv_struct_lwp = yes; then
c906108c 12988
81ecdfbb 12989$as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
c906108c 12990
97bf5e38 12991fi
c906108c 12992
a3828db0 12993# See if <machine/reg.h> degines `struct reg'.
81ecdfbb
RW
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12995$as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12996if test "${gdb_cv_struct_reg+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
bec39cab 12998else
81ecdfbb 12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13000/* end confdefs.h. */
a3828db0
MK
13001#include <sys/types.h>
13002#include <machine/reg.h>
bec39cab
AC
13003int
13004main ()
13005{
a3828db0 13006struct reg r;
bec39cab
AC
13007 ;
13008 return 0;
13009}
13010_ACEOF
81ecdfbb 13011if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13012 gdb_cv_struct_reg=yes
27ca5dad 13013else
81ecdfbb 13014 gdb_cv_struct_reg=no
27ca5dad 13015fi
81ecdfbb 13016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 13017fi
81ecdfbb
RW
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13019$as_echo "$gdb_cv_struct_reg" >&6; }
a3828db0 13020if test $gdb_cv_struct_reg = yes; then
bec39cab 13021
81ecdfbb 13022$as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
27ca5dad
MC
13023
13024fi
97bf5e38 13025
a3828db0
MK
13026# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13027# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
81ecdfbb
RW
13028ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13029"
13030if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
5c45e068
MK
13031
13032cat >>confdefs.h <<_ACEOF
a3828db0 13033#define HAVE_STRUCT_REG_R_FS 1
bec39cab 13034_ACEOF
3862412b 13035
5c45e068 13036
97bf5e38 13037fi
81ecdfbb
RW
13038ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13039"
13040if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
5c45e068
MK
13041
13042cat >>confdefs.h <<_ACEOF
a3828db0 13043#define HAVE_STRUCT_REG_R_GS 1
bec39cab 13044_ACEOF
3862412b 13045
5c45e068 13046
97bf5e38 13047fi
3862412b 13048
5c45e068 13049
a3828db0 13050# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
81ecdfbb
RW
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13052$as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13053if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
451928c5 13055else
81ecdfbb 13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13057/* end confdefs.h. */
a3828db0 13058#include <sys/ptrace.h>
bec39cab
AC
13059int
13060main ()
13061{
a3828db0 13062PTRACE_GETREGS;
bec39cab
AC
13063 ;
13064 return 0;
13065}
13066_ACEOF
81ecdfbb 13067if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13068 gdb_cv_have_ptrace_getregs=yes
451928c5 13069else
81ecdfbb 13070 gdb_cv_have_ptrace_getregs=no
451928c5 13071fi
81ecdfbb 13072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
13073fi
13074
81ecdfbb
RW
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13076$as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
a3828db0 13077if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f 13078
81ecdfbb 13079$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
451928c5 13080
97bf5e38 13081fi
451928c5 13082
a3828db0 13083# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
81ecdfbb
RW
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13085$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13086if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13087 $as_echo_n "(cached) " >&6
451928c5 13088else
81ecdfbb 13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13090/* end confdefs.h. */
a3828db0 13091#include <sys/ptrace.h>
bec39cab
AC
13092int
13093main ()
13094{
a3828db0 13095PTRACE_GETFPXREGS;
bec39cab
AC
13096 ;
13097 return 0;
13098}
13099_ACEOF
81ecdfbb 13100if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13101 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 13102else
81ecdfbb 13103 gdb_cv_have_ptrace_getfpxregs=no
451928c5 13104fi
81ecdfbb 13105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
13106fi
13107
81ecdfbb
RW
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13109$as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
a3828db0 13110if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f 13111
81ecdfbb 13112$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
451928c5 13113
97bf5e38 13114fi
451928c5 13115
a3828db0 13116# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
81ecdfbb
RW
13117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13118$as_echo_n "checking for PT_GETDBREGS... " >&6; }
13119if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13120 $as_echo_n "(cached) " >&6
3862412b 13121else
81ecdfbb 13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13123/* end confdefs.h. */
a3828db0
MK
13124#include <sys/types.h>
13125#include <sys/ptrace.h>
bec39cab
AC
13126int
13127main ()
13128{
a3828db0 13129PT_GETDBREGS;
bec39cab
AC
13130 ;
13131 return 0;
13132}
13133_ACEOF
81ecdfbb 13134if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13135 gdb_cv_have_pt_getdbregs=yes
3862412b 13136else
81ecdfbb 13137 gdb_cv_have_pt_getdbregs=no
3862412b 13138fi
81ecdfbb 13139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
13140fi
13141
81ecdfbb
RW
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13143$as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
a3828db0 13144if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f 13145
81ecdfbb 13146$as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
3862412b 13147
97bf5e38 13148fi
3862412b 13149
a3828db0 13150# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
81ecdfbb
RW
13151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13152$as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13153if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13154 $as_echo_n "(cached) " >&6
3862412b 13155else
81ecdfbb 13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13157/* end confdefs.h. */
a3828db0
MK
13158#include <sys/types.h>
13159#include <sys/ptrace.h>
bec39cab
AC
13160int
13161main ()
13162{
a3828db0 13163PT_GETXMMREGS;
bec39cab
AC
13164 ;
13165 return 0;
13166}
13167_ACEOF
81ecdfbb 13168if ac_fn_c_try_compile "$LINENO"; then :
a3828db0 13169 gdb_cv_have_pt_getxmmregs=yes
3862412b 13170else
81ecdfbb 13171 gdb_cv_have_pt_getxmmregs=no
3862412b 13172fi
81ecdfbb 13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
13174fi
13175
81ecdfbb
RW
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13177$as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
a3828db0 13178if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f 13179
81ecdfbb 13180$as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
3862412b 13181
97bf5e38 13182fi
3862412b 13183
eb368090 13184# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
13185
13186if test "${target}" = "${host}"; then
13187 case "${host}" in
97bf5e38 13188 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f 13189
81ecdfbb 13190$as_echo "#define NEW_PROC_API 1" >>confdefs.h
97bf5e38
MK
13191
13192 ;;
c162e8c9 13193 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f 13194
81ecdfbb 13195$as_echo "#define NEW_PROC_API 1" >>confdefs.h
c960c18f
AC
13196
13197 ;;
13198 mips-sgi-irix5*)
13199 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f 13200
81ecdfbb 13201$as_echo "#define _KMEMUSER 1" >>confdefs.h
97bf5e38
MK
13202
13203 ;;
13204 esac
13205fi
13206
13207if test "$ac_cv_header_sys_procfs_h" = yes; then
81ecdfbb
RW
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13209$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13210 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13211 $as_echo_n "(cached) " >&6
bec39cab 13212else
81ecdfbb 13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13214/* end confdefs.h. */
596c9d4b
KB
13215
13216#define _SYSCALL32
d30c5336
JK
13217/* Needed for new procfs interface on sparc-solaris. */
13218#define _STRUCTURED_PROC 1
596c9d4b 13219#include <sys/procfs.h>
bec39cab
AC
13220int
13221main ()
13222{
97bf5e38 13223pstatus_t avar
bec39cab
AC
13224 ;
13225 return 0;
13226}
13227_ACEOF
81ecdfbb 13228if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13229 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 13230else
81ecdfbb 13231 bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 13232
596c9d4b 13233fi
81ecdfbb 13234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
13235fi
13236
97bf5e38 13237 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab 13238
81ecdfbb 13239$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
596c9d4b
KB
13240
13241 fi
81ecdfbb
RW
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13243$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
596c9d4b 13244
81ecdfbb
RW
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13246$as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13247 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13248 $as_echo_n "(cached) " >&6
596c9d4b 13249else
81ecdfbb 13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13251/* end confdefs.h. */
596c9d4b
KB
13252
13253#define _SYSCALL32
d30c5336
JK
13254/* Needed for new procfs interface on sparc-solaris. */
13255#define _STRUCTURED_PROC 1
596c9d4b 13256#include <sys/procfs.h>
bec39cab
AC
13257int
13258main ()
13259{
97bf5e38 13260prrun_t avar
bec39cab
AC
13261 ;
13262 return 0;
13263}
13264_ACEOF
81ecdfbb 13265if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13266 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 13267else
81ecdfbb 13268 bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 13269
596c9d4b 13270fi
81ecdfbb 13271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
13272fi
13273
97bf5e38 13274 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab 13275
81ecdfbb 13276$as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
596c9d4b
KB
13277
13278 fi
81ecdfbb
RW
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13280$as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
596c9d4b 13281
81ecdfbb
RW
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13283$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13284 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
596c9d4b 13286else
81ecdfbb 13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13288/* end confdefs.h. */
596c9d4b
KB
13289
13290#define _SYSCALL32
d30c5336
JK
13291/* Needed for new procfs interface on sparc-solaris. */
13292#define _STRUCTURED_PROC 1
596c9d4b 13293#include <sys/procfs.h>
bec39cab
AC
13294int
13295main ()
13296{
97bf5e38 13297gregset_t avar
bec39cab
AC
13298 ;
13299 return 0;
13300}
13301_ACEOF
81ecdfbb 13302if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13303 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 13304else
81ecdfbb 13305 bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 13306
596c9d4b 13307fi
81ecdfbb 13308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
13309fi
13310
97bf5e38 13311 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab 13312
81ecdfbb 13313$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
596c9d4b
KB
13314
13315 fi
81ecdfbb
RW
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13317$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
451928c5 13318
81ecdfbb
RW
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13320$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13321 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13322 $as_echo_n "(cached) " >&6
d84dd0c5 13323else
81ecdfbb 13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13325/* end confdefs.h. */
97bf5e38
MK
13326
13327#define _SYSCALL32
d30c5336
JK
13328/* Needed for new procfs interface on sparc-solaris. */
13329#define _STRUCTURED_PROC 1
d84dd0c5 13330#include <sys/procfs.h>
bec39cab
AC
13331int
13332main ()
13333{
97bf5e38 13334fpregset_t avar
bec39cab
AC
13335 ;
13336 return 0;
13337}
13338_ACEOF
81ecdfbb 13339if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13340 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 13341else
81ecdfbb 13342 bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 13343
d84dd0c5 13344fi
81ecdfbb 13345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
13346fi
13347
97bf5e38 13348 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab 13349
81ecdfbb 13350$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
d84dd0c5 13351
97bf5e38 13352 fi
81ecdfbb
RW
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13354$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
d84dd0c5 13355
81ecdfbb
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13357$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13358 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13359 $as_echo_n "(cached) " >&6
c906108c 13360else
81ecdfbb 13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13362/* end confdefs.h. */
c906108c 13363
97bf5e38 13364#define _SYSCALL32
d30c5336
JK
13365/* Needed for new procfs interface on sparc-solaris. */
13366#define _STRUCTURED_PROC 1
97bf5e38 13367#include <sys/procfs.h>
bec39cab
AC
13368int
13369main ()
13370{
97bf5e38 13371prgregset_t avar
bec39cab
AC
13372 ;
13373 return 0;
13374}
13375_ACEOF
81ecdfbb 13376if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13377 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 13378else
81ecdfbb 13379 bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 13380
c906108c 13381fi
81ecdfbb 13382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13383fi
13384
97bf5e38 13385 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab 13386
81ecdfbb 13387$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
c906108c 13388
97bf5e38 13389 fi
81ecdfbb
RW
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13391$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
c906108c 13392
81ecdfbb
RW
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13394$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13395 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13396 $as_echo_n "(cached) " >&6
d45fe813 13397else
81ecdfbb 13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13399/* end confdefs.h. */
97bf5e38
MK
13400
13401#define _SYSCALL32
d30c5336
JK
13402/* Needed for new procfs interface on sparc-solaris. */
13403#define _STRUCTURED_PROC 1
97bf5e38 13404#include <sys/procfs.h>
bec39cab
AC
13405int
13406main ()
13407{
97bf5e38 13408prfpregset_t avar
bec39cab
AC
13409 ;
13410 return 0;
13411}
13412_ACEOF
81ecdfbb 13413if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13414 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 13415else
81ecdfbb 13416 bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 13417
d45fe813 13418fi
81ecdfbb 13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
13420fi
13421
97bf5e38 13422 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab 13423
81ecdfbb 13424$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
d45fe813 13425
97bf5e38 13426 fi
81ecdfbb
RW
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13428$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
d45fe813 13429
81ecdfbb
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13431$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13432 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13433 $as_echo_n "(cached) " >&6
d45fe813 13434else
81ecdfbb 13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13436/* end confdefs.h. */
97bf5e38
MK
13437
13438#define _SYSCALL32
d30c5336
JK
13439/* Needed for new procfs interface on sparc-solaris. */
13440#define _STRUCTURED_PROC 1
97bf5e38 13441#include <sys/procfs.h>
bec39cab
AC
13442int
13443main ()
13444{
97bf5e38 13445prgregset32_t avar
bec39cab
AC
13446 ;
13447 return 0;
13448}
13449_ACEOF
81ecdfbb 13450if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13451 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 13452else
81ecdfbb 13453 bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 13454
d45fe813 13455fi
81ecdfbb 13456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
13457fi
13458
97bf5e38 13459 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab 13460
81ecdfbb 13461$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
d45fe813 13462
97bf5e38 13463 fi
81ecdfbb
RW
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13465$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
d45fe813 13466
81ecdfbb
RW
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13468$as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13469 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13470 $as_echo_n "(cached) " >&6
d45fe813 13471else
81ecdfbb 13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13473/* end confdefs.h. */
97bf5e38
MK
13474
13475#define _SYSCALL32
d30c5336
JK
13476/* Needed for new procfs interface on sparc-solaris. */
13477#define _STRUCTURED_PROC 1
97bf5e38 13478#include <sys/procfs.h>
bec39cab
AC
13479int
13480main ()
13481{
97bf5e38 13482prfpregset32_t avar
bec39cab
AC
13483 ;
13484 return 0;
13485}
13486_ACEOF
81ecdfbb 13487if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13488 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 13489else
81ecdfbb 13490 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 13491
d45fe813 13492fi
81ecdfbb 13493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
13494fi
13495
97bf5e38 13496 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab 13497
81ecdfbb 13498$as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
d45fe813 13499
97bf5e38 13500 fi
81ecdfbb
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13502$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
d45fe813 13503
81ecdfbb
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13505$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13506 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
d45fe813 13508else
81ecdfbb 13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13510/* end confdefs.h. */
97bf5e38 13511
d45fe813 13512#define _SYSCALL32
d30c5336
JK
13513/* Needed for new procfs interface on sparc-solaris. */
13514#define _STRUCTURED_PROC 1
97bf5e38 13515#include <sys/procfs.h>
bec39cab
AC
13516int
13517main ()
13518{
97bf5e38 13519lwpid_t avar
bec39cab
AC
13520 ;
13521 return 0;
13522}
13523_ACEOF
81ecdfbb 13524if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13525 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 13526else
81ecdfbb 13527 bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 13528
d45fe813 13529fi
81ecdfbb 13530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
13531fi
13532
97bf5e38 13533 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab 13534
81ecdfbb 13535$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
d45fe813 13536
97bf5e38 13537 fi
81ecdfbb
RW
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13539$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
c906108c 13540
81ecdfbb
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13542$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13543 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13544 $as_echo_n "(cached) " >&6
c906108c 13545else
81ecdfbb 13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13547/* end confdefs.h. */
c906108c 13548
97bf5e38 13549#define _SYSCALL32
d30c5336
JK
13550/* Needed for new procfs interface on sparc-solaris. */
13551#define _STRUCTURED_PROC 1
97bf5e38 13552#include <sys/procfs.h>
bec39cab
AC
13553int
13554main ()
13555{
97bf5e38 13556psaddr_t avar
bec39cab
AC
13557 ;
13558 return 0;
13559}
13560_ACEOF
81ecdfbb 13561if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13562 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 13563else
81ecdfbb 13564 bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 13565
c906108c 13566fi
81ecdfbb 13567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13568fi
13569
97bf5e38 13570 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab 13571
81ecdfbb 13572$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
c906108c 13573
97bf5e38 13574 fi
81ecdfbb
RW
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13576$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
c906108c 13577
81ecdfbb
RW
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13579$as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13580 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
c906108c 13582else
81ecdfbb 13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13584/* end confdefs.h. */
c906108c 13585
97bf5e38 13586#define _SYSCALL32
d30c5336
JK
13587/* Needed for new procfs interface on sparc-solaris. */
13588#define _STRUCTURED_PROC 1
97bf5e38 13589#include <sys/procfs.h>
bec39cab
AC
13590int
13591main ()
13592{
97bf5e38 13593prsysent_t avar
bec39cab
AC
13594 ;
13595 return 0;
13596}
13597_ACEOF
81ecdfbb 13598if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13599 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 13600else
81ecdfbb 13601 bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 13602
c906108c 13603fi
81ecdfbb 13604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13605fi
13606
97bf5e38 13607 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab 13608
81ecdfbb 13609$as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
c906108c 13610
97bf5e38 13611 fi
81ecdfbb
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13613$as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
c906108c 13614
81ecdfbb
RW
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13616$as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13617 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13618 $as_echo_n "(cached) " >&6
c906108c 13619else
81ecdfbb 13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13621/* end confdefs.h. */
c906108c 13622
97bf5e38 13623#define _SYSCALL32
d30c5336
JK
13624/* Needed for new procfs interface on sparc-solaris. */
13625#define _STRUCTURED_PROC 1
97bf5e38 13626#include <sys/procfs.h>
bec39cab
AC
13627int
13628main ()
13629{
97bf5e38 13630pr_sigset_t avar
bec39cab
AC
13631 ;
13632 return 0;
13633}
13634_ACEOF
81ecdfbb 13635if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13636 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 13637else
81ecdfbb 13638 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 13639
c906108c 13640fi
81ecdfbb 13641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13642fi
13643
97bf5e38 13644 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab 13645
81ecdfbb 13646$as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
c906108c 13647
97bf5e38 13648 fi
81ecdfbb
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13650$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
c906108c 13651
81ecdfbb
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13653$as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13654 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13655 $as_echo_n "(cached) " >&6
c906108c 13656else
81ecdfbb 13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13658/* end confdefs.h. */
c906108c 13659
97bf5e38 13660#define _SYSCALL32
d30c5336
JK
13661/* Needed for new procfs interface on sparc-solaris. */
13662#define _STRUCTURED_PROC 1
97bf5e38 13663#include <sys/procfs.h>
bec39cab
AC
13664int
13665main ()
13666{
97bf5e38 13667pr_sigaction64_t avar
bec39cab
AC
13668 ;
13669 return 0;
13670}
13671_ACEOF
81ecdfbb 13672if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13673 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 13674else
81ecdfbb 13675 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 13676
c906108c 13677fi
81ecdfbb 13678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13679fi
13680
97bf5e38 13681 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab 13682
81ecdfbb 13683$as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
c906108c 13684
97bf5e38 13685 fi
81ecdfbb
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13687$as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
97bf5e38 13688
81ecdfbb
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13690$as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13691 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13692 $as_echo_n "(cached) " >&6
97bf5e38 13693else
81ecdfbb 13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13695/* end confdefs.h. */
97bf5e38
MK
13696
13697#define _SYSCALL32
d30c5336
JK
13698/* Needed for new procfs interface on sparc-solaris. */
13699#define _STRUCTURED_PROC 1
97bf5e38 13700#include <sys/procfs.h>
bec39cab
AC
13701int
13702main ()
13703{
97bf5e38 13704pr_siginfo64_t avar
bec39cab
AC
13705 ;
13706 return 0;
13707}
13708_ACEOF
81ecdfbb 13709if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13710 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13711else
81ecdfbb 13712 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 13713
97bf5e38 13714fi
81ecdfbb 13715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13716fi
c906108c 13717
97bf5e38 13718 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab 13719
81ecdfbb 13720$as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
c906108c 13721
97bf5e38 13722 fi
81ecdfbb
RW
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13724$as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
bec39cab
AC
13725
13726
97bf5e38
MK
13727
13728
13729
97bf5e38 13730 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
81ecdfbb
RW
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13732$as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13733 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13734 $as_echo_n "(cached) " >&6
c906108c 13735else
81ecdfbb 13736 if test "$cross_compiling" = yes; then :
97bf5e38 13737 gdb_cv_prfpregset_t_broken=yes
c906108c 13738else
81ecdfbb 13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13740/* end confdefs.h. */
97bf5e38
MK
13741#include <sys/procfs.h>
13742 int main ()
13743 {
13744 if (sizeof (prfpregset_t) == sizeof (void *))
13745 return 1;
13746 return 0;
13747 }
bec39cab 13748_ACEOF
81ecdfbb 13749if ac_fn_c_try_run "$LINENO"; then :
97bf5e38 13750 gdb_cv_prfpregset_t_broken=no
81ecdfbb
RW
13751else
13752 gdb_cv_prfpregset_t_broken=yes
c906108c 13753fi
81ecdfbb
RW
13754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13755 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 13756fi
81ecdfbb 13757
c906108c
SS
13758fi
13759
81ecdfbb
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13761$as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
97bf5e38 13762 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f 13763
81ecdfbb 13764$as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
c906108c 13765
97bf5e38
MK
13766 fi
13767 fi
c906108c 13768
bec39cab 13769
81ecdfbb
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13771$as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13772 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
c906108c 13774else
81ecdfbb 13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13776/* end confdefs.h. */
97bf5e38
MK
13777#include <unistd.h>
13778#include <sys/types.h>
13779#include <sys/procfs.h>
13780
bec39cab
AC
13781int
13782main ()
13783{
97bf5e38
MK
13784
13785 int dummy;;
13786 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
13787
13788 ;
13789 return 0;
13790}
13791_ACEOF
81ecdfbb 13792if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13793 gdb_cv_have_procfs_piocset=yes
c906108c 13794else
81ecdfbb 13795 gdb_cv_have_procfs_piocset=no
c906108c 13796fi
81ecdfbb 13797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13798fi
97bf5e38 13799
81ecdfbb
RW
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13801$as_echo "$gdb_cv_have_procfs_piocset" >&6; }
97bf5e38 13802 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f 13803
81ecdfbb 13804$as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
97bf5e38
MK
13805
13806 fi
c906108c 13807fi
c906108c 13808
97bf5e38 13809if test ${host} = ${target} ; then
bec39cab 13810
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13812$as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13813 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13814 $as_echo_n "(cached) " >&6
bec39cab 13815else
81ecdfbb 13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13817/* end confdefs.h. */
97bf5e38 13818#include <link.h>
bec39cab
AC
13819int
13820main ()
13821{
97bf5e38 13822struct link_map lm; (void) lm.l_addr;
bec39cab
AC
13823 ;
13824 return 0;
13825}
13826_ACEOF
81ecdfbb 13827if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38 13828 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 13829else
81ecdfbb 13830 gdb_cv_have_struct_link_map_with_l_members=no
c906108c 13831fi
81ecdfbb 13832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
13833fi
13834
81ecdfbb
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13836$as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
97bf5e38 13837 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f 13838
81ecdfbb 13839$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
97bf5e38
MK
13840
13841 fi
13842
bec39cab 13843
81ecdfbb
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13845$as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13846 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13847 $as_echo_n "(cached) " >&6
c906108c 13848else
81ecdfbb 13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13850/* end confdefs.h. */
97bf5e38
MK
13851#include <sys/types.h>
13852#include <link.h>
bec39cab
AC
13853int
13854main ()
13855{
97bf5e38 13856struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
13857 ;
13858 return 0;
13859}
13860_ACEOF
81ecdfbb 13861if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13862 gdb_cv_have_struct_link_map_with_lm_members=yes
13863else
81ecdfbb 13864 gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 13865fi
81ecdfbb 13866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 13867fi
c906108c 13868
81ecdfbb
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13870$as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
97bf5e38 13871 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f 13872
81ecdfbb 13873$as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
97bf5e38
MK
13874
13875 fi
13876
bec39cab 13877
81ecdfbb
RW
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13879$as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13880 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
c906108c 13882else
81ecdfbb 13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13884/* end confdefs.h. */
97bf5e38
MK
13885#include <sys/types.h>
13886#ifdef HAVE_NLIST_H
13887#include <nlist.h>
13888#endif
13889#include <link.h>
bec39cab
AC
13890int
13891main ()
13892{
97bf5e38 13893struct so_map lm; (void) lm.som_addr;
bec39cab
AC
13894 ;
13895 return 0;
13896}
13897_ACEOF
81ecdfbb 13898if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13899 gdb_cv_have_struct_so_map_with_som_members=yes
13900else
81ecdfbb 13901 gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 13902fi
81ecdfbb 13903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 13904fi
c906108c 13905
81ecdfbb
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13907$as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
97bf5e38 13908 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f 13909
81ecdfbb 13910$as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
c906108c 13911
97bf5e38 13912 fi
c906108c 13913
bec39cab 13914
81ecdfbb
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13916$as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13917 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
97bf5e38 13919else
81ecdfbb 13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13921/* end confdefs.h. */
97bf5e38
MK
13922#define _SYSCALL32
13923#include <sys/link.h>
bec39cab
AC
13924int
13925main ()
13926{
97bf5e38 13927struct link_map32 l;
bec39cab
AC
13928 ;
13929 return 0;
13930}
13931_ACEOF
81ecdfbb 13932if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13933 gdb_cv_have_struct_link_map32=yes
13934else
81ecdfbb 13935 gdb_cv_have_struct_link_map32=no
97bf5e38 13936fi
81ecdfbb 13937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 13938fi
c906108c 13939
81ecdfbb
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13941$as_echo "$gdb_cv_have_struct_link_map32" >&6; }
97bf5e38 13942 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f 13943
81ecdfbb 13944$as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
c906108c 13945
60ca704f 13946
81ecdfbb 13947$as_echo "#define _SYSCALL32 1" >>confdefs.h
c906108c 13948
97bf5e38
MK
13949 fi
13950fi
c906108c 13951
bc8bcb4b 13952# Check if the compiler supports the `long long' type.
c906108c 13953
81ecdfbb
RW
13954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13955$as_echo_n "checking for long long support in compiler... " >&6; }
13956if test "${gdb_cv_c_long_long+set}" = set; then :
13957 $as_echo_n "(cached) " >&6
97bf5e38 13958else
81ecdfbb 13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13960/* end confdefs.h. */
bc8bcb4b 13961extern long long foo;
bec39cab
AC
13962int
13963main ()
13964{
bc8bcb4b 13965switch (foo & 2) { case 0: return 1; }
bec39cab
AC
13966 ;
13967 return 0;
13968}
13969_ACEOF
81ecdfbb 13970if ac_fn_c_try_compile "$LINENO"; then :
97bf5e38
MK
13971 gdb_cv_c_long_long=yes
13972else
81ecdfbb 13973 gdb_cv_c_long_long=no
97bf5e38 13974fi
81ecdfbb 13975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 13976fi
81ecdfbb
RW
13977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13978$as_echo "$gdb_cv_c_long_long" >&6; }
97bf5e38 13979if test $gdb_cv_c_long_long = yes; then
bc8bcb4b 13980
81ecdfbb 13981$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
97bf5e38
MK
13982
13983fi
13984
bc8bcb4b 13985# Check if the compiler and runtime support printing long longs.
97bf5e38 13986
81ecdfbb
RW
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13988$as_echo_n "checking for long long support in printf... " >&6; }
13989if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13990 $as_echo_n "(cached) " >&6
97bf5e38 13991else
81ecdfbb 13992 if test "$cross_compiling" = yes; then :
97bf5e38
MK
13993 gdb_cv_printf_has_long_long=no
13994else
81ecdfbb 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 13996/* end confdefs.h. */
bc8bcb4b
MK
13997$ac_includes_default
13998int
13999main ()
14000{
14001char buf[32];
97bf5e38
MK
14002 long long l = 0;
14003 l = (l << 16) + 0x0123;
14004 l = (l << 16) + 0x4567;
14005 l = (l << 16) + 0x89ab;
14006 l = (l << 16) + 0xcdef;
14007 sprintf (buf, "0x%016llx", l);
14008 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
14009 ;
14010 return 0;
c906108c 14011}
bec39cab 14012_ACEOF
81ecdfbb 14013if ac_fn_c_try_run "$LINENO"; then :
97bf5e38
MK
14014 gdb_cv_printf_has_long_long=yes
14015else
81ecdfbb 14016 gdb_cv_printf_has_long_long=no
97bf5e38 14017fi
81ecdfbb
RW
14018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14019 conftest.$ac_objext conftest.beam conftest.$ac_ext
97bf5e38 14020fi
81ecdfbb 14021
97bf5e38 14022fi
81ecdfbb
RW
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14024$as_echo "$gdb_cv_printf_has_long_long" >&6; }
97bf5e38 14025if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b 14026
81ecdfbb 14027$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
97bf5e38
MK
14028
14029fi
97bf5e38 14030
1a619819
LM
14031# Check if the compiler and runtime support printing decfloats.
14032
81ecdfbb
RW
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14034$as_echo_n "checking for decfloat support in printf... " >&6; }
14035if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
1a619819 14037else
81ecdfbb 14038 if test "$cross_compiling" = yes; then :
1a619819
LM
14039 gdb_cv_printf_has_decfloat=no
14040else
81ecdfbb 14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a619819
LM
14042/* end confdefs.h. */
14043$ac_includes_default
14044int
14045main ()
14046{
14047char buf[64];
14048 _Decimal32 d32 = 1.2345df;
14049 _Decimal64 d64 = 1.2345dd;
14050 _Decimal128 d128 = 1.2345dl;
14051 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14052 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14053 ;
14054 return 0;
14055}
14056_ACEOF
81ecdfbb 14057if ac_fn_c_try_run "$LINENO"; then :
1a619819
LM
14058 gdb_cv_printf_has_decfloat=yes
14059else
81ecdfbb 14060 gdb_cv_printf_has_decfloat=no
1a619819 14061fi
81ecdfbb
RW
14062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14063 conftest.$ac_objext conftest.beam conftest.$ac_ext
1a619819 14064fi
81ecdfbb 14065
1a619819 14066fi
81ecdfbb
RW
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14068$as_echo "$gdb_cv_printf_has_decfloat" >&6; }
1a619819
LM
14069if test $gdb_cv_printf_has_decfloat = yes; then
14070
81ecdfbb 14071$as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
1a619819
LM
14072
14073fi
14074
bc8bcb4b
MK
14075# Check if the compiler supports the `long double' type. We can't use
14076# AC_C_LONG_DOUBLE because that one does additional checks on the
14077# constants defined in <float.h> that fail on some systems,
14078# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 14079
81ecdfbb
RW
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14081$as_echo_n "checking for long double support in compiler... " >&6; }
14082if test "${gdb_cv_c_long_double+set}" = set; then :
14083 $as_echo_n "(cached) " >&6
97bf5e38 14084else
81ecdfbb 14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14086/* end confdefs.h. */
97bf5e38 14087long double foo;
bec39cab 14088_ACEOF
81ecdfbb 14089if ac_fn_c_try_compile "$LINENO"; then :
bc8bcb4b 14090 gdb_cv_c_long_double=yes
97bf5e38 14091else
81ecdfbb 14092 gdb_cv_c_long_double=no
97bf5e38 14093fi
81ecdfbb 14094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 14095fi
81ecdfbb
RW
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14097$as_echo "$gdb_cv_c_long_double" >&6; }
bc8bcb4b 14098if test $gdb_cv_c_long_double = yes; then
c906108c 14099
81ecdfbb 14100$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
97bf5e38
MK
14101
14102fi
14103
bc8bcb4b 14104# Check if the compiler and runtime support printing long doubles.
97bf5e38 14105
81ecdfbb
RW
14106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14107$as_echo_n "checking for long double support in printf... " >&6; }
14108if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14109 $as_echo_n "(cached) " >&6
97bf5e38 14110else
81ecdfbb 14111 if test "$cross_compiling" = yes; then :
97bf5e38
MK
14112 gdb_cv_printf_has_long_double=no
14113else
81ecdfbb 14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14115/* end confdefs.h. */
bc8bcb4b
MK
14116$ac_includes_default
14117int
14118main ()
14119{
14120char buf[16];
97bf5e38
MK
14121 long double f = 3.141592653;
14122 sprintf (buf, "%Lg", f);
14123 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
14124 ;
14125 return 0;
97bf5e38 14126}
bec39cab 14127_ACEOF
81ecdfbb 14128if ac_fn_c_try_run "$LINENO"; then :
97bf5e38 14129 gdb_cv_printf_has_long_double=yes
c906108c 14130else
81ecdfbb 14131 gdb_cv_printf_has_long_double=no
c906108c 14132fi
81ecdfbb
RW
14133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14134 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 14135fi
81ecdfbb 14136
c906108c 14137fi
81ecdfbb
RW
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14139$as_echo "$gdb_cv_printf_has_long_double" >&6; }
97bf5e38 14140if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b 14141
81ecdfbb 14142$as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
97bf5e38
MK
14143
14144fi
97bf5e38 14145
bc8bcb4b 14146# Check if the compiler and runtime support scanning long doubles.
97bf5e38 14147
81ecdfbb
RW
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14149$as_echo_n "checking for long double support in scanf... " >&6; }
14150if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14151 $as_echo_n "(cached) " >&6
97bf5e38 14152else
81ecdfbb 14153 if test "$cross_compiling" = yes; then :
97bf5e38
MK
14154 gdb_cv_scanf_has_long_double=no
14155else
81ecdfbb 14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14157/* end confdefs.h. */
bc8bcb4b
MK
14158#include <stdio.h>
14159int
14160main ()
14161{
14162char *buf = "3.141592653";
97bf5e38
MK
14163 long double f = 0;
14164 sscanf (buf, "%Lg", &f);
14165 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
14166 ;
14167 return 0;
97bf5e38 14168}
bec39cab 14169_ACEOF
81ecdfbb 14170if ac_fn_c_try_run "$LINENO"; then :
97bf5e38
MK
14171 gdb_cv_scanf_has_long_double=yes
14172else
81ecdfbb 14173 gdb_cv_scanf_has_long_double=no
97bf5e38 14174fi
81ecdfbb
RW
14175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14176 conftest.$ac_objext conftest.beam conftest.$ac_ext
97bf5e38 14177fi
81ecdfbb 14178
c906108c 14179fi
81ecdfbb
RW
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14181$as_echo "$gdb_cv_scanf_has_long_double" >&6; }
97bf5e38 14182if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b 14183
81ecdfbb 14184$as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
97bf5e38
MK
14185
14186fi
c906108c 14187
438013df
AO
14188case ${host_os} in
14189aix*)
81ecdfbb
RW
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14191$as_echo_n "checking for -bbigtoc option... " >&6; }
14192if test "${gdb_cv_bigtoc+set}" = set; then :
14193 $as_echo_n "(cached) " >&6
438013df 14194else
bec39cab 14195
438013df
AO
14196 SAVE_LDFLAGS=$LDFLAGS
14197
14198 case $GCC in
14199 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14200 *) gdb_cv_bigtoc=-bbigtoc ;;
14201 esac
14202
14203 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
81ecdfbb 14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14205/* end confdefs.h. */
438013df 14206
bec39cab
AC
14207int
14208main ()
14209{
438013df 14210int i;
bec39cab
AC
14211 ;
14212 return 0;
14213}
14214_ACEOF
81ecdfbb 14215if ac_fn_c_try_link "$LINENO"; then :
bec39cab 14216
81ecdfbb
RW
14217else
14218 gdb_cv_bigtoc=
438013df 14219fi
81ecdfbb
RW
14220rm -f core conftest.err conftest.$ac_objext \
14221 conftest$ac_exeext conftest.$ac_ext
ec76baa5 14222 LDFLAGS="${SAVE_LDFLAGS}"
438013df 14223
bec39cab 14224fi
81ecdfbb
RW
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14226$as_echo "$gdb_cv_bigtoc" >&6; }
438013df
AO
14227 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14228 ;;
14229esac
14230
38f6b338 14231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
f6528abd 14232$as_echo_n "checking for the dynamic export flag... " >&6; }
38f6b338
JK
14233dynamic_list=false
14234if test "${gdb_native}" = yes; then
14235 # The dynamically loaded libthread_db needs access to symbols in the gdb
14236 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14237 # may not be supported there.
14238 old_LDFLAGS="$LDFLAGS"
14239 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14240 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14241 LDFLAGS="$LDFLAGS $RDYNAMIC"
14242 if test "${have_libpython}" = no; then
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f6528abd
JK
14244/* end confdefs.h. */
14245
14246int
14247main ()
14248{
14249
14250 ;
14251 return 0;
14252}
14253_ACEOF
14254if ac_fn_c_try_link "$LINENO"; then :
3bebe2f2
JK
14255 dynamic_list=true
14256fi
14257rm -f core conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
38f6b338
JK
14259 else
14260 # Workaround http://bugs.python.org/issue4434 where static
14261 # libpythonX.Y.a would get its symbols required for
14262 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14263 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14264 old_CFLAGS="$CFLAGS"
14265 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14266 if test "$cross_compiling" = yes; then :
3bebe2f2 14267 true
f6528abd 14268else
3bebe2f2
JK
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270/* end confdefs.h. */
14271#include "${have_libpython}/Python.h"
14272int
14273main ()
14274{
14275int err;
38f6b338
JK
14276 Py_Initialize ();
14277 err = PyRun_SimpleString ("import itertools\n");
14278 Py_Finalize ();
14279 return err == 0 ? 0 : 1;
3bebe2f2
JK
14280 ;
14281 return 0;
14282}
14283_ACEOF
14284if ac_fn_c_try_run "$LINENO"; then :
14285 dynamic_list=true
14286fi
14287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14288 conftest.$ac_objext conftest.beam conftest.$ac_ext
14289fi
14290
38f6b338
JK
14291 CFLAGS="$old_CFLAGS"
14292 fi
14293 LDFLAGS="$old_LDFLAGS"
14294fi
14295if $dynamic_list; then
14296 found="-Wl,--dynamic-list"
14297 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
f6528abd 14298else
38f6b338
JK
14299 found="-rdynamic"
14300 RDYNAMIC="-rdynamic"
f6528abd 14301fi
f6528abd 14302
38f6b338 14303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
f6528abd 14304$as_echo "$found" >&6; }
0407b3f1 14305
f6528abd 14306
0407b3f1 14307if test ${build} = ${host} -a ${host} = ${target} ; then
c906108c
SS
14308 case ${host_os} in
14309 hpux*)
81ecdfbb
RW
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14311$as_echo_n "checking for HPUX/OSF thread support... " >&6; }
c906108c
SS
14312 if test -f /usr/include/dce/cma_config.h ; then
14313 if test "$GCC" = "yes" ; then
81ecdfbb
RW
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14315$as_echo "yes" >&6; }
60ca704f 14316
81ecdfbb 14317$as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
c906108c 14318
3483b318 14319 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
14320 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
14321 else
81ecdfbb
RW
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14323$as_echo "no (suppressed because you are not using GCC)" >&6; }
c906108c
SS
14324 fi
14325 else
81ecdfbb
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327$as_echo "no" >&6; }
c906108c
SS
14328 fi
14329 ;;
14330 solaris*)
d92419e5
JB
14331 # See if thread_db library is around for Solaris thread debugging.
14332 # Note that we must explicitly test for version 1 of the library
14333 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14334 # the same API.
81ecdfbb
RW
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14336$as_echo_n "checking for Solaris thread debugging library... " >&6; }
c906108c 14337 if test -f /usr/lib/libthread_db.so.1 ; then
81ecdfbb
RW
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14339$as_echo "yes" >&6; }
60ca704f 14340
81ecdfbb 14341$as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
c906108c 14342
3483b318 14343 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 14344 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
81ecdfbb
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14346$as_echo_n "checking for dlopen in -ldl... " >&6; }
14347if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14348 $as_echo_n "(cached) " >&6
c906108c 14349else
bec39cab 14350 ac_check_lib_save_LIBS=$LIBS
c906108c 14351LIBS="-ldl $LIBS"
81ecdfbb 14352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab
AC
14353/* end confdefs.h. */
14354
81ecdfbb
RW
14355/* Override any GCC internal prototype to avoid an error.
14356 Use char because int might match the return type of a GCC
14357 builtin and then its argument prototype would still apply. */
bec39cab
AC
14358#ifdef __cplusplus
14359extern "C"
14360#endif
bec39cab
AC
14361char dlopen ();
14362int
14363main ()
14364{
81ecdfbb 14365return dlopen ();
bec39cab
AC
14366 ;
14367 return 0;
14368}
14369_ACEOF
81ecdfbb 14370if ac_fn_c_try_link "$LINENO"; then :
bec39cab
AC
14371 ac_cv_lib_dl_dlopen=yes
14372else
81ecdfbb 14373 ac_cv_lib_dl_dlopen=no
bec39cab 14374fi
81ecdfbb
RW
14375rm -f core conftest.err conftest.$ac_objext \
14376 conftest$ac_exeext conftest.$ac_ext
bec39cab
AC
14377LIBS=$ac_check_lib_save_LIBS
14378fi
81ecdfbb
RW
14379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14380$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14381if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
bec39cab
AC
14382 cat >>confdefs.h <<_ACEOF
14383#define HAVE_LIBDL 1
14384_ACEOF
c906108c
SS
14385
14386 LIBS="-ldl $LIBS"
14387
c906108c
SS
14388fi
14389
f6528abd 14390 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
c906108c
SS
14391 # Sun randomly tweaked the prototypes in <proc_service.h>
14392 # at one point.
81ecdfbb
RW
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14394$as_echo_n "checking if <proc_service.h> is old... " >&6; }
14395 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14396 $as_echo_n "(cached) " >&6
c906108c 14397else
bec39cab 14398
81ecdfbb 14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14400/* end confdefs.h. */
c906108c
SS
14401
14402 #include <proc_service.h>
14403 ps_err_e ps_pdwrite
14404 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 14405
bec39cab
AC
14406int
14407main ()
14408{
14409
14410 ;
14411 return 0;
14412}
14413_ACEOF
81ecdfbb 14414if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
14415 gdb_cv_proc_service_is_old=no
14416else
81ecdfbb 14417 gdb_cv_proc_service_is_old=yes
c906108c 14418fi
81ecdfbb 14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 14420
c906108c
SS
14421fi
14422
81ecdfbb
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14424$as_echo "$gdb_cv_proc_service_is_old" >&6; }
c906108c 14425 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f 14426
81ecdfbb 14427$as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
c906108c
SS
14428
14429 fi
14430 else
81ecdfbb
RW
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432$as_echo "no" >&6; }
c906108c
SS
14433 fi
14434 ;;
d92419e5 14435 aix*)
81ecdfbb
RW
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14437$as_echo_n "checking for AiX thread debugging library... " >&6; }
14438 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14439 $as_echo_n "(cached) " >&6
bec39cab 14440else
81ecdfbb 14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14442/* end confdefs.h. */
d92419e5 14443#include <sys/pthdebug.h>
bec39cab
AC
14444int
14445main ()
14446{
d92419e5
JB
14447#ifndef PTHDB_VERSION_3
14448 #error
14449 #endif
bec39cab
AC
14450 ;
14451 return 0;
14452}
14453_ACEOF
81ecdfbb 14454if ac_fn_c_try_compile "$LINENO"; then :
d92419e5
JB
14455 gdb_cv_have_aix_thread_debug=yes
14456else
81ecdfbb 14457 gdb_cv_have_aix_thread_debug=no
d92419e5 14458fi
81ecdfbb 14459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
14460fi
14461
81ecdfbb
RW
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14463$as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
d92419e5
JB
14464 if test $gdb_cv_have_aix_thread_debug = yes; then
14465 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 14466 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
14467 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14468 fi
14469 ;;
c906108c 14470 esac
bec39cab 14471
c906108c
SS
14472fi
14473
3f47be5c 14474if test "x$ac_cv_header_thread_db_h" = "xyes"; then
81ecdfbb
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14476$as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14477if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
bec39cab 14479else
81ecdfbb 14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14481/* end confdefs.h. */
3f47be5c 14482#include <thread_db.h>
bec39cab
AC
14483int
14484main ()
14485{
3f47be5c 14486int i = TD_NOTALLOC;
bec39cab
AC
14487 ;
14488 return 0;
14489}
14490_ACEOF
81ecdfbb 14491if ac_fn_c_try_compile "$LINENO"; then :
3f47be5c
EZ
14492 gdb_cv_thread_db_h_has_td_notalloc=yes
14493else
81ecdfbb 14494 gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 14495
3f47be5c 14496fi
81ecdfbb 14497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 14498
bec39cab 14499fi
81ecdfbb
RW
14500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14501$as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14503$as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14504if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14505 $as_echo_n "(cached) " >&6
59f80f10 14506else
81ecdfbb 14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59f80f10
DJ
14508/* end confdefs.h. */
14509#include <thread_db.h>
14510int
14511main ()
14512{
14513int i = TD_VERSION;
14514 ;
14515 return 0;
14516}
14517_ACEOF
81ecdfbb 14518if ac_fn_c_try_compile "$LINENO"; then :
59f80f10
DJ
14519 gdb_cv_thread_db_h_has_td_version=yes
14520else
81ecdfbb 14521 gdb_cv_thread_db_h_has_td_version=no
59f80f10
DJ
14522
14523fi
81ecdfbb 14524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59f80f10
DJ
14525
14526fi
81ecdfbb
RW
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14528$as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14530$as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14531if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
59f80f10 14533else
81ecdfbb 14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59f80f10
DJ
14535/* end confdefs.h. */
14536#include <thread_db.h>
14537int
14538main ()
14539{
14540int i = TD_NOTLS;
14541 ;
14542 return 0;
14543}
14544_ACEOF
81ecdfbb 14545if ac_fn_c_try_compile "$LINENO"; then :
59f80f10
DJ
14546 gdb_cv_thread_db_h_has_td_notls=yes
14547else
81ecdfbb 14548 gdb_cv_thread_db_h_has_td_notls=no
59f80f10
DJ
14549
14550fi
81ecdfbb 14551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59f80f10
DJ
14552
14553fi
81ecdfbb
RW
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14555$as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
3f47be5c
EZ
14556fi
14557if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab 14558
81ecdfbb 14559$as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
3f47be5c 14560
59f80f10
DJ
14561fi
14562if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14563
81ecdfbb 14564$as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
59f80f10
DJ
14565
14566fi
14567if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14568
81ecdfbb 14569$as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
59f80f10 14570
3f47be5c
EZ
14571fi
14572
b757528f 14573if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
81ecdfbb
RW
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14575$as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14576if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
bec39cab 14578else
81ecdfbb 14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14580/* end confdefs.h. */
b757528f 14581#include <sys/syscall.h>
bec39cab
AC
14582int
14583main ()
14584{
b757528f 14585int i = __NR_tkill;
bec39cab
AC
14586 ;
14587 return 0;
14588}
14589_ACEOF
81ecdfbb 14590if ac_fn_c_try_compile "$LINENO"; then :
b757528f
JJ
14591 gdb_cv_sys_syscall_h_has_tkill=yes
14592else
81ecdfbb 14593 gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 14594
b757528f 14595fi
81ecdfbb 14596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 14597
bec39cab 14598fi
81ecdfbb
RW
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14600$as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
b757528f
JJ
14601fi
14602if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab 14603
81ecdfbb 14604$as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
b757528f
JJ
14605
14606fi
14607
81ecdfbb
RW
14608ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14609"
14610if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14611 ac_have_decl=1
10568435 14612else
81ecdfbb 14613 ac_have_decl=0
10568435 14614fi
10568435
JK
14615
14616cat >>confdefs.h <<_ACEOF
81ecdfbb 14617#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
10568435
JK
14618_ACEOF
14619
14620
81ecdfbb
RW
14621if test "$cross_compiling" = yes; then :
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568435
JK
14623/* end confdefs.h. */
14624#include <sys/personality.h>
14625int
14626main ()
14627{
14628
14629# if !HAVE_DECL_ADDR_NO_RANDOMIZE
14630# define ADDR_NO_RANDOMIZE 0x0040000
14631# endif
14632 /* Test the flag could be set and stays set. */
14633 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14634 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14635 return 1
14636 ;
14637 return 0;
14638}
14639_ACEOF
81ecdfbb 14640if ac_fn_c_try_link "$LINENO"; then :
10568435
JK
14641 have_personality=true
14642else
81ecdfbb 14643 have_personality=false
10568435 14644fi
81ecdfbb
RW
14645rm -f core conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext conftest.$ac_ext
10568435 14647else
81ecdfbb 14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568435
JK
14649/* end confdefs.h. */
14650#include <sys/personality.h>
14651int
14652main ()
14653{
14654
14655# if !HAVE_DECL_ADDR_NO_RANDOMIZE
14656# define ADDR_NO_RANDOMIZE 0x0040000
14657# endif
14658 /* Test the flag could be set and stays set. */
14659 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14660 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14661 return 1
14662 ;
14663 return 0;
14664}
14665_ACEOF
81ecdfbb 14666if ac_fn_c_try_run "$LINENO"; then :
10568435
JK
14667 have_personality=true
14668else
81ecdfbb 14669 have_personality=false
10568435 14670fi
81ecdfbb
RW
14671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14672 conftest.$ac_objext conftest.beam conftest.$ac_ext
10568435 14673fi
81ecdfbb 14674
10568435
JK
14675if $have_personality
14676then
14677
81ecdfbb 14678$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
10568435
JK
14679
14680fi
14681
fb40c209 14682
b14b1491 14683target_sysroot_reloc=0
bec39cab 14684
81ecdfbb
RW
14685# Check whether --with-sysroot was given.
14686if test "${with_sysroot+set}" = set; then :
14687 withval=$with_sysroot;
030292b7 14688 case ${with_sysroot} in
715d1656 14689 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
14690 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14691 esac
14692
14693 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14694
07abfebf
RS
14695 if test "x$prefix" = xNONE; then
14696 test_prefix=/usr/local
14697 else
14698 test_prefix=$prefix
14699 fi
aa28a74e 14700 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 14701 test_exec_prefix=$test_prefix
030292b7 14702 else
07abfebf 14703 test_exec_prefix=$exec_prefix
030292b7
DJ
14704 fi
14705 case ${TARGET_SYSTEM_ROOT} in
715d1656 14706 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
14707 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14708 '${prefix}'|'${prefix}/'*|\
715d1656 14709 '${exec_prefix}'|'${exec_prefix}/'*)
b14b1491 14710 target_sysroot_reloc=1
030292b7
DJ
14711 ;;
14712 esac
14713
14714else
bec39cab 14715
030292b7
DJ
14716 TARGET_SYSTEM_ROOT=
14717 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14718
81ecdfbb 14719fi
b14b1491 14720
81ecdfbb 14721TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
030292b7
DJ
14722
14723
14724
16e7150e 14725
16e7150e 14726
81ecdfbb
RW
14727# Check whether --with-system-gdbinit was given.
14728if test "${with_system_gdbinit+set}" = set; then :
14729 withval=$with_system_gdbinit;
b14b1491
TT
14730 SYSTEM_GDBINIT=$withval
14731else
14732 SYSTEM_GDBINIT=
81ecdfbb
RW
14733fi
14734
16e7150e
JG
14735
14736 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
b14b1491 14738 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
16e7150e
JG
14739 ac_define_dir=`eval echo $ac_define_dir`
14740
14741cat >>confdefs.h <<_ACEOF
14742#define SYSTEM_GDBINIT "$ac_define_dir"
14743_ACEOF
14744
14745
14746
0c4a4063 14747
b14b1491
TT
14748 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14749 if test "x$prefix" = xNONE; then
14750 test_prefix=/usr/local
14751 else
14752 test_prefix=$prefix
14753 fi
14754 else
14755 test_prefix=$exec_prefix
14756 fi
14757 value=0
14758 case ${ac_define_dir} in
14759 "${test_prefix}"|"${test_prefix}/"*|\
14760 '${exec_prefix}'|'${exec_prefix}/'*)
14761 value=1
14762 ;;
14763 esac
16e7150e 14764
b14b1491
TT
14765cat >>confdefs.h <<_ACEOF
14766#define SYSTEM_GDBINIT_RELOCATABLE $value
16e7150e
JG
14767_ACEOF
14768
b14b1491 14769
16e7150e 14770
0c4a4063 14771
81ecdfbb
RW
14772# Check whether --enable-werror was given.
14773if test "${enable_werror+set}" = set; then :
14774 enableval=$enable_werror; case "${enableval}" in
094a342e
MK
14775 yes | y) ERROR_ON_WARNING="yes" ;;
14776 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 14777 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
094a342e 14778 esac
81ecdfbb
RW
14779fi
14780
094a342e
MK
14781
14782# Enable -Werror by default when using gcc
14783if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14784 ERROR_ON_WARNING=yes
14785fi
14786
14787WERROR_CFLAGS=""
14788if test "${ERROR_ON_WARNING}" = yes ; then
14789 WERROR_CFLAGS="-Werror"
14790fi
14791
aa79a185
DJ
14792# The entries after -Wno-pointer-sign are disabled warnings which may
14793# be enabled in the future, which can not currently be used to build
14794# GDB.
14795# NOTE: If you change this list, remember to update
3b851bce 14796# gdb/doc/gdbint.texinfo.
aa79a185
DJ
14797build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14798-Wformat-nonliteral -Wno-pointer-sign \
1cb5e2a4
JB
14799-Wno-unused -Wunused-value -Wunused-function \
14800-Wno-switch -Wno-char-subscripts"
a3b362c4 14801
3526781e
DJ
14802# Enable -Wno-format by default when using gcc on mingw since many
14803# GCC versions complain about %I64.
14804case "${host}" in
14805 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14806esac
14807
81ecdfbb
RW
14808# Check whether --enable-build-warnings was given.
14809if test "${enable_build_warnings+set}" = set; then :
14810 enableval=$enable_build_warnings; case "${enableval}" in
c906108c
SS
14811 yes) ;;
14812 no) build_warnings="-w";;
14813 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14814 build_warnings="${build_warnings} ${t}";;
14815 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14816 build_warnings="${t} ${build_warnings}";;
14817 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14818esac
d4f3574e 14819if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 14820 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 14821fi
81ecdfbb
RW
14822fi
14823# Check whether --enable-gdb-build-warnings was given.
14824if test "${enable_gdb_build_warnings+set}" = set; then :
14825 enableval=$enable_gdb_build_warnings; case "${enableval}" in
3b851bce
AC
14826 yes) ;;
14827 no) build_warnings="-w";;
14828 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14829 build_warnings="${build_warnings} ${t}";;
14830 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14831 build_warnings="${t} ${build_warnings}";;
14832 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14833esac
14834if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14835 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14836fi
81ecdfbb
RW
14837fi
14838WARN_CFLAGS=""
c906108c
SS
14839if test "x${build_warnings}" != x -a "x$GCC" = xyes
14840then
81ecdfbb
RW
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14842$as_echo_n "checking compiler warning flags... " >&6; }
746a987d
AC
14843 # Separate out the -Werror flag as some files just cannot be
14844 # compiled with it enabled.
14845 for w in ${build_warnings}; do
14846 case $w in
14847 -Werr*) WERROR_CFLAGS=-Werror ;;
14848 *) # Check that GCC accepts it
4536bbc6
AC
14849 saved_CFLAGS="$CFLAGS"
14850 CFLAGS="$CFLAGS $w"
81ecdfbb 14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14852/* end confdefs.h. */
4536bbc6 14853
bec39cab
AC
14854int
14855main ()
14856{
4536bbc6 14857
bec39cab
AC
14858 ;
14859 return 0;
14860}
14861_ACEOF
81ecdfbb 14862if ac_fn_c_try_compile "$LINENO"; then :
4536bbc6 14863 WARN_CFLAGS="${WARN_CFLAGS} $w"
4536bbc6 14864fi
81ecdfbb 14865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 14866 CFLAGS="$saved_CFLAGS"
746a987d
AC
14867 esac
14868 done
81ecdfbb
RW
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14870$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
14871fi
14872
14873
104c1213 14874
7a292a7a 14875# In the Cygwin environment, we need some additional flags.
81ecdfbb
RW
14876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14877$as_echo_n "checking for cygwin... " >&6; }
14878if test "${gdb_cv_os_cygwin+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
bec39cab 14880else
81ecdfbb 14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 14882/* end confdefs.h. */
7a292a7a
SS
14883
14884#if defined (__CYGWIN__) || defined (__CYGWIN32__)
14885lose
14886#endif
bec39cab 14887_ACEOF
7a292a7a 14888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 14889 $EGREP "lose" >/dev/null 2>&1; then :
7a292a7a
SS
14890 gdb_cv_os_cygwin=yes
14891else
7a292a7a
SS
14892 gdb_cv_os_cygwin=no
14893fi
14894rm -f conftest*
14895
14896fi
81ecdfbb
RW
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14898$as_echo "$gdb_cv_os_cygwin" >&6; }
7a292a7a 14899
aff38e61 14900
3eb25fda 14901SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 14902case ${host} in
95cbc983
AC
14903 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14904 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 14905 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
14906esac
14907
14908
cd0fc7c3
SS
14909# libreadline needs libuser32.a in a cygwin environment
14910WIN32LIBS=
14911if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
14912 WIN32LIBS="-luser32"
14913 case "${target}" in
14914 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14915 ;;
14916 esac
cd0fc7c3 14917fi
c906108c 14918
b4505029
MM
14919# The ser-tcp.c module requires sockets.
14920case ${host} in
14921 *mingw32*)
14922
81ecdfbb 14923$as_echo "#define USE_WIN32API 1" >>confdefs.h
b4505029
MM
14924
14925 WIN32LIBS="$WIN32LIBS -lws2_32"
14926 ;;
14927esac
14928
7a292a7a 14929
31d99776
DJ
14930# Add ELF support to GDB, but only if BFD includes ELF support.
14931OLD_CFLAGS=$CFLAGS
14932OLD_LDFLAGS=$LDFLAGS
14933OLD_LIBS=$LIBS
cab58a69 14934CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 14935LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9 14936intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
0f72fb1c 14937LIBS="-lbfd -liberty $intl $LIBS"
81ecdfbb
RW
14938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14939$as_echo_n "checking for ELF support in BFD... " >&6; }
14940if test "${gdb_cv_var_elf+set}" = set; then :
14941 $as_echo_n "(cached) " >&6
31d99776 14942else
81ecdfbb 14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31d99776
DJ
14944/* end confdefs.h. */
14945#include <stdlib.h>
14946#include "bfd.h"
14947#include "elf-bfd.h"
14948
14949int
14950main ()
14951{
14952bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14953 ;
14954 return 0;
14955}
14956_ACEOF
81ecdfbb 14957if ac_fn_c_try_link "$LINENO"; then :
31d99776
DJ
14958 gdb_cv_var_elf=yes
14959else
81ecdfbb 14960 gdb_cv_var_elf=no
31d99776 14961fi
81ecdfbb
RW
14962rm -f core conftest.err conftest.$ac_objext \
14963 conftest$ac_exeext conftest.$ac_ext
31d99776 14964fi
81ecdfbb
RW
14965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14966$as_echo "$gdb_cv_var_elf" >&6; }
31d99776
DJ
14967if test $gdb_cv_var_elf = yes; then
14968 CONFIG_OBS="$CONFIG_OBS elfread.o"
14969
81ecdfbb 14970$as_echo "#define HAVE_ELF 1" >>confdefs.h
31d99776
DJ
14971
14972fi
14973CFLAGS=$OLD_CFLAGS
14974LDFLAGS=$OLD_LDFLAGS
14975LIBS=$OLD_LIBS
14976
121ce6e5
DJ
14977# Add any host-specific objects to GDB.
14978CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14979
3fc11d3e
JM
14980LIBGUI="../libgui/src/libgui.a"
14981GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14982
14983
7a292a7a 14984
3fc11d3e
JM
14985WIN32LDAPP=
14986
14987
14988
d91670b9 14989case "${host}" in
686a5eed 14990*-*-cygwin* | *-*-mingw* )
d91670b9
CV
14991 configdir="win"
14992 ;;
14993*)
14994 configdir="unix"
14995 ;;
14996esac
3fc11d3e
JM
14997
14998GDBTKLIBS=
14999if test "${enable_gdbtk}" = "yes"; then
15000
d1c3b63a
KS
15001 # Gdbtk must have an absolute path to srcdir in order to run
15002 # properly when not installed.
15003 here=`pwd`
15004 cd ${srcdir}
15005 GDBTK_SRC_DIR=`pwd`
15006 cd $here
15007
bec39cab 15008
5062cc19
KS
15009 #
15010 # Ok, lets find the tcl configuration
15011 # First, look for one uninstalled.
15012 # the alternative search directory is invoked by --with-tcl
15013 #
3fc11d3e 15014
5062cc19
KS
15015 if test x"${no_tcl}" = x ; then
15016 # we reset no_tcl in case something fails here
15017 no_tcl=true
bec39cab 15018
81ecdfbb
RW
15019# Check whether --with-tcl was given.
15020if test "${with_tcl+set}" = set; then :
15021 withval=$with_tcl; with_tclconfig=${withval}
15022fi
15023
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15025$as_echo_n "checking for Tcl configuration... " >&6; }
15026 if test "${ac_cv_c_tclconfig+set}" = set; then :
15027 $as_echo_n "(cached) " >&6
3fc11d3e 15028else
bec39cab 15029
3fc11d3e 15030
5062cc19
KS
15031 # First check to see if --with-tcl was specified.
15032 case "${host}" in
15033 *-*-cygwin*) platDir="win" ;;
15034 *) platDir="unix" ;;
15035 esac
15036 if test x"${with_tclconfig}" != x ; then
15037 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15038 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15039 else
81ecdfbb 15040 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
5062cc19
KS
15041 fi
15042 fi
15043
15044 # then check for a private Tcl installation
15045 if test x"${ac_cv_c_tclconfig}" = x ; then
15046 for i in \
15047 ../tcl \
15048 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15049 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15050 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15051 ../../tcl \
15052 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15053 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15054 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15055 ../../../tcl \
15056 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15057 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15058 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15059 if test -f "$i/$platDir/tclConfig.sh" ; then
15060 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15061 break
15062 fi
15063 done
15064 fi
15065
15066 # on Darwin, check in Framework installation locations
15067 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15068 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15069 `ls -d /Library/Frameworks 2>/dev/null` \
15070 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15071 `ls -d /System/Library/Frameworks 2>/dev/null` \
15072 ; do
15073 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15074 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15075 break
15076 fi
15077 done
15078 fi
15079
15080 # check in a few common install locations
15081 if test x"${ac_cv_c_tclconfig}" = x ; then
15082 for i in `ls -d ${libdir} 2>/dev/null` \
15083 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15084 `ls -d ${prefix}/lib 2>/dev/null` \
15085 `ls -d /usr/local/lib 2>/dev/null` \
15086 `ls -d /usr/contrib/lib 2>/dev/null` \
15087 `ls -d /usr/lib 2>/dev/null` \
15088 ; do
15089 if test -f "$i/tclConfig.sh" ; then
15090 ac_cv_c_tclconfig=`(cd $i; pwd)`
15091 break
15092 fi
15093 done
15094 fi
3fc11d3e 15095
5062cc19
KS
15096 # check in a few other private locations
15097 if test x"${ac_cv_c_tclconfig}" = x ; then
15098 for i in \
15099 ${srcdir}/../tcl \
15100 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15101 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15102 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15103 if test -f "$i/$platDir/tclConfig.sh" ; then
15104 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15105 break
15106 fi
15107 done
15108 fi
bec39cab 15109
3fc11d3e
JM
15110fi
15111
5062cc19
KS
15112
15113 if test x"${ac_cv_c_tclconfig}" = x ; then
15114 TCL_BIN_DIR="# no Tcl configs found"
81ecdfbb
RW
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15116$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
5062cc19
KS
15117 else
15118 no_tcl=
15119 TCL_BIN_DIR=${ac_cv_c_tclconfig}
81ecdfbb
RW
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15121$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
5062cc19
KS
15122 fi
15123 fi
3fc11d3e 15124
bec39cab 15125
85541719
DE
15126 # If $no_tk is nonempty, then we can't do Tk, and there is no
15127 # point to doing Tcl.
bec39cab 15128
5062cc19
KS
15129 #
15130 # Ok, lets find the tk configuration
15131 # First, look for one uninstalled.
15132 # the alternative search directory is invoked by --with-tk
15133 #
3fc11d3e 15134
5062cc19
KS
15135 if test x"${no_tk}" = x ; then
15136 # we reset no_tk in case something fails here
15137 no_tk=true
bec39cab 15138
81ecdfbb
RW
15139# Check whether --with-tk was given.
15140if test "${with_tk+set}" = set; then :
15141 withval=$with_tk; with_tkconfig=${withval}
15142fi
15143
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15145$as_echo_n "checking for Tk configuration... " >&6; }
15146 if test "${ac_cv_c_tkconfig+set}" = set; then :
15147 $as_echo_n "(cached) " >&6
bec39cab 15148else
3fc11d3e
JM
15149
15150
5062cc19
KS
15151 # First check to see if --with-tkconfig was specified.
15152 if test x"${with_tkconfig}" != x ; then
15153 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15154 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15155 else
81ecdfbb 15156 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
5062cc19
KS
15157 fi
15158 fi
3fc11d3e 15159
5062cc19
KS
15160 # then check for a private Tk library
15161 case "${host}" in
15162 *-*-cygwin*) platDir="win" ;;
15163 *) platDir="unix" ;;
15164 esac
15165 if test x"${ac_cv_c_tkconfig}" = x ; then
15166 for i in \
15167 ../tk \
15168 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15169 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15170 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15171 ../../tk \
15172 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15173 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15174 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15175 ../../../tk \
15176 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15177 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15178 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15179 if test -f "$i/$platDir/tkConfig.sh" ; then
15180 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15181 break
15182 fi
15183 done
15184 fi
15185
15186 # on Darwin, check in Framework installation locations
15187 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15188 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15189 `ls -d /Library/Frameworks 2>/dev/null` \
15190 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15191 `ls -d /System/Library/Frameworks 2>/dev/null` \
15192 ; do
15193 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15194 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15195 break
15196 fi
15197 done
15198 fi
15199
15200 # check in a few common install locations
15201 if test x"${ac_cv_c_tkconfig}" = x ; then
15202 for i in `ls -d ${libdir} 2>/dev/null` \
15203 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15204 `ls -d ${prefix}/lib 2>/dev/null` \
15205 `ls -d /usr/local/lib 2>/dev/null` \
15206 `ls -d /usr/contrib/lib 2>/dev/null` \
15207 `ls -d /usr/lib 2>/dev/null` \
15208 ; do
15209 if test -f "$i/tkConfig.sh" ; then
15210 ac_cv_c_tkconfig=`(cd $i; pwd)`
15211 break
15212 fi
15213 done
15214 fi
15215 # check in a few other private locations
15216 if test x"${ac_cv_c_tkconfig}" = x ; then
15217 for i in \
15218 ${srcdir}/../tk \
15219 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15220 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15221 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15222 if test -f "$i/$platDir/tkConfig.sh" ; then
15223 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15224 break
15225 fi
15226 done
15227 fi
3fc11d3e 15228
3fc11d3e
JM
15229fi
15230
15231
5062cc19
KS
15232 if test x"${ac_cv_c_tkconfig}" = x ; then
15233 TK_BIN_DIR="# no Tk configs found"
81ecdfbb
RW
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15235$as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
5062cc19
KS
15236 else
15237 no_tk=
15238 TK_BIN_DIR=${ac_cv_c_tkconfig}
81ecdfbb
RW
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15240$as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
5062cc19 15241 fi
3fc11d3e 15242 fi
dd2504ab 15243
dd2504ab 15244
85541719
DE
15245 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15246
81ecdfbb
RW
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15248$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
85541719
DE
15249
15250 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
81ecdfbb
RW
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15252$as_echo "loading" >&6; }
85541719
DE
15253 . ${TCL_BIN_DIR}/tclConfig.sh
15254 else
81ecdfbb
RW
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15256$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
85541719
DE
15257 fi
15258
15259 # eval is required to do the TCL_DBGX substitution
15260 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15261 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15262
15263 # If the TCL_BIN_DIR is the build directory (not the install directory),
15264 # then set the common variable name to the value of the build variables.
15265 # For example, the variable TCL_LIB_SPEC will be set to the value
15266 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15267 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15268 # installed and uninstalled version of Tcl.
15269 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15270 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15271 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15272 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15273 elif test "`uname -s`" = "Darwin"; then
15274 # If Tcl was built as a framework, attempt to use the libraries
15275 # from the framework at the given location so that linking works
15276 # against Tcl.framework installed in an arbitary location.
15277 case ${TCL_DEFS} in
15278 *TCL_FRAMEWORK*)
15279 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15280 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15281 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15282 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15283 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15284 break
15285 fi
15286 done
15287 fi
15288 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15289 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15290 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15291 fi
15292 ;;
15293 esac
15294 fi
15295
15296 # eval is required to do the TCL_DBGX substitution
15297 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15298 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15299 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15300 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316 # Check for in-tree tcl
15317 here=`pwd`
15318 cd ${srcdir}/..
15319 topdir=`pwd`
15320 cd ${here}
15321
15322 intree="no"
15323 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15324 intree="yes"
15325 fi
15326
15327 # Find Tcl private headers
15328 if test x"${intree}" = xno; then
15329
81ecdfbb
RW
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15331$as_echo_n "checking for Tcl private headers... " >&6; }
85541719
DE
15332 private_dir=""
15333 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15334 if test -f ${dir}/tclInt.h ; then
15335 private_dir=${dir}
15336 fi
15337
15338 if test x"${private_dir}" = x; then
81ecdfbb 15339 as_fn_error "could not find private Tcl headers" "$LINENO" 5
85541719
DE
15340 else
15341 TCL_PRIVATE_INCLUDE="-I${private_dir}"
81ecdfbb
RW
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15343$as_echo "${private_dir}" >&6; }
85541719
DE
15344 fi
15345
15346 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15347 TCL_LIBRARY="${TCL_LIB_SPEC}"
15348 TCL_DEPS=""
15349 else
15350 # If building tcl in the same src tree, private headers
15351 # are not needed, but we need to be sure to use the right
15352 # headers library
15353 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15354 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15355 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15356 fi
15357
15358
15359
15360
15361
81ecdfbb
RW
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15363$as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
dd2504ab 15364
5062cc19 15365 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
81ecdfbb
RW
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15367$as_echo "loading" >&6; }
5062cc19 15368 . ${TK_BIN_DIR}/tkConfig.sh
3fc11d3e 15369 else
81ecdfbb
RW
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15371$as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
3fc11d3e 15372 fi
bec39cab 15373
5062cc19
KS
15374 # eval is required to do the TK_DBGX substitution
15375 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15376 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15377
15378 # If the TK_BIN_DIR is the build directory (not the install directory),
15379 # then set the common variable name to the value of the build variables.
15380 # For example, the variable TK_LIB_SPEC will be set to the value
15381 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15382 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15383 # installed and uninstalled version of Tcl.
85541719 15384 if test -f "${TK_BIN_DIR}/Makefile" ; then
5062cc19
KS
15385 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15386 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15387 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15388 elif test "`uname -s`" = "Darwin"; then
15389 # If Tk was built as a framework, attempt to use the libraries
15390 # from the framework at the given location so that linking works
15391 # against Tk.framework installed in an arbitary location.
15392 case ${TK_DEFS} in
15393 *TK_FRAMEWORK*)
85541719 15394 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
5062cc19
KS
15395 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15396 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15397 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15398 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15399 break
15400 fi
15401 done
15402 fi
85541719 15403 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
5062cc19
KS
15404 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15405 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15406 fi
15407 ;;
15408 esac
3fc11d3e
JM
15409 fi
15410
5062cc19
KS
15411 # eval is required to do the TK_DBGX substitution
15412 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15413 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15414 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15415 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
3fc11d3e 15416
3fc11d3e
JM
15417
15418
bec39cab
AC
15419
15420
15421
15422
15423
15424
15425
3fc11d3e 15426
3fc11d3e 15427
bec39cab 15428
bec39cab 15429
85541719
DE
15430 # Check for in-tree Tk
15431 intree="no"
15432 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15433 intree="yes"
15434 fi
3fc11d3e 15435
85541719
DE
15436 # Find Tk private headers
15437 if test x"${intree}" = xno; then
3fc11d3e 15438
81ecdfbb
RW
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15440$as_echo_n "checking for Tk private headers... " >&6; }
5062cc19
KS
15441 private_dir=""
15442 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15443 if test -f ${dir}/tkInt.h; then
15444 private_dir=${dir}
3fc11d3e 15445 fi
bec39cab 15446
5062cc19 15447 if test x"${private_dir}" = x; then
81ecdfbb 15448 as_fn_error "could not find Tk private headers" "$LINENO" 5
3fc11d3e 15449 else
5062cc19 15450 TK_PRIVATE_INCLUDE="-I${private_dir}"
81ecdfbb
RW
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15452$as_echo "${private_dir}" >&6; }
3fc11d3e 15453 fi
3fc11d3e 15454
85541719
DE
15455 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15456 TK_LIBRARY=${TK_LIB_SPEC}
15457 TK_DEPS=""
15458 else
15459 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15460 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15461 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15462 fi
3fc11d3e
JM
15463
15464
3fc11d3e
JM
15465
15466
3fc11d3e 15467
85541719 15468 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e 15469
85541719
DE
15470 # Include some libraries that Tcl and Tk want.
15471 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15472 # Yes, the ordering seems wrong here. But it isn't.
15473 # TK_LIBS is the list of libraries that need to be linked
15474 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15475 # were in LIBS then any link tests after this point would
15476 # try to include things like `$(LIBGUI)', which wouldn't work.
15477 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5 15478
85541719
DE
15479 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15480 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15481 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15482 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15483 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15484 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15485 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e 15486
85541719
DE
15487 if test x$gdb_cv_os_cygwin = xyes; then
15488 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15489 WIN32LDAPP="-Wl,--subsystem,console"
15490 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
3fc11d3e 15491 fi
ffc6a242 15492
81ecdfbb 15493 subdirs="$subdirs gdbtk"
3ace7edb 15494
85541719 15495 fi
3fc11d3e
JM
15496fi
15497
15498
15499
15500
15501
15502
15503
15504
81ecdfbb
RW
15505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15506$as_echo_n "checking for X... " >&6; }
bec39cab 15507
c906108c 15508
81ecdfbb
RW
15509# Check whether --with-x was given.
15510if test "${with_x+set}" = set; then :
15511 withval=$with_x;
15512fi
c906108c
SS
15513
15514# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15515if test "x$with_x" = xno; then
15516 # The user explicitly disabled X.
15517 have_x=disabled
15518else
81ecdfbb
RW
15519 case $x_includes,$x_libraries in #(
15520 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15521 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15522 $as_echo_n "(cached) " >&6
c906108c
SS
15523else
15524 # One or both of the vars are not set, and there is no cached value.
bec39cab 15525ac_x_includes=no ac_x_libraries=no
81ecdfbb 15526rm -f -r conftest.dir
bec39cab
AC
15527if mkdir conftest.dir; then
15528 cd conftest.dir
bec39cab 15529 cat >Imakefile <<'_ACEOF'
81ecdfbb
RW
15530incroot:
15531 @echo incroot='${INCROOT}'
15532usrlibdir:
15533 @echo usrlibdir='${USRLIBDIR}'
15534libdir:
15535 @echo libdir='${LIBDIR}'
15536_ACEOF
15537 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c 15538 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
15539 for ac_var in incroot usrlibdir libdir; do
15540 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15541 done
c906108c 15542 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
81ecdfbb
RW
15543 for ac_extension in a so sl dylib la dll; do
15544 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15545 test -f "$ac_im_libdir/libX11.$ac_extension"; then
bec39cab 15546 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
15547 fi
15548 done
15549 # Screen out bogus values from the imake configuration. They are
15550 # bogus both because they are the default anyway, and because
15551 # using them would break gcc on systems where it needs fixed includes.
bec39cab 15552 case $ac_im_incroot in
81ecdfbb 15553 /usr/include) ac_x_includes= ;;
bec39cab 15554 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 15555 esac
bec39cab 15556 case $ac_im_usrlibdir in
81ecdfbb 15557 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
bec39cab 15558 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
15559 esac
15560 fi
15561 cd ..
81ecdfbb 15562 rm -f -r conftest.dir
c906108c
SS
15563fi
15564
bec39cab
AC
15565# Standard set of common directories for X headers.
15566# Check X11 before X11Rn because it is often a symlink to the current release.
15567ac_x_header_dirs='
15568/usr/X11/include
81ecdfbb 15569/usr/X11R7/include
bec39cab
AC
15570/usr/X11R6/include
15571/usr/X11R5/include
15572/usr/X11R4/include
15573
15574/usr/include/X11
81ecdfbb 15575/usr/include/X11R7
bec39cab
AC
15576/usr/include/X11R6
15577/usr/include/X11R5
15578/usr/include/X11R4
15579
15580/usr/local/X11/include
81ecdfbb 15581/usr/local/X11R7/include
bec39cab
AC
15582/usr/local/X11R6/include
15583/usr/local/X11R5/include
15584/usr/local/X11R4/include
15585
15586/usr/local/include/X11
81ecdfbb 15587/usr/local/include/X11R7
bec39cab
AC
15588/usr/local/include/X11R6
15589/usr/local/include/X11R5
15590/usr/local/include/X11R4
15591
15592/usr/X386/include
15593/usr/x386/include
15594/usr/XFree86/include/X11
15595
15596/usr/include
15597/usr/local/include
15598/usr/unsupported/include
15599/usr/athena/include
15600/usr/local/x11r5/include
15601/usr/lpp/Xamples/include
15602
15603/usr/openwin/include
15604/usr/openwin/share/include'
15605
15606if test "$ac_x_includes" = no; then
81ecdfbb 15607 # Guess where to find include files, by looking for Xlib.h.
c906108c 15608 # First, try using that file with no special directory specified.
81ecdfbb 15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 15610/* end confdefs.h. */
81ecdfbb 15611#include <X11/Xlib.h>
bec39cab 15612_ACEOF
81ecdfbb 15613if ac_fn_c_try_cpp "$LINENO"; then :
c906108c
SS
15614 # We can compile using X headers with no special include directory.
15615ac_x_includes=
15616else
bec39cab 15617 for ac_dir in $ac_x_header_dirs; do
81ecdfbb 15618 if test -r "$ac_dir/X11/Xlib.h"; then
bec39cab
AC
15619 ac_x_includes=$ac_dir
15620 break
15621 fi
15622done
c906108c 15623fi
bec39cab
AC
15624rm -f conftest.err conftest.$ac_ext
15625fi # $ac_x_includes = no
c906108c 15626
bec39cab 15627if test "$ac_x_libraries" = no; then
c906108c 15628 # Check for the libraries.
c906108c
SS
15629 # See if we find them without any special options.
15630 # Don't add to $LIBS permanently.
bec39cab 15631 ac_save_LIBS=$LIBS
81ecdfbb
RW
15632 LIBS="-lX11 $LIBS"
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bec39cab 15634/* end confdefs.h. */
81ecdfbb 15635#include <X11/Xlib.h>
bec39cab
AC
15636int
15637main ()
15638{
81ecdfbb 15639XrmInitialize ()
bec39cab
AC
15640 ;
15641 return 0;
15642}
15643_ACEOF
81ecdfbb 15644if ac_fn_c_try_link "$LINENO"; then :
bec39cab 15645 LIBS=$ac_save_LIBS
c906108c
SS
15646# We can link X programs with no special library path.
15647ac_x_libraries=
15648else
81ecdfbb
RW
15649 LIBS=$ac_save_LIBS
15650for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 15651do
bec39cab 15652 # Don't even attempt the hair of trying to link an X program!
81ecdfbb
RW
15653 for ac_extension in a so sl dylib la dll; do
15654 if test -r "$ac_dir/libX11.$ac_extension"; then
c906108c
SS
15655 ac_x_libraries=$ac_dir
15656 break 2
15657 fi
15658 done
15659done
15660fi
81ecdfbb
RW
15661rm -f core conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
bec39cab 15663fi # $ac_x_libraries = no
c906108c 15664
81ecdfbb
RW
15665case $ac_x_includes,$ac_x_libraries in #(
15666 no,* | *,no | *\'*)
15667 # Didn't find X, or a directory has "'" in its name.
15668 ac_cv_have_x="have_x=no";; #(
15669 *)
15670 # Record where we found X for the cache.
15671 ac_cv_have_x="have_x=yes\
15672 ac_x_includes='$ac_x_includes'\
15673 ac_x_libraries='$ac_x_libraries'"
15674esac
c906108c 15675fi
81ecdfbb
RW
15676;; #(
15677 *) have_x=yes;;
15678 esac
c906108c
SS
15679 eval "$ac_cv_have_x"
15680fi # $with_x != no
15681
15682if test "$have_x" != yes; then
81ecdfbb
RW
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15684$as_echo "$have_x" >&6; }
c906108c
SS
15685 no_x=yes
15686else
15687 # If each of the values was on the command line, it overrides each guess.
15688 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15689 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15690 # Update the cache value to reflect the command line values.
81ecdfbb
RW
15691 ac_cv_have_x="have_x=yes\
15692 ac_x_includes='$x_includes'\
15693 ac_x_libraries='$x_libraries'"
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15695$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
c906108c
SS
15696fi
15697
15698
bec39cab 15699# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 15700# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
15701# This code just checks for a few cases where we'd like to ignore those
15702# definitions, even when they're present in the '.mt' file. These cases
15703# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 15704# not part of the source tree.
7a292a7a 15705#
81ecdfbb
RW
15706# Check whether --enable-sim was given.
15707if test "${enable_sim+set}" = set; then :
15708 enableval=$enable_sim; echo "enable_sim = $enable_sim";
7a292a7a
SS
15709 echo "enableval = ${enableval}";
15710 case "${enableval}" in
15711 yes) ignore_sim=false ;;
15712 no) ignore_sim=true ;;
15713 *) ignore_sim=false ;;
15714 esac
15715else
15716 ignore_sim=false
81ecdfbb
RW
15717fi
15718
7a292a7a
SS
15719
15720if test ! -d "${srcdir}/../sim"; then
15721 ignore_sim=true
15722fi
15723
9b624dbe
UW
15724SIM=
15725SIM_OBS=
15726if test "${ignore_sim}" = "false"; then
15727 if test x"${gdb_sim}" != x ; then
15728 SIM="${gdb_sim}"
15729 SIM_OBS="remote-sim.o"
60ca704f 15730
81ecdfbb 15731$as_echo "#define WITH_SIM 1" >>confdefs.h
7a292a7a 15732
9b624dbe 15733 fi
7a292a7a
SS
15734fi
15735
15736
15737
c906108c
SS
15738
15739
15740
15741
15742
15743
dfcd3bfb 15744
e56ac5c3
AC
15745
15746
b3a90332
AC
15747
15748
c35f4ffc 15749# List of host floatformats.
bec39cab
AC
15750
15751cat >>confdefs.h <<_ACEOF
c35f4ffc 15752#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 15753_ACEOF
c35f4ffc 15754
bec39cab
AC
15755
15756cat >>confdefs.h <<_ACEOF
c35f4ffc 15757#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
15758_ACEOF
15759
c35f4ffc 15760
bec39cab 15761cat >>confdefs.h <<_ACEOF
c35f4ffc 15762#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 15763_ACEOF
c35f4ffc
AC
15764
15765
c906108c
SS
15766# target_subdir is used by the testsuite to find the target libraries.
15767target_subdir=
15768if test "${host}" != "${target}"; then
15769 target_subdir="${target_alias}/"
15770fi
15771
15772
15773frags=
771b4502 15774if test "${gdb_native}" = "yes"; then
0dad8a66
MK
15775 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15776 if test ! -f ${host_makefile_frag}; then
81ecdfbb 15777 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
0dad8a66
MK
15778 fi
15779 frags="$frags $host_makefile_frag"
15780else
15781 host_makefile_frag=/dev/null
c906108c 15782fi
c906108c 15783
c906108c
SS
15784
15785
15786
771b4502 15787if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
15788# We pick this up from the host configuration file (.mh) because we
15789# do not have a native configuration Makefile fragment.
c906108c
SS
15790nativefile=`sed -n '
15791s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15792' ${host_makefile_frag}`
c906108c
SS
15793fi
15794
15795
b00a8037 15796if test x"${gdb_osabi}" != x ; then
bec39cab
AC
15797
15798cat >>confdefs.h <<_ACEOF
b00a8037 15799#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 15800_ACEOF
b00a8037
DJ
15801
15802fi
15803
8dcde887 15804# Enable multi-ice-gdb-server.
81ecdfbb
RW
15805# Check whether --enable-multi-ice was given.
15806if test "${enable_multi_ice+set}" = set; then :
15807 enableval=$enable_multi_ice; case $enableval in
8dcde887
MK
15808 yes | no)
15809 ;;
81ecdfbb 15810 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
8dcde887 15811 esac
81ecdfbb 15812fi
b4e70030 15813
81ecdfbb
RW
15814if test "x$enable_multi_ice" = xyes; then
15815 subdirs="$subdirs multi-ice"
3ace7edb 15816
a85f51e7
DJ
15817fi
15818
a13e2c95
UW
15819# We only build gdbserver automatically in a native configuration.
15820if test "$gdb_native" = "yes"; then
81ecdfbb
RW
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15822$as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
8dcde887 15823 if test "x$build_gdbserver" = xyes; then
81ecdfbb
RW
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15825$as_echo "yes" >&6; }
15826 subdirs="$subdirs gdbserver"
3ace7edb 15827
8dcde887 15828 else
81ecdfbb
RW
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15830$as_echo "no" >&6; }
8dcde887
MK
15831 fi
15832fi
15833
db985757 15834# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 15835# to an empty version.
c906108c
SS
15836
15837files=
15838links=
5a2402b8 15839
c906108c
SS
15840rm -f nm.h
15841if test "${nativefile}" != ""; then
0f475e27
AC
15842 case "${nativefile}" in
15843 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15844 * ) GDB_NM_FILE="${nativefile}"
15845 esac
5a2402b8
AC
15846 files="${files} ${GDB_NM_FILE}"
15847 links="${links} nm.h"
60ca704f
SE
15848
15849cat >>confdefs.h <<_ACEOF
b78960be 15850#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 15851_ACEOF
5a2402b8 15852
c906108c 15853fi
5a2402b8
AC
15854
15855
bec39cab
AC
15856ac_sources="$files"
15857ac_dests="$links"
15858while test -n "$ac_sources"; do
15859 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15860 set $ac_sources; ac_source=$1; shift; ac_sources=$*
15861 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15862done
81ecdfbb 15863ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
15864
15865
c906108c
SS
15866
15867
c906108c 15868
81ecdfbb 15869$as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
bec39cab 15870
bec39cab 15871
81ecdfbb
RW
15872ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
15873
15874ac_config_commands="$ac_config_commands default"
89a34d1b 15875
bec39cab
AC
15876cat >confcache <<\_ACEOF
15877# This file is a shell script that caches the results of configure
15878# tests run on this system so they can be shared between configure
15879# scripts and configure runs, see configure's option --config-cache.
15880# It is not useful on other systems. If it contains results you don't
15881# want to keep, you may remove or edit it.
15882#
15883# config.status only pays attention to the cache file if you give it
15884# the --recheck option to rerun configure.
15885#
15886# `ac_cv_env_foo' variables (set or unset) will be overridden when
15887# loading this file, other *unset* `ac_cv_foo' will be assigned the
15888# following values.
15889
15890_ACEOF
15891
15892# The following way of writing the cache mishandles newlines in values,
15893# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15894# So, we kill variables containing newlines.
bec39cab
AC
15895# Ultrix sh set writes to stderr and can't be redirected directly,
15896# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15897(
15898 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15899 eval ac_val=\$$ac_var
15900 case $ac_val in #(
15901 *${as_nl}*)
15902 case $ac_var in #(
15903 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15904$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15905 esac
15906 case $ac_var in #(
15907 _ | IFS | as_nl) ;; #(
15908 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15909 *) { eval $ac_var=; unset $ac_var;} ;;
15910 esac ;;
15911 esac
15912 done
15913
bec39cab 15914 (set) 2>&1 |
81ecdfbb
RW
15915 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15916 *${as_nl}ac_space=\ *)
15917 # `set' does not quote correctly, so add quotes: double-quote
15918 # substitution turns \\\\ into \\, and sed turns \\ into \.
bec39cab
AC
15919 sed -n \
15920 "s/'/'\\\\''/g;
15921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15922 ;; #(
bec39cab
AC
15923 *)
15924 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bec39cab 15926 ;;
81ecdfbb
RW
15927 esac |
15928 sort
15929) |
bec39cab 15930 sed '
81ecdfbb 15931 /^ac_cv_env_/b end
bec39cab 15932 t clear
81ecdfbb 15933 :clear
bec39cab
AC
15934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15935 t end
81ecdfbb
RW
15936 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15937 :end' >>confcache
15938if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15939 if test -w "$cache_file"; then
15940 test "x$cache_file" != "x/dev/null" &&
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15942$as_echo "$as_me: updating cache $cache_file" >&6;}
bec39cab
AC
15943 cat confcache >$cache_file
15944 else
81ecdfbb
RW
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15946$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
bec39cab
AC
15947 fi
15948fi
15949rm -f confcache
15950
15951test "x$prefix" = xNONE && prefix=$ac_default_prefix
15952# Let make expand exec_prefix.
15953test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15954
bec39cab
AC
15955DEFS=-DHAVE_CONFIG_H
15956
15957ac_libobjs=
15958ac_ltlibobjs=
15959for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15960 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15961 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15962 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15963 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15964 # will be set to the directory where LIBOBJS objects are built.
15965 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15966 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
bec39cab
AC
15967done
15968LIBOBJS=$ac_libobjs
15969
15970LTLIBOBJS=$ac_ltlibobjs
15971
15972
85981d60 15973if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
15974 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15975Usually this means the macro was only invoked conditionally." "$LINENO" 5
85981d60 15976fi
a417dc56 15977if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
81ecdfbb
RW
15978 as_fn_error "conditional \"GMAKE\" was never defined.
15979Usually this means the macro was only invoked conditionally." "$LINENO" 5
a417dc56 15980fi
783e057b 15981if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
81ecdfbb
RW
15982 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15983Usually this means the macro was only invoked conditionally." "$LINENO" 5
783e057b
DJ
15984fi
15985
15986 gl_libobjs=
15987 gl_ltlibobjs=
15988 if test -n "$gl_LIBOBJS"; then
15989 # Remove the extension.
15990 sed_drop_objext='s/\.o$//;s/\.obj$//'
f434ba03 15991 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
783e057b
DJ
15992 gl_libobjs="$gl_libobjs $i.$ac_objext"
15993 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15994 done
15995 fi
15996 gl_LIBOBJS=$gl_libobjs
15997
15998 gl_LTLIBOBJS=$gl_ltlibobjs
15999
16000
16001
16002 gltests_libobjs=
16003 gltests_ltlibobjs=
16004 if test -n "$gltests_LIBOBJS"; then
16005 # Remove the extension.
16006 sed_drop_objext='s/\.o$//;s/\.obj$//'
f434ba03 16007 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
783e057b
DJ
16008 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16009 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16010 done
16011 fi
16012 gltests_LIBOBJS=$gltests_libobjs
16013
16014 gltests_LTLIBOBJS=$gltests_ltlibobjs
16015
16016
e28b3332 16017if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
16018 as_fn_error "conditional \"AMDEP\" was never defined.
16019Usually this means the macro was only invoked conditionally." "$LINENO" 5
e28b3332
DJ
16020fi
16021if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
16022 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16023Usually this means the macro was only invoked conditionally." "$LINENO" 5
16024fi
16025 if test -n "$EXEEXT"; then
16026 am__EXEEXT_TRUE=
16027 am__EXEEXT_FALSE='#'
16028else
16029 am__EXEEXT_TRUE='#'
16030 am__EXEEXT_FALSE=
e28b3332 16031fi
bec39cab 16032
81ecdfbb
RW
16033
16034
bec39cab 16035: ${CONFIG_STATUS=./config.status}
81ecdfbb 16036ac_write_fail=0
bec39cab
AC
16037ac_clean_files_save=$ac_clean_files
16038ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
16039{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16040$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16041as_write_fail=0
16042cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
bec39cab
AC
16043#! $SHELL
16044# Generated by $as_me.
16045# Run this file to recreate the current configuration.
16046# Compiler output produced by configure, useful for debugging
16047# configure, is in config.log if it exists.
16048
16049debug=false
16050ac_cs_recheck=false
16051ac_cs_silent=false
bec39cab 16052
81ecdfbb
RW
16053SHELL=\${CONFIG_SHELL-$SHELL}
16054export SHELL
16055_ASEOF
16056cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16057## -------------------- ##
16058## M4sh Initialization. ##
16059## -------------------- ##
16060
16061# Be more Bourne compatible
16062DUALCASE=1; export DUALCASE # for MKS sh
16063if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
bec39cab
AC
16064 emulate sh
16065 NULLCMD=:
81ecdfbb 16066 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bec39cab
AC
16067 # is contrary to our usage. Disable this feature.
16068 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
16069 setopt NO_GLOB_SUBST
16070else
16071 case `(set -o) 2>/dev/null` in #(
16072 *posix*) :
16073 set -o posix ;; #(
16074 *) :
16075 ;;
16076esac
bec39cab 16077fi
bec39cab 16078
81ecdfbb
RW
16079
16080as_nl='
16081'
16082export as_nl
16083# Printing a long string crashes Solaris 7 /usr/bin/printf.
16084as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16085as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16086as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16087# Prefer a ksh shell builtin over an external printf program on Solaris,
16088# but without wasting forks for bash or zsh.
16089if test -z "$BASH_VERSION$ZSH_VERSION" \
16090 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16091 as_echo='print -r --'
16092 as_echo_n='print -rn --'
16093elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16094 as_echo='printf %s\n'
16095 as_echo_n='printf %s'
16096else
16097 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16098 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16099 as_echo_n='/usr/ucb/echo -n'
16100 else
16101 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16102 as_echo_n_body='eval
16103 arg=$1;
16104 case $arg in #(
16105 *"$as_nl"*)
16106 expr "X$arg" : "X\\(.*\\)$as_nl";
16107 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16108 esac;
16109 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16110 '
16111 export as_echo_n_body
16112 as_echo_n='sh -c $as_echo_n_body as_echo'
16113 fi
16114 export as_echo_body
16115 as_echo='sh -c $as_echo_body as_echo'
16116fi
16117
16118# The user is always right.
16119if test "${PATH_SEPARATOR+set}" != set; then
16120 PATH_SEPARATOR=:
16121 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16122 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16123 PATH_SEPARATOR=';'
16124 }
bec39cab
AC
16125fi
16126
16127
81ecdfbb
RW
16128# IFS
16129# We need space, tab and new line, in precisely that order. Quoting is
16130# there to prevent editors from complaining about space-tab.
16131# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16132# splitting by setting IFS to empty value.)
16133IFS=" "" $as_nl"
16134
16135# Find who we are. Look in the path if we contain no directory separator.
16136case $0 in #((
16137 *[\\/]* ) as_myself=$0 ;;
16138 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16139for as_dir in $PATH
16140do
16141 IFS=$as_save_IFS
16142 test -z "$as_dir" && as_dir=.
16143 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16144 done
16145IFS=$as_save_IFS
16146
16147 ;;
16148esac
16149# We did not find ourselves, most probably we were run as `sh COMMAND'
16150# in which case we are not to be found in the path.
16151if test "x$as_myself" = x; then
16152 as_myself=$0
16153fi
16154if test ! -f "$as_myself"; then
16155 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16156 exit 1
16157fi
16158
16159# Unset variables that we do not need and which cause bugs (e.g. in
16160# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16161# suppresses any "Segmentation fault" message there. '((' could
16162# trigger a bug in pdksh 5.2.14.
16163for as_var in BASH_ENV ENV MAIL MAILPATH
16164do eval test x\${$as_var+set} = xset \
16165 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16166done
bec39cab
AC
16167PS1='$ '
16168PS2='> '
16169PS4='+ '
16170
16171# NLS nuisances.
81ecdfbb
RW
16172LC_ALL=C
16173export LC_ALL
16174LANGUAGE=C
16175export LANGUAGE
16176
16177# CDPATH.
16178(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16179
16180
16181# as_fn_error ERROR [LINENO LOG_FD]
16182# ---------------------------------
16183# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16184# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16185# script with status $?, using 1 if that was 0.
16186as_fn_error ()
16187{
16188 as_status=$?; test $as_status -eq 0 && as_status=1
16189 if test "$3"; then
16190 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16191 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16192 fi
16193 $as_echo "$as_me: error: $1" >&2
16194 as_fn_exit $as_status
16195} # as_fn_error
16196
16197
16198# as_fn_set_status STATUS
16199# -----------------------
16200# Set $? to STATUS, without forking.
16201as_fn_set_status ()
16202{
16203 return $1
16204} # as_fn_set_status
16205
16206# as_fn_exit STATUS
16207# -----------------
16208# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16209as_fn_exit ()
16210{
16211 set +e
16212 as_fn_set_status $1
16213 exit $1
16214} # as_fn_exit
16215
16216# as_fn_unset VAR
16217# ---------------
16218# Portably unset VAR.
16219as_fn_unset ()
16220{
16221 { eval $1=; unset $1;}
16222}
16223as_unset=as_fn_unset
16224# as_fn_append VAR VALUE
16225# ----------------------
16226# Append the text in VALUE to the end of the definition contained in VAR. Take
16227# advantage of any shell optimizations that allow amortized linear growth over
16228# repeated appends, instead of the typical quadratic growth present in naive
16229# implementations.
16230if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16231 eval 'as_fn_append ()
16232 {
16233 eval $1+=\$2
16234 }'
16235else
16236 as_fn_append ()
16237 {
16238 eval $1=\$$1\$2
16239 }
16240fi # as_fn_append
16241
16242# as_fn_arith ARG...
16243# ------------------
16244# Perform arithmetic evaluation on the ARGs, and store the result in the
16245# global $as_val. Take advantage of shells that can avoid forks. The arguments
16246# must be portable across $(()) and expr.
16247if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16248 eval 'as_fn_arith ()
16249 {
16250 as_val=$(( $* ))
16251 }'
16252else
16253 as_fn_arith ()
16254 {
16255 as_val=`expr "$@" || test $? -eq 1`
16256 }
16257fi # as_fn_arith
bec39cab 16258
81ecdfbb
RW
16259
16260if expr a : '\(a\)' >/dev/null 2>&1 &&
16261 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bec39cab
AC
16262 as_expr=expr
16263else
16264 as_expr=false
16265fi
16266
81ecdfbb 16267if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bec39cab
AC
16268 as_basename=basename
16269else
16270 as_basename=false
16271fi
16272
81ecdfbb
RW
16273if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16274 as_dirname=dirname
16275else
16276 as_dirname=false
16277fi
bec39cab 16278
81ecdfbb 16279as_me=`$as_basename -- "$0" ||
bec39cab
AC
16280$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16281 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
16282 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16283$as_echo X/"$0" |
16284 sed '/^.*\/\([^/][^/]*\)\/*$/{
16285 s//\1/
16286 q
16287 }
16288 /^X\/\(\/\/\)$/{
16289 s//\1/
16290 q
16291 }
16292 /^X\/\(\/\).*/{
16293 s//\1/
16294 q
16295 }
16296 s/.*/./; q'`
b4e70030 16297
b4e70030
JB
16298# Avoid depending upon Character Ranges.
16299as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16300as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16301as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16302as_cr_digits='0123456789'
16303as_cr_alnum=$as_cr_Letters$as_cr_digits
16304
81ecdfbb
RW
16305ECHO_C= ECHO_N= ECHO_T=
16306case `echo -n x` in #(((((
16307-n*)
16308 case `echo 'xy\c'` in
16309 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16310 xy) ECHO_C='\c';;
16311 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16312 ECHO_T=' ';;
16313 esac;;
16314*)
16315 ECHO_N='-n';;
bec39cab
AC
16316esac
16317
81ecdfbb
RW
16318rm -f conf$$ conf$$.exe conf$$.file
16319if test -d conf$$.dir; then
16320 rm -f conf$$.dir/conf$$.file
bec39cab 16321else
81ecdfbb
RW
16322 rm -f conf$$.dir
16323 mkdir conf$$.dir 2>/dev/null
bec39cab 16324fi
81ecdfbb
RW
16325if (echo >conf$$.file) 2>/dev/null; then
16326 if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030 16327 as_ln_s='ln -s'
81ecdfbb
RW
16328 # ... but there are two gotchas:
16329 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16330 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16331 # In both cases, we have to default to `cp -p'.
16332 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16333 as_ln_s='cp -p'
16334 elif ln conf$$.file conf$$ 2>/dev/null; then
16335 as_ln_s=ln
16336 else
16337 as_ln_s='cp -p'
b4e70030 16338 fi
bec39cab
AC
16339else
16340 as_ln_s='cp -p'
16341fi
81ecdfbb
RW
16342rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16343rmdir conf$$.dir 2>/dev/null
16344
16345
16346# as_fn_mkdir_p
16347# -------------
16348# Create "$as_dir" as a directory, including parents if necessary.
16349as_fn_mkdir_p ()
16350{
16351
16352 case $as_dir in #(
16353 -*) as_dir=./$as_dir;;
16354 esac
16355 test -d "$as_dir" || eval $as_mkdir_p || {
16356 as_dirs=
16357 while :; do
16358 case $as_dir in #(
16359 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16360 *) as_qdir=$as_dir;;
16361 esac
16362 as_dirs="'$as_qdir' $as_dirs"
16363 as_dir=`$as_dirname -- "$as_dir" ||
16364$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16365 X"$as_dir" : 'X\(//\)[^/]' \| \
16366 X"$as_dir" : 'X\(//\)$' \| \
16367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16368$as_echo X"$as_dir" |
16369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16370 s//\1/
16371 q
16372 }
16373 /^X\(\/\/\)[^/].*/{
16374 s//\1/
16375 q
16376 }
16377 /^X\(\/\/\)$/{
16378 s//\1/
16379 q
16380 }
16381 /^X\(\/\).*/{
16382 s//\1/
16383 q
16384 }
16385 s/.*/./; q'`
16386 test -d "$as_dir" && break
16387 done
16388 test -z "$as_dirs" || eval "mkdir $as_dirs"
16389 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16390
bec39cab 16391
81ecdfbb 16392} # as_fn_mkdir_p
bec39cab 16393if mkdir -p . 2>/dev/null; then
81ecdfbb 16394 as_mkdir_p='mkdir -p "$as_dir"'
bec39cab
AC
16395else
16396 test -d ./-p && rmdir ./-p
16397 as_mkdir_p=false
16398fi
16399
81ecdfbb
RW
16400if test -x / >/dev/null 2>&1; then
16401 as_test_x='test -x'
16402else
16403 if ls -dL / >/dev/null 2>&1; then
16404 as_ls_L_option=L
16405 else
16406 as_ls_L_option=
16407 fi
16408 as_test_x='
16409 eval sh -c '\''
16410 if test -d "$1"; then
16411 test -d "$1/.";
16412 else
16413 case $1 in #(
16414 -*)set "./$1";;
16415 esac;
16416 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16417 ???[sx]*):;;*)false;;esac;fi
16418 '\'' sh
16419 '
16420fi
16421as_executable_p=$as_test_x
bec39cab
AC
16422
16423# Sed expression to map a string onto a valid CPP name.
16424as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16425
16426# Sed expression to map a string onto a valid variable name.
16427as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16428
16429
bec39cab 16430exec 6>&1
81ecdfbb
RW
16431## ----------------------------------- ##
16432## Main body of $CONFIG_STATUS script. ##
16433## ----------------------------------- ##
16434_ASEOF
16435test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16436
16437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16438# Save the log message, to keep $0 and so on meaningful, and to
bec39cab 16439# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
16440# values after options handling.
16441ac_log="
bec39cab 16442This file was extended by $as_me, which was
81ecdfbb 16443generated by GNU Autoconf 2.64. Invocation command line was
bec39cab
AC
16444
16445 CONFIG_FILES = $CONFIG_FILES
16446 CONFIG_HEADERS = $CONFIG_HEADERS
16447 CONFIG_LINKS = $CONFIG_LINKS
16448 CONFIG_COMMANDS = $CONFIG_COMMANDS
16449 $ $0 $@
16450
81ecdfbb
RW
16451on `(hostname || uname -n) 2>/dev/null | sed 1q`
16452"
16453
bec39cab
AC
16454_ACEOF
16455
81ecdfbb
RW
16456case $ac_config_files in *"
16457"*) set x $ac_config_files; shift; ac_config_files=$*;;
16458esac
234b45d4 16459
81ecdfbb
RW
16460case $ac_config_headers in *"
16461"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16462esac
b4e70030 16463
b4e70030 16464
81ecdfbb
RW
16465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16466# Files that config.status was made for.
16467config_files="$ac_config_files"
16468config_headers="$ac_config_headers"
16469config_links="$ac_config_links"
16470config_commands="$ac_config_commands"
234b45d4 16471
81ecdfbb 16472_ACEOF
b4e70030 16473
81ecdfbb 16474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab 16475ac_cs_usage="\
81ecdfbb
RW
16476\`$as_me' instantiates files and other configuration actions
16477from templates according to the current configuration. Unless the files
16478and actions are specified as TAGs, all are instantiated by default.
234b45d4 16479
81ecdfbb 16480Usage: $0 [OPTION]... [TAG]...
234b45d4 16481
bec39cab 16482 -h, --help print this help, then exit
81ecdfbb
RW
16483 -V, --version print version number and configuration settings, then exit
16484 -q, --quiet, --silent
16485 do not print progress messages
bec39cab
AC
16486 -d, --debug don't remove temporary files
16487 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
16488 --file=FILE[:TEMPLATE]
16489 instantiate the configuration file FILE
16490 --header=FILE[:TEMPLATE]
16491 instantiate the configuration header FILE
234b45d4 16492
bec39cab
AC
16493Configuration files:
16494$config_files
234b45d4 16495
bec39cab
AC
16496Configuration headers:
16497$config_headers
234b45d4 16498
bec39cab
AC
16499Configuration links:
16500$config_links
234b45d4 16501
bec39cab
AC
16502Configuration commands:
16503$config_commands
16504
81ecdfbb 16505Report bugs to the package provider."
b4e70030 16506
81ecdfbb
RW
16507_ACEOF
16508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab
AC
16509ac_cs_version="\\
16510config.status
81ecdfbb
RW
16511configured by $0, generated by GNU Autoconf 2.64,
16512 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 16513
81ecdfbb 16514Copyright (C) 2009 Free Software Foundation, Inc.
bec39cab
AC
16515This config.status script is free software; the Free Software Foundation
16516gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
16517
16518ac_pwd='$ac_pwd'
16519srcdir='$srcdir'
16520INSTALL='$INSTALL'
16521MKDIR_P='$MKDIR_P'
16522AWK='$AWK'
16523test -n "\$AWK" || AWK=awk
bec39cab
AC
16524_ACEOF
16525
81ecdfbb
RW
16526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16527# The default lists apply if the user does not specify any file.
bec39cab
AC
16528ac_need_defaults=:
16529while test $# != 0
16530do
16531 case $1 in
16532 --*=*)
81ecdfbb
RW
16533 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16534 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
bec39cab 16535 ac_shift=:
c906108c 16536 ;;
81ecdfbb 16537 *)
bec39cab
AC
16538 ac_option=$1
16539 ac_optarg=$2
16540 ac_shift=shift
c906108c 16541 ;;
bec39cab 16542 esac
c906108c 16543
bec39cab
AC
16544 case $ac_option in
16545 # Handling of the options.
bec39cab
AC
16546 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16547 ac_cs_recheck=: ;;
81ecdfbb
RW
16548 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16549 $as_echo "$ac_cs_version"; exit ;;
16550 --debug | --debu | --deb | --de | --d | -d )
bec39cab
AC
16551 debug=: ;;
16552 --file | --fil | --fi | --f )
16553 $ac_shift
81ecdfbb
RW
16554 case $ac_optarg in
16555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16556 esac
16557 as_fn_append CONFIG_FILES " '$ac_optarg'"
bec39cab
AC
16558 ac_need_defaults=false;;
16559 --header | --heade | --head | --hea )
16560 $ac_shift
81ecdfbb
RW
16561 case $ac_optarg in
16562 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16563 esac
16564 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
bec39cab 16565 ac_need_defaults=false;;
81ecdfbb
RW
16566 --he | --h)
16567 # Conflict between --help and --header
16568 as_fn_error "ambiguous option: \`$1'
16569Try \`$0 --help' for more information.";;
16570 --help | --hel | -h )
16571 $as_echo "$ac_cs_usage"; exit ;;
bec39cab
AC
16572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16573 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16574 ac_cs_silent=: ;;
c906108c 16575
bec39cab 16576 # This is an error.
81ecdfbb
RW
16577 -*) as_fn_error "unrecognized option: \`$1'
16578Try \`$0 --help' for more information." ;;
c906108c 16579
81ecdfbb
RW
16580 *) as_fn_append ac_config_targets " $1"
16581 ac_need_defaults=false ;;
c906108c 16582
bec39cab
AC
16583 esac
16584 shift
16585done
c906108c 16586
bec39cab 16587ac_configure_extra_args=
c906108c 16588
bec39cab
AC
16589if $ac_cs_silent; then
16590 exec 6>/dev/null
16591 ac_configure_extra_args="$ac_configure_extra_args --silent"
16592fi
c906108c 16593
bec39cab 16594_ACEOF
81ecdfbb 16595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
bec39cab 16596if \$ac_cs_recheck; then
81ecdfbb
RW
16597 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16598 shift
16599 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16600 CONFIG_SHELL='$SHELL'
16601 export CONFIG_SHELL
16602 exec "\$@"
bec39cab
AC
16603fi
16604
16605_ACEOF
81ecdfbb
RW
16606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16607exec 5>>config.log
16608{
16609 echo
16610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16611## Running $as_me. ##
16612_ASBOX
16613 $as_echo "$ac_log"
16614} >&5
bec39cab 16615
81ecdfbb
RW
16616_ACEOF
16617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c906108c 16618#
81ecdfbb 16619# INIT-COMMANDS
c906108c 16620#
a417dc56 16621ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
e28b3332 16622AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 16623
bec39cab
AC
16624_ACEOF
16625
81ecdfbb 16626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4e8d927d 16627
81ecdfbb 16628# Handling of arguments.
bec39cab 16629for ac_config_target in $ac_config_targets
c906108c 16630do
81ecdfbb
RW
16631 case $ac_config_target in
16632 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16633 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16634 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16635 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16636 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16637 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16638 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16639 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16640
16641 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
16642 esac
16643done
16644
81ecdfbb 16645
bec39cab
AC
16646# If the user did not use the arguments to specify the items to instantiate,
16647# then the envvar interface is used. Set only those that are not.
16648# We use the long form for the default assignment because of an extremely
16649# bizarre bug on SunOS 4.1.3.
16650if $ac_need_defaults; then
16651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16653 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16655fi
16656
b4e70030 16657# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 16658# simply because there is no reason against having it here, and in addition,
b4e70030 16659# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
16660# Hook for its removal unless debugging.
16661# Note that there is a small window in which the directory will not be cleaned:
16662# after its creation but before its name has been assigned to `$tmp'.
b4e70030
JB
16663$debug ||
16664{
81ecdfbb
RW
16665 tmp=
16666 trap 'exit_status=$?
16667 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16668' 0
16669 trap 'as_fn_exit 1' 1 2 13 15
16670}
16671# Create a (secure) tmp directory for tmp files.
16672
16673{
16674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16675 test -n "$tmp" && test -d "$tmp"
16676} ||
16677{
16678 tmp=./conf$$-$RANDOM
16679 (umask 077 && mkdir "$tmp")
16680} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16681
16682# Set up the scripts for CONFIG_FILES section.
16683# No need to generate them if there are no CONFIG_FILES.
16684# This happens for instance with `./config.status config.h'.
16685if test -n "$CONFIG_FILES"; then
16686
16687if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16688 ac_cs_awk_getline=:
16689 ac_cs_awk_pipe_init=
16690 ac_cs_awk_read_file='
16691 while ((getline aline < (F[key])) > 0)
16692 print(aline)
16693 close(F[key])'
16694 ac_cs_awk_pipe_fini=
16695else
16696 ac_cs_awk_getline=false
16697 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16698 ac_cs_awk_read_file='
16699 print "|#_!!_#|"
16700 print "cat " F[key] " &&"
16701 '$ac_cs_awk_pipe_init
16702 # The final `:' finishes the AND list.
16703 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16704fi
16705ac_cr=`echo X | tr X '\015'`
16706# On cygwin, bash can eat \r inside `` if the user requested igncr.
16707# But we know of no other shell where ac_cr would be empty at this
16708# point, so we can use a bashism as a fallback.
16709if test "x$ac_cr" = x; then
16710 eval ac_cr=\$\'\\r\'
16711fi
16712ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16713if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16714 ac_cs_awk_cr='\r'
16715else
16716 ac_cs_awk_cr=$ac_cr
16717fi
16718
16719echo 'BEGIN {' >"$tmp/subs1.awk" &&
16720_ACEOF
16721
16722# Create commands to substitute file output variables.
16723{
16724 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16725 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16726 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16727 echo "_ACAWK" &&
16728 echo "_ACEOF"
16729} >conf$$files.sh &&
16730. ./conf$$files.sh ||
16731 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16732rm -f conf$$files.sh
16733
16734{
16735 echo "cat >conf$$subs.awk <<_ACEOF" &&
16736 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16737 echo "_ACEOF"
16738} >conf$$subs.sh ||
16739 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16740ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16741ac_delim='%!_!# '
16742for ac_last_try in false false false false false :; do
16743 . ./conf$$subs.sh ||
16744 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16745
16746 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16747 if test $ac_delim_n = $ac_delim_num; then
16748 break
16749 elif $ac_last_try; then
16750 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16751 else
16752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16753 fi
16754done
16755rm -f conf$$subs.sh
16756
16757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16759_ACEOF
16760sed -n '
16761h
16762s/^/S["/; s/!.*/"]=/
16763p
16764g
16765s/^[^!]*!//
16766:repl
16767t repl
16768s/'"$ac_delim"'$//
16769t delim
16770:nl
16771h
16772s/\(.\{148\}\).*/\1/
16773t more1
16774s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16775p
16776n
16777b repl
16778:more1
16779s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16780p
16781g
16782s/.\{148\}//
16783t nl
16784:delim
16785h
16786s/\(.\{148\}\).*/\1/
16787t more2
16788s/["\\]/\\&/g; s/^/"/; s/$/"/
16789p
16790b
16791:more2
16792s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16793p
16794g
16795s/.\{148\}//
16796t delim
16797' <conf$$subs.awk | sed '
16798/^[^""]/{
16799 N
16800 s/\n//
16801}
16802' >>$CONFIG_STATUS || ac_write_fail=1
16803rm -f conf$$subs.awk
16804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16805_ACAWK
16806cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16807 for (key in S) S_is_set[key] = 1
16808 FS = "\a"
16809 \$ac_cs_awk_pipe_init
16810}
16811{
16812 line = $ 0
16813 nfields = split(line, field, "@")
16814 substed = 0
16815 len = length(field[1])
16816 for (i = 2; i < nfields; i++) {
16817 key = field[i]
16818 keylen = length(key)
16819 if (S_is_set[key]) {
16820 value = S[key]
16821 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16822 len += length(value) + length(field[++i])
16823 substed = 1
16824 } else
16825 len += 1 + keylen
16826 }
16827 if (nfields == 3 && !substed) {
16828 key = field[2]
16829 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16830 \$ac_cs_awk_read_file
16831 next
16832 }
16833 }
16834 print line
b4e70030 16835}
81ecdfbb
RW
16836\$ac_cs_awk_pipe_fini
16837_ACAWK
16838_ACEOF
16839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16840if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16841 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16842else
16843 cat
16844fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16845 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16846_ACEOF
16847
16848# VPATH may cause trouble with some makes, so we remove $(srcdir),
16849# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16850# trailing colons and then remove the whole line if VPATH becomes empty
16851# (actually we leave an empty line to preserve line numbers).
16852if test "x$srcdir" = x.; then
16853 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16854s/:*\$(srcdir):*/:/
16855s/:*\${srcdir}:*/:/
16856s/:*@srcdir@:*/:/
16857s/^\([^=]*=[ ]*\):*/\1/
16858s/:*$//
16859s/^[^=]*=[ ]*$//
16860}'
16861fi
16862
16863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16864fi # test -n "$CONFIG_FILES"
16865
16866# Set up the scripts for CONFIG_HEADERS section.
16867# No need to generate them if there are no CONFIG_HEADERS.
16868# This happens for instance with `./config.status Makefile'.
16869if test -n "$CONFIG_HEADERS"; then
16870cat >"$tmp/defines.awk" <<\_ACAWK ||
16871BEGIN {
16872_ACEOF
16873
16874# Transform confdefs.h into an awk script `defines.awk', embedded as
16875# here-document in config.status, that substitutes the proper values into
16876# config.h.in to produce config.h.
4e8d927d 16877
81ecdfbb
RW
16878# Create a delimiter string that does not exist in confdefs.h, to ease
16879# handling of long lines.
16880ac_delim='%!_!# '
16881for ac_last_try in false false :; do
16882 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16883 if test -z "$ac_t"; then
16884 break
16885 elif $ac_last_try; then
16886 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16887 else
16888 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16889 fi
16890done
4e8d927d 16891
81ecdfbb
RW
16892# For the awk script, D is an array of macro values keyed by name,
16893# likewise P contains macro parameters if any. Preserve backslash
16894# newline sequences.
16895
16896ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16897sed -n '
16898s/.\{148\}/&'"$ac_delim"'/g
16899t rset
16900:rset
16901s/^[ ]*#[ ]*define[ ][ ]*/ /
16902t def
16903d
16904:def
16905s/\\$//
16906t bsnl
16907s/["\\]/\\&/g
16908s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16909D["\1"]=" \3"/p
16910s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16911d
16912:bsnl
16913s/["\\]/\\&/g
16914s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16915D["\1"]=" \3\\\\\\n"\\/p
16916t cont
16917s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16918t cont
16919d
16920:cont
16921n
16922s/.\{148\}/&'"$ac_delim"'/g
16923t clear
16924:clear
16925s/\\$//
16926t bsnlc
16927s/["\\]/\\&/g; s/^/"/; s/$/"/p
16928d
16929:bsnlc
16930s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16931b cont
16932' <confdefs.h | sed '
16933s/'"$ac_delim"'/"\\\
16934"/g' >>$CONFIG_STATUS || ac_write_fail=1
16935
16936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16937 for (key in D) D_is_set[key] = 1
16938 FS = "\a"
16939}
16940/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16941 line = \$ 0
16942 split(line, arg, " ")
16943 if (arg[1] == "#") {
16944 defundef = arg[2]
16945 mac1 = arg[3]
16946 } else {
16947 defundef = substr(arg[1], 2)
16948 mac1 = arg[2]
16949 }
16950 split(mac1, mac2, "(") #)
16951 macro = mac2[1]
16952 prefix = substr(line, 1, index(line, defundef) - 1)
16953 if (D_is_set[macro]) {
16954 # Preserve the white space surrounding the "#".
16955 print prefix "define", macro P[macro] D[macro]
16956 next
16957 } else {
16958 # Replace #undef with comments. This is necessary, for example,
16959 # in the case of _POSIX_SOURCE, which is predefined and required
16960 # on some systems where configure will not decide to define it.
16961 if (defundef == "undef") {
16962 print "/*", prefix defundef, macro, "*/"
16963 next
16964 }
16965 }
b4e70030 16966}
81ecdfbb
RW
16967{ print }
16968_ACAWK
b4e70030 16969_ACEOF
81ecdfbb
RW
16970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16971 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16972fi # test -n "$CONFIG_HEADERS"
4e8d927d 16973
4e8d927d 16974
81ecdfbb
RW
16975eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16976shift
16977for ac_tag
16978do
16979 case $ac_tag in
16980 :[FHLC]) ac_mode=$ac_tag; continue;;
16981 esac
16982 case $ac_mode$ac_tag in
16983 :[FHL]*:*);;
16984 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16985 :[FH]-) ac_tag=-:-;;
16986 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16987 esac
16988 ac_save_IFS=$IFS
16989 IFS=:
16990 set x $ac_tag
16991 IFS=$ac_save_IFS
16992 shift
16993 ac_file=$1
16994 shift
4e8d927d 16995
81ecdfbb
RW
16996 case $ac_mode in
16997 :L) ac_source=$1;;
16998 :[FH])
16999 ac_file_inputs=
17000 for ac_f
17001 do
17002 case $ac_f in
17003 -) ac_f="$tmp/stdin";;
17004 *) # Look for the file first in the build tree, then in the source tree
17005 # (if the path is not absolute). The absolute path cannot be DOS-style,
17006 # because $ac_f cannot contain `:'.
17007 test -f "$ac_f" ||
17008 case $ac_f in
17009 [\\/$]*) false;;
17010 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17011 esac ||
17012 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17013 esac
17014 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17015 as_fn_append ac_file_inputs " '$ac_f'"
17016 done
17017
17018 # Let's still pretend it is `configure' which instantiates (i.e., don't
17019 # use $as_me), people would be surprised to read:
17020 # /* config.h. Generated by config.status. */
17021 configure_input='Generated from '`
17022 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17023 `' by configure.'
17024 if test x"$ac_file" != x-; then
17025 configure_input="$ac_file. $configure_input"
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17027$as_echo "$as_me: creating $ac_file" >&6;}
b4e70030 17028 fi
81ecdfbb
RW
17029 # Neutralize special characters interpreted by sed in replacement strings.
17030 case $configure_input in #(
17031 *\&* | *\|* | *\\* )
17032 ac_sed_conf_input=`$as_echo "$configure_input" |
17033 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17034 *) ac_sed_conf_input=$configure_input;;
17035 esac
4e8d927d 17036
81ecdfbb
RW
17037 case $ac_tag in
17038 *:-:* | *:-) cat >"$tmp/stdin" \
17039 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17040 esac
17041 ;;
c906108c
SS
17042 esac
17043
81ecdfbb 17044 ac_dir=`$as_dirname -- "$ac_file" ||
bec39cab
AC
17045$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17046 X"$ac_file" : 'X\(//\)[^/]' \| \
17047 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
17048 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17049$as_echo X"$ac_file" |
17050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17051 s//\1/
17052 q
17053 }
17054 /^X\(\/\/\)[^/].*/{
17055 s//\1/
17056 q
17057 }
17058 /^X\(\/\/\)$/{
17059 s//\1/
17060 q
17061 }
17062 /^X\(\/\).*/{
17063 s//\1/
17064 q
17065 }
17066 s/.*/./; q'`
17067 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
17068 ac_builddir=.
17069
81ecdfbb
RW
17070case "$ac_dir" in
17071.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17072*)
17073 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17074 # A ".." for each directory in $ac_dir_suffix.
17075 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17076 case $ac_top_builddir_sub in
17077 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17078 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17079 esac ;;
17080esac
17081ac_abs_top_builddir=$ac_pwd
17082ac_abs_builddir=$ac_pwd$ac_dir_suffix
17083# for backward compatibility:
17084ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
17085
17086case $srcdir in
81ecdfbb 17087 .) # We are building in place.
bec39cab 17088 ac_srcdir=.
81ecdfbb
RW
17089 ac_top_srcdir=$ac_top_builddir_sub
17090 ac_abs_top_srcdir=$ac_pwd ;;
17091 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 17092 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17093 ac_top_srcdir=$srcdir
17094 ac_abs_top_srcdir=$srcdir ;;
17095 *) # Relative name.
17096 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17097 ac_top_srcdir=$ac_top_build_prefix$srcdir
17098 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 17099esac
81ecdfbb 17100ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
bec39cab 17101
c906108c 17102
81ecdfbb
RW
17103 case $ac_mode in
17104 :F)
17105 #
17106 # CONFIG_FILE
17107 #
c906108c 17108
bec39cab
AC
17109 case $INSTALL in
17110 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 17111 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 17112 esac
81ecdfbb
RW
17113 ac_MKDIR_P=$MKDIR_P
17114 case $MKDIR_P in
17115 [\\/$]* | ?:[\\/]* ) ;;
17116 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17117 esac
17118_ACEOF
121ce6e5 17119
81ecdfbb
RW
17120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17121# If the template does not know about datarootdir, expand it.
17122# FIXME: This hack should be removed a few years after 2.60.
17123ac_datarootdir_hack=; ac_datarootdir_seen=
17124ac_sed_dataroot='
17125/datarootdir/ {
17126 p
17127 q
17128}
17129/@datadir@/p
17130/@docdir@/p
17131/@infodir@/p
17132/@localedir@/p
17133/@mandir@/p'
17134case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17135*datarootdir*) ac_datarootdir_seen=yes;;
17136*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17138$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17139_ACEOF
17140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17141 ac_datarootdir_hack='
17142 s&@datadir@&$datadir&g
17143 s&@docdir@&$docdir&g
17144 s&@infodir@&$infodir&g
17145 s&@localedir@&$localedir&g
17146 s&@mandir@&$mandir&g
17147 s&\\\${datarootdir}&$datarootdir&g' ;;
17148esac
4e8d927d 17149_ACEOF
81ecdfbb
RW
17150
17151# Neutralize VPATH when `$srcdir' = `.'.
17152# Shell code in configure.ac might set extrasub.
17153# FIXME: do we really want to maintain this feature?
17154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17155ac_sed_extra="$ac_vpsub
bec39cab
AC
17156$extrasub
17157_ACEOF
81ecdfbb 17158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
bec39cab
AC
17159:t
17160/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
17161s|@configure_input@|$ac_sed_conf_input|;t t
17162s&@top_builddir@&$ac_top_builddir_sub&;t t
17163s&@top_build_prefix@&$ac_top_build_prefix&;t t
17164s&@srcdir@&$ac_srcdir&;t t
17165s&@abs_srcdir@&$ac_abs_srcdir&;t t
17166s&@top_srcdir@&$ac_top_srcdir&;t t
17167s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17168s&@builddir@&$ac_builddir&;t t
17169s&@abs_builddir@&$ac_abs_builddir&;t t
17170s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17171s&@INSTALL@&$ac_INSTALL&;t t
17172s&@MKDIR_P@&$ac_MKDIR_P&;t t
17173$ac_datarootdir_hack
17174"
17175eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17176if $ac_cs_awk_getline; then
17177 $AWK -f "$tmp/subs.awk"
17178else
17179 $AWK -f "$tmp/subs.awk" | $SHELL
17180fi >$tmp/out \
17181 || as_fn_error "could not create $ac_file" "$LINENO" 5
17182
17183test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17184 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17185 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17187which seems to be undefined. Please make sure it is defined." >&5
17188$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17189which seems to be undefined. Please make sure it is defined." >&2;}
17190
17191 rm -f "$tmp/stdin"
bec39cab 17192 case $ac_file in
81ecdfbb
RW
17193 -) cat "$tmp/out" && rm -f "$tmp/out";;
17194 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17195 esac \
17196 || as_fn_error "could not create $ac_file" "$LINENO" 5
17197 ;;
17198 :H)
17199 #
17200 # CONFIG_HEADER
17201 #
bec39cab 17202 if test x"$ac_file" != x-; then
81ecdfbb
RW
17203 {
17204 $as_echo "/* $configure_input */" \
17205 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17206 } >"$tmp/config.h" \
17207 || as_fn_error "could not create $ac_file" "$LINENO" 5
17208 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17210$as_echo "$as_me: $ac_file is unchanged" >&6;}
bec39cab 17211 else
81ecdfbb
RW
17212 rm -f "$ac_file"
17213 mv "$tmp/config.h" "$ac_file" \
17214 || as_fn_error "could not create $ac_file" "$LINENO" 5
bec39cab
AC
17215 fi
17216 else
81ecdfbb
RW
17217 $as_echo "/* $configure_input */" \
17218 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17219 || as_fn_error "could not create -" "$LINENO" 5
bec39cab 17220 fi
81ecdfbb
RW
17221# Compute "$ac_file"'s index in $config_headers.
17222_am_arg="$ac_file"
e28b3332
DJ
17223_am_stamp_count=1
17224for _am_header in $config_headers :; do
17225 case $_am_header in
81ecdfbb 17226 $_am_arg | $_am_arg:* )
e28b3332
DJ
17227 break ;;
17228 * )
17229 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17230 esac
17231done
81ecdfbb
RW
17232echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17233$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17234 X"$_am_arg" : 'X\(//\)[^/]' \| \
17235 X"$_am_arg" : 'X\(//\)$' \| \
17236 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17237$as_echo X"$_am_arg" |
17238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17239 s//\1/
17240 q
17241 }
17242 /^X\(\/\/\)[^/].*/{
17243 s//\1/
17244 q
17245 }
17246 /^X\(\/\/\)$/{
17247 s//\1/
17248 q
17249 }
17250 /^X\(\/\).*/{
17251 s//\1/
17252 q
17253 }
17254 s/.*/./; q'`/stamp-h$_am_stamp_count
17255 ;;
17256 :L)
17257 #
17258 # CONFIG_LINK
17259 #
c906108c 17260
81ecdfbb
RW
17261 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17262 :
b4e70030 17263 else
81ecdfbb
RW
17264 # Prefer the file from the source tree if names are identical.
17265 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17266 ac_source=$srcdir/$ac_source
17267 fi
b4e70030 17268
81ecdfbb
RW
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17270$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
b4e70030 17271
81ecdfbb
RW
17272 if test ! -r "$ac_source"; then
17273 as_fn_error "$ac_source: file not found" "$LINENO" 5
17274 fi
17275 rm -f "$ac_file"
bec39cab 17276
81ecdfbb
RW
17277 # Try a relative symlink, then a hard link, then a copy.
17278 case $srcdir in
17279 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17280 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17281 esac
17282 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17283 ln "$ac_source" "$ac_file" 2>/dev/null ||
17284 cp -p "$ac_source" "$ac_file" ||
17285 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17286 fi
17287 ;;
17288 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17289$as_echo "$as_me: executing $ac_file commands" >&6;}
17290 ;;
c906108c 17291 esac
b4e70030 17292
bec39cab 17293
81ecdfbb
RW
17294 case $ac_file$ac_mode in
17295 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17296 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17297 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17298 # are listed without --file. Let's play safe and only enable the eval
17299 # if we detect the quoting.
17300 case $CONFIG_FILES in
17301 *\'*) eval set x "$CONFIG_FILES" ;;
17302 *) set x $CONFIG_FILES ;;
17303 esac
17304 shift
17305 for mf
17306 do
17307 # Strip MF so we end up with the name of the file.
17308 mf=`echo "$mf" | sed -e 's/:.*$//'`
17309 # Check whether this is an Automake generated Makefile or not.
17310 # We used to match only the files named `Makefile.in', but
17311 # some people rename them; so instead we look at the file content.
17312 # Grep'ing the first line is not enough: some people post-process
17313 # each Makefile.in and add a new line on top of each file to say so.
17314 # Grep'ing the whole file is not good either: AIX grep has a line
17315 # limit of 2048, but all sed's we know have understand at least 4000.
17316 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17317 dirpart=`$as_dirname -- "$mf" ||
e28b3332
DJ
17318$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17319 X"$mf" : 'X\(//\)[^/]' \| \
17320 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
17321 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17322$as_echo X"$mf" |
17323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17324 s//\1/
17325 q
17326 }
17327 /^X\(\/\/\)[^/].*/{
17328 s//\1/
17329 q
17330 }
17331 /^X\(\/\/\)$/{
17332 s//\1/
17333 q
17334 }
17335 /^X\(\/\).*/{
17336 s//\1/
17337 q
17338 }
17339 s/.*/./; q'`
17340 else
17341 continue
17342 fi
17343 # Extract the definition of DEPDIR, am__include, and am__quote
17344 # from the Makefile without running `make'.
17345 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17346 test -z "$DEPDIR" && continue
17347 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17348 test -z "am__include" && continue
17349 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17350 # When using ansi2knr, U may be empty or an underscore; expand it
17351 U=`sed -n 's/^U = //p' < "$mf"`
17352 # Find all dependency output files, they are included files with
17353 # $(DEPDIR) in their names. We invoke sed twice because it is the
17354 # simplest approach to changing $(DEPDIR) to its actual value in the
17355 # expansion.
17356 for file in `sed -n "
17357 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17358 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17359 # Make sure the directory exists.
17360 test -f "$dirpart/$file" && continue
17361 fdir=`$as_dirname -- "$file" ||
e28b3332
DJ
17362$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17363 X"$file" : 'X\(//\)[^/]' \| \
17364 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
17365 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17366$as_echo X"$file" |
17367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17368 s//\1/
17369 q
17370 }
17371 /^X\(\/\/\)[^/].*/{
17372 s//\1/
17373 q
17374 }
17375 /^X\(\/\/\)$/{
17376 s//\1/
17377 q
17378 }
17379 /^X\(\/\).*/{
17380 s//\1/
17381 q
17382 }
17383 s/.*/./; q'`
17384 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17385 # echo "creating $dirpart/$file"
17386 echo '# dummy' > "$dirpart/$file"
e28b3332 17387 done
e28b3332 17388 done
81ecdfbb 17389}
4e8d927d 17390 ;;
81ecdfbb 17391 "default":C)
c906108c
SS
17392case x$CONFIG_HEADERS in
17393xconfig.h:config.in)
17394echo > stamp-h ;;
17395esac
bec39cab 17396 ;;
81ecdfbb 17397
bec39cab 17398 esac
81ecdfbb 17399done # for ac_tag
c906108c 17400
bec39cab 17401
81ecdfbb 17402as_fn_exit 0
bec39cab 17403_ACEOF
bec39cab
AC
17404ac_clean_files=$ac_clean_files_save
17405
81ecdfbb
RW
17406test $ac_write_fail = 0 ||
17407 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17408
bec39cab
AC
17409
17410# configure is writing to config.log, and then calls config.status.
17411# config.status does its own redirection, appending to config.log.
17412# Unfortunately, on DOS this fails, as config.log is still kept open
17413# by configure, so config.status won't be able to write to it; its
17414# output is simply discarded. So we exec the FD to /dev/null,
17415# effectively closing config.log, so it can be properly (re)opened and
17416# appended to by config.status. When coming back to configure, we
17417# need to make the FD available again.
17418if test "$no_create" != yes; then
17419 ac_cs_success=:
17420 ac_config_status_args=
17421 test "$silent" = yes &&
17422 ac_config_status_args="$ac_config_status_args --quiet"
17423 exec 5>/dev/null
17424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17425 exec 5>>config.log
17426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17427 # would make configure fail if this is the last instruction.
81ecdfbb 17428 $ac_cs_success || as_fn_exit $?
bec39cab 17429fi
c906108c 17430
bec39cab 17431#
81ecdfbb 17432# CONFIG_SUBDIRS section.
bec39cab 17433#
c906108c
SS
17434if test "$no_recursion" != yes; then
17435
81ecdfbb
RW
17436 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17437 # so they do not pile up.
c906108c
SS
17438 ac_sub_configure_args=
17439 ac_prev=
fdc59709
PB
17440 eval "set x $ac_configure_args"
17441 shift
17442 for ac_arg
17443 do
c906108c
SS
17444 if test -n "$ac_prev"; then
17445 ac_prev=
17446 continue
17447 fi
bec39cab 17448 case $ac_arg in
c906108c
SS
17449 -cache-file | --cache-file | --cache-fil | --cache-fi \
17450 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17451 ac_prev=cache_file ;;
17452 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
17453 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17454 | --c=*)
17455 ;;
17456 --config-cache | -C)
c906108c
SS
17457 ;;
17458 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17459 ac_prev=srcdir ;;
17460 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17461 ;;
bec39cab
AC
17462 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17463 ac_prev=prefix ;;
17464 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17465 ;;
81ecdfbb
RW
17466 --disable-option-checking)
17467 ;;
fdc59709
PB
17468 *)
17469 case $ac_arg in
81ecdfbb 17470 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
fdc59709 17471 esac
81ecdfbb 17472 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
c906108c
SS
17473 esac
17474 done
17475
bec39cab
AC
17476 # Always prepend --prefix to ensure using the same prefix
17477 # in subdir configurations.
fdc59709
PB
17478 ac_arg="--prefix=$prefix"
17479 case $ac_arg in
81ecdfbb 17480 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
fdc59709 17481 esac
81ecdfbb
RW
17482 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17483
17484 # Pass --silent
17485 if test "$silent" = yes; then
17486 ac_sub_configure_args="--silent $ac_sub_configure_args"
17487 fi
17488
17489 # Always prepend --disable-option-checking to silence warnings, since
17490 # different subdirs can have different --enable and --with options.
17491 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
bec39cab 17492
b4e70030 17493 ac_popdir=`pwd`
bec39cab 17494 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
17495
17496 # Do not complain, so a configure script can configure whichever
17497 # parts of a large source tree are present.
fdc59709 17498 test -d "$srcdir/$ac_dir" || continue
c906108c 17499
81ecdfbb
RW
17500 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17501 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17502 $as_echo "$ac_msg" >&6
17503 as_dir="$ac_dir"; as_fn_mkdir_p
bec39cab
AC
17504 ac_builddir=.
17505
81ecdfbb
RW
17506case "$ac_dir" in
17507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17508*)
17509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17510 # A ".." for each directory in $ac_dir_suffix.
17511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17512 case $ac_top_builddir_sub in
17513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17515 esac ;;
17516esac
17517ac_abs_top_builddir=$ac_pwd
17518ac_abs_builddir=$ac_pwd$ac_dir_suffix
17519# for backward compatibility:
17520ac_top_builddir=$ac_top_build_prefix
bec39cab
AC
17521
17522case $srcdir in
81ecdfbb 17523 .) # We are building in place.
bec39cab 17524 ac_srcdir=.
81ecdfbb
RW
17525 ac_top_srcdir=$ac_top_builddir_sub
17526 ac_abs_top_srcdir=$ac_pwd ;;
17527 [\\/]* | ?:[\\/]* ) # Absolute name.
bec39cab 17528 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
17529 ac_top_srcdir=$srcdir
17530 ac_abs_top_srcdir=$srcdir ;;
17531 *) # Relative name.
17532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17533 ac_top_srcdir=$ac_top_build_prefix$srcdir
17534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bec39cab 17535esac
81ecdfbb 17536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
c906108c 17537
c906108c 17538
fdc59709 17539 cd "$ac_dir"
c906108c
SS
17540
17541 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
17542 if test -f "$ac_srcdir/configure.gnu"; then
17543 ac_sub_configure=$ac_srcdir/configure.gnu
17544 elif test -f "$ac_srcdir/configure"; then
17545 ac_sub_configure=$ac_srcdir/configure
17546 elif test -f "$ac_srcdir/configure.in"; then
17547 # This should be Cygnus configure.
17548 ac_sub_configure=$ac_aux_dir/configure
c906108c 17549 else
81ecdfbb
RW
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17551$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
17552 ac_sub_configure=
17553 fi
17554
17555 # The recursion is here.
17556 if test -n "$ac_sub_configure"; then
c906108c 17557 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
17558 case $cache_file in
17559 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
81ecdfbb
RW
17560 *) # Relative name.
17561 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
c906108c 17562 esac
c906108c 17563
81ecdfbb
RW
17564 { $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
17565$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 17566 # The eval makes quoting arguments work.
fdc59709
PB
17567 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17568 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
81ecdfbb 17569 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
c906108c
SS
17570 fi
17571
fdc59709 17572 cd "$ac_popdir"
c906108c
SS
17573 done
17574fi
81ecdfbb
RW
17575if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17577$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17578fi
c906108c
SS
17579
17580
17581exit 0
This page took 1.995842 seconds and 4 git commands to generate.