gdb, gdbserver, gdbsupport: use AC_CANONICAL_{BUILD,HOST,TARGET} instead of AC_CANONI...
[deliverable/binutils-gdb.git] / gdbsupport / configure
CommitLineData
01027315
TT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for gdbsupport 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='gdbsupport'
579PACKAGE_TARNAME='gdbsupport'
580PACKAGE_VERSION='1.0'
581PACKAGE_STRING='gdbsupport 1.0'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="common-defs.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600# include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
05ea2a05 622ac_header_list=
01027315
TT
623ac_subst_vars='am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
626LIBOBJS
629c2962
SM
627WERROR_CFLAGS
628WARN_CFLAGS
01027315
TT
629SELFTEST_FALSE
630SELFTEST_TRUE
05ea2a05
TT
631LTLIBIPT
632LIBIPT
633HAVE_LIBIPT
01027315
TT
634PTHREAD_CFLAGS
635PTHREAD_LIBS
636PTHREAD_CC
637ax_pthread_config
638SED
639ALLOCA
640CATOBJEXT
641GENCAT
642INSTOBJEXT
643DATADIRNAME
644CATALOGS
645POSUB
646GMSGFMT
647XGETTEXT
648INCINTL
649LIBINTL_DEP
650LIBINTL
651USE_NLS
652CXX_DIALECT
653HAVE_CXX11
c8693053 654LARGEFILE_CPPFLAGS
01027315
TT
655EGREP
656GREP
657CPP
658RANLIB
659am__fastdepCXX_FALSE
660am__fastdepCXX_TRUE
661CXXDEPMODE
662ac_ct_CXX
663CXXFLAGS
664CXX
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668am__nodep
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675OBJEXT
676EXEEXT
677ac_ct_CC
678CPPFLAGS
679LDFLAGS
680CFLAGS
681CC
682AM_BACKSLASH
683AM_DEFAULT_VERBOSITY
684AM_DEFAULT_V
685AM_V
686am__untar
687am__tar
688AMTAR
689am__leading_dot
690SET_MAKE
691AWK
692mkdir_p
693MKDIR_P
694INSTALL_STRIP_PROGRAM
695STRIP
696install_sh
697MAKEINFO
698AUTOHEADER
699AUTOMAKE
700AUTOCONF
701ACLOCAL
702VERSION
703PACKAGE
704CYGPATH_W
705am__isrc
706INSTALL_DATA
707INSTALL_SCRIPT
708INSTALL_PROGRAM
709MAINT
710MAINTAINER_MODE_FALSE
711MAINTAINER_MODE_TRUE
712target_os
713target_vendor
714target_cpu
715target
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_maintainer_mode
766enable_silent_rules
767enable_dependency_tracking
768enable_plugins
769enable_largefile
05ea2a05
TT
770with_intel_pt
771with_gnu_ld
772enable_rpath
773with_libipt_prefix
9f1528a1 774with_libipt_type
01027315 775enable_unit_tests
629c2962
SM
776enable_werror
777enable_build_warnings
778enable_gdb_build_warnings
01027315
TT
779'
780 ac_precious_vars='build_alias
781host_alias
782target_alias
783CC
784CFLAGS
785LDFLAGS
786LIBS
787CPPFLAGS
788CXX
789CXXFLAGS
790CCC
791CPP'
792
793
794# Initialize some variables set by options.
795ac_init_help=
796ac_init_version=false
797ac_unrecognized_opts=
798ac_unrecognized_sep=
799# The variables have the same names as the options, with
800# dashes changed to underlines.
801cache_file=/dev/null
802exec_prefix=NONE
803no_create=
804no_recursion=
805prefix=NONE
806program_prefix=NONE
807program_suffix=NONE
808program_transform_name=s,x,x,
809silent=
810site=
811srcdir=
812verbose=
813x_includes=NONE
814x_libraries=NONE
815
816# Installation directory options.
817# These are left unexpanded so users can "make install exec_prefix=/foo"
818# and all the variables that are supposed to be based on exec_prefix
819# by default will actually change.
820# Use braces instead of parens because sh, perl, etc. also accept them.
821# (The list follows the same order as the GNU Coding Standards.)
822bindir='${exec_prefix}/bin'
823sbindir='${exec_prefix}/sbin'
824libexecdir='${exec_prefix}/libexec'
825datarootdir='${prefix}/share'
826datadir='${datarootdir}'
827sysconfdir='${prefix}/etc'
828sharedstatedir='${prefix}/com'
829localstatedir='${prefix}/var'
830includedir='${prefix}/include'
831oldincludedir='/usr/include'
832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833infodir='${datarootdir}/info'
834htmldir='${docdir}'
835dvidir='${docdir}'
836pdfdir='${docdir}'
837psdir='${docdir}'
838libdir='${exec_prefix}/lib'
839localedir='${datarootdir}/locale'
840mandir='${datarootdir}/man'
841
842ac_prev=
843ac_dashdash=
844for ac_option
845do
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
849 ac_prev=
850 continue
851 fi
852
853 case $ac_option in
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855 *=) ac_optarg= ;;
856 *) ac_optarg=yes ;;
857 esac
858
859 # Accept the important Cygnus configure options, so we can diagnose typos.
860
861 case $ac_dashdash$ac_option in
862 --)
863 ac_dashdash=yes ;;
864
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 ac_prev=bindir ;;
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 bindir=$ac_optarg ;;
869
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
874
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
881
882 --config-cache | -C)
883 cache_file=config.cache ;;
884
885 -datadir | --datadir | --datadi | --datad)
886 ac_prev=datadir ;;
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
889
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
896
897 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
905 *"
906"enable_$ac_useropt"
907"*) ;;
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
910 esac
911 eval enable_$ac_useropt=no ;;
912
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
917
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
922
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932"enable_$ac_useropt"
933"*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=\$ac_optarg ;;
938
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
947
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
950 with_gas=yes ;;
951
952 -help | --help | --hel | --he | -h)
953 ac_init_help=long ;;
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
958
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
963
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 ac_prev=htmldir ;;
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 | --ht=*)
968 htmldir=$ac_optarg ;;
969
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
976
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 ac_prev=infodir ;;
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
981
982 -libdir | --libdir | --libdi | --libd)
983 ac_prev=libdir ;;
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 libdir=$ac_optarg ;;
986
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
993
994 -localedir | --localedir | --localedi | --localed | --locale)
995 ac_prev=localedir ;;
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
998
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1005
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 ac_prev=mandir ;;
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1010
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1013 with_fp=no ;;
1014
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1017 no_create=yes ;;
1018
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 no_recursion=yes ;;
1022
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1031
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 ac_prev=prefix ;;
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1036
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1043
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1050
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1067
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 ac_prev=pdfdir ;;
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1072
1073 -psdir | --psdir | --psdi | --psd | --ps)
1074 ac_prev=psdir ;;
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 psdir=$ac_optarg ;;
1077
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 silent=yes ;;
1081
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1087
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1098
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1103
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1108
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1115
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1120
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1123
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1126
1127 -with-* | --with-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136"with_$ac_useropt"
1137"*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=\$ac_optarg ;;
1142
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152"with_$ac_useropt"
1153"*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=no ;;
1158
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1162
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1169
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1176
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178Try \`$0 --help' for more information"
1179 ;;
1180
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187 esac
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1190
1191 *)
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 ;;
1198
1199 esac
1200done
1201
1202if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1205fi
1206
1207if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1209 no) ;;
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac
1213fi
1214
1215# Check all directory arguments for consistency.
1216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1220do
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1223 case $ac_val in
1224 */ )
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1227 esac
1228 # Be sure to have absolute directory names.
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234done
1235
1236# There might be people who depend on the old broken behavior: `$host'
1237# used to hold the argument of --host etc.
1238# FIXME: To remove some day.
1239build=$build_alias
1240host=$host_alias
1241target=$target_alias
1242
1243# FIXME: To remove some day.
1244if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1296 fi
1297else
1298 ac_srcdir_defaulted=no
1299fi
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
1324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332\`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
1352Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385_ACEOF
1386
1387 cat <<\_ACEOF
1388
1389Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393
1394System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398_ACEOF
1399fi
1400
1401if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1404 esac
1405 cat <<\_ACEOF
1406
1407Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful (and
1413 sometimes confusing) to the casual installer
1414 --enable-silent-rules less verbose build output (undo: "make V=1")
1415 --disable-silent-rules verbose build output (undo: "make V=0")
1416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
1420 --enable-plugins Enable support for plugins
1421 --disable-largefile omit support for large files
05ea2a05 1422 --disable-rpath do not hardcode runtime library paths
01027315
TT
1423 --enable-unit-tests Enable the inclusion of unit tests when compiling
1424 GDB
629c2962
SM
1425 --enable-werror treat compile warnings as errors
1426 --enable-build-warnings enable build-time compiler warnings if gcc is used
1427 --enable-gdb-build-warnings
1428 enable GDB specific build-time compiler warnings if
1429 gcc is used
01027315 1430
05ea2a05
TT
1431Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1435 --with-gnu-ld assume the C compiler uses GNU ld default=no
1436 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1437 --without-libipt-prefix don't search for libipt in includedir and libdir
9f1528a1 1438 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
05ea2a05 1439
01027315
TT
1440Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CXX C++ compiler command
1449 CXXFLAGS C++ compiler flags
1450 CPP C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
1455Report bugs to the package provider.
1456_ACEOF
1457ac_status=$?
1458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1467
1468case "$ac_dir" in
1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470*)
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478esac
1479ac_abs_top_builddir=$ac_pwd
1480ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481# for backward compatibility:
1482ac_top_builddir=$ac_top_build_prefix
1483
1484case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497esac
1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1513fi
1514
1515test -n "$ac_init_help" && exit $ac_status
1516if $ac_init_version; then
1517 cat <<\_ACEOF
1518gdbsupport configure 1.0
1519generated by GNU Autoconf 2.69
1520
1521Copyright (C) 2012 Free Software Foundation, Inc.
1522This configure script is free software; the Free Software Foundation
1523gives unlimited permission to copy, distribute and modify it.
1524_ACEOF
1525 exit
1526fi
1527
1528## ------------------------ ##
1529## Autoconf initialization. ##
1530## ------------------------ ##
1531
1532# ac_fn_c_try_compile LINENO
1533# --------------------------
1534# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_compile ()
1536{
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559else
1560 $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1
1564fi
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1567
1568} # ac_fn_c_try_compile
1569
1570# ac_fn_cxx_try_compile LINENO
1571# ----------------------------
1572# Try to compile conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_cxx_try_compile ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_cxx_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597else
1598 $as_echo "$as_me: failed program was:" >&5
1599sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606} # ac_fn_cxx_try_compile
1607
1608# ac_fn_c_try_cpp LINENO
1609# ----------------------
1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_cpp ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } > conftest.i && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634else
1635 $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639fi
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_cpp
1644
1645# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646# -------------------------------------------------------
1647# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648# the include files in INCLUDES and setting the cache variable VAR
1649# accordingly.
1650ac_fn_c_check_header_mongrel ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if eval \${$3+:} false; then :
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657 $as_echo_n "(cached) " >&6
1658fi
1659eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662else
1663 # Is the header compilable?
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665$as_echo_n "checking $2 usability... " >&6; }
1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_header_compiler=yes
1673else
1674 ac_header_compiler=no
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678$as_echo "$ac_header_compiler" >&6; }
1679
1680# Is the header present?
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682$as_echo_n "checking $2 presence... " >&6; }
1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684/* end confdefs.h. */
1685#include <$2>
1686_ACEOF
1687if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1689else
1690 ac_header_preproc=no
1691fi
1692rm -f conftest.err conftest.i conftest.$ac_ext
1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694$as_echo "$ac_header_preproc" >&6; }
1695
1696# So? What about this header?
1697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 yes:no: )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 no:yes:* )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 ;;
1716esac
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718$as_echo_n "checking for $2... " >&6; }
1719if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1721else
1722 eval "$3=\$ac_header_compiler"
1723fi
1724eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727fi
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730} # ac_fn_c_check_header_mongrel
1731
1732# ac_fn_c_try_run LINENO
1733# ----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735# that executables *can* be run.
1736ac_fn_c_try_run ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=$ac_status
1767fi
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1771
1772} # ac_fn_c_try_run
1773
1774# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775# -------------------------------------------------------
1776# Tests whether HEADER exists and can be compiled using the include files in
1777# INCLUDES, setting the cache variable VAR accordingly.
1778ac_fn_c_check_header_compile ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782$as_echo_n "checking for $2... " >&6; }
1783if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1785else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h. */
1788$4
1789#include <$2>
1790_ACEOF
1791if ac_fn_c_try_compile "$LINENO"; then :
1792 eval "$3=yes"
1793else
1794 eval "$3=no"
1795fi
1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797fi
1798eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803} # ac_fn_c_check_header_compile
1804
1805# ac_fn_c_try_link LINENO
1806# -----------------------
1807# Try to link conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_c_try_link ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest$ac_exeext
1812 if { { ac_try="$ac_link"
1813case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816esac
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest$ac_exeext && {
1831 test "$cross_compiling" = yes ||
1832 test -x conftest$ac_exeext
1833 }; then :
1834 ac_retval=0
1835else
1836 $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
1839 ac_retval=1
1840fi
1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1843 # interfere with the next link command; also delete a directory that is
1844 # left behind by Apple's compiler. We do this before executing the actions.
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1848
1849} # ac_fn_c_try_link
1850
1851# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1852# -------------------------------------------
1853# Tests whether TYPE exists after having included INCLUDES, setting cache
1854# variable VAR accordingly.
1855ac_fn_c_check_type ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1862else
1863 eval "$3=no"
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h. */
1866$4
1867int
1868main ()
1869{
1870if (sizeof ($2))
1871 return 0;
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_compile "$LINENO"; then :
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h. */
1879$4
1880int
1881main ()
1882{
1883if (sizeof (($2)))
1884 return 0;
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_compile "$LINENO"; then :
1890
1891else
1892 eval "$3=yes"
1893fi
1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897fi
1898eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903} # ac_fn_c_check_type
1904
1905# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1906# --------------------------------------------
1907# Tries to find the compile-time value of EXPR in a program that includes
1908# INCLUDES, setting VAR accordingly. Returns whether the value could be
1909# computed
1910ac_fn_c_compute_int ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if test "$cross_compiling" = yes; then
1914 # Depending upon the size, compute the lo and hi bounds.
1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h. */
1917$4
1918int
1919main ()
1920{
1921static int test_array [1 - 2 * !(($2) >= 0)];
1922test_array [0] = 0;
1923return test_array [0];
1924
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_lo=0 ac_mid=0
1931 while :; do
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h. */
1934$4
1935int
1936main ()
1937{
1938static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1939test_array [0] = 0;
1940return test_array [0];
1941
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_hi=$ac_mid; break
1948else
1949 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1950 if test $ac_lo -le $ac_mid; then
1951 ac_lo= ac_hi=
1952 break
1953 fi
1954 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1955fi
1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 done
1958else
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h. */
1961$4
1962int
1963main ()
1964{
1965static int test_array [1 - 2 * !(($2) < 0)];
1966test_array [0] = 0;
1967return test_array [0];
1968
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974 ac_hi=-1 ac_mid=-1
1975 while :; do
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h. */
1978$4
1979int
1980main ()
1981{
1982static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1983test_array [0] = 0;
1984return test_array [0];
1985
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_lo=$ac_mid; break
1992else
1993 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1994 if test $ac_mid -le $ac_hi; then
1995 ac_lo= ac_hi=
1996 break
1997 fi
1998 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1999fi
2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 done
2002else
2003 ac_lo= ac_hi=
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008# Binary search between lo and hi bounds.
2009while test "x$ac_lo" != "x$ac_hi"; do
2010 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$4
2014int
2015main ()
2016{
2017static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2018test_array [0] = 0;
2019return test_array [0];
2020
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_hi=$ac_mid
2027else
2028 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2029fi
2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031done
2032case $ac_lo in #((
2033?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2034'') ac_retval=1 ;;
2035esac
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h. */
2039$4
2040static long int longval () { return $2; }
2041static unsigned long int ulongval () { return $2; }
2042#include <stdio.h>
2043#include <stdlib.h>
2044int
2045main ()
2046{
2047
2048 FILE *f = fopen ("conftest.val", "w");
2049 if (! f)
2050 return 1;
2051 if (($2) < 0)
2052 {
2053 long int i = longval ();
2054 if (i != ($2))
2055 return 1;
2056 fprintf (f, "%ld", i);
2057 }
2058 else
2059 {
2060 unsigned long int i = ulongval ();
2061 if (i != ($2))
2062 return 1;
2063 fprintf (f, "%lu", i);
2064 }
2065 /* Do not output a trailing newline, as this causes \r\n confusion
2066 on some platforms. */
2067 return ferror (f) || fclose (f) != 0;
2068
2069 ;
2070 return 0;
2071}
2072_ACEOF
2073if ac_fn_c_try_run "$LINENO"; then :
2074 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2075else
2076 ac_retval=1
2077fi
2078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2079 conftest.$ac_objext conftest.beam conftest.$ac_ext
2080rm -f conftest.val
2081
2082 fi
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 as_fn_set_status $ac_retval
2085
2086} # ac_fn_c_compute_int
2087
2088# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2089# ---------------------------------------------
2090# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2091# accordingly.
2092ac_fn_c_check_decl ()
2093{
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 as_decl_name=`echo $2|sed 's/ *(.*//'`
2096 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2098$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2099if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2101else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105int
2106main ()
2107{
2108#ifndef $as_decl_name
2109#ifdef __cplusplus
2110 (void) $as_decl_use;
2111#else
2112 (void) $as_decl_name;
2113#endif
2114#endif
2115
2116 ;
2117 return 0;
2118}
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121 eval "$3=yes"
2122else
2123 eval "$3=no"
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126fi
2127eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129$as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132} # ac_fn_c_check_decl
2133
2134# ac_fn_c_check_func LINENO FUNC VAR
2135# ----------------------------------
2136# Tests whether FUNC exists, setting the cache variable VAR accordingly
2137ac_fn_c_check_func ()
2138{
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141$as_echo_n "checking for $2... " >&6; }
2142if eval \${$3+:} false; then :
2143 $as_echo_n "(cached) " >&6
2144else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h. */
2147/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2149#define $2 innocuous_$2
2150
2151/* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char $2 (); below.
2153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2154 <limits.h> exists even on freestanding compilers. */
2155
2156#ifdef __STDC__
2157# include <limits.h>
2158#else
2159# include <assert.h>
2160#endif
2161
2162#undef $2
2163
2164/* Override any GCC internal prototype to avoid an error.
2165 Use char because int might match the return type of a GCC
2166 builtin and then its argument prototype would still apply. */
2167#ifdef __cplusplus
2168extern "C"
2169#endif
2170char $2 ();
2171/* The GNU C library defines this for functions which it implements
2172 to always fail with ENOSYS. Some functions are actually named
2173 something starting with __ and the normal name is an alias. */
2174#if defined __stub_$2 || defined __stub___$2
2175choke me
2176#endif
2177
2178int
2179main ()
2180{
2181return $2 ();
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_link "$LINENO"; then :
2187 eval "$3=yes"
2188else
2189 eval "$3=no"
2190fi
2191rm -f core conftest.err conftest.$ac_objext \
2192 conftest$ac_exeext conftest.$ac_ext
2193fi
2194eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196$as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198
2199} # ac_fn_c_check_func
2200
05ea2a05
TT
2201# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2202# ----------------------------------------------------
2203# Tries to find if the field MEMBER exists in type AGGR, after including
2204# INCLUDES, setting cache variable VAR accordingly.
2205ac_fn_c_check_member ()
2206{
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2209$as_echo_n "checking for $2.$3... " >&6; }
2210if eval \${$4+:} false; then :
2211 $as_echo_n "(cached) " >&6
2212else
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h. */
2215$5
2216int
2217main ()
2218{
2219static $2 ac_aggr;
2220if (ac_aggr.$3)
2221return 0;
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227 eval "$4=yes"
2228else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230/* end confdefs.h. */
2231$5
2232int
2233main ()
2234{
2235static $2 ac_aggr;
2236if (sizeof ac_aggr.$3)
2237return 0;
2238 ;
2239 return 0;
2240}
2241_ACEOF
2242if ac_fn_c_try_compile "$LINENO"; then :
2243 eval "$4=yes"
2244else
2245 eval "$4=no"
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248fi
2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250fi
2251eval ac_res=\$$4
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253$as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255
2256} # ac_fn_c_check_member
2257
01027315
TT
2258# ac_fn_cxx_try_link LINENO
2259# -------------------------
2260# Try to link conftest.$ac_ext, and return whether this succeeded.
2261ac_fn_cxx_try_link ()
2262{
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 rm -f conftest.$ac_objext conftest$ac_exeext
2265 if { { ac_try="$ac_link"
2266case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269esac
2270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271$as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_link") 2>conftest.err
2273 ac_status=$?
2274 if test -s conftest.err; then
2275 grep -v '^ *+' conftest.err >conftest.er1
2276 cat conftest.er1 >&5
2277 mv -f conftest.er1 conftest.err
2278 fi
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } && {
2281 test -z "$ac_cxx_werror_flag" ||
2282 test ! -s conftest.err
2283 } && test -s conftest$ac_exeext && {
2284 test "$cross_compiling" = yes ||
2285 test -x conftest$ac_exeext
2286 }; then :
2287 ac_retval=0
2288else
2289 $as_echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 ac_retval=1
2293fi
2294 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2295 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2296 # interfere with the next link command; also delete a directory that is
2297 # left behind by Apple's compiler. We do this before executing the actions.
2298 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300 as_fn_set_status $ac_retval
2301
2302} # ac_fn_cxx_try_link
2303
2304# ac_fn_cxx_check_func LINENO FUNC VAR
2305# ------------------------------------
2306# Tests whether FUNC exists, setting the cache variable VAR accordingly
2307ac_fn_cxx_check_func ()
2308{
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311$as_echo_n "checking for $2... " >&6; }
2312if eval \${$3+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314else
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316/* end confdefs.h. */
2317/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2319#define $2 innocuous_$2
2320
2321/* System header to define __stub macros and hopefully few prototypes,
2322 which can conflict with char $2 (); below.
2323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2324 <limits.h> exists even on freestanding compilers. */
2325
2326#ifdef __STDC__
2327# include <limits.h>
2328#else
2329# include <assert.h>
2330#endif
2331
2332#undef $2
2333
2334/* Override any GCC internal prototype to avoid an error.
2335 Use char because int might match the return type of a GCC
2336 builtin and then its argument prototype would still apply. */
2337#ifdef __cplusplus
2338extern "C"
2339#endif
2340char $2 ();
2341/* The GNU C library defines this for functions which it implements
2342 to always fail with ENOSYS. Some functions are actually named
2343 something starting with __ and the normal name is an alias. */
2344#if defined __stub_$2 || defined __stub___$2
2345choke me
2346#endif
2347
2348int
2349main ()
2350{
2351return $2 ();
2352 ;
2353 return 0;
2354}
2355_ACEOF
2356if ac_fn_cxx_try_link "$LINENO"; then :
2357 eval "$3=yes"
2358else
2359 eval "$3=no"
2360fi
2361rm -f core conftest.err conftest.$ac_objext \
2362 conftest$ac_exeext conftest.$ac_ext
2363fi
2364eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366$as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368
2369} # ac_fn_cxx_check_func
2370cat >config.log <<_ACEOF
2371This file contains any messages produced by compilers while
2372running configure, to aid debugging if configure makes a mistake.
2373
2374It was created by gdbsupport $as_me 1.0, which was
2375generated by GNU Autoconf 2.69. Invocation command line was
2376
2377 $ $0 $@
2378
2379_ACEOF
2380exec 5>>config.log
2381{
2382cat <<_ASUNAME
2383## --------- ##
2384## Platform. ##
2385## --------- ##
2386
2387hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2388uname -m = `(uname -m) 2>/dev/null || echo unknown`
2389uname -r = `(uname -r) 2>/dev/null || echo unknown`
2390uname -s = `(uname -s) 2>/dev/null || echo unknown`
2391uname -v = `(uname -v) 2>/dev/null || echo unknown`
2392
2393/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2394/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2395
2396/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2397/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2398/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2399/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2400/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2401/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2402/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2403
2404_ASUNAME
2405
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 $as_echo "PATH: $as_dir"
2412 done
2413IFS=$as_save_IFS
2414
2415} >&5
2416
2417cat >&5 <<_ACEOF
2418
2419
2420## ----------- ##
2421## Core tests. ##
2422## ----------- ##
2423
2424_ACEOF
2425
2426
2427# Keep a trace of the command line.
2428# Strip out --no-create and --no-recursion so they do not pile up.
2429# Strip out --silent because we don't want to record it for future runs.
2430# Also quote any args containing shell meta-characters.
2431# Make two passes to allow for proper duplicate-argument suppression.
2432ac_configure_args=
2433ac_configure_args0=
2434ac_configure_args1=
2435ac_must_keep_next=false
2436for ac_pass in 1 2
2437do
2438 for ac_arg
2439 do
2440 case $ac_arg in
2441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2443 | -silent | --silent | --silen | --sile | --sil)
2444 continue ;;
2445 *\'*)
2446 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2447 esac
2448 case $ac_pass in
2449 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2450 2)
2451 as_fn_append ac_configure_args1 " '$ac_arg'"
2452 if test $ac_must_keep_next = true; then
2453 ac_must_keep_next=false # Got value, back to normal.
2454 else
2455 case $ac_arg in
2456 *=* | --config-cache | -C | -disable-* | --disable-* \
2457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2459 | -with-* | --with-* | -without-* | --without-* | --x)
2460 case "$ac_configure_args0 " in
2461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2462 esac
2463 ;;
2464 -* ) ac_must_keep_next=true ;;
2465 esac
2466 fi
2467 as_fn_append ac_configure_args " '$ac_arg'"
2468 ;;
2469 esac
2470 done
2471done
2472{ ac_configure_args0=; unset ac_configure_args0;}
2473{ ac_configure_args1=; unset ac_configure_args1;}
2474
2475# When interrupted or exit'd, cleanup temporary files, and complete
2476# config.log. We remove comments because anyway the quotes in there
2477# would cause problems or look ugly.
2478# WARNING: Use '\'' to represent an apostrophe within the trap.
2479# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2480trap 'exit_status=$?
2481 # Save into config.log some information that might help in debugging.
2482 {
2483 echo
2484
2485 $as_echo "## ---------------- ##
2486## Cache variables. ##
2487## ---------------- ##"
2488 echo
2489 # The following way of writing the cache mishandles newlines in values,
2490(
2491 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2492 eval ac_val=\$$ac_var
2493 case $ac_val in #(
2494 *${as_nl}*)
2495 case $ac_var in #(
2496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2497$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2498 esac
2499 case $ac_var in #(
2500 _ | IFS | as_nl) ;; #(
2501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2502 *) { eval $ac_var=; unset $ac_var;} ;;
2503 esac ;;
2504 esac
2505 done
2506 (set) 2>&1 |
2507 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2508 *${as_nl}ac_space=\ *)
2509 sed -n \
2510 "s/'\''/'\''\\\\'\'''\''/g;
2511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2512 ;; #(
2513 *)
2514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2515 ;;
2516 esac |
2517 sort
2518)
2519 echo
2520
2521 $as_echo "## ----------------- ##
2522## Output variables. ##
2523## ----------------- ##"
2524 echo
2525 for ac_var in $ac_subst_vars
2526 do
2527 eval ac_val=\$$ac_var
2528 case $ac_val in
2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 esac
2531 $as_echo "$ac_var='\''$ac_val'\''"
2532 done | sort
2533 echo
2534
2535 if test -n "$ac_subst_files"; then
2536 $as_echo "## ------------------- ##
2537## File substitutions. ##
2538## ------------------- ##"
2539 echo
2540 for ac_var in $ac_subst_files
2541 do
2542 eval ac_val=\$$ac_var
2543 case $ac_val in
2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545 esac
2546 $as_echo "$ac_var='\''$ac_val'\''"
2547 done | sort
2548 echo
2549 fi
2550
2551 if test -s confdefs.h; then
2552 $as_echo "## ----------- ##
2553## confdefs.h. ##
2554## ----------- ##"
2555 echo
2556 cat confdefs.h
2557 echo
2558 fi
2559 test "$ac_signal" != 0 &&
2560 $as_echo "$as_me: caught signal $ac_signal"
2561 $as_echo "$as_me: exit $exit_status"
2562 } >&5
2563 rm -f core *.core core.conftest.* &&
2564 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2565 exit $exit_status
2566' 0
2567for ac_signal in 1 2 13 15; do
2568 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2569done
2570ac_signal=0
2571
2572# confdefs.h avoids OS command line length limits that DEFS can exceed.
2573rm -f -r conftest* confdefs.h
2574
2575$as_echo "/* confdefs.h */" > confdefs.h
2576
2577# Predefined preprocessor variables.
2578
2579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_NAME "$PACKAGE_NAME"
2581_ACEOF
2582
2583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2585_ACEOF
2586
2587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE_VERSION "$PACKAGE_VERSION"
2589_ACEOF
2590
2591cat >>confdefs.h <<_ACEOF
2592#define PACKAGE_STRING "$PACKAGE_STRING"
2593_ACEOF
2594
2595cat >>confdefs.h <<_ACEOF
2596#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2597_ACEOF
2598
2599cat >>confdefs.h <<_ACEOF
2600#define PACKAGE_URL "$PACKAGE_URL"
2601_ACEOF
2602
2603
2604# Let the site file select an alternate cache file if it wants to.
2605# Prefer an explicitly selected file to automatically selected ones.
2606ac_site_file1=NONE
2607ac_site_file2=NONE
2608if test -n "$CONFIG_SITE"; then
2609 # We do not want a PATH search for config.site.
2610 case $CONFIG_SITE in #((
2611 -*) ac_site_file1=./$CONFIG_SITE;;
2612 */*) ac_site_file1=$CONFIG_SITE;;
2613 *) ac_site_file1=./$CONFIG_SITE;;
2614 esac
2615elif test "x$prefix" != xNONE; then
2616 ac_site_file1=$prefix/share/config.site
2617 ac_site_file2=$prefix/etc/config.site
2618else
2619 ac_site_file1=$ac_default_prefix/share/config.site
2620 ac_site_file2=$ac_default_prefix/etc/config.site
2621fi
2622for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2623do
2624 test "x$ac_site_file" = xNONE && continue
2625 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2627$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2628 sed 's/^/| /' "$ac_site_file" >&5
2629 . "$ac_site_file" \
2630 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632as_fn_error $? "failed to load site script $ac_site_file
2633See \`config.log' for more details" "$LINENO" 5; }
2634 fi
2635done
2636
2637if test -r "$cache_file"; then
2638 # Some versions of bash will fail to source /dev/null (special files
2639 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2640 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2642$as_echo "$as_me: loading cache $cache_file" >&6;}
2643 case $cache_file in
2644 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2645 *) . "./$cache_file";;
2646 esac
2647 fi
2648else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2650$as_echo "$as_me: creating cache $cache_file" >&6;}
2651 >$cache_file
2652fi
2653
05ea2a05
TT
2654as_fn_append ac_header_list " stdlib.h"
2655as_fn_append ac_header_list " unistd.h"
2656as_fn_append ac_header_list " sys/param.h"
01027315
TT
2657# Check that the precious variables saved in the cache have kept the same
2658# value.
2659ac_cache_corrupted=false
2660for ac_var in $ac_precious_vars; do
2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
2665 case $ac_old_set,$ac_new_set in
2666 set,)
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2668$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2670 ,set)
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2672$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2674 ,);;
2675 *)
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
2677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x $ac_old_val`
2679 ac_new_val_w=`echo x $ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2683 ac_cache_corrupted=:
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2686$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2688 fi
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2690$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2692$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2693 fi;;
2694 esac
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2697 case $ac_new_val in
2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2699 *) ac_arg=$ac_var=$ac_new_val ;;
2700 esac
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2704 esac
2705 fi
2706done
2707if $ac_cache_corrupted; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2712 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2713fi
2714## -------------------- ##
2715## Main body of script. ##
2716## -------------------- ##
2717
2718ac_ext=c
2719ac_cpp='$CPP $CPPFLAGS'
2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
2724
2725
2726
2727
2728
3684d331 2729ac_config_headers="$ac_config_headers config.h:config.in"
01027315 2730
91e1a0ed
SM
2731
2732# Set build, build_cpu, build_vendor and build_os.
01027315
TT
2733ac_aux_dir=
2734for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2735 if test -f "$ac_dir/install-sh"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/install-sh -c"
2738 break
2739 elif test -f "$ac_dir/install.sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install.sh -c"
2742 break
2743 elif test -f "$ac_dir/shtool"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/shtool install -c"
2746 break
2747 fi
2748done
2749if test -z "$ac_aux_dir"; then
2750 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2751fi
2752
2753# These three variables are undocumented and unsupported,
2754# and are intended to be withdrawn in a future Autoconf release.
2755# They can cause serious problems if a builder's source tree is in a directory
2756# whose full name contains unusual characters.
2757ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2758ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2759ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2760
2761
2762# Make sure we can run config.sub.
2763$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2765
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2767$as_echo_n "checking build system type... " >&6; }
2768if ${ac_cv_build+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 ac_build_alias=$build_alias
2772test "x$ac_build_alias" = x &&
2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2774test "x$ac_build_alias" = x &&
2775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2776ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2778
2779fi
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2781$as_echo "$ac_cv_build" >&6; }
2782case $ac_cv_build in
2783*-*-*) ;;
2784*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2785esac
2786build=$ac_cv_build
2787ac_save_IFS=$IFS; IFS='-'
2788set x $ac_cv_build
2789shift
2790build_cpu=$1
2791build_vendor=$2
2792shift; shift
2793# Remember, the first character of IFS is used to create $*,
2794# except with old shells:
2795build_os=$*
2796IFS=$ac_save_IFS
2797case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2798
2799
91e1a0ed
SM
2800
2801# Set host, host_cpu, host_vendor, and host_os.
01027315
TT
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2803$as_echo_n "checking host system type... " >&6; }
2804if ${ac_cv_host+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806else
2807 if test "x$host_alias" = x; then
2808 ac_cv_host=$ac_cv_build
2809else
2810 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2812fi
2813
2814fi
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2816$as_echo "$ac_cv_host" >&6; }
2817case $ac_cv_host in
2818*-*-*) ;;
2819*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2820esac
2821host=$ac_cv_host
2822ac_save_IFS=$IFS; IFS='-'
2823set x $ac_cv_host
2824shift
2825host_cpu=$1
2826host_vendor=$2
2827shift; shift
2828# Remember, the first character of IFS is used to create $*,
2829# except with old shells:
2830host_os=$*
2831IFS=$ac_save_IFS
2832case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2833
2834
91e1a0ed
SM
2835
2836# Set target, target_cpu, target_vendor, and target_os.
01027315
TT
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2838$as_echo_n "checking target system type... " >&6; }
2839if ${ac_cv_target+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841else
2842 if test "x$target_alias" = x; then
2843 ac_cv_target=$ac_cv_host
2844else
2845 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2847fi
2848
2849fi
2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2851$as_echo "$ac_cv_target" >&6; }
2852case $ac_cv_target in
2853*-*-*) ;;
2854*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2855esac
2856target=$ac_cv_target
2857ac_save_IFS=$IFS; IFS='-'
2858set x $ac_cv_target
2859shift
2860target_cpu=$1
2861target_vendor=$2
2862shift; shift
2863# Remember, the first character of IFS is used to create $*,
2864# except with old shells:
2865target_os=$*
2866IFS=$ac_save_IFS
2867case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2868
2869
2870# The aliases save the names the user supplied, while $host etc.
2871# will get canonicalized.
2872test -n "$target_alias" &&
2873 test "$program_prefix$program_suffix$program_transform_name" = \
2874 NONENONEs,x,x, &&
2875 program_prefix=${target_alias}-
2876
2877
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2879$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2880 # Check whether --enable-maintainer-mode was given.
2881if test "${enable_maintainer_mode+set}" = set; then :
2882 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2883else
2884 USE_MAINTAINER_MODE=no
2885fi
2886
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2888$as_echo "$USE_MAINTAINER_MODE" >&6; }
2889 if test $USE_MAINTAINER_MODE = yes; then
2890 MAINTAINER_MODE_TRUE=
2891 MAINTAINER_MODE_FALSE='#'
2892else
2893 MAINTAINER_MODE_TRUE='#'
2894 MAINTAINER_MODE_FALSE=
2895fi
2896
2897 MAINT=$MAINTAINER_MODE_TRUE
2898
2899
2900ac_aux_dir=
2901for ac_dir in .. "$srcdir"/..; do
2902 if test -f "$ac_dir/install-sh"; then
2903 ac_aux_dir=$ac_dir
2904 ac_install_sh="$ac_aux_dir/install-sh -c"
2905 break
2906 elif test -f "$ac_dir/install.sh"; then
2907 ac_aux_dir=$ac_dir
2908 ac_install_sh="$ac_aux_dir/install.sh -c"
2909 break
2910 elif test -f "$ac_dir/shtool"; then
2911 ac_aux_dir=$ac_dir
2912 ac_install_sh="$ac_aux_dir/shtool install -c"
2913 break
2914 fi
2915done
2916if test -z "$ac_aux_dir"; then
2917 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2918fi
2919
2920# These three variables are undocumented and unsupported,
2921# and are intended to be withdrawn in a future Autoconf release.
2922# They can cause serious problems if a builder's source tree is in a directory
2923# whose full name contains unusual characters.
2924ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2925ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2926ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2927
2928
2929am__api_version='1.15'
2930
2931# Find a good install program. We prefer a C program (faster),
2932# so one script is as good as another. But avoid the broken or
2933# incompatible versions:
2934# SysV /etc/install, /usr/sbin/install
2935# SunOS /usr/etc/install
2936# IRIX /sbin/install
2937# AIX /bin/install
2938# AmigaOS /C/install, which installs bootblocks on floppy discs
2939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2940# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2942# OS/2's system install, which has a completely different semantic
2943# ./install, which can be erroneously created by make from ./install.sh.
2944# Reject install programs that cannot install multiple files.
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2946$as_echo_n "checking for a BSD-compatible install... " >&6; }
2947if test -z "$INSTALL"; then
2948if ${ac_cv_path_install+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 # Account for people who put trailing slashes in PATH elements.
2957case $as_dir/ in #((
2958 ./ | .// | /[cC]/* | \
2959 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2960 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2961 /usr/ucb/* ) ;;
2962 *)
2963 # OSF1 and SCO ODT 3.0 have their own names for install.
2964 # Don't use installbsd from OSF since it installs stuff as root
2965 # by default.
2966 for ac_prog in ginstall scoinst install; do
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2969 if test $ac_prog = install &&
2970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2971 # AIX install. It has an incompatible calling convention.
2972 :
2973 elif test $ac_prog = install &&
2974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975 # program-specific install script used by HP pwplus--don't use.
2976 :
2977 else
2978 rm -rf conftest.one conftest.two conftest.dir
2979 echo one > conftest.one
2980 echo two > conftest.two
2981 mkdir conftest.dir
2982 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2983 test -s conftest.one && test -s conftest.two &&
2984 test -s conftest.dir/conftest.one &&
2985 test -s conftest.dir/conftest.two
2986 then
2987 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2988 break 3
2989 fi
2990 fi
2991 fi
2992 done
2993 done
2994 ;;
2995esac
2996
2997 done
2998IFS=$as_save_IFS
2999
3000rm -rf conftest.one conftest.two conftest.dir
3001
3002fi
3003 if test "${ac_cv_path_install+set}" = set; then
3004 INSTALL=$ac_cv_path_install
3005 else
3006 # As a last resort, use the slow shell script. Don't cache a
3007 # value for INSTALL within a source directory, because that will
3008 # break other packages using the cache if that directory is
3009 # removed, or if the value is a relative name.
3010 INSTALL=$ac_install_sh
3011 fi
3012fi
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3014$as_echo "$INSTALL" >&6; }
3015
3016# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3017# It thinks the first close brace ends the variable substitution.
3018test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3019
3020test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3021
3022test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3023
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3025$as_echo_n "checking whether build environment is sane... " >&6; }
3026# Reject unsafe characters in $srcdir or the absolute working directory
3027# name. Accept space and tab only in the latter.
3028am_lf='
3029'
3030case `pwd` in
3031 *[\\\"\#\$\&\'\`$am_lf]*)
3032 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3033esac
3034case $srcdir in
3035 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3036 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3037esac
3038
3039# Do 'set' in a subshell so we don't clobber the current shell's
3040# arguments. Must try -L first in case configure is actually a
3041# symlink; some systems play weird games with the mod time of symlinks
3042# (eg FreeBSD returns the mod time of the symlink's containing
3043# directory).
3044if (
3045 am_has_slept=no
3046 for am_try in 1 2; do
3047 echo "timestamp, slept: $am_has_slept" > conftest.file
3048 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3049 if test "$*" = "X"; then
3050 # -L didn't work.
3051 set X `ls -t "$srcdir/configure" conftest.file`
3052 fi
3053 if test "$*" != "X $srcdir/configure conftest.file" \
3054 && test "$*" != "X conftest.file $srcdir/configure"; then
3055
3056 # If neither matched, then we have a broken ls. This can happen
3057 # if, for instance, CONFIG_SHELL is bash and it inherits a
3058 # broken ls alias from the environment. This has actually
3059 # happened. Such a system could not be considered "sane".
3060 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3061 alias in your environment" "$LINENO" 5
3062 fi
3063 if test "$2" = conftest.file || test $am_try -eq 2; then
3064 break
3065 fi
3066 # Just in case.
3067 sleep 1
3068 am_has_slept=yes
3069 done
3070 test "$2" = conftest.file
3071 )
3072then
3073 # Ok.
3074 :
3075else
3076 as_fn_error $? "newly created file is older than distributed files!
3077Check your system clock" "$LINENO" 5
3078fi
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3080$as_echo "yes" >&6; }
3081# If we didn't sleep, we still need to ensure time stamps of config.status and
3082# generated files are strictly newer.
3083am_sleep_pid=
3084if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3085 ( sleep 1 ) &
3086 am_sleep_pid=$!
3087fi
3088
3089rm -f conftest.file
3090
3091test "$program_prefix" != NONE &&
3092 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3093# Use a double $ so make ignores it.
3094test "$program_suffix" != NONE &&
3095 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3096# Double any \ or $.
3097# By default was `s,x,x', remove it if useless.
3098ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3099program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3100
3101# Expand $ac_aux_dir to an absolute path.
3102am_aux_dir=`cd "$ac_aux_dir" && pwd`
3103
3104if test x"${MISSING+set}" != xset; then
3105 case $am_aux_dir in
3106 *\ * | *\ *)
3107 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3108 *)
3109 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3110 esac
3111fi
3112# Use eval to expand $SHELL
3113if eval "$MISSING --is-lightweight"; then
3114 am_missing_run="$MISSING "
3115else
3116 am_missing_run=
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3118$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3119fi
3120
3121if test x"${install_sh+set}" != xset; then
3122 case $am_aux_dir in
3123 *\ * | *\ *)
3124 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3125 *)
3126 install_sh="\${SHELL} $am_aux_dir/install-sh"
3127 esac
3128fi
3129
3130# Installed binaries are usually stripped using 'strip' when the user
3131# run "make install-strip". However 'strip' might not be the right
3132# tool to use in cross-compilation environments, therefore Automake
3133# will honor the 'STRIP' environment variable to overrule this program.
3134if test "$cross_compiling" != no; then
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3137set dummy ${ac_tool_prefix}strip; ac_word=$2
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if ${ac_cv_prog_STRIP+:} false; then :
3141 $as_echo_n "(cached) " >&6
3142else
3143 if test -n "$STRIP"; then
3144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3156 fi
3157done
3158 done
3159IFS=$as_save_IFS
3160
3161fi
3162fi
3163STRIP=$ac_cv_prog_STRIP
3164if test -n "$STRIP"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3166$as_echo "$STRIP" >&6; }
3167else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
3170fi
3171
3172
3173fi
3174if test -z "$ac_cv_prog_STRIP"; then
3175 ac_ct_STRIP=$STRIP
3176 # Extract the first word of "strip", so it can be a program name with args.
3177set dummy strip; ac_word=$2
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179$as_echo_n "checking for $ac_word... " >&6; }
3180if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182else
3183 if test -n "$ac_ct_STRIP"; then
3184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3185else
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_ac_ct_STRIP="strip"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197done
3198 done
3199IFS=$as_save_IFS
3200
3201fi
3202fi
3203ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3204if test -n "$ac_ct_STRIP"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3206$as_echo "$ac_ct_STRIP" >&6; }
3207else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210fi
3211
3212 if test "x$ac_ct_STRIP" = x; then
3213 STRIP=":"
3214 else
3215 case $cross_compiling:$ac_tool_warned in
3216yes:)
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219ac_tool_warned=yes ;;
3220esac
3221 STRIP=$ac_ct_STRIP
3222 fi
3223else
3224 STRIP="$ac_cv_prog_STRIP"
3225fi
3226
3227fi
3228INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3229
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3231$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3232if test -z "$MKDIR_P"; then
3233 if ${ac_cv_path_mkdir+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3238do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_prog in mkdir gmkdir; do
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3244 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3245 'mkdir (GNU coreutils) '* | \
3246 'mkdir (coreutils) '* | \
3247 'mkdir (fileutils) '4.1*)
3248 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3249 break 3;;
3250 esac
3251 done
3252 done
3253 done
3254IFS=$as_save_IFS
3255
3256fi
3257
3258 test -d ./--version && rmdir ./--version
3259 if test "${ac_cv_path_mkdir+set}" = set; then
3260 MKDIR_P="$ac_cv_path_mkdir -p"
3261 else
3262 # As a last resort, use the slow shell script. Don't cache a
3263 # value for MKDIR_P within a source directory, because that will
3264 # break other packages using the cache if that directory is
3265 # removed, or if the value is a relative name.
3266 MKDIR_P="$ac_install_sh -d"
3267 fi
3268fi
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3270$as_echo "$MKDIR_P" >&6; }
3271
3272for ac_prog in gawk mawk nawk awk
3273do
3274 # Extract the first word of "$ac_prog", so it can be a program name with args.
3275set dummy $ac_prog; ac_word=$2
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277$as_echo_n "checking for $ac_word... " >&6; }
3278if ${ac_cv_prog_AWK+:} false; then :
3279 $as_echo_n "(cached) " >&6
3280else
3281 if test -n "$AWK"; then
3282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3283else
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_AWK="$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295done
3296 done
3297IFS=$as_save_IFS
3298
3299fi
3300fi
3301AWK=$ac_cv_prog_AWK
3302if test -n "$AWK"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3304$as_echo "$AWK" >&6; }
3305else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308fi
3309
3310
3311 test -n "$AWK" && break
3312done
3313
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3315$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3316set x ${MAKE-make}
3317ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3318if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320else
3321 cat >conftest.make <<\_ACEOF
3322SHELL = /bin/sh
3323all:
3324 @echo '@@@%%%=$(MAKE)=@@@%%%'
3325_ACEOF
3326# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3327case `${MAKE-make} -f conftest.make 2>/dev/null` in
3328 *@@@%%%=?*=@@@%%%*)
3329 eval ac_cv_prog_make_${ac_make}_set=yes;;
3330 *)
3331 eval ac_cv_prog_make_${ac_make}_set=no;;
3332esac
3333rm -f conftest.make
3334fi
3335if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337$as_echo "yes" >&6; }
3338 SET_MAKE=
3339else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341$as_echo "no" >&6; }
3342 SET_MAKE="MAKE=${MAKE-make}"
3343fi
3344
3345rm -rf .tst 2>/dev/null
3346mkdir .tst 2>/dev/null
3347if test -d .tst; then
3348 am__leading_dot=.
3349else
3350 am__leading_dot=_
3351fi
3352rmdir .tst 2>/dev/null
3353
3354# Check whether --enable-silent-rules was given.
3355if test "${enable_silent_rules+set}" = set; then :
3356 enableval=$enable_silent_rules;
3357fi
3358
3359case $enable_silent_rules in # (((
3360 yes) AM_DEFAULT_VERBOSITY=0;;
3361 no) AM_DEFAULT_VERBOSITY=1;;
3362 *) AM_DEFAULT_VERBOSITY=1;;
3363esac
3364am_make=${MAKE-make}
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3366$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3367if ${am_cv_make_support_nested_variables+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369else
3370 if $as_echo 'TRUE=$(BAR$(V))
3371BAR0=false
3372BAR1=true
3373V=1
3374am__doit:
3375 @$(TRUE)
3376.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3377 am_cv_make_support_nested_variables=yes
3378else
3379 am_cv_make_support_nested_variables=no
3380fi
3381fi
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3383$as_echo "$am_cv_make_support_nested_variables" >&6; }
3384if test $am_cv_make_support_nested_variables = yes; then
3385 AM_V='$(V)'
3386 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3387else
3388 AM_V=$AM_DEFAULT_VERBOSITY
3389 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3390fi
3391AM_BACKSLASH='\'
3392
3393if test "`cd $srcdir && pwd`" != "`pwd`"; then
3394 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3395 # is not polluted with repeated "-I."
3396 am__isrc=' -I$(srcdir)'
3397 # test to see if srcdir already configured
3398 if test -f $srcdir/config.status; then
3399 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3400 fi
3401fi
3402
3403# test whether we have cygpath
3404if test -z "$CYGPATH_W"; then
3405 if (cygpath --version) >/dev/null 2>/dev/null; then
3406 CYGPATH_W='cygpath -w'
3407 else
3408 CYGPATH_W=echo
3409 fi
3410fi
3411
3412
3413# Define the identity of the package.
3414 PACKAGE='gdbsupport'
3415 VERSION='1.0'
3416
3417
3418cat >>confdefs.h <<_ACEOF
3419#define PACKAGE "$PACKAGE"
3420_ACEOF
3421
3422
3423cat >>confdefs.h <<_ACEOF
3424#define VERSION "$VERSION"
3425_ACEOF
3426
3427# Some tools Automake needs.
3428
3429ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3430
3431
3432AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3433
3434
3435AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3436
3437
3438AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3439
3440
3441MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3442
3443# For better backward compatibility. To be removed once Automake 1.9.x
3444# dies out for good. For more background, see:
3445# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3446# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3447mkdir_p='$(MKDIR_P)'
3448
3449# We need awk for the "check" target (and possibly the TAP driver). The
3450# system "awk" is bad on some platforms.
3451# Always define AMTAR for backward compatibility. Yes, it's still used
3452# in the wild :-( We should find a proper way to deprecate it ...
3453AMTAR='$${TAR-tar}'
3454
3455
3456# We'll loop over all known methods to create a tar archive until one works.
3457_am_tools='gnutar pax cpio none'
3458
3459am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3460
3461
3462
3463
3464
3465
3466# POSIX will say in a future version that running "rm -f" with no argument
3467# is OK; and we want to be able to make that assumption in our Makefile
3468# recipes. So use an aggressive probe to check that the usage we want is
3469# actually supported "in the wild" to an acceptable degree.
3470# See automake bug#10828.
3471# To make any issue more visible, cause the running configure to be aborted
3472# by default if the 'rm' program in use doesn't match our expectations; the
3473# user can still override this though.
3474if rm -f && rm -fr && rm -rf; then : OK; else
3475 cat >&2 <<'END'
3476Oops!
3477
3478Your 'rm' program seems unable to run without file operands specified
3479on the command line, even when the '-f' option is present. This is contrary
3480to the behaviour of most rm programs out there, and not conforming with
3481the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3482
3483Please tell bug-automake@gnu.org about your system, including the value
3484of your $PATH and any error possibly output before this message. This
3485can help us improve future automake versions.
3486
3487END
3488 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3489 echo 'Configuration will proceed anyway, since you have set the' >&2
3490 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3491 echo >&2
3492 else
3493 cat >&2 <<'END'
3494Aborting the configuration process, to ensure you take notice of the issue.
3495
3496You can download and install GNU coreutils to get an 'rm' implementation
3497that behaves properly: <http://www.gnu.org/software/coreutils/>.
3498
3499If you want to complete the configuration process using your problematic
3500'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3501to "yes", and re-run configure.
3502
3503END
3504 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3505 fi
3506fi
3507
3508# Check whether --enable-silent-rules was given.
3509if test "${enable_silent_rules+set}" = set; then :
3510 enableval=$enable_silent_rules;
3511fi
3512
3513case $enable_silent_rules in # (((
3514 yes) AM_DEFAULT_VERBOSITY=0;;
3515 no) AM_DEFAULT_VERBOSITY=1;;
3516 *) AM_DEFAULT_VERBOSITY=0;;
3517esac
3518am_make=${MAKE-make}
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3520$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3521if ${am_cv_make_support_nested_variables+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523else
3524 if $as_echo 'TRUE=$(BAR$(V))
3525BAR0=false
3526BAR1=true
3527V=1
3528am__doit:
3529 @$(TRUE)
3530.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3531 am_cv_make_support_nested_variables=yes
3532else
3533 am_cv_make_support_nested_variables=no
3534fi
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3537$as_echo "$am_cv_make_support_nested_variables" >&6; }
3538if test $am_cv_make_support_nested_variables = yes; then
3539 AM_V='$(V)'
3540 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3541else
3542 AM_V=$AM_DEFAULT_VERBOSITY
3543 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3544fi
3545AM_BACKSLASH='\'
3546
3547
3548ac_ext=c
3549ac_cpp='$CPP $CPPFLAGS'
3550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3555set dummy ${ac_tool_prefix}gcc; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; }
3558if ${ac_cv_prog_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576 done
3577IFS=$as_save_IFS
3578
3579fi
3580fi
3581CC=$ac_cv_prog_CC
3582if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584$as_echo "$CC" >&6; }
3585else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587$as_echo "no" >&6; }
3588fi
3589
3590
3591fi
3592if test -z "$ac_cv_prog_CC"; then
3593 ac_ct_CC=$CC
3594 # Extract the first word of "gcc", so it can be a program name with args.
3595set dummy gcc; ac_word=$2
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597$as_echo_n "checking for $ac_word... " >&6; }
3598if ${ac_cv_prog_ac_ct_CC+:} false; then :
3599 $as_echo_n "(cached) " >&6
3600else
3601 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3603else
3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH
3606do
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611 ac_cv_prog_ac_ct_CC="gcc"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3614 fi
3615done
3616 done
3617IFS=$as_save_IFS
3618
3619fi
3620fi
3621ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624$as_echo "$ac_ct_CC" >&6; }
3625else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627$as_echo "no" >&6; }
3628fi
3629
3630 if test "x$ac_ct_CC" = x; then
3631 CC=""
3632 else
3633 case $cross_compiling:$ac_tool_warned in
3634yes:)
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3637ac_tool_warned=yes ;;
3638esac
3639 CC=$ac_ct_CC
3640 fi
3641else
3642 CC="$ac_cv_prog_CC"
3643fi
3644
3645if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3647 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3648set dummy ${ac_tool_prefix}cc; ac_word=$2
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650$as_echo_n "checking for $ac_word... " >&6; }
3651if ${ac_cv_prog_CC+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653else
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3656else
3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658for as_dir in $PATH
3659do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_CC="${ac_tool_prefix}cc"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668done
3669 done
3670IFS=$as_save_IFS
3671
3672fi
3673fi
3674CC=$ac_cv_prog_CC
3675if test -n "$CC"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677$as_echo "$CC" >&6; }
3678else
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680$as_echo "no" >&6; }
3681fi
3682
3683
3684 fi
3685fi
3686if test -z "$CC"; then
3687 # Extract the first word of "cc", so it can be a program name with args.
3688set dummy cc; ac_word=$2
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690$as_echo_n "checking for $ac_word... " >&6; }
3691if ${ac_cv_prog_CC+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696else
3697 ac_prog_rejected=no
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH
3700do
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3706 ac_prog_rejected=yes
3707 continue
3708 fi
3709 ac_cv_prog_CC="cc"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3712 fi
3713done
3714 done
3715IFS=$as_save_IFS
3716
3717if test $ac_prog_rejected = yes; then
3718 # We found a bogon in the path, so make sure we never use it.
3719 set dummy $ac_cv_prog_CC
3720 shift
3721 if test $# != 0; then
3722 # We chose a different compiler from the bogus one.
3723 # However, it has the same basename, so the bogon will be chosen
3724 # first if we set CC to just the basename; use the full file name.
3725 shift
3726 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3727 fi
3728fi
3729fi
3730fi
3731CC=$ac_cv_prog_CC
3732if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734$as_echo "$CC" >&6; }
3735else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737$as_echo "no" >&6; }
3738fi
3739
3740
3741fi
3742if test -z "$CC"; then
3743 if test -n "$ac_tool_prefix"; then
3744 for ac_prog in cl.exe
3745 do
3746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3747set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749$as_echo_n "checking for $ac_word... " >&6; }
3750if ${ac_cv_prog_CC+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752else
3753 if test -n "$CC"; then
3754 ac_cv_prog_CC="$CC" # Let the user override the test.
3755else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3766 fi
3767done
3768 done
3769IFS=$as_save_IFS
3770
3771fi
3772fi
3773CC=$ac_cv_prog_CC
3774if test -n "$CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776$as_echo "$CC" >&6; }
3777else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779$as_echo "no" >&6; }
3780fi
3781
3782
3783 test -n "$CC" && break
3784 done
3785fi
3786if test -z "$CC"; then
3787 ac_ct_CC=$CC
3788 for ac_prog in cl.exe
3789do
3790 # Extract the first word of "$ac_prog", so it can be a program name with args.
3791set dummy $ac_prog; ac_word=$2
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793$as_echo_n "checking for $ac_word... " >&6; }
3794if ${ac_cv_prog_ac_ct_CC+:} false; then :
3795 $as_echo_n "(cached) " >&6
3796else
3797 if test -n "$ac_ct_CC"; then
3798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_ac_ct_CC="$ac_prog"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 break 2
3810 fi
3811done
3812 done
3813IFS=$as_save_IFS
3814
3815fi
3816fi
3817ac_ct_CC=$ac_cv_prog_ac_ct_CC
3818if test -n "$ac_ct_CC"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3820$as_echo "$ac_ct_CC" >&6; }
3821else
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823$as_echo "no" >&6; }
3824fi
3825
3826
3827 test -n "$ac_ct_CC" && break
3828done
3829
3830 if test "x$ac_ct_CC" = x; then
3831 CC=""
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834yes:)
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837ac_tool_warned=yes ;;
3838esac
3839 CC=$ac_ct_CC
3840 fi
3841fi
3842
3843fi
3844
3845
3846test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848as_fn_error $? "no acceptable C compiler found in \$PATH
3849See \`config.log' for more details" "$LINENO" 5; }
3850
3851# Provide some information about the compiler.
3852$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3853set X $ac_compile
3854ac_compiler=$2
3855for ac_option in --version -v -V -qversion; do
3856 { { ac_try="$ac_compiler $ac_option >&5"
3857case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862$as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3864 ac_status=$?
3865 if test -s conftest.err; then
3866 sed '10a\
3867... rest of stderr output deleted ...
3868 10q' conftest.err >conftest.er1
3869 cat conftest.er1 >&5
3870 fi
3871 rm -f conftest.er1 conftest.err
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }
3874done
3875
3876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887ac_clean_files_save=$ac_clean_files
3888ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3889# Try to create an executable without -o first, disregard a.out.
3890# It will help us diagnose broken compilers, and finding out an intuition
3891# of exeext.
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3893$as_echo_n "checking whether the C compiler works... " >&6; }
3894ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3895
3896# The possible output files:
3897ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3898
3899ac_rmfiles=
3900for ac_file in $ac_files
3901do
3902 case $ac_file in
3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3904 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3905 esac
3906done
3907rm -f $ac_rmfiles
3908
3909if { { ac_try="$ac_link_default"
3910case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913esac
3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915$as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link_default") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; then :
3920 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3921# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3922# in a Makefile. We should not override ac_cv_exeext if it was cached,
3923# so that the user can short-circuit this test for compilers unknown to
3924# Autoconf.
3925for ac_file in $ac_files ''
3926do
3927 test -f "$ac_file" || continue
3928 case $ac_file in
3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3930 ;;
3931 [ab].out )
3932 # We found the default executable, but exeext='' is most
3933 # certainly right.
3934 break;;
3935 *.* )
3936 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3937 then :; else
3938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3939 fi
3940 # We set ac_cv_exeext here because the later test for it is not
3941 # safe: cross compilers may not add the suffix if given an `-o'
3942 # argument, so we may need to know it at that point already.
3943 # Even if this section looks crufty: it has the advantage of
3944 # actually working.
3945 break;;
3946 * )
3947 break;;
3948 esac
3949done
3950test "$ac_cv_exeext" = no && ac_cv_exeext=
3951
3952else
3953 ac_file=''
3954fi
3955if test -z "$ac_file"; then :
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; }
3958$as_echo "$as_me: failed program was:" >&5
3959sed 's/^/| /' conftest.$ac_ext >&5
3960
3961{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963as_fn_error 77 "C compiler cannot create executables
3964See \`config.log' for more details" "$LINENO" 5; }
3965else
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3967$as_echo "yes" >&6; }
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3970$as_echo_n "checking for C compiler default output file name... " >&6; }
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3972$as_echo "$ac_file" >&6; }
3973ac_exeext=$ac_cv_exeext
3974
3975rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3976ac_clean_files=$ac_clean_files_save
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3978$as_echo_n "checking for suffix of executables... " >&6; }
3979if { { ac_try="$ac_link"
3980case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983esac
3984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985$as_echo "$ac_try_echo"; } >&5
3986 (eval "$ac_link") 2>&5
3987 ac_status=$?
3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }; then :
3990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3991# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3992# work properly (i.e., refer to `conftest.exe'), while it won't with
3993# `rm'.
3994for ac_file in conftest.exe conftest conftest.*; do
3995 test -f "$ac_file" || continue
3996 case $ac_file in
3997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3999 break;;
4000 * ) break;;
4001 esac
4002done
4003else
4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4006as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4007See \`config.log' for more details" "$LINENO" 5; }
4008fi
4009rm -f conftest conftest$ac_cv_exeext
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4011$as_echo "$ac_cv_exeext" >&6; }
4012
4013rm -f conftest.$ac_ext
4014EXEEXT=$ac_cv_exeext
4015ac_exeext=$EXEEXT
4016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h. */
4018#include <stdio.h>
4019int
4020main ()
4021{
4022FILE *f = fopen ("conftest.out", "w");
4023 return ferror (f) || fclose (f) != 0;
4024
4025 ;
4026 return 0;
4027}
4028_ACEOF
4029ac_clean_files="$ac_clean_files conftest.out"
4030# Check that the compiler produces executables we can run. If not, either
4031# the compiler is broken, or we cross compile.
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4033$as_echo_n "checking whether we are cross compiling... " >&6; }
4034if test "$cross_compiling" != yes; then
4035 { { ac_try="$ac_link"
4036case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039esac
4040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041$as_echo "$ac_try_echo"; } >&5
4042 (eval "$ac_link") 2>&5
4043 ac_status=$?
4044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045 test $ac_status = 0; }
4046 if { ac_try='./conftest$ac_cv_exeext'
4047 { { case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050esac
4051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052$as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; }; then
4057 cross_compiling=no
4058 else
4059 if test "$cross_compiling" = maybe; then
4060 cross_compiling=yes
4061 else
4062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064as_fn_error $? "cannot run C compiled programs.
4065If you meant to cross compile, use \`--host'.
4066See \`config.log' for more details" "$LINENO" 5; }
4067 fi
4068 fi
4069fi
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4071$as_echo "$cross_compiling" >&6; }
4072
4073rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4074ac_clean_files=$ac_clean_files_save
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4076$as_echo_n "checking for suffix of object files... " >&6; }
4077if ${ac_cv_objext+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079else
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h. */
4082
4083int
4084main ()
4085{
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091rm -f conftest.o conftest.obj
4092if { { ac_try="$ac_compile"
4093case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098$as_echo "$ac_try_echo"; } >&5
4099 (eval "$ac_compile") 2>&5
4100 ac_status=$?
4101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4102 test $ac_status = 0; }; then :
4103 for ac_file in conftest.o conftest.obj conftest.*; do
4104 test -f "$ac_file" || continue;
4105 case $ac_file in
4106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4107 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4108 break;;
4109 esac
4110done
4111else
4112 $as_echo "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4117as_fn_error $? "cannot compute suffix of object files: cannot compile
4118See \`config.log' for more details" "$LINENO" 5; }
4119fi
4120rm -f conftest.$ac_cv_objext conftest.$ac_ext
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4123$as_echo "$ac_cv_objext" >&6; }
4124OBJEXT=$ac_cv_objext
4125ac_objext=$OBJEXT
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4127$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4128if ${ac_cv_c_compiler_gnu+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130else
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132/* end confdefs.h. */
4133
4134int
4135main ()
4136{
4137#ifndef __GNUC__
4138 choke me
4139#endif
4140
4141 ;
4142 return 0;
4143}
4144_ACEOF
4145if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_compiler_gnu=yes
4147else
4148 ac_compiler_gnu=no
4149fi
4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151ac_cv_c_compiler_gnu=$ac_compiler_gnu
4152
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4155$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4156if test $ac_compiler_gnu = yes; then
4157 GCC=yes
4158else
4159 GCC=
4160fi
4161ac_test_CFLAGS=${CFLAGS+set}
4162ac_save_CFLAGS=$CFLAGS
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4164$as_echo_n "checking whether $CC accepts -g... " >&6; }
4165if ${ac_cv_prog_cc_g+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167else
4168 ac_save_c_werror_flag=$ac_c_werror_flag
4169 ac_c_werror_flag=yes
4170 ac_cv_prog_cc_g=no
4171 CFLAGS="-g"
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h. */
4174
4175int
4176main ()
4177{
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183if ac_fn_c_try_compile "$LINENO"; then :
4184 ac_cv_prog_cc_g=yes
4185else
4186 CFLAGS=""
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h. */
4189
4190int
4191main ()
4192{
4193
4194 ;
4195 return 0;
4196}
4197_ACEOF
4198if ac_fn_c_try_compile "$LINENO"; then :
4199
4200else
4201 ac_c_werror_flag=$ac_save_c_werror_flag
4202 CFLAGS="-g"
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */
4205
4206int
4207main ()
4208{
4209
4210 ;
4211 return 0;
4212}
4213_ACEOF
4214if ac_fn_c_try_compile "$LINENO"; then :
4215 ac_cv_prog_cc_g=yes
4216fi
4217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218fi
4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220fi
4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 ac_c_werror_flag=$ac_save_c_werror_flag
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4225$as_echo "$ac_cv_prog_cc_g" >&6; }
4226if test "$ac_test_CFLAGS" = set; then
4227 CFLAGS=$ac_save_CFLAGS
4228elif test $ac_cv_prog_cc_g = yes; then
4229 if test "$GCC" = yes; then
4230 CFLAGS="-g -O2"
4231 else
4232 CFLAGS="-g"
4233 fi
4234else
4235 if test "$GCC" = yes; then
4236 CFLAGS="-O2"
4237 else
4238 CFLAGS=
4239 fi
4240fi
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4242$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4243if ${ac_cv_prog_cc_c89+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245else
4246 ac_cv_prog_cc_c89=no
4247ac_save_CC=$CC
4248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h. */
4250#include <stdarg.h>
4251#include <stdio.h>
4252struct stat;
4253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4254struct buf { int x; };
4255FILE * (*rcsopen) (struct buf *, struct stat *, int);
4256static char *e (p, i)
4257 char **p;
4258 int i;
4259{
4260 return p[i];
4261}
4262static char *f (char * (*g) (char **, int), char **p, ...)
4263{
4264 char *s;
4265 va_list v;
4266 va_start (v,p);
4267 s = g (p, va_arg (v,int));
4268 va_end (v);
4269 return s;
4270}
4271
4272/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4273 function prototypes and stuff, but not '\xHH' hex character constants.
4274 These don't provoke an error unfortunately, instead are silently treated
4275 as 'x'. The following induces an error, until -std is added to get
4276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4277 array size at least. It's necessary to write '\x00'==0 to get something
4278 that's true only with -std. */
4279int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4280
4281/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4282 inside strings and character constants. */
4283#define FOO(x) 'x'
4284int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4285
4286int test (int i, double x);
4287struct s1 {int (*f) (int a);};
4288struct s2 {int (*f) (double a);};
4289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4290int argc;
4291char **argv;
4292int
4293main ()
4294{
4295return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4302do
4303 CC="$ac_save_CC $ac_arg"
4304 if ac_fn_c_try_compile "$LINENO"; then :
4305 ac_cv_prog_cc_c89=$ac_arg
4306fi
4307rm -f core conftest.err conftest.$ac_objext
4308 test "x$ac_cv_prog_cc_c89" != "xno" && break
4309done
4310rm -f conftest.$ac_ext
4311CC=$ac_save_CC
4312
4313fi
4314# AC_CACHE_VAL
4315case "x$ac_cv_prog_cc_c89" in
4316 x)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4318$as_echo "none needed" >&6; } ;;
4319 xno)
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4321$as_echo "unsupported" >&6; } ;;
4322 *)
4323 CC="$CC $ac_cv_prog_cc_c89"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4325$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4326esac
4327if test "x$ac_cv_prog_cc_c89" != xno; then :
4328
4329fi
4330
4331ac_ext=c
4332ac_cpp='$CPP $CPPFLAGS'
4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336
4337ac_ext=c
4338ac_cpp='$CPP $CPPFLAGS'
4339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4343$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4344if ${am_cv_prog_cc_c_o+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346else
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h. */
4349
4350int
4351main ()
4352{
4353
4354 ;
4355 return 0;
4356}
4357_ACEOF
4358 # Make sure it works both with $CC and with simple cc.
4359 # Following AC_PROG_CC_C_O, we do the test twice because some
4360 # compilers refuse to overwrite an existing .o file with -o,
4361 # though they will create one.
4362 am_cv_prog_cc_c_o=yes
4363 for am_i in 1 2; do
4364 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4365 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } \
4369 && test -f conftest2.$ac_objext; then
4370 : OK
4371 else
4372 am_cv_prog_cc_c_o=no
4373 break
4374 fi
4375 done
4376 rm -f core conftest*
4377 unset am_i
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4380$as_echo "$am_cv_prog_cc_c_o" >&6; }
4381if test "$am_cv_prog_cc_c_o" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC="$am_aux_dir/compile $CC"
4388fi
4389ac_ext=c
4390ac_cpp='$CPP $CPPFLAGS'
4391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394
4395DEPDIR="${am__leading_dot}deps"
4396
4397ac_config_commands="$ac_config_commands depfiles"
4398
4399
4400am_make=${MAKE-make}
4401cat > confinc << 'END'
4402am__doit:
4403 @echo this is the am__doit target
4404.PHONY: am__doit
4405END
4406# If we don't find an include directive, just comment out the code.
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4408$as_echo_n "checking for style of include used by $am_make... " >&6; }
4409am__include="#"
4410am__quote=
4411_am_result=none
4412# First try GNU make style include.
4413echo "include confinc" > confmf
4414# Ignore all kinds of additional output from 'make'.
4415case `$am_make -s -f confmf 2> /dev/null` in #(
4416*the\ am__doit\ target*)
4417 am__include=include
4418 am__quote=
4419 _am_result=GNU
4420 ;;
4421esac
4422# Now try BSD make style include.
4423if test "$am__include" = "#"; then
4424 echo '.include "confinc"' > confmf
4425 case `$am_make -s -f confmf 2> /dev/null` in #(
4426 *the\ am__doit\ target*)
4427 am__include=.include
4428 am__quote="\""
4429 _am_result=BSD
4430 ;;
4431 esac
4432fi
4433
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4436$as_echo "$_am_result" >&6; }
4437rm -f confinc confmf
4438
4439# Check whether --enable-dependency-tracking was given.
4440if test "${enable_dependency_tracking+set}" = set; then :
4441 enableval=$enable_dependency_tracking;
4442fi
4443
4444if test "x$enable_dependency_tracking" != xno; then
4445 am_depcomp="$ac_aux_dir/depcomp"
4446 AMDEPBACKSLASH='\'
4447 am__nodep='_no'
4448fi
4449 if test "x$enable_dependency_tracking" != xno; then
4450 AMDEP_TRUE=
4451 AMDEP_FALSE='#'
4452else
4453 AMDEP_TRUE='#'
4454 AMDEP_FALSE=
4455fi
4456
4457
4458
4459depcc="$CC" am_compiler_list=
4460
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462$as_echo_n "checking dependency style of $depcc... " >&6; }
4463if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465else
4466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467 # We make a subdir and do the tests there. Otherwise we can end up
4468 # making bogus files that we don't know about and never remove. For
4469 # instance it was reported that on HP-UX the gcc test will end up
4470 # making a dummy file named 'D' -- because '-MD' means "put the output
4471 # in D".
4472 rm -rf conftest.dir
4473 mkdir conftest.dir
4474 # Copy depcomp to subdir because otherwise we won't find it if we're
4475 # using a relative directory.
4476 cp "$am_depcomp" conftest.dir
4477 cd conftest.dir
4478 # We will build objects and dependencies in a subdirectory because
4479 # it helps to detect inapplicable dependency modes. For instance
4480 # both Tru64's cc and ICC support -MD to output dependencies as a
4481 # side effect of compilation, but ICC will put the dependencies in
4482 # the current directory while Tru64 will put them in the object
4483 # directory.
4484 mkdir sub
4485
4486 am_cv_CC_dependencies_compiler_type=none
4487 if test "$am_compiler_list" = ""; then
4488 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4489 fi
4490 am__universal=false
4491 case " $depcc " in #(
4492 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4493 esac
4494
4495 for depmode in $am_compiler_list; do
4496 # Setup a source with many dependencies, because some compilers
4497 # like to wrap large dependency lists on column 80 (with \), and
4498 # we should not choose a depcomp mode which is confused by this.
4499 #
4500 # We need to recreate these files for each test, as the compiler may
4501 # overwrite some of them when testing with obscure command lines.
4502 # This happens at least with the AIX C compiler.
4503 : > sub/conftest.c
4504 for i in 1 2 3 4 5 6; do
4505 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4506 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4507 # Solaris 10 /bin/sh.
4508 echo '/* dummy */' > sub/conftst$i.h
4509 done
4510 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4511
4512 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4513 # mode. It turns out that the SunPro C++ compiler does not properly
4514 # handle '-M -o', and we need to detect this. Also, some Intel
4515 # versions had trouble with output in subdirs.
4516 am__obj=sub/conftest.${OBJEXT-o}
4517 am__minus_obj="-o $am__obj"
4518 case $depmode in
4519 gcc)
4520 # This depmode causes a compiler race in universal mode.
4521 test "$am__universal" = false || continue
4522 ;;
4523 nosideeffect)
4524 # After this tag, mechanisms are not by side-effect, so they'll
4525 # only be used when explicitly requested.
4526 if test "x$enable_dependency_tracking" = xyes; then
4527 continue
4528 else
4529 break
4530 fi
4531 ;;
4532 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4533 # This compiler won't grok '-c -o', but also, the minuso test has
4534 # not run yet. These depmodes are late enough in the game, and
4535 # so weak that their functioning should not be impacted.
4536 am__obj=conftest.${OBJEXT-o}
4537 am__minus_obj=
4538 ;;
4539 none) break ;;
4540 esac
4541 if depmode=$depmode \
4542 source=sub/conftest.c object=$am__obj \
4543 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4544 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4545 >/dev/null 2>conftest.err &&
4546 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4548 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4549 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4550 # icc doesn't choke on unknown options, it will just issue warnings
4551 # or remarks (even with -Werror). So we grep stderr for any message
4552 # that says an option was ignored or not supported.
4553 # When given -MP, icc 7.0 and 7.1 complain thusly:
4554 # icc: Command line warning: ignoring option '-M'; no argument required
4555 # The diagnosis changed in icc 8.0:
4556 # icc: Command line remark: option '-MP' not supported
4557 if (grep 'ignoring option' conftest.err ||
4558 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4559 am_cv_CC_dependencies_compiler_type=$depmode
4560 break
4561 fi
4562 fi
4563 done
4564
4565 cd ..
4566 rm -rf conftest.dir
4567else
4568 am_cv_CC_dependencies_compiler_type=none
4569fi
4570
4571fi
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4573$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4574CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4575
4576 if
4577 test "x$enable_dependency_tracking" != xno \
4578 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4579 am__fastdepCC_TRUE=
4580 am__fastdepCC_FALSE='#'
4581else
4582 am__fastdepCC_TRUE='#'
4583 am__fastdepCC_FALSE=
4584fi
4585
4586
4587ac_ext=cpp
4588ac_cpp='$CXXCPP $CPPFLAGS'
4589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4592if test -z "$CXX"; then
4593 if test -n "$CCC"; then
4594 CXX=$CCC
4595 else
4596 if test -n "$ac_tool_prefix"; then
4597 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4598 do
4599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602$as_echo_n "checking for $ac_word... " >&6; }
4603if ${ac_cv_prog_CXX+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605else
4606 if test -n "$CXX"; then
4607 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620done
4621 done
4622IFS=$as_save_IFS
4623
4624fi
4625fi
4626CXX=$ac_cv_prog_CXX
4627if test -n "$CXX"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4629$as_echo "$CXX" >&6; }
4630else
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632$as_echo "no" >&6; }
4633fi
4634
4635
4636 test -n "$CXX" && break
4637 done
4638fi
4639if test -z "$CXX"; then
4640 ac_ct_CXX=$CXX
4641 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4642do
4643 # Extract the first word of "$ac_prog", so it can be a program name with args.
4644set dummy $ac_prog; ac_word=$2
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646$as_echo_n "checking for $ac_word... " >&6; }
4647if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649else
4650 if test -n "$ac_ct_CXX"; then
4651 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_ac_ct_CXX="$ac_prog"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664done
4665 done
4666IFS=$as_save_IFS
4667
4668fi
4669fi
4670ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4671if test -n "$ac_ct_CXX"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4673$as_echo "$ac_ct_CXX" >&6; }
4674else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676$as_echo "no" >&6; }
4677fi
4678
4679
4680 test -n "$ac_ct_CXX" && break
4681done
4682
4683 if test "x$ac_ct_CXX" = x; then
4684 CXX="g++"
4685 else
4686 case $cross_compiling:$ac_tool_warned in
4687yes:)
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690ac_tool_warned=yes ;;
4691esac
4692 CXX=$ac_ct_CXX
4693 fi
4694fi
4695
4696 fi
4697fi
4698# Provide some information about the compiler.
4699$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4700set X $ac_compile
4701ac_compiler=$2
4702for ac_option in --version -v -V -qversion; do
4703 { { ac_try="$ac_compiler $ac_option >&5"
4704case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707esac
4708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709$as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4711 ac_status=$?
4712 if test -s conftest.err; then
4713 sed '10a\
4714... rest of stderr output deleted ...
4715 10q' conftest.err >conftest.er1
4716 cat conftest.er1 >&5
4717 fi
4718 rm -f conftest.er1 conftest.err
4719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4720 test $ac_status = 0; }
4721done
4722
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4724$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4725if ${ac_cv_cxx_compiler_gnu+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727else
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h. */
4730
4731int
4732main ()
4733{
4734#ifndef __GNUC__
4735 choke me
4736#endif
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742if ac_fn_cxx_try_compile "$LINENO"; then :
4743 ac_compiler_gnu=yes
4744else
4745 ac_compiler_gnu=no
4746fi
4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4749
4750fi
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4752$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4753if test $ac_compiler_gnu = yes; then
4754 GXX=yes
4755else
4756 GXX=
4757fi
4758ac_test_CXXFLAGS=${CXXFLAGS+set}
4759ac_save_CXXFLAGS=$CXXFLAGS
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4761$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4762if ${ac_cv_prog_cxx_g+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764else
4765 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4766 ac_cxx_werror_flag=yes
4767 ac_cv_prog_cxx_g=no
4768 CXXFLAGS="-g"
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h. */
4771
4772int
4773main ()
4774{
4775
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780if ac_fn_cxx_try_compile "$LINENO"; then :
4781 ac_cv_prog_cxx_g=yes
4782else
4783 CXXFLAGS=""
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h. */
4786
4787int
4788main ()
4789{
4790
4791 ;
4792 return 0;
4793}
4794_ACEOF
4795if ac_fn_cxx_try_compile "$LINENO"; then :
4796
4797else
4798 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4799 CXXFLAGS="-g"
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806
4807 ;
4808 return 0;
4809}
4810_ACEOF
4811if ac_fn_cxx_try_compile "$LINENO"; then :
4812 ac_cv_prog_cxx_g=yes
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4822$as_echo "$ac_cv_prog_cxx_g" >&6; }
4823if test "$ac_test_CXXFLAGS" = set; then
4824 CXXFLAGS=$ac_save_CXXFLAGS
4825elif test $ac_cv_prog_cxx_g = yes; then
4826 if test "$GXX" = yes; then
4827 CXXFLAGS="-g -O2"
4828 else
4829 CXXFLAGS="-g"
4830 fi
4831else
4832 if test "$GXX" = yes; then
4833 CXXFLAGS="-O2"
4834 else
4835 CXXFLAGS=
4836 fi
4837fi
4838ac_ext=c
4839ac_cpp='$CPP $CPPFLAGS'
4840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843
4844depcc="$CXX" am_compiler_list=
4845
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4847$as_echo_n "checking dependency style of $depcc... " >&6; }
4848if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850else
4851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4852 # We make a subdir and do the tests there. Otherwise we can end up
4853 # making bogus files that we don't know about and never remove. For
4854 # instance it was reported that on HP-UX the gcc test will end up
4855 # making a dummy file named 'D' -- because '-MD' means "put the output
4856 # in D".
4857 rm -rf conftest.dir
4858 mkdir conftest.dir
4859 # Copy depcomp to subdir because otherwise we won't find it if we're
4860 # using a relative directory.
4861 cp "$am_depcomp" conftest.dir
4862 cd conftest.dir
4863 # We will build objects and dependencies in a subdirectory because
4864 # it helps to detect inapplicable dependency modes. For instance
4865 # both Tru64's cc and ICC support -MD to output dependencies as a
4866 # side effect of compilation, but ICC will put the dependencies in
4867 # the current directory while Tru64 will put them in the object
4868 # directory.
4869 mkdir sub
4870
4871 am_cv_CXX_dependencies_compiler_type=none
4872 if test "$am_compiler_list" = ""; then
4873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4874 fi
4875 am__universal=false
4876 case " $depcc " in #(
4877 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4878 esac
4879
4880 for depmode in $am_compiler_list; do
4881 # Setup a source with many dependencies, because some compilers
4882 # like to wrap large dependency lists on column 80 (with \), and
4883 # we should not choose a depcomp mode which is confused by this.
4884 #
4885 # We need to recreate these files for each test, as the compiler may
4886 # overwrite some of them when testing with obscure command lines.
4887 # This happens at least with the AIX C compiler.
4888 : > sub/conftest.c
4889 for i in 1 2 3 4 5 6; do
4890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4891 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4892 # Solaris 10 /bin/sh.
4893 echo '/* dummy */' > sub/conftst$i.h
4894 done
4895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4896
4897 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4898 # mode. It turns out that the SunPro C++ compiler does not properly
4899 # handle '-M -o', and we need to detect this. Also, some Intel
4900 # versions had trouble with output in subdirs.
4901 am__obj=sub/conftest.${OBJEXT-o}
4902 am__minus_obj="-o $am__obj"
4903 case $depmode in
4904 gcc)
4905 # This depmode causes a compiler race in universal mode.
4906 test "$am__universal" = false || continue
4907 ;;
4908 nosideeffect)
4909 # After this tag, mechanisms are not by side-effect, so they'll
4910 # only be used when explicitly requested.
4911 if test "x$enable_dependency_tracking" = xyes; then
4912 continue
4913 else
4914 break
4915 fi
4916 ;;
4917 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4918 # This compiler won't grok '-c -o', but also, the minuso test has
4919 # not run yet. These depmodes are late enough in the game, and
4920 # so weak that their functioning should not be impacted.
4921 am__obj=conftest.${OBJEXT-o}
4922 am__minus_obj=
4923 ;;
4924 none) break ;;
4925 esac
4926 if depmode=$depmode \
4927 source=sub/conftest.c object=$am__obj \
4928 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4929 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4930 >/dev/null 2>conftest.err &&
4931 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4933 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4935 # icc doesn't choke on unknown options, it will just issue warnings
4936 # or remarks (even with -Werror). So we grep stderr for any message
4937 # that says an option was ignored or not supported.
4938 # When given -MP, icc 7.0 and 7.1 complain thusly:
4939 # icc: Command line warning: ignoring option '-M'; no argument required
4940 # The diagnosis changed in icc 8.0:
4941 # icc: Command line remark: option '-MP' not supported
4942 if (grep 'ignoring option' conftest.err ||
4943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4944 am_cv_CXX_dependencies_compiler_type=$depmode
4945 break
4946 fi
4947 fi
4948 done
4949
4950 cd ..
4951 rm -rf conftest.dir
4952else
4953 am_cv_CXX_dependencies_compiler_type=none
4954fi
4955
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4958$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4959CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4960
4961 if
4962 test "x$enable_dependency_tracking" != xno \
4963 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4964 am__fastdepCXX_TRUE=
4965 am__fastdepCXX_FALSE='#'
4966else
4967 am__fastdepCXX_TRUE='#'
4968 am__fastdepCXX_FALSE=
4969fi
4970
4971
4972if test -n "$ac_tool_prefix"; then
4973 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4974set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976$as_echo_n "checking for $ac_word... " >&6; }
4977if ${ac_cv_prog_RANLIB+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979else
4980 if test -n "$RANLIB"; then
4981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4982else
4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984for as_dir in $PATH
4985do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994done
4995 done
4996IFS=$as_save_IFS
4997
4998fi
4999fi
5000RANLIB=$ac_cv_prog_RANLIB
5001if test -n "$RANLIB"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5003$as_echo "$RANLIB" >&6; }
5004else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006$as_echo "no" >&6; }
5007fi
5008
5009
5010fi
5011if test -z "$ac_cv_prog_RANLIB"; then
5012 ac_ct_RANLIB=$RANLIB
5013 # Extract the first word of "ranlib", so it can be a program name with args.
5014set dummy ranlib; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 if test -n "$ac_ct_RANLIB"; then
5021 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_ac_ct_RANLIB="ranlib"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035 done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5041if test -n "$ac_ct_RANLIB"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5043$as_echo "$ac_ct_RANLIB" >&6; }
5044else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049 if test "x$ac_ct_RANLIB" = x; then
5050 RANLIB=":"
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053yes:)
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056ac_tool_warned=yes ;;
5057esac
5058 RANLIB=$ac_ct_RANLIB
5059 fi
5060else
5061 RANLIB="$ac_cv_prog_RANLIB"
5062fi
5063
5064
5065
5066ac_ext=c
5067ac_cpp='$CPP $CPPFLAGS'
5068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5072$as_echo_n "checking how to run the C preprocessor... " >&6; }
5073# On Suns, sometimes $CPP names a directory.
5074if test -n "$CPP" && test -d "$CPP"; then
5075 CPP=
5076fi
5077if test -z "$CPP"; then
5078 if ${ac_cv_prog_CPP+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 # Double quotes because CPP needs to be expanded
5082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5083 do
5084 ac_preproc_ok=false
5085for ac_c_preproc_warn_flag in '' yes
5086do
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h. */
5095#ifdef __STDC__
5096# include <limits.h>
5097#else
5098# include <assert.h>
5099#endif
5100 Syntax error
5101_ACEOF
5102if ac_fn_c_try_cpp "$LINENO"; then :
5103
5104else
5105 # Broken: fails on valid input.
5106continue
5107fi
5108rm -f conftest.err conftest.i conftest.$ac_ext
5109
5110 # OK, works on sane cases. Now check whether nonexistent headers
5111 # can be detected and how.
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h. */
5114#include <ac_nonexistent.h>
5115_ACEOF
5116if ac_fn_c_try_cpp "$LINENO"; then :
5117 # Broken: success on invalid input.
5118continue
5119else
5120 # Passes both tests.
5121ac_preproc_ok=:
5122break
5123fi
5124rm -f conftest.err conftest.i conftest.$ac_ext
5125
5126done
5127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5128rm -f conftest.i conftest.err conftest.$ac_ext
5129if $ac_preproc_ok; then :
5130 break
5131fi
5132
5133 done
5134 ac_cv_prog_CPP=$CPP
5135
5136fi
5137 CPP=$ac_cv_prog_CPP
5138else
5139 ac_cv_prog_CPP=$CPP
5140fi
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5142$as_echo "$CPP" >&6; }
5143ac_preproc_ok=false
5144for ac_c_preproc_warn_flag in '' yes
5145do
5146 # Use a header file that comes with gcc, so configuring glibc
5147 # with a fresh cross-compiler works.
5148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5149 # <limits.h> exists even on freestanding compilers.
5150 # On the NeXT, cc -E runs the code through the compiler's parser,
5151 # not just through cpp. "Syntax error" is here to catch this case.
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h. */
5154#ifdef __STDC__
5155# include <limits.h>
5156#else
5157# include <assert.h>
5158#endif
5159 Syntax error
5160_ACEOF
5161if ac_fn_c_try_cpp "$LINENO"; then :
5162
5163else
5164 # Broken: fails on valid input.
5165continue
5166fi
5167rm -f conftest.err conftest.i conftest.$ac_ext
5168
5169 # OK, works on sane cases. Now check whether nonexistent headers
5170 # can be detected and how.
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172/* end confdefs.h. */
5173#include <ac_nonexistent.h>
5174_ACEOF
5175if ac_fn_c_try_cpp "$LINENO"; then :
5176 # Broken: success on invalid input.
5177continue
5178else
5179 # Passes both tests.
5180ac_preproc_ok=:
5181break
5182fi
5183rm -f conftest.err conftest.i conftest.$ac_ext
5184
5185done
5186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5187rm -f conftest.i conftest.err conftest.$ac_ext
5188if $ac_preproc_ok; then :
5189
5190else
5191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5193as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5194See \`config.log' for more details" "$LINENO" 5; }
5195fi
5196
5197ac_ext=c
5198ac_cpp='$CPP $CPPFLAGS'
5199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202
5203
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5205$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5206if ${ac_cv_path_GREP+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208else
5209 if test -z "$GREP"; then
5210 ac_path_GREP_found=false
5211 # Loop through the user's path and test for each of PROGNAME-LIST
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5214do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_prog in grep ggrep; do
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5220 as_fn_executable_p "$ac_path_GREP" || continue
5221# Check for GNU ac_path_GREP and select it if it is found.
5222 # Check for GNU $ac_path_GREP
5223case `"$ac_path_GREP" --version 2>&1` in
5224*GNU*)
5225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5226*)
5227 ac_count=0
5228 $as_echo_n 0123456789 >"conftest.in"
5229 while :
5230 do
5231 cat "conftest.in" "conftest.in" >"conftest.tmp"
5232 mv "conftest.tmp" "conftest.in"
5233 cp "conftest.in" "conftest.nl"
5234 $as_echo 'GREP' >> "conftest.nl"
5235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5237 as_fn_arith $ac_count + 1 && ac_count=$as_val
5238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5239 # Best one so far, save it but keep looking for a better one
5240 ac_cv_path_GREP="$ac_path_GREP"
5241 ac_path_GREP_max=$ac_count
5242 fi
5243 # 10*(2^10) chars as input seems more than enough
5244 test $ac_count -gt 10 && break
5245 done
5246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5247esac
5248
5249 $ac_path_GREP_found && break 3
5250 done
5251 done
5252 done
5253IFS=$as_save_IFS
5254 if test -z "$ac_cv_path_GREP"; then
5255 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5256 fi
5257else
5258 ac_cv_path_GREP=$GREP
5259fi
5260
5261fi
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5263$as_echo "$ac_cv_path_GREP" >&6; }
5264 GREP="$ac_cv_path_GREP"
5265
5266
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5268$as_echo_n "checking for egrep... " >&6; }
5269if ${ac_cv_path_EGREP+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271else
5272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5273 then ac_cv_path_EGREP="$GREP -E"
5274 else
5275 if test -z "$EGREP"; then
5276 ac_path_EGREP_found=false
5277 # Loop through the user's path and test for each of PROGNAME-LIST
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5280do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_prog in egrep; do
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5286 as_fn_executable_p "$ac_path_EGREP" || continue
5287# Check for GNU ac_path_EGREP and select it if it is found.
5288 # Check for GNU $ac_path_EGREP
5289case `"$ac_path_EGREP" --version 2>&1` in
5290*GNU*)
5291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5292*)
5293 ac_count=0
5294 $as_echo_n 0123456789 >"conftest.in"
5295 while :
5296 do
5297 cat "conftest.in" "conftest.in" >"conftest.tmp"
5298 mv "conftest.tmp" "conftest.in"
5299 cp "conftest.in" "conftest.nl"
5300 $as_echo 'EGREP' >> "conftest.nl"
5301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5303 as_fn_arith $ac_count + 1 && ac_count=$as_val
5304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5305 # Best one so far, save it but keep looking for a better one
5306 ac_cv_path_EGREP="$ac_path_EGREP"
5307 ac_path_EGREP_max=$ac_count
5308 fi
5309 # 10*(2^10) chars as input seems more than enough
5310 test $ac_count -gt 10 && break
5311 done
5312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5313esac
5314
5315 $ac_path_EGREP_found && break 3
5316 done
5317 done
5318 done
5319IFS=$as_save_IFS
5320 if test -z "$ac_cv_path_EGREP"; then
5321 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5322 fi
5323else
5324 ac_cv_path_EGREP=$EGREP
5325fi
5326
5327 fi
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5330$as_echo "$ac_cv_path_EGREP" >&6; }
5331 EGREP="$ac_cv_path_EGREP"
5332
5333
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5335$as_echo_n "checking for ANSI C header files... " >&6; }
5336if ${ac_cv_header_stdc+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338else
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h. */
5341#include <stdlib.h>
5342#include <stdarg.h>
5343#include <string.h>
5344#include <float.h>
5345
5346int
5347main ()
5348{
5349
5350 ;
5351 return 0;
5352}
5353_ACEOF
5354if ac_fn_c_try_compile "$LINENO"; then :
5355 ac_cv_header_stdc=yes
5356else
5357 ac_cv_header_stdc=no
5358fi
5359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360
5361if test $ac_cv_header_stdc = yes; then
5362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h. */
5365#include <string.h>
5366
5367_ACEOF
5368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5369 $EGREP "memchr" >/dev/null 2>&1; then :
5370
5371else
5372 ac_cv_header_stdc=no
5373fi
5374rm -f conftest*
5375
5376fi
5377
5378if test $ac_cv_header_stdc = yes; then
5379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381/* end confdefs.h. */
5382#include <stdlib.h>
5383
5384_ACEOF
5385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5386 $EGREP "free" >/dev/null 2>&1; then :
5387
5388else
5389 ac_cv_header_stdc=no
5390fi
5391rm -f conftest*
5392
5393fi
5394
5395if test $ac_cv_header_stdc = yes; then
5396 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5397 if test "$cross_compiling" = yes; then :
5398 :
5399else
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401/* end confdefs.h. */
5402#include <ctype.h>
5403#include <stdlib.h>
5404#if ((' ' & 0x0FF) == 0x020)
5405# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5406# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5407#else
5408# define ISLOWER(c) \
5409 (('a' <= (c) && (c) <= 'i') \
5410 || ('j' <= (c) && (c) <= 'r') \
5411 || ('s' <= (c) && (c) <= 'z'))
5412# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5413#endif
5414
5415#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5416int
5417main ()
5418{
5419 int i;
5420 for (i = 0; i < 256; i++)
5421 if (XOR (islower (i), ISLOWER (i))
5422 || toupper (i) != TOUPPER (i))
5423 return 2;
5424 return 0;
5425}
5426_ACEOF
5427if ac_fn_c_try_run "$LINENO"; then :
5428
5429else
5430 ac_cv_header_stdc=no
5431fi
5432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5433 conftest.$ac_objext conftest.beam conftest.$ac_ext
5434fi
5435
5436fi
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5439$as_echo "$ac_cv_header_stdc" >&6; }
5440if test $ac_cv_header_stdc = yes; then
5441
5442$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5443
5444fi
5445
5446# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5447for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5448 inttypes.h stdint.h unistd.h
5449do :
5450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5451ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5452"
5453if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5454 cat >>confdefs.h <<_ACEOF
5455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5456_ACEOF
5457
5458fi
5459
5460done
5461
5462
5463
5464 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5465if test "x$ac_cv_header_minix_config_h" = xyes; then :
5466 MINIX=yes
5467else
5468 MINIX=
5469fi
5470
5471
5472 if test "$MINIX" = yes; then
5473
5474$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5475
5476
5477$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5478
5479
5480$as_echo "#define _MINIX 1" >>confdefs.h
5481
5482 fi
5483
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5486$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5487if ${ac_cv_safe_to_define___extensions__+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489else
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h. */
5492
5493# define __EXTENSIONS__ 1
5494 $ac_includes_default
5495int
5496main ()
5497{
5498
5499 ;
5500 return 0;
5501}
5502_ACEOF
5503if ac_fn_c_try_compile "$LINENO"; then :
5504 ac_cv_safe_to_define___extensions__=yes
5505else
5506 ac_cv_safe_to_define___extensions__=no
5507fi
5508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509fi
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5511$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5512 test $ac_cv_safe_to_define___extensions__ = yes &&
5513 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5514
5515 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5516
5517 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5518
5519 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5520
5521 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5522
5523
5524
5525# The tests for host and target for $enable_largefile require
5526# canonical names.
5527
5528
5529
5530# As the $enable_largefile decision depends on --enable-plugins we must set it
5531# even in directories otherwise not depending on the $plugins option.
5532
5533
5534 maybe_plugins=no
5535 for ac_header in dlfcn.h
5536do :
5537 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5538"
5539if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5540 cat >>confdefs.h <<_ACEOF
5541#define HAVE_DLFCN_H 1
5542_ACEOF
5543 maybe_plugins=yes
5544fi
5545
5546done
5547
5548 for ac_header in windows.h
5549do :
5550 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5551"
5552if test "x$ac_cv_header_windows_h" = xyes; then :
5553 cat >>confdefs.h <<_ACEOF
5554#define HAVE_WINDOWS_H 1
5555_ACEOF
5556 maybe_plugins=yes
5557fi
5558
5559done
5560
5561
5562 # Check whether --enable-plugins was given.
5563if test "${enable_plugins+set}" = set; then :
5564 enableval=$enable_plugins; case "${enableval}" in
5565 no) plugins=no ;;
5566 *) plugins=yes
5567 if test "$maybe_plugins" != "yes" ; then
5568 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5569 fi ;;
5570 esac
5571else
5572 plugins=$maybe_plugins
5573
5574fi
5575
5576 if test "$plugins" = "yes"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5578$as_echo_n "checking for library containing dlsym... " >&6; }
5579if ${ac_cv_search_dlsym+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581else
5582 ac_func_search_save_LIBS=$LIBS
5583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h. */
5585
5586/* Override any GCC internal prototype to avoid an error.
5587 Use char because int might match the return type of a GCC
5588 builtin and then its argument prototype would still apply. */
5589#ifdef __cplusplus
5590extern "C"
5591#endif
5592char dlsym ();
5593int
5594main ()
5595{
5596return dlsym ();
5597 ;
5598 return 0;
5599}
5600_ACEOF
5601for ac_lib in '' dl; do
5602 if test -z "$ac_lib"; then
5603 ac_res="none required"
5604 else
5605 ac_res=-l$ac_lib
5606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5607 fi
5608 if ac_fn_c_try_link "$LINENO"; then :
5609 ac_cv_search_dlsym=$ac_res
5610fi
5611rm -f core conftest.err conftest.$ac_objext \
5612 conftest$ac_exeext
5613 if ${ac_cv_search_dlsym+:} false; then :
5614 break
5615fi
5616done
5617if ${ac_cv_search_dlsym+:} false; then :
5618
5619else
5620 ac_cv_search_dlsym=no
5621fi
5622rm conftest.$ac_ext
5623LIBS=$ac_func_search_save_LIBS
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5626$as_echo "$ac_cv_search_dlsym" >&6; }
5627ac_res=$ac_cv_search_dlsym
5628if test "$ac_res" != no; then :
5629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5630
5631fi
5632
5633 fi
5634
5635
5636case "${host}" in
c8693053
RO
5637 sparc-*-solaris*|i?86-*-solaris*)
5638 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5639 # were mutually exclusive until Solaris 11.3. Without procfs support,
5640 # the bfd/ elf module cannot provide certain routines such as
5641 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5642 # explicitly requested large-file support through the
5643 # --enable-largefile switch, disable large-file support in favor of
5644 # procfs support.
5645 #
5646 # Check if <sys/procfs.h> is incompatible with large-file support.
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h. */
5649#define _FILE_OFFSET_BITS 64
5650#define _STRUCTURED_PROC 1
5651#include <sys/procfs.h>
5652int
5653main ()
5654{
5655
5656 ;
5657 return 0;
5658}
5659_ACEOF
5660if ac_fn_c_try_compile "$LINENO"; then :
5661 acx_cv_procfs_lfs=yes
5662else
5663 acx_cv_procfs_lfs=no
5664fi
5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 #
5667 # Forcefully disable large-file support only if necessary, gdb is in
5668 # tree and enabled.
5669 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5670 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
5671 : ${enable_largefile="no"}
5672 if test "$plugins" = yes; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5674plugin support disabled; require large-file support which is incompatible with GDB." >&5
5675$as_echo "$as_me: WARNING:
5676plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5677 plugins=no
5678 fi
5679 fi
5680 #
5681 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5682 # benefit of g++ 9+ which predefines it on Solaris.
5683 if test "$enable_largefile" = no; then
5684 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
5685
5686 fi
01027315
TT
5687 ;;
5688esac
5689
5690# Check whether --enable-largefile was given.
5691if test "${enable_largefile+set}" = set; then :
5692 enableval=$enable_largefile;
5693fi
5694
5695if test "$enable_largefile" != no; then
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5698$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5699if ${ac_cv_sys_largefile_CC+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701else
5702 ac_cv_sys_largefile_CC=no
5703 if test "$GCC" != yes; then
5704 ac_save_CC=$CC
5705 while :; do
5706 # IRIX 6.2 and later do not support large files by default,
5707 # so use the C compiler's -n32 option if that helps.
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709/* end confdefs.h. */
5710#include <sys/types.h>
5711 /* Check that off_t can represent 2**63 - 1 correctly.
5712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5713 since some C++ compilers masquerading as C compilers
5714 incorrectly reject 9223372036854775807. */
5715#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5717 && LARGE_OFF_T % 2147483647 == 1)
5718 ? 1 : -1];
5719int
5720main ()
5721{
5722
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727 if ac_fn_c_try_compile "$LINENO"; then :
5728 break
5729fi
5730rm -f core conftest.err conftest.$ac_objext
5731 CC="$CC -n32"
5732 if ac_fn_c_try_compile "$LINENO"; then :
5733 ac_cv_sys_largefile_CC=' -n32'; break
5734fi
5735rm -f core conftest.err conftest.$ac_objext
5736 break
5737 done
5738 CC=$ac_save_CC
5739 rm -f conftest.$ac_ext
5740 fi
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5743$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5744 if test "$ac_cv_sys_largefile_CC" != no; then
5745 CC=$CC$ac_cv_sys_largefile_CC
5746 fi
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5749$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5750if ${ac_cv_sys_file_offset_bits+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752else
5753 while :; do
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755/* end confdefs.h. */
5756#include <sys/types.h>
5757 /* Check that off_t can represent 2**63 - 1 correctly.
5758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5759 since some C++ compilers masquerading as C compilers
5760 incorrectly reject 9223372036854775807. */
5761#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5763 && LARGE_OFF_T % 2147483647 == 1)
5764 ? 1 : -1];
5765int
5766main ()
5767{
5768
5769 ;
5770 return 0;
5771}
5772_ACEOF
5773if ac_fn_c_try_compile "$LINENO"; then :
5774 ac_cv_sys_file_offset_bits=no; break
5775fi
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h. */
5779#define _FILE_OFFSET_BITS 64
5780#include <sys/types.h>
5781 /* Check that off_t can represent 2**63 - 1 correctly.
5782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5783 since some C++ compilers masquerading as C compilers
5784 incorrectly reject 9223372036854775807. */
5785#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5787 && LARGE_OFF_T % 2147483647 == 1)
5788 ? 1 : -1];
5789int
5790main ()
5791{
5792
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797if ac_fn_c_try_compile "$LINENO"; then :
5798 ac_cv_sys_file_offset_bits=64; break
5799fi
5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 ac_cv_sys_file_offset_bits=unknown
5802 break
5803done
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5806$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5807case $ac_cv_sys_file_offset_bits in #(
5808 no | unknown) ;;
5809 *)
5810cat >>confdefs.h <<_ACEOF
5811#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5812_ACEOF
5813;;
5814esac
5815rm -rf conftest*
5816 if test $ac_cv_sys_file_offset_bits = unknown; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5818$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5819if ${ac_cv_sys_large_files+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821else
5822 while :; do
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h. */
5825#include <sys/types.h>
5826 /* Check that off_t can represent 2**63 - 1 correctly.
5827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5828 since some C++ compilers masquerading as C compilers
5829 incorrectly reject 9223372036854775807. */
5830#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5832 && LARGE_OFF_T % 2147483647 == 1)
5833 ? 1 : -1];
5834int
5835main ()
5836{
5837
5838 ;
5839 return 0;
5840}
5841_ACEOF
5842if ac_fn_c_try_compile "$LINENO"; then :
5843 ac_cv_sys_large_files=no; break
5844fi
5845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h. */
5848#define _LARGE_FILES 1
5849#include <sys/types.h>
5850 /* Check that off_t can represent 2**63 - 1 correctly.
5851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5852 since some C++ compilers masquerading as C compilers
5853 incorrectly reject 9223372036854775807. */
5854#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5856 && LARGE_OFF_T % 2147483647 == 1)
5857 ? 1 : -1];
5858int
5859main ()
5860{
5861
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866if ac_fn_c_try_compile "$LINENO"; then :
5867 ac_cv_sys_large_files=1; break
5868fi
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 ac_cv_sys_large_files=unknown
5871 break
5872done
5873fi
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5875$as_echo "$ac_cv_sys_large_files" >&6; }
5876case $ac_cv_sys_large_files in #(
5877 no | unknown) ;;
5878 *)
5879cat >>confdefs.h <<_ACEOF
5880#define _LARGE_FILES $ac_cv_sys_large_files
5881_ACEOF
5882;;
5883esac
5884rm -rf conftest*
5885 fi
5886
5887
5888fi
5889
5890
5891ac_ext=c
5892ac_cpp='$CPP $CPPFLAGS'
5893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895ac_compiler_gnu=$ac_cv_c_compiler_gnu
5896if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5898set dummy ${ac_tool_prefix}gcc; ac_word=$2
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900$as_echo_n "checking for $ac_word... " >&6; }
5901if ${ac_cv_prog_CC+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903else
5904 if test -n "$CC"; then
5905 ac_cv_prog_CC="$CC" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918done
5919 done
5920IFS=$as_save_IFS
5921
5922fi
5923fi
5924CC=$ac_cv_prog_CC
5925if test -n "$CC"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5927$as_echo "$CC" >&6; }
5928else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930$as_echo "no" >&6; }
5931fi
5932
5933
5934fi
5935if test -z "$ac_cv_prog_CC"; then
5936 ac_ct_CC=$CC
5937 # Extract the first word of "gcc", so it can be a program name with args.
5938set dummy gcc; ac_word=$2
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940$as_echo_n "checking for $ac_word... " >&6; }
5941if ${ac_cv_prog_ac_ct_CC+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943else
5944 if test -n "$ac_ct_CC"; then
5945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_CC="gcc"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958done
5959 done
5960IFS=$as_save_IFS
5961
5962fi
5963fi
5964ac_ct_CC=$ac_cv_prog_ac_ct_CC
5965if test -n "$ac_ct_CC"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5967$as_echo "$ac_ct_CC" >&6; }
5968else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970$as_echo "no" >&6; }
5971fi
5972
5973 if test "x$ac_ct_CC" = x; then
5974 CC=""
5975 else
5976 case $cross_compiling:$ac_tool_warned in
5977yes:)
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980ac_tool_warned=yes ;;
5981esac
5982 CC=$ac_ct_CC
5983 fi
5984else
5985 CC="$ac_cv_prog_CC"
5986fi
5987
5988if test -z "$CC"; then
5989 if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5991set dummy ${ac_tool_prefix}cc; ac_word=$2
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993$as_echo_n "checking for $ac_word... " >&6; }
5994if ${ac_cv_prog_CC+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996else
5997 if test -n "$CC"; then
5998 ac_cv_prog_CC="$CC" # Let the user override the test.
5999else
6000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001for as_dir in $PATH
6002do
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_CC="${ac_tool_prefix}cc"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6010 fi
6011done
6012 done
6013IFS=$as_save_IFS
6014
6015fi
6016fi
6017CC=$ac_cv_prog_CC
6018if test -n "$CC"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6020$as_echo "$CC" >&6; }
6021else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023$as_echo "no" >&6; }
6024fi
6025
6026
6027 fi
6028fi
6029if test -z "$CC"; then
6030 # Extract the first word of "cc", so it can be a program name with args.
6031set dummy cc; ac_word=$2
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033$as_echo_n "checking for $ac_word... " >&6; }
6034if ${ac_cv_prog_CC+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036else
6037 if test -n "$CC"; then
6038 ac_cv_prog_CC="$CC" # Let the user override the test.
6039else
6040 ac_prog_rejected=no
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6049 ac_prog_rejected=yes
6050 continue
6051 fi
6052 ac_cv_prog_CC="cc"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056done
6057 done
6058IFS=$as_save_IFS
6059
6060if test $ac_prog_rejected = yes; then
6061 # We found a bogon in the path, so make sure we never use it.
6062 set dummy $ac_cv_prog_CC
6063 shift
6064 if test $# != 0; then
6065 # We chose a different compiler from the bogus one.
6066 # However, it has the same basename, so the bogon will be chosen
6067 # first if we set CC to just the basename; use the full file name.
6068 shift
6069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6070 fi
6071fi
6072fi
6073fi
6074CC=$ac_cv_prog_CC
6075if test -n "$CC"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6077$as_echo "$CC" >&6; }
6078else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080$as_echo "no" >&6; }
6081fi
6082
6083
6084fi
6085if test -z "$CC"; then
6086 if test -n "$ac_tool_prefix"; then
6087 for ac_prog in cl.exe
6088 do
6089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092$as_echo_n "checking for $ac_word... " >&6; }
6093if ${ac_cv_prog_CC+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095else
6096 if test -n "$CC"; then
6097 ac_cv_prog_CC="$CC" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110done
6111 done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116CC=$ac_cv_prog_CC
6117if test -n "$CC"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6119$as_echo "$CC" >&6; }
6120else
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122$as_echo "no" >&6; }
6123fi
6124
6125
6126 test -n "$CC" && break
6127 done
6128fi
6129if test -z "$CC"; then
6130 ac_ct_CC=$CC
6131 for ac_prog in cl.exe
6132do
6133 # Extract the first word of "$ac_prog", so it can be a program name with args.
6134set dummy $ac_prog; ac_word=$2
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136$as_echo_n "checking for $ac_word... " >&6; }
6137if ${ac_cv_prog_ac_ct_CC+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139else
6140 if test -n "$ac_ct_CC"; then
6141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_ac_ct_CC="$ac_prog"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6153 fi
6154done
6155 done
6156IFS=$as_save_IFS
6157
6158fi
6159fi
6160ac_ct_CC=$ac_cv_prog_ac_ct_CC
6161if test -n "$ac_ct_CC"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6163$as_echo "$ac_ct_CC" >&6; }
6164else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168
6169
6170 test -n "$ac_ct_CC" && break
6171done
6172
6173 if test "x$ac_ct_CC" = x; then
6174 CC=""
6175 else
6176 case $cross_compiling:$ac_tool_warned in
6177yes:)
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180ac_tool_warned=yes ;;
6181esac
6182 CC=$ac_ct_CC
6183 fi
6184fi
6185
6186fi
6187
6188
6189test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6191as_fn_error $? "no acceptable C compiler found in \$PATH
6192See \`config.log' for more details" "$LINENO" 5; }
6193
6194# Provide some information about the compiler.
6195$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6196set X $ac_compile
6197ac_compiler=$2
6198for ac_option in --version -v -V -qversion; do
6199 { { ac_try="$ac_compiler $ac_option >&5"
6200case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6203esac
6204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6205$as_echo "$ac_try_echo"; } >&5
6206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6207 ac_status=$?
6208 if test -s conftest.err; then
6209 sed '10a\
6210... rest of stderr output deleted ...
6211 10q' conftest.err >conftest.er1
6212 cat conftest.er1 >&5
6213 fi
6214 rm -f conftest.er1 conftest.err
6215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216 test $ac_status = 0; }
6217done
6218
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6220$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6221if ${ac_cv_c_compiler_gnu+:} false; then :
6222 $as_echo_n "(cached) " >&6
6223else
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h. */
6226
6227int
6228main ()
6229{
6230#ifndef __GNUC__
6231 choke me
6232#endif
6233
6234 ;
6235 return 0;
6236}
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239 ac_compiler_gnu=yes
6240else
6241 ac_compiler_gnu=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244ac_cv_c_compiler_gnu=$ac_compiler_gnu
6245
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6248$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6249if test $ac_compiler_gnu = yes; then
6250 GCC=yes
6251else
6252 GCC=
6253fi
6254ac_test_CFLAGS=${CFLAGS+set}
6255ac_save_CFLAGS=$CFLAGS
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6257$as_echo_n "checking whether $CC accepts -g... " >&6; }
6258if ${ac_cv_prog_cc_g+:} false; then :
6259 $as_echo_n "(cached) " >&6
6260else
6261 ac_save_c_werror_flag=$ac_c_werror_flag
6262 ac_c_werror_flag=yes
6263 ac_cv_prog_cc_g=no
6264 CFLAGS="-g"
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266/* end confdefs.h. */
6267
6268int
6269main ()
6270{
6271
6272 ;
6273 return 0;
6274}
6275_ACEOF
6276if ac_fn_c_try_compile "$LINENO"; then :
6277 ac_cv_prog_cc_g=yes
6278else
6279 CFLAGS=""
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281/* end confdefs.h. */
6282
6283int
6284main ()
6285{
6286
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291if ac_fn_c_try_compile "$LINENO"; then :
6292
6293else
6294 ac_c_werror_flag=$ac_save_c_werror_flag
6295 CFLAGS="-g"
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h. */
6298
6299int
6300main ()
6301{
6302
6303 ;
6304 return 0;
6305}
6306_ACEOF
6307if ac_fn_c_try_compile "$LINENO"; then :
6308 ac_cv_prog_cc_g=yes
6309fi
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311fi
6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313fi
6314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 ac_c_werror_flag=$ac_save_c_werror_flag
6316fi
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6318$as_echo "$ac_cv_prog_cc_g" >&6; }
6319if test "$ac_test_CFLAGS" = set; then
6320 CFLAGS=$ac_save_CFLAGS
6321elif test $ac_cv_prog_cc_g = yes; then
6322 if test "$GCC" = yes; then
6323 CFLAGS="-g -O2"
6324 else
6325 CFLAGS="-g"
6326 fi
6327else
6328 if test "$GCC" = yes; then
6329 CFLAGS="-O2"
6330 else
6331 CFLAGS=
6332 fi
6333fi
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6335$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6336if ${ac_cv_prog_cc_c89+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338else
6339 ac_cv_prog_cc_c89=no
6340ac_save_CC=$CC
6341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h. */
6343#include <stdarg.h>
6344#include <stdio.h>
6345struct stat;
6346/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6347struct buf { int x; };
6348FILE * (*rcsopen) (struct buf *, struct stat *, int);
6349static char *e (p, i)
6350 char **p;
6351 int i;
6352{
6353 return p[i];
6354}
6355static char *f (char * (*g) (char **, int), char **p, ...)
6356{
6357 char *s;
6358 va_list v;
6359 va_start (v,p);
6360 s = g (p, va_arg (v,int));
6361 va_end (v);
6362 return s;
6363}
6364
6365/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6366 function prototypes and stuff, but not '\xHH' hex character constants.
6367 These don't provoke an error unfortunately, instead are silently treated
6368 as 'x'. The following induces an error, until -std is added to get
6369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6370 array size at least. It's necessary to write '\x00'==0 to get something
6371 that's true only with -std. */
6372int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6373
6374/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6375 inside strings and character constants. */
6376#define FOO(x) 'x'
6377int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6378
6379int test (int i, double x);
6380struct s1 {int (*f) (int a);};
6381struct s2 {int (*f) (double a);};
6382int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6383int argc;
6384char **argv;
6385int
6386main ()
6387{
6388return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6389 ;
6390 return 0;
6391}
6392_ACEOF
6393for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6394 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6395do
6396 CC="$ac_save_CC $ac_arg"
6397 if ac_fn_c_try_compile "$LINENO"; then :
6398 ac_cv_prog_cc_c89=$ac_arg
6399fi
6400rm -f core conftest.err conftest.$ac_objext
6401 test "x$ac_cv_prog_cc_c89" != "xno" && break
6402done
6403rm -f conftest.$ac_ext
6404CC=$ac_save_CC
6405
6406fi
6407# AC_CACHE_VAL
6408case "x$ac_cv_prog_cc_c89" in
6409 x)
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6411$as_echo "none needed" >&6; } ;;
6412 xno)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6414$as_echo "unsupported" >&6; } ;;
6415 *)
6416 CC="$CC $ac_cv_prog_cc_c89"
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6418$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6419esac
6420if test "x$ac_cv_prog_cc_c89" != xno; then :
6421
6422fi
6423
6424ac_ext=c
6425ac_cpp='$CPP $CPPFLAGS'
6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429
6430ac_ext=c
6431ac_cpp='$CPP $CPPFLAGS'
6432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6434ac_compiler_gnu=$ac_cv_c_compiler_gnu
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6436$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6437if ${am_cv_prog_cc_c_o+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439else
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441/* end confdefs.h. */
6442
6443int
6444main ()
6445{
6446
6447 ;
6448 return 0;
6449}
6450_ACEOF
6451 # Make sure it works both with $CC and with simple cc.
6452 # Following AC_PROG_CC_C_O, we do the test twice because some
6453 # compilers refuse to overwrite an existing .o file with -o,
6454 # though they will create one.
6455 am_cv_prog_cc_c_o=yes
6456 for am_i in 1 2; do
6457 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6458 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } \
6462 && test -f conftest2.$ac_objext; then
6463 : OK
6464 else
6465 am_cv_prog_cc_c_o=no
6466 break
6467 fi
6468 done
6469 rm -f core conftest*
6470 unset am_i
6471fi
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6473$as_echo "$am_cv_prog_cc_c_o" >&6; }
6474if test "$am_cv_prog_cc_c_o" != yes; then
6475 # Losing compiler, so override with the script.
6476 # FIXME: It is wrong to rewrite CC.
6477 # But if we don't then we get into trouble of one sort or another.
6478 # A longer-term fix would be to have automake use am__CC in this case,
6479 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6480 CC="$am_aux_dir/compile $CC"
6481fi
6482ac_ext=c
6483ac_cpp='$CPP $CPPFLAGS'
6484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6486ac_compiler_gnu=$ac_cv_c_compiler_gnu
6487
6488
6489depcc="$CC" am_compiler_list=
6490
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6492$as_echo_n "checking dependency style of $depcc... " >&6; }
6493if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495else
6496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6497 # We make a subdir and do the tests there. Otherwise we can end up
6498 # making bogus files that we don't know about and never remove. For
6499 # instance it was reported that on HP-UX the gcc test will end up
6500 # making a dummy file named 'D' -- because '-MD' means "put the output
6501 # in D".
6502 rm -rf conftest.dir
6503 mkdir conftest.dir
6504 # Copy depcomp to subdir because otherwise we won't find it if we're
6505 # using a relative directory.
6506 cp "$am_depcomp" conftest.dir
6507 cd conftest.dir
6508 # We will build objects and dependencies in a subdirectory because
6509 # it helps to detect inapplicable dependency modes. For instance
6510 # both Tru64's cc and ICC support -MD to output dependencies as a
6511 # side effect of compilation, but ICC will put the dependencies in
6512 # the current directory while Tru64 will put them in the object
6513 # directory.
6514 mkdir sub
6515
6516 am_cv_CC_dependencies_compiler_type=none
6517 if test "$am_compiler_list" = ""; then
6518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6519 fi
6520 am__universal=false
6521 case " $depcc " in #(
6522 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6523 esac
6524
6525 for depmode in $am_compiler_list; do
6526 # Setup a source with many dependencies, because some compilers
6527 # like to wrap large dependency lists on column 80 (with \), and
6528 # we should not choose a depcomp mode which is confused by this.
6529 #
6530 # We need to recreate these files for each test, as the compiler may
6531 # overwrite some of them when testing with obscure command lines.
6532 # This happens at least with the AIX C compiler.
6533 : > sub/conftest.c
6534 for i in 1 2 3 4 5 6; do
6535 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6536 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6537 # Solaris 10 /bin/sh.
6538 echo '/* dummy */' > sub/conftst$i.h
6539 done
6540 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6541
6542 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6543 # mode. It turns out that the SunPro C++ compiler does not properly
6544 # handle '-M -o', and we need to detect this. Also, some Intel
6545 # versions had trouble with output in subdirs.
6546 am__obj=sub/conftest.${OBJEXT-o}
6547 am__minus_obj="-o $am__obj"
6548 case $depmode in
6549 gcc)
6550 # This depmode causes a compiler race in universal mode.
6551 test "$am__universal" = false || continue
6552 ;;
6553 nosideeffect)
6554 # After this tag, mechanisms are not by side-effect, so they'll
6555 # only be used when explicitly requested.
6556 if test "x$enable_dependency_tracking" = xyes; then
6557 continue
6558 else
6559 break
6560 fi
6561 ;;
6562 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6563 # This compiler won't grok '-c -o', but also, the minuso test has
6564 # not run yet. These depmodes are late enough in the game, and
6565 # so weak that their functioning should not be impacted.
6566 am__obj=conftest.${OBJEXT-o}
6567 am__minus_obj=
6568 ;;
6569 none) break ;;
6570 esac
6571 if depmode=$depmode \
6572 source=sub/conftest.c object=$am__obj \
6573 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6574 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6575 >/dev/null 2>conftest.err &&
6576 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6577 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6578 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6579 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6580 # icc doesn't choke on unknown options, it will just issue warnings
6581 # or remarks (even with -Werror). So we grep stderr for any message
6582 # that says an option was ignored or not supported.
6583 # When given -MP, icc 7.0 and 7.1 complain thusly:
6584 # icc: Command line warning: ignoring option '-M'; no argument required
6585 # The diagnosis changed in icc 8.0:
6586 # icc: Command line remark: option '-MP' not supported
6587 if (grep 'ignoring option' conftest.err ||
6588 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6589 am_cv_CC_dependencies_compiler_type=$depmode
6590 break
6591 fi
6592 fi
6593 done
6594
6595 cd ..
6596 rm -rf conftest.dir
6597else
6598 am_cv_CC_dependencies_compiler_type=none
6599fi
6600
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6603$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6604CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6605
6606 if
6607 test "x$enable_dependency_tracking" != xno \
6608 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6609 am__fastdepCC_TRUE=
6610 am__fastdepCC_FALSE='#'
6611else
6612 am__fastdepCC_TRUE='#'
6613 am__fastdepCC_FALSE=
6614fi
6615
6616
6617am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6618
6619
6620# We require a C++11 compiler. Check if one is available, and if
6621# necessary, set CXX_DIALECT to some -std=xxx switch.
6622
6623 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6624 ac_ext=cpp
6625ac_cpp='$CXXCPP $CPPFLAGS'
6626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6629 CXX_DIALECT=""
6630 ac_success=no
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6632$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6633if ${ax_cv_cxx_compile_cxx11+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635else
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637/* end confdefs.h. */
6638
6639
6640// If the compiler admits that it is not ready for C++11, why torture it?
6641// Hopefully, this will speed up the test.
6642
6643#ifndef __cplusplus
6644
6645#error "This is not a C++ compiler"
6646
6647#elif __cplusplus < 201103L
6648
6649#error "This is not a C++11 compiler"
6650
6651#else
6652
6653namespace cxx11
6654{
6655
6656 namespace test_static_assert
6657 {
6658
6659 template <typename T>
6660 struct check
6661 {
6662 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6663 };
6664
6665 }
6666
6667 namespace test_final_override
6668 {
6669
6670 struct Base
6671 {
6672 virtual void f() {}
6673 };
6674
6675 struct Derived : public Base
6676 {
6677 virtual void f() override {}
6678 };
6679
6680 }
6681
6682 namespace test_double_right_angle_brackets
6683 {
6684
6685 template < typename T >
6686 struct check {};
6687
6688 typedef check<void> single_type;
6689 typedef check<check<void>> double_type;
6690 typedef check<check<check<void>>> triple_type;
6691 typedef check<check<check<check<void>>>> quadruple_type;
6692
6693 }
6694
6695 namespace test_decltype
6696 {
6697
6698 int
6699 f()
6700 {
6701 int a = 1;
6702 decltype(a) b = 2;
6703 return a + b;
6704 }
6705
6706 }
6707
6708 namespace test_type_deduction
6709 {
6710
6711 template < typename T1, typename T2 >
6712 struct is_same
6713 {
6714 static const bool value = false;
6715 };
6716
6717 template < typename T >
6718 struct is_same<T, T>
6719 {
6720 static const bool value = true;
6721 };
6722
6723 template < typename T1, typename T2 >
6724 auto
6725 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6726 {
6727 return a1 + a2;
6728 }
6729
6730 int
6731 test(const int c, volatile int v)
6732 {
6733 static_assert(is_same<int, decltype(0)>::value == true, "");
6734 static_assert(is_same<int, decltype(c)>::value == false, "");
6735 static_assert(is_same<int, decltype(v)>::value == false, "");
6736 auto ac = c;
6737 auto av = v;
6738 auto sumi = ac + av + 'x';
6739 auto sumf = ac + av + 1.0;
6740 static_assert(is_same<int, decltype(ac)>::value == true, "");
6741 static_assert(is_same<int, decltype(av)>::value == true, "");
6742 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6743 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6744 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6745 return (sumf > 0.0) ? sumi : add(c, v);
6746 }
6747
6748 }
6749
6750 namespace test_noexcept
6751 {
6752
6753 int f() { return 0; }
6754 int g() noexcept { return 0; }
6755
6756 static_assert(noexcept(f()) == false, "");
6757 static_assert(noexcept(g()) == true, "");
6758
6759 }
6760
6761 namespace test_constexpr
6762 {
6763
6764 template < typename CharT >
6765 unsigned long constexpr
6766 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6767 {
6768 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6769 }
6770
6771 template < typename CharT >
6772 unsigned long constexpr
6773 strlen_c(const CharT *const s) noexcept
6774 {
6775 return strlen_c_r(s, 0UL);
6776 }
6777
6778 static_assert(strlen_c("") == 0UL, "");
6779 static_assert(strlen_c("1") == 1UL, "");
6780 static_assert(strlen_c("example") == 7UL, "");
6781 static_assert(strlen_c("another\0example") == 7UL, "");
6782
6783 }
6784
6785 namespace test_rvalue_references
6786 {
6787
6788 template < int N >
6789 struct answer
6790 {
6791 static constexpr int value = N;
6792 };
6793
6794 answer<1> f(int&) { return answer<1>(); }
6795 answer<2> f(const int&) { return answer<2>(); }
6796 answer<3> f(int&&) { return answer<3>(); }
6797
6798 void
6799 test()
6800 {
6801 int i = 0;
6802 const int c = 0;
6803 static_assert(decltype(f(i))::value == 1, "");
6804 static_assert(decltype(f(c))::value == 2, "");
6805 static_assert(decltype(f(0))::value == 3, "");
6806 }
6807
6808 }
6809
6810 namespace test_uniform_initialization
6811 {
6812
6813 struct test
6814 {
6815 static const int zero {};
6816 static const int one {1};
6817 };
6818
6819 static_assert(test::zero == 0, "");
6820 static_assert(test::one == 1, "");
6821
6822 }
6823
6824 namespace test_lambdas
6825 {
6826
6827 void
6828 test1()
6829 {
6830 auto lambda1 = [](){};
6831 auto lambda2 = lambda1;
6832 lambda1();
6833 lambda2();
6834 }
6835
6836 int
6837 test2()
6838 {
6839 auto a = [](int i, int j){ return i + j; }(1, 2);
6840 auto b = []() -> int { return '0'; }();
6841 auto c = [=](){ return a + b; }();
6842 auto d = [&](){ return c; }();
6843 auto e = [a, &b](int x) mutable {
6844 const auto identity = [](int y){ return y; };
6845 for (auto i = 0; i < a; ++i)
6846 a += b--;
6847 return x + identity(a + b);
6848 }(0);
6849 return a + b + c + d + e;
6850 }
6851
6852 int
6853 test3()
6854 {
6855 const auto nullary = [](){ return 0; };
6856 const auto unary = [](int x){ return x; };
6857 using nullary_t = decltype(nullary);
6858 using unary_t = decltype(unary);
6859 const auto higher1st = [](nullary_t f){ return f(); };
6860 const auto higher2nd = [unary](nullary_t f1){
6861 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6862 };
6863 return higher1st(nullary) + higher2nd(nullary)(unary);
6864 }
6865
6866 }
6867
6868 namespace test_variadic_templates
6869 {
6870
6871 template <int...>
6872 struct sum;
6873
6874 template <int N0, int... N1toN>
6875 struct sum<N0, N1toN...>
6876 {
6877 static constexpr auto value = N0 + sum<N1toN...>::value;
6878 };
6879
6880 template <>
6881 struct sum<>
6882 {
6883 static constexpr auto value = 0;
6884 };
6885
6886 static_assert(sum<>::value == 0, "");
6887 static_assert(sum<1>::value == 1, "");
6888 static_assert(sum<23>::value == 23, "");
6889 static_assert(sum<1, 2>::value == 3, "");
6890 static_assert(sum<5, 5, 11>::value == 21, "");
6891 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6892
6893 }
6894
6895 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6896 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6897 // because of this.
6898 namespace test_template_alias_sfinae
6899 {
6900
6901 struct foo {};
6902
6903 template<typename T>
6904 using member = typename T::member_type;
6905
6906 template<typename T>
6907 void func(...) {}
6908
6909 template<typename T>
6910 void func(member<T>*) {}
6911
6912 void test();
6913
6914 void test() { func<foo>(0); }
6915
6916 }
6917
6918} // namespace cxx11
6919
6920#endif // __cplusplus >= 201103L
6921
6922
6923
6924_ACEOF
6925if ac_fn_cxx_try_compile "$LINENO"; then :
6926 ax_cv_cxx_compile_cxx11=yes
6927else
6928 ax_cv_cxx_compile_cxx11=no
6929fi
6930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931fi
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6933$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6934 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6935 ac_success=yes
6936 fi
6937
6938 if test x$ac_success = xno; then
6939 for alternative in ${ax_cxx_compile_alternatives}; do
6940 switch="-std=gnu++${alternative}"
6941 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6943$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6944if eval \${$cachevar+:} false; then :
6945 $as_echo_n "(cached) " >&6
6946else
6947 ac_save_CXX="$CXX"
6948 CXX="$CXX $switch"
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950/* end confdefs.h. */
6951
6952
6953// If the compiler admits that it is not ready for C++11, why torture it?
6954// Hopefully, this will speed up the test.
6955
6956#ifndef __cplusplus
6957
6958#error "This is not a C++ compiler"
6959
6960#elif __cplusplus < 201103L
6961
6962#error "This is not a C++11 compiler"
6963
6964#else
6965
6966namespace cxx11
6967{
6968
6969 namespace test_static_assert
6970 {
6971
6972 template <typename T>
6973 struct check
6974 {
6975 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6976 };
6977
6978 }
6979
6980 namespace test_final_override
6981 {
6982
6983 struct Base
6984 {
6985 virtual void f() {}
6986 };
6987
6988 struct Derived : public Base
6989 {
6990 virtual void f() override {}
6991 };
6992
6993 }
6994
6995 namespace test_double_right_angle_brackets
6996 {
6997
6998 template < typename T >
6999 struct check {};
7000
7001 typedef check<void> single_type;
7002 typedef check<check<void>> double_type;
7003 typedef check<check<check<void>>> triple_type;
7004 typedef check<check<check<check<void>>>> quadruple_type;
7005
7006 }
7007
7008 namespace test_decltype
7009 {
7010
7011 int
7012 f()
7013 {
7014 int a = 1;
7015 decltype(a) b = 2;
7016 return a + b;
7017 }
7018
7019 }
7020
7021 namespace test_type_deduction
7022 {
7023
7024 template < typename T1, typename T2 >
7025 struct is_same
7026 {
7027 static const bool value = false;
7028 };
7029
7030 template < typename T >
7031 struct is_same<T, T>
7032 {
7033 static const bool value = true;
7034 };
7035
7036 template < typename T1, typename T2 >
7037 auto
7038 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7039 {
7040 return a1 + a2;
7041 }
7042
7043 int
7044 test(const int c, volatile int v)
7045 {
7046 static_assert(is_same<int, decltype(0)>::value == true, "");
7047 static_assert(is_same<int, decltype(c)>::value == false, "");
7048 static_assert(is_same<int, decltype(v)>::value == false, "");
7049 auto ac = c;
7050 auto av = v;
7051 auto sumi = ac + av + 'x';
7052 auto sumf = ac + av + 1.0;
7053 static_assert(is_same<int, decltype(ac)>::value == true, "");
7054 static_assert(is_same<int, decltype(av)>::value == true, "");
7055 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7056 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7057 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7058 return (sumf > 0.0) ? sumi : add(c, v);
7059 }
7060
7061 }
7062
7063 namespace test_noexcept
7064 {
7065
7066 int f() { return 0; }
7067 int g() noexcept { return 0; }
7068
7069 static_assert(noexcept(f()) == false, "");
7070 static_assert(noexcept(g()) == true, "");
7071
7072 }
7073
7074 namespace test_constexpr
7075 {
7076
7077 template < typename CharT >
7078 unsigned long constexpr
7079 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7080 {
7081 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7082 }
7083
7084 template < typename CharT >
7085 unsigned long constexpr
7086 strlen_c(const CharT *const s) noexcept
7087 {
7088 return strlen_c_r(s, 0UL);
7089 }
7090
7091 static_assert(strlen_c("") == 0UL, "");
7092 static_assert(strlen_c("1") == 1UL, "");
7093 static_assert(strlen_c("example") == 7UL, "");
7094 static_assert(strlen_c("another\0example") == 7UL, "");
7095
7096 }
7097
7098 namespace test_rvalue_references
7099 {
7100
7101 template < int N >
7102 struct answer
7103 {
7104 static constexpr int value = N;
7105 };
7106
7107 answer<1> f(int&) { return answer<1>(); }
7108 answer<2> f(const int&) { return answer<2>(); }
7109 answer<3> f(int&&) { return answer<3>(); }
7110
7111 void
7112 test()
7113 {
7114 int i = 0;
7115 const int c = 0;
7116 static_assert(decltype(f(i))::value == 1, "");
7117 static_assert(decltype(f(c))::value == 2, "");
7118 static_assert(decltype(f(0))::value == 3, "");
7119 }
7120
7121 }
7122
7123 namespace test_uniform_initialization
7124 {
7125
7126 struct test
7127 {
7128 static const int zero {};
7129 static const int one {1};
7130 };
7131
7132 static_assert(test::zero == 0, "");
7133 static_assert(test::one == 1, "");
7134
7135 }
7136
7137 namespace test_lambdas
7138 {
7139
7140 void
7141 test1()
7142 {
7143 auto lambda1 = [](){};
7144 auto lambda2 = lambda1;
7145 lambda1();
7146 lambda2();
7147 }
7148
7149 int
7150 test2()
7151 {
7152 auto a = [](int i, int j){ return i + j; }(1, 2);
7153 auto b = []() -> int { return '0'; }();
7154 auto c = [=](){ return a + b; }();
7155 auto d = [&](){ return c; }();
7156 auto e = [a, &b](int x) mutable {
7157 const auto identity = [](int y){ return y; };
7158 for (auto i = 0; i < a; ++i)
7159 a += b--;
7160 return x + identity(a + b);
7161 }(0);
7162 return a + b + c + d + e;
7163 }
7164
7165 int
7166 test3()
7167 {
7168 const auto nullary = [](){ return 0; };
7169 const auto unary = [](int x){ return x; };
7170 using nullary_t = decltype(nullary);
7171 using unary_t = decltype(unary);
7172 const auto higher1st = [](nullary_t f){ return f(); };
7173 const auto higher2nd = [unary](nullary_t f1){
7174 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7175 };
7176 return higher1st(nullary) + higher2nd(nullary)(unary);
7177 }
7178
7179 }
7180
7181 namespace test_variadic_templates
7182 {
7183
7184 template <int...>
7185 struct sum;
7186
7187 template <int N0, int... N1toN>
7188 struct sum<N0, N1toN...>
7189 {
7190 static constexpr auto value = N0 + sum<N1toN...>::value;
7191 };
7192
7193 template <>
7194 struct sum<>
7195 {
7196 static constexpr auto value = 0;
7197 };
7198
7199 static_assert(sum<>::value == 0, "");
7200 static_assert(sum<1>::value == 1, "");
7201 static_assert(sum<23>::value == 23, "");
7202 static_assert(sum<1, 2>::value == 3, "");
7203 static_assert(sum<5, 5, 11>::value == 21, "");
7204 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7205
7206 }
7207
7208 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7209 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7210 // because of this.
7211 namespace test_template_alias_sfinae
7212 {
7213
7214 struct foo {};
7215
7216 template<typename T>
7217 using member = typename T::member_type;
7218
7219 template<typename T>
7220 void func(...) {}
7221
7222 template<typename T>
7223 void func(member<T>*) {}
7224
7225 void test();
7226
7227 void test() { func<foo>(0); }
7228
7229 }
7230
7231} // namespace cxx11
7232
7233#endif // __cplusplus >= 201103L
7234
7235
7236
7237_ACEOF
7238if ac_fn_cxx_try_compile "$LINENO"; then :
7239 eval $cachevar=yes
7240else
7241 eval $cachevar=no
7242fi
7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 CXX="$ac_save_CXX"
7245fi
7246eval ac_res=\$$cachevar
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7248$as_echo "$ac_res" >&6; }
7249 if eval test x\$$cachevar = xyes; then
7250 CXX_DIALECT="$switch"
7251 ac_success=yes
7252 break
7253 fi
7254 done
7255 fi
7256
7257 if test x$ac_success = xno; then
7258 for alternative in ${ax_cxx_compile_alternatives}; do
7259 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7260 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7262$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7263if eval \${$cachevar+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265else
7266 ac_save_CXX="$CXX"
7267 CXX="$CXX $switch"
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h. */
7270
7271
7272// If the compiler admits that it is not ready for C++11, why torture it?
7273// Hopefully, this will speed up the test.
7274
7275#ifndef __cplusplus
7276
7277#error "This is not a C++ compiler"
7278
7279#elif __cplusplus < 201103L
7280
7281#error "This is not a C++11 compiler"
7282
7283#else
7284
7285namespace cxx11
7286{
7287
7288 namespace test_static_assert
7289 {
7290
7291 template <typename T>
7292 struct check
7293 {
7294 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7295 };
7296
7297 }
7298
7299 namespace test_final_override
7300 {
7301
7302 struct Base
7303 {
7304 virtual void f() {}
7305 };
7306
7307 struct Derived : public Base
7308 {
7309 virtual void f() override {}
7310 };
7311
7312 }
7313
7314 namespace test_double_right_angle_brackets
7315 {
7316
7317 template < typename T >
7318 struct check {};
7319
7320 typedef check<void> single_type;
7321 typedef check<check<void>> double_type;
7322 typedef check<check<check<void>>> triple_type;
7323 typedef check<check<check<check<void>>>> quadruple_type;
7324
7325 }
7326
7327 namespace test_decltype
7328 {
7329
7330 int
7331 f()
7332 {
7333 int a = 1;
7334 decltype(a) b = 2;
7335 return a + b;
7336 }
7337
7338 }
7339
7340 namespace test_type_deduction
7341 {
7342
7343 template < typename T1, typename T2 >
7344 struct is_same
7345 {
7346 static const bool value = false;
7347 };
7348
7349 template < typename T >
7350 struct is_same<T, T>
7351 {
7352 static const bool value = true;
7353 };
7354
7355 template < typename T1, typename T2 >
7356 auto
7357 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7358 {
7359 return a1 + a2;
7360 }
7361
7362 int
7363 test(const int c, volatile int v)
7364 {
7365 static_assert(is_same<int, decltype(0)>::value == true, "");
7366 static_assert(is_same<int, decltype(c)>::value == false, "");
7367 static_assert(is_same<int, decltype(v)>::value == false, "");
7368 auto ac = c;
7369 auto av = v;
7370 auto sumi = ac + av + 'x';
7371 auto sumf = ac + av + 1.0;
7372 static_assert(is_same<int, decltype(ac)>::value == true, "");
7373 static_assert(is_same<int, decltype(av)>::value == true, "");
7374 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7375 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7376 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7377 return (sumf > 0.0) ? sumi : add(c, v);
7378 }
7379
7380 }
7381
7382 namespace test_noexcept
7383 {
7384
7385 int f() { return 0; }
7386 int g() noexcept { return 0; }
7387
7388 static_assert(noexcept(f()) == false, "");
7389 static_assert(noexcept(g()) == true, "");
7390
7391 }
7392
7393 namespace test_constexpr
7394 {
7395
7396 template < typename CharT >
7397 unsigned long constexpr
7398 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7399 {
7400 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7401 }
7402
7403 template < typename CharT >
7404 unsigned long constexpr
7405 strlen_c(const CharT *const s) noexcept
7406 {
7407 return strlen_c_r(s, 0UL);
7408 }
7409
7410 static_assert(strlen_c("") == 0UL, "");
7411 static_assert(strlen_c("1") == 1UL, "");
7412 static_assert(strlen_c("example") == 7UL, "");
7413 static_assert(strlen_c("another\0example") == 7UL, "");
7414
7415 }
7416
7417 namespace test_rvalue_references
7418 {
7419
7420 template < int N >
7421 struct answer
7422 {
7423 static constexpr int value = N;
7424 };
7425
7426 answer<1> f(int&) { return answer<1>(); }
7427 answer<2> f(const int&) { return answer<2>(); }
7428 answer<3> f(int&&) { return answer<3>(); }
7429
7430 void
7431 test()
7432 {
7433 int i = 0;
7434 const int c = 0;
7435 static_assert(decltype(f(i))::value == 1, "");
7436 static_assert(decltype(f(c))::value == 2, "");
7437 static_assert(decltype(f(0))::value == 3, "");
7438 }
7439
7440 }
7441
7442 namespace test_uniform_initialization
7443 {
7444
7445 struct test
7446 {
7447 static const int zero {};
7448 static const int one {1};
7449 };
7450
7451 static_assert(test::zero == 0, "");
7452 static_assert(test::one == 1, "");
7453
7454 }
7455
7456 namespace test_lambdas
7457 {
7458
7459 void
7460 test1()
7461 {
7462 auto lambda1 = [](){};
7463 auto lambda2 = lambda1;
7464 lambda1();
7465 lambda2();
7466 }
7467
7468 int
7469 test2()
7470 {
7471 auto a = [](int i, int j){ return i + j; }(1, 2);
7472 auto b = []() -> int { return '0'; }();
7473 auto c = [=](){ return a + b; }();
7474 auto d = [&](){ return c; }();
7475 auto e = [a, &b](int x) mutable {
7476 const auto identity = [](int y){ return y; };
7477 for (auto i = 0; i < a; ++i)
7478 a += b--;
7479 return x + identity(a + b);
7480 }(0);
7481 return a + b + c + d + e;
7482 }
7483
7484 int
7485 test3()
7486 {
7487 const auto nullary = [](){ return 0; };
7488 const auto unary = [](int x){ return x; };
7489 using nullary_t = decltype(nullary);
7490 using unary_t = decltype(unary);
7491 const auto higher1st = [](nullary_t f){ return f(); };
7492 const auto higher2nd = [unary](nullary_t f1){
7493 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7494 };
7495 return higher1st(nullary) + higher2nd(nullary)(unary);
7496 }
7497
7498 }
7499
7500 namespace test_variadic_templates
7501 {
7502
7503 template <int...>
7504 struct sum;
7505
7506 template <int N0, int... N1toN>
7507 struct sum<N0, N1toN...>
7508 {
7509 static constexpr auto value = N0 + sum<N1toN...>::value;
7510 };
7511
7512 template <>
7513 struct sum<>
7514 {
7515 static constexpr auto value = 0;
7516 };
7517
7518 static_assert(sum<>::value == 0, "");
7519 static_assert(sum<1>::value == 1, "");
7520 static_assert(sum<23>::value == 23, "");
7521 static_assert(sum<1, 2>::value == 3, "");
7522 static_assert(sum<5, 5, 11>::value == 21, "");
7523 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7524
7525 }
7526
7527 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7528 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7529 // because of this.
7530 namespace test_template_alias_sfinae
7531 {
7532
7533 struct foo {};
7534
7535 template<typename T>
7536 using member = typename T::member_type;
7537
7538 template<typename T>
7539 void func(...) {}
7540
7541 template<typename T>
7542 void func(member<T>*) {}
7543
7544 void test();
7545
7546 void test() { func<foo>(0); }
7547
7548 }
7549
7550} // namespace cxx11
7551
7552#endif // __cplusplus >= 201103L
7553
7554
7555
7556_ACEOF
7557if ac_fn_cxx_try_compile "$LINENO"; then :
7558 eval $cachevar=yes
7559else
7560 eval $cachevar=no
7561fi
7562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 CXX="$ac_save_CXX"
7564fi
7565eval ac_res=\$$cachevar
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7567$as_echo "$ac_res" >&6; }
7568 if eval test x\$$cachevar = xyes; then
7569 CXX_DIALECT="$switch"
7570 ac_success=yes
7571 break
7572 fi
7573 done
7574 if test x$ac_success = xyes; then
7575 break
7576 fi
7577 done
7578 fi
7579 ac_ext=c
7580ac_cpp='$CPP $CPPFLAGS'
7581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584
7585 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7586 if test x$ac_success = xno; then
7587 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7588 fi
7589 fi
7590 if test x$ac_success = xno; then
7591 HAVE_CXX11=0
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7593$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7594 else
7595 HAVE_CXX11=1
7596
7597$as_echo "#define HAVE_CXX11 1" >>confdefs.h
7598
7599 fi
7600
7601
7602
7603
7604# If we haven't got the data from the intl directory,
7605# assume NLS is disabled.
7606USE_NLS=no
7607LIBINTL=
7608LIBINTL_DEP=
7609INCINTL=
7610XGETTEXT=
7611GMSGFMT=
7612POSUB=
7613
7614if test -f ../intl/config.intl; then
7615 . ../intl/config.intl
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7618$as_echo_n "checking whether NLS is requested... " >&6; }
7619if test x"$USE_NLS" != xyes; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7624$as_echo "yes" >&6; }
7625
7626$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7627
7628
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7630$as_echo_n "checking for catalogs to be installed... " >&6; }
7631 # Look for .po and .gmo files in the source directory.
7632 CATALOGS=
7633 XLINGUAS=
7634 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7635 # If there aren't any .gmo files the shell will give us the
7636 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7637 # weeded out.
7638 case "$cat" in *\**)
7639 continue;;
7640 esac
7641 # The quadruple backslash is collapsed to a double backslash
7642 # by the backticks, then collapsed again by the double quotes,
7643 # leaving us with one backslash in the sed expression (right
7644 # before the dot that mustn't act as a wildcard).
7645 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7646 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7647 # The user is allowed to set LINGUAS to a list of languages to
7648 # install catalogs for. If it's empty that means "all of them."
7649 if test "x$LINGUAS" = x; then
7650 CATALOGS="$CATALOGS $cat"
7651 XLINGUAS="$XLINGUAS $lang"
7652 else
7653 case "$LINGUAS" in *$lang*)
7654 CATALOGS="$CATALOGS $cat"
7655 XLINGUAS="$XLINGUAS $lang"
7656 ;;
7657 esac
7658 fi
7659 done
7660 LINGUAS="$XLINGUAS"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7662$as_echo "$LINGUAS" >&6; }
7663
7664
7665 DATADIRNAME=share
7666
7667 INSTOBJEXT=.mo
7668
7669 GENCAT=gencat
7670
7671 CATOBJEXT=.gmo
7672
7673fi
7674
7675
7676 # Check for presence and size of long long.
7677 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7678if test "x$ac_cv_type_long_long" = xyes; then :
7679
7680cat >>confdefs.h <<_ACEOF
7681#define HAVE_LONG_LONG 1
7682_ACEOF
7683
7684# The cast to long int works around a bug in the HP C Compiler
7685# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7686# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7687# This bug is HP SR number 8606223364.
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7689$as_echo_n "checking size of long long... " >&6; }
7690if ${ac_cv_sizeof_long_long+:} false; then :
7691 $as_echo_n "(cached) " >&6
7692else
7693 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7694
7695else
7696 if test "$ac_cv_type_long_long" = yes; then
7697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7699as_fn_error 77 "cannot compute sizeof (long long)
7700See \`config.log' for more details" "$LINENO" 5; }
7701 else
7702 ac_cv_sizeof_long_long=0
7703 fi
7704fi
7705
7706fi
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7708$as_echo "$ac_cv_sizeof_long_long" >&6; }
7709
7710
7711
7712cat >>confdefs.h <<_ACEOF
7713#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7714_ACEOF
7715
7716
7717fi
7718
7719
7720 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7721ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7722if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7723 ac_have_decl=1
7724else
7725 ac_have_decl=0
7726fi
7727
7728cat >>confdefs.h <<_ACEOF
7729#define HAVE_DECL_BASENAME $ac_have_decl
7730_ACEOF
7731ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7732if test "x$ac_cv_have_decl_ffs" = xyes; then :
7733 ac_have_decl=1
7734else
7735 ac_have_decl=0
7736fi
7737
7738cat >>confdefs.h <<_ACEOF
7739#define HAVE_DECL_FFS $ac_have_decl
7740_ACEOF
7741ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7742if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7743 ac_have_decl=1
7744else
7745 ac_have_decl=0
7746fi
7747
7748cat >>confdefs.h <<_ACEOF
7749#define HAVE_DECL_ASPRINTF $ac_have_decl
7750_ACEOF
7751ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7752if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7753 ac_have_decl=1
7754else
7755 ac_have_decl=0
7756fi
7757
7758cat >>confdefs.h <<_ACEOF
7759#define HAVE_DECL_VASPRINTF $ac_have_decl
7760_ACEOF
7761ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7762if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7763 ac_have_decl=1
7764else
7765 ac_have_decl=0
7766fi
7767
7768cat >>confdefs.h <<_ACEOF
7769#define HAVE_DECL_SNPRINTF $ac_have_decl
7770_ACEOF
7771ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7772if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7773 ac_have_decl=1
7774else
7775 ac_have_decl=0
7776fi
7777
7778cat >>confdefs.h <<_ACEOF
7779#define HAVE_DECL_VSNPRINTF $ac_have_decl
7780_ACEOF
7781
7782 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7783if test "x$ac_cv_have_decl_strtol" = xyes; then :
7784 ac_have_decl=1
7785else
7786 ac_have_decl=0
7787fi
7788
7789cat >>confdefs.h <<_ACEOF
7790#define HAVE_DECL_STRTOL $ac_have_decl
7791_ACEOF
7792ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7793if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7794 ac_have_decl=1
7795else
7796 ac_have_decl=0
7797fi
7798
7799cat >>confdefs.h <<_ACEOF
7800#define HAVE_DECL_STRTOUL $ac_have_decl
7801_ACEOF
7802ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7803if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7804 ac_have_decl=1
7805else
7806 ac_have_decl=0
7807fi
7808
7809cat >>confdefs.h <<_ACEOF
7810#define HAVE_DECL_STRTOLL $ac_have_decl
7811_ACEOF
7812ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7813if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7814 ac_have_decl=1
7815else
7816 ac_have_decl=0
7817fi
7818
7819cat >>confdefs.h <<_ACEOF
7820#define HAVE_DECL_STRTOULL $ac_have_decl
7821_ACEOF
7822
7823 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7824if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7825 ac_have_decl=1
7826else
7827 ac_have_decl=0
7828fi
7829
7830cat >>confdefs.h <<_ACEOF
7831#define HAVE_DECL_STRVERSCMP $ac_have_decl
7832_ACEOF
7833
7834
7835ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7836if test "x$ac_cv_type_size_t" = xyes; then :
7837
7838else
7839
7840cat >>confdefs.h <<_ACEOF
7841#define size_t unsigned int
7842_ACEOF
7843
7844fi
7845
05ea2a05
TT
7846
7847
7848
7849 for ac_header in $ac_header_list
7850do :
7851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7852ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7853"
7854if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7855 cat >>confdefs.h <<_ACEOF
7856#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7857_ACEOF
7858
7859fi
7860
7861done
7862
7863
7864
7865
7866
7867
7868
7869ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7870if test "x$ac_cv_type_pid_t" = xyes; then :
7871
7872else
7873
7874cat >>confdefs.h <<_ACEOF
7875#define pid_t int
7876_ACEOF
7877
7878fi
7879
01027315
TT
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7881$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7882if ${ac_cv_path_SED+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884else
7885 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7886 for ac_i in 1 2 3 4 5 6 7; do
7887 ac_script="$ac_script$as_nl$ac_script"
7888 done
7889 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7890 { ac_script=; unset ac_script;}
7891 if test -z "$SED"; then
7892 ac_path_SED_found=false
7893 # Loop through the user's path and test for each of PROGNAME-LIST
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_prog in sed gsed; do
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7902 as_fn_executable_p "$ac_path_SED" || continue
7903# Check for GNU ac_path_SED and select it if it is found.
7904 # Check for GNU $ac_path_SED
7905case `"$ac_path_SED" --version 2>&1` in
7906*GNU*)
7907 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7908*)
7909 ac_count=0
7910 $as_echo_n 0123456789 >"conftest.in"
7911 while :
7912 do
7913 cat "conftest.in" "conftest.in" >"conftest.tmp"
7914 mv "conftest.tmp" "conftest.in"
7915 cp "conftest.in" "conftest.nl"
7916 $as_echo '' >> "conftest.nl"
7917 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7919 as_fn_arith $ac_count + 1 && ac_count=$as_val
7920 if test $ac_count -gt ${ac_path_SED_max-0}; then
7921 # Best one so far, save it but keep looking for a better one
7922 ac_cv_path_SED="$ac_path_SED"
7923 ac_path_SED_max=$ac_count
7924 fi
7925 # 10*(2^10) chars as input seems more than enough
7926 test $ac_count -gt 10 && break
7927 done
7928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7929esac
7930
7931 $ac_path_SED_found && break 3
7932 done
7933 done
7934 done
7935IFS=$as_save_IFS
7936 if test -z "$ac_cv_path_SED"; then
7937 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7938 fi
7939else
7940 ac_cv_path_SED=$SED
7941fi
7942
7943fi
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7945$as_echo "$ac_cv_path_SED" >&6; }
7946 SED="$ac_cv_path_SED"
7947 rm -f conftest.sed
7948
7949
05ea2a05
TT
7950 if test "X$prefix" = "XNONE"; then
7951 acl_final_prefix="$ac_default_prefix"
7952 else
7953 acl_final_prefix="$prefix"
7954 fi
7955 if test "X$exec_prefix" = "XNONE"; then
7956 acl_final_exec_prefix='${prefix}'
7957 else
7958 acl_final_exec_prefix="$exec_prefix"
7959 fi
7960 acl_save_prefix="$prefix"
7961 prefix="$acl_final_prefix"
7962 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7963 prefix="$acl_save_prefix"
7964
7965
7966# Check whether --with-gnu-ld was given.
7967if test "${with_gnu_ld+set}" = set; then :
7968 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7969else
7970 with_gnu_ld=no
7971fi
7972
7973# Prepare PATH_SEPARATOR.
7974# The user is always right.
7975if test "${PATH_SEPARATOR+set}" != set; then
7976 echo "#! /bin/sh" >conf$$.sh
7977 echo "exit 0" >>conf$$.sh
7978 chmod +x conf$$.sh
7979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7980 PATH_SEPARATOR=';'
7981 else
7982 PATH_SEPARATOR=:
7983 fi
7984 rm -f conf$$.sh
7985fi
7986ac_prog=ld
7987if test "$GCC" = yes; then
7988 # Check if gcc -print-prog-name=ld gives a path.
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7990$as_echo_n "checking for ld used by GCC... " >&6; }
7991 case $host in
7992 *-*-mingw*)
7993 # gcc leaves a trailing carriage return which upsets mingw
7994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7995 *)
7996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7997 esac
7998 case $ac_prog in
7999 # Accept absolute paths.
8000 [\\/]* | [A-Za-z]:[\\/]*)
8001 re_direlt='/[^/][^/]*/\.\./'
8002 # Canonicalize the path of ld
8003 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8004 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8005 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8006 done
8007 test -z "$LD" && LD="$ac_prog"
8008 ;;
8009 "")
8010 # If it fails, then pretend we aren't using GCC.
8011 ac_prog=ld
8012 ;;
8013 *)
8014 # If it is relative, then search for the first ld in PATH.
8015 with_gnu_ld=unknown
8016 ;;
8017 esac
8018elif test "$with_gnu_ld" = yes; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8020$as_echo_n "checking for GNU ld... " >&6; }
8021else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8023$as_echo_n "checking for non-GNU ld... " >&6; }
8024fi
8025if ${acl_cv_path_LD+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027else
8028 if test -z "$LD"; then
8029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8030 for ac_dir in $PATH; do
8031 test -z "$ac_dir" && ac_dir=.
8032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8033 acl_cv_path_LD="$ac_dir/$ac_prog"
8034 # Check to see if the program is GNU ld. I'd rather use --version,
8035 # but apparently some GNU ld's only accept -v.
8036 # Break only if it was the GNU/non-GNU ld that we prefer.
8037 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8038 test "$with_gnu_ld" != no && break
8039 else
8040 test "$with_gnu_ld" != yes && break
8041 fi
8042 fi
8043 done
8044 IFS="$ac_save_ifs"
8045else
8046 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8047fi
8048fi
8049
8050LD="$acl_cv_path_LD"
8051if test -n "$LD"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8053$as_echo "$LD" >&6; }
8054else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056$as_echo "no" >&6; }
8057fi
8058test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8060$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8061if ${acl_cv_prog_gnu_ld+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063else
8064 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8065if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8066 acl_cv_prog_gnu_ld=yes
8067else
8068 acl_cv_prog_gnu_ld=no
8069fi
8070fi
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8072$as_echo "$acl_cv_prog_gnu_ld" >&6; }
8073with_gnu_ld=$acl_cv_prog_gnu_ld
8074
8075
8076
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8078$as_echo_n "checking for shared library run path origin... " >&6; }
8079if ${acl_cv_rpath+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081else
8082
8083 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8084 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8085 . ./conftest.sh
8086 rm -f ./conftest.sh
8087 acl_cv_rpath=done
8088
8089fi
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8091$as_echo "$acl_cv_rpath" >&6; }
8092 wl="$acl_cv_wl"
8093 libext="$acl_cv_libext"
8094 shlibext="$acl_cv_shlibext"
8095 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8096 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8097 hardcode_direct="$acl_cv_hardcode_direct"
8098 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8099 # Check whether --enable-rpath was given.
8100if test "${enable_rpath+set}" = set; then :
8101 enableval=$enable_rpath; :
8102else
8103 enable_rpath=yes
8104fi
8105
8106
8107
db6878ac
SM
8108 # Set the 'development' global.
8109 . $srcdir/../bfd/development.sh
8110
01027315
TT
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8112$as_echo_n "checking for ANSI C header files... " >&6; }
8113if ${ac_cv_header_stdc+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115else
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117/* end confdefs.h. */
8118#include <stdlib.h>
8119#include <stdarg.h>
8120#include <string.h>
8121#include <float.h>
8122
8123int
8124main ()
8125{
8126
8127 ;
8128 return 0;
8129}
8130_ACEOF
8131if ac_fn_c_try_compile "$LINENO"; then :
8132 ac_cv_header_stdc=yes
8133else
8134 ac_cv_header_stdc=no
8135fi
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137
8138if test $ac_cv_header_stdc = yes; then
8139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h. */
8142#include <string.h>
8143
8144_ACEOF
8145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8146 $EGREP "memchr" >/dev/null 2>&1; then :
8147
8148else
8149 ac_cv_header_stdc=no
8150fi
8151rm -f conftest*
8152
8153fi
8154
8155if test $ac_cv_header_stdc = yes; then
8156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158/* end confdefs.h. */
8159#include <stdlib.h>
8160
8161_ACEOF
8162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8163 $EGREP "free" >/dev/null 2>&1; then :
8164
8165else
8166 ac_cv_header_stdc=no
8167fi
8168rm -f conftest*
8169
8170fi
8171
8172if test $ac_cv_header_stdc = yes; then
8173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8174 if test "$cross_compiling" = yes; then :
8175 :
8176else
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h. */
8179#include <ctype.h>
8180#include <stdlib.h>
8181#if ((' ' & 0x0FF) == 0x020)
8182# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8183# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8184#else
8185# define ISLOWER(c) \
8186 (('a' <= (c) && (c) <= 'i') \
8187 || ('j' <= (c) && (c) <= 'r') \
8188 || ('s' <= (c) && (c) <= 'z'))
8189# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8190#endif
8191
8192#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8193int
8194main ()
8195{
8196 int i;
8197 for (i = 0; i < 256; i++)
8198 if (XOR (islower (i), ISLOWER (i))
8199 || toupper (i) != TOUPPER (i))
8200 return 2;
8201 return 0;
8202}
8203_ACEOF
8204if ac_fn_c_try_run "$LINENO"; then :
8205
8206else
8207 ac_cv_header_stdc=no
8208fi
8209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8210 conftest.$ac_objext conftest.beam conftest.$ac_ext
8211fi
8212
8213fi
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8216$as_echo "$ac_cv_header_stdc" >&6; }
8217if test $ac_cv_header_stdc = yes; then
8218
8219$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8220
8221fi
8222
8223 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8224# for constant arguments. Useless!
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8226$as_echo_n "checking for working alloca.h... " >&6; }
8227if ${ac_cv_working_alloca_h+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229else
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231/* end confdefs.h. */
8232#include <alloca.h>
8233int
8234main ()
8235{
8236char *p = (char *) alloca (2 * sizeof (int));
8237 if (p) return 0;
8238 ;
8239 return 0;
8240}
8241_ACEOF
8242if ac_fn_c_try_link "$LINENO"; then :
8243 ac_cv_working_alloca_h=yes
8244else
8245 ac_cv_working_alloca_h=no
8246fi
8247rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249fi
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8251$as_echo "$ac_cv_working_alloca_h" >&6; }
8252if test $ac_cv_working_alloca_h = yes; then
8253
8254$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8255
8256fi
8257
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8259$as_echo_n "checking for alloca... " >&6; }
8260if ${ac_cv_func_alloca_works+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262else
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264/* end confdefs.h. */
8265#ifdef __GNUC__
8266# define alloca __builtin_alloca
8267#else
8268# ifdef _MSC_VER
8269# include <malloc.h>
8270# define alloca _alloca
8271# else
8272# ifdef HAVE_ALLOCA_H
8273# include <alloca.h>
8274# else
8275# ifdef _AIX
8276 #pragma alloca
8277# else
8278# ifndef alloca /* predefined by HP cc +Olibcalls */
8279void *alloca (size_t);
8280# endif
8281# endif
8282# endif
8283# endif
8284#endif
8285
8286int
8287main ()
8288{
8289char *p = (char *) alloca (1);
8290 if (p) return 0;
8291 ;
8292 return 0;
8293}
8294_ACEOF
8295if ac_fn_c_try_link "$LINENO"; then :
8296 ac_cv_func_alloca_works=yes
8297else
8298 ac_cv_func_alloca_works=no
8299fi
8300rm -f core conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8302fi
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8304$as_echo "$ac_cv_func_alloca_works" >&6; }
8305
8306if test $ac_cv_func_alloca_works = yes; then
8307
8308$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8309
8310else
8311 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8312# that cause trouble. Some versions do not even contain alloca or
8313# contain a buggy version. If you still want to use their alloca,
8314# use ar to extract alloca.o from them instead of compiling alloca.c.
8315
8316ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8317
8318$as_echo "#define C_ALLOCA 1" >>confdefs.h
8319
8320
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8322$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8323if ${ac_cv_os_cray+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h. */
8328#if defined CRAY && ! defined CRAY2
8329webecray
8330#else
8331wenotbecray
8332#endif
8333
8334_ACEOF
8335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8336 $EGREP "webecray" >/dev/null 2>&1; then :
8337 ac_cv_os_cray=yes
8338else
8339 ac_cv_os_cray=no
8340fi
8341rm -f conftest*
8342
8343fi
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8345$as_echo "$ac_cv_os_cray" >&6; }
8346if test $ac_cv_os_cray = yes; then
8347 for ac_func in _getb67 GETB67 getb67; do
8348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8349ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8350if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8351
8352cat >>confdefs.h <<_ACEOF
8353#define CRAY_STACKSEG_END $ac_func
8354_ACEOF
8355
8356 break
8357fi
8358
8359 done
8360fi
8361
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8363$as_echo_n "checking stack direction for C alloca... " >&6; }
8364if ${ac_cv_c_stack_direction+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366else
8367 if test "$cross_compiling" = yes; then :
8368 ac_cv_c_stack_direction=0
8369else
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h. */
8372$ac_includes_default
8373int
8374find_stack_direction (int *addr, int depth)
8375{
8376 int dir, dummy = 0;
8377 if (! addr)
8378 addr = &dummy;
8379 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8380 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8381 return dir + dummy;
8382}
8383
8384int
8385main (int argc, char **argv)
8386{
8387 return find_stack_direction (0, argc + !argv + 20) < 0;
8388}
8389_ACEOF
8390if ac_fn_c_try_run "$LINENO"; then :
8391 ac_cv_c_stack_direction=1
8392else
8393 ac_cv_c_stack_direction=-1
8394fi
8395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8396 conftest.$ac_objext conftest.beam conftest.$ac_ext
8397fi
8398
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8401$as_echo "$ac_cv_c_stack_direction" >&6; }
8402cat >>confdefs.h <<_ACEOF
8403#define STACK_DIRECTION $ac_cv_c_stack_direction
8404_ACEOF
8405
8406
8407fi
8408
8409
8410 WIN32APILIBS=
8411 case ${host} in
8412 *mingw32*)
8413
8414$as_echo "#define USE_WIN32API 1" >>confdefs.h
8415
8416 WIN32APILIBS="-lws2_32"
8417 ;;
8418 esac
8419
8420
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8422$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8423if ${am_cv_langinfo_codeset+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425else
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h. */
8428#include <langinfo.h>
8429int
8430main ()
8431{
8432char* cs = nl_langinfo(CODESET);
8433 ;
8434 return 0;
8435}
8436_ACEOF
8437if ac_fn_c_try_link "$LINENO"; then :
8438 am_cv_langinfo_codeset=yes
8439else
8440 am_cv_langinfo_codeset=no
8441fi
8442rm -f core conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
8444
8445fi
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8447$as_echo "$am_cv_langinfo_codeset" >&6; }
8448 if test $am_cv_langinfo_codeset = yes; then
8449
8450$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8451
8452 fi
8453
8454
c8693053 8455 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
01027315
TT
8456do :
8457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8458ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8459if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8460 cat >>confdefs.h <<_ACEOF
8461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8462_ACEOF
8463
8464fi
8465
8466done
8467
8468
05ea2a05
TT
8469
8470for ac_func in getpagesize
01027315 8471do :
05ea2a05
TT
8472 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8473if test "x$ac_cv_func_getpagesize" = xyes; then :
01027315 8474 cat >>confdefs.h <<_ACEOF
05ea2a05 8475#define HAVE_GETPAGESIZE 1
01027315
TT
8476_ACEOF
8477
8478fi
8479done
8480
05ea2a05
TT
8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8482$as_echo_n "checking for working mmap... " >&6; }
8483if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8484 $as_echo_n "(cached) " >&6
01027315 8485else
05ea2a05
TT
8486 if test "$cross_compiling" = yes; then :
8487 ac_cv_func_mmap_fixed_mapped=no
8488else
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h. */
8491$ac_includes_default
8492/* malloc might have been renamed as rpl_malloc. */
8493#undef malloc
8494
8495/* Thanks to Mike Haertel and Jim Avera for this test.
8496 Here is a matrix of mmap possibilities:
8497 mmap private not fixed
8498 mmap private fixed at somewhere currently unmapped
8499 mmap private fixed at somewhere already mapped
8500 mmap shared not fixed
8501 mmap shared fixed at somewhere currently unmapped
8502 mmap shared fixed at somewhere already mapped
8503 For private mappings, we should verify that changes cannot be read()
8504 back from the file, nor mmap's back from the file at a different
8505 address. (There have been systems where private was not correctly
8506 implemented like the infamous i386 svr4.0, and systems where the
8507 VM page cache was not coherent with the file system buffer cache
8508 like early versions of FreeBSD and possibly contemporary NetBSD.)
8509 For shared mappings, we should conversely verify that changes get
8510 propagated back to all the places they're supposed to be.
8511
8512 Grep wants private fixed already mapped.
8513 The main things grep needs to know about mmap are:
8514 * does it exist and is it safe to write into the mmap'd area
8515 * how to use it (BSD variants) */
8516
8517#include <fcntl.h>
8518#include <sys/mman.h>
8519
8520#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8521char *malloc ();
8522#endif
01027315 8523
05ea2a05
TT
8524/* This mess was copied from the GNU getpagesize.h. */
8525#ifndef HAVE_GETPAGESIZE
8526# ifdef _SC_PAGESIZE
8527# define getpagesize() sysconf(_SC_PAGESIZE)
8528# else /* no _SC_PAGESIZE */
8529# ifdef HAVE_SYS_PARAM_H
8530# include <sys/param.h>
8531# ifdef EXEC_PAGESIZE
8532# define getpagesize() EXEC_PAGESIZE
8533# else /* no EXEC_PAGESIZE */
8534# ifdef NBPG
8535# define getpagesize() NBPG * CLSIZE
8536# ifndef CLSIZE
8537# define CLSIZE 1
8538# endif /* no CLSIZE */
8539# else /* no NBPG */
8540# ifdef NBPC
8541# define getpagesize() NBPC
8542# else /* no NBPC */
8543# ifdef PAGESIZE
8544# define getpagesize() PAGESIZE
8545# endif /* PAGESIZE */
8546# endif /* no NBPC */
8547# endif /* no NBPG */
8548# endif /* no EXEC_PAGESIZE */
8549# else /* no HAVE_SYS_PARAM_H */
8550# define getpagesize() 8192 /* punt totally */
8551# endif /* no HAVE_SYS_PARAM_H */
8552# endif /* no _SC_PAGESIZE */
8553
8554#endif /* no HAVE_GETPAGESIZE */
01027315 8555
05ea2a05
TT
8556int
8557main ()
8558{
8559 char *data, *data2, *data3;
8560 const char *cdata2;
8561 int i, pagesize;
8562 int fd, fd2;
01027315 8563
05ea2a05 8564 pagesize = getpagesize ();
01027315 8565
05ea2a05
TT
8566 /* First, make a file with some known garbage in it. */
8567 data = (char *) malloc (pagesize);
8568 if (!data)
8569 return 1;
8570 for (i = 0; i < pagesize; ++i)
8571 *(data + i) = rand ();
8572 umask (0);
8573 fd = creat ("conftest.mmap", 0600);
8574 if (fd < 0)
8575 return 2;
8576 if (write (fd, data, pagesize) != pagesize)
8577 return 3;
8578 close (fd);
8579
8580 /* Next, check that the tail of a page is zero-filled. File must have
8581 non-zero length, otherwise we risk SIGBUS for entire page. */
8582 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8583 if (fd2 < 0)
8584 return 4;
8585 cdata2 = "";
8586 if (write (fd2, cdata2, 1) != 1)
8587 return 5;
8588 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8589 if (data2 == MAP_FAILED)
8590 return 6;
8591 for (i = 0; i < pagesize; ++i)
8592 if (*(data2 + i))
8593 return 7;
8594 close (fd2);
8595 if (munmap (data2, pagesize))
8596 return 8;
8597
8598 /* Next, try to mmap the file at a fixed address which already has
8599 something else allocated at it. If we can, also make sure that
8600 we see the same garbage. */
8601 fd = open ("conftest.mmap", O_RDWR);
8602 if (fd < 0)
8603 return 9;
8604 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8605 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8606 return 10;
8607 for (i = 0; i < pagesize; ++i)
8608 if (*(data + i) != *(data2 + i))
8609 return 11;
8610
8611 /* Finally, make sure that changes to the mapped area do not
8612 percolate back to the file as seen by read(). (This is a bug on
8613 some variants of i386 svr4.0.) */
8614 for (i = 0; i < pagesize; ++i)
8615 *(data2 + i) = *(data2 + i) + 1;
8616 data3 = (char *) malloc (pagesize);
8617 if (!data3)
8618 return 12;
8619 if (read (fd, data3, pagesize) != pagesize)
8620 return 13;
8621 for (i = 0; i < pagesize; ++i)
8622 if (*(data + i) != *(data3 + i))
8623 return 14;
8624 close (fd);
8625 return 0;
8626}
8627_ACEOF
8628if ac_fn_c_try_run "$LINENO"; then :
8629 ac_cv_func_mmap_fixed_mapped=yes
8630else
8631 ac_cv_func_mmap_fixed_mapped=no
8632fi
8633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8634 conftest.$ac_objext conftest.beam conftest.$ac_ext
8635fi
01027315 8636
05ea2a05
TT
8637fi
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8639$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8640if test $ac_cv_func_mmap_fixed_mapped = yes; then
01027315 8641
05ea2a05 8642$as_echo "#define HAVE_MMAP 1" >>confdefs.h
01027315 8643
05ea2a05
TT
8644fi
8645rm -f conftest.mmap conftest.txt
01027315 8646
05ea2a05
TT
8647 for ac_header in vfork.h
8648do :
8649 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8650if test "x$ac_cv_header_vfork_h" = xyes; then :
8651 cat >>confdefs.h <<_ACEOF
8652#define HAVE_VFORK_H 1
8653_ACEOF
01027315 8654
05ea2a05 8655fi
01027315 8656
05ea2a05
TT
8657done
8658
8659for ac_func in fork vfork
8660do :
8661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8662ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8663if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8664 cat >>confdefs.h <<_ACEOF
8665#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8666_ACEOF
01027315 8667
01027315 8668fi
05ea2a05 8669done
01027315 8670
05ea2a05
TT
8671if test "x$ac_cv_func_fork" = xyes; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8673$as_echo_n "checking for working fork... " >&6; }
8674if ${ac_cv_func_fork_works+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676else
8677 if test "$cross_compiling" = yes; then :
8678 ac_cv_func_fork_works=cross
8679else
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h. */
8682$ac_includes_default
01027315
TT
8683int
8684main ()
8685{
05ea2a05
TT
8686
8687 /* By Ruediger Kuhlmann. */
8688 return fork () < 0;
8689
01027315
TT
8690 ;
8691 return 0;
8692}
8693_ACEOF
05ea2a05
TT
8694if ac_fn_c_try_run "$LINENO"; then :
8695 ac_cv_func_fork_works=yes
8696else
8697 ac_cv_func_fork_works=no
01027315 8698fi
05ea2a05
TT
8699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8700 conftest.$ac_objext conftest.beam conftest.$ac_ext
01027315
TT
8701fi
8702
05ea2a05
TT
8703fi
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8705$as_echo "$ac_cv_func_fork_works" >&6; }
01027315 8706
05ea2a05
TT
8707else
8708 ac_cv_func_fork_works=$ac_cv_func_fork
8709fi
8710if test "x$ac_cv_func_fork_works" = xcross; then
8711 case $host in
8712 *-*-amigaos* | *-*-msdosdjgpp*)
8713 # Override, as these systems have only a dummy fork() stub
8714 ac_cv_func_fork_works=no
8715 ;;
8716 *)
8717 ac_cv_func_fork_works=yes
8718 ;;
8719 esac
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8721$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8722fi
8723ac_cv_func_vfork_works=$ac_cv_func_vfork
8724if test "x$ac_cv_func_vfork" = xyes; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8726$as_echo_n "checking for working vfork... " >&6; }
8727if ${ac_cv_func_vfork_works+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729else
8730 if test "$cross_compiling" = yes; then :
8731 ac_cv_func_vfork_works=cross
8732else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734/* end confdefs.h. */
8735/* Thanks to Paul Eggert for this test. */
8736$ac_includes_default
8737#include <sys/wait.h>
8738#ifdef HAVE_VFORK_H
8739# include <vfork.h>
8740#endif
8741/* On some sparc systems, changes by the child to local and incoming
8742 argument registers are propagated back to the parent. The compiler
8743 is told about this with #include <vfork.h>, but some compilers
8744 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8745 static variable whose address is put into a register that is
8746 clobbered by the vfork. */
8747static void
8748#ifdef __cplusplus
8749sparc_address_test (int arg)
8750# else
8751sparc_address_test (arg) int arg;
8752#endif
8753{
8754 static pid_t child;
8755 if (!child) {
8756 child = vfork ();
8757 if (child < 0) {
8758 perror ("vfork");
8759 _exit(2);
8760 }
8761 if (!child) {
8762 arg = getpid();
8763 write(-1, "", 0);
8764 _exit (arg);
8765 }
8766 }
8767}
01027315 8768
05ea2a05
TT
8769int
8770main ()
8771{
8772 pid_t parent = getpid ();
8773 pid_t child;
8774
8775 sparc_address_test (0);
8776
8777 child = vfork ();
8778
8779 if (child == 0) {
8780 /* Here is another test for sparc vfork register problems. This
8781 test uses lots of local variables, at least as many local
8782 variables as main has allocated so far including compiler
8783 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8784 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8785 reuse the register of parent for one of the local variables,
8786 since it will think that parent can't possibly be used any more
8787 in this routine. Assigning to the local variable will thus
8788 munge parent in the parent process. */
8789 pid_t
8790 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8791 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8792 /* Convince the compiler that p..p7 are live; otherwise, it might
8793 use the same hardware register for all 8 local variables. */
8794 if (p != p1 || p != p2 || p != p3 || p != p4
8795 || p != p5 || p != p6 || p != p7)
8796 _exit(1);
8797
8798 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8799 from child file descriptors. If the child closes a descriptor
8800 before it execs or exits, this munges the parent's descriptor
8801 as well. Test for this by closing stdout in the child. */
8802 _exit(close(fileno(stdout)) != 0);
8803 } else {
8804 int status;
8805 struct stat st;
8806
8807 while (wait(&status) != child)
8808 ;
8809 return (
8810 /* Was there some problem with vforking? */
8811 child < 0
8812
8813 /* Did the child fail? (This shouldn't happen.) */
8814 || status
8815
8816 /* Did the vfork/compiler bug occur? */
8817 || parent != getpid()
8818
8819 /* Did the file descriptor bug occur? */
8820 || fstat(fileno(stdout), &st) != 0
8821 );
8822 }
8823}
8824_ACEOF
8825if ac_fn_c_try_run "$LINENO"; then :
8826 ac_cv_func_vfork_works=yes
8827else
8828 ac_cv_func_vfork_works=no
8829fi
8830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8831 conftest.$ac_objext conftest.beam conftest.$ac_ext
8832fi
01027315 8833
05ea2a05
TT
8834fi
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8836$as_echo "$ac_cv_func_vfork_works" >&6; }
01027315 8837
05ea2a05
TT
8838fi;
8839if test "x$ac_cv_func_fork_works" = xcross; then
8840 ac_cv_func_vfork_works=$ac_cv_func_vfork
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8842$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8843fi
01027315 8844
05ea2a05 8845if test "x$ac_cv_func_vfork_works" = xyes; then
01027315 8846
05ea2a05 8847$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
01027315 8848
05ea2a05 8849else
01027315 8850
05ea2a05 8851$as_echo "#define vfork fork" >>confdefs.h
01027315 8852
05ea2a05
TT
8853fi
8854if test "x$ac_cv_func_fork_works" = xyes; then
01027315 8855
05ea2a05 8856$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
01027315 8857
05ea2a05 8858fi
01027315 8859
8ae8e197 8860 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
05ea2a05
TT
8861 ptrace64 sbrk setns sigaltstack sigprocmask \
8862 setpgid setpgrp getrusage getauxval
8863do :
8864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8865ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8866if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8867 cat >>confdefs.h <<_ACEOF
8868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
01027315 8869_ACEOF
05ea2a05 8870
01027315 8871fi
05ea2a05 8872done
01027315 8873
01027315 8874
05ea2a05
TT
8875 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8876"
8877if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8878 ac_have_decl=1
8879else
8880 ac_have_decl=0
8881fi
01027315 8882
05ea2a05
TT
8883cat >>confdefs.h <<_ACEOF
8884#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8885_ACEOF
01027315 8886
01027315 8887
05ea2a05
TT
8888 if test "$cross_compiling" = yes; then :
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h. */
8891#include <sys/personality.h>
8892int
8893main ()
8894{
01027315 8895
05ea2a05
TT
8896 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8897 # define ADDR_NO_RANDOMIZE 0x0040000
8898 # endif
8899 /* Test the flag could be set and stays set. */
8900 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8901 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8902 return 1
8903 ;
8904 return 0;
8905}
8906_ACEOF
8907if ac_fn_c_try_link "$LINENO"; then :
8908 have_personality=true
8909else
8910 have_personality=false
8911fi
8912rm -f core conftest.err conftest.$ac_objext \
8913 conftest$ac_exeext conftest.$ac_ext
8914else
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h. */
8917#include <sys/personality.h>
8918int
8919main ()
8920{
8921
8922 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8923 # define ADDR_NO_RANDOMIZE 0x0040000
8924 # endif
8925 /* Test the flag could be set and stays set. */
8926 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8927 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8928 return 1
8929 ;
8930 return 0;
8931}
8932_ACEOF
8933if ac_fn_c_try_run "$LINENO"; then :
8934 have_personality=true
8935else
8936 have_personality=false
8937fi
8938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8939 conftest.$ac_objext conftest.beam conftest.$ac_ext
01027315
TT
8940fi
8941
05ea2a05
TT
8942 if $have_personality
8943 then
01027315 8944
05ea2a05 8945$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
01027315 8946
05ea2a05 8947 fi
01027315 8948
05ea2a05
TT
8949 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8950if test "x$ac_cv_have_decl_strstr" = xyes; then :
8951 ac_have_decl=1
01027315 8952else
05ea2a05 8953 ac_have_decl=0
01027315
TT
8954fi
8955
05ea2a05
TT
8956cat >>confdefs.h <<_ACEOF
8957#define HAVE_DECL_STRSTR $ac_have_decl
8958_ACEOF
01027315 8959
05ea2a05
TT
8960
8961 # ----------------------- #
8962 # Checks for structures. #
8963 # ----------------------- #
8964
8965 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8966if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8967
8968cat >>confdefs.h <<_ACEOF
8969#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8970_ACEOF
8971
8972
8973fi
8974ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8975if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8976
8977cat >>confdefs.h <<_ACEOF
8978#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8979_ACEOF
8980
8981
8982fi
8983
8984
e911c666
JB
8985 # On FreeBSD we need libutil for the kinfo_get* functions. On
8986 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8987 # Figure out which one to use.
05ea2a05
TT
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8989$as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8990if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315
TT
8991 $as_echo_n "(cached) " >&6
8992else
05ea2a05
TT
8993 ac_func_search_save_LIBS=$LIBS
8994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 8995/* end confdefs.h. */
01027315 8996
05ea2a05
TT
8997/* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000#ifdef __cplusplus
9001extern "C"
9002#endif
9003char kinfo_getfile ();
9004int
9005main ()
9006{
9007return kinfo_getfile ();
9008 ;
9009 return 0;
9010}
01027315 9011_ACEOF
05ea2a05
TT
9012for ac_lib in '' util util-freebsd; do
9013 if test -z "$ac_lib"; then
9014 ac_res="none required"
9015 else
9016 ac_res=-l$ac_lib
9017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9018 fi
9019 if ac_fn_c_try_link "$LINENO"; then :
9020 ac_cv_search_kinfo_getfile=$ac_res
01027315 9021fi
05ea2a05
TT
9022rm -f core conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext
9024 if ${ac_cv_search_kinfo_getfile+:} false; then :
9025 break
9026fi
9027done
9028if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315 9029
05ea2a05
TT
9030else
9031 ac_cv_search_kinfo_getfile=no
9032fi
9033rm conftest.$ac_ext
9034LIBS=$ac_func_search_save_LIBS
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
9037$as_echo "$ac_cv_search_kinfo_getfile" >&6; }
9038ac_res=$ac_cv_search_kinfo_getfile
9039if test "$ac_res" != no; then :
9040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9041
e911c666
JB
9042fi
9043
9044
9045 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
9046 for ac_func in kinfo_getfile
9047do :
9048 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
9049if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
9050 cat >>confdefs.h <<_ACEOF
9051#define HAVE_KINFO_GETFILE 1
9052_ACEOF
01027315
TT
9053
9054fi
e911c666 9055done
01027315 9056
01027315 9057
05ea2a05
TT
9058 # Check for std::thread. This does not work on some platforms, like
9059 # mingw and DJGPP.
9060 ac_ext=cpp
9061ac_cpp='$CXXCPP $CPPFLAGS'
9062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
01027315 9065
01027315 9066
01027315 9067
01027315 9068
05ea2a05
TT
9069
9070ac_ext=c
9071ac_cpp='$CPP $CPPFLAGS'
9072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9074ac_compiler_gnu=$ac_cv_c_compiler_gnu
9075
9076ax_pthread_ok=no
9077
9078# We used to check for pthread.h first, but this fails if pthread.h
9079# requires special compiler flags (e.g. on Tru64 or Sequent).
9080# It gets checked for in the link test anyway.
9081
9082# First of all, check if the user has set any of the PTHREAD_LIBS,
9083# etcetera environment variables, and if threads linking works using
9084# them:
9085if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9086 ax_pthread_save_CC="$CC"
9087 ax_pthread_save_CFLAGS="$CFLAGS"
9088 ax_pthread_save_LIBS="$LIBS"
9089 if test "x$PTHREAD_CC" != "x"; then :
9090 CC="$PTHREAD_CC"
9091fi
9092 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9093 LIBS="$PTHREAD_LIBS $LIBS"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9095$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097/* end confdefs.h. */
9098
9099/* Override any GCC internal prototype to avoid an error.
9100 Use char because int might match the return type of a GCC
9101 builtin and then its argument prototype would still apply. */
9102#ifdef __cplusplus
9103extern "C"
9104#endif
9105char pthread_join ();
9106int
9107main ()
9108{
9109return pthread_join ();
9110 ;
9111 return 0;
9112}
9113_ACEOF
9114if ac_fn_c_try_link "$LINENO"; then :
9115 ax_pthread_ok=yes
9116fi
9117rm -f core conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9120$as_echo "$ax_pthread_ok" >&6; }
9121 if test "x$ax_pthread_ok" = "xno"; then
9122 PTHREAD_LIBS=""
9123 PTHREAD_CFLAGS=""
9124 fi
9125 CC="$ax_pthread_save_CC"
9126 CFLAGS="$ax_pthread_save_CFLAGS"
9127 LIBS="$ax_pthread_save_LIBS"
9128fi
9129
9130# We must check for the threads library under a number of different
9131# names; the ordering is very important because some systems
9132# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9133# libraries is broken (non-POSIX).
9134
9135# Create a list of thread flags to try. Items starting with a "-" are
9136# C compiler flags, and other items are library names, except for "none"
9137# which indicates that we try without any flags at all, and "pthread-config"
9138# which is a program returning the flags for the Pth emulation library.
9139
9140ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9141
9142# The ordering *is* (sometimes) important. Some notes on the
9143# individual items follow:
9144
9145# pthreads: AIX (must check this before -lpthread)
9146# none: in case threads are in libc; should be tried before -Kthread and
9147# other compiler flags to prevent continual compiler warnings
9148# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9149# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9150# (Note: HP C rejects this with "bad form for `-t' option")
9151# -pthreads: Solaris/gcc (Note: HP C also rejects)
9152# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9153# doesn't hurt to check since this sometimes defines pthreads and
9154# -D_REENTRANT too), HP C (must be checked before -lpthread, which
9155# is present but should not be used directly; and before -mthreads,
9156# because the compiler interprets this as "-mt" + "-hreads")
9157# -mthreads: Mingw32/gcc, Lynx/gcc
9158# pthread: Linux, etcetera
9159# --thread-safe: KAI C++
9160# pthread-config: use pthread-config program (for GNU Pth library)
9161
9162case $host_os in
9163
9164 freebsd*)
9165
9166 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9167 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9168
9169 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9170 ;;
9171
9172 hpux*)
9173
9174 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9175 # multi-threading and also sets -lpthread."
9176
9177 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9178 ;;
9179
9180 openedition*)
9181
9182 # IBM z/OS requires a feature-test macro to be defined in order to
9183 # enable POSIX threads at all, so give the user a hint if this is
9184 # not set. (We don't define these ourselves, as they can affect
9185 # other portions of the system API in unpredictable ways.)
9186
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h. */
9189
9190# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9191 AX_PTHREAD_ZOS_MISSING
9192# endif
9193
9194_ACEOF
9195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9196 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9198$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9199fi
9200rm -f conftest*
9201
9202 ;;
9203
9204 solaris*)
9205
9206 # On Solaris (at least, for some versions), libc contains stubbed
9207 # (non-functional) versions of the pthreads routines, so link-based
9208 # tests will erroneously succeed. (N.B.: The stubs are missing
9209 # pthread_cleanup_push, or rather a function called by this macro,
9210 # so we could check for that, but who knows whether they'll stub
9211 # that too in a future libc.) So we'll check first for the
9212 # standard Solaris way of linking pthreads (-mt -lpthread).
9213
9214 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9215 ;;
9216esac
9217
9218# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9219
9220if test "x$GCC" = "xyes"; then :
9221 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9222fi
9223
9224# The presence of a feature test macro requesting re-entrant function
9225# definitions is, on some systems, a strong hint that pthreads support is
9226# correctly enabled
9227
9228case $host_os in
9229 darwin* | hpux* | linux* | osf* | solaris*)
9230 ax_pthread_check_macro="_REENTRANT"
9231 ;;
9232
9233 aix*)
9234 ax_pthread_check_macro="_THREAD_SAFE"
9235 ;;
9236
9237 *)
9238 ax_pthread_check_macro="--"
9239 ;;
9240esac
9241if test "x$ax_pthread_check_macro" = "x--"; then :
9242 ax_pthread_check_cond=0
9243else
9244 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9245fi
9246
9247# Are we compiling with Clang?
9248
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9250$as_echo_n "checking whether $CC is Clang... " >&6; }
9251if ${ax_cv_PTHREAD_CLANG+:} false; then :
9252 $as_echo_n "(cached) " >&6
9253else
9254 ax_cv_PTHREAD_CLANG=no
9255 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9256 if test "x$GCC" = "xyes"; then
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h. */
9259/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9260# if defined(__clang__) && defined(__llvm__)
9261 AX_PTHREAD_CC_IS_CLANG
9262# endif
9263
9264_ACEOF
9265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9266 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9267 ax_cv_PTHREAD_CLANG=yes
9268fi
9269rm -f conftest*
9270
9271 fi
9272
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9275$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9276ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9277
9278ax_pthread_clang_warning=no
9279
9280# Clang needs special handling, because older versions handle the -pthread
9281# option in a rather... idiosyncratic way
9282
9283if test "x$ax_pthread_clang" = "xyes"; then
9284
9285 # Clang takes -pthread; it has never supported any other flag
9286
9287 # (Note 1: This will need to be revisited if a system that Clang
9288 # supports has POSIX threads in a separate library. This tends not
9289 # to be the way of modern systems, but it's conceivable.)
9290
9291 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9292 # to get POSIX threads support; the API is always present and
9293 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9294 # -pthread does define _REENTRANT, and while the Darwin headers
9295 # ignore this macro, third-party headers might not.)
01027315
TT
9296
9297 PTHREAD_CFLAGS="-pthread"
9298 PTHREAD_LIBS=
9299
9300 ax_pthread_ok=yes
9301
9302 # However, older versions of Clang make a point of warning the user
9303 # that, in an invocation where only linking and no compilation is
9304 # taking place, the -pthread option has no effect ("argument unused
9305 # during compilation"). They expect -pthread to be passed in only
9306 # when source code is being compiled.
9307 #
9308 # Problem is, this is at odds with the way Automake and most other
9309 # C build frameworks function, which is that the same flags used in
9310 # compilation (CFLAGS) are also used in linking. Many systems
9311 # supported by AX_PTHREAD require exactly this for POSIX threads
9312 # support, and in fact it is often not straightforward to specify a
9313 # flag that is used only in the compilation phase and not in
9314 # linking. Such a scenario is extremely rare in practice.
9315 #
9316 # Even though use of the -pthread flag in linking would only print
9317 # a warning, this can be a nuisance for well-run software projects
9318 # that build with -Werror. So if the active version of Clang has
9319 # this misfeature, we search for an option to squash it.
9320
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9322$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9323if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9324 $as_echo_n "(cached) " >&6
9325else
9326 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9327 # Create an alternate version of $ac_link that compiles and
9328 # links in two steps (.c -> .o, .o -> exe) instead of one
9329 # (.c -> exe), because the warning occurs only in the second
9330 # step
9331 ax_pthread_save_ac_link="$ac_link"
9332 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9333 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9334 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9335 ax_pthread_save_CFLAGS="$CFLAGS"
9336 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9337 if test "x$ax_pthread_try" = "xunknown"; then :
9338 break
9339fi
9340 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9341 ac_link="$ax_pthread_save_ac_link"
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343/* end confdefs.h. */
9344int main(void){return 0;}
9345_ACEOF
9346if ac_fn_c_try_link "$LINENO"; then :
9347 ac_link="$ax_pthread_2step_ac_link"
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349/* end confdefs.h. */
9350int main(void){return 0;}
9351_ACEOF
9352if ac_fn_c_try_link "$LINENO"; then :
9353 break
9354fi
9355rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
9357
9358fi
9359rm -f core conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9361 done
9362 ac_link="$ax_pthread_save_ac_link"
9363 CFLAGS="$ax_pthread_save_CFLAGS"
9364 if test "x$ax_pthread_try" = "x"; then :
9365 ax_pthread_try=no
9366fi
9367 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9368
9369fi
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9371$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9372
9373 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9374 no | unknown) ;;
9375 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9376 esac
9377
9378fi # $ax_pthread_clang = yes
9379
9380if test "x$ax_pthread_ok" = "xno"; then
9381for ax_pthread_try_flag in $ax_pthread_flags; do
9382
9383 case $ax_pthread_try_flag in
9384 none)
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9386$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9387 ;;
9388
9389 -mt,pthread)
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9391$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9392 PTHREAD_CFLAGS="-mt"
9393 PTHREAD_LIBS="-lpthread"
9394 ;;
9395
9396 -*)
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9398$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9399 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9400 ;;
9401
9402 pthread-config)
9403 # Extract the first word of "pthread-config", so it can be a program name with args.
9404set dummy pthread-config; ac_word=$2
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406$as_echo_n "checking for $ac_word... " >&6; }
9407if ${ac_cv_prog_ax_pthread_config+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409else
9410 if test -n "$ax_pthread_config"; then
9411 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9412else
9413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414for as_dir in $PATH
9415do
9416 IFS=$as_save_IFS
9417 test -z "$as_dir" && as_dir=.
9418 for ac_exec_ext in '' $ac_executable_extensions; do
9419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420 ac_cv_prog_ax_pthread_config="yes"
9421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422 break 2
9423 fi
05ea2a05
TT
9424done
9425 done
9426IFS=$as_save_IFS
9427
9428 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9429fi
9430fi
9431ax_pthread_config=$ac_cv_prog_ax_pthread_config
9432if test -n "$ax_pthread_config"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9434$as_echo "$ax_pthread_config" >&6; }
9435else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437$as_echo "no" >&6; }
9438fi
9439
9440
9441 if test "x$ax_pthread_config" = "xno"; then :
9442 continue
9443fi
9444 PTHREAD_CFLAGS="`pthread-config --cflags`"
9445 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9446 ;;
9447
9448 *)
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9450$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9451 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9452 ;;
9453 esac
9454
9455 ax_pthread_save_CFLAGS="$CFLAGS"
9456 ax_pthread_save_LIBS="$LIBS"
9457 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9458 LIBS="$PTHREAD_LIBS $LIBS"
9459
9460 # Check for various functions. We must include pthread.h,
9461 # since some functions may be macros. (On the Sequent, we
9462 # need a special flag -Kthread to make this header compile.)
9463 # We check for pthread_join because it is in -lpthread on IRIX
9464 # while pthread_create is in libc. We check for pthread_attr_init
9465 # due to DEC craziness with -lpthreads. We check for
9466 # pthread_cleanup_push because it is one of the few pthread
9467 # functions on Solaris that doesn't have a non-functional libc stub.
9468 # We try pthread_create on general principles.
9469
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471/* end confdefs.h. */
9472#include <pthread.h>
9473# if $ax_pthread_check_cond
9474# error "$ax_pthread_check_macro must be defined"
9475# endif
9476 static void routine(void *a) { a = 0; }
9477 static void *start_routine(void *a) { return a; }
9478int
9479main ()
9480{
9481pthread_t th; pthread_attr_t attr;
9482 pthread_create(&th, 0, start_routine, 0);
9483 pthread_join(th, 0);
9484 pthread_attr_init(&attr);
9485 pthread_cleanup_push(routine, 0);
9486 pthread_cleanup_pop(0) /* ; */
9487 ;
9488 return 0;
9489}
9490_ACEOF
9491if ac_fn_c_try_link "$LINENO"; then :
9492 ax_pthread_ok=yes
9493fi
9494rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496
9497 CFLAGS="$ax_pthread_save_CFLAGS"
9498 LIBS="$ax_pthread_save_LIBS"
9499
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9501$as_echo "$ax_pthread_ok" >&6; }
9502 if test "x$ax_pthread_ok" = "xyes"; then :
9503 break
9504fi
9505
9506 PTHREAD_LIBS=""
9507 PTHREAD_CFLAGS=""
9508done
9509fi
9510
9511# Various other checks:
9512if test "x$ax_pthread_ok" = "xyes"; then
9513 ax_pthread_save_CFLAGS="$CFLAGS"
9514 ax_pthread_save_LIBS="$LIBS"
9515 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9516 LIBS="$PTHREAD_LIBS $LIBS"
9517
9518 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9520$as_echo_n "checking for joinable pthread attribute... " >&6; }
9521if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523else
9524 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9525 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h. */
9528#include <pthread.h>
9529int
9530main ()
9531{
9532int attr = $ax_pthread_attr; return attr /* ; */
9533 ;
9534 return 0;
9535}
9536_ACEOF
9537if ac_fn_c_try_link "$LINENO"; then :
9538 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9539fi
9540rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 done
9543
9544fi
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9546$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9547 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9548 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9549 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9550
9551cat >>confdefs.h <<_ACEOF
9552#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9553_ACEOF
9554
9555 ax_pthread_joinable_attr_defined=yes
9556
9557fi
9558
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9560$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9561if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9562 $as_echo_n "(cached) " >&6
9563else
9564 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9565 case $host_os in
9566 solaris*)
9567 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9568 ;;
9569 esac
9570
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9573$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9574 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9575 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9576 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9577 ax_pthread_special_flags_added=yes
9578fi
9579
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9581$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9582if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584else
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h. */
9587#include <pthread.h>
9588int
9589main ()
9590{
9591int i = PTHREAD_PRIO_INHERIT;
9592 ;
9593 return 0;
9594}
9595_ACEOF
9596if ac_fn_c_try_link "$LINENO"; then :
9597 ax_cv_PTHREAD_PRIO_INHERIT=yes
9598else
9599 ax_cv_PTHREAD_PRIO_INHERIT=no
9600fi
9601rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603
9604fi
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9606$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9607 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9608 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9609
9610$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9611
9612 ax_pthread_prio_inherit_defined=yes
9613
9614fi
9615
9616 CFLAGS="$ax_pthread_save_CFLAGS"
9617 LIBS="$ax_pthread_save_LIBS"
9618
9619 # More AIX lossage: compile with *_r variant
9620 if test "x$GCC" != "xyes"; then
9621 case $host_os in
9622 aix*)
9623 case "x/$CC" in #(
9624 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9625 #handle absolute path differently from PATH based program lookup
9626 case "x$CC" in #(
9627 x/*) :
9628 if as_fn_executable_p ${CC}_r; then :
9629 PTHREAD_CC="${CC}_r"
9630fi ;; #(
9631 *) :
9632 for ac_prog in ${CC}_r
9633do
9634 # Extract the first word of "$ac_prog", so it can be a program name with args.
9635set dummy $ac_prog; ac_word=$2
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637$as_echo_n "checking for $ac_word... " >&6; }
9638if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640else
9641 if test -n "$PTHREAD_CC"; then
9642 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9643else
9644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651 ac_cv_prog_PTHREAD_CC="$ac_prog"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655done
9656 done
9657IFS=$as_save_IFS
9658
9659fi
9660fi
9661PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9662if test -n "$PTHREAD_CC"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9664$as_echo "$PTHREAD_CC" >&6; }
9665else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
9668fi
9669
9670
9671 test -n "$PTHREAD_CC" && break
9672done
9673test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9674 ;;
9675esac ;; #(
9676 *) :
9677 ;;
9678esac
9679 ;;
9680 esac
9681 fi
9682fi
9683
9684test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9685
9686
9687
9688
9689
9690# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9691if test "x$ax_pthread_ok" = "xyes"; then
9692 threads=yes
9693 :
9694else
9695 ax_pthread_ok=no
9696 threads=no
9697fi
9698ac_ext=cpp
9699ac_cpp='$CXXCPP $CPPFLAGS'
9700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9703
9704
9705 if test "$threads" = "yes"; then
9706 save_LIBS="$LIBS"
9707 LIBS="$PTHREAD_LIBS $LIBS"
9708 save_CXXFLAGS="$CXXFLAGS"
9709 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9711$as_echo_n "checking for std::thread... " >&6; }
9712if ${gdb_cv_cxx_std_thread+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714else
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716/* end confdefs.h. */
9717#include <thread>
9718 void callback() { }
9719int
9720main ()
9721{
9722std::thread t(callback);
9723 ;
9724 return 0;
9725}
9726_ACEOF
9727if ac_fn_cxx_try_compile "$LINENO"; then :
9728 gdb_cv_cxx_std_thread=yes
9729else
9730 gdb_cv_cxx_std_thread=no
9731fi
9732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9733fi
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9735$as_echo "$gdb_cv_cxx_std_thread" >&6; }
9736
9737 # This check must be here, while LIBS includes any necessary
9738 # threading library.
9739 for ac_func in pthread_sigmask pthread_setname_np
9740do :
9741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9742ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9743if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9744 cat >>confdefs.h <<_ACEOF
9745#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9746_ACEOF
9747
9748fi
9749done
9750
9751
9752 LIBS="$save_LIBS"
9753 CXXFLAGS="$save_CXXFLAGS"
9754 fi
9755 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9756
9757$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9758
9759 fi
9760 ac_ext=c
9761ac_cpp='$CPP $CPPFLAGS'
9762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9764ac_compiler_gnu=$ac_cv_c_compiler_gnu
9765
9766
3684d331 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
05ea2a05
TT
9768$as_echo_n "checking for sigsetjmp... " >&6; }
9769if ${gdb_cv_func_sigsetjmp+:} false; then :
9770 $as_echo_n "(cached) " >&6
9771else
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773/* end confdefs.h. */
9774
3684d331 9775 #include <setjmp.h>
05ea2a05
TT
9776
9777int
9778main ()
9779{
9780sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9781 ;
9782 return 0;
9783}
9784_ACEOF
9785if ac_fn_c_try_compile "$LINENO"; then :
9786 gdb_cv_func_sigsetjmp=yes
9787else
9788 gdb_cv_func_sigsetjmp=no
9789fi
9790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791fi
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9793$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
3684d331 9794 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
05ea2a05
TT
9795
9796$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9797
3684d331 9798 fi
05ea2a05
TT
9799
9800
9801# Check whether --with-intel_pt was given.
9802if test "${with_intel_pt+set}" = set; then :
9803 withval=$with_intel_pt;
9804else
9805 with_intel_pt=auto
9806fi
9807
3684d331 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
05ea2a05 9809$as_echo_n "checking whether to use intel pt... " >&6; }
3684d331 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
05ea2a05
TT
9811$as_echo "$with_intel_pt" >&6; }
9812
3684d331
PA
9813 if test "${with_intel_pt}" = no; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
05ea2a05 9815$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
3684d331
PA
9816 HAVE_LIBIPT=no
9817 else
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
05ea2a05
TT
9819/* end confdefs.h. */
9820
3684d331
PA
9821 #include <linux/perf_event.h>
9822 #ifndef PERF_ATTR_SIZE_VER5
9823 # error
9824 #endif
05ea2a05
TT
9825
9826_ACEOF
9827if ac_fn_c_try_cpp "$LINENO"; then :
9828 perf_event=yes
9829else
9830 perf_event=no
9831fi
9832rm -f conftest.err conftest.i conftest.$ac_ext
3684d331
PA
9833 if test "$perf_event" != yes; then
9834 if test "$with_intel_pt" = yes; then
9835 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
05ea2a05 9838$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
3684d331 9839 fi
05ea2a05 9840 fi
05ea2a05
TT
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850 use_additional=yes
9851
9852 acl_save_prefix="$prefix"
9853 prefix="$acl_final_prefix"
9854 acl_save_exec_prefix="$exec_prefix"
9855 exec_prefix="$acl_final_exec_prefix"
9856
9857 eval additional_includedir=\"$includedir\"
9858 eval additional_libdir=\"$libdir\"
9859
9860 exec_prefix="$acl_save_exec_prefix"
9861 prefix="$acl_save_prefix"
9862
9863
9864# Check whether --with-libipt-prefix was given.
9865if test "${with_libipt_prefix+set}" = set; then :
9866 withval=$with_libipt_prefix;
9867 if test "X$withval" = "Xno"; then
9868 use_additional=no
9869 else
9870 if test "X$withval" = "X"; then
9871
9872 acl_save_prefix="$prefix"
9873 prefix="$acl_final_prefix"
9874 acl_save_exec_prefix="$exec_prefix"
9875 exec_prefix="$acl_final_exec_prefix"
9876
9877 eval additional_includedir=\"$includedir\"
9878 eval additional_libdir=\"$libdir\"
9879
9880 exec_prefix="$acl_save_exec_prefix"
9881 prefix="$acl_save_prefix"
9882
9883 else
9884 additional_includedir="$withval/include"
9885 additional_libdir="$withval/lib"
9886 fi
9887 fi
9888
9889fi
9890
9f1528a1
AB
9891
9892# Check whether --with-libipt-type was given.
9893if test "${with_libipt_type+set}" = set; then :
9894 withval=$with_libipt_type; with_libipt_type=$withval
9895else
9896 with_libipt_type=auto
9897fi
9898
9899 lib_type=`eval echo \$with_libipt_type`
9900
05ea2a05
TT
9901 LIBIPT=
9902 LTLIBIPT=
9903 INCIPT=
9904 rpathdirs=
9905 ltrpathdirs=
9906 names_already_handled=
9907 names_next_round='ipt '
9908 while test -n "$names_next_round"; do
9909 names_this_round="$names_next_round"
9910 names_next_round=
9911 for name in $names_this_round; do
9912 already_handled=
9913 for n in $names_already_handled; do
9914 if test "$n" = "$name"; then
9915 already_handled=yes
9916 break
9917 fi
9918 done
9919 if test -z "$already_handled"; then
9920 names_already_handled="$names_already_handled $name"
9921 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9922 eval value=\"\$HAVE_LIB$uppername\"
9923 if test -n "$value"; then
9924 if test "$value" = yes; then
9925 eval value=\"\$LIB$uppername\"
9926 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9927 eval value=\"\$LTLIB$uppername\"
9928 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9929 else
9930 :
9931 fi
9932 else
9933 found_dir=
9934 found_la=
9935 found_so=
9936 found_a=
9937 if test $use_additional = yes; then
9f1528a1 9938 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
05ea2a05
TT
9939 found_dir="$additional_libdir"
9940 found_so="$additional_libdir/lib$name.$shlibext"
9941 if test -f "$additional_libdir/lib$name.la"; then
9942 found_la="$additional_libdir/lib$name.la"
9943 fi
9f1528a1 9944 elif test x$lib_type != xshared; then
05ea2a05
TT
9945 if test -f "$additional_libdir/lib$name.$libext"; then
9946 found_dir="$additional_libdir"
9947 found_a="$additional_libdir/lib$name.$libext"
9948 if test -f "$additional_libdir/lib$name.la"; then
9949 found_la="$additional_libdir/lib$name.la"
9950 fi
9951 fi
9952 fi
9953 fi
9954 if test "X$found_dir" = "X"; then
9955 for x in $LDFLAGS $LTLIBIPT; do
9956
9957 acl_save_prefix="$prefix"
9958 prefix="$acl_final_prefix"
9959 acl_save_exec_prefix="$exec_prefix"
9960 exec_prefix="$acl_final_exec_prefix"
9961 eval x=\"$x\"
9962 exec_prefix="$acl_save_exec_prefix"
9963 prefix="$acl_save_prefix"
9964
9965 case "$x" in
9966 -L*)
9967 dir=`echo "X$x" | sed -e 's/^X-L//'`
9f1528a1 9968 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
05ea2a05
TT
9969 found_dir="$dir"
9970 found_so="$dir/lib$name.$shlibext"
9971 if test -f "$dir/lib$name.la"; then
9972 found_la="$dir/lib$name.la"
9973 fi
9f1528a1 9974 elif test x$lib_type != xshared; then
05ea2a05
TT
9975 if test -f "$dir/lib$name.$libext"; then
9976 found_dir="$dir"
9977 found_a="$dir/lib$name.$libext"
9978 if test -f "$dir/lib$name.la"; then
9979 found_la="$dir/lib$name.la"
9980 fi
9981 fi
9982 fi
9983 ;;
9984 esac
9985 if test "X$found_dir" != "X"; then
9986 break
9987 fi
9988 done
9989 fi
9990 if test "X$found_dir" != "X"; then
9991 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9992 if test "X$found_so" != "X"; then
9993 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9994 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9995 else
9996 haveit=
9997 for x in $ltrpathdirs; do
9998 if test "X$x" = "X$found_dir"; then
9999 haveit=yes
10000 break
10001 fi
10002 done
10003 if test -z "$haveit"; then
10004 ltrpathdirs="$ltrpathdirs $found_dir"
10005 fi
10006 if test "$hardcode_direct" = yes; then
10007 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10008 else
10009 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10010 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10011 haveit=
10012 for x in $rpathdirs; do
10013 if test "X$x" = "X$found_dir"; then
10014 haveit=yes
10015 break
10016 fi
10017 done
10018 if test -z "$haveit"; then
10019 rpathdirs="$rpathdirs $found_dir"
10020 fi
10021 else
10022 haveit=
10023 for x in $LDFLAGS $LIBIPT; do
10024
10025 acl_save_prefix="$prefix"
10026 prefix="$acl_final_prefix"
10027 acl_save_exec_prefix="$exec_prefix"
10028 exec_prefix="$acl_final_exec_prefix"
10029 eval x=\"$x\"
10030 exec_prefix="$acl_save_exec_prefix"
10031 prefix="$acl_save_prefix"
10032
10033 if test "X$x" = "X-L$found_dir"; then
10034 haveit=yes
10035 break
10036 fi
10037 done
10038 if test -z "$haveit"; then
10039 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10040 fi
10041 if test "$hardcode_minus_L" != no; then
10042 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10043 else
10044 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10045 fi
10046 fi
10047 fi
10048 fi
10049 else
10050 if test "X$found_a" != "X"; then
10051 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
10052 else
10053 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10054 fi
10055 fi
10056 additional_includedir=
10057 case "$found_dir" in
10058 */lib | */lib/)
10059 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10060 additional_includedir="$basedir/include"
10061 ;;
10062 esac
10063 if test "X$additional_includedir" != "X"; then
10064 if test "X$additional_includedir" != "X/usr/include"; then
10065 haveit=
10066 if test "X$additional_includedir" = "X/usr/local/include"; then
10067 if test -n "$GCC"; then
10068 case $host_os in
10069 linux*) haveit=yes;;
10070 esac
10071 fi
10072 fi
10073 if test -z "$haveit"; then
10074 for x in $CPPFLAGS $INCIPT; do
10075
10076 acl_save_prefix="$prefix"
10077 prefix="$acl_final_prefix"
10078 acl_save_exec_prefix="$exec_prefix"
10079 exec_prefix="$acl_final_exec_prefix"
10080 eval x=\"$x\"
10081 exec_prefix="$acl_save_exec_prefix"
10082 prefix="$acl_save_prefix"
10083
10084 if test "X$x" = "X-I$additional_includedir"; then
10085 haveit=yes
10086 break
10087 fi
10088 done
10089 if test -z "$haveit"; then
10090 if test -d "$additional_includedir"; then
10091 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10092 fi
10093 fi
10094 fi
10095 fi
10096 fi
10097 if test -n "$found_la"; then
10098 save_libdir="$libdir"
10099 case "$found_la" in
10100 */* | *\\*) . "$found_la" ;;
10101 *) . "./$found_la" ;;
10102 esac
10103 libdir="$save_libdir"
10104 for dep in $dependency_libs; do
10105 case "$dep" in
10106 -L*)
10107 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10108 if test "X$additional_libdir" != "X/usr/lib"; then
10109 haveit=
10110 if test "X$additional_libdir" = "X/usr/local/lib"; then
10111 if test -n "$GCC"; then
10112 case $host_os in
10113 linux*) haveit=yes;;
10114 esac
10115 fi
10116 fi
10117 if test -z "$haveit"; then
10118 haveit=
10119 for x in $LDFLAGS $LIBIPT; do
10120
10121 acl_save_prefix="$prefix"
10122 prefix="$acl_final_prefix"
10123 acl_save_exec_prefix="$exec_prefix"
10124 exec_prefix="$acl_final_exec_prefix"
10125 eval x=\"$x\"
10126 exec_prefix="$acl_save_exec_prefix"
10127 prefix="$acl_save_prefix"
10128
10129 if test "X$x" = "X-L$additional_libdir"; then
10130 haveit=yes
10131 break
10132 fi
10133 done
10134 if test -z "$haveit"; then
10135 if test -d "$additional_libdir"; then
10136 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10137 fi
10138 fi
10139 haveit=
10140 for x in $LDFLAGS $LTLIBIPT; do
10141
10142 acl_save_prefix="$prefix"
10143 prefix="$acl_final_prefix"
10144 acl_save_exec_prefix="$exec_prefix"
10145 exec_prefix="$acl_final_exec_prefix"
10146 eval x=\"$x\"
10147 exec_prefix="$acl_save_exec_prefix"
10148 prefix="$acl_save_prefix"
10149
10150 if test "X$x" = "X-L$additional_libdir"; then
10151 haveit=yes
10152 break
10153 fi
10154 done
10155 if test -z "$haveit"; then
10156 if test -d "$additional_libdir"; then
10157 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10158 fi
10159 fi
10160 fi
10161 fi
10162 ;;
10163 -R*)
10164 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10165 if test "$enable_rpath" != no; then
10166 haveit=
10167 for x in $rpathdirs; do
10168 if test "X$x" = "X$dir"; then
10169 haveit=yes
10170 break
10171 fi
10172 done
10173 if test -z "$haveit"; then
10174 rpathdirs="$rpathdirs $dir"
10175 fi
10176 haveit=
10177 for x in $ltrpathdirs; do
10178 if test "X$x" = "X$dir"; then
10179 haveit=yes
10180 break
10181 fi
10182 done
10183 if test -z "$haveit"; then
10184 ltrpathdirs="$ltrpathdirs $dir"
10185 fi
10186 fi
10187 ;;
10188 -l*)
10189 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10190 ;;
10191 *.la)
10192 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10193 ;;
10194 *)
10195 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10196 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10197 ;;
10198 esac
10199 done
10200 fi
10201 else
9f1528a1
AB
10202 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
10203 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10204 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10205 else
10206 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
10207 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
10208 fi
05ea2a05
TT
10209 fi
10210 fi
10211 fi
10212 done
10213 done
10214 if test "X$rpathdirs" != "X"; then
10215 if test -n "$hardcode_libdir_separator"; then
10216 alldirs=
10217 for found_dir in $rpathdirs; do
10218 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10219 done
10220 acl_save_libdir="$libdir"
10221 libdir="$alldirs"
10222 eval flag=\"$hardcode_libdir_flag_spec\"
10223 libdir="$acl_save_libdir"
10224 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10225 else
10226 for found_dir in $rpathdirs; do
10227 acl_save_libdir="$libdir"
10228 libdir="$found_dir"
10229 eval flag=\"$hardcode_libdir_flag_spec\"
10230 libdir="$acl_save_libdir"
10231 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10232 done
10233 fi
10234 fi
10235 if test "X$ltrpathdirs" != "X"; then
10236 for found_dir in $ltrpathdirs; do
10237 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10238 done
10239 fi
01027315 10240
01027315 10241
05ea2a05 10242 ac_save_CPPFLAGS="$CPPFLAGS"
01027315 10243
05ea2a05
TT
10244 for element in $INCIPT; do
10245 haveit=
10246 for x in $CPPFLAGS; do
01027315 10247
05ea2a05
TT
10248 acl_save_prefix="$prefix"
10249 prefix="$acl_final_prefix"
10250 acl_save_exec_prefix="$exec_prefix"
10251 exec_prefix="$acl_final_exec_prefix"
10252 eval x=\"$x\"
10253 exec_prefix="$acl_save_exec_prefix"
10254 prefix="$acl_save_prefix"
01027315 10255
05ea2a05
TT
10256 if test "X$x" = "X$element"; then
10257 haveit=yes
10258 break
10259 fi
10260 done
10261 if test -z "$haveit"; then
10262 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10263 fi
10264 done
01027315 10265
01027315 10266
05ea2a05
TT
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10268$as_echo_n "checking for libipt... " >&6; }
10269if ${ac_cv_libipt+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271else
10272
10273 ac_save_LIBS="$LIBS"
10274 LIBS="$LIBS $LIBIPT"
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 10276/* end confdefs.h. */
05ea2a05 10277#include "intel-pt.h"
01027315
TT
10278int
10279main ()
10280{
05ea2a05 10281pt_insn_alloc_decoder (0);
01027315
TT
10282 ;
10283 return 0;
10284}
10285_ACEOF
10286if ac_fn_c_try_link "$LINENO"; then :
05ea2a05
TT
10287 ac_cv_libipt=yes
10288else
10289 ac_cv_libipt=no
01027315
TT
10290fi
10291rm -f core conftest.err conftest.$ac_objext \
10292 conftest$ac_exeext conftest.$ac_ext
05ea2a05 10293 LIBS="$ac_save_LIBS"
01027315 10294
01027315 10295fi
05ea2a05
TT
10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10297$as_echo "$ac_cv_libipt" >&6; }
10298 if test "$ac_cv_libipt" = yes; then
10299 HAVE_LIBIPT=yes
01027315 10300
05ea2a05
TT
10301$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10302
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10304$as_echo_n "checking how to link with libipt... " >&6; }
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10306$as_echo "$LIBIPT" >&6; }
10307 else
10308 HAVE_LIBIPT=no
10309 CPPFLAGS="$ac_save_CPPFLAGS"
10310 LIBIPT=
10311 LTLIBIPT=
10312 fi
10313
10314
10315
10316
10317
10318
3684d331
PA
10319 if test "$HAVE_LIBIPT" != yes; then
10320 if test "$with_intel_pt" = yes; then
10321 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
10322 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
05ea2a05 10324$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
3684d331
PA
10325 fi
10326 else
10327 save_LIBS=$LIBS
10328 LIBS="$LIBS $LIBIPT"
10329 for ac_func in pt_insn_event
05ea2a05
TT
10330do :
10331 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10332if test "x$ac_cv_func_pt_insn_event" = xyes; then :
10333 cat >>confdefs.h <<_ACEOF
10334#define HAVE_PT_INSN_EVENT 1
10335_ACEOF
10336
10337fi
01027315 10338done
05ea2a05 10339
3684d331 10340 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
05ea2a05
TT
10341"
10342if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
10343
10344cat >>confdefs.h <<_ACEOF
10345#define HAVE_STRUCT_PT_INSN_ENABLED 1
10346_ACEOF
10347
10348
01027315 10349fi
05ea2a05
TT
10350ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10351"
10352if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
01027315 10353
05ea2a05
TT
10354cat >>confdefs.h <<_ACEOF
10355#define HAVE_STRUCT_PT_INSN_RESYNCED 1
10356_ACEOF
01027315 10357
05ea2a05
TT
10358
10359fi
10360
3684d331
PA
10361 LIBS=$save_LIBS
10362 fi
05ea2a05 10363 fi
05ea2a05 10364
c8693053
RO
10365
10366$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
10367
10368 for ac_header in sys/procfs.h
10369do :
10370 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
10371if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
10372 cat >>confdefs.h <<_ACEOF
10373#define HAVE_SYS_PROCFS_H 1
10374_ACEOF
10375
10376fi
10377
10378done
10379
3684d331 10380 if test "$ac_cv_header_sys_procfs_h" = yes; then
c8693053
RO
10381
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
05ea2a05
TT
10383$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10384 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
01027315
TT
10385 $as_echo_n "(cached) " >&6
10386else
05ea2a05 10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 10388/* end confdefs.h. */
05ea2a05
TT
10389
10390#define _SYSCALL32
05ea2a05 10391#include <sys/procfs.h>
01027315
TT
10392int
10393main ()
10394{
05ea2a05 10395gregset_t avar
01027315
TT
10396 ;
10397 return 0;
10398}
10399_ACEOF
05ea2a05
TT
10400if ac_fn_c_try_compile "$LINENO"; then :
10401 bfd_cv_have_sys_procfs_type_gregset_t=yes
10402else
10403 bfd_cv_have_sys_procfs_type_gregset_t=no
01027315
TT
10404
10405fi
05ea2a05
TT
10406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407fi
01027315 10408
05ea2a05 10409 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
01027315 10410
05ea2a05 10411$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
01027315 10412
05ea2a05
TT
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10415$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
01027315 10416
c8693053
RO
10417
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
05ea2a05
TT
10419$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10420 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
01027315
TT
10421 $as_echo_n "(cached) " >&6
10422else
05ea2a05
TT
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424/* end confdefs.h. */
10425
10426#define _SYSCALL32
05ea2a05
TT
10427#include <sys/procfs.h>
10428int
10429main ()
10430{
10431fpregset_t avar
10432 ;
10433 return 0;
10434}
10435_ACEOF
10436if ac_fn_c_try_compile "$LINENO"; then :
10437 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10438else
10439 bfd_cv_have_sys_procfs_type_fpregset_t=no
01027315
TT
10440
10441fi
05ea2a05 10442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
10443fi
10444
05ea2a05
TT
10445 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10446
10447$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10448
10449 fi
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10451$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10452
c8693053
RO
10453
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
05ea2a05
TT
10455$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10456 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
01027315
TT
10457 $as_echo_n "(cached) " >&6
10458else
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460/* end confdefs.h. */
05ea2a05
TT
10461
10462#define _SYSCALL32
05ea2a05 10463#include <sys/procfs.h>
01027315
TT
10464int
10465main ()
10466{
05ea2a05 10467prgregset_t avar
01027315
TT
10468 ;
10469 return 0;
10470}
10471_ACEOF
05ea2a05
TT
10472if ac_fn_c_try_compile "$LINENO"; then :
10473 bfd_cv_have_sys_procfs_type_prgregset_t=yes
01027315 10474else
05ea2a05 10475 bfd_cv_have_sys_procfs_type_prgregset_t=no
01027315
TT
10476
10477fi
05ea2a05
TT
10478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10479fi
01027315 10480
05ea2a05 10481 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
01027315 10482
05ea2a05 10483$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
01027315 10484
05ea2a05
TT
10485 fi
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10487$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
01027315 10488
c8693053
RO
10489
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
05ea2a05
TT
10491$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10492 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
01027315
TT
10493 $as_echo_n "(cached) " >&6
10494else
05ea2a05
TT
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496/* end confdefs.h. */
01027315 10497
05ea2a05 10498#define _SYSCALL32
05ea2a05
TT
10499#include <sys/procfs.h>
10500int
10501main ()
10502{
10503prfpregset_t avar
10504 ;
10505 return 0;
10506}
10507_ACEOF
10508if ac_fn_c_try_compile "$LINENO"; then :
10509 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
01027315 10510else
05ea2a05 10511 bfd_cv_have_sys_procfs_type_prfpregset_t=no
01027315 10512
05ea2a05
TT
10513fi
10514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
10515fi
10516
05ea2a05 10517 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
01027315 10518
05ea2a05 10519$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
01027315 10520
05ea2a05
TT
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10523$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
01027315 10524
c8693053
RO
10525
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
05ea2a05
TT
10527$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10528 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530else
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h. */
01027315 10533
05ea2a05 10534#define _SYSCALL32
05ea2a05
TT
10535#include <sys/procfs.h>
10536int
10537main ()
10538{
10539prgregset32_t avar
10540 ;
10541 return 0;
10542}
10543_ACEOF
10544if ac_fn_c_try_compile "$LINENO"; then :
10545 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
01027315 10546else
05ea2a05
TT
10547 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10548
10549fi
10550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315 10551fi
01027315 10552
05ea2a05 10553 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
01027315 10554
05ea2a05
TT
10555$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10556
10557 fi
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10559$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10560
c8693053
RO
10561
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
05ea2a05
TT
10563$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10564 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
01027315
TT
10565 $as_echo_n "(cached) " >&6
10566else
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568/* end confdefs.h. */
05ea2a05
TT
10569
10570#define _SYSCALL32
05ea2a05 10571#include <sys/procfs.h>
01027315
TT
10572int
10573main ()
10574{
05ea2a05 10575lwpid_t avar
01027315
TT
10576 ;
10577 return 0;
10578}
10579_ACEOF
05ea2a05
TT
10580if ac_fn_c_try_compile "$LINENO"; then :
10581 bfd_cv_have_sys_procfs_type_lwpid_t=yes
01027315 10582else
05ea2a05
TT
10583 bfd_cv_have_sys_procfs_type_lwpid_t=no
10584
01027315
TT
10585fi
10586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10587fi
01027315 10588
05ea2a05 10589 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
01027315 10590
05ea2a05 10591$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
01027315 10592
05ea2a05
TT
10593 fi
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10595$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
01027315 10596
c8693053
RO
10597
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
05ea2a05
TT
10599$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10600 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
10601 $as_echo_n "(cached) " >&6
10602else
10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604/* end confdefs.h. */
01027315 10605
05ea2a05 10606#define _SYSCALL32
05ea2a05
TT
10607#include <sys/procfs.h>
10608int
10609main ()
10610{
10611psaddr_t avar
10612 ;
10613 return 0;
10614}
10615_ACEOF
10616if ac_fn_c_try_compile "$LINENO"; then :
10617 bfd_cv_have_sys_procfs_type_psaddr_t=yes
10618else
10619 bfd_cv_have_sys_procfs_type_psaddr_t=no
01027315 10620
05ea2a05
TT
10621fi
10622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623fi
01027315 10624
05ea2a05 10625 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
01027315 10626
05ea2a05
TT
10627$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10628
10629 fi
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10631$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10632
c8693053
RO
10633
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
05ea2a05
TT
10635$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10636 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
01027315
TT
10637 $as_echo_n "(cached) " >&6
10638else
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640/* end confdefs.h. */
10641
05ea2a05 10642#define _SYSCALL32
05ea2a05 10643#include <sys/procfs.h>
01027315
TT
10644int
10645main ()
10646{
05ea2a05 10647elf_fpregset_t avar
01027315
TT
10648 ;
10649 return 0;
10650}
10651_ACEOF
10652if ac_fn_c_try_compile "$LINENO"; then :
05ea2a05 10653 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
01027315 10654else
05ea2a05
TT
10655 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
10656
01027315
TT
10657fi
10658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10659fi
01027315 10660
05ea2a05
TT
10661 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10662
10663$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10664
10665 fi
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10667$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
01027315 10668
3684d331 10669 fi
01027315
TT
10670
10671
10672# Check whether we will enable the inclusion of unit tests when
10673# compiling GDB.
10674#
10675# The default value of this option changes depending whether we're on
10676# development mode (in which case it's "true") or not (in which case
db6878ac
SM
10677# it's "false"). The $development variable is set by the GDB_AC_COMMON
10678# macro, which must therefore be used before GDB_AC_SELFTEST.
4d696a5c
SM
10679
10680if test "x$development" != xtrue && test "x$development" != xfalse; then :
10681 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
10682fi
10683
01027315
TT
10684# Check whether --enable-unit-tests was given.
10685if test "${enable_unit_tests+set}" = set; then :
10686 enableval=$enable_unit_tests; case "${enableval}" in
10687 yes) enable_unittests=true ;;
10688 no) enable_unittests=false ;;
10689 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10690esac
10691else
10692 enable_unittests=$development
10693fi
10694
10695
10696if $enable_unittests; then
10697
10698$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10699
10700
10701fi
10702
10703 if $enable_unittests; then
10704 SELFTEST_TRUE=
10705 SELFTEST_FALSE='#'
10706else
10707 SELFTEST_TRUE='#'
10708 SELFTEST_FALSE=
10709fi
10710
10711
05ea2a05
TT
10712# Check the return and argument types of ptrace.
10713
10714
10715for ac_header in sys/ptrace.h ptrace.h
10716do :
10717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10718ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10719if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10720 cat >>confdefs.h <<_ACEOF
10721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722_ACEOF
10723
10724fi
10725
10726done
10727
10728
10729gdb_ptrace_headers='
10730#include <sys/types.h>
10731#if HAVE_SYS_PTRACE_H
10732# include <sys/ptrace.h>
10733#endif
10734#if HAVE_UNISTD_H
10735# include <unistd.h>
10736#endif
10737'
05ea2a05
TT
10738
10739# Check return type. Varargs (used on GNU/Linux) conflict with the
10740# empty argument list, so check for that explicitly.
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10742$as_echo_n "checking return type of ptrace... " >&6; }
10743if ${gdb_cv_func_ptrace_ret+:} false; then :
10744 $as_echo_n "(cached) " >&6
10745else
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747/* end confdefs.h. */
10748$gdb_ptrace_headers
10749int
10750main ()
10751{
10752extern long ptrace (enum __ptrace_request, ...);
10753 ;
10754 return 0;
10755}
10756_ACEOF
10757if ac_fn_c_try_compile "$LINENO"; then :
10758 gdb_cv_func_ptrace_ret='long'
10759else
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761/* end confdefs.h. */
10762$gdb_ptrace_headers
10763int
10764main ()
10765{
10766extern int ptrace ();
10767 ;
10768 return 0;
10769}
10770_ACEOF
10771if ac_fn_c_try_compile "$LINENO"; then :
10772 gdb_cv_func_ptrace_ret='int'
10773else
10774 gdb_cv_func_ptrace_ret='long'
10775fi
10776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10777fi
10778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779fi
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10781$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10782
10783cat >>confdefs.h <<_ACEOF
10784#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10785_ACEOF
10786
10787# Check argument types.
10788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10789$as_echo_n "checking types of arguments for ptrace... " >&6; }
10790if ${gdb_cv_func_ptrace_args+:} false; then :
10791 $as_echo_n "(cached) " >&6
10792else
10793
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795/* end confdefs.h. */
10796$gdb_ptrace_headers
10797int
10798main ()
10799{
10800extern long ptrace (enum __ptrace_request, ...);
10801 ;
10802 return 0;
10803}
10804_ACEOF
10805if ac_fn_c_try_compile "$LINENO"; then :
10806 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10807else
10808
10809for gdb_arg1 in 'int' 'long'; do
10810 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10811 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10812 for gdb_arg4 in 'int' 'long' 'void *'; do
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h. */
10815$gdb_ptrace_headers
10816int
10817main ()
10818{
10819
10820extern $gdb_cv_func_ptrace_ret
10821 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10822
10823 ;
10824 return 0;
10825}
10826_ACEOF
10827if ac_fn_c_try_compile "$LINENO"; then :
10828 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10829 break 4;
10830fi
10831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 for gdb_arg5 in 'int *' 'int' 'long'; do
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834/* end confdefs.h. */
10835$gdb_ptrace_headers
10836int
10837main ()
10838{
10839
10840extern $gdb_cv_func_ptrace_ret
10841 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10842
10843 ;
10844 return 0;
10845}
10846_ACEOF
10847if ac_fn_c_try_compile "$LINENO"; then :
10848
10849gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10850 break 5;
10851fi
10852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853 done
10854 done
10855 done
10856 done
10857done
10858# Provide a safe default value.
10859: ${gdb_cv_func_ptrace_args='int,int,long,long'}
10860
10861fi
10862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863fi
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10865$as_echo "$gdb_cv_func_ptrace_args" >&6; }
10866ac_save_IFS=$IFS; IFS=','
10867set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10868IFS=$ac_save_IFS
10869shift
10870
10871cat >>confdefs.h <<_ACEOF
10872#define PTRACE_TYPE_ARG1 $1
10873_ACEOF
10874
10875
10876cat >>confdefs.h <<_ACEOF
10877#define PTRACE_TYPE_ARG3 $3
10878_ACEOF
10879
10880
10881cat >>confdefs.h <<_ACEOF
10882#define PTRACE_TYPE_ARG4 $4
10883_ACEOF
10884
10885if test -n "$5"; then
10886
10887cat >>confdefs.h <<_ACEOF
10888#define PTRACE_TYPE_ARG5 $5
10889_ACEOF
10890
10891fi
10892
10893
629c2962
SM
10894# Detect support warning flags.
10895
10896# Check whether --enable-werror was given.
10897if test "${enable_werror+set}" = set; then :
10898 enableval=$enable_werror; case "${enableval}" in
10899 yes | y) ERROR_ON_WARNING="yes" ;;
10900 no | n) ERROR_ON_WARNING="no" ;;
10901 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10902 esac
10903fi
10904
10905
10906# Enable -Werror by default when using gcc. Turn it off for releases.
10907if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10908 ERROR_ON_WARNING=yes
10909fi
10910
10911WERROR_CFLAGS=""
10912if test "${ERROR_ON_WARNING}" = yes ; then
10913 WERROR_CFLAGS="-Werror"
10914fi
10915
10916# The options we'll try to enable.
10917build_warnings="-Wall -Wpointer-arith \
10918-Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10919-Wno-switch -Wno-char-subscripts \
10920-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10921-Wno-sign-compare -Wno-error=maybe-uninitialized \
10922-Wno-mismatched-tags \
10923-Wno-error=deprecated-register \
10924-Wsuggest-override \
10925-Wimplicit-fallthrough=3 \
10926-Wduplicated-cond \
10927-Wshadow=local \
10928-Wdeprecated-copy \
10929-Wdeprecated-copy-dtor \
10930-Wredundant-move \
8ddd8e0e 10931-Wmissing-declarations \
a0761e34 10932-Wmissing-prototypes \
898e7f60
SM
10933-Wstrict-null-sentinel \
10934"
629c2962
SM
10935
10936case "${host}" in
10937 *-*-mingw32*)
10938 # Enable -Wno-format by default when using gcc on mingw since many
10939 # GCC versions complain about %I64.
10940 build_warnings="$build_warnings -Wno-format" ;;
10941 *-*-solaris*)
10942 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10943 # doesn't understand.
10944 build_warnings="$build_warnings -Wno-unknown-pragmas"
10945 # Solaris 11 <unistd.h> marks vfork deprecated.
10946 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
10947 *)
10948 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10949 # but there's a special case for this below.
10950 build_warnings="$build_warnings -Wformat-nonliteral" ;;
10951esac
10952
10953# Check whether --enable-build-warnings was given.
10954if test "${enable_build_warnings+set}" = set; then :
10955 enableval=$enable_build_warnings; case "${enableval}" in
10956 yes) ;;
10957 no) build_warnings="-w";;
10958 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10959 build_warnings="${build_warnings} ${t}";;
10960 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10961 build_warnings="${t} ${build_warnings}";;
10962 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10963esac
10964if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10965 echo "Setting compiler warning flags = $build_warnings" 6>&1
10966fi
10967fi
10968# Check whether --enable-gdb-build-warnings was given.
10969if test "${enable_gdb_build_warnings+set}" = set; then :
10970 enableval=$enable_gdb_build_warnings; case "${enableval}" in
10971 yes) ;;
10972 no) build_warnings="-w";;
10973 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10974 build_warnings="${build_warnings} ${t}";;
10975 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10976 build_warnings="${t} ${build_warnings}";;
10977 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10978esac
10979if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10980 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10981fi
10982fi
10983
10984# The set of warnings supported by a C++ compiler is not the same as
10985# of the C compiler.
10986ac_ext=cpp
10987ac_cpp='$CXXCPP $CPPFLAGS'
10988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10991
10992
10993WARN_CFLAGS=""
10994if test "x${build_warnings}" != x -a "x$GCC" = xyes
10995then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10997$as_echo_n "checking compiler warning flags... " >&6; }
10998 # Separate out the -Werror flag as some files just cannot be
10999 # compiled with it enabled.
11000 for w in ${build_warnings}; do
11001 # GCC does not complain about -Wno-unknown-warning. Invert
11002 # and test -Wunknown-warning instead.
11003 case $w in
11004 -Wno-*)
11005 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
11006 -Wformat-nonliteral)
11007 # gcc requires -Wformat before -Wformat-nonliteral
11008 # will work, so stick them together.
11009 w="-Wformat $w"
11010 wtest="$w"
11011 ;;
11012 *)
11013 wtest=$w ;;
11014 esac
11015
11016 case $w in
11017 -Werr*) WERROR_CFLAGS=-Werror ;;
11018 *)
11019 # Check whether GCC accepts it.
11020 saved_CFLAGS="$CFLAGS"
11021 CFLAGS="$CFLAGS -Werror $wtest"
11022 saved_CXXFLAGS="$CXXFLAGS"
11023 CXXFLAGS="$CXXFLAGS -Werror $wtest"
11024 if test "x$w" = "x-Wunused-variable"; then
11025 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
11026 # fixed in GCC 4.9. This test is derived from the gdb
11027 # source code that triggered this bug in GCC.
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029/* end confdefs.h. */
11030struct scoped_restore_base {};
11031 struct scoped_restore_tmpl : public scoped_restore_base {
11032 ~scoped_restore_tmpl() {}
11033 };
11034int
11035main ()
11036{
11037const scoped_restore_base &b = scoped_restore_tmpl();
11038 ;
11039 return 0;
11040}
11041_ACEOF
11042if ac_fn_cxx_try_compile "$LINENO"; then :
11043 WARN_CFLAGS="${WARN_CFLAGS} $w"
11044fi
11045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046 else
11047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048/* end confdefs.h. */
11049
11050int
11051main ()
11052{
11053
11054 ;
11055 return 0;
11056}
11057_ACEOF
11058if ac_fn_cxx_try_compile "$LINENO"; then :
11059 WARN_CFLAGS="${WARN_CFLAGS} $w"
11060fi
11061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 fi
11063 CFLAGS="$saved_CFLAGS"
11064 CXXFLAGS="$saved_CXXFLAGS"
11065 esac
11066 done
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11068$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11069fi
11070
11071
11072
11073ac_ext=c
11074ac_cpp='$CPP $CPPFLAGS'
11075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11077ac_compiler_gnu=$ac_cv_c_compiler_gnu
11078
11079
11080
01027315
TT
11081TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11082
11083cat >>confdefs.h <<_ACEOF
11084#define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11085_ACEOF
11086
11087
11088case ${host} in
11089 *mingw32*)
11090
11091$as_echo "#define USE_WIN32API 1" >>confdefs.h
11092
11093 ;;
11094esac
11095
11096ac_config_files="$ac_config_files Makefile"
11097
11098cat >confcache <<\_ACEOF
11099# This file is a shell script that caches the results of configure
11100# tests run on this system so they can be shared between configure
11101# scripts and configure runs, see configure's option --config-cache.
11102# It is not useful on other systems. If it contains results you don't
11103# want to keep, you may remove or edit it.
11104#
11105# config.status only pays attention to the cache file if you give it
11106# the --recheck option to rerun configure.
11107#
11108# `ac_cv_env_foo' variables (set or unset) will be overridden when
11109# loading this file, other *unset* `ac_cv_foo' will be assigned the
11110# following values.
11111
11112_ACEOF
11113
11114# The following way of writing the cache mishandles newlines in values,
11115# but we know of no workaround that is simple, portable, and efficient.
11116# So, we kill variables containing newlines.
11117# Ultrix sh set writes to stderr and can't be redirected directly,
11118# and sets the high bit in the cache file unless we assign to the vars.
11119(
11120 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11121 eval ac_val=\$$ac_var
11122 case $ac_val in #(
11123 *${as_nl}*)
11124 case $ac_var in #(
11125 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11126$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11127 esac
11128 case $ac_var in #(
11129 _ | IFS | as_nl) ;; #(
11130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11131 *) { eval $ac_var=; unset $ac_var;} ;;
11132 esac ;;
11133 esac
11134 done
11135
11136 (set) 2>&1 |
11137 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11138 *${as_nl}ac_space=\ *)
11139 # `set' does not quote correctly, so add quotes: double-quote
11140 # substitution turns \\\\ into \\, and sed turns \\ into \.
11141 sed -n \
11142 "s/'/'\\\\''/g;
11143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11144 ;; #(
11145 *)
11146 # `set' quotes correctly as required by POSIX, so do not add quotes.
11147 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11148 ;;
11149 esac |
11150 sort
11151) |
11152 sed '
11153 /^ac_cv_env_/b end
11154 t clear
11155 :clear
11156 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11157 t end
11158 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11159 :end' >>confcache
11160if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11161 if test -w "$cache_file"; then
11162 if test "x$cache_file" != "x/dev/null"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11164$as_echo "$as_me: updating cache $cache_file" >&6;}
11165 if test ! -f "$cache_file" || test -h "$cache_file"; then
11166 cat confcache >"$cache_file"
11167 else
11168 case $cache_file in #(
11169 */* | ?:*)
11170 mv -f confcache "$cache_file"$$ &&
11171 mv -f "$cache_file"$$ "$cache_file" ;; #(
11172 *)
11173 mv -f confcache "$cache_file" ;;
11174 esac
11175 fi
11176 fi
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11179$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11180 fi
11181fi
11182rm -f confcache
11183
11184test "x$prefix" = xNONE && prefix=$ac_default_prefix
11185# Let make expand exec_prefix.
11186test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11187
11188DEFS=-DHAVE_CONFIG_H
11189
11190ac_libobjs=
11191ac_ltlibobjs=
11192for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11193 # 1. Remove the extension, and $U if already installed.
11194 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11195 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11196 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11197 # will be set to the directory where LIBOBJS objects are built.
11198 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11199 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11200done
11201LIBOBJS=$ac_libobjs
11202
11203LTLIBOBJS=$ac_ltlibobjs
11204
11205
11206if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11207 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11208Usually this means the macro was only invoked conditionally." "$LINENO" 5
11209fi
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11211$as_echo_n "checking that generated files are newer than configure... " >&6; }
11212 if test -n "$am_sleep_pid"; then
11213 # Hide warnings about reused PIDs.
11214 wait $am_sleep_pid 2>/dev/null
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11217$as_echo "done" >&6; }
11218 if test -n "$EXEEXT"; then
11219 am__EXEEXT_TRUE=
11220 am__EXEEXT_FALSE='#'
11221else
11222 am__EXEEXT_TRUE='#'
11223 am__EXEEXT_FALSE=
11224fi
11225
11226if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11227 as_fn_error $? "conditional \"AMDEP\" was never defined.
11228Usually this means the macro was only invoked conditionally." "$LINENO" 5
11229fi
11230if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11231 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11232Usually this means the macro was only invoked conditionally." "$LINENO" 5
11233fi
11234if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11235 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11236Usually this means the macro was only invoked conditionally." "$LINENO" 5
11237fi
11238if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11239 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11240Usually this means the macro was only invoked conditionally." "$LINENO" 5
11241fi
11242if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11243 as_fn_error $? "conditional \"SELFTEST\" was never defined.
11244Usually this means the macro was only invoked conditionally." "$LINENO" 5
11245fi
11246
11247: "${CONFIG_STATUS=./config.status}"
11248ac_write_fail=0
11249ac_clean_files_save=$ac_clean_files
11250ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11252$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11253as_write_fail=0
11254cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11255#! $SHELL
11256# Generated by $as_me.
11257# Run this file to recreate the current configuration.
11258# Compiler output produced by configure, useful for debugging
11259# configure, is in config.log if it exists.
11260
11261debug=false
11262ac_cs_recheck=false
11263ac_cs_silent=false
11264
11265SHELL=\${CONFIG_SHELL-$SHELL}
11266export SHELL
11267_ASEOF
11268cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11269## -------------------- ##
11270## M4sh Initialization. ##
11271## -------------------- ##
11272
11273# Be more Bourne compatible
11274DUALCASE=1; export DUALCASE # for MKS sh
11275if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11276 emulate sh
11277 NULLCMD=:
11278 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11279 # is contrary to our usage. Disable this feature.
11280 alias -g '${1+"$@"}'='"$@"'
11281 setopt NO_GLOB_SUBST
11282else
11283 case `(set -o) 2>/dev/null` in #(
11284 *posix*) :
11285 set -o posix ;; #(
11286 *) :
11287 ;;
11288esac
11289fi
11290
11291
11292as_nl='
11293'
11294export as_nl
11295# Printing a long string crashes Solaris 7 /usr/bin/printf.
11296as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11297as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11298as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11299# Prefer a ksh shell builtin over an external printf program on Solaris,
11300# but without wasting forks for bash or zsh.
11301if test -z "$BASH_VERSION$ZSH_VERSION" \
11302 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11303 as_echo='print -r --'
11304 as_echo_n='print -rn --'
11305elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11306 as_echo='printf %s\n'
11307 as_echo_n='printf %s'
11308else
11309 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11310 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11311 as_echo_n='/usr/ucb/echo -n'
11312 else
11313 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11314 as_echo_n_body='eval
11315 arg=$1;
11316 case $arg in #(
11317 *"$as_nl"*)
11318 expr "X$arg" : "X\\(.*\\)$as_nl";
11319 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11320 esac;
11321 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11322 '
11323 export as_echo_n_body
11324 as_echo_n='sh -c $as_echo_n_body as_echo'
11325 fi
11326 export as_echo_body
11327 as_echo='sh -c $as_echo_body as_echo'
11328fi
11329
11330# The user is always right.
11331if test "${PATH_SEPARATOR+set}" != set; then
11332 PATH_SEPARATOR=:
11333 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11334 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11335 PATH_SEPARATOR=';'
11336 }
11337fi
11338
11339
11340# IFS
11341# We need space, tab and new line, in precisely that order. Quoting is
11342# there to prevent editors from complaining about space-tab.
11343# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11344# splitting by setting IFS to empty value.)
11345IFS=" "" $as_nl"
11346
11347# Find who we are. Look in the path if we contain no directory separator.
11348as_myself=
11349case $0 in #((
11350 *[\\/]* ) as_myself=$0 ;;
11351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11357 done
11358IFS=$as_save_IFS
11359
11360 ;;
11361esac
11362# We did not find ourselves, most probably we were run as `sh COMMAND'
11363# in which case we are not to be found in the path.
11364if test "x$as_myself" = x; then
11365 as_myself=$0
11366fi
11367if test ! -f "$as_myself"; then
11368 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11369 exit 1
11370fi
11371
11372# Unset variables that we do not need and which cause bugs (e.g. in
11373# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11374# suppresses any "Segmentation fault" message there. '((' could
11375# trigger a bug in pdksh 5.2.14.
11376for as_var in BASH_ENV ENV MAIL MAILPATH
11377do eval test x\${$as_var+set} = xset \
11378 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11379done
11380PS1='$ '
11381PS2='> '
11382PS4='+ '
11383
11384# NLS nuisances.
11385LC_ALL=C
11386export LC_ALL
11387LANGUAGE=C
11388export LANGUAGE
11389
11390# CDPATH.
11391(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11392
11393
11394# as_fn_error STATUS ERROR [LINENO LOG_FD]
11395# ----------------------------------------
11396# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11397# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11398# script with STATUS, using 1 if that was 0.
11399as_fn_error ()
11400{
11401 as_status=$1; test $as_status -eq 0 && as_status=1
11402 if test "$4"; then
11403 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11404 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11405 fi
11406 $as_echo "$as_me: error: $2" >&2
11407 as_fn_exit $as_status
11408} # as_fn_error
11409
11410
11411# as_fn_set_status STATUS
11412# -----------------------
11413# Set $? to STATUS, without forking.
11414as_fn_set_status ()
11415{
11416 return $1
11417} # as_fn_set_status
11418
11419# as_fn_exit STATUS
11420# -----------------
11421# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11422as_fn_exit ()
11423{
11424 set +e
11425 as_fn_set_status $1
11426 exit $1
11427} # as_fn_exit
11428
11429# as_fn_unset VAR
11430# ---------------
11431# Portably unset VAR.
11432as_fn_unset ()
11433{
11434 { eval $1=; unset $1;}
11435}
11436as_unset=as_fn_unset
11437# as_fn_append VAR VALUE
11438# ----------------------
11439# Append the text in VALUE to the end of the definition contained in VAR. Take
11440# advantage of any shell optimizations that allow amortized linear growth over
11441# repeated appends, instead of the typical quadratic growth present in naive
11442# implementations.
11443if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11444 eval 'as_fn_append ()
11445 {
11446 eval $1+=\$2
11447 }'
11448else
11449 as_fn_append ()
11450 {
11451 eval $1=\$$1\$2
11452 }
11453fi # as_fn_append
11454
11455# as_fn_arith ARG...
11456# ------------------
11457# Perform arithmetic evaluation on the ARGs, and store the result in the
11458# global $as_val. Take advantage of shells that can avoid forks. The arguments
11459# must be portable across $(()) and expr.
11460if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11461 eval 'as_fn_arith ()
11462 {
11463 as_val=$(( $* ))
11464 }'
11465else
11466 as_fn_arith ()
11467 {
11468 as_val=`expr "$@" || test $? -eq 1`
11469 }
11470fi # as_fn_arith
11471
11472
11473if expr a : '\(a\)' >/dev/null 2>&1 &&
11474 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11475 as_expr=expr
11476else
11477 as_expr=false
11478fi
11479
11480if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11481 as_basename=basename
11482else
11483 as_basename=false
11484fi
11485
11486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11487 as_dirname=dirname
11488else
11489 as_dirname=false
11490fi
11491
11492as_me=`$as_basename -- "$0" ||
11493$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11494 X"$0" : 'X\(//\)$' \| \
11495 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11496$as_echo X/"$0" |
11497 sed '/^.*\/\([^/][^/]*\)\/*$/{
11498 s//\1/
11499 q
11500 }
11501 /^X\/\(\/\/\)$/{
11502 s//\1/
11503 q
11504 }
11505 /^X\/\(\/\).*/{
11506 s//\1/
11507 q
11508 }
11509 s/.*/./; q'`
11510
11511# Avoid depending upon Character Ranges.
11512as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11513as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11514as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11515as_cr_digits='0123456789'
11516as_cr_alnum=$as_cr_Letters$as_cr_digits
11517
11518ECHO_C= ECHO_N= ECHO_T=
11519case `echo -n x` in #(((((
11520-n*)
11521 case `echo 'xy\c'` in
11522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11523 xy) ECHO_C='\c';;
11524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11525 ECHO_T=' ';;
11526 esac;;
11527*)
11528 ECHO_N='-n';;
11529esac
11530
11531rm -f conf$$ conf$$.exe conf$$.file
11532if test -d conf$$.dir; then
11533 rm -f conf$$.dir/conf$$.file
11534else
11535 rm -f conf$$.dir
11536 mkdir conf$$.dir 2>/dev/null
11537fi
11538if (echo >conf$$.file) 2>/dev/null; then
11539 if ln -s conf$$.file conf$$ 2>/dev/null; then
11540 as_ln_s='ln -s'
11541 # ... but there are two gotchas:
11542 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11543 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11544 # In both cases, we have to default to `cp -pR'.
11545 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11546 as_ln_s='cp -pR'
11547 elif ln conf$$.file conf$$ 2>/dev/null; then
11548 as_ln_s=ln
11549 else
11550 as_ln_s='cp -pR'
11551 fi
11552else
11553 as_ln_s='cp -pR'
11554fi
11555rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11556rmdir conf$$.dir 2>/dev/null
11557
11558
11559# as_fn_mkdir_p
11560# -------------
11561# Create "$as_dir" as a directory, including parents if necessary.
11562as_fn_mkdir_p ()
11563{
11564
11565 case $as_dir in #(
11566 -*) as_dir=./$as_dir;;
11567 esac
11568 test -d "$as_dir" || eval $as_mkdir_p || {
11569 as_dirs=
11570 while :; do
11571 case $as_dir in #(
11572 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11573 *) as_qdir=$as_dir;;
11574 esac
11575 as_dirs="'$as_qdir' $as_dirs"
11576 as_dir=`$as_dirname -- "$as_dir" ||
11577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11578 X"$as_dir" : 'X\(//\)[^/]' \| \
11579 X"$as_dir" : 'X\(//\)$' \| \
11580 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11581$as_echo X"$as_dir" |
11582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11583 s//\1/
11584 q
11585 }
11586 /^X\(\/\/\)[^/].*/{
11587 s//\1/
11588 q
11589 }
11590 /^X\(\/\/\)$/{
11591 s//\1/
11592 q
11593 }
11594 /^X\(\/\).*/{
11595 s//\1/
11596 q
11597 }
11598 s/.*/./; q'`
11599 test -d "$as_dir" && break
11600 done
11601 test -z "$as_dirs" || eval "mkdir $as_dirs"
11602 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11603
11604
11605} # as_fn_mkdir_p
11606if mkdir -p . 2>/dev/null; then
11607 as_mkdir_p='mkdir -p "$as_dir"'
11608else
11609 test -d ./-p && rmdir ./-p
11610 as_mkdir_p=false
11611fi
11612
11613
11614# as_fn_executable_p FILE
11615# -----------------------
11616# Test if FILE is an executable regular file.
11617as_fn_executable_p ()
11618{
11619 test -f "$1" && test -x "$1"
11620} # as_fn_executable_p
11621as_test_x='test -x'
11622as_executable_p=as_fn_executable_p
11623
11624# Sed expression to map a string onto a valid CPP name.
11625as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11626
11627# Sed expression to map a string onto a valid variable name.
11628as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11629
11630
11631exec 6>&1
11632## ----------------------------------- ##
11633## Main body of $CONFIG_STATUS script. ##
11634## ----------------------------------- ##
11635_ASEOF
11636test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11637
11638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11639# Save the log message, to keep $0 and so on meaningful, and to
11640# report actual input values of CONFIG_FILES etc. instead of their
11641# values after options handling.
11642ac_log="
11643This file was extended by gdbsupport $as_me 1.0, which was
11644generated by GNU Autoconf 2.69. Invocation command line was
11645
11646 CONFIG_FILES = $CONFIG_FILES
11647 CONFIG_HEADERS = $CONFIG_HEADERS
11648 CONFIG_LINKS = $CONFIG_LINKS
11649 CONFIG_COMMANDS = $CONFIG_COMMANDS
11650 $ $0 $@
11651
11652on `(hostname || uname -n) 2>/dev/null | sed 1q`
11653"
11654
11655_ACEOF
11656
11657case $ac_config_files in *"
11658"*) set x $ac_config_files; shift; ac_config_files=$*;;
11659esac
11660
11661case $ac_config_headers in *"
11662"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11663esac
11664
11665
11666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11667# Files that config.status was made for.
11668config_files="$ac_config_files"
11669config_headers="$ac_config_headers"
11670config_commands="$ac_config_commands"
11671
11672_ACEOF
11673
11674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11675ac_cs_usage="\
11676\`$as_me' instantiates files and other configuration actions
11677from templates according to the current configuration. Unless the files
11678and actions are specified as TAGs, all are instantiated by default.
11679
11680Usage: $0 [OPTION]... [TAG]...
11681
11682 -h, --help print this help, then exit
11683 -V, --version print version number and configuration settings, then exit
11684 --config print configuration, then exit
11685 -q, --quiet, --silent
11686 do not print progress messages
11687 -d, --debug don't remove temporary files
11688 --recheck update $as_me by reconfiguring in the same conditions
11689 --file=FILE[:TEMPLATE]
11690 instantiate the configuration file FILE
11691 --header=FILE[:TEMPLATE]
11692 instantiate the configuration header FILE
11693
11694Configuration files:
11695$config_files
11696
11697Configuration headers:
11698$config_headers
11699
11700Configuration commands:
11701$config_commands
11702
11703Report bugs to the package provider."
11704
11705_ACEOF
11706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11707ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11708ac_cs_version="\\
11709gdbsupport config.status 1.0
11710configured by $0, generated by GNU Autoconf 2.69,
11711 with options \\"\$ac_cs_config\\"
11712
11713Copyright (C) 2012 Free Software Foundation, Inc.
11714This config.status script is free software; the Free Software Foundation
11715gives unlimited permission to copy, distribute and modify it."
11716
11717ac_pwd='$ac_pwd'
11718srcdir='$srcdir'
11719INSTALL='$INSTALL'
11720MKDIR_P='$MKDIR_P'
11721AWK='$AWK'
11722test -n "\$AWK" || AWK=awk
11723_ACEOF
11724
11725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11726# The default lists apply if the user does not specify any file.
11727ac_need_defaults=:
11728while test $# != 0
11729do
11730 case $1 in
11731 --*=?*)
11732 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11733 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11734 ac_shift=:
11735 ;;
11736 --*=)
11737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11738 ac_optarg=
11739 ac_shift=:
11740 ;;
11741 *)
11742 ac_option=$1
11743 ac_optarg=$2
11744 ac_shift=shift
11745 ;;
11746 esac
11747
11748 case $ac_option in
11749 # Handling of the options.
11750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11751 ac_cs_recheck=: ;;
11752 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11753 $as_echo "$ac_cs_version"; exit ;;
11754 --config | --confi | --conf | --con | --co | --c )
11755 $as_echo "$ac_cs_config"; exit ;;
11756 --debug | --debu | --deb | --de | --d | -d )
11757 debug=: ;;
11758 --file | --fil | --fi | --f )
11759 $ac_shift
11760 case $ac_optarg in
11761 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11762 '') as_fn_error $? "missing file argument" ;;
11763 esac
11764 as_fn_append CONFIG_FILES " '$ac_optarg'"
11765 ac_need_defaults=false;;
11766 --header | --heade | --head | --hea )
11767 $ac_shift
11768 case $ac_optarg in
11769 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11770 esac
11771 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11772 ac_need_defaults=false;;
11773 --he | --h)
11774 # Conflict between --help and --header
11775 as_fn_error $? "ambiguous option: \`$1'
11776Try \`$0 --help' for more information.";;
11777 --help | --hel | -h )
11778 $as_echo "$ac_cs_usage"; exit ;;
11779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11780 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11781 ac_cs_silent=: ;;
11782
11783 # This is an error.
11784 -*) as_fn_error $? "unrecognized option: \`$1'
11785Try \`$0 --help' for more information." ;;
11786
11787 *) as_fn_append ac_config_targets " $1"
11788 ac_need_defaults=false ;;
11789
11790 esac
11791 shift
11792done
11793
11794ac_configure_extra_args=
11795
11796if $ac_cs_silent; then
11797 exec 6>/dev/null
11798 ac_configure_extra_args="$ac_configure_extra_args --silent"
11799fi
11800
11801_ACEOF
11802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11803if \$ac_cs_recheck; then
11804 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11805 shift
11806 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11807 CONFIG_SHELL='$SHELL'
11808 export CONFIG_SHELL
11809 exec "\$@"
11810fi
11811
11812_ACEOF
11813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11814exec 5>>config.log
11815{
11816 echo
11817 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11818## Running $as_me. ##
11819_ASBOX
11820 $as_echo "$ac_log"
11821} >&5
11822
11823_ACEOF
11824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11825#
11826# INIT-COMMANDS
11827#
11828AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11829
11830_ACEOF
11831
11832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11833
11834# Handling of arguments.
11835for ac_config_target in $ac_config_targets
11836do
11837 case $ac_config_target in
3684d331 11838 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
01027315
TT
11839 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11840 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11841
11842 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11843 esac
11844done
11845
11846
11847# If the user did not use the arguments to specify the items to instantiate,
11848# then the envvar interface is used. Set only those that are not.
11849# We use the long form for the default assignment because of an extremely
11850# bizarre bug on SunOS 4.1.3.
11851if $ac_need_defaults; then
11852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11853 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11854 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11855fi
11856
11857# Have a temporary directory for convenience. Make it in the build tree
11858# simply because there is no reason against having it here, and in addition,
11859# creating and moving files from /tmp can sometimes cause problems.
11860# Hook for its removal unless debugging.
11861# Note that there is a small window in which the directory will not be cleaned:
11862# after its creation but before its name has been assigned to `$tmp'.
11863$debug ||
11864{
11865 tmp= ac_tmp=
11866 trap 'exit_status=$?
11867 : "${ac_tmp:=$tmp}"
11868 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11869' 0
11870 trap 'as_fn_exit 1' 1 2 13 15
11871}
11872# Create a (secure) tmp directory for tmp files.
11873
11874{
11875 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11876 test -d "$tmp"
11877} ||
11878{
11879 tmp=./conf$$-$RANDOM
11880 (umask 077 && mkdir "$tmp")
11881} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11882ac_tmp=$tmp
11883
11884# Set up the scripts for CONFIG_FILES section.
11885# No need to generate them if there are no CONFIG_FILES.
11886# This happens for instance with `./config.status config.h'.
11887if test -n "$CONFIG_FILES"; then
11888
11889
11890ac_cr=`echo X | tr X '\015'`
11891# On cygwin, bash can eat \r inside `` if the user requested igncr.
11892# But we know of no other shell where ac_cr would be empty at this
11893# point, so we can use a bashism as a fallback.
11894if test "x$ac_cr" = x; then
11895 eval ac_cr=\$\'\\r\'
11896fi
11897ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11898if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11899 ac_cs_awk_cr='\\r'
11900else
11901 ac_cs_awk_cr=$ac_cr
11902fi
11903
11904echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11905_ACEOF
11906
11907
11908{
11909 echo "cat >conf$$subs.awk <<_ACEOF" &&
11910 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11911 echo "_ACEOF"
11912} >conf$$subs.sh ||
11913 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11914ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11915ac_delim='%!_!# '
11916for ac_last_try in false false false false false :; do
11917 . ./conf$$subs.sh ||
11918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11919
11920 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11921 if test $ac_delim_n = $ac_delim_num; then
11922 break
11923 elif $ac_last_try; then
11924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11925 else
11926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11927 fi
11928done
11929rm -f conf$$subs.sh
11930
11931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11932cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11933_ACEOF
11934sed -n '
11935h
11936s/^/S["/; s/!.*/"]=/
11937p
11938g
11939s/^[^!]*!//
11940:repl
11941t repl
11942s/'"$ac_delim"'$//
11943t delim
11944:nl
11945h
11946s/\(.\{148\}\)..*/\1/
11947t more1
11948s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11949p
11950n
11951b repl
11952:more1
11953s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11954p
11955g
11956s/.\{148\}//
11957t nl
11958:delim
11959h
11960s/\(.\{148\}\)..*/\1/
11961t more2
11962s/["\\]/\\&/g; s/^/"/; s/$/"/
11963p
11964b
11965:more2
11966s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11967p
11968g
11969s/.\{148\}//
11970t delim
11971' <conf$$subs.awk | sed '
11972/^[^""]/{
11973 N
11974 s/\n//
11975}
11976' >>$CONFIG_STATUS || ac_write_fail=1
11977rm -f conf$$subs.awk
11978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11979_ACAWK
11980cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11981 for (key in S) S_is_set[key] = 1
11982 FS = "\a"
11983
11984}
11985{
11986 line = $ 0
11987 nfields = split(line, field, "@")
11988 substed = 0
11989 len = length(field[1])
11990 for (i = 2; i < nfields; i++) {
11991 key = field[i]
11992 keylen = length(key)
11993 if (S_is_set[key]) {
11994 value = S[key]
11995 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11996 len += length(value) + length(field[++i])
11997 substed = 1
11998 } else
11999 len += 1 + keylen
12000 }
12001
12002 print line
12003}
12004
12005_ACAWK
12006_ACEOF
12007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12008if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12009 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12010else
12011 cat
12012fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12013 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12014_ACEOF
12015
12016# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12017# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12018# trailing colons and then remove the whole line if VPATH becomes empty
12019# (actually we leave an empty line to preserve line numbers).
12020if test "x$srcdir" = x.; then
12021 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12022h
12023s///
12024s/^/:/
12025s/[ ]*$/:/
12026s/:\$(srcdir):/:/g
12027s/:\${srcdir}:/:/g
12028s/:@srcdir@:/:/g
12029s/^:*//
12030s/:*$//
12031x
12032s/\(=[ ]*\).*/\1/
12033G
12034s/\n//
12035s/^[^=]*=[ ]*$//
12036}'
12037fi
12038
12039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12040fi # test -n "$CONFIG_FILES"
12041
12042# Set up the scripts for CONFIG_HEADERS section.
12043# No need to generate them if there are no CONFIG_HEADERS.
12044# This happens for instance with `./config.status Makefile'.
12045if test -n "$CONFIG_HEADERS"; then
12046cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12047BEGIN {
12048_ACEOF
12049
12050# Transform confdefs.h into an awk script `defines.awk', embedded as
12051# here-document in config.status, that substitutes the proper values into
12052# config.h.in to produce config.h.
12053
12054# Create a delimiter string that does not exist in confdefs.h, to ease
12055# handling of long lines.
12056ac_delim='%!_!# '
12057for ac_last_try in false false :; do
12058 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12059 if test -z "$ac_tt"; then
12060 break
12061 elif $ac_last_try; then
12062 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12063 else
12064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12065 fi
12066done
12067
12068# For the awk script, D is an array of macro values keyed by name,
12069# likewise P contains macro parameters if any. Preserve backslash
12070# newline sequences.
12071
12072ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12073sed -n '
12074s/.\{148\}/&'"$ac_delim"'/g
12075t rset
12076:rset
12077s/^[ ]*#[ ]*define[ ][ ]*/ /
12078t def
12079d
12080:def
12081s/\\$//
12082t bsnl
12083s/["\\]/\\&/g
12084s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12085D["\1"]=" \3"/p
12086s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12087d
12088:bsnl
12089s/["\\]/\\&/g
12090s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12091D["\1"]=" \3\\\\\\n"\\/p
12092t cont
12093s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12094t cont
12095d
12096:cont
12097n
12098s/.\{148\}/&'"$ac_delim"'/g
12099t clear
12100:clear
12101s/\\$//
12102t bsnlc
12103s/["\\]/\\&/g; s/^/"/; s/$/"/p
12104d
12105:bsnlc
12106s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12107b cont
12108' <confdefs.h | sed '
12109s/'"$ac_delim"'/"\\\
12110"/g' >>$CONFIG_STATUS || ac_write_fail=1
12111
12112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12113 for (key in D) D_is_set[key] = 1
12114 FS = "\a"
12115}
12116/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12117 line = \$ 0
12118 split(line, arg, " ")
12119 if (arg[1] == "#") {
12120 defundef = arg[2]
12121 mac1 = arg[3]
12122 } else {
12123 defundef = substr(arg[1], 2)
12124 mac1 = arg[2]
12125 }
12126 split(mac1, mac2, "(") #)
12127 macro = mac2[1]
12128 prefix = substr(line, 1, index(line, defundef) - 1)
12129 if (D_is_set[macro]) {
12130 # Preserve the white space surrounding the "#".
12131 print prefix "define", macro P[macro] D[macro]
12132 next
12133 } else {
12134 # Replace #undef with comments. This is necessary, for example,
12135 # in the case of _POSIX_SOURCE, which is predefined and required
12136 # on some systems where configure will not decide to define it.
12137 if (defundef == "undef") {
12138 print "/*", prefix defundef, macro, "*/"
12139 next
12140 }
12141 }
12142}
12143{ print }
12144_ACAWK
12145_ACEOF
12146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12147 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12148fi # test -n "$CONFIG_HEADERS"
12149
12150
12151eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12152shift
12153for ac_tag
12154do
12155 case $ac_tag in
12156 :[FHLC]) ac_mode=$ac_tag; continue;;
12157 esac
12158 case $ac_mode$ac_tag in
12159 :[FHL]*:*);;
12160 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12161 :[FH]-) ac_tag=-:-;;
12162 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12163 esac
12164 ac_save_IFS=$IFS
12165 IFS=:
12166 set x $ac_tag
12167 IFS=$ac_save_IFS
12168 shift
12169 ac_file=$1
12170 shift
12171
12172 case $ac_mode in
12173 :L) ac_source=$1;;
12174 :[FH])
12175 ac_file_inputs=
12176 for ac_f
12177 do
12178 case $ac_f in
12179 -) ac_f="$ac_tmp/stdin";;
12180 *) # Look for the file first in the build tree, then in the source tree
12181 # (if the path is not absolute). The absolute path cannot be DOS-style,
12182 # because $ac_f cannot contain `:'.
12183 test -f "$ac_f" ||
12184 case $ac_f in
12185 [\\/$]*) false;;
12186 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12187 esac ||
12188 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12189 esac
12190 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12191 as_fn_append ac_file_inputs " '$ac_f'"
12192 done
12193
12194 # Let's still pretend it is `configure' which instantiates (i.e., don't
12195 # use $as_me), people would be surprised to read:
12196 # /* config.h. Generated by config.status. */
12197 configure_input='Generated from '`
12198 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12199 `' by configure.'
12200 if test x"$ac_file" != x-; then
12201 configure_input="$ac_file. $configure_input"
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12203$as_echo "$as_me: creating $ac_file" >&6;}
12204 fi
12205 # Neutralize special characters interpreted by sed in replacement strings.
12206 case $configure_input in #(
12207 *\&* | *\|* | *\\* )
12208 ac_sed_conf_input=`$as_echo "$configure_input" |
12209 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12210 *) ac_sed_conf_input=$configure_input;;
12211 esac
12212
12213 case $ac_tag in
12214 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12216 esac
12217 ;;
12218 esac
12219
12220 ac_dir=`$as_dirname -- "$ac_file" ||
12221$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12222 X"$ac_file" : 'X\(//\)[^/]' \| \
12223 X"$ac_file" : 'X\(//\)$' \| \
12224 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12225$as_echo X"$ac_file" |
12226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12227 s//\1/
12228 q
12229 }
12230 /^X\(\/\/\)[^/].*/{
12231 s//\1/
12232 q
12233 }
12234 /^X\(\/\/\)$/{
12235 s//\1/
12236 q
12237 }
12238 /^X\(\/\).*/{
12239 s//\1/
12240 q
12241 }
12242 s/.*/./; q'`
12243 as_dir="$ac_dir"; as_fn_mkdir_p
12244 ac_builddir=.
12245
12246case "$ac_dir" in
12247.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12248*)
12249 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12250 # A ".." for each directory in $ac_dir_suffix.
12251 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12252 case $ac_top_builddir_sub in
12253 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12254 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12255 esac ;;
12256esac
12257ac_abs_top_builddir=$ac_pwd
12258ac_abs_builddir=$ac_pwd$ac_dir_suffix
12259# for backward compatibility:
12260ac_top_builddir=$ac_top_build_prefix
12261
12262case $srcdir in
12263 .) # We are building in place.
12264 ac_srcdir=.
12265 ac_top_srcdir=$ac_top_builddir_sub
12266 ac_abs_top_srcdir=$ac_pwd ;;
12267 [\\/]* | ?:[\\/]* ) # Absolute name.
12268 ac_srcdir=$srcdir$ac_dir_suffix;
12269 ac_top_srcdir=$srcdir
12270 ac_abs_top_srcdir=$srcdir ;;
12271 *) # Relative name.
12272 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12273 ac_top_srcdir=$ac_top_build_prefix$srcdir
12274 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12275esac
12276ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12277
12278
12279 case $ac_mode in
12280 :F)
12281 #
12282 # CONFIG_FILE
12283 #
12284
12285 case $INSTALL in
12286 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12287 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12288 esac
12289 ac_MKDIR_P=$MKDIR_P
12290 case $MKDIR_P in
12291 [\\/$]* | ?:[\\/]* ) ;;
12292 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12293 esac
12294_ACEOF
12295
12296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12297# If the template does not know about datarootdir, expand it.
12298# FIXME: This hack should be removed a few years after 2.60.
12299ac_datarootdir_hack=; ac_datarootdir_seen=
12300ac_sed_dataroot='
12301/datarootdir/ {
12302 p
12303 q
12304}
12305/@datadir@/p
12306/@docdir@/p
12307/@infodir@/p
12308/@localedir@/p
12309/@mandir@/p'
12310case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12311*datarootdir*) ac_datarootdir_seen=yes;;
12312*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12314$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12315_ACEOF
12316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12317 ac_datarootdir_hack='
12318 s&@datadir@&$datadir&g
12319 s&@docdir@&$docdir&g
12320 s&@infodir@&$infodir&g
12321 s&@localedir@&$localedir&g
12322 s&@mandir@&$mandir&g
12323 s&\\\${datarootdir}&$datarootdir&g' ;;
12324esac
12325_ACEOF
12326
12327# Neutralize VPATH when `$srcdir' = `.'.
12328# Shell code in configure.ac might set extrasub.
12329# FIXME: do we really want to maintain this feature?
12330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12331ac_sed_extra="$ac_vpsub
12332$extrasub
12333_ACEOF
12334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12335:t
12336/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12337s|@configure_input@|$ac_sed_conf_input|;t t
12338s&@top_builddir@&$ac_top_builddir_sub&;t t
12339s&@top_build_prefix@&$ac_top_build_prefix&;t t
12340s&@srcdir@&$ac_srcdir&;t t
12341s&@abs_srcdir@&$ac_abs_srcdir&;t t
12342s&@top_srcdir@&$ac_top_srcdir&;t t
12343s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12344s&@builddir@&$ac_builddir&;t t
12345s&@abs_builddir@&$ac_abs_builddir&;t t
12346s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12347s&@INSTALL@&$ac_INSTALL&;t t
12348s&@MKDIR_P@&$ac_MKDIR_P&;t t
12349$ac_datarootdir_hack
12350"
12351eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12352 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12353
12354test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12355 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12356 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12357 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12359which seems to be undefined. Please make sure it is defined" >&5
12360$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12361which seems to be undefined. Please make sure it is defined" >&2;}
12362
12363 rm -f "$ac_tmp/stdin"
12364 case $ac_file in
12365 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12366 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12367 esac \
12368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12369 ;;
12370 :H)
12371 #
12372 # CONFIG_HEADER
12373 #
12374 if test x"$ac_file" != x-; then
12375 {
12376 $as_echo "/* $configure_input */" \
12377 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12378 } >"$ac_tmp/config.h" \
12379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12380 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12382$as_echo "$as_me: $ac_file is unchanged" >&6;}
12383 else
12384 rm -f "$ac_file"
12385 mv "$ac_tmp/config.h" "$ac_file" \
12386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12387 fi
12388 else
12389 $as_echo "/* $configure_input */" \
12390 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12391 || as_fn_error $? "could not create -" "$LINENO" 5
12392 fi
12393# Compute "$ac_file"'s index in $config_headers.
12394_am_arg="$ac_file"
12395_am_stamp_count=1
12396for _am_header in $config_headers :; do
12397 case $_am_header in
12398 $_am_arg | $_am_arg:* )
12399 break ;;
12400 * )
12401 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12402 esac
12403done
12404echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12405$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12406 X"$_am_arg" : 'X\(//\)[^/]' \| \
12407 X"$_am_arg" : 'X\(//\)$' \| \
12408 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12409$as_echo X"$_am_arg" |
12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12411 s//\1/
12412 q
12413 }
12414 /^X\(\/\/\)[^/].*/{
12415 s//\1/
12416 q
12417 }
12418 /^X\(\/\/\)$/{
12419 s//\1/
12420 q
12421 }
12422 /^X\(\/\).*/{
12423 s//\1/
12424 q
12425 }
12426 s/.*/./; q'`/stamp-h$_am_stamp_count
12427 ;;
12428
12429 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12430$as_echo "$as_me: executing $ac_file commands" >&6;}
12431 ;;
12432 esac
12433
12434
12435 case $ac_file$ac_mode in
12436 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12437 # Older Autoconf quotes --file arguments for eval, but not when files
12438 # are listed without --file. Let's play safe and only enable the eval
12439 # if we detect the quoting.
12440 case $CONFIG_FILES in
12441 *\'*) eval set x "$CONFIG_FILES" ;;
12442 *) set x $CONFIG_FILES ;;
12443 esac
12444 shift
12445 for mf
12446 do
12447 # Strip MF so we end up with the name of the file.
12448 mf=`echo "$mf" | sed -e 's/:.*$//'`
12449 # Check whether this is an Automake generated Makefile or not.
12450 # We used to match only the files named 'Makefile.in', but
12451 # some people rename them; so instead we look at the file content.
12452 # Grep'ing the first line is not enough: some people post-process
12453 # each Makefile.in and add a new line on top of each file to say so.
12454 # Grep'ing the whole file is not good either: AIX grep has a line
12455 # limit of 2048, but all sed's we know have understand at least 4000.
12456 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12457 dirpart=`$as_dirname -- "$mf" ||
12458$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12459 X"$mf" : 'X\(//\)[^/]' \| \
12460 X"$mf" : 'X\(//\)$' \| \
12461 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12462$as_echo X"$mf" |
12463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12464 s//\1/
12465 q
12466 }
12467 /^X\(\/\/\)[^/].*/{
12468 s//\1/
12469 q
12470 }
12471 /^X\(\/\/\)$/{
12472 s//\1/
12473 q
12474 }
12475 /^X\(\/\).*/{
12476 s//\1/
12477 q
12478 }
12479 s/.*/./; q'`
12480 else
12481 continue
12482 fi
12483 # Extract the definition of DEPDIR, am__include, and am__quote
12484 # from the Makefile without running 'make'.
12485 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12486 test -z "$DEPDIR" && continue
12487 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12488 test -z "$am__include" && continue
12489 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12490 # Find all dependency output files, they are included files with
12491 # $(DEPDIR) in their names. We invoke sed twice because it is the
12492 # simplest approach to changing $(DEPDIR) to its actual value in the
12493 # expansion.
12494 for file in `sed -n "
12495 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12496 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12497 # Make sure the directory exists.
12498 test -f "$dirpart/$file" && continue
12499 fdir=`$as_dirname -- "$file" ||
12500$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12501 X"$file" : 'X\(//\)[^/]' \| \
12502 X"$file" : 'X\(//\)$' \| \
12503 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12504$as_echo X"$file" |
12505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12506 s//\1/
12507 q
12508 }
12509 /^X\(\/\/\)[^/].*/{
12510 s//\1/
12511 q
12512 }
12513 /^X\(\/\/\)$/{
12514 s//\1/
12515 q
12516 }
12517 /^X\(\/\).*/{
12518 s//\1/
12519 q
12520 }
12521 s/.*/./; q'`
12522 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12523 # echo "creating $dirpart/$file"
12524 echo '# dummy' > "$dirpart/$file"
12525 done
12526 done
12527}
12528 ;;
12529
12530 esac
12531done # for ac_tag
12532
12533
12534as_fn_exit 0
12535_ACEOF
12536ac_clean_files=$ac_clean_files_save
12537
12538test $ac_write_fail = 0 ||
12539 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12540
12541
12542# configure is writing to config.log, and then calls config.status.
12543# config.status does its own redirection, appending to config.log.
12544# Unfortunately, on DOS this fails, as config.log is still kept open
12545# by configure, so config.status won't be able to write to it; its
12546# output is simply discarded. So we exec the FD to /dev/null,
12547# effectively closing config.log, so it can be properly (re)opened and
12548# appended to by config.status. When coming back to configure, we
12549# need to make the FD available again.
12550if test "$no_create" != yes; then
12551 ac_cs_success=:
12552 ac_config_status_args=
12553 test "$silent" = yes &&
12554 ac_config_status_args="$ac_config_status_args --quiet"
12555 exec 5>/dev/null
12556 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12557 exec 5>>config.log
12558 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12559 # would make configure fail if this is the last instruction.
12560 $ac_cs_success || as_fn_exit 1
12561fi
12562if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12564$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12565fi
12566
This page took 0.567112 seconds and 4 git commands to generate.