Move many configure checks to common.m4
[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
627SELFTEST_FALSE
628SELFTEST_TRUE
05ea2a05
TT
629LTLIBIPT
630LIBIPT
631HAVE_LIBIPT
01027315
TT
632PTHREAD_CFLAGS
633PTHREAD_LIBS
634PTHREAD_CC
635ax_pthread_config
636SED
637ALLOCA
638CATOBJEXT
639GENCAT
640INSTOBJEXT
641DATADIRNAME
642CATALOGS
643POSUB
644GMSGFMT
645XGETTEXT
646INCINTL
647LIBINTL_DEP
648LIBINTL
649USE_NLS
650CXX_DIALECT
651HAVE_CXX11
652EGREP
653GREP
654CPP
655RANLIB
656am__fastdepCXX_FALSE
657am__fastdepCXX_TRUE
658CXXDEPMODE
659ac_ct_CXX
660CXXFLAGS
661CXX
662am__fastdepCC_FALSE
663am__fastdepCC_TRUE
664CCDEPMODE
665am__nodep
666AMDEPBACKSLASH
667AMDEP_FALSE
668AMDEP_TRUE
669am__quote
670am__include
671DEPDIR
672OBJEXT
673EXEEXT
674ac_ct_CC
675CPPFLAGS
676LDFLAGS
677CFLAGS
678CC
679AM_BACKSLASH
680AM_DEFAULT_VERBOSITY
681AM_DEFAULT_V
682AM_V
683am__untar
684am__tar
685AMTAR
686am__leading_dot
687SET_MAKE
688AWK
689mkdir_p
690MKDIR_P
691INSTALL_STRIP_PROGRAM
692STRIP
693install_sh
694MAKEINFO
695AUTOHEADER
696AUTOMAKE
697AUTOCONF
698ACLOCAL
699VERSION
700PACKAGE
701CYGPATH_W
702am__isrc
703INSTALL_DATA
704INSTALL_SCRIPT
705INSTALL_PROGRAM
706MAINT
707MAINTAINER_MODE_FALSE
708MAINTAINER_MODE_TRUE
709target_os
710target_vendor
711target_cpu
712target
713host_os
714host_vendor
715host_cpu
716host
717build_os
718build_vendor
719build_cpu
720build
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762enable_maintainer_mode
763enable_silent_rules
764enable_dependency_tracking
765enable_plugins
766enable_largefile
05ea2a05
TT
767with_intel_pt
768with_gnu_ld
769enable_rpath
770with_libipt_prefix
01027315
TT
771enable_unit_tests
772'
773 ac_precious_vars='build_alias
774host_alias
775target_alias
776CC
777CFLAGS
778LDFLAGS
779LIBS
780CPPFLAGS
781CXX
782CXXFLAGS
783CCC
784CPP'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
834
835ac_prev=
836ac_dashdash=
837for ac_option
838do
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
842 ac_prev=
843 continue
844 fi
845
846 case $ac_option in
847 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 *=) ac_optarg= ;;
849 *) ac_optarg=yes ;;
850 esac
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899"enable_$ac_useropt"
900"*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925"enable_$ac_useropt"
926"*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129"with_$ac_useropt"
1130"*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1135
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145"with_$ac_useropt"
1146"*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
1170 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171Try \`$0 --help' for more information"
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error $? "missing argument to $ac_option"
1198fi
1199
1200if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1206fi
1207
1208# Check all directory arguments for consistency.
1209for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1213do
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
1251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $? "working directory cannot be determined"
1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259# Find the source files, if location was not specified.
1260if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268$as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1289 fi
1290else
1291 ac_srcdir_defaulted=no
1292fi
1293if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296fi
1297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300 pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
1317
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325\`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1326
1327Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332Defaults for the options are specified in brackets.
1333
1334Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
1345Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1350
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
1355
1356For better control, use the options below.
1357
1358Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378_ACEOF
1379
1380 cat <<\_ACEOF
1381
1382Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1391_ACEOF
1392fi
1393
1394if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1397 esac
1398 cat <<\_ACEOF
1399
1400Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-maintainer-mode
1405 enable make rules and dependencies not useful (and
1406 sometimes confusing) to the casual installer
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-dependency-tracking
1410 do not reject slow dependency extractors
1411 --disable-dependency-tracking
1412 speeds up one-time build
1413 --enable-plugins Enable support for plugins
1414 --disable-largefile omit support for large files
05ea2a05 1415 --disable-rpath do not hardcode runtime library paths
01027315
TT
1416 --enable-unit-tests Enable the inclusion of unit tests when compiling
1417 GDB
1418
05ea2a05
TT
1419Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1423 --with-gnu-ld assume the C compiler uses GNU ld default=no
1424 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1425 --without-libipt-prefix don't search for libipt in includedir and libdir
1426
01027315
TT
1427Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CXX C++ compiler command
1436 CXXFLAGS C++ compiler flags
1437 CPP C preprocessor
1438
1439Use these variables to override the choices made by `configure' or to help
1440it to find libraries and programs with nonstandard names/locations.
1441
1442Report bugs to the package provider.
1443_ACEOF
1444ac_status=$?
1445fi
1446
1447if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1454
1455case "$ac_dir" in
1456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457*)
1458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465esac
1466ac_abs_top_builddir=$ac_pwd
1467ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468# for backward compatibility:
1469ac_top_builddir=$ac_top_build_prefix
1470
1471case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484esac
1485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1495 else
1496 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 fi || ac_status=$?
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1499 done
1500fi
1501
1502test -n "$ac_init_help" && exit $ac_status
1503if $ac_init_version; then
1504 cat <<\_ACEOF
1505gdbsupport configure 1.0
1506generated by GNU Autoconf 2.69
1507
1508Copyright (C) 2012 Free Software Foundation, Inc.
1509This configure script is free software; the Free Software Foundation
1510gives unlimited permission to copy, distribute and modify it.
1511_ACEOF
1512 exit
1513fi
1514
1515## ------------------------ ##
1516## Autoconf initialization. ##
1517## ------------------------ ##
1518
1519# ac_fn_c_try_compile LINENO
1520# --------------------------
1521# Try to compile conftest.$ac_ext, and return whether this succeeded.
1522ac_fn_c_try_compile ()
1523{
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 rm -f conftest.$ac_objext
1526 if { { ac_try="$ac_compile"
1527case "(($ac_try" in
1528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529 *) ac_try_echo=$ac_try;;
1530esac
1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532$as_echo "$ac_try_echo"; } >&5
1533 (eval "$ac_compile") 2>conftest.err
1534 ac_status=$?
1535 if test -s conftest.err; then
1536 grep -v '^ *+' conftest.err >conftest.er1
1537 cat conftest.er1 >&5
1538 mv -f conftest.er1 conftest.err
1539 fi
1540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 test $ac_status = 0; } && {
1542 test -z "$ac_c_werror_flag" ||
1543 test ! -s conftest.err
1544 } && test -s conftest.$ac_objext; then :
1545 ac_retval=0
1546else
1547 $as_echo "$as_me: failed program was:" >&5
1548sed 's/^/| /' conftest.$ac_ext >&5
1549
1550 ac_retval=1
1551fi
1552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553 as_fn_set_status $ac_retval
1554
1555} # ac_fn_c_try_compile
1556
1557# ac_fn_cxx_try_compile LINENO
1558# ----------------------------
1559# Try to compile conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_cxx_try_compile ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_cxx_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584else
1585 $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593} # ac_fn_cxx_try_compile
1594
1595# ac_fn_c_try_cpp LINENO
1596# ----------------------
1597# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_cpp ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621else
1622 $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630} # ac_fn_c_try_cpp
1631
1632# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633# -------------------------------------------------------
1634# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635# the include files in INCLUDES and setting the cache variable VAR
1636# accordingly.
1637ac_fn_c_check_header_mongrel ()
1638{
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if eval \${$3+:} false; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645fi
1646eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648$as_echo "$ac_res" >&6; }
1649else
1650 # Is the header compilable?
1651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652$as_echo_n "checking $2 usability... " >&6; }
1653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h. */
1655$4
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1660else
1661 ac_header_compiler=no
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665$as_echo "$ac_header_compiler" >&6; }
1666
1667# Is the header present?
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669$as_echo_n "checking $2 presence... " >&6; }
1670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h. */
1672#include <$2>
1673_ACEOF
1674if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1676else
1677 ac_header_preproc=no
1678fi
1679rm -f conftest.err conftest.i conftest.$ac_ext
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681$as_echo "$ac_header_preproc" >&6; }
1682
1683# So? What about this header?
1684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1685 yes:no: )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 ;;
1691 no:yes:* )
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703esac
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705$as_echo_n "checking for $2... " >&6; }
1706if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1708else
1709 eval "$3=\$ac_header_compiler"
1710fi
1711eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713$as_echo "$ac_res" >&6; }
1714fi
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717} # ac_fn_c_check_header_mongrel
1718
1719# ac_fn_c_try_run LINENO
1720# ----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722# that executables *can* be run.
1723ac_fn_c_try_run ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_run
1760
1761# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762# -------------------------------------------------------
1763# Tests whether HEADER exists and can be compiled using the include files in
1764# INCLUDES, setting the cache variable VAR accordingly.
1765ac_fn_c_check_header_compile ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
1770if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780else
1781 eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784fi
1785eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_header_compile
1791
1792# ac_fn_c_try_link LINENO
1793# -----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_link ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 test -x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836} # ac_fn_c_try_link
1837
1838# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1839# -------------------------------------------
1840# Tests whether TYPE exists after having included INCLUDES, setting cache
1841# variable VAR accordingly.
1842ac_fn_c_check_type ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846$as_echo_n "checking for $2... " >&6; }
1847if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849else
1850 eval "$3=no"
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h. */
1853$4
1854int
1855main ()
1856{
1857if (sizeof ($2))
1858 return 0;
1859 ;
1860 return 0;
1861}
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
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
1878else
1879 eval "$3=yes"
1880fi
1881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882fi
1883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_type
1891
1892# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1893# --------------------------------------------
1894# Tries to find the compile-time value of EXPR in a program that includes
1895# INCLUDES, setting VAR accordingly. Returns whether the value could be
1896# computed
1897ac_fn_c_compute_int ()
1898{
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if test "$cross_compiling" = yes; then
1901 # Depending upon the size, compute the lo and hi bounds.
1902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903/* end confdefs.h. */
1904$4
1905int
1906main ()
1907{
1908static int test_array [1 - 2 * !(($2) >= 0)];
1909test_array [0] = 0;
1910return test_array [0];
1911
1912 ;
1913 return 0;
1914}
1915_ACEOF
1916if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_lo=0 ac_mid=0
1918 while :; do
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h. */
1921$4
1922int
1923main ()
1924{
1925static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1926test_array [0] = 0;
1927return test_array [0];
1928
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_hi=$ac_mid; break
1935else
1936 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1937 if test $ac_lo -le $ac_mid; then
1938 ac_lo= ac_hi=
1939 break
1940 fi
1941 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 done
1945else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948$4
1949int
1950main ()
1951{
1952static int test_array [1 - 2 * !(($2) < 0)];
1953test_array [0] = 0;
1954return test_array [0];
1955
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 ac_hi=-1 ac_mid=-1
1962 while :; do
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965$4
1966int
1967main ()
1968{
1969static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1970test_array [0] = 0;
1971return test_array [0];
1972
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978 ac_lo=$ac_mid; break
1979else
1980 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1981 if test $ac_mid -le $ac_hi; then
1982 ac_lo= ac_hi=
1983 break
1984 fi
1985 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 done
1989else
1990 ac_lo= ac_hi=
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995# Binary search between lo and hi bounds.
1996while test "x$ac_lo" != "x$ac_hi"; do
1997 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h. */
2000$4
2001int
2002main ()
2003{
2004static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2005test_array [0] = 0;
2006return test_array [0];
2007
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_hi=$ac_mid
2014else
2015 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018done
2019case $ac_lo in #((
2020?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2021'') ac_retval=1 ;;
2022esac
2023 else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h. */
2026$4
2027static long int longval () { return $2; }
2028static unsigned long int ulongval () { return $2; }
2029#include <stdio.h>
2030#include <stdlib.h>
2031int
2032main ()
2033{
2034
2035 FILE *f = fopen ("conftest.val", "w");
2036 if (! f)
2037 return 1;
2038 if (($2) < 0)
2039 {
2040 long int i = longval ();
2041 if (i != ($2))
2042 return 1;
2043 fprintf (f, "%ld", i);
2044 }
2045 else
2046 {
2047 unsigned long int i = ulongval ();
2048 if (i != ($2))
2049 return 1;
2050 fprintf (f, "%lu", i);
2051 }
2052 /* Do not output a trailing newline, as this causes \r\n confusion
2053 on some platforms. */
2054 return ferror (f) || fclose (f) != 0;
2055
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_run "$LINENO"; then :
2061 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2062else
2063 ac_retval=1
2064fi
2065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2066 conftest.$ac_objext conftest.beam conftest.$ac_ext
2067rm -f conftest.val
2068
2069 fi
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2072
2073} # ac_fn_c_compute_int
2074
2075# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2076# ---------------------------------------------
2077# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2078# accordingly.
2079ac_fn_c_check_decl ()
2080{
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 as_decl_name=`echo $2|sed 's/ *(.*//'`
2083 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2085$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2086if eval \${$3+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090/* end confdefs.h. */
2091$4
2092int
2093main ()
2094{
2095#ifndef $as_decl_name
2096#ifdef __cplusplus
2097 (void) $as_decl_use;
2098#else
2099 (void) $as_decl_name;
2100#endif
2101#endif
2102
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$3=yes"
2109else
2110 eval "$3=no"
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113fi
2114eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116$as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119} # ac_fn_c_check_decl
2120
2121# ac_fn_c_check_func LINENO FUNC VAR
2122# ----------------------------------
2123# Tests whether FUNC exists, setting the cache variable VAR accordingly
2124ac_fn_c_check_func ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2128$as_echo_n "checking for $2... " >&6; }
2129if eval \${$3+:} false; then :
2130 $as_echo_n "(cached) " >&6
2131else
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2136#define $2 innocuous_$2
2137
2138/* System header to define __stub macros and hopefully few prototypes,
2139 which can conflict with char $2 (); below.
2140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2141 <limits.h> exists even on freestanding compilers. */
2142
2143#ifdef __STDC__
2144# include <limits.h>
2145#else
2146# include <assert.h>
2147#endif
2148
2149#undef $2
2150
2151/* Override any GCC internal prototype to avoid an error.
2152 Use char because int might match the return type of a GCC
2153 builtin and then its argument prototype would still apply. */
2154#ifdef __cplusplus
2155extern "C"
2156#endif
2157char $2 ();
2158/* The GNU C library defines this for functions which it implements
2159 to always fail with ENOSYS. Some functions are actually named
2160 something starting with __ and the normal name is an alias. */
2161#if defined __stub_$2 || defined __stub___$2
2162choke me
2163#endif
2164
2165int
2166main ()
2167{
2168return $2 ();
2169 ;
2170 return 0;
2171}
2172_ACEOF
2173if ac_fn_c_try_link "$LINENO"; then :
2174 eval "$3=yes"
2175else
2176 eval "$3=no"
2177fi
2178rm -f core conftest.err conftest.$ac_objext \
2179 conftest$ac_exeext conftest.$ac_ext
2180fi
2181eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183$as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185
2186} # ac_fn_c_check_func
2187
05ea2a05
TT
2188# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2189# ----------------------------------------------------
2190# Tries to find if the field MEMBER exists in type AGGR, after including
2191# INCLUDES, setting cache variable VAR accordingly.
2192ac_fn_c_check_member ()
2193{
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2196$as_echo_n "checking for $2.$3... " >&6; }
2197if eval \${$4+:} false; then :
2198 $as_echo_n "(cached) " >&6
2199else
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201/* end confdefs.h. */
2202$5
2203int
2204main ()
2205{
2206static $2 ac_aggr;
2207if (ac_aggr.$3)
2208return 0;
2209 ;
2210 return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"; then :
2214 eval "$4=yes"
2215else
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h. */
2218$5
2219int
2220main ()
2221{
2222static $2 ac_aggr;
2223if (sizeof ac_aggr.$3)
2224return 0;
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229if ac_fn_c_try_compile "$LINENO"; then :
2230 eval "$4=yes"
2231else
2232 eval "$4=no"
2233fi
2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237fi
2238eval ac_res=\$$4
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242
2243} # ac_fn_c_check_member
2244
01027315
TT
2245# ac_fn_cxx_try_link LINENO
2246# -------------------------
2247# Try to link conftest.$ac_ext, and return whether this succeeded.
2248ac_fn_cxx_try_link ()
2249{
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 rm -f conftest.$ac_objext conftest$ac_exeext
2252 if { { ac_try="$ac_link"
2253case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256esac
2257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258$as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>conftest.err
2260 ac_status=$?
2261 if test -s conftest.err; then
2262 grep -v '^ *+' conftest.err >conftest.er1
2263 cat conftest.er1 >&5
2264 mv -f conftest.er1 conftest.err
2265 fi
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; } && {
2268 test -z "$ac_cxx_werror_flag" ||
2269 test ! -s conftest.err
2270 } && test -s conftest$ac_exeext && {
2271 test "$cross_compiling" = yes ||
2272 test -x conftest$ac_exeext
2273 }; then :
2274 ac_retval=0
2275else
2276 $as_echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=1
2280fi
2281 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2282 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2283 # interfere with the next link command; also delete a directory that is
2284 # left behind by Apple's compiler. We do this before executing the actions.
2285 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2288
2289} # ac_fn_cxx_try_link
2290
2291# ac_fn_cxx_check_func LINENO FUNC VAR
2292# ------------------------------------
2293# Tests whether FUNC exists, setting the cache variable VAR accordingly
2294ac_fn_cxx_check_func ()
2295{
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2298$as_echo_n "checking for $2... " >&6; }
2299if eval \${$3+:} false; then :
2300 $as_echo_n "(cached) " >&6
2301else
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303/* end confdefs.h. */
2304/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2306#define $2 innocuous_$2
2307
2308/* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char $2 (); below.
2310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2311 <limits.h> exists even on freestanding compilers. */
2312
2313#ifdef __STDC__
2314# include <limits.h>
2315#else
2316# include <assert.h>
2317#endif
2318
2319#undef $2
2320
2321/* Override any GCC internal prototype to avoid an error.
2322 Use char because int might match the return type of a GCC
2323 builtin and then its argument prototype would still apply. */
2324#ifdef __cplusplus
2325extern "C"
2326#endif
2327char $2 ();
2328/* The GNU C library defines this for functions which it implements
2329 to always fail with ENOSYS. Some functions are actually named
2330 something starting with __ and the normal name is an alias. */
2331#if defined __stub_$2 || defined __stub___$2
2332choke me
2333#endif
2334
2335int
2336main ()
2337{
2338return $2 ();
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343if ac_fn_cxx_try_link "$LINENO"; then :
2344 eval "$3=yes"
2345else
2346 eval "$3=no"
2347fi
2348rm -f core conftest.err conftest.$ac_objext \
2349 conftest$ac_exeext conftest.$ac_ext
2350fi
2351eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353$as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355
2356} # ac_fn_cxx_check_func
2357cat >config.log <<_ACEOF
2358This file contains any messages produced by compilers while
2359running configure, to aid debugging if configure makes a mistake.
2360
2361It was created by gdbsupport $as_me 1.0, which was
2362generated by GNU Autoconf 2.69. Invocation command line was
2363
2364 $ $0 $@
2365
2366_ACEOF
2367exec 5>>config.log
2368{
2369cat <<_ASUNAME
2370## --------- ##
2371## Platform. ##
2372## --------- ##
2373
2374hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2375uname -m = `(uname -m) 2>/dev/null || echo unknown`
2376uname -r = `(uname -r) 2>/dev/null || echo unknown`
2377uname -s = `(uname -s) 2>/dev/null || echo unknown`
2378uname -v = `(uname -v) 2>/dev/null || echo unknown`
2379
2380/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2381/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2382
2383/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2384/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2385/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2386/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2387/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2388/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2389/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2390
2391_ASUNAME
2392
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 $as_echo "PATH: $as_dir"
2399 done
2400IFS=$as_save_IFS
2401
2402} >&5
2403
2404cat >&5 <<_ACEOF
2405
2406
2407## ----------- ##
2408## Core tests. ##
2409## ----------- ##
2410
2411_ACEOF
2412
2413
2414# Keep a trace of the command line.
2415# Strip out --no-create and --no-recursion so they do not pile up.
2416# Strip out --silent because we don't want to record it for future runs.
2417# Also quote any args containing shell meta-characters.
2418# Make two passes to allow for proper duplicate-argument suppression.
2419ac_configure_args=
2420ac_configure_args0=
2421ac_configure_args1=
2422ac_must_keep_next=false
2423for ac_pass in 1 2
2424do
2425 for ac_arg
2426 do
2427 case $ac_arg in
2428 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2430 | -silent | --silent | --silen | --sile | --sil)
2431 continue ;;
2432 *\'*)
2433 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 esac
2435 case $ac_pass in
2436 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2437 2)
2438 as_fn_append ac_configure_args1 " '$ac_arg'"
2439 if test $ac_must_keep_next = true; then
2440 ac_must_keep_next=false # Got value, back to normal.
2441 else
2442 case $ac_arg in
2443 *=* | --config-cache | -C | -disable-* | --disable-* \
2444 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2445 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2446 | -with-* | --with-* | -without-* | --without-* | --x)
2447 case "$ac_configure_args0 " in
2448 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2449 esac
2450 ;;
2451 -* ) ac_must_keep_next=true ;;
2452 esac
2453 fi
2454 as_fn_append ac_configure_args " '$ac_arg'"
2455 ;;
2456 esac
2457 done
2458done
2459{ ac_configure_args0=; unset ac_configure_args0;}
2460{ ac_configure_args1=; unset ac_configure_args1;}
2461
2462# When interrupted or exit'd, cleanup temporary files, and complete
2463# config.log. We remove comments because anyway the quotes in there
2464# would cause problems or look ugly.
2465# WARNING: Use '\'' to represent an apostrophe within the trap.
2466# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2467trap 'exit_status=$?
2468 # Save into config.log some information that might help in debugging.
2469 {
2470 echo
2471
2472 $as_echo "## ---------------- ##
2473## Cache variables. ##
2474## ---------------- ##"
2475 echo
2476 # The following way of writing the cache mishandles newlines in values,
2477(
2478 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2479 eval ac_val=\$$ac_var
2480 case $ac_val in #(
2481 *${as_nl}*)
2482 case $ac_var in #(
2483 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2484$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2485 esac
2486 case $ac_var in #(
2487 _ | IFS | as_nl) ;; #(
2488 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2489 *) { eval $ac_var=; unset $ac_var;} ;;
2490 esac ;;
2491 esac
2492 done
2493 (set) 2>&1 |
2494 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2495 *${as_nl}ac_space=\ *)
2496 sed -n \
2497 "s/'\''/'\''\\\\'\'''\''/g;
2498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2499 ;; #(
2500 *)
2501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2502 ;;
2503 esac |
2504 sort
2505)
2506 echo
2507
2508 $as_echo "## ----------------- ##
2509## Output variables. ##
2510## ----------------- ##"
2511 echo
2512 for ac_var in $ac_subst_vars
2513 do
2514 eval ac_val=\$$ac_var
2515 case $ac_val in
2516 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2517 esac
2518 $as_echo "$ac_var='\''$ac_val'\''"
2519 done | sort
2520 echo
2521
2522 if test -n "$ac_subst_files"; then
2523 $as_echo "## ------------------- ##
2524## File substitutions. ##
2525## ------------------- ##"
2526 echo
2527 for ac_var in $ac_subst_files
2528 do
2529 eval ac_val=\$$ac_var
2530 case $ac_val in
2531 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2532 esac
2533 $as_echo "$ac_var='\''$ac_val'\''"
2534 done | sort
2535 echo
2536 fi
2537
2538 if test -s confdefs.h; then
2539 $as_echo "## ----------- ##
2540## confdefs.h. ##
2541## ----------- ##"
2542 echo
2543 cat confdefs.h
2544 echo
2545 fi
2546 test "$ac_signal" != 0 &&
2547 $as_echo "$as_me: caught signal $ac_signal"
2548 $as_echo "$as_me: exit $exit_status"
2549 } >&5
2550 rm -f core *.core core.conftest.* &&
2551 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2552 exit $exit_status
2553' 0
2554for ac_signal in 1 2 13 15; do
2555 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2556done
2557ac_signal=0
2558
2559# confdefs.h avoids OS command line length limits that DEFS can exceed.
2560rm -f -r conftest* confdefs.h
2561
2562$as_echo "/* confdefs.h */" > confdefs.h
2563
2564# Predefined preprocessor variables.
2565
2566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE_NAME "$PACKAGE_NAME"
2568_ACEOF
2569
2570cat >>confdefs.h <<_ACEOF
2571#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2572_ACEOF
2573
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_VERSION "$PACKAGE_VERSION"
2576_ACEOF
2577
2578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_STRING "$PACKAGE_STRING"
2580_ACEOF
2581
2582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2584_ACEOF
2585
2586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_URL "$PACKAGE_URL"
2588_ACEOF
2589
2590
2591# Let the site file select an alternate cache file if it wants to.
2592# Prefer an explicitly selected file to automatically selected ones.
2593ac_site_file1=NONE
2594ac_site_file2=NONE
2595if test -n "$CONFIG_SITE"; then
2596 # We do not want a PATH search for config.site.
2597 case $CONFIG_SITE in #((
2598 -*) ac_site_file1=./$CONFIG_SITE;;
2599 */*) ac_site_file1=$CONFIG_SITE;;
2600 *) ac_site_file1=./$CONFIG_SITE;;
2601 esac
2602elif test "x$prefix" != xNONE; then
2603 ac_site_file1=$prefix/share/config.site
2604 ac_site_file2=$prefix/etc/config.site
2605else
2606 ac_site_file1=$ac_default_prefix/share/config.site
2607 ac_site_file2=$ac_default_prefix/etc/config.site
2608fi
2609for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2610do
2611 test "x$ac_site_file" = xNONE && continue
2612 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2614$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2615 sed 's/^/| /' "$ac_site_file" >&5
2616 . "$ac_site_file" \
2617 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619as_fn_error $? "failed to load site script $ac_site_file
2620See \`config.log' for more details" "$LINENO" 5; }
2621 fi
2622done
2623
2624if test -r "$cache_file"; then
2625 # Some versions of bash will fail to source /dev/null (special files
2626 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2627 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2629$as_echo "$as_me: loading cache $cache_file" >&6;}
2630 case $cache_file in
2631 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2632 *) . "./$cache_file";;
2633 esac
2634 fi
2635else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2637$as_echo "$as_me: creating cache $cache_file" >&6;}
2638 >$cache_file
2639fi
2640
05ea2a05
TT
2641as_fn_append ac_header_list " stdlib.h"
2642as_fn_append ac_header_list " unistd.h"
2643as_fn_append ac_header_list " sys/param.h"
01027315
TT
2644# Check that the precious variables saved in the cache have kept the same
2645# value.
2646ac_cache_corrupted=false
2647for ac_var in $ac_precious_vars; do
2648 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2649 eval ac_new_set=\$ac_env_${ac_var}_set
2650 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2651 eval ac_new_val=\$ac_env_${ac_var}_value
2652 case $ac_old_set,$ac_new_set in
2653 set,)
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2655$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2656 ac_cache_corrupted=: ;;
2657 ,set)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2659$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2660 ac_cache_corrupted=: ;;
2661 ,);;
2662 *)
2663 if test "x$ac_old_val" != "x$ac_new_val"; then
2664 # differences in whitespace do not lead to failure.
2665 ac_old_val_w=`echo x $ac_old_val`
2666 ac_new_val_w=`echo x $ac_new_val`
2667 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2669$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2670 ac_cache_corrupted=:
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2673$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2674 eval $ac_var=\$ac_old_val
2675 fi
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2677$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2679$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2680 fi;;
2681 esac
2682 # Pass precious variables to config.status.
2683 if test "$ac_new_set" = set; then
2684 case $ac_new_val in
2685 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2686 *) ac_arg=$ac_var=$ac_new_val ;;
2687 esac
2688 case " $ac_configure_args " in
2689 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2690 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2691 esac
2692 fi
2693done
2694if $ac_cache_corrupted; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2698$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2699 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2700fi
2701## -------------------- ##
2702## Main body of script. ##
2703## -------------------- ##
2704
2705ac_ext=c
2706ac_cpp='$CPP $CPPFLAGS'
2707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710
2711
2712
2713
2714
2715
2716ac_config_headers="$ac_config_headers support-config.h:config.in"
2717
2718ac_aux_dir=
2719for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2720 if test -f "$ac_dir/install-sh"; then
2721 ac_aux_dir=$ac_dir
2722 ac_install_sh="$ac_aux_dir/install-sh -c"
2723 break
2724 elif test -f "$ac_dir/install.sh"; then
2725 ac_aux_dir=$ac_dir
2726 ac_install_sh="$ac_aux_dir/install.sh -c"
2727 break
2728 elif test -f "$ac_dir/shtool"; then
2729 ac_aux_dir=$ac_dir
2730 ac_install_sh="$ac_aux_dir/shtool install -c"
2731 break
2732 fi
2733done
2734if test -z "$ac_aux_dir"; then
2735 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2736fi
2737
2738# These three variables are undocumented and unsupported,
2739# and are intended to be withdrawn in a future Autoconf release.
2740# They can cause serious problems if a builder's source tree is in a directory
2741# whose full name contains unusual characters.
2742ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2743ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2744ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2745
2746
2747# Make sure we can run config.sub.
2748$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2749 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2750
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2752$as_echo_n "checking build system type... " >&6; }
2753if ${ac_cv_build+:} false; then :
2754 $as_echo_n "(cached) " >&6
2755else
2756 ac_build_alias=$build_alias
2757test "x$ac_build_alias" = x &&
2758 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2759test "x$ac_build_alias" = x &&
2760 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2761ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2763
2764fi
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2766$as_echo "$ac_cv_build" >&6; }
2767case $ac_cv_build in
2768*-*-*) ;;
2769*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2770esac
2771build=$ac_cv_build
2772ac_save_IFS=$IFS; IFS='-'
2773set x $ac_cv_build
2774shift
2775build_cpu=$1
2776build_vendor=$2
2777shift; shift
2778# Remember, the first character of IFS is used to create $*,
2779# except with old shells:
2780build_os=$*
2781IFS=$ac_save_IFS
2782case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2783
2784
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2786$as_echo_n "checking host system type... " >&6; }
2787if ${ac_cv_host+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789else
2790 if test "x$host_alias" = x; then
2791 ac_cv_host=$ac_cv_build
2792else
2793 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2794 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2795fi
2796
2797fi
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2799$as_echo "$ac_cv_host" >&6; }
2800case $ac_cv_host in
2801*-*-*) ;;
2802*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2803esac
2804host=$ac_cv_host
2805ac_save_IFS=$IFS; IFS='-'
2806set x $ac_cv_host
2807shift
2808host_cpu=$1
2809host_vendor=$2
2810shift; shift
2811# Remember, the first character of IFS is used to create $*,
2812# except with old shells:
2813host_os=$*
2814IFS=$ac_save_IFS
2815case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2816
2817
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2819$as_echo_n "checking target system type... " >&6; }
2820if ${ac_cv_target+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822else
2823 if test "x$target_alias" = x; then
2824 ac_cv_target=$ac_cv_host
2825else
2826 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2828fi
2829
2830fi
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2832$as_echo "$ac_cv_target" >&6; }
2833case $ac_cv_target in
2834*-*-*) ;;
2835*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2836esac
2837target=$ac_cv_target
2838ac_save_IFS=$IFS; IFS='-'
2839set x $ac_cv_target
2840shift
2841target_cpu=$1
2842target_vendor=$2
2843shift; shift
2844# Remember, the first character of IFS is used to create $*,
2845# except with old shells:
2846target_os=$*
2847IFS=$ac_save_IFS
2848case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2849
2850
2851# The aliases save the names the user supplied, while $host etc.
2852# will get canonicalized.
2853test -n "$target_alias" &&
2854 test "$program_prefix$program_suffix$program_transform_name" = \
2855 NONENONEs,x,x, &&
2856 program_prefix=${target_alias}-
2857
2858
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2860$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2861 # Check whether --enable-maintainer-mode was given.
2862if test "${enable_maintainer_mode+set}" = set; then :
2863 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2864else
2865 USE_MAINTAINER_MODE=no
2866fi
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2869$as_echo "$USE_MAINTAINER_MODE" >&6; }
2870 if test $USE_MAINTAINER_MODE = yes; then
2871 MAINTAINER_MODE_TRUE=
2872 MAINTAINER_MODE_FALSE='#'
2873else
2874 MAINTAINER_MODE_TRUE='#'
2875 MAINTAINER_MODE_FALSE=
2876fi
2877
2878 MAINT=$MAINTAINER_MODE_TRUE
2879
2880
2881ac_aux_dir=
2882for ac_dir in .. "$srcdir"/..; do
2883 if test -f "$ac_dir/install-sh"; then
2884 ac_aux_dir=$ac_dir
2885 ac_install_sh="$ac_aux_dir/install-sh -c"
2886 break
2887 elif test -f "$ac_dir/install.sh"; then
2888 ac_aux_dir=$ac_dir
2889 ac_install_sh="$ac_aux_dir/install.sh -c"
2890 break
2891 elif test -f "$ac_dir/shtool"; then
2892 ac_aux_dir=$ac_dir
2893 ac_install_sh="$ac_aux_dir/shtool install -c"
2894 break
2895 fi
2896done
2897if test -z "$ac_aux_dir"; then
2898 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2899fi
2900
2901# These three variables are undocumented and unsupported,
2902# and are intended to be withdrawn in a future Autoconf release.
2903# They can cause serious problems if a builder's source tree is in a directory
2904# whose full name contains unusual characters.
2905ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2906ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2907ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2908
2909
2910am__api_version='1.15'
2911
2912# Find a good install program. We prefer a C program (faster),
2913# so one script is as good as another. But avoid the broken or
2914# incompatible versions:
2915# SysV /etc/install, /usr/sbin/install
2916# SunOS /usr/etc/install
2917# IRIX /sbin/install
2918# AIX /bin/install
2919# AmigaOS /C/install, which installs bootblocks on floppy discs
2920# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2921# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2922# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2923# OS/2's system install, which has a completely different semantic
2924# ./install, which can be erroneously created by make from ./install.sh.
2925# Reject install programs that cannot install multiple files.
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2927$as_echo_n "checking for a BSD-compatible install... " >&6; }
2928if test -z "$INSTALL"; then
2929if ${ac_cv_path_install+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 # Account for people who put trailing slashes in PATH elements.
2938case $as_dir/ in #((
2939 ./ | .// | /[cC]/* | \
2940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2941 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2942 /usr/ucb/* ) ;;
2943 *)
2944 # OSF1 and SCO ODT 3.0 have their own names for install.
2945 # Don't use installbsd from OSF since it installs stuff as root
2946 # by default.
2947 for ac_prog in ginstall scoinst install; do
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2950 if test $ac_prog = install &&
2951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2952 # AIX install. It has an incompatible calling convention.
2953 :
2954 elif test $ac_prog = install &&
2955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2956 # program-specific install script used by HP pwplus--don't use.
2957 :
2958 else
2959 rm -rf conftest.one conftest.two conftest.dir
2960 echo one > conftest.one
2961 echo two > conftest.two
2962 mkdir conftest.dir
2963 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2964 test -s conftest.one && test -s conftest.two &&
2965 test -s conftest.dir/conftest.one &&
2966 test -s conftest.dir/conftest.two
2967 then
2968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2969 break 3
2970 fi
2971 fi
2972 fi
2973 done
2974 done
2975 ;;
2976esac
2977
2978 done
2979IFS=$as_save_IFS
2980
2981rm -rf conftest.one conftest.two conftest.dir
2982
2983fi
2984 if test "${ac_cv_path_install+set}" = set; then
2985 INSTALL=$ac_cv_path_install
2986 else
2987 # As a last resort, use the slow shell script. Don't cache a
2988 # value for INSTALL within a source directory, because that will
2989 # break other packages using the cache if that directory is
2990 # removed, or if the value is a relative name.
2991 INSTALL=$ac_install_sh
2992 fi
2993fi
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2995$as_echo "$INSTALL" >&6; }
2996
2997# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2998# It thinks the first close brace ends the variable substitution.
2999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3000
3001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3002
3003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3006$as_echo_n "checking whether build environment is sane... " >&6; }
3007# Reject unsafe characters in $srcdir or the absolute working directory
3008# name. Accept space and tab only in the latter.
3009am_lf='
3010'
3011case `pwd` in
3012 *[\\\"\#\$\&\'\`$am_lf]*)
3013 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3014esac
3015case $srcdir in
3016 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3017 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3018esac
3019
3020# Do 'set' in a subshell so we don't clobber the current shell's
3021# arguments. Must try -L first in case configure is actually a
3022# symlink; some systems play weird games with the mod time of symlinks
3023# (eg FreeBSD returns the mod time of the symlink's containing
3024# directory).
3025if (
3026 am_has_slept=no
3027 for am_try in 1 2; do
3028 echo "timestamp, slept: $am_has_slept" > conftest.file
3029 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3030 if test "$*" = "X"; then
3031 # -L didn't work.
3032 set X `ls -t "$srcdir/configure" conftest.file`
3033 fi
3034 if test "$*" != "X $srcdir/configure conftest.file" \
3035 && test "$*" != "X conftest.file $srcdir/configure"; then
3036
3037 # If neither matched, then we have a broken ls. This can happen
3038 # if, for instance, CONFIG_SHELL is bash and it inherits a
3039 # broken ls alias from the environment. This has actually
3040 # happened. Such a system could not be considered "sane".
3041 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3042 alias in your environment" "$LINENO" 5
3043 fi
3044 if test "$2" = conftest.file || test $am_try -eq 2; then
3045 break
3046 fi
3047 # Just in case.
3048 sleep 1
3049 am_has_slept=yes
3050 done
3051 test "$2" = conftest.file
3052 )
3053then
3054 # Ok.
3055 :
3056else
3057 as_fn_error $? "newly created file is older than distributed files!
3058Check your system clock" "$LINENO" 5
3059fi
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3061$as_echo "yes" >&6; }
3062# If we didn't sleep, we still need to ensure time stamps of config.status and
3063# generated files are strictly newer.
3064am_sleep_pid=
3065if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3066 ( sleep 1 ) &
3067 am_sleep_pid=$!
3068fi
3069
3070rm -f conftest.file
3071
3072test "$program_prefix" != NONE &&
3073 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3074# Use a double $ so make ignores it.
3075test "$program_suffix" != NONE &&
3076 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3077# Double any \ or $.
3078# By default was `s,x,x', remove it if useless.
3079ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3080program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3081
3082# Expand $ac_aux_dir to an absolute path.
3083am_aux_dir=`cd "$ac_aux_dir" && pwd`
3084
3085if test x"${MISSING+set}" != xset; then
3086 case $am_aux_dir in
3087 *\ * | *\ *)
3088 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3089 *)
3090 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3091 esac
3092fi
3093# Use eval to expand $SHELL
3094if eval "$MISSING --is-lightweight"; then
3095 am_missing_run="$MISSING "
3096else
3097 am_missing_run=
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3099$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3100fi
3101
3102if test x"${install_sh+set}" != xset; then
3103 case $am_aux_dir in
3104 *\ * | *\ *)
3105 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3106 *)
3107 install_sh="\${SHELL} $am_aux_dir/install-sh"
3108 esac
3109fi
3110
3111# Installed binaries are usually stripped using 'strip' when the user
3112# run "make install-strip". However 'strip' might not be the right
3113# tool to use in cross-compilation environments, therefore Automake
3114# will honor the 'STRIP' environment variable to overrule this program.
3115if test "$cross_compiling" != no; then
3116 if test -n "$ac_tool_prefix"; then
3117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3118set dummy ${ac_tool_prefix}strip; ac_word=$2
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120$as_echo_n "checking for $ac_word... " >&6; }
3121if ${ac_cv_prog_STRIP+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123else
3124 if test -n "$STRIP"; then
3125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138done
3139 done
3140IFS=$as_save_IFS
3141
3142fi
3143fi
3144STRIP=$ac_cv_prog_STRIP
3145if test -n "$STRIP"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3147$as_echo "$STRIP" >&6; }
3148else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150$as_echo "no" >&6; }
3151fi
3152
3153
3154fi
3155if test -z "$ac_cv_prog_STRIP"; then
3156 ac_ct_STRIP=$STRIP
3157 # Extract the first word of "strip", so it can be a program name with args.
3158set dummy strip; ac_word=$2
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160$as_echo_n "checking for $ac_word... " >&6; }
3161if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163else
3164 if test -n "$ac_ct_STRIP"; then
3165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3166else
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_ac_ct_STRIP="strip"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178done
3179 done
3180IFS=$as_save_IFS
3181
3182fi
3183fi
3184ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3185if test -n "$ac_ct_STRIP"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3187$as_echo "$ac_ct_STRIP" >&6; }
3188else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191fi
3192
3193 if test "x$ac_ct_STRIP" = x; then
3194 STRIP=":"
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197yes:)
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200ac_tool_warned=yes ;;
3201esac
3202 STRIP=$ac_ct_STRIP
3203 fi
3204else
3205 STRIP="$ac_cv_prog_STRIP"
3206fi
3207
3208fi
3209INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3210
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3212$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3213if test -z "$MKDIR_P"; then
3214 if ${ac_cv_path_mkdir+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_prog in mkdir gmkdir; do
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3226 'mkdir (GNU coreutils) '* | \
3227 'mkdir (coreutils) '* | \
3228 'mkdir (fileutils) '4.1*)
3229 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3230 break 3;;
3231 esac
3232 done
3233 done
3234 done
3235IFS=$as_save_IFS
3236
3237fi
3238
3239 test -d ./--version && rmdir ./--version
3240 if test "${ac_cv_path_mkdir+set}" = set; then
3241 MKDIR_P="$ac_cv_path_mkdir -p"
3242 else
3243 # As a last resort, use the slow shell script. Don't cache a
3244 # value for MKDIR_P within a source directory, because that will
3245 # break other packages using the cache if that directory is
3246 # removed, or if the value is a relative name.
3247 MKDIR_P="$ac_install_sh -d"
3248 fi
3249fi
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3251$as_echo "$MKDIR_P" >&6; }
3252
3253for ac_prog in gawk mawk nawk awk
3254do
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256set dummy $ac_prog; ac_word=$2
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258$as_echo_n "checking for $ac_word... " >&6; }
3259if ${ac_cv_prog_AWK+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261else
3262 if test -n "$AWK"; then
3263 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3264else
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_AWK="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276done
3277 done
3278IFS=$as_save_IFS
3279
3280fi
3281fi
3282AWK=$ac_cv_prog_AWK
3283if test -n "$AWK"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3285$as_echo "$AWK" >&6; }
3286else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288$as_echo "no" >&6; }
3289fi
3290
3291
3292 test -n "$AWK" && break
3293done
3294
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3296$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3297set x ${MAKE-make}
3298ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3299if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301else
3302 cat >conftest.make <<\_ACEOF
3303SHELL = /bin/sh
3304all:
3305 @echo '@@@%%%=$(MAKE)=@@@%%%'
3306_ACEOF
3307# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3308case `${MAKE-make} -f conftest.make 2>/dev/null` in
3309 *@@@%%%=?*=@@@%%%*)
3310 eval ac_cv_prog_make_${ac_make}_set=yes;;
3311 *)
3312 eval ac_cv_prog_make_${ac_make}_set=no;;
3313esac
3314rm -f conftest.make
3315fi
3316if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318$as_echo "yes" >&6; }
3319 SET_MAKE=
3320else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323 SET_MAKE="MAKE=${MAKE-make}"
3324fi
3325
3326rm -rf .tst 2>/dev/null
3327mkdir .tst 2>/dev/null
3328if test -d .tst; then
3329 am__leading_dot=.
3330else
3331 am__leading_dot=_
3332fi
3333rmdir .tst 2>/dev/null
3334
3335# Check whether --enable-silent-rules was given.
3336if test "${enable_silent_rules+set}" = set; then :
3337 enableval=$enable_silent_rules;
3338fi
3339
3340case $enable_silent_rules in # (((
3341 yes) AM_DEFAULT_VERBOSITY=0;;
3342 no) AM_DEFAULT_VERBOSITY=1;;
3343 *) AM_DEFAULT_VERBOSITY=1;;
3344esac
3345am_make=${MAKE-make}
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3347$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3348if ${am_cv_make_support_nested_variables+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350else
3351 if $as_echo 'TRUE=$(BAR$(V))
3352BAR0=false
3353BAR1=true
3354V=1
3355am__doit:
3356 @$(TRUE)
3357.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3358 am_cv_make_support_nested_variables=yes
3359else
3360 am_cv_make_support_nested_variables=no
3361fi
3362fi
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3364$as_echo "$am_cv_make_support_nested_variables" >&6; }
3365if test $am_cv_make_support_nested_variables = yes; then
3366 AM_V='$(V)'
3367 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3368else
3369 AM_V=$AM_DEFAULT_VERBOSITY
3370 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3371fi
3372AM_BACKSLASH='\'
3373
3374if test "`cd $srcdir && pwd`" != "`pwd`"; then
3375 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3376 # is not polluted with repeated "-I."
3377 am__isrc=' -I$(srcdir)'
3378 # test to see if srcdir already configured
3379 if test -f $srcdir/config.status; then
3380 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3381 fi
3382fi
3383
3384# test whether we have cygpath
3385if test -z "$CYGPATH_W"; then
3386 if (cygpath --version) >/dev/null 2>/dev/null; then
3387 CYGPATH_W='cygpath -w'
3388 else
3389 CYGPATH_W=echo
3390 fi
3391fi
3392
3393
3394# Define the identity of the package.
3395 PACKAGE='gdbsupport'
3396 VERSION='1.0'
3397
3398
3399cat >>confdefs.h <<_ACEOF
3400#define PACKAGE "$PACKAGE"
3401_ACEOF
3402
3403
3404cat >>confdefs.h <<_ACEOF
3405#define VERSION "$VERSION"
3406_ACEOF
3407
3408# Some tools Automake needs.
3409
3410ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3411
3412
3413AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3414
3415
3416AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3417
3418
3419AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3420
3421
3422MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3423
3424# For better backward compatibility. To be removed once Automake 1.9.x
3425# dies out for good. For more background, see:
3426# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3427# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3428mkdir_p='$(MKDIR_P)'
3429
3430# We need awk for the "check" target (and possibly the TAP driver). The
3431# system "awk" is bad on some platforms.
3432# Always define AMTAR for backward compatibility. Yes, it's still used
3433# in the wild :-( We should find a proper way to deprecate it ...
3434AMTAR='$${TAR-tar}'
3435
3436
3437# We'll loop over all known methods to create a tar archive until one works.
3438_am_tools='gnutar pax cpio none'
3439
3440am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3441
3442
3443
3444
3445
3446
3447# POSIX will say in a future version that running "rm -f" with no argument
3448# is OK; and we want to be able to make that assumption in our Makefile
3449# recipes. So use an aggressive probe to check that the usage we want is
3450# actually supported "in the wild" to an acceptable degree.
3451# See automake bug#10828.
3452# To make any issue more visible, cause the running configure to be aborted
3453# by default if the 'rm' program in use doesn't match our expectations; the
3454# user can still override this though.
3455if rm -f && rm -fr && rm -rf; then : OK; else
3456 cat >&2 <<'END'
3457Oops!
3458
3459Your 'rm' program seems unable to run without file operands specified
3460on the command line, even when the '-f' option is present. This is contrary
3461to the behaviour of most rm programs out there, and not conforming with
3462the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3463
3464Please tell bug-automake@gnu.org about your system, including the value
3465of your $PATH and any error possibly output before this message. This
3466can help us improve future automake versions.
3467
3468END
3469 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3470 echo 'Configuration will proceed anyway, since you have set the' >&2
3471 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3472 echo >&2
3473 else
3474 cat >&2 <<'END'
3475Aborting the configuration process, to ensure you take notice of the issue.
3476
3477You can download and install GNU coreutils to get an 'rm' implementation
3478that behaves properly: <http://www.gnu.org/software/coreutils/>.
3479
3480If you want to complete the configuration process using your problematic
3481'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3482to "yes", and re-run configure.
3483
3484END
3485 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3486 fi
3487fi
3488
3489# Check whether --enable-silent-rules was given.
3490if test "${enable_silent_rules+set}" = set; then :
3491 enableval=$enable_silent_rules;
3492fi
3493
3494case $enable_silent_rules in # (((
3495 yes) AM_DEFAULT_VERBOSITY=0;;
3496 no) AM_DEFAULT_VERBOSITY=1;;
3497 *) AM_DEFAULT_VERBOSITY=0;;
3498esac
3499am_make=${MAKE-make}
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3501$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3502if ${am_cv_make_support_nested_variables+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504else
3505 if $as_echo 'TRUE=$(BAR$(V))
3506BAR0=false
3507BAR1=true
3508V=1
3509am__doit:
3510 @$(TRUE)
3511.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3512 am_cv_make_support_nested_variables=yes
3513else
3514 am_cv_make_support_nested_variables=no
3515fi
3516fi
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3518$as_echo "$am_cv_make_support_nested_variables" >&6; }
3519if test $am_cv_make_support_nested_variables = yes; then
3520 AM_V='$(V)'
3521 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3522else
3523 AM_V=$AM_DEFAULT_VERBOSITY
3524 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3525fi
3526AM_BACKSLASH='\'
3527
3528
3529ac_ext=c
3530ac_cpp='$CPP $CPPFLAGS'
3531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536set dummy ${ac_tool_prefix}gcc; ac_word=$2
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538$as_echo_n "checking for $ac_word... " >&6; }
3539if ${ac_cv_prog_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3541else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544else
3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3547do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556done
3557 done
3558IFS=$as_save_IFS
3559
3560fi
3561fi
3562CC=$ac_cv_prog_CC
3563if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565$as_echo "$CC" >&6; }
3566else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569fi
3570
3571
3572fi
3573if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576set dummy gcc; ac_word=$2
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578$as_echo_n "checking for $ac_word... " >&6; }
3579if ${ac_cv_prog_ac_ct_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581else
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_ac_ct_CC="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596done
3597 done
3598IFS=$as_save_IFS
3599
3600fi
3601fi
3602ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605$as_echo "$ac_ct_CC" >&6; }
3606else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608$as_echo "no" >&6; }
3609fi
3610
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615yes:)
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618ac_tool_warned=yes ;;
3619esac
3620 CC=$ac_ct_CC
3621 fi
3622else
3623 CC="$ac_cv_prog_CC"
3624fi
3625
3626if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629set dummy ${ac_tool_prefix}cc; ac_word=$2
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631$as_echo_n "checking for $ac_word... " >&6; }
3632if ${ac_cv_prog_CC+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637else
3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639for as_dir in $PATH
3640do
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_prog_CC="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3648 fi
3649done
3650 done
3651IFS=$as_save_IFS
3652
3653fi
3654fi
3655CC=$ac_cv_prog_CC
3656if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658$as_echo "$CC" >&6; }
3659else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661$as_echo "no" >&6; }
3662fi
3663
3664
3665 fi
3666fi
3667if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669set dummy cc; ac_word=$2
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671$as_echo_n "checking for $ac_word... " >&6; }
3672if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677else
3678 ac_prog_rejected=no
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH
3681do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected=yes
3688 continue
3689 fi
3690 ac_cv_prog_CC="cc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694done
3695 done
3696IFS=$as_save_IFS
3697
3698if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy $ac_cv_prog_CC
3701 shift
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3706 shift
3707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3708 fi
3709fi
3710fi
3711fi
3712CC=$ac_cv_prog_CC
3713if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715$as_echo "$CC" >&6; }
3716else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718$as_echo "no" >&6; }
3719fi
3720
3721
3722fi
3723if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog in cl.exe
3726 do
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730$as_echo_n "checking for $ac_word... " >&6; }
3731if ${ac_cv_prog_CC+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736else
3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH
3739do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748done
3749 done
3750IFS=$as_save_IFS
3751
3752fi
3753fi
3754CC=$ac_cv_prog_CC
3755if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757$as_echo "$CC" >&6; }
3758else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
3761fi
3762
3763
3764 test -n "$CC" && break
3765 done
3766fi
3767if test -z "$CC"; then
3768 ac_ct_CC=$CC
3769 for ac_prog in cl.exe
3770do
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772set dummy $ac_prog; ac_word=$2
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774$as_echo_n "checking for $ac_word... " >&6; }
3775if ${ac_cv_prog_ac_ct_CC+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780else
3781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_prog_ac_ct_CC="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3791 fi
3792done
3793 done
3794IFS=$as_save_IFS
3795
3796fi
3797fi
3798ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801$as_echo "$ac_ct_CC" >&6; }
3802else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804$as_echo "no" >&6; }
3805fi
3806
3807
3808 test -n "$ac_ct_CC" && break
3809done
3810
3811 if test "x$ac_ct_CC" = x; then
3812 CC=""
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815yes:)
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818ac_tool_warned=yes ;;
3819esac
3820 CC=$ac_ct_CC
3821 fi
3822fi
3823
3824fi
3825
3826
3827test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829as_fn_error $? "no acceptable C compiler found in \$PATH
3830See \`config.log' for more details" "$LINENO" 5; }
3831
3832# Provide some information about the compiler.
3833$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834set X $ac_compile
3835ac_compiler=$2
3836for ac_option in --version -v -V -qversion; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3838case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841esac
3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843$as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 ac_status=$?
3846 if test -s conftest.err; then
3847 sed '10a\
3848... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 fi
3852 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855done
3856
3857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
3868ac_clean_files_save=$ac_clean_files
3869ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3870# Try to create an executable without -o first, disregard a.out.
3871# It will help us diagnose broken compilers, and finding out an intuition
3872# of exeext.
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3874$as_echo_n "checking whether the C compiler works... " >&6; }
3875ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3876
3877# The possible output files:
3878ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3879
3880ac_rmfiles=
3881for ac_file in $ac_files
3882do
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886 esac
3887done
3888rm -f $ac_rmfiles
3889
3890if { { ac_try="$ac_link_default"
3891case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894esac
3895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896$as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903# in a Makefile. We should not override ac_cv_exeext if it was cached,
3904# so that the user can short-circuit this test for compilers unknown to
3905# Autoconf.
3906for ac_file in $ac_files ''
3907do
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3911 ;;
3912 [ab].out )
3913 # We found the default executable, but exeext='' is most
3914 # certainly right.
3915 break;;
3916 *.* )
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918 then :; else
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920 fi
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3925 # actually working.
3926 break;;
3927 * )
3928 break;;
3929 esac
3930done
3931test "$ac_cv_exeext" = no && ac_cv_exeext=
3932
3933else
3934 ac_file=''
3935fi
3936if test -z "$ac_file"; then :
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
3939$as_echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944as_fn_error 77 "C compiler cannot create executables
3945See \`config.log' for more details" "$LINENO" 5; }
3946else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3948$as_echo "yes" >&6; }
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3951$as_echo_n "checking for C compiler default output file name... " >&6; }
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3953$as_echo "$ac_file" >&6; }
3954ac_exeext=$ac_cv_exeext
3955
3956rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3957ac_clean_files=$ac_clean_files_save
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3959$as_echo_n "checking for suffix of executables... " >&6; }
3960if { { ac_try="$ac_link"
3961case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964esac
3965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966$as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_link") 2>&5
3968 ac_status=$?
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; then :
3971 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3972# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3973# work properly (i.e., refer to `conftest.exe'), while it won't with
3974# `rm'.
3975for ac_file in conftest.exe conftest conftest.*; do
3976 test -f "$ac_file" || continue
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980 break;;
3981 * ) break;;
3982 esac
3983done
3984else
3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3988See \`config.log' for more details" "$LINENO" 5; }
3989fi
3990rm -f conftest conftest$ac_cv_exeext
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3992$as_echo "$ac_cv_exeext" >&6; }
3993
3994rm -f conftest.$ac_ext
3995EXEEXT=$ac_cv_exeext
3996ac_exeext=$EXEEXT
3997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h. */
3999#include <stdio.h>
4000int
4001main ()
4002{
4003FILE *f = fopen ("conftest.out", "w");
4004 return ferror (f) || fclose (f) != 0;
4005
4006 ;
4007 return 0;
4008}
4009_ACEOF
4010ac_clean_files="$ac_clean_files conftest.out"
4011# Check that the compiler produces executables we can run. If not, either
4012# the compiler is broken, or we cross compile.
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4014$as_echo_n "checking whether we are cross compiling... " >&6; }
4015if test "$cross_compiling" != yes; then
4016 { { ac_try="$ac_link"
4017case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020esac
4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022$as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_link") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }
4027 if { ac_try='./conftest$ac_cv_exeext'
4028 { { case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031esac
4032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033$as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_try") 2>&5
4035 ac_status=$?
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; }; then
4038 cross_compiling=no
4039 else
4040 if test "$cross_compiling" = maybe; then
4041 cross_compiling=yes
4042 else
4043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045as_fn_error $? "cannot run C compiled programs.
4046If you meant to cross compile, use \`--host'.
4047See \`config.log' for more details" "$LINENO" 5; }
4048 fi
4049 fi
4050fi
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4052$as_echo "$cross_compiling" >&6; }
4053
4054rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4055ac_clean_files=$ac_clean_files_save
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4057$as_echo_n "checking for suffix of object files... " >&6; }
4058if ${ac_cv_objext+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h. */
4063
4064int
4065main ()
4066{
4067
4068 ;
4069 return 0;
4070}
4071_ACEOF
4072rm -f conftest.o conftest.obj
4073if { { ac_try="$ac_compile"
4074case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079$as_echo "$ac_try_echo"; } >&5
4080 (eval "$ac_compile") 2>&5
4081 ac_status=$?
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }; then :
4084 for ac_file in conftest.o conftest.obj conftest.*; do
4085 test -f "$ac_file" || continue;
4086 case $ac_file in
4087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4088 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4089 break;;
4090 esac
4091done
4092else
4093 $as_echo "$as_me: failed program was:" >&5
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
4096{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098as_fn_error $? "cannot compute suffix of object files: cannot compile
4099See \`config.log' for more details" "$LINENO" 5; }
4100fi
4101rm -f conftest.$ac_cv_objext conftest.$ac_ext
4102fi
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4104$as_echo "$ac_cv_objext" >&6; }
4105OBJEXT=$ac_cv_objext
4106ac_objext=$OBJEXT
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4108$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4109if ${ac_cv_c_compiler_gnu+:} false; then :
4110 $as_echo_n "(cached) " >&6
4111else
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h. */
4114
4115int
4116main ()
4117{
4118#ifndef __GNUC__
4119 choke me
4120#endif
4121
4122 ;
4123 return 0;
4124}
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_compiler_gnu=yes
4128else
4129 ac_compiler_gnu=no
4130fi
4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132ac_cv_c_compiler_gnu=$ac_compiler_gnu
4133
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4136$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4137if test $ac_compiler_gnu = yes; then
4138 GCC=yes
4139else
4140 GCC=
4141fi
4142ac_test_CFLAGS=${CFLAGS+set}
4143ac_save_CFLAGS=$CFLAGS
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4145$as_echo_n "checking whether $CC accepts -g... " >&6; }
4146if ${ac_cv_prog_cc_g+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148else
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 ac_cv_prog_cc_g=no
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h. */
4155
4156int
4157main ()
4158{
4159
4160 ;
4161 return 0;
4162}
4163_ACEOF
4164if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_cv_prog_cc_g=yes
4166else
4167 CFLAGS=""
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h. */
4170
4171int
4172main ()
4173{
4174
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179if ac_fn_c_try_compile "$LINENO"; then :
4180
4181else
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4183 CFLAGS="-g"
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h. */
4186
4187int
4188main ()
4189{
4190
4191 ;
4192 return 0;
4193}
4194_ACEOF
4195if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_g=yes
4197fi
4198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199fi
4200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201fi
4202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_c_werror_flag=$ac_save_c_werror_flag
4204fi
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206$as_echo "$ac_cv_prog_cc_g" >&6; }
4207if test "$ac_test_CFLAGS" = set; then
4208 CFLAGS=$ac_save_CFLAGS
4209elif test $ac_cv_prog_cc_g = yes; then
4210 if test "$GCC" = yes; then
4211 CFLAGS="-g -O2"
4212 else
4213 CFLAGS="-g"
4214 fi
4215else
4216 if test "$GCC" = yes; then
4217 CFLAGS="-O2"
4218 else
4219 CFLAGS=
4220 fi
4221fi
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4223$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4224if ${ac_cv_prog_cc_c89+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226else
4227 ac_cv_prog_cc_c89=no
4228ac_save_CC=$CC
4229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h. */
4231#include <stdarg.h>
4232#include <stdio.h>
4233struct stat;
4234/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4235struct buf { int x; };
4236FILE * (*rcsopen) (struct buf *, struct stat *, int);
4237static char *e (p, i)
4238 char **p;
4239 int i;
4240{
4241 return p[i];
4242}
4243static char *f (char * (*g) (char **, int), char **p, ...)
4244{
4245 char *s;
4246 va_list v;
4247 va_start (v,p);
4248 s = g (p, va_arg (v,int));
4249 va_end (v);
4250 return s;
4251}
4252
4253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4254 function prototypes and stuff, but not '\xHH' hex character constants.
4255 These don't provoke an error unfortunately, instead are silently treated
4256 as 'x'. The following induces an error, until -std is added to get
4257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4258 array size at least. It's necessary to write '\x00'==0 to get something
4259 that's true only with -std. */
4260int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4261
4262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4263 inside strings and character constants. */
4264#define FOO(x) 'x'
4265int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4266
4267int test (int i, double x);
4268struct s1 {int (*f) (int a);};
4269struct s2 {int (*f) (double a);};
4270int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4271int argc;
4272char **argv;
4273int
4274main ()
4275{
4276return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4277 ;
4278 return 0;
4279}
4280_ACEOF
4281for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4283do
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"; then :
4286 ac_cv_prog_cc_c89=$ac_arg
4287fi
4288rm -f core conftest.err conftest.$ac_objext
4289 test "x$ac_cv_prog_cc_c89" != "xno" && break
4290done
4291rm -f conftest.$ac_ext
4292CC=$ac_save_CC
4293
4294fi
4295# AC_CACHE_VAL
4296case "x$ac_cv_prog_cc_c89" in
4297 x)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4299$as_echo "none needed" >&6; } ;;
4300 xno)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302$as_echo "unsupported" >&6; } ;;
4303 *)
4304 CC="$CC $ac_cv_prog_cc_c89"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4306$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4307esac
4308if test "x$ac_cv_prog_cc_c89" != xno; then :
4309
4310fi
4311
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318ac_ext=c
4319ac_cpp='$CPP $CPPFLAGS'
4320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4324$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4325if ${am_cv_prog_cc_c_o+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327else
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h. */
4330
4331int
4332main ()
4333{
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339 # Make sure it works both with $CC and with simple cc.
4340 # Following AC_PROG_CC_C_O, we do the test twice because some
4341 # compilers refuse to overwrite an existing .o file with -o,
4342 # though they will create one.
4343 am_cv_prog_cc_c_o=yes
4344 for am_i in 1 2; do
4345 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4346 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } \
4350 && test -f conftest2.$ac_objext; then
4351 : OK
4352 else
4353 am_cv_prog_cc_c_o=no
4354 break
4355 fi
4356 done
4357 rm -f core conftest*
4358 unset am_i
4359fi
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4361$as_echo "$am_cv_prog_cc_c_o" >&6; }
4362if test "$am_cv_prog_cc_c_o" != yes; then
4363 # Losing compiler, so override with the script.
4364 # FIXME: It is wrong to rewrite CC.
4365 # But if we don't then we get into trouble of one sort or another.
4366 # A longer-term fix would be to have automake use am__CC in this case,
4367 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4368 CC="$am_aux_dir/compile $CC"
4369fi
4370ac_ext=c
4371ac_cpp='$CPP $CPPFLAGS'
4372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4374ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375
4376DEPDIR="${am__leading_dot}deps"
4377
4378ac_config_commands="$ac_config_commands depfiles"
4379
4380
4381am_make=${MAKE-make}
4382cat > confinc << 'END'
4383am__doit:
4384 @echo this is the am__doit target
4385.PHONY: am__doit
4386END
4387# If we don't find an include directive, just comment out the code.
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4389$as_echo_n "checking for style of include used by $am_make... " >&6; }
4390am__include="#"
4391am__quote=
4392_am_result=none
4393# First try GNU make style include.
4394echo "include confinc" > confmf
4395# Ignore all kinds of additional output from 'make'.
4396case `$am_make -s -f confmf 2> /dev/null` in #(
4397*the\ am__doit\ target*)
4398 am__include=include
4399 am__quote=
4400 _am_result=GNU
4401 ;;
4402esac
4403# Now try BSD make style include.
4404if test "$am__include" = "#"; then
4405 echo '.include "confinc"' > confmf
4406 case `$am_make -s -f confmf 2> /dev/null` in #(
4407 *the\ am__doit\ target*)
4408 am__include=.include
4409 am__quote="\""
4410 _am_result=BSD
4411 ;;
4412 esac
4413fi
4414
4415
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4417$as_echo "$_am_result" >&6; }
4418rm -f confinc confmf
4419
4420# Check whether --enable-dependency-tracking was given.
4421if test "${enable_dependency_tracking+set}" = set; then :
4422 enableval=$enable_dependency_tracking;
4423fi
4424
4425if test "x$enable_dependency_tracking" != xno; then
4426 am_depcomp="$ac_aux_dir/depcomp"
4427 AMDEPBACKSLASH='\'
4428 am__nodep='_no'
4429fi
4430 if test "x$enable_dependency_tracking" != xno; then
4431 AMDEP_TRUE=
4432 AMDEP_FALSE='#'
4433else
4434 AMDEP_TRUE='#'
4435 AMDEP_FALSE=
4436fi
4437
4438
4439
4440depcc="$CC" am_compiler_list=
4441
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4443$as_echo_n "checking dependency style of $depcc... " >&6; }
4444if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446else
4447 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4448 # We make a subdir and do the tests there. Otherwise we can end up
4449 # making bogus files that we don't know about and never remove. For
4450 # instance it was reported that on HP-UX the gcc test will end up
4451 # making a dummy file named 'D' -- because '-MD' means "put the output
4452 # in D".
4453 rm -rf conftest.dir
4454 mkdir conftest.dir
4455 # Copy depcomp to subdir because otherwise we won't find it if we're
4456 # using a relative directory.
4457 cp "$am_depcomp" conftest.dir
4458 cd conftest.dir
4459 # We will build objects and dependencies in a subdirectory because
4460 # it helps to detect inapplicable dependency modes. For instance
4461 # both Tru64's cc and ICC support -MD to output dependencies as a
4462 # side effect of compilation, but ICC will put the dependencies in
4463 # the current directory while Tru64 will put them in the object
4464 # directory.
4465 mkdir sub
4466
4467 am_cv_CC_dependencies_compiler_type=none
4468 if test "$am_compiler_list" = ""; then
4469 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4470 fi
4471 am__universal=false
4472 case " $depcc " in #(
4473 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4474 esac
4475
4476 for depmode in $am_compiler_list; do
4477 # Setup a source with many dependencies, because some compilers
4478 # like to wrap large dependency lists on column 80 (with \), and
4479 # we should not choose a depcomp mode which is confused by this.
4480 #
4481 # We need to recreate these files for each test, as the compiler may
4482 # overwrite some of them when testing with obscure command lines.
4483 # This happens at least with the AIX C compiler.
4484 : > sub/conftest.c
4485 for i in 1 2 3 4 5 6; do
4486 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4487 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4488 # Solaris 10 /bin/sh.
4489 echo '/* dummy */' > sub/conftst$i.h
4490 done
4491 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4492
4493 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4494 # mode. It turns out that the SunPro C++ compiler does not properly
4495 # handle '-M -o', and we need to detect this. Also, some Intel
4496 # versions had trouble with output in subdirs.
4497 am__obj=sub/conftest.${OBJEXT-o}
4498 am__minus_obj="-o $am__obj"
4499 case $depmode in
4500 gcc)
4501 # This depmode causes a compiler race in universal mode.
4502 test "$am__universal" = false || continue
4503 ;;
4504 nosideeffect)
4505 # After this tag, mechanisms are not by side-effect, so they'll
4506 # only be used when explicitly requested.
4507 if test "x$enable_dependency_tracking" = xyes; then
4508 continue
4509 else
4510 break
4511 fi
4512 ;;
4513 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4514 # This compiler won't grok '-c -o', but also, the minuso test has
4515 # not run yet. These depmodes are late enough in the game, and
4516 # so weak that their functioning should not be impacted.
4517 am__obj=conftest.${OBJEXT-o}
4518 am__minus_obj=
4519 ;;
4520 none) break ;;
4521 esac
4522 if depmode=$depmode \
4523 source=sub/conftest.c object=$am__obj \
4524 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4525 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4526 >/dev/null 2>conftest.err &&
4527 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4528 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4529 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4530 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4531 # icc doesn't choke on unknown options, it will just issue warnings
4532 # or remarks (even with -Werror). So we grep stderr for any message
4533 # that says an option was ignored or not supported.
4534 # When given -MP, icc 7.0 and 7.1 complain thusly:
4535 # icc: Command line warning: ignoring option '-M'; no argument required
4536 # The diagnosis changed in icc 8.0:
4537 # icc: Command line remark: option '-MP' not supported
4538 if (grep 'ignoring option' conftest.err ||
4539 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4540 am_cv_CC_dependencies_compiler_type=$depmode
4541 break
4542 fi
4543 fi
4544 done
4545
4546 cd ..
4547 rm -rf conftest.dir
4548else
4549 am_cv_CC_dependencies_compiler_type=none
4550fi
4551
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4554$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4555CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4556
4557 if
4558 test "x$enable_dependency_tracking" != xno \
4559 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4560 am__fastdepCC_TRUE=
4561 am__fastdepCC_FALSE='#'
4562else
4563 am__fastdepCC_TRUE='#'
4564 am__fastdepCC_FALSE=
4565fi
4566
4567
4568ac_ext=cpp
4569ac_cpp='$CXXCPP $CPPFLAGS'
4570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4573if test -z "$CXX"; then
4574 if test -n "$CCC"; then
4575 CXX=$CCC
4576 else
4577 if test -n "$ac_tool_prefix"; then
4578 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4579 do
4580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4581set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583$as_echo_n "checking for $ac_word... " >&6; }
4584if ${ac_cv_prog_CXX+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586else
4587 if test -n "$CXX"; then
4588 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4589else
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602 done
4603IFS=$as_save_IFS
4604
4605fi
4606fi
4607CXX=$ac_cv_prog_CXX
4608if test -n "$CXX"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4610$as_echo "$CXX" >&6; }
4611else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613$as_echo "no" >&6; }
4614fi
4615
4616
4617 test -n "$CXX" && break
4618 done
4619fi
4620if test -z "$CXX"; then
4621 ac_ct_CXX=$CXX
4622 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4623do
4624 # Extract the first word of "$ac_prog", so it can be a program name with args.
4625set dummy $ac_prog; ac_word=$2
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627$as_echo_n "checking for $ac_word... " >&6; }
4628if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630else
4631 if test -n "$ac_ct_CXX"; then
4632 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4633else
4634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635for as_dir in $PATH
4636do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_ac_ct_CXX="$ac_prog"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645done
4646 done
4647IFS=$as_save_IFS
4648
4649fi
4650fi
4651ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4652if test -n "$ac_ct_CXX"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4654$as_echo "$ac_ct_CXX" >&6; }
4655else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657$as_echo "no" >&6; }
4658fi
4659
4660
4661 test -n "$ac_ct_CXX" && break
4662done
4663
4664 if test "x$ac_ct_CXX" = x; then
4665 CXX="g++"
4666 else
4667 case $cross_compiling:$ac_tool_warned in
4668yes:)
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671ac_tool_warned=yes ;;
4672esac
4673 CXX=$ac_ct_CXX
4674 fi
4675fi
4676
4677 fi
4678fi
4679# Provide some information about the compiler.
4680$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4681set X $ac_compile
4682ac_compiler=$2
4683for ac_option in --version -v -V -qversion; do
4684 { { ac_try="$ac_compiler $ac_option >&5"
4685case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
4689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690$as_echo "$ac_try_echo"; } >&5
4691 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4692 ac_status=$?
4693 if test -s conftest.err; then
4694 sed '10a\
4695... rest of stderr output deleted ...
4696 10q' conftest.err >conftest.er1
4697 cat conftest.er1 >&5
4698 fi
4699 rm -f conftest.er1 conftest.err
4700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4701 test $ac_status = 0; }
4702done
4703
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4705$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4706if ${ac_cv_cxx_compiler_gnu+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710/* end confdefs.h. */
4711
4712int
4713main ()
4714{
4715#ifndef __GNUC__
4716 choke me
4717#endif
4718
4719 ;
4720 return 0;
4721}
4722_ACEOF
4723if ac_fn_cxx_try_compile "$LINENO"; then :
4724 ac_compiler_gnu=yes
4725else
4726 ac_compiler_gnu=no
4727fi
4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4730
4731fi
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4733$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4734if test $ac_compiler_gnu = yes; then
4735 GXX=yes
4736else
4737 GXX=
4738fi
4739ac_test_CXXFLAGS=${CXXFLAGS+set}
4740ac_save_CXXFLAGS=$CXXFLAGS
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4742$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4743if ${ac_cv_prog_cxx_g+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745else
4746 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4747 ac_cxx_werror_flag=yes
4748 ac_cv_prog_cxx_g=no
4749 CXXFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751/* end confdefs.h. */
4752
4753int
4754main ()
4755{
4756
4757 ;
4758 return 0;
4759}
4760_ACEOF
4761if ac_fn_cxx_try_compile "$LINENO"; then :
4762 ac_cv_prog_cxx_g=yes
4763else
4764 CXXFLAGS=""
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766/* end confdefs.h. */
4767
4768int
4769main ()
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776if ac_fn_cxx_try_compile "$LINENO"; then :
4777
4778else
4779 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4780 CXXFLAGS="-g"
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
4783
4784int
4785main ()
4786{
4787
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792if ac_fn_cxx_try_compile "$LINENO"; then :
4793 ac_cv_prog_cxx_g=yes
4794fi
4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796fi
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798fi
4799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4801fi
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4803$as_echo "$ac_cv_prog_cxx_g" >&6; }
4804if test "$ac_test_CXXFLAGS" = set; then
4805 CXXFLAGS=$ac_save_CXXFLAGS
4806elif test $ac_cv_prog_cxx_g = yes; then
4807 if test "$GXX" = yes; then
4808 CXXFLAGS="-g -O2"
4809 else
4810 CXXFLAGS="-g"
4811 fi
4812else
4813 if test "$GXX" = yes; then
4814 CXXFLAGS="-O2"
4815 else
4816 CXXFLAGS=
4817 fi
4818fi
4819ac_ext=c
4820ac_cpp='$CPP $CPPFLAGS'
4821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824
4825depcc="$CXX" am_compiler_list=
4826
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4828$as_echo_n "checking dependency style of $depcc... " >&6; }
4829if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831else
4832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4833 # We make a subdir and do the tests there. Otherwise we can end up
4834 # making bogus files that we don't know about and never remove. For
4835 # instance it was reported that on HP-UX the gcc test will end up
4836 # making a dummy file named 'D' -- because '-MD' means "put the output
4837 # in D".
4838 rm -rf conftest.dir
4839 mkdir conftest.dir
4840 # Copy depcomp to subdir because otherwise we won't find it if we're
4841 # using a relative directory.
4842 cp "$am_depcomp" conftest.dir
4843 cd conftest.dir
4844 # We will build objects and dependencies in a subdirectory because
4845 # it helps to detect inapplicable dependency modes. For instance
4846 # both Tru64's cc and ICC support -MD to output dependencies as a
4847 # side effect of compilation, but ICC will put the dependencies in
4848 # the current directory while Tru64 will put them in the object
4849 # directory.
4850 mkdir sub
4851
4852 am_cv_CXX_dependencies_compiler_type=none
4853 if test "$am_compiler_list" = ""; then
4854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4855 fi
4856 am__universal=false
4857 case " $depcc " in #(
4858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4859 esac
4860
4861 for depmode in $am_compiler_list; do
4862 # Setup a source with many dependencies, because some compilers
4863 # like to wrap large dependency lists on column 80 (with \), and
4864 # we should not choose a depcomp mode which is confused by this.
4865 #
4866 # We need to recreate these files for each test, as the compiler may
4867 # overwrite some of them when testing with obscure command lines.
4868 # This happens at least with the AIX C compiler.
4869 : > sub/conftest.c
4870 for i in 1 2 3 4 5 6; do
4871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4872 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4873 # Solaris 10 /bin/sh.
4874 echo '/* dummy */' > sub/conftst$i.h
4875 done
4876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4877
4878 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4879 # mode. It turns out that the SunPro C++ compiler does not properly
4880 # handle '-M -o', and we need to detect this. Also, some Intel
4881 # versions had trouble with output in subdirs.
4882 am__obj=sub/conftest.${OBJEXT-o}
4883 am__minus_obj="-o $am__obj"
4884 case $depmode in
4885 gcc)
4886 # This depmode causes a compiler race in universal mode.
4887 test "$am__universal" = false || continue
4888 ;;
4889 nosideeffect)
4890 # After this tag, mechanisms are not by side-effect, so they'll
4891 # only be used when explicitly requested.
4892 if test "x$enable_dependency_tracking" = xyes; then
4893 continue
4894 else
4895 break
4896 fi
4897 ;;
4898 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4899 # This compiler won't grok '-c -o', but also, the minuso test has
4900 # not run yet. These depmodes are late enough in the game, and
4901 # so weak that their functioning should not be impacted.
4902 am__obj=conftest.${OBJEXT-o}
4903 am__minus_obj=
4904 ;;
4905 none) break ;;
4906 esac
4907 if depmode=$depmode \
4908 source=sub/conftest.c object=$am__obj \
4909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4911 >/dev/null 2>conftest.err &&
4912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4916 # icc doesn't choke on unknown options, it will just issue warnings
4917 # or remarks (even with -Werror). So we grep stderr for any message
4918 # that says an option was ignored or not supported.
4919 # When given -MP, icc 7.0 and 7.1 complain thusly:
4920 # icc: Command line warning: ignoring option '-M'; no argument required
4921 # The diagnosis changed in icc 8.0:
4922 # icc: Command line remark: option '-MP' not supported
4923 if (grep 'ignoring option' conftest.err ||
4924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4925 am_cv_CXX_dependencies_compiler_type=$depmode
4926 break
4927 fi
4928 fi
4929 done
4930
4931 cd ..
4932 rm -rf conftest.dir
4933else
4934 am_cv_CXX_dependencies_compiler_type=none
4935fi
4936
4937fi
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4939$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4940CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4941
4942 if
4943 test "x$enable_dependency_tracking" != xno \
4944 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4945 am__fastdepCXX_TRUE=
4946 am__fastdepCXX_FALSE='#'
4947else
4948 am__fastdepCXX_TRUE='#'
4949 am__fastdepCXX_FALSE=
4950fi
4951
4952
4953if test -n "$ac_tool_prefix"; then
4954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4955set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957$as_echo_n "checking for $ac_word... " >&6; }
4958if ${ac_cv_prog_RANLIB+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960else
4961 if test -n "$RANLIB"; then
4962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4963else
4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975done
4976 done
4977IFS=$as_save_IFS
4978
4979fi
4980fi
4981RANLIB=$ac_cv_prog_RANLIB
4982if test -n "$RANLIB"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4984$as_echo "$RANLIB" >&6; }
4985else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987$as_echo "no" >&6; }
4988fi
4989
4990
4991fi
4992if test -z "$ac_cv_prog_RANLIB"; then
4993 ac_ct_RANLIB=$RANLIB
4994 # Extract the first word of "ranlib", so it can be a program name with args.
4995set dummy ranlib; ac_word=$2
4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997$as_echo_n "checking for $ac_word... " >&6; }
4998if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000else
5001 if test -n "$ac_ct_RANLIB"; then
5002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5003else
5004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005for as_dir in $PATH
5006do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_RANLIB="ranlib"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5014 fi
5015done
5016 done
5017IFS=$as_save_IFS
5018
5019fi
5020fi
5021ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5022if test -n "$ac_ct_RANLIB"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5024$as_echo "$ac_ct_RANLIB" >&6; }
5025else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027$as_echo "no" >&6; }
5028fi
5029
5030 if test "x$ac_ct_RANLIB" = x; then
5031 RANLIB=":"
5032 else
5033 case $cross_compiling:$ac_tool_warned in
5034yes:)
5035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5037ac_tool_warned=yes ;;
5038esac
5039 RANLIB=$ac_ct_RANLIB
5040 fi
5041else
5042 RANLIB="$ac_cv_prog_RANLIB"
5043fi
5044
5045
5046
5047ac_ext=c
5048ac_cpp='$CPP $CPPFLAGS'
5049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5053$as_echo_n "checking how to run the C preprocessor... " >&6; }
5054# On Suns, sometimes $CPP names a directory.
5055if test -n "$CPP" && test -d "$CPP"; then
5056 CPP=
5057fi
5058if test -z "$CPP"; then
5059 if ${ac_cv_prog_CPP+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061else
5062 # Double quotes because CPP needs to be expanded
5063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5064 do
5065 ac_preproc_ok=false
5066for ac_c_preproc_warn_flag in '' yes
5067do
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h. */
5076#ifdef __STDC__
5077# include <limits.h>
5078#else
5079# include <assert.h>
5080#endif
5081 Syntax error
5082_ACEOF
5083if ac_fn_c_try_cpp "$LINENO"; then :
5084
5085else
5086 # Broken: fails on valid input.
5087continue
5088fi
5089rm -f conftest.err conftest.i conftest.$ac_ext
5090
5091 # OK, works on sane cases. Now check whether nonexistent headers
5092 # can be detected and how.
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h. */
5095#include <ac_nonexistent.h>
5096_ACEOF
5097if ac_fn_c_try_cpp "$LINENO"; then :
5098 # Broken: success on invalid input.
5099continue
5100else
5101 # Passes both tests.
5102ac_preproc_ok=:
5103break
5104fi
5105rm -f conftest.err conftest.i conftest.$ac_ext
5106
5107done
5108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5109rm -f conftest.i conftest.err conftest.$ac_ext
5110if $ac_preproc_ok; then :
5111 break
5112fi
5113
5114 done
5115 ac_cv_prog_CPP=$CPP
5116
5117fi
5118 CPP=$ac_cv_prog_CPP
5119else
5120 ac_cv_prog_CPP=$CPP
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5123$as_echo "$CPP" >&6; }
5124ac_preproc_ok=false
5125for ac_c_preproc_warn_flag in '' yes
5126do
5127 # Use a header file that comes with gcc, so configuring glibc
5128 # with a fresh cross-compiler works.
5129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130 # <limits.h> exists even on freestanding compilers.
5131 # On the NeXT, cc -E runs the code through the compiler's parser,
5132 # not just through cpp. "Syntax error" is here to catch this case.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134/* end confdefs.h. */
5135#ifdef __STDC__
5136# include <limits.h>
5137#else
5138# include <assert.h>
5139#endif
5140 Syntax error
5141_ACEOF
5142if ac_fn_c_try_cpp "$LINENO"; then :
5143
5144else
5145 # Broken: fails on valid input.
5146continue
5147fi
5148rm -f conftest.err conftest.i conftest.$ac_ext
5149
5150 # OK, works on sane cases. Now check whether nonexistent headers
5151 # can be detected and how.
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h. */
5154#include <ac_nonexistent.h>
5155_ACEOF
5156if ac_fn_c_try_cpp "$LINENO"; then :
5157 # Broken: success on invalid input.
5158continue
5159else
5160 # Passes both tests.
5161ac_preproc_ok=:
5162break
5163fi
5164rm -f conftest.err conftest.i conftest.$ac_ext
5165
5166done
5167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168rm -f conftest.i conftest.err conftest.$ac_ext
5169if $ac_preproc_ok; then :
5170
5171else
5172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5174as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5175See \`config.log' for more details" "$LINENO" 5; }
5176fi
5177
5178ac_ext=c
5179ac_cpp='$CPP $CPPFLAGS'
5180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183
5184
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5186$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5187if ${ac_cv_path_GREP+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189else
5190 if test -z "$GREP"; then
5191 ac_path_GREP_found=false
5192 # Loop through the user's path and test for each of PROGNAME-LIST
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_prog in grep ggrep; do
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5201 as_fn_executable_p "$ac_path_GREP" || continue
5202# Check for GNU ac_path_GREP and select it if it is found.
5203 # Check for GNU $ac_path_GREP
5204case `"$ac_path_GREP" --version 2>&1` in
5205*GNU*)
5206 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5207*)
5208 ac_count=0
5209 $as_echo_n 0123456789 >"conftest.in"
5210 while :
5211 do
5212 cat "conftest.in" "conftest.in" >"conftest.tmp"
5213 mv "conftest.tmp" "conftest.in"
5214 cp "conftest.in" "conftest.nl"
5215 $as_echo 'GREP' >> "conftest.nl"
5216 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5218 as_fn_arith $ac_count + 1 && ac_count=$as_val
5219 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5220 # Best one so far, save it but keep looking for a better one
5221 ac_cv_path_GREP="$ac_path_GREP"
5222 ac_path_GREP_max=$ac_count
5223 fi
5224 # 10*(2^10) chars as input seems more than enough
5225 test $ac_count -gt 10 && break
5226 done
5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5228esac
5229
5230 $ac_path_GREP_found && break 3
5231 done
5232 done
5233 done
5234IFS=$as_save_IFS
5235 if test -z "$ac_cv_path_GREP"; then
5236 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5237 fi
5238else
5239 ac_cv_path_GREP=$GREP
5240fi
5241
5242fi
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5244$as_echo "$ac_cv_path_GREP" >&6; }
5245 GREP="$ac_cv_path_GREP"
5246
5247
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5249$as_echo_n "checking for egrep... " >&6; }
5250if ${ac_cv_path_EGREP+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252else
5253 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5254 then ac_cv_path_EGREP="$GREP -E"
5255 else
5256 if test -z "$EGREP"; then
5257 ac_path_EGREP_found=false
5258 # Loop through the user's path and test for each of PROGNAME-LIST
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_prog in egrep; do
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5267 as_fn_executable_p "$ac_path_EGREP" || continue
5268# Check for GNU ac_path_EGREP and select it if it is found.
5269 # Check for GNU $ac_path_EGREP
5270case `"$ac_path_EGREP" --version 2>&1` in
5271*GNU*)
5272 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5273*)
5274 ac_count=0
5275 $as_echo_n 0123456789 >"conftest.in"
5276 while :
5277 do
5278 cat "conftest.in" "conftest.in" >"conftest.tmp"
5279 mv "conftest.tmp" "conftest.in"
5280 cp "conftest.in" "conftest.nl"
5281 $as_echo 'EGREP' >> "conftest.nl"
5282 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284 as_fn_arith $ac_count + 1 && ac_count=$as_val
5285 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5286 # Best one so far, save it but keep looking for a better one
5287 ac_cv_path_EGREP="$ac_path_EGREP"
5288 ac_path_EGREP_max=$ac_count
5289 fi
5290 # 10*(2^10) chars as input seems more than enough
5291 test $ac_count -gt 10 && break
5292 done
5293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294esac
5295
5296 $ac_path_EGREP_found && break 3
5297 done
5298 done
5299 done
5300IFS=$as_save_IFS
5301 if test -z "$ac_cv_path_EGREP"; then
5302 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5303 fi
5304else
5305 ac_cv_path_EGREP=$EGREP
5306fi
5307
5308 fi
5309fi
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5311$as_echo "$ac_cv_path_EGREP" >&6; }
5312 EGREP="$ac_cv_path_EGREP"
5313
5314
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5316$as_echo_n "checking for ANSI C header files... " >&6; }
5317if ${ac_cv_header_stdc+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319else
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321/* end confdefs.h. */
5322#include <stdlib.h>
5323#include <stdarg.h>
5324#include <string.h>
5325#include <float.h>
5326
5327int
5328main ()
5329{
5330
5331 ;
5332 return 0;
5333}
5334_ACEOF
5335if ac_fn_c_try_compile "$LINENO"; then :
5336 ac_cv_header_stdc=yes
5337else
5338 ac_cv_header_stdc=no
5339fi
5340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341
5342if test $ac_cv_header_stdc = yes; then
5343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h. */
5346#include <string.h>
5347
5348_ACEOF
5349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350 $EGREP "memchr" >/dev/null 2>&1; then :
5351
5352else
5353 ac_cv_header_stdc=no
5354fi
5355rm -f conftest*
5356
5357fi
5358
5359if test $ac_cv_header_stdc = yes; then
5360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h. */
5363#include <stdlib.h>
5364
5365_ACEOF
5366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5367 $EGREP "free" >/dev/null 2>&1; then :
5368
5369else
5370 ac_cv_header_stdc=no
5371fi
5372rm -f conftest*
5373
5374fi
5375
5376if test $ac_cv_header_stdc = yes; then
5377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5378 if test "$cross_compiling" = yes; then :
5379 :
5380else
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h. */
5383#include <ctype.h>
5384#include <stdlib.h>
5385#if ((' ' & 0x0FF) == 0x020)
5386# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5387# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5388#else
5389# define ISLOWER(c) \
5390 (('a' <= (c) && (c) <= 'i') \
5391 || ('j' <= (c) && (c) <= 'r') \
5392 || ('s' <= (c) && (c) <= 'z'))
5393# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5394#endif
5395
5396#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5397int
5398main ()
5399{
5400 int i;
5401 for (i = 0; i < 256; i++)
5402 if (XOR (islower (i), ISLOWER (i))
5403 || toupper (i) != TOUPPER (i))
5404 return 2;
5405 return 0;
5406}
5407_ACEOF
5408if ac_fn_c_try_run "$LINENO"; then :
5409
5410else
5411 ac_cv_header_stdc=no
5412fi
5413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5414 conftest.$ac_objext conftest.beam conftest.$ac_ext
5415fi
5416
5417fi
5418fi
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5420$as_echo "$ac_cv_header_stdc" >&6; }
5421if test $ac_cv_header_stdc = yes; then
5422
5423$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5424
5425fi
5426
5427# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5428for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5429 inttypes.h stdint.h unistd.h
5430do :
5431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5432ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5433"
5434if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5435 cat >>confdefs.h <<_ACEOF
5436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5437_ACEOF
5438
5439fi
5440
5441done
5442
5443
5444
5445 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5446if test "x$ac_cv_header_minix_config_h" = xyes; then :
5447 MINIX=yes
5448else
5449 MINIX=
5450fi
5451
5452
5453 if test "$MINIX" = yes; then
5454
5455$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5456
5457
5458$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5459
5460
5461$as_echo "#define _MINIX 1" >>confdefs.h
5462
5463 fi
5464
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5467$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5468if ${ac_cv_safe_to_define___extensions__+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470else
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472/* end confdefs.h. */
5473
5474# define __EXTENSIONS__ 1
5475 $ac_includes_default
5476int
5477main ()
5478{
5479
5480 ;
5481 return 0;
5482}
5483_ACEOF
5484if ac_fn_c_try_compile "$LINENO"; then :
5485 ac_cv_safe_to_define___extensions__=yes
5486else
5487 ac_cv_safe_to_define___extensions__=no
5488fi
5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490fi
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5492$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5493 test $ac_cv_safe_to_define___extensions__ = yes &&
5494 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5495
5496 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5497
5498 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5499
5500 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5501
5502 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5503
5504
5505
5506# The tests for host and target for $enable_largefile require
5507# canonical names.
5508
5509
5510
5511# As the $enable_largefile decision depends on --enable-plugins we must set it
5512# even in directories otherwise not depending on the $plugins option.
5513
5514
5515 maybe_plugins=no
5516 for ac_header in dlfcn.h
5517do :
5518 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5519"
5520if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5521 cat >>confdefs.h <<_ACEOF
5522#define HAVE_DLFCN_H 1
5523_ACEOF
5524 maybe_plugins=yes
5525fi
5526
5527done
5528
5529 for ac_header in windows.h
5530do :
5531 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5532"
5533if test "x$ac_cv_header_windows_h" = xyes; then :
5534 cat >>confdefs.h <<_ACEOF
5535#define HAVE_WINDOWS_H 1
5536_ACEOF
5537 maybe_plugins=yes
5538fi
5539
5540done
5541
5542
5543 # Check whether --enable-plugins was given.
5544if test "${enable_plugins+set}" = set; then :
5545 enableval=$enable_plugins; case "${enableval}" in
5546 no) plugins=no ;;
5547 *) plugins=yes
5548 if test "$maybe_plugins" != "yes" ; then
5549 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5550 fi ;;
5551 esac
5552else
5553 plugins=$maybe_plugins
5554
5555fi
5556
5557 if test "$plugins" = "yes"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5559$as_echo_n "checking for library containing dlsym... " >&6; }
5560if ${ac_cv_search_dlsym+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562else
5563 ac_func_search_save_LIBS=$LIBS
5564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h. */
5566
5567/* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
5570#ifdef __cplusplus
5571extern "C"
5572#endif
5573char dlsym ();
5574int
5575main ()
5576{
5577return dlsym ();
5578 ;
5579 return 0;
5580}
5581_ACEOF
5582for ac_lib in '' dl; do
5583 if test -z "$ac_lib"; then
5584 ac_res="none required"
5585 else
5586 ac_res=-l$ac_lib
5587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5588 fi
5589 if ac_fn_c_try_link "$LINENO"; then :
5590 ac_cv_search_dlsym=$ac_res
5591fi
5592rm -f core conftest.err conftest.$ac_objext \
5593 conftest$ac_exeext
5594 if ${ac_cv_search_dlsym+:} false; then :
5595 break
5596fi
5597done
5598if ${ac_cv_search_dlsym+:} false; then :
5599
5600else
5601 ac_cv_search_dlsym=no
5602fi
5603rm conftest.$ac_ext
5604LIBS=$ac_func_search_save_LIBS
5605fi
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5607$as_echo "$ac_cv_search_dlsym" >&6; }
5608ac_res=$ac_cv_search_dlsym
5609if test "$ac_res" != no; then :
5610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5611
5612fi
5613
5614 fi
5615
5616
5617case "${host}" in
5618 sparc-*-solaris*|i[3-7]86-*-solaris*)
5619 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5620 # are mutually exclusive; and without procfs support, the bfd/ elf module
5621 # cannot provide certain routines such as elfcore_write_prpsinfo
5622 # or elfcore_write_prstatus. So unless the user explicitly requested
5623 # large-file support through the --enable-largefile switch, disable
5624 # large-file support in favor of procfs support.
5625 test "${target}" = "${host}" -a "x$plugins" = xno \
5626 && : ${enable_largefile="no"}
5627 ;;
5628esac
5629
5630# Check whether --enable-largefile was given.
5631if test "${enable_largefile+set}" = set; then :
5632 enableval=$enable_largefile;
5633fi
5634
5635if test "$enable_largefile" != no; then
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5638$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5639if ${ac_cv_sys_largefile_CC+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641else
5642 ac_cv_sys_largefile_CC=no
5643 if test "$GCC" != yes; then
5644 ac_save_CC=$CC
5645 while :; do
5646 # IRIX 6.2 and later do not support large files by default,
5647 # so use the C compiler's -n32 option if that helps.
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h. */
5650#include <sys/types.h>
5651 /* Check that off_t can represent 2**63 - 1 correctly.
5652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5653 since some C++ compilers masquerading as C compilers
5654 incorrectly reject 9223372036854775807. */
5655#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5657 && LARGE_OFF_T % 2147483647 == 1)
5658 ? 1 : -1];
5659int
5660main ()
5661{
5662
5663 ;
5664 return 0;
5665}
5666_ACEOF
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668 break
5669fi
5670rm -f core conftest.err conftest.$ac_objext
5671 CC="$CC -n32"
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 ac_cv_sys_largefile_CC=' -n32'; break
5674fi
5675rm -f core conftest.err conftest.$ac_objext
5676 break
5677 done
5678 CC=$ac_save_CC
5679 rm -f conftest.$ac_ext
5680 fi
5681fi
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5683$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5684 if test "$ac_cv_sys_largefile_CC" != no; then
5685 CC=$CC$ac_cv_sys_largefile_CC
5686 fi
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5689$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5690if ${ac_cv_sys_file_offset_bits+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692else
5693 while :; do
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695/* end confdefs.h. */
5696#include <sys/types.h>
5697 /* Check that off_t can represent 2**63 - 1 correctly.
5698 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5699 since some C++ compilers masquerading as C compilers
5700 incorrectly reject 9223372036854775807. */
5701#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5702 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5703 && LARGE_OFF_T % 2147483647 == 1)
5704 ? 1 : -1];
5705int
5706main ()
5707{
5708
5709 ;
5710 return 0;
5711}
5712_ACEOF
5713if ac_fn_c_try_compile "$LINENO"; then :
5714 ac_cv_sys_file_offset_bits=no; break
5715fi
5716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h. */
5719#define _FILE_OFFSET_BITS 64
5720#include <sys/types.h>
5721 /* Check that off_t can represent 2**63 - 1 correctly.
5722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5723 since some C++ compilers masquerading as C compilers
5724 incorrectly reject 9223372036854775807. */
5725#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5727 && LARGE_OFF_T % 2147483647 == 1)
5728 ? 1 : -1];
5729int
5730main ()
5731{
5732
5733 ;
5734 return 0;
5735}
5736_ACEOF
5737if ac_fn_c_try_compile "$LINENO"; then :
5738 ac_cv_sys_file_offset_bits=64; break
5739fi
5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 ac_cv_sys_file_offset_bits=unknown
5742 break
5743done
5744fi
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5746$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5747case $ac_cv_sys_file_offset_bits in #(
5748 no | unknown) ;;
5749 *)
5750cat >>confdefs.h <<_ACEOF
5751#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5752_ACEOF
5753;;
5754esac
5755rm -rf conftest*
5756 if test $ac_cv_sys_file_offset_bits = unknown; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5758$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5759if ${ac_cv_sys_large_files+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761else
5762 while :; do
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764/* end confdefs.h. */
5765#include <sys/types.h>
5766 /* Check that off_t can represent 2**63 - 1 correctly.
5767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5768 since some C++ compilers masquerading as C compilers
5769 incorrectly reject 9223372036854775807. */
5770#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5772 && LARGE_OFF_T % 2147483647 == 1)
5773 ? 1 : -1];
5774int
5775main ()
5776{
5777
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_compile "$LINENO"; then :
5783 ac_cv_sys_large_files=no; break
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h. */
5788#define _LARGE_FILES 1
5789#include <sys/types.h>
5790 /* Check that off_t can represent 2**63 - 1 correctly.
5791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5792 since some C++ compilers masquerading as C compilers
5793 incorrectly reject 9223372036854775807. */
5794#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5796 && LARGE_OFF_T % 2147483647 == 1)
5797 ? 1 : -1];
5798int
5799main ()
5800{
5801
5802 ;
5803 return 0;
5804}
5805_ACEOF
5806if ac_fn_c_try_compile "$LINENO"; then :
5807 ac_cv_sys_large_files=1; break
5808fi
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 ac_cv_sys_large_files=unknown
5811 break
5812done
5813fi
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5815$as_echo "$ac_cv_sys_large_files" >&6; }
5816case $ac_cv_sys_large_files in #(
5817 no | unknown) ;;
5818 *)
5819cat >>confdefs.h <<_ACEOF
5820#define _LARGE_FILES $ac_cv_sys_large_files
5821_ACEOF
5822;;
5823esac
5824rm -rf conftest*
5825 fi
5826
5827
5828fi
5829
5830
5831ac_ext=c
5832ac_cpp='$CPP $CPPFLAGS'
5833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}gcc; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
5841if ${ac_cv_prog_CC+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$CC"; then
5845 ac_cv_prog_CC="$CC" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864CC=$ac_cv_prog_CC
5865if test -n "$CC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5867$as_echo "$CC" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874fi
5875if test -z "$ac_cv_prog_CC"; then
5876 ac_ct_CC=$CC
5877 # Extract the first word of "gcc", so it can be a program name with args.
5878set dummy gcc; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
5881if ${ac_cv_prog_ac_ct_CC+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883else
5884 if test -n "$ac_ct_CC"; then
5885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_CC="gcc"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899 done
5900IFS=$as_save_IFS
5901
5902fi
5903fi
5904ac_ct_CC=$ac_cv_prog_ac_ct_CC
5905if test -n "$ac_ct_CC"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5907$as_echo "$ac_ct_CC" >&6; }
5908else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5912
5913 if test "x$ac_ct_CC" = x; then
5914 CC=""
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917yes:)
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920ac_tool_warned=yes ;;
5921esac
5922 CC=$ac_ct_CC
5923 fi
5924else
5925 CC="$ac_cv_prog_CC"
5926fi
5927
5928if test -z "$CC"; then
5929 if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5931set dummy ${ac_tool_prefix}cc; ac_word=$2
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933$as_echo_n "checking for $ac_word... " >&6; }
5934if ${ac_cv_prog_CC+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936else
5937 if test -n "$CC"; then
5938 ac_cv_prog_CC="$CC" # Let the user override the test.
5939else
5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH
5942do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947 ac_cv_prog_CC="${ac_tool_prefix}cc"
5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951done
5952 done
5953IFS=$as_save_IFS
5954
5955fi
5956fi
5957CC=$ac_cv_prog_CC
5958if test -n "$CC"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5960$as_echo "$CC" >&6; }
5961else
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963$as_echo "no" >&6; }
5964fi
5965
5966
5967 fi
5968fi
5969if test -z "$CC"; then
5970 # Extract the first word of "cc", so it can be a program name with args.
5971set dummy cc; ac_word=$2
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
5974if ${ac_cv_prog_CC+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976else
5977 if test -n "$CC"; then
5978 ac_cv_prog_CC="$CC" # Let the user override the test.
5979else
5980 ac_prog_rejected=no
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5989 ac_prog_rejected=yes
5990 continue
5991 fi
5992 ac_cv_prog_CC="cc"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996done
5997 done
5998IFS=$as_save_IFS
5999
6000if test $ac_prog_rejected = yes; then
6001 # We found a bogon in the path, so make sure we never use it.
6002 set dummy $ac_cv_prog_CC
6003 shift
6004 if test $# != 0; then
6005 # We chose a different compiler from the bogus one.
6006 # However, it has the same basename, so the bogon will be chosen
6007 # first if we set CC to just the basename; use the full file name.
6008 shift
6009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6010 fi
6011fi
6012fi
6013fi
6014CC=$ac_cv_prog_CC
6015if test -n "$CC"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6017$as_echo "$CC" >&6; }
6018else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020$as_echo "no" >&6; }
6021fi
6022
6023
6024fi
6025if test -z "$CC"; then
6026 if test -n "$ac_tool_prefix"; then
6027 for ac_prog in cl.exe
6028 do
6029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032$as_echo_n "checking for $ac_word... " >&6; }
6033if ${ac_cv_prog_CC+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035else
6036 if test -n "$CC"; then
6037 ac_cv_prog_CC="$CC" # Let the user override the test.
6038else
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050done
6051 done
6052IFS=$as_save_IFS
6053
6054fi
6055fi
6056CC=$ac_cv_prog_CC
6057if test -n "$CC"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6059$as_echo "$CC" >&6; }
6060else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062$as_echo "no" >&6; }
6063fi
6064
6065
6066 test -n "$CC" && break
6067 done
6068fi
6069if test -z "$CC"; then
6070 ac_ct_CC=$CC
6071 for ac_prog in cl.exe
6072do
6073 # Extract the first word of "$ac_prog", so it can be a program name with args.
6074set dummy $ac_prog; ac_word=$2
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076$as_echo_n "checking for $ac_word... " >&6; }
6077if ${ac_cv_prog_ac_ct_CC+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079else
6080 if test -n "$ac_ct_CC"; then
6081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_ac_ct_CC="$ac_prog"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094done
6095 done
6096IFS=$as_save_IFS
6097
6098fi
6099fi
6100ac_ct_CC=$ac_cv_prog_ac_ct_CC
6101if test -n "$ac_ct_CC"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6103$as_echo "$ac_ct_CC" >&6; }
6104else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106$as_echo "no" >&6; }
6107fi
6108
6109
6110 test -n "$ac_ct_CC" && break
6111done
6112
6113 if test "x$ac_ct_CC" = x; then
6114 CC=""
6115 else
6116 case $cross_compiling:$ac_tool_warned in
6117yes:)
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120ac_tool_warned=yes ;;
6121esac
6122 CC=$ac_ct_CC
6123 fi
6124fi
6125
6126fi
6127
6128
6129test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6131as_fn_error $? "no acceptable C compiler found in \$PATH
6132See \`config.log' for more details" "$LINENO" 5; }
6133
6134# Provide some information about the compiler.
6135$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6136set X $ac_compile
6137ac_compiler=$2
6138for ac_option in --version -v -V -qversion; do
6139 { { ac_try="$ac_compiler $ac_option >&5"
6140case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143esac
6144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6145$as_echo "$ac_try_echo"; } >&5
6146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6147 ac_status=$?
6148 if test -s conftest.err; then
6149 sed '10a\
6150... rest of stderr output deleted ...
6151 10q' conftest.err >conftest.er1
6152 cat conftest.er1 >&5
6153 fi
6154 rm -f conftest.er1 conftest.err
6155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; }
6157done
6158
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6160$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6161if ${ac_cv_c_compiler_gnu+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165/* end confdefs.h. */
6166
6167int
6168main ()
6169{
6170#ifndef __GNUC__
6171 choke me
6172#endif
6173
6174 ;
6175 return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_compile "$LINENO"; then :
6179 ac_compiler_gnu=yes
6180else
6181 ac_compiler_gnu=no
6182fi
6183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184ac_cv_c_compiler_gnu=$ac_compiler_gnu
6185
6186fi
6187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6188$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6189if test $ac_compiler_gnu = yes; then
6190 GCC=yes
6191else
6192 GCC=
6193fi
6194ac_test_CFLAGS=${CFLAGS+set}
6195ac_save_CFLAGS=$CFLAGS
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6197$as_echo_n "checking whether $CC accepts -g... " >&6; }
6198if ${ac_cv_prog_cc_g+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200else
6201 ac_save_c_werror_flag=$ac_c_werror_flag
6202 ac_c_werror_flag=yes
6203 ac_cv_prog_cc_g=no
6204 CFLAGS="-g"
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h. */
6207
6208int
6209main ()
6210{
6211
6212 ;
6213 return 0;
6214}
6215_ACEOF
6216if ac_fn_c_try_compile "$LINENO"; then :
6217 ac_cv_prog_cc_g=yes
6218else
6219 CFLAGS=""
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h. */
6222
6223int
6224main ()
6225{
6226
6227 ;
6228 return 0;
6229}
6230_ACEOF
6231if ac_fn_c_try_compile "$LINENO"; then :
6232
6233else
6234 ac_c_werror_flag=$ac_save_c_werror_flag
6235 CFLAGS="-g"
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237/* end confdefs.h. */
6238
6239int
6240main ()
6241{
6242
6243 ;
6244 return 0;
6245}
6246_ACEOF
6247if ac_fn_c_try_compile "$LINENO"; then :
6248 ac_cv_prog_cc_g=yes
6249fi
6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251fi
6252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253fi
6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 ac_c_werror_flag=$ac_save_c_werror_flag
6256fi
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6258$as_echo "$ac_cv_prog_cc_g" >&6; }
6259if test "$ac_test_CFLAGS" = set; then
6260 CFLAGS=$ac_save_CFLAGS
6261elif test $ac_cv_prog_cc_g = yes; then
6262 if test "$GCC" = yes; then
6263 CFLAGS="-g -O2"
6264 else
6265 CFLAGS="-g"
6266 fi
6267else
6268 if test "$GCC" = yes; then
6269 CFLAGS="-O2"
6270 else
6271 CFLAGS=
6272 fi
6273fi
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6275$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6276if ${ac_cv_prog_cc_c89+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278else
6279 ac_cv_prog_cc_c89=no
6280ac_save_CC=$CC
6281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282/* end confdefs.h. */
6283#include <stdarg.h>
6284#include <stdio.h>
6285struct stat;
6286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6287struct buf { int x; };
6288FILE * (*rcsopen) (struct buf *, struct stat *, int);
6289static char *e (p, i)
6290 char **p;
6291 int i;
6292{
6293 return p[i];
6294}
6295static char *f (char * (*g) (char **, int), char **p, ...)
6296{
6297 char *s;
6298 va_list v;
6299 va_start (v,p);
6300 s = g (p, va_arg (v,int));
6301 va_end (v);
6302 return s;
6303}
6304
6305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6306 function prototypes and stuff, but not '\xHH' hex character constants.
6307 These don't provoke an error unfortunately, instead are silently treated
6308 as 'x'. The following induces an error, until -std is added to get
6309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6310 array size at least. It's necessary to write '\x00'==0 to get something
6311 that's true only with -std. */
6312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6313
6314/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6315 inside strings and character constants. */
6316#define FOO(x) 'x'
6317int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6318
6319int test (int i, double x);
6320struct s1 {int (*f) (int a);};
6321struct s2 {int (*f) (double a);};
6322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6323int argc;
6324char **argv;
6325int
6326main ()
6327{
6328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6329 ;
6330 return 0;
6331}
6332_ACEOF
6333for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6335do
6336 CC="$ac_save_CC $ac_arg"
6337 if ac_fn_c_try_compile "$LINENO"; then :
6338 ac_cv_prog_cc_c89=$ac_arg
6339fi
6340rm -f core conftest.err conftest.$ac_objext
6341 test "x$ac_cv_prog_cc_c89" != "xno" && break
6342done
6343rm -f conftest.$ac_ext
6344CC=$ac_save_CC
6345
6346fi
6347# AC_CACHE_VAL
6348case "x$ac_cv_prog_cc_c89" in
6349 x)
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6351$as_echo "none needed" >&6; } ;;
6352 xno)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6354$as_echo "unsupported" >&6; } ;;
6355 *)
6356 CC="$CC $ac_cv_prog_cc_c89"
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6358$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6359esac
6360if test "x$ac_cv_prog_cc_c89" != xno; then :
6361
6362fi
6363
6364ac_ext=c
6365ac_cpp='$CPP $CPPFLAGS'
6366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
6370ac_ext=c
6371ac_cpp='$CPP $CPPFLAGS'
6372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6374ac_compiler_gnu=$ac_cv_c_compiler_gnu
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6376$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6377if ${am_cv_prog_cc_c_o+:} false; then :
6378 $as_echo_n "(cached) " >&6
6379else
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381/* end confdefs.h. */
6382
6383int
6384main ()
6385{
6386
6387 ;
6388 return 0;
6389}
6390_ACEOF
6391 # Make sure it works both with $CC and with simple cc.
6392 # Following AC_PROG_CC_C_O, we do the test twice because some
6393 # compilers refuse to overwrite an existing .o file with -o,
6394 # though they will create one.
6395 am_cv_prog_cc_c_o=yes
6396 for am_i in 1 2; do
6397 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6398 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } \
6402 && test -f conftest2.$ac_objext; then
6403 : OK
6404 else
6405 am_cv_prog_cc_c_o=no
6406 break
6407 fi
6408 done
6409 rm -f core conftest*
6410 unset am_i
6411fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6413$as_echo "$am_cv_prog_cc_c_o" >&6; }
6414if test "$am_cv_prog_cc_c_o" != yes; then
6415 # Losing compiler, so override with the script.
6416 # FIXME: It is wrong to rewrite CC.
6417 # But if we don't then we get into trouble of one sort or another.
6418 # A longer-term fix would be to have automake use am__CC in this case,
6419 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6420 CC="$am_aux_dir/compile $CC"
6421fi
6422ac_ext=c
6423ac_cpp='$CPP $CPPFLAGS'
6424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427
6428
6429depcc="$CC" am_compiler_list=
6430
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6432$as_echo_n "checking dependency style of $depcc... " >&6; }
6433if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6434 $as_echo_n "(cached) " >&6
6435else
6436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6437 # We make a subdir and do the tests there. Otherwise we can end up
6438 # making bogus files that we don't know about and never remove. For
6439 # instance it was reported that on HP-UX the gcc test will end up
6440 # making a dummy file named 'D' -- because '-MD' means "put the output
6441 # in D".
6442 rm -rf conftest.dir
6443 mkdir conftest.dir
6444 # Copy depcomp to subdir because otherwise we won't find it if we're
6445 # using a relative directory.
6446 cp "$am_depcomp" conftest.dir
6447 cd conftest.dir
6448 # We will build objects and dependencies in a subdirectory because
6449 # it helps to detect inapplicable dependency modes. For instance
6450 # both Tru64's cc and ICC support -MD to output dependencies as a
6451 # side effect of compilation, but ICC will put the dependencies in
6452 # the current directory while Tru64 will put them in the object
6453 # directory.
6454 mkdir sub
6455
6456 am_cv_CC_dependencies_compiler_type=none
6457 if test "$am_compiler_list" = ""; then
6458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6459 fi
6460 am__universal=false
6461 case " $depcc " in #(
6462 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6463 esac
6464
6465 for depmode in $am_compiler_list; do
6466 # Setup a source with many dependencies, because some compilers
6467 # like to wrap large dependency lists on column 80 (with \), and
6468 # we should not choose a depcomp mode which is confused by this.
6469 #
6470 # We need to recreate these files for each test, as the compiler may
6471 # overwrite some of them when testing with obscure command lines.
6472 # This happens at least with the AIX C compiler.
6473 : > sub/conftest.c
6474 for i in 1 2 3 4 5 6; do
6475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6476 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6477 # Solaris 10 /bin/sh.
6478 echo '/* dummy */' > sub/conftst$i.h
6479 done
6480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6481
6482 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6483 # mode. It turns out that the SunPro C++ compiler does not properly
6484 # handle '-M -o', and we need to detect this. Also, some Intel
6485 # versions had trouble with output in subdirs.
6486 am__obj=sub/conftest.${OBJEXT-o}
6487 am__minus_obj="-o $am__obj"
6488 case $depmode in
6489 gcc)
6490 # This depmode causes a compiler race in universal mode.
6491 test "$am__universal" = false || continue
6492 ;;
6493 nosideeffect)
6494 # After this tag, mechanisms are not by side-effect, so they'll
6495 # only be used when explicitly requested.
6496 if test "x$enable_dependency_tracking" = xyes; then
6497 continue
6498 else
6499 break
6500 fi
6501 ;;
6502 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6503 # This compiler won't grok '-c -o', but also, the minuso test has
6504 # not run yet. These depmodes are late enough in the game, and
6505 # so weak that their functioning should not be impacted.
6506 am__obj=conftest.${OBJEXT-o}
6507 am__minus_obj=
6508 ;;
6509 none) break ;;
6510 esac
6511 if depmode=$depmode \
6512 source=sub/conftest.c object=$am__obj \
6513 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6514 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6515 >/dev/null 2>conftest.err &&
6516 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6517 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6518 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6519 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6520 # icc doesn't choke on unknown options, it will just issue warnings
6521 # or remarks (even with -Werror). So we grep stderr for any message
6522 # that says an option was ignored or not supported.
6523 # When given -MP, icc 7.0 and 7.1 complain thusly:
6524 # icc: Command line warning: ignoring option '-M'; no argument required
6525 # The diagnosis changed in icc 8.0:
6526 # icc: Command line remark: option '-MP' not supported
6527 if (grep 'ignoring option' conftest.err ||
6528 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6529 am_cv_CC_dependencies_compiler_type=$depmode
6530 break
6531 fi
6532 fi
6533 done
6534
6535 cd ..
6536 rm -rf conftest.dir
6537else
6538 am_cv_CC_dependencies_compiler_type=none
6539fi
6540
6541fi
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6543$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6544CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6545
6546 if
6547 test "x$enable_dependency_tracking" != xno \
6548 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6549 am__fastdepCC_TRUE=
6550 am__fastdepCC_FALSE='#'
6551else
6552 am__fastdepCC_TRUE='#'
6553 am__fastdepCC_FALSE=
6554fi
6555
6556
6557am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6558
6559
6560# We require a C++11 compiler. Check if one is available, and if
6561# necessary, set CXX_DIALECT to some -std=xxx switch.
6562
6563 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6564 ac_ext=cpp
6565ac_cpp='$CXXCPP $CPPFLAGS'
6566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6569 CXX_DIALECT=""
6570 ac_success=no
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6572$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6573if ${ax_cv_cxx_compile_cxx11+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575else
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h. */
6578
6579
6580// If the compiler admits that it is not ready for C++11, why torture it?
6581// Hopefully, this will speed up the test.
6582
6583#ifndef __cplusplus
6584
6585#error "This is not a C++ compiler"
6586
6587#elif __cplusplus < 201103L
6588
6589#error "This is not a C++11 compiler"
6590
6591#else
6592
6593namespace cxx11
6594{
6595
6596 namespace test_static_assert
6597 {
6598
6599 template <typename T>
6600 struct check
6601 {
6602 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6603 };
6604
6605 }
6606
6607 namespace test_final_override
6608 {
6609
6610 struct Base
6611 {
6612 virtual void f() {}
6613 };
6614
6615 struct Derived : public Base
6616 {
6617 virtual void f() override {}
6618 };
6619
6620 }
6621
6622 namespace test_double_right_angle_brackets
6623 {
6624
6625 template < typename T >
6626 struct check {};
6627
6628 typedef check<void> single_type;
6629 typedef check<check<void>> double_type;
6630 typedef check<check<check<void>>> triple_type;
6631 typedef check<check<check<check<void>>>> quadruple_type;
6632
6633 }
6634
6635 namespace test_decltype
6636 {
6637
6638 int
6639 f()
6640 {
6641 int a = 1;
6642 decltype(a) b = 2;
6643 return a + b;
6644 }
6645
6646 }
6647
6648 namespace test_type_deduction
6649 {
6650
6651 template < typename T1, typename T2 >
6652 struct is_same
6653 {
6654 static const bool value = false;
6655 };
6656
6657 template < typename T >
6658 struct is_same<T, T>
6659 {
6660 static const bool value = true;
6661 };
6662
6663 template < typename T1, typename T2 >
6664 auto
6665 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6666 {
6667 return a1 + a2;
6668 }
6669
6670 int
6671 test(const int c, volatile int v)
6672 {
6673 static_assert(is_same<int, decltype(0)>::value == true, "");
6674 static_assert(is_same<int, decltype(c)>::value == false, "");
6675 static_assert(is_same<int, decltype(v)>::value == false, "");
6676 auto ac = c;
6677 auto av = v;
6678 auto sumi = ac + av + 'x';
6679 auto sumf = ac + av + 1.0;
6680 static_assert(is_same<int, decltype(ac)>::value == true, "");
6681 static_assert(is_same<int, decltype(av)>::value == true, "");
6682 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6683 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6684 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6685 return (sumf > 0.0) ? sumi : add(c, v);
6686 }
6687
6688 }
6689
6690 namespace test_noexcept
6691 {
6692
6693 int f() { return 0; }
6694 int g() noexcept { return 0; }
6695
6696 static_assert(noexcept(f()) == false, "");
6697 static_assert(noexcept(g()) == true, "");
6698
6699 }
6700
6701 namespace test_constexpr
6702 {
6703
6704 template < typename CharT >
6705 unsigned long constexpr
6706 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6707 {
6708 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6709 }
6710
6711 template < typename CharT >
6712 unsigned long constexpr
6713 strlen_c(const CharT *const s) noexcept
6714 {
6715 return strlen_c_r(s, 0UL);
6716 }
6717
6718 static_assert(strlen_c("") == 0UL, "");
6719 static_assert(strlen_c("1") == 1UL, "");
6720 static_assert(strlen_c("example") == 7UL, "");
6721 static_assert(strlen_c("another\0example") == 7UL, "");
6722
6723 }
6724
6725 namespace test_rvalue_references
6726 {
6727
6728 template < int N >
6729 struct answer
6730 {
6731 static constexpr int value = N;
6732 };
6733
6734 answer<1> f(int&) { return answer<1>(); }
6735 answer<2> f(const int&) { return answer<2>(); }
6736 answer<3> f(int&&) { return answer<3>(); }
6737
6738 void
6739 test()
6740 {
6741 int i = 0;
6742 const int c = 0;
6743 static_assert(decltype(f(i))::value == 1, "");
6744 static_assert(decltype(f(c))::value == 2, "");
6745 static_assert(decltype(f(0))::value == 3, "");
6746 }
6747
6748 }
6749
6750 namespace test_uniform_initialization
6751 {
6752
6753 struct test
6754 {
6755 static const int zero {};
6756 static const int one {1};
6757 };
6758
6759 static_assert(test::zero == 0, "");
6760 static_assert(test::one == 1, "");
6761
6762 }
6763
6764 namespace test_lambdas
6765 {
6766
6767 void
6768 test1()
6769 {
6770 auto lambda1 = [](){};
6771 auto lambda2 = lambda1;
6772 lambda1();
6773 lambda2();
6774 }
6775
6776 int
6777 test2()
6778 {
6779 auto a = [](int i, int j){ return i + j; }(1, 2);
6780 auto b = []() -> int { return '0'; }();
6781 auto c = [=](){ return a + b; }();
6782 auto d = [&](){ return c; }();
6783 auto e = [a, &b](int x) mutable {
6784 const auto identity = [](int y){ return y; };
6785 for (auto i = 0; i < a; ++i)
6786 a += b--;
6787 return x + identity(a + b);
6788 }(0);
6789 return a + b + c + d + e;
6790 }
6791
6792 int
6793 test3()
6794 {
6795 const auto nullary = [](){ return 0; };
6796 const auto unary = [](int x){ return x; };
6797 using nullary_t = decltype(nullary);
6798 using unary_t = decltype(unary);
6799 const auto higher1st = [](nullary_t f){ return f(); };
6800 const auto higher2nd = [unary](nullary_t f1){
6801 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6802 };
6803 return higher1st(nullary) + higher2nd(nullary)(unary);
6804 }
6805
6806 }
6807
6808 namespace test_variadic_templates
6809 {
6810
6811 template <int...>
6812 struct sum;
6813
6814 template <int N0, int... N1toN>
6815 struct sum<N0, N1toN...>
6816 {
6817 static constexpr auto value = N0 + sum<N1toN...>::value;
6818 };
6819
6820 template <>
6821 struct sum<>
6822 {
6823 static constexpr auto value = 0;
6824 };
6825
6826 static_assert(sum<>::value == 0, "");
6827 static_assert(sum<1>::value == 1, "");
6828 static_assert(sum<23>::value == 23, "");
6829 static_assert(sum<1, 2>::value == 3, "");
6830 static_assert(sum<5, 5, 11>::value == 21, "");
6831 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6832
6833 }
6834
6835 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6836 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6837 // because of this.
6838 namespace test_template_alias_sfinae
6839 {
6840
6841 struct foo {};
6842
6843 template<typename T>
6844 using member = typename T::member_type;
6845
6846 template<typename T>
6847 void func(...) {}
6848
6849 template<typename T>
6850 void func(member<T>*) {}
6851
6852 void test();
6853
6854 void test() { func<foo>(0); }
6855
6856 }
6857
6858} // namespace cxx11
6859
6860#endif // __cplusplus >= 201103L
6861
6862
6863
6864_ACEOF
6865if ac_fn_cxx_try_compile "$LINENO"; then :
6866 ax_cv_cxx_compile_cxx11=yes
6867else
6868 ax_cv_cxx_compile_cxx11=no
6869fi
6870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871fi
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6873$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6874 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6875 ac_success=yes
6876 fi
6877
6878 if test x$ac_success = xno; then
6879 for alternative in ${ax_cxx_compile_alternatives}; do
6880 switch="-std=gnu++${alternative}"
6881 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6883$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6884if eval \${$cachevar+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886else
6887 ac_save_CXX="$CXX"
6888 CXX="$CXX $switch"
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890/* end confdefs.h. */
6891
6892
6893// If the compiler admits that it is not ready for C++11, why torture it?
6894// Hopefully, this will speed up the test.
6895
6896#ifndef __cplusplus
6897
6898#error "This is not a C++ compiler"
6899
6900#elif __cplusplus < 201103L
6901
6902#error "This is not a C++11 compiler"
6903
6904#else
6905
6906namespace cxx11
6907{
6908
6909 namespace test_static_assert
6910 {
6911
6912 template <typename T>
6913 struct check
6914 {
6915 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6916 };
6917
6918 }
6919
6920 namespace test_final_override
6921 {
6922
6923 struct Base
6924 {
6925 virtual void f() {}
6926 };
6927
6928 struct Derived : public Base
6929 {
6930 virtual void f() override {}
6931 };
6932
6933 }
6934
6935 namespace test_double_right_angle_brackets
6936 {
6937
6938 template < typename T >
6939 struct check {};
6940
6941 typedef check<void> single_type;
6942 typedef check<check<void>> double_type;
6943 typedef check<check<check<void>>> triple_type;
6944 typedef check<check<check<check<void>>>> quadruple_type;
6945
6946 }
6947
6948 namespace test_decltype
6949 {
6950
6951 int
6952 f()
6953 {
6954 int a = 1;
6955 decltype(a) b = 2;
6956 return a + b;
6957 }
6958
6959 }
6960
6961 namespace test_type_deduction
6962 {
6963
6964 template < typename T1, typename T2 >
6965 struct is_same
6966 {
6967 static const bool value = false;
6968 };
6969
6970 template < typename T >
6971 struct is_same<T, T>
6972 {
6973 static const bool value = true;
6974 };
6975
6976 template < typename T1, typename T2 >
6977 auto
6978 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6979 {
6980 return a1 + a2;
6981 }
6982
6983 int
6984 test(const int c, volatile int v)
6985 {
6986 static_assert(is_same<int, decltype(0)>::value == true, "");
6987 static_assert(is_same<int, decltype(c)>::value == false, "");
6988 static_assert(is_same<int, decltype(v)>::value == false, "");
6989 auto ac = c;
6990 auto av = v;
6991 auto sumi = ac + av + 'x';
6992 auto sumf = ac + av + 1.0;
6993 static_assert(is_same<int, decltype(ac)>::value == true, "");
6994 static_assert(is_same<int, decltype(av)>::value == true, "");
6995 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6996 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6997 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6998 return (sumf > 0.0) ? sumi : add(c, v);
6999 }
7000
7001 }
7002
7003 namespace test_noexcept
7004 {
7005
7006 int f() { return 0; }
7007 int g() noexcept { return 0; }
7008
7009 static_assert(noexcept(f()) == false, "");
7010 static_assert(noexcept(g()) == true, "");
7011
7012 }
7013
7014 namespace test_constexpr
7015 {
7016
7017 template < typename CharT >
7018 unsigned long constexpr
7019 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7020 {
7021 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7022 }
7023
7024 template < typename CharT >
7025 unsigned long constexpr
7026 strlen_c(const CharT *const s) noexcept
7027 {
7028 return strlen_c_r(s, 0UL);
7029 }
7030
7031 static_assert(strlen_c("") == 0UL, "");
7032 static_assert(strlen_c("1") == 1UL, "");
7033 static_assert(strlen_c("example") == 7UL, "");
7034 static_assert(strlen_c("another\0example") == 7UL, "");
7035
7036 }
7037
7038 namespace test_rvalue_references
7039 {
7040
7041 template < int N >
7042 struct answer
7043 {
7044 static constexpr int value = N;
7045 };
7046
7047 answer<1> f(int&) { return answer<1>(); }
7048 answer<2> f(const int&) { return answer<2>(); }
7049 answer<3> f(int&&) { return answer<3>(); }
7050
7051 void
7052 test()
7053 {
7054 int i = 0;
7055 const int c = 0;
7056 static_assert(decltype(f(i))::value == 1, "");
7057 static_assert(decltype(f(c))::value == 2, "");
7058 static_assert(decltype(f(0))::value == 3, "");
7059 }
7060
7061 }
7062
7063 namespace test_uniform_initialization
7064 {
7065
7066 struct test
7067 {
7068 static const int zero {};
7069 static const int one {1};
7070 };
7071
7072 static_assert(test::zero == 0, "");
7073 static_assert(test::one == 1, "");
7074
7075 }
7076
7077 namespace test_lambdas
7078 {
7079
7080 void
7081 test1()
7082 {
7083 auto lambda1 = [](){};
7084 auto lambda2 = lambda1;
7085 lambda1();
7086 lambda2();
7087 }
7088
7089 int
7090 test2()
7091 {
7092 auto a = [](int i, int j){ return i + j; }(1, 2);
7093 auto b = []() -> int { return '0'; }();
7094 auto c = [=](){ return a + b; }();
7095 auto d = [&](){ return c; }();
7096 auto e = [a, &b](int x) mutable {
7097 const auto identity = [](int y){ return y; };
7098 for (auto i = 0; i < a; ++i)
7099 a += b--;
7100 return x + identity(a + b);
7101 }(0);
7102 return a + b + c + d + e;
7103 }
7104
7105 int
7106 test3()
7107 {
7108 const auto nullary = [](){ return 0; };
7109 const auto unary = [](int x){ return x; };
7110 using nullary_t = decltype(nullary);
7111 using unary_t = decltype(unary);
7112 const auto higher1st = [](nullary_t f){ return f(); };
7113 const auto higher2nd = [unary](nullary_t f1){
7114 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7115 };
7116 return higher1st(nullary) + higher2nd(nullary)(unary);
7117 }
7118
7119 }
7120
7121 namespace test_variadic_templates
7122 {
7123
7124 template <int...>
7125 struct sum;
7126
7127 template <int N0, int... N1toN>
7128 struct sum<N0, N1toN...>
7129 {
7130 static constexpr auto value = N0 + sum<N1toN...>::value;
7131 };
7132
7133 template <>
7134 struct sum<>
7135 {
7136 static constexpr auto value = 0;
7137 };
7138
7139 static_assert(sum<>::value == 0, "");
7140 static_assert(sum<1>::value == 1, "");
7141 static_assert(sum<23>::value == 23, "");
7142 static_assert(sum<1, 2>::value == 3, "");
7143 static_assert(sum<5, 5, 11>::value == 21, "");
7144 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7145
7146 }
7147
7148 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7149 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7150 // because of this.
7151 namespace test_template_alias_sfinae
7152 {
7153
7154 struct foo {};
7155
7156 template<typename T>
7157 using member = typename T::member_type;
7158
7159 template<typename T>
7160 void func(...) {}
7161
7162 template<typename T>
7163 void func(member<T>*) {}
7164
7165 void test();
7166
7167 void test() { func<foo>(0); }
7168
7169 }
7170
7171} // namespace cxx11
7172
7173#endif // __cplusplus >= 201103L
7174
7175
7176
7177_ACEOF
7178if ac_fn_cxx_try_compile "$LINENO"; then :
7179 eval $cachevar=yes
7180else
7181 eval $cachevar=no
7182fi
7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 CXX="$ac_save_CXX"
7185fi
7186eval ac_res=\$$cachevar
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7188$as_echo "$ac_res" >&6; }
7189 if eval test x\$$cachevar = xyes; then
7190 CXX_DIALECT="$switch"
7191 ac_success=yes
7192 break
7193 fi
7194 done
7195 fi
7196
7197 if test x$ac_success = xno; then
7198 for alternative in ${ax_cxx_compile_alternatives}; do
7199 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7200 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7202$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7203if eval \${$cachevar+:} false; then :
7204 $as_echo_n "(cached) " >&6
7205else
7206 ac_save_CXX="$CXX"
7207 CXX="$CXX $switch"
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209/* end confdefs.h. */
7210
7211
7212// If the compiler admits that it is not ready for C++11, why torture it?
7213// Hopefully, this will speed up the test.
7214
7215#ifndef __cplusplus
7216
7217#error "This is not a C++ compiler"
7218
7219#elif __cplusplus < 201103L
7220
7221#error "This is not a C++11 compiler"
7222
7223#else
7224
7225namespace cxx11
7226{
7227
7228 namespace test_static_assert
7229 {
7230
7231 template <typename T>
7232 struct check
7233 {
7234 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7235 };
7236
7237 }
7238
7239 namespace test_final_override
7240 {
7241
7242 struct Base
7243 {
7244 virtual void f() {}
7245 };
7246
7247 struct Derived : public Base
7248 {
7249 virtual void f() override {}
7250 };
7251
7252 }
7253
7254 namespace test_double_right_angle_brackets
7255 {
7256
7257 template < typename T >
7258 struct check {};
7259
7260 typedef check<void> single_type;
7261 typedef check<check<void>> double_type;
7262 typedef check<check<check<void>>> triple_type;
7263 typedef check<check<check<check<void>>>> quadruple_type;
7264
7265 }
7266
7267 namespace test_decltype
7268 {
7269
7270 int
7271 f()
7272 {
7273 int a = 1;
7274 decltype(a) b = 2;
7275 return a + b;
7276 }
7277
7278 }
7279
7280 namespace test_type_deduction
7281 {
7282
7283 template < typename T1, typename T2 >
7284 struct is_same
7285 {
7286 static const bool value = false;
7287 };
7288
7289 template < typename T >
7290 struct is_same<T, T>
7291 {
7292 static const bool value = true;
7293 };
7294
7295 template < typename T1, typename T2 >
7296 auto
7297 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7298 {
7299 return a1 + a2;
7300 }
7301
7302 int
7303 test(const int c, volatile int v)
7304 {
7305 static_assert(is_same<int, decltype(0)>::value == true, "");
7306 static_assert(is_same<int, decltype(c)>::value == false, "");
7307 static_assert(is_same<int, decltype(v)>::value == false, "");
7308 auto ac = c;
7309 auto av = v;
7310 auto sumi = ac + av + 'x';
7311 auto sumf = ac + av + 1.0;
7312 static_assert(is_same<int, decltype(ac)>::value == true, "");
7313 static_assert(is_same<int, decltype(av)>::value == true, "");
7314 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7315 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7316 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7317 return (sumf > 0.0) ? sumi : add(c, v);
7318 }
7319
7320 }
7321
7322 namespace test_noexcept
7323 {
7324
7325 int f() { return 0; }
7326 int g() noexcept { return 0; }
7327
7328 static_assert(noexcept(f()) == false, "");
7329 static_assert(noexcept(g()) == true, "");
7330
7331 }
7332
7333 namespace test_constexpr
7334 {
7335
7336 template < typename CharT >
7337 unsigned long constexpr
7338 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7339 {
7340 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7341 }
7342
7343 template < typename CharT >
7344 unsigned long constexpr
7345 strlen_c(const CharT *const s) noexcept
7346 {
7347 return strlen_c_r(s, 0UL);
7348 }
7349
7350 static_assert(strlen_c("") == 0UL, "");
7351 static_assert(strlen_c("1") == 1UL, "");
7352 static_assert(strlen_c("example") == 7UL, "");
7353 static_assert(strlen_c("another\0example") == 7UL, "");
7354
7355 }
7356
7357 namespace test_rvalue_references
7358 {
7359
7360 template < int N >
7361 struct answer
7362 {
7363 static constexpr int value = N;
7364 };
7365
7366 answer<1> f(int&) { return answer<1>(); }
7367 answer<2> f(const int&) { return answer<2>(); }
7368 answer<3> f(int&&) { return answer<3>(); }
7369
7370 void
7371 test()
7372 {
7373 int i = 0;
7374 const int c = 0;
7375 static_assert(decltype(f(i))::value == 1, "");
7376 static_assert(decltype(f(c))::value == 2, "");
7377 static_assert(decltype(f(0))::value == 3, "");
7378 }
7379
7380 }
7381
7382 namespace test_uniform_initialization
7383 {
7384
7385 struct test
7386 {
7387 static const int zero {};
7388 static const int one {1};
7389 };
7390
7391 static_assert(test::zero == 0, "");
7392 static_assert(test::one == 1, "");
7393
7394 }
7395
7396 namespace test_lambdas
7397 {
7398
7399 void
7400 test1()
7401 {
7402 auto lambda1 = [](){};
7403 auto lambda2 = lambda1;
7404 lambda1();
7405 lambda2();
7406 }
7407
7408 int
7409 test2()
7410 {
7411 auto a = [](int i, int j){ return i + j; }(1, 2);
7412 auto b = []() -> int { return '0'; }();
7413 auto c = [=](){ return a + b; }();
7414 auto d = [&](){ return c; }();
7415 auto e = [a, &b](int x) mutable {
7416 const auto identity = [](int y){ return y; };
7417 for (auto i = 0; i < a; ++i)
7418 a += b--;
7419 return x + identity(a + b);
7420 }(0);
7421 return a + b + c + d + e;
7422 }
7423
7424 int
7425 test3()
7426 {
7427 const auto nullary = [](){ return 0; };
7428 const auto unary = [](int x){ return x; };
7429 using nullary_t = decltype(nullary);
7430 using unary_t = decltype(unary);
7431 const auto higher1st = [](nullary_t f){ return f(); };
7432 const auto higher2nd = [unary](nullary_t f1){
7433 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7434 };
7435 return higher1st(nullary) + higher2nd(nullary)(unary);
7436 }
7437
7438 }
7439
7440 namespace test_variadic_templates
7441 {
7442
7443 template <int...>
7444 struct sum;
7445
7446 template <int N0, int... N1toN>
7447 struct sum<N0, N1toN...>
7448 {
7449 static constexpr auto value = N0 + sum<N1toN...>::value;
7450 };
7451
7452 template <>
7453 struct sum<>
7454 {
7455 static constexpr auto value = 0;
7456 };
7457
7458 static_assert(sum<>::value == 0, "");
7459 static_assert(sum<1>::value == 1, "");
7460 static_assert(sum<23>::value == 23, "");
7461 static_assert(sum<1, 2>::value == 3, "");
7462 static_assert(sum<5, 5, 11>::value == 21, "");
7463 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7464
7465 }
7466
7467 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7468 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7469 // because of this.
7470 namespace test_template_alias_sfinae
7471 {
7472
7473 struct foo {};
7474
7475 template<typename T>
7476 using member = typename T::member_type;
7477
7478 template<typename T>
7479 void func(...) {}
7480
7481 template<typename T>
7482 void func(member<T>*) {}
7483
7484 void test();
7485
7486 void test() { func<foo>(0); }
7487
7488 }
7489
7490} // namespace cxx11
7491
7492#endif // __cplusplus >= 201103L
7493
7494
7495
7496_ACEOF
7497if ac_fn_cxx_try_compile "$LINENO"; then :
7498 eval $cachevar=yes
7499else
7500 eval $cachevar=no
7501fi
7502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 CXX="$ac_save_CXX"
7504fi
7505eval ac_res=\$$cachevar
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7507$as_echo "$ac_res" >&6; }
7508 if eval test x\$$cachevar = xyes; then
7509 CXX_DIALECT="$switch"
7510 ac_success=yes
7511 break
7512 fi
7513 done
7514 if test x$ac_success = xyes; then
7515 break
7516 fi
7517 done
7518 fi
7519 ac_ext=c
7520ac_cpp='$CPP $CPPFLAGS'
7521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524
7525 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7526 if test x$ac_success = xno; then
7527 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7528 fi
7529 fi
7530 if test x$ac_success = xno; then
7531 HAVE_CXX11=0
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7533$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7534 else
7535 HAVE_CXX11=1
7536
7537$as_echo "#define HAVE_CXX11 1" >>confdefs.h
7538
7539 fi
7540
7541
7542
7543
7544# If we haven't got the data from the intl directory,
7545# assume NLS is disabled.
7546USE_NLS=no
7547LIBINTL=
7548LIBINTL_DEP=
7549INCINTL=
7550XGETTEXT=
7551GMSGFMT=
7552POSUB=
7553
7554if test -f ../intl/config.intl; then
7555 . ../intl/config.intl
7556fi
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7558$as_echo_n "checking whether NLS is requested... " >&6; }
7559if test x"$USE_NLS" != xyes; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
7562else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7564$as_echo "yes" >&6; }
7565
7566$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7567
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7570$as_echo_n "checking for catalogs to be installed... " >&6; }
7571 # Look for .po and .gmo files in the source directory.
7572 CATALOGS=
7573 XLINGUAS=
7574 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7575 # If there aren't any .gmo files the shell will give us the
7576 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7577 # weeded out.
7578 case "$cat" in *\**)
7579 continue;;
7580 esac
7581 # The quadruple backslash is collapsed to a double backslash
7582 # by the backticks, then collapsed again by the double quotes,
7583 # leaving us with one backslash in the sed expression (right
7584 # before the dot that mustn't act as a wildcard).
7585 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7586 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7587 # The user is allowed to set LINGUAS to a list of languages to
7588 # install catalogs for. If it's empty that means "all of them."
7589 if test "x$LINGUAS" = x; then
7590 CATALOGS="$CATALOGS $cat"
7591 XLINGUAS="$XLINGUAS $lang"
7592 else
7593 case "$LINGUAS" in *$lang*)
7594 CATALOGS="$CATALOGS $cat"
7595 XLINGUAS="$XLINGUAS $lang"
7596 ;;
7597 esac
7598 fi
7599 done
7600 LINGUAS="$XLINGUAS"
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7602$as_echo "$LINGUAS" >&6; }
7603
7604
7605 DATADIRNAME=share
7606
7607 INSTOBJEXT=.mo
7608
7609 GENCAT=gencat
7610
7611 CATOBJEXT=.gmo
7612
7613fi
7614
7615
7616 # Check for presence and size of long long.
7617 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7618if test "x$ac_cv_type_long_long" = xyes; then :
7619
7620cat >>confdefs.h <<_ACEOF
7621#define HAVE_LONG_LONG 1
7622_ACEOF
7623
7624# The cast to long int works around a bug in the HP C Compiler
7625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7627# This bug is HP SR number 8606223364.
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7629$as_echo_n "checking size of long long... " >&6; }
7630if ${ac_cv_sizeof_long_long+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632else
7633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7634
7635else
7636 if test "$ac_cv_type_long_long" = yes; then
7637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7639as_fn_error 77 "cannot compute sizeof (long long)
7640See \`config.log' for more details" "$LINENO" 5; }
7641 else
7642 ac_cv_sizeof_long_long=0
7643 fi
7644fi
7645
7646fi
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7648$as_echo "$ac_cv_sizeof_long_long" >&6; }
7649
7650
7651
7652cat >>confdefs.h <<_ACEOF
7653#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7654_ACEOF
7655
7656
7657fi
7658
7659
7660 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7661ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7662if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7663 ac_have_decl=1
7664else
7665 ac_have_decl=0
7666fi
7667
7668cat >>confdefs.h <<_ACEOF
7669#define HAVE_DECL_BASENAME $ac_have_decl
7670_ACEOF
7671ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7672if test "x$ac_cv_have_decl_ffs" = xyes; then :
7673 ac_have_decl=1
7674else
7675 ac_have_decl=0
7676fi
7677
7678cat >>confdefs.h <<_ACEOF
7679#define HAVE_DECL_FFS $ac_have_decl
7680_ACEOF
7681ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7682if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7683 ac_have_decl=1
7684else
7685 ac_have_decl=0
7686fi
7687
7688cat >>confdefs.h <<_ACEOF
7689#define HAVE_DECL_ASPRINTF $ac_have_decl
7690_ACEOF
7691ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7692if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7693 ac_have_decl=1
7694else
7695 ac_have_decl=0
7696fi
7697
7698cat >>confdefs.h <<_ACEOF
7699#define HAVE_DECL_VASPRINTF $ac_have_decl
7700_ACEOF
7701ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7702if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7703 ac_have_decl=1
7704else
7705 ac_have_decl=0
7706fi
7707
7708cat >>confdefs.h <<_ACEOF
7709#define HAVE_DECL_SNPRINTF $ac_have_decl
7710_ACEOF
7711ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7712if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7713 ac_have_decl=1
7714else
7715 ac_have_decl=0
7716fi
7717
7718cat >>confdefs.h <<_ACEOF
7719#define HAVE_DECL_VSNPRINTF $ac_have_decl
7720_ACEOF
7721
7722 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7723if test "x$ac_cv_have_decl_strtol" = xyes; then :
7724 ac_have_decl=1
7725else
7726 ac_have_decl=0
7727fi
7728
7729cat >>confdefs.h <<_ACEOF
7730#define HAVE_DECL_STRTOL $ac_have_decl
7731_ACEOF
7732ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7733if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7734 ac_have_decl=1
7735else
7736 ac_have_decl=0
7737fi
7738
7739cat >>confdefs.h <<_ACEOF
7740#define HAVE_DECL_STRTOUL $ac_have_decl
7741_ACEOF
7742ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7743if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7744 ac_have_decl=1
7745else
7746 ac_have_decl=0
7747fi
7748
7749cat >>confdefs.h <<_ACEOF
7750#define HAVE_DECL_STRTOLL $ac_have_decl
7751_ACEOF
7752ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7753if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7754 ac_have_decl=1
7755else
7756 ac_have_decl=0
7757fi
7758
7759cat >>confdefs.h <<_ACEOF
7760#define HAVE_DECL_STRTOULL $ac_have_decl
7761_ACEOF
7762
7763 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7764if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7765 ac_have_decl=1
7766else
7767 ac_have_decl=0
7768fi
7769
7770cat >>confdefs.h <<_ACEOF
7771#define HAVE_DECL_STRVERSCMP $ac_have_decl
7772_ACEOF
7773
7774
7775ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7776if test "x$ac_cv_type_size_t" = xyes; then :
7777
7778else
7779
7780cat >>confdefs.h <<_ACEOF
7781#define size_t unsigned int
7782_ACEOF
7783
7784fi
7785
05ea2a05
TT
7786
7787
7788
7789 for ac_header in $ac_header_list
7790do :
7791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7792ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7793"
7794if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7795 cat >>confdefs.h <<_ACEOF
7796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7797_ACEOF
7798
7799fi
7800
7801done
7802
7803
7804
7805
7806
7807
7808
7809ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7810if test "x$ac_cv_type_pid_t" = xyes; then :
7811
7812else
7813
7814cat >>confdefs.h <<_ACEOF
7815#define pid_t int
7816_ACEOF
7817
7818fi
7819
01027315
TT
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7821$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7822if ${ac_cv_path_SED+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824else
7825 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7826 for ac_i in 1 2 3 4 5 6 7; do
7827 ac_script="$ac_script$as_nl$ac_script"
7828 done
7829 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7830 { ac_script=; unset ac_script;}
7831 if test -z "$SED"; then
7832 ac_path_SED_found=false
7833 # Loop through the user's path and test for each of PROGNAME-LIST
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_prog in sed gsed; do
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7842 as_fn_executable_p "$ac_path_SED" || continue
7843# Check for GNU ac_path_SED and select it if it is found.
7844 # Check for GNU $ac_path_SED
7845case `"$ac_path_SED" --version 2>&1` in
7846*GNU*)
7847 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7848*)
7849 ac_count=0
7850 $as_echo_n 0123456789 >"conftest.in"
7851 while :
7852 do
7853 cat "conftest.in" "conftest.in" >"conftest.tmp"
7854 mv "conftest.tmp" "conftest.in"
7855 cp "conftest.in" "conftest.nl"
7856 $as_echo '' >> "conftest.nl"
7857 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7859 as_fn_arith $ac_count + 1 && ac_count=$as_val
7860 if test $ac_count -gt ${ac_path_SED_max-0}; then
7861 # Best one so far, save it but keep looking for a better one
7862 ac_cv_path_SED="$ac_path_SED"
7863 ac_path_SED_max=$ac_count
7864 fi
7865 # 10*(2^10) chars as input seems more than enough
7866 test $ac_count -gt 10 && break
7867 done
7868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7869esac
7870
7871 $ac_path_SED_found && break 3
7872 done
7873 done
7874 done
7875IFS=$as_save_IFS
7876 if test -z "$ac_cv_path_SED"; then
7877 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7878 fi
7879else
7880 ac_cv_path_SED=$SED
7881fi
7882
7883fi
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7885$as_echo "$ac_cv_path_SED" >&6; }
7886 SED="$ac_cv_path_SED"
7887 rm -f conftest.sed
7888
7889
05ea2a05
TT
7890 if test "X$prefix" = "XNONE"; then
7891 acl_final_prefix="$ac_default_prefix"
7892 else
7893 acl_final_prefix="$prefix"
7894 fi
7895 if test "X$exec_prefix" = "XNONE"; then
7896 acl_final_exec_prefix='${prefix}'
7897 else
7898 acl_final_exec_prefix="$exec_prefix"
7899 fi
7900 acl_save_prefix="$prefix"
7901 prefix="$acl_final_prefix"
7902 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7903 prefix="$acl_save_prefix"
7904
7905
7906# Check whether --with-gnu-ld was given.
7907if test "${with_gnu_ld+set}" = set; then :
7908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7909else
7910 with_gnu_ld=no
7911fi
7912
7913# Prepare PATH_SEPARATOR.
7914# The user is always right.
7915if test "${PATH_SEPARATOR+set}" != set; then
7916 echo "#! /bin/sh" >conf$$.sh
7917 echo "exit 0" >>conf$$.sh
7918 chmod +x conf$$.sh
7919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7920 PATH_SEPARATOR=';'
7921 else
7922 PATH_SEPARATOR=:
7923 fi
7924 rm -f conf$$.sh
7925fi
7926ac_prog=ld
7927if test "$GCC" = yes; then
7928 # Check if gcc -print-prog-name=ld gives a path.
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7930$as_echo_n "checking for ld used by GCC... " >&6; }
7931 case $host in
7932 *-*-mingw*)
7933 # gcc leaves a trailing carriage return which upsets mingw
7934 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7935 *)
7936 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7937 esac
7938 case $ac_prog in
7939 # Accept absolute paths.
7940 [\\/]* | [A-Za-z]:[\\/]*)
7941 re_direlt='/[^/][^/]*/\.\./'
7942 # Canonicalize the path of ld
7943 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7944 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7945 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7946 done
7947 test -z "$LD" && LD="$ac_prog"
7948 ;;
7949 "")
7950 # If it fails, then pretend we aren't using GCC.
7951 ac_prog=ld
7952 ;;
7953 *)
7954 # If it is relative, then search for the first ld in PATH.
7955 with_gnu_ld=unknown
7956 ;;
7957 esac
7958elif test "$with_gnu_ld" = yes; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7960$as_echo_n "checking for GNU ld... " >&6; }
7961else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7963$as_echo_n "checking for non-GNU ld... " >&6; }
7964fi
7965if ${acl_cv_path_LD+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967else
7968 if test -z "$LD"; then
7969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7970 for ac_dir in $PATH; do
7971 test -z "$ac_dir" && ac_dir=.
7972 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7973 acl_cv_path_LD="$ac_dir/$ac_prog"
7974 # Check to see if the program is GNU ld. I'd rather use --version,
7975 # but apparently some GNU ld's only accept -v.
7976 # Break only if it was the GNU/non-GNU ld that we prefer.
7977 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7978 test "$with_gnu_ld" != no && break
7979 else
7980 test "$with_gnu_ld" != yes && break
7981 fi
7982 fi
7983 done
7984 IFS="$ac_save_ifs"
7985else
7986 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7987fi
7988fi
7989
7990LD="$acl_cv_path_LD"
7991if test -n "$LD"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7993$as_echo "$LD" >&6; }
7994else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997fi
7998test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8000$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8001if ${acl_cv_prog_gnu_ld+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003else
8004 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8005if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8006 acl_cv_prog_gnu_ld=yes
8007else
8008 acl_cv_prog_gnu_ld=no
8009fi
8010fi
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8012$as_echo "$acl_cv_prog_gnu_ld" >&6; }
8013with_gnu_ld=$acl_cv_prog_gnu_ld
8014
8015
8016
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8018$as_echo_n "checking for shared library run path origin... " >&6; }
8019if ${acl_cv_rpath+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021else
8022
8023 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8024 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8025 . ./conftest.sh
8026 rm -f ./conftest.sh
8027 acl_cv_rpath=done
8028
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8031$as_echo "$acl_cv_rpath" >&6; }
8032 wl="$acl_cv_wl"
8033 libext="$acl_cv_libext"
8034 shlibext="$acl_cv_shlibext"
8035 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8036 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8037 hardcode_direct="$acl_cv_hardcode_direct"
8038 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8039 # Check whether --enable-rpath was given.
8040if test "${enable_rpath+set}" = set; then :
8041 enableval=$enable_rpath; :
8042else
8043 enable_rpath=yes
8044fi
8045
8046
8047
01027315
TT
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8049$as_echo_n "checking for ANSI C header files... " >&6; }
8050if ${ac_cv_header_stdc+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052else
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h. */
8055#include <stdlib.h>
8056#include <stdarg.h>
8057#include <string.h>
8058#include <float.h>
8059
8060int
8061main ()
8062{
8063
8064 ;
8065 return 0;
8066}
8067_ACEOF
8068if ac_fn_c_try_compile "$LINENO"; then :
8069 ac_cv_header_stdc=yes
8070else
8071 ac_cv_header_stdc=no
8072fi
8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074
8075if test $ac_cv_header_stdc = yes; then
8076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h. */
8079#include <string.h>
8080
8081_ACEOF
8082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083 $EGREP "memchr" >/dev/null 2>&1; then :
8084
8085else
8086 ac_cv_header_stdc=no
8087fi
8088rm -f conftest*
8089
8090fi
8091
8092if test $ac_cv_header_stdc = yes; then
8093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h. */
8096#include <stdlib.h>
8097
8098_ACEOF
8099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8100 $EGREP "free" >/dev/null 2>&1; then :
8101
8102else
8103 ac_cv_header_stdc=no
8104fi
8105rm -f conftest*
8106
8107fi
8108
8109if test $ac_cv_header_stdc = yes; then
8110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8111 if test "$cross_compiling" = yes; then :
8112 :
8113else
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h. */
8116#include <ctype.h>
8117#include <stdlib.h>
8118#if ((' ' & 0x0FF) == 0x020)
8119# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8120# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8121#else
8122# define ISLOWER(c) \
8123 (('a' <= (c) && (c) <= 'i') \
8124 || ('j' <= (c) && (c) <= 'r') \
8125 || ('s' <= (c) && (c) <= 'z'))
8126# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8127#endif
8128
8129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8130int
8131main ()
8132{
8133 int i;
8134 for (i = 0; i < 256; i++)
8135 if (XOR (islower (i), ISLOWER (i))
8136 || toupper (i) != TOUPPER (i))
8137 return 2;
8138 return 0;
8139}
8140_ACEOF
8141if ac_fn_c_try_run "$LINENO"; then :
8142
8143else
8144 ac_cv_header_stdc=no
8145fi
8146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8147 conftest.$ac_objext conftest.beam conftest.$ac_ext
8148fi
8149
8150fi
8151fi
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8153$as_echo "$ac_cv_header_stdc" >&6; }
8154if test $ac_cv_header_stdc = yes; then
8155
8156$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8157
8158fi
8159
8160 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8161# for constant arguments. Useless!
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8163$as_echo_n "checking for working alloca.h... " >&6; }
8164if ${ac_cv_working_alloca_h+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166else
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168/* end confdefs.h. */
8169#include <alloca.h>
8170int
8171main ()
8172{
8173char *p = (char *) alloca (2 * sizeof (int));
8174 if (p) return 0;
8175 ;
8176 return 0;
8177}
8178_ACEOF
8179if ac_fn_c_try_link "$LINENO"; then :
8180 ac_cv_working_alloca_h=yes
8181else
8182 ac_cv_working_alloca_h=no
8183fi
8184rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186fi
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8188$as_echo "$ac_cv_working_alloca_h" >&6; }
8189if test $ac_cv_working_alloca_h = yes; then
8190
8191$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8192
8193fi
8194
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8196$as_echo_n "checking for alloca... " >&6; }
8197if ${ac_cv_func_alloca_works+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199else
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201/* end confdefs.h. */
8202#ifdef __GNUC__
8203# define alloca __builtin_alloca
8204#else
8205# ifdef _MSC_VER
8206# include <malloc.h>
8207# define alloca _alloca
8208# else
8209# ifdef HAVE_ALLOCA_H
8210# include <alloca.h>
8211# else
8212# ifdef _AIX
8213 #pragma alloca
8214# else
8215# ifndef alloca /* predefined by HP cc +Olibcalls */
8216void *alloca (size_t);
8217# endif
8218# endif
8219# endif
8220# endif
8221#endif
8222
8223int
8224main ()
8225{
8226char *p = (char *) alloca (1);
8227 if (p) return 0;
8228 ;
8229 return 0;
8230}
8231_ACEOF
8232if ac_fn_c_try_link "$LINENO"; then :
8233 ac_cv_func_alloca_works=yes
8234else
8235 ac_cv_func_alloca_works=no
8236fi
8237rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239fi
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8241$as_echo "$ac_cv_func_alloca_works" >&6; }
8242
8243if test $ac_cv_func_alloca_works = yes; then
8244
8245$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8246
8247else
8248 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8249# that cause trouble. Some versions do not even contain alloca or
8250# contain a buggy version. If you still want to use their alloca,
8251# use ar to extract alloca.o from them instead of compiling alloca.c.
8252
8253ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8254
8255$as_echo "#define C_ALLOCA 1" >>confdefs.h
8256
8257
8258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8259$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8260if ${ac_cv_os_cray+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262else
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264/* end confdefs.h. */
8265#if defined CRAY && ! defined CRAY2
8266webecray
8267#else
8268wenotbecray
8269#endif
8270
8271_ACEOF
8272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8273 $EGREP "webecray" >/dev/null 2>&1; then :
8274 ac_cv_os_cray=yes
8275else
8276 ac_cv_os_cray=no
8277fi
8278rm -f conftest*
8279
8280fi
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8282$as_echo "$ac_cv_os_cray" >&6; }
8283if test $ac_cv_os_cray = yes; then
8284 for ac_func in _getb67 GETB67 getb67; do
8285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8286ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8287if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8288
8289cat >>confdefs.h <<_ACEOF
8290#define CRAY_STACKSEG_END $ac_func
8291_ACEOF
8292
8293 break
8294fi
8295
8296 done
8297fi
8298
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8300$as_echo_n "checking stack direction for C alloca... " >&6; }
8301if ${ac_cv_c_stack_direction+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303else
8304 if test "$cross_compiling" = yes; then :
8305 ac_cv_c_stack_direction=0
8306else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h. */
8309$ac_includes_default
8310int
8311find_stack_direction (int *addr, int depth)
8312{
8313 int dir, dummy = 0;
8314 if (! addr)
8315 addr = &dummy;
8316 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8317 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8318 return dir + dummy;
8319}
8320
8321int
8322main (int argc, char **argv)
8323{
8324 return find_stack_direction (0, argc + !argv + 20) < 0;
8325}
8326_ACEOF
8327if ac_fn_c_try_run "$LINENO"; then :
8328 ac_cv_c_stack_direction=1
8329else
8330 ac_cv_c_stack_direction=-1
8331fi
8332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8333 conftest.$ac_objext conftest.beam conftest.$ac_ext
8334fi
8335
8336fi
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8338$as_echo "$ac_cv_c_stack_direction" >&6; }
8339cat >>confdefs.h <<_ACEOF
8340#define STACK_DIRECTION $ac_cv_c_stack_direction
8341_ACEOF
8342
8343
8344fi
8345
8346
8347 WIN32APILIBS=
8348 case ${host} in
8349 *mingw32*)
8350
8351$as_echo "#define USE_WIN32API 1" >>confdefs.h
8352
8353 WIN32APILIBS="-lws2_32"
8354 ;;
8355 esac
8356
8357
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8359$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8360if ${am_cv_langinfo_codeset+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362else
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364/* end confdefs.h. */
8365#include <langinfo.h>
8366int
8367main ()
8368{
8369char* cs = nl_langinfo(CODESET);
8370 ;
8371 return 0;
8372}
8373_ACEOF
8374if ac_fn_c_try_link "$LINENO"; then :
8375 am_cv_langinfo_codeset=yes
8376else
8377 am_cv_langinfo_codeset=no
8378fi
8379rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381
8382fi
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8384$as_echo "$am_cv_langinfo_codeset" >&6; }
8385 if test $am_cv_langinfo_codeset = yes; then
8386
8387$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8388
8389 fi
8390
8391
05ea2a05 8392 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 sys/procfs.h proc_service.h
01027315
TT
8393do :
8394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8395ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8397 cat >>confdefs.h <<_ACEOF
8398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8399_ACEOF
8400
8401fi
8402
8403done
8404
8405
05ea2a05
TT
8406
8407for ac_func in getpagesize
01027315 8408do :
05ea2a05
TT
8409 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8410if test "x$ac_cv_func_getpagesize" = xyes; then :
01027315 8411 cat >>confdefs.h <<_ACEOF
05ea2a05 8412#define HAVE_GETPAGESIZE 1
01027315
TT
8413_ACEOF
8414
8415fi
8416done
8417
05ea2a05
TT
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8419$as_echo_n "checking for working mmap... " >&6; }
8420if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8421 $as_echo_n "(cached) " >&6
01027315 8422else
05ea2a05
TT
8423 if test "$cross_compiling" = yes; then :
8424 ac_cv_func_mmap_fixed_mapped=no
8425else
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h. */
8428$ac_includes_default
8429/* malloc might have been renamed as rpl_malloc. */
8430#undef malloc
8431
8432/* Thanks to Mike Haertel and Jim Avera for this test.
8433 Here is a matrix of mmap possibilities:
8434 mmap private not fixed
8435 mmap private fixed at somewhere currently unmapped
8436 mmap private fixed at somewhere already mapped
8437 mmap shared not fixed
8438 mmap shared fixed at somewhere currently unmapped
8439 mmap shared fixed at somewhere already mapped
8440 For private mappings, we should verify that changes cannot be read()
8441 back from the file, nor mmap's back from the file at a different
8442 address. (There have been systems where private was not correctly
8443 implemented like the infamous i386 svr4.0, and systems where the
8444 VM page cache was not coherent with the file system buffer cache
8445 like early versions of FreeBSD and possibly contemporary NetBSD.)
8446 For shared mappings, we should conversely verify that changes get
8447 propagated back to all the places they're supposed to be.
8448
8449 Grep wants private fixed already mapped.
8450 The main things grep needs to know about mmap are:
8451 * does it exist and is it safe to write into the mmap'd area
8452 * how to use it (BSD variants) */
8453
8454#include <fcntl.h>
8455#include <sys/mman.h>
8456
8457#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8458char *malloc ();
8459#endif
01027315 8460
05ea2a05
TT
8461/* This mess was copied from the GNU getpagesize.h. */
8462#ifndef HAVE_GETPAGESIZE
8463# ifdef _SC_PAGESIZE
8464# define getpagesize() sysconf(_SC_PAGESIZE)
8465# else /* no _SC_PAGESIZE */
8466# ifdef HAVE_SYS_PARAM_H
8467# include <sys/param.h>
8468# ifdef EXEC_PAGESIZE
8469# define getpagesize() EXEC_PAGESIZE
8470# else /* no EXEC_PAGESIZE */
8471# ifdef NBPG
8472# define getpagesize() NBPG * CLSIZE
8473# ifndef CLSIZE
8474# define CLSIZE 1
8475# endif /* no CLSIZE */
8476# else /* no NBPG */
8477# ifdef NBPC
8478# define getpagesize() NBPC
8479# else /* no NBPC */
8480# ifdef PAGESIZE
8481# define getpagesize() PAGESIZE
8482# endif /* PAGESIZE */
8483# endif /* no NBPC */
8484# endif /* no NBPG */
8485# endif /* no EXEC_PAGESIZE */
8486# else /* no HAVE_SYS_PARAM_H */
8487# define getpagesize() 8192 /* punt totally */
8488# endif /* no HAVE_SYS_PARAM_H */
8489# endif /* no _SC_PAGESIZE */
8490
8491#endif /* no HAVE_GETPAGESIZE */
01027315 8492
05ea2a05
TT
8493int
8494main ()
8495{
8496 char *data, *data2, *data3;
8497 const char *cdata2;
8498 int i, pagesize;
8499 int fd, fd2;
01027315 8500
05ea2a05 8501 pagesize = getpagesize ();
01027315 8502
05ea2a05
TT
8503 /* First, make a file with some known garbage in it. */
8504 data = (char *) malloc (pagesize);
8505 if (!data)
8506 return 1;
8507 for (i = 0; i < pagesize; ++i)
8508 *(data + i) = rand ();
8509 umask (0);
8510 fd = creat ("conftest.mmap", 0600);
8511 if (fd < 0)
8512 return 2;
8513 if (write (fd, data, pagesize) != pagesize)
8514 return 3;
8515 close (fd);
8516
8517 /* Next, check that the tail of a page is zero-filled. File must have
8518 non-zero length, otherwise we risk SIGBUS for entire page. */
8519 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8520 if (fd2 < 0)
8521 return 4;
8522 cdata2 = "";
8523 if (write (fd2, cdata2, 1) != 1)
8524 return 5;
8525 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8526 if (data2 == MAP_FAILED)
8527 return 6;
8528 for (i = 0; i < pagesize; ++i)
8529 if (*(data2 + i))
8530 return 7;
8531 close (fd2);
8532 if (munmap (data2, pagesize))
8533 return 8;
8534
8535 /* Next, try to mmap the file at a fixed address which already has
8536 something else allocated at it. If we can, also make sure that
8537 we see the same garbage. */
8538 fd = open ("conftest.mmap", O_RDWR);
8539 if (fd < 0)
8540 return 9;
8541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8543 return 10;
8544 for (i = 0; i < pagesize; ++i)
8545 if (*(data + i) != *(data2 + i))
8546 return 11;
8547
8548 /* Finally, make sure that changes to the mapped area do not
8549 percolate back to the file as seen by read(). (This is a bug on
8550 some variants of i386 svr4.0.) */
8551 for (i = 0; i < pagesize; ++i)
8552 *(data2 + i) = *(data2 + i) + 1;
8553 data3 = (char *) malloc (pagesize);
8554 if (!data3)
8555 return 12;
8556 if (read (fd, data3, pagesize) != pagesize)
8557 return 13;
8558 for (i = 0; i < pagesize; ++i)
8559 if (*(data + i) != *(data3 + i))
8560 return 14;
8561 close (fd);
8562 return 0;
8563}
8564_ACEOF
8565if ac_fn_c_try_run "$LINENO"; then :
8566 ac_cv_func_mmap_fixed_mapped=yes
8567else
8568 ac_cv_func_mmap_fixed_mapped=no
8569fi
8570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8571 conftest.$ac_objext conftest.beam conftest.$ac_ext
8572fi
01027315 8573
05ea2a05
TT
8574fi
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8576$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8577if test $ac_cv_func_mmap_fixed_mapped = yes; then
01027315 8578
05ea2a05 8579$as_echo "#define HAVE_MMAP 1" >>confdefs.h
01027315 8580
05ea2a05
TT
8581fi
8582rm -f conftest.mmap conftest.txt
01027315 8583
05ea2a05
TT
8584 for ac_header in vfork.h
8585do :
8586 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8587if test "x$ac_cv_header_vfork_h" = xyes; then :
8588 cat >>confdefs.h <<_ACEOF
8589#define HAVE_VFORK_H 1
8590_ACEOF
01027315 8591
05ea2a05 8592fi
01027315 8593
05ea2a05
TT
8594done
8595
8596for ac_func in fork vfork
8597do :
8598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8599ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8600if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8601 cat >>confdefs.h <<_ACEOF
8602#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8603_ACEOF
01027315 8604
01027315 8605fi
05ea2a05 8606done
01027315 8607
05ea2a05
TT
8608if test "x$ac_cv_func_fork" = xyes; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8610$as_echo_n "checking for working fork... " >&6; }
8611if ${ac_cv_func_fork_works+:} false; then :
8612 $as_echo_n "(cached) " >&6
8613else
8614 if test "$cross_compiling" = yes; then :
8615 ac_cv_func_fork_works=cross
8616else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h. */
8619$ac_includes_default
01027315
TT
8620int
8621main ()
8622{
05ea2a05
TT
8623
8624 /* By Ruediger Kuhlmann. */
8625 return fork () < 0;
8626
01027315
TT
8627 ;
8628 return 0;
8629}
8630_ACEOF
05ea2a05
TT
8631if ac_fn_c_try_run "$LINENO"; then :
8632 ac_cv_func_fork_works=yes
8633else
8634 ac_cv_func_fork_works=no
01027315 8635fi
05ea2a05
TT
8636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8637 conftest.$ac_objext conftest.beam conftest.$ac_ext
01027315
TT
8638fi
8639
05ea2a05
TT
8640fi
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8642$as_echo "$ac_cv_func_fork_works" >&6; }
01027315 8643
05ea2a05
TT
8644else
8645 ac_cv_func_fork_works=$ac_cv_func_fork
8646fi
8647if test "x$ac_cv_func_fork_works" = xcross; then
8648 case $host in
8649 *-*-amigaos* | *-*-msdosdjgpp*)
8650 # Override, as these systems have only a dummy fork() stub
8651 ac_cv_func_fork_works=no
8652 ;;
8653 *)
8654 ac_cv_func_fork_works=yes
8655 ;;
8656 esac
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8658$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8659fi
8660ac_cv_func_vfork_works=$ac_cv_func_vfork
8661if test "x$ac_cv_func_vfork" = xyes; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8663$as_echo_n "checking for working vfork... " >&6; }
8664if ${ac_cv_func_vfork_works+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666else
8667 if test "$cross_compiling" = yes; then :
8668 ac_cv_func_vfork_works=cross
8669else
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671/* end confdefs.h. */
8672/* Thanks to Paul Eggert for this test. */
8673$ac_includes_default
8674#include <sys/wait.h>
8675#ifdef HAVE_VFORK_H
8676# include <vfork.h>
8677#endif
8678/* On some sparc systems, changes by the child to local and incoming
8679 argument registers are propagated back to the parent. The compiler
8680 is told about this with #include <vfork.h>, but some compilers
8681 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8682 static variable whose address is put into a register that is
8683 clobbered by the vfork. */
8684static void
8685#ifdef __cplusplus
8686sparc_address_test (int arg)
8687# else
8688sparc_address_test (arg) int arg;
8689#endif
8690{
8691 static pid_t child;
8692 if (!child) {
8693 child = vfork ();
8694 if (child < 0) {
8695 perror ("vfork");
8696 _exit(2);
8697 }
8698 if (!child) {
8699 arg = getpid();
8700 write(-1, "", 0);
8701 _exit (arg);
8702 }
8703 }
8704}
01027315 8705
05ea2a05
TT
8706int
8707main ()
8708{
8709 pid_t parent = getpid ();
8710 pid_t child;
8711
8712 sparc_address_test (0);
8713
8714 child = vfork ();
8715
8716 if (child == 0) {
8717 /* Here is another test for sparc vfork register problems. This
8718 test uses lots of local variables, at least as many local
8719 variables as main has allocated so far including compiler
8720 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8721 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8722 reuse the register of parent for one of the local variables,
8723 since it will think that parent can't possibly be used any more
8724 in this routine. Assigning to the local variable will thus
8725 munge parent in the parent process. */
8726 pid_t
8727 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8728 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8729 /* Convince the compiler that p..p7 are live; otherwise, it might
8730 use the same hardware register for all 8 local variables. */
8731 if (p != p1 || p != p2 || p != p3 || p != p4
8732 || p != p5 || p != p6 || p != p7)
8733 _exit(1);
8734
8735 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8736 from child file descriptors. If the child closes a descriptor
8737 before it execs or exits, this munges the parent's descriptor
8738 as well. Test for this by closing stdout in the child. */
8739 _exit(close(fileno(stdout)) != 0);
8740 } else {
8741 int status;
8742 struct stat st;
8743
8744 while (wait(&status) != child)
8745 ;
8746 return (
8747 /* Was there some problem with vforking? */
8748 child < 0
8749
8750 /* Did the child fail? (This shouldn't happen.) */
8751 || status
8752
8753 /* Did the vfork/compiler bug occur? */
8754 || parent != getpid()
8755
8756 /* Did the file descriptor bug occur? */
8757 || fstat(fileno(stdout), &st) != 0
8758 );
8759 }
8760}
8761_ACEOF
8762if ac_fn_c_try_run "$LINENO"; then :
8763 ac_cv_func_vfork_works=yes
8764else
8765 ac_cv_func_vfork_works=no
8766fi
8767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8768 conftest.$ac_objext conftest.beam conftest.$ac_ext
8769fi
01027315 8770
05ea2a05
TT
8771fi
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8773$as_echo "$ac_cv_func_vfork_works" >&6; }
01027315 8774
05ea2a05
TT
8775fi;
8776if test "x$ac_cv_func_fork_works" = xcross; then
8777 ac_cv_func_vfork_works=$ac_cv_func_vfork
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8779$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8780fi
01027315 8781
05ea2a05 8782if test "x$ac_cv_func_vfork_works" = xyes; then
01027315 8783
05ea2a05 8784$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
01027315 8785
05ea2a05 8786else
01027315 8787
05ea2a05 8788$as_echo "#define vfork fork" >>confdefs.h
01027315 8789
05ea2a05
TT
8790fi
8791if test "x$ac_cv_func_fork_works" = xyes; then
01027315 8792
05ea2a05 8793$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
01027315 8794
05ea2a05 8795fi
01027315 8796
05ea2a05
TT
8797 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction \
8798 ptrace64 sbrk setns sigaltstack sigprocmask \
8799 setpgid setpgrp getrusage getauxval
8800do :
8801 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8802ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8803if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8804 cat >>confdefs.h <<_ACEOF
8805#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
01027315 8806_ACEOF
05ea2a05 8807
01027315 8808fi
05ea2a05 8809done
01027315 8810
01027315 8811
05ea2a05
TT
8812 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8813"
8814if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8815 ac_have_decl=1
8816else
8817 ac_have_decl=0
8818fi
01027315 8819
05ea2a05
TT
8820cat >>confdefs.h <<_ACEOF
8821#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8822_ACEOF
01027315 8823
01027315 8824
05ea2a05
TT
8825 if test "$cross_compiling" = yes; then :
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827/* end confdefs.h. */
8828#include <sys/personality.h>
8829int
8830main ()
8831{
01027315 8832
05ea2a05
TT
8833 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8834 # define ADDR_NO_RANDOMIZE 0x0040000
8835 # endif
8836 /* Test the flag could be set and stays set. */
8837 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8838 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8839 return 1
8840 ;
8841 return 0;
8842}
8843_ACEOF
8844if ac_fn_c_try_link "$LINENO"; then :
8845 have_personality=true
8846else
8847 have_personality=false
8848fi
8849rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8851else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h. */
8854#include <sys/personality.h>
8855int
8856main ()
8857{
8858
8859 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8860 # define ADDR_NO_RANDOMIZE 0x0040000
8861 # endif
8862 /* Test the flag could be set and stays set. */
8863 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8864 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8865 return 1
8866 ;
8867 return 0;
8868}
8869_ACEOF
8870if ac_fn_c_try_run "$LINENO"; then :
8871 have_personality=true
8872else
8873 have_personality=false
8874fi
8875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8876 conftest.$ac_objext conftest.beam conftest.$ac_ext
01027315
TT
8877fi
8878
05ea2a05
TT
8879 if $have_personality
8880 then
01027315 8881
05ea2a05 8882$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
01027315 8883
05ea2a05 8884 fi
01027315 8885
05ea2a05
TT
8886 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8887if test "x$ac_cv_have_decl_strstr" = xyes; then :
8888 ac_have_decl=1
01027315 8889else
05ea2a05 8890 ac_have_decl=0
01027315
TT
8891fi
8892
05ea2a05
TT
8893cat >>confdefs.h <<_ACEOF
8894#define HAVE_DECL_STRSTR $ac_have_decl
8895_ACEOF
01027315 8896
05ea2a05
TT
8897
8898 # ----------------------- #
8899 # Checks for structures. #
8900 # ----------------------- #
8901
8902 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8903if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8904
8905cat >>confdefs.h <<_ACEOF
8906#define HAVE_STRUCT_STAT_ST_BLOCKS 1
8907_ACEOF
8908
8909
8910fi
8911ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8912if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8913
8914cat >>confdefs.h <<_ACEOF
8915#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8916_ACEOF
8917
8918
8919fi
8920
8921
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8923$as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8924if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315
TT
8925 $as_echo_n "(cached) " >&6
8926else
05ea2a05
TT
8927 ac_func_search_save_LIBS=$LIBS
8928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 8929/* end confdefs.h. */
01027315 8930
05ea2a05
TT
8931/* Override any GCC internal prototype to avoid an error.
8932 Use char because int might match the return type of a GCC
8933 builtin and then its argument prototype would still apply. */
8934#ifdef __cplusplus
8935extern "C"
8936#endif
8937char kinfo_getfile ();
8938int
8939main ()
8940{
8941return kinfo_getfile ();
8942 ;
8943 return 0;
8944}
01027315 8945_ACEOF
05ea2a05
TT
8946for ac_lib in '' util util-freebsd; do
8947 if test -z "$ac_lib"; then
8948 ac_res="none required"
8949 else
8950 ac_res=-l$ac_lib
8951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8952 fi
8953 if ac_fn_c_try_link "$LINENO"; then :
8954 ac_cv_search_kinfo_getfile=$ac_res
01027315 8955fi
05ea2a05
TT
8956rm -f core conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext
8958 if ${ac_cv_search_kinfo_getfile+:} false; then :
8959 break
8960fi
8961done
8962if ${ac_cv_search_kinfo_getfile+:} false; then :
01027315 8963
05ea2a05
TT
8964else
8965 ac_cv_search_kinfo_getfile=no
8966fi
8967rm conftest.$ac_ext
8968LIBS=$ac_func_search_save_LIBS
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8971$as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8972ac_res=$ac_cv_search_kinfo_getfile
8973if test "$ac_res" != no; then :
8974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8975
8976$as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
01027315
TT
8977
8978fi
01027315 8979
01027315 8980
05ea2a05
TT
8981 # Check for std::thread. This does not work on some platforms, like
8982 # mingw and DJGPP.
8983 ac_ext=cpp
8984ac_cpp='$CXXCPP $CPPFLAGS'
8985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
01027315 8988
01027315 8989
01027315 8990
01027315 8991
05ea2a05
TT
8992
8993ac_ext=c
8994ac_cpp='$CPP $CPPFLAGS'
8995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998
8999ax_pthread_ok=no
9000
9001# We used to check for pthread.h first, but this fails if pthread.h
9002# requires special compiler flags (e.g. on Tru64 or Sequent).
9003# It gets checked for in the link test anyway.
9004
9005# First of all, check if the user has set any of the PTHREAD_LIBS,
9006# etcetera environment variables, and if threads linking works using
9007# them:
9008if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9009 ax_pthread_save_CC="$CC"
9010 ax_pthread_save_CFLAGS="$CFLAGS"
9011 ax_pthread_save_LIBS="$LIBS"
9012 if test "x$PTHREAD_CC" != "x"; then :
9013 CC="$PTHREAD_CC"
9014fi
9015 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9016 LIBS="$PTHREAD_LIBS $LIBS"
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9018$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h. */
9021
9022/* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9025#ifdef __cplusplus
9026extern "C"
9027#endif
9028char pthread_join ();
9029int
9030main ()
9031{
9032return pthread_join ();
9033 ;
9034 return 0;
9035}
9036_ACEOF
9037if ac_fn_c_try_link "$LINENO"; then :
9038 ax_pthread_ok=yes
9039fi
9040rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9043$as_echo "$ax_pthread_ok" >&6; }
9044 if test "x$ax_pthread_ok" = "xno"; then
9045 PTHREAD_LIBS=""
9046 PTHREAD_CFLAGS=""
9047 fi
9048 CC="$ax_pthread_save_CC"
9049 CFLAGS="$ax_pthread_save_CFLAGS"
9050 LIBS="$ax_pthread_save_LIBS"
9051fi
9052
9053# We must check for the threads library under a number of different
9054# names; the ordering is very important because some systems
9055# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9056# libraries is broken (non-POSIX).
9057
9058# Create a list of thread flags to try. Items starting with a "-" are
9059# C compiler flags, and other items are library names, except for "none"
9060# which indicates that we try without any flags at all, and "pthread-config"
9061# which is a program returning the flags for the Pth emulation library.
9062
9063ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9064
9065# The ordering *is* (sometimes) important. Some notes on the
9066# individual items follow:
9067
9068# pthreads: AIX (must check this before -lpthread)
9069# none: in case threads are in libc; should be tried before -Kthread and
9070# other compiler flags to prevent continual compiler warnings
9071# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9072# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9073# (Note: HP C rejects this with "bad form for `-t' option")
9074# -pthreads: Solaris/gcc (Note: HP C also rejects)
9075# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9076# doesn't hurt to check since this sometimes defines pthreads and
9077# -D_REENTRANT too), HP C (must be checked before -lpthread, which
9078# is present but should not be used directly; and before -mthreads,
9079# because the compiler interprets this as "-mt" + "-hreads")
9080# -mthreads: Mingw32/gcc, Lynx/gcc
9081# pthread: Linux, etcetera
9082# --thread-safe: KAI C++
9083# pthread-config: use pthread-config program (for GNU Pth library)
9084
9085case $host_os in
9086
9087 freebsd*)
9088
9089 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9090 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9091
9092 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9093 ;;
9094
9095 hpux*)
9096
9097 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9098 # multi-threading and also sets -lpthread."
9099
9100 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9101 ;;
9102
9103 openedition*)
9104
9105 # IBM z/OS requires a feature-test macro to be defined in order to
9106 # enable POSIX threads at all, so give the user a hint if this is
9107 # not set. (We don't define these ourselves, as they can affect
9108 # other portions of the system API in unpredictable ways.)
9109
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h. */
9112
9113# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9114 AX_PTHREAD_ZOS_MISSING
9115# endif
9116
9117_ACEOF
9118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9119 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9121$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9122fi
9123rm -f conftest*
9124
9125 ;;
9126
9127 solaris*)
9128
9129 # On Solaris (at least, for some versions), libc contains stubbed
9130 # (non-functional) versions of the pthreads routines, so link-based
9131 # tests will erroneously succeed. (N.B.: The stubs are missing
9132 # pthread_cleanup_push, or rather a function called by this macro,
9133 # so we could check for that, but who knows whether they'll stub
9134 # that too in a future libc.) So we'll check first for the
9135 # standard Solaris way of linking pthreads (-mt -lpthread).
9136
9137 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9138 ;;
9139esac
9140
9141# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9142
9143if test "x$GCC" = "xyes"; then :
9144 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9145fi
9146
9147# The presence of a feature test macro requesting re-entrant function
9148# definitions is, on some systems, a strong hint that pthreads support is
9149# correctly enabled
9150
9151case $host_os in
9152 darwin* | hpux* | linux* | osf* | solaris*)
9153 ax_pthread_check_macro="_REENTRANT"
9154 ;;
9155
9156 aix*)
9157 ax_pthread_check_macro="_THREAD_SAFE"
9158 ;;
9159
9160 *)
9161 ax_pthread_check_macro="--"
9162 ;;
9163esac
9164if test "x$ax_pthread_check_macro" = "x--"; then :
9165 ax_pthread_check_cond=0
9166else
9167 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9168fi
9169
9170# Are we compiling with Clang?
9171
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9173$as_echo_n "checking whether $CC is Clang... " >&6; }
9174if ${ax_cv_PTHREAD_CLANG+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176else
9177 ax_cv_PTHREAD_CLANG=no
9178 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9179 if test "x$GCC" = "xyes"; then
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181/* end confdefs.h. */
9182/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9183# if defined(__clang__) && defined(__llvm__)
9184 AX_PTHREAD_CC_IS_CLANG
9185# endif
9186
9187_ACEOF
9188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9189 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9190 ax_cv_PTHREAD_CLANG=yes
9191fi
9192rm -f conftest*
9193
9194 fi
9195
9196fi
9197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9198$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9199ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9200
9201ax_pthread_clang_warning=no
9202
9203# Clang needs special handling, because older versions handle the -pthread
9204# option in a rather... idiosyncratic way
9205
9206if test "x$ax_pthread_clang" = "xyes"; then
9207
9208 # Clang takes -pthread; it has never supported any other flag
9209
9210 # (Note 1: This will need to be revisited if a system that Clang
9211 # supports has POSIX threads in a separate library. This tends not
9212 # to be the way of modern systems, but it's conceivable.)
9213
9214 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9215 # to get POSIX threads support; the API is always present and
9216 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9217 # -pthread does define _REENTRANT, and while the Darwin headers
9218 # ignore this macro, third-party headers might not.)
01027315
TT
9219
9220 PTHREAD_CFLAGS="-pthread"
9221 PTHREAD_LIBS=
9222
9223 ax_pthread_ok=yes
9224
9225 # However, older versions of Clang make a point of warning the user
9226 # that, in an invocation where only linking and no compilation is
9227 # taking place, the -pthread option has no effect ("argument unused
9228 # during compilation"). They expect -pthread to be passed in only
9229 # when source code is being compiled.
9230 #
9231 # Problem is, this is at odds with the way Automake and most other
9232 # C build frameworks function, which is that the same flags used in
9233 # compilation (CFLAGS) are also used in linking. Many systems
9234 # supported by AX_PTHREAD require exactly this for POSIX threads
9235 # support, and in fact it is often not straightforward to specify a
9236 # flag that is used only in the compilation phase and not in
9237 # linking. Such a scenario is extremely rare in practice.
9238 #
9239 # Even though use of the -pthread flag in linking would only print
9240 # a warning, this can be a nuisance for well-run software projects
9241 # that build with -Werror. So if the active version of Clang has
9242 # this misfeature, we search for an option to squash it.
9243
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9245$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9246if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9247 $as_echo_n "(cached) " >&6
9248else
9249 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9250 # Create an alternate version of $ac_link that compiles and
9251 # links in two steps (.c -> .o, .o -> exe) instead of one
9252 # (.c -> exe), because the warning occurs only in the second
9253 # step
9254 ax_pthread_save_ac_link="$ac_link"
9255 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9256 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9257 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9258 ax_pthread_save_CFLAGS="$CFLAGS"
9259 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9260 if test "x$ax_pthread_try" = "xunknown"; then :
9261 break
9262fi
9263 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9264 ac_link="$ax_pthread_save_ac_link"
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266/* end confdefs.h. */
9267int main(void){return 0;}
9268_ACEOF
9269if ac_fn_c_try_link "$LINENO"; then :
9270 ac_link="$ax_pthread_2step_ac_link"
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272/* end confdefs.h. */
9273int main(void){return 0;}
9274_ACEOF
9275if ac_fn_c_try_link "$LINENO"; then :
9276 break
9277fi
9278rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280
9281fi
9282rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
9284 done
9285 ac_link="$ax_pthread_save_ac_link"
9286 CFLAGS="$ax_pthread_save_CFLAGS"
9287 if test "x$ax_pthread_try" = "x"; then :
9288 ax_pthread_try=no
9289fi
9290 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9291
9292fi
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9294$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9295
9296 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9297 no | unknown) ;;
9298 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9299 esac
9300
9301fi # $ax_pthread_clang = yes
9302
9303if test "x$ax_pthread_ok" = "xno"; then
9304for ax_pthread_try_flag in $ax_pthread_flags; do
9305
9306 case $ax_pthread_try_flag in
9307 none)
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9309$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9310 ;;
9311
9312 -mt,pthread)
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9314$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9315 PTHREAD_CFLAGS="-mt"
9316 PTHREAD_LIBS="-lpthread"
9317 ;;
9318
9319 -*)
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9321$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9322 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9323 ;;
9324
9325 pthread-config)
9326 # Extract the first word of "pthread-config", so it can be a program name with args.
9327set dummy pthread-config; ac_word=$2
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329$as_echo_n "checking for $ac_word... " >&6; }
9330if ${ac_cv_prog_ax_pthread_config+:} false; then :
9331 $as_echo_n "(cached) " >&6
9332else
9333 if test -n "$ax_pthread_config"; then
9334 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9335else
9336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337for as_dir in $PATH
9338do
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9343 ac_cv_prog_ax_pthread_config="yes"
9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9346 fi
05ea2a05
TT
9347done
9348 done
9349IFS=$as_save_IFS
9350
9351 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9352fi
9353fi
9354ax_pthread_config=$ac_cv_prog_ax_pthread_config
9355if test -n "$ax_pthread_config"; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9357$as_echo "$ax_pthread_config" >&6; }
9358else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360$as_echo "no" >&6; }
9361fi
9362
9363
9364 if test "x$ax_pthread_config" = "xno"; then :
9365 continue
9366fi
9367 PTHREAD_CFLAGS="`pthread-config --cflags`"
9368 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9369 ;;
9370
9371 *)
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9373$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9374 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9375 ;;
9376 esac
9377
9378 ax_pthread_save_CFLAGS="$CFLAGS"
9379 ax_pthread_save_LIBS="$LIBS"
9380 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9381 LIBS="$PTHREAD_LIBS $LIBS"
9382
9383 # Check for various functions. We must include pthread.h,
9384 # since some functions may be macros. (On the Sequent, we
9385 # need a special flag -Kthread to make this header compile.)
9386 # We check for pthread_join because it is in -lpthread on IRIX
9387 # while pthread_create is in libc. We check for pthread_attr_init
9388 # due to DEC craziness with -lpthreads. We check for
9389 # pthread_cleanup_push because it is one of the few pthread
9390 # functions on Solaris that doesn't have a non-functional libc stub.
9391 # We try pthread_create on general principles.
9392
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h. */
9395#include <pthread.h>
9396# if $ax_pthread_check_cond
9397# error "$ax_pthread_check_macro must be defined"
9398# endif
9399 static void routine(void *a) { a = 0; }
9400 static void *start_routine(void *a) { return a; }
9401int
9402main ()
9403{
9404pthread_t th; pthread_attr_t attr;
9405 pthread_create(&th, 0, start_routine, 0);
9406 pthread_join(th, 0);
9407 pthread_attr_init(&attr);
9408 pthread_cleanup_push(routine, 0);
9409 pthread_cleanup_pop(0) /* ; */
9410 ;
9411 return 0;
9412}
9413_ACEOF
9414if ac_fn_c_try_link "$LINENO"; then :
9415 ax_pthread_ok=yes
9416fi
9417rm -f core conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419
9420 CFLAGS="$ax_pthread_save_CFLAGS"
9421 LIBS="$ax_pthread_save_LIBS"
9422
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9424$as_echo "$ax_pthread_ok" >&6; }
9425 if test "x$ax_pthread_ok" = "xyes"; then :
9426 break
9427fi
9428
9429 PTHREAD_LIBS=""
9430 PTHREAD_CFLAGS=""
9431done
9432fi
9433
9434# Various other checks:
9435if test "x$ax_pthread_ok" = "xyes"; then
9436 ax_pthread_save_CFLAGS="$CFLAGS"
9437 ax_pthread_save_LIBS="$LIBS"
9438 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9439 LIBS="$PTHREAD_LIBS $LIBS"
9440
9441 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9443$as_echo_n "checking for joinable pthread attribute... " >&6; }
9444if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446else
9447 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9448 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450/* end confdefs.h. */
9451#include <pthread.h>
9452int
9453main ()
9454{
9455int attr = $ax_pthread_attr; return attr /* ; */
9456 ;
9457 return 0;
9458}
9459_ACEOF
9460if ac_fn_c_try_link "$LINENO"; then :
9461 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9462fi
9463rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465 done
9466
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9469$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9470 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9471 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9472 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9473
9474cat >>confdefs.h <<_ACEOF
9475#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9476_ACEOF
9477
9478 ax_pthread_joinable_attr_defined=yes
9479
9480fi
9481
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9483$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9484if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9485 $as_echo_n "(cached) " >&6
9486else
9487 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9488 case $host_os in
9489 solaris*)
9490 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9491 ;;
9492 esac
9493
9494fi
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9496$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9497 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9498 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9499 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9500 ax_pthread_special_flags_added=yes
9501fi
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9504$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9505if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507else
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509/* end confdefs.h. */
9510#include <pthread.h>
9511int
9512main ()
9513{
9514int i = PTHREAD_PRIO_INHERIT;
9515 ;
9516 return 0;
9517}
9518_ACEOF
9519if ac_fn_c_try_link "$LINENO"; then :
9520 ax_cv_PTHREAD_PRIO_INHERIT=yes
9521else
9522 ax_cv_PTHREAD_PRIO_INHERIT=no
9523fi
9524rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526
9527fi
9528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9529$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9530 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9531 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9532
9533$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9534
9535 ax_pthread_prio_inherit_defined=yes
9536
9537fi
9538
9539 CFLAGS="$ax_pthread_save_CFLAGS"
9540 LIBS="$ax_pthread_save_LIBS"
9541
9542 # More AIX lossage: compile with *_r variant
9543 if test "x$GCC" != "xyes"; then
9544 case $host_os in
9545 aix*)
9546 case "x/$CC" in #(
9547 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9548 #handle absolute path differently from PATH based program lookup
9549 case "x$CC" in #(
9550 x/*) :
9551 if as_fn_executable_p ${CC}_r; then :
9552 PTHREAD_CC="${CC}_r"
9553fi ;; #(
9554 *) :
9555 for ac_prog in ${CC}_r
9556do
9557 # Extract the first word of "$ac_prog", so it can be a program name with args.
9558set dummy $ac_prog; ac_word=$2
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560$as_echo_n "checking for $ac_word... " >&6; }
9561if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9562 $as_echo_n "(cached) " >&6
9563else
9564 if test -n "$PTHREAD_CC"; then
9565 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9566else
9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568for as_dir in $PATH
9569do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_PTHREAD_CC="$ac_prog"
9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9577 fi
9578done
9579 done
9580IFS=$as_save_IFS
9581
9582fi
9583fi
9584PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9585if test -n "$PTHREAD_CC"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9587$as_echo "$PTHREAD_CC" >&6; }
9588else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590$as_echo "no" >&6; }
9591fi
9592
9593
9594 test -n "$PTHREAD_CC" && break
9595done
9596test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9597 ;;
9598esac ;; #(
9599 *) :
9600 ;;
9601esac
9602 ;;
9603 esac
9604 fi
9605fi
9606
9607test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9608
9609
9610
9611
9612
9613# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9614if test "x$ax_pthread_ok" = "xyes"; then
9615 threads=yes
9616 :
9617else
9618 ax_pthread_ok=no
9619 threads=no
9620fi
9621ac_ext=cpp
9622ac_cpp='$CXXCPP $CPPFLAGS'
9623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9626
9627
9628 if test "$threads" = "yes"; then
9629 save_LIBS="$LIBS"
9630 LIBS="$PTHREAD_LIBS $LIBS"
9631 save_CXXFLAGS="$CXXFLAGS"
9632 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9634$as_echo_n "checking for std::thread... " >&6; }
9635if ${gdb_cv_cxx_std_thread+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637else
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h. */
9640#include <thread>
9641 void callback() { }
9642int
9643main ()
9644{
9645std::thread t(callback);
9646 ;
9647 return 0;
9648}
9649_ACEOF
9650if ac_fn_cxx_try_compile "$LINENO"; then :
9651 gdb_cv_cxx_std_thread=yes
9652else
9653 gdb_cv_cxx_std_thread=no
9654fi
9655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656fi
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9658$as_echo "$gdb_cv_cxx_std_thread" >&6; }
9659
9660 # This check must be here, while LIBS includes any necessary
9661 # threading library.
9662 for ac_func in pthread_sigmask pthread_setname_np
9663do :
9664 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9665ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9666if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9667 cat >>confdefs.h <<_ACEOF
9668#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9669_ACEOF
9670
9671fi
9672done
9673
9674
9675 LIBS="$save_LIBS"
9676 CXXFLAGS="$save_CXXFLAGS"
9677 fi
9678 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9679
9680$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9681
9682 fi
9683 ac_ext=c
9684ac_cpp='$CPP $CPPFLAGS'
9685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9687ac_compiler_gnu=$ac_cv_c_compiler_gnu
9688
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9691$as_echo_n "checking for sigsetjmp... " >&6; }
9692if ${gdb_cv_func_sigsetjmp+:} false; then :
9693 $as_echo_n "(cached) " >&6
9694else
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h. */
9697
9698#include <setjmp.h>
9699
9700int
9701main ()
9702{
9703sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9704 ;
9705 return 0;
9706}
9707_ACEOF
9708if ac_fn_c_try_compile "$LINENO"; then :
9709 gdb_cv_func_sigsetjmp=yes
9710else
9711 gdb_cv_func_sigsetjmp=no
9712fi
9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714fi
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9716$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9717if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9718
9719$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9720
9721fi
9722
9723
9724# Check whether --with-intel_pt was given.
9725if test "${with_intel_pt+set}" = set; then :
9726 withval=$with_intel_pt;
9727else
9728 with_intel_pt=auto
9729fi
9730
9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9732$as_echo_n "checking whether to use intel pt... " >&6; }
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9734$as_echo "$with_intel_pt" >&6; }
9735
9736if test "${with_intel_pt}" = no; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9738$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9739 HAVE_LIBIPT=no
9740else
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h. */
9743
9744#include <linux/perf_event.h>
9745#ifndef PERF_ATTR_SIZE_VER5
9746# error
9747#endif
9748
9749_ACEOF
9750if ac_fn_c_try_cpp "$LINENO"; then :
9751 perf_event=yes
9752else
9753 perf_event=no
9754fi
9755rm -f conftest.err conftest.i conftest.$ac_ext
9756 if test "$perf_event" != yes; then
9757 if test "$with_intel_pt" = yes; then
9758 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9761$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9762 fi
9763 fi
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773 use_additional=yes
9774
9775 acl_save_prefix="$prefix"
9776 prefix="$acl_final_prefix"
9777 acl_save_exec_prefix="$exec_prefix"
9778 exec_prefix="$acl_final_exec_prefix"
9779
9780 eval additional_includedir=\"$includedir\"
9781 eval additional_libdir=\"$libdir\"
9782
9783 exec_prefix="$acl_save_exec_prefix"
9784 prefix="$acl_save_prefix"
9785
9786
9787# Check whether --with-libipt-prefix was given.
9788if test "${with_libipt_prefix+set}" = set; then :
9789 withval=$with_libipt_prefix;
9790 if test "X$withval" = "Xno"; then
9791 use_additional=no
9792 else
9793 if test "X$withval" = "X"; then
9794
9795 acl_save_prefix="$prefix"
9796 prefix="$acl_final_prefix"
9797 acl_save_exec_prefix="$exec_prefix"
9798 exec_prefix="$acl_final_exec_prefix"
9799
9800 eval additional_includedir=\"$includedir\"
9801 eval additional_libdir=\"$libdir\"
9802
9803 exec_prefix="$acl_save_exec_prefix"
9804 prefix="$acl_save_prefix"
9805
9806 else
9807 additional_includedir="$withval/include"
9808 additional_libdir="$withval/lib"
9809 fi
9810 fi
9811
9812fi
9813
9814 LIBIPT=
9815 LTLIBIPT=
9816 INCIPT=
9817 rpathdirs=
9818 ltrpathdirs=
9819 names_already_handled=
9820 names_next_round='ipt '
9821 while test -n "$names_next_round"; do
9822 names_this_round="$names_next_round"
9823 names_next_round=
9824 for name in $names_this_round; do
9825 already_handled=
9826 for n in $names_already_handled; do
9827 if test "$n" = "$name"; then
9828 already_handled=yes
9829 break
9830 fi
9831 done
9832 if test -z "$already_handled"; then
9833 names_already_handled="$names_already_handled $name"
9834 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9835 eval value=\"\$HAVE_LIB$uppername\"
9836 if test -n "$value"; then
9837 if test "$value" = yes; then
9838 eval value=\"\$LIB$uppername\"
9839 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9840 eval value=\"\$LTLIB$uppername\"
9841 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9842 else
9843 :
9844 fi
9845 else
9846 found_dir=
9847 found_la=
9848 found_so=
9849 found_a=
9850 if test $use_additional = yes; then
9851 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9852 found_dir="$additional_libdir"
9853 found_so="$additional_libdir/lib$name.$shlibext"
9854 if test -f "$additional_libdir/lib$name.la"; then
9855 found_la="$additional_libdir/lib$name.la"
9856 fi
9857 else
9858 if test -f "$additional_libdir/lib$name.$libext"; then
9859 found_dir="$additional_libdir"
9860 found_a="$additional_libdir/lib$name.$libext"
9861 if test -f "$additional_libdir/lib$name.la"; then
9862 found_la="$additional_libdir/lib$name.la"
9863 fi
9864 fi
9865 fi
9866 fi
9867 if test "X$found_dir" = "X"; then
9868 for x in $LDFLAGS $LTLIBIPT; do
9869
9870 acl_save_prefix="$prefix"
9871 prefix="$acl_final_prefix"
9872 acl_save_exec_prefix="$exec_prefix"
9873 exec_prefix="$acl_final_exec_prefix"
9874 eval x=\"$x\"
9875 exec_prefix="$acl_save_exec_prefix"
9876 prefix="$acl_save_prefix"
9877
9878 case "$x" in
9879 -L*)
9880 dir=`echo "X$x" | sed -e 's/^X-L//'`
9881 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9882 found_dir="$dir"
9883 found_so="$dir/lib$name.$shlibext"
9884 if test -f "$dir/lib$name.la"; then
9885 found_la="$dir/lib$name.la"
9886 fi
9887 else
9888 if test -f "$dir/lib$name.$libext"; then
9889 found_dir="$dir"
9890 found_a="$dir/lib$name.$libext"
9891 if test -f "$dir/lib$name.la"; then
9892 found_la="$dir/lib$name.la"
9893 fi
9894 fi
9895 fi
9896 ;;
9897 esac
9898 if test "X$found_dir" != "X"; then
9899 break
9900 fi
9901 done
9902 fi
9903 if test "X$found_dir" != "X"; then
9904 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9905 if test "X$found_so" != "X"; then
9906 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9907 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9908 else
9909 haveit=
9910 for x in $ltrpathdirs; do
9911 if test "X$x" = "X$found_dir"; then
9912 haveit=yes
9913 break
9914 fi
9915 done
9916 if test -z "$haveit"; then
9917 ltrpathdirs="$ltrpathdirs $found_dir"
9918 fi
9919 if test "$hardcode_direct" = yes; then
9920 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9921 else
9922 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9923 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9924 haveit=
9925 for x in $rpathdirs; do
9926 if test "X$x" = "X$found_dir"; then
9927 haveit=yes
9928 break
9929 fi
9930 done
9931 if test -z "$haveit"; then
9932 rpathdirs="$rpathdirs $found_dir"
9933 fi
9934 else
9935 haveit=
9936 for x in $LDFLAGS $LIBIPT; do
9937
9938 acl_save_prefix="$prefix"
9939 prefix="$acl_final_prefix"
9940 acl_save_exec_prefix="$exec_prefix"
9941 exec_prefix="$acl_final_exec_prefix"
9942 eval x=\"$x\"
9943 exec_prefix="$acl_save_exec_prefix"
9944 prefix="$acl_save_prefix"
9945
9946 if test "X$x" = "X-L$found_dir"; then
9947 haveit=yes
9948 break
9949 fi
9950 done
9951 if test -z "$haveit"; then
9952 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9953 fi
9954 if test "$hardcode_minus_L" != no; then
9955 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9956 else
9957 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9958 fi
9959 fi
9960 fi
9961 fi
9962 else
9963 if test "X$found_a" != "X"; then
9964 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
9965 else
9966 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9967 fi
9968 fi
9969 additional_includedir=
9970 case "$found_dir" in
9971 */lib | */lib/)
9972 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9973 additional_includedir="$basedir/include"
9974 ;;
9975 esac
9976 if test "X$additional_includedir" != "X"; then
9977 if test "X$additional_includedir" != "X/usr/include"; then
9978 haveit=
9979 if test "X$additional_includedir" = "X/usr/local/include"; then
9980 if test -n "$GCC"; then
9981 case $host_os in
9982 linux*) haveit=yes;;
9983 esac
9984 fi
9985 fi
9986 if test -z "$haveit"; then
9987 for x in $CPPFLAGS $INCIPT; do
9988
9989 acl_save_prefix="$prefix"
9990 prefix="$acl_final_prefix"
9991 acl_save_exec_prefix="$exec_prefix"
9992 exec_prefix="$acl_final_exec_prefix"
9993 eval x=\"$x\"
9994 exec_prefix="$acl_save_exec_prefix"
9995 prefix="$acl_save_prefix"
9996
9997 if test "X$x" = "X-I$additional_includedir"; then
9998 haveit=yes
9999 break
10000 fi
10001 done
10002 if test -z "$haveit"; then
10003 if test -d "$additional_includedir"; then
10004 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10005 fi
10006 fi
10007 fi
10008 fi
10009 fi
10010 if test -n "$found_la"; then
10011 save_libdir="$libdir"
10012 case "$found_la" in
10013 */* | *\\*) . "$found_la" ;;
10014 *) . "./$found_la" ;;
10015 esac
10016 libdir="$save_libdir"
10017 for dep in $dependency_libs; do
10018 case "$dep" in
10019 -L*)
10020 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10021 if test "X$additional_libdir" != "X/usr/lib"; then
10022 haveit=
10023 if test "X$additional_libdir" = "X/usr/local/lib"; then
10024 if test -n "$GCC"; then
10025 case $host_os in
10026 linux*) haveit=yes;;
10027 esac
10028 fi
10029 fi
10030 if test -z "$haveit"; then
10031 haveit=
10032 for x in $LDFLAGS $LIBIPT; do
10033
10034 acl_save_prefix="$prefix"
10035 prefix="$acl_final_prefix"
10036 acl_save_exec_prefix="$exec_prefix"
10037 exec_prefix="$acl_final_exec_prefix"
10038 eval x=\"$x\"
10039 exec_prefix="$acl_save_exec_prefix"
10040 prefix="$acl_save_prefix"
10041
10042 if test "X$x" = "X-L$additional_libdir"; then
10043 haveit=yes
10044 break
10045 fi
10046 done
10047 if test -z "$haveit"; then
10048 if test -d "$additional_libdir"; then
10049 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10050 fi
10051 fi
10052 haveit=
10053 for x in $LDFLAGS $LTLIBIPT; do
10054
10055 acl_save_prefix="$prefix"
10056 prefix="$acl_final_prefix"
10057 acl_save_exec_prefix="$exec_prefix"
10058 exec_prefix="$acl_final_exec_prefix"
10059 eval x=\"$x\"
10060 exec_prefix="$acl_save_exec_prefix"
10061 prefix="$acl_save_prefix"
10062
10063 if test "X$x" = "X-L$additional_libdir"; then
10064 haveit=yes
10065 break
10066 fi
10067 done
10068 if test -z "$haveit"; then
10069 if test -d "$additional_libdir"; then
10070 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10071 fi
10072 fi
10073 fi
10074 fi
10075 ;;
10076 -R*)
10077 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10078 if test "$enable_rpath" != no; then
10079 haveit=
10080 for x in $rpathdirs; do
10081 if test "X$x" = "X$dir"; then
10082 haveit=yes
10083 break
10084 fi
10085 done
10086 if test -z "$haveit"; then
10087 rpathdirs="$rpathdirs $dir"
10088 fi
10089 haveit=
10090 for x in $ltrpathdirs; do
10091 if test "X$x" = "X$dir"; then
10092 haveit=yes
10093 break
10094 fi
10095 done
10096 if test -z "$haveit"; then
10097 ltrpathdirs="$ltrpathdirs $dir"
10098 fi
10099 fi
10100 ;;
10101 -l*)
10102 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10103 ;;
10104 *.la)
10105 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10106 ;;
10107 *)
10108 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10109 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10110 ;;
10111 esac
10112 done
10113 fi
10114 else
10115 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10116 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10117 fi
10118 fi
10119 fi
10120 done
10121 done
10122 if test "X$rpathdirs" != "X"; then
10123 if test -n "$hardcode_libdir_separator"; then
10124 alldirs=
10125 for found_dir in $rpathdirs; do
10126 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10127 done
10128 acl_save_libdir="$libdir"
10129 libdir="$alldirs"
10130 eval flag=\"$hardcode_libdir_flag_spec\"
10131 libdir="$acl_save_libdir"
10132 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10133 else
10134 for found_dir in $rpathdirs; do
10135 acl_save_libdir="$libdir"
10136 libdir="$found_dir"
10137 eval flag=\"$hardcode_libdir_flag_spec\"
10138 libdir="$acl_save_libdir"
10139 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10140 done
10141 fi
10142 fi
10143 if test "X$ltrpathdirs" != "X"; then
10144 for found_dir in $ltrpathdirs; do
10145 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10146 done
10147 fi
01027315 10148
01027315 10149
05ea2a05 10150 ac_save_CPPFLAGS="$CPPFLAGS"
01027315 10151
05ea2a05
TT
10152 for element in $INCIPT; do
10153 haveit=
10154 for x in $CPPFLAGS; do
01027315 10155
05ea2a05
TT
10156 acl_save_prefix="$prefix"
10157 prefix="$acl_final_prefix"
10158 acl_save_exec_prefix="$exec_prefix"
10159 exec_prefix="$acl_final_exec_prefix"
10160 eval x=\"$x\"
10161 exec_prefix="$acl_save_exec_prefix"
10162 prefix="$acl_save_prefix"
01027315 10163
05ea2a05
TT
10164 if test "X$x" = "X$element"; then
10165 haveit=yes
10166 break
10167 fi
10168 done
10169 if test -z "$haveit"; then
10170 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10171 fi
10172 done
01027315 10173
01027315 10174
05ea2a05
TT
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10176$as_echo_n "checking for libipt... " >&6; }
10177if ${ac_cv_libipt+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179else
10180
10181 ac_save_LIBS="$LIBS"
10182 LIBS="$LIBS $LIBIPT"
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 10184/* end confdefs.h. */
05ea2a05 10185#include "intel-pt.h"
01027315
TT
10186int
10187main ()
10188{
05ea2a05 10189pt_insn_alloc_decoder (0);
01027315
TT
10190 ;
10191 return 0;
10192}
10193_ACEOF
10194if ac_fn_c_try_link "$LINENO"; then :
05ea2a05
TT
10195 ac_cv_libipt=yes
10196else
10197 ac_cv_libipt=no
01027315
TT
10198fi
10199rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
05ea2a05 10201 LIBS="$ac_save_LIBS"
01027315 10202
01027315 10203fi
05ea2a05
TT
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10205$as_echo "$ac_cv_libipt" >&6; }
10206 if test "$ac_cv_libipt" = yes; then
10207 HAVE_LIBIPT=yes
01027315 10208
05ea2a05
TT
10209$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10210
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10212$as_echo_n "checking how to link with libipt... " >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10214$as_echo "$LIBIPT" >&6; }
10215 else
10216 HAVE_LIBIPT=no
10217 CPPFLAGS="$ac_save_CPPFLAGS"
10218 LIBIPT=
10219 LTLIBIPT=
10220 fi
10221
10222
10223
10224
10225
10226
10227 if test "$HAVE_LIBIPT" != yes; then
10228 if test "$with_intel_pt" = yes; then
10229 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10232$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10233 fi
10234 else
10235 save_LIBS=$LIBS
10236 LIBS="$LIBS $LIBIPT"
10237 for ac_func in pt_insn_event
10238do :
10239 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10240if test "x$ac_cv_func_pt_insn_event" = xyes; then :
10241 cat >>confdefs.h <<_ACEOF
10242#define HAVE_PT_INSN_EVENT 1
10243_ACEOF
10244
10245fi
01027315 10246done
05ea2a05
TT
10247
10248 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10249"
10250if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
10251
10252cat >>confdefs.h <<_ACEOF
10253#define HAVE_STRUCT_PT_INSN_ENABLED 1
10254_ACEOF
10255
10256
01027315 10257fi
05ea2a05
TT
10258ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10259"
10260if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
01027315 10261
05ea2a05
TT
10262cat >>confdefs.h <<_ACEOF
10263#define HAVE_STRUCT_PT_INSN_RESYNCED 1
10264_ACEOF
01027315 10265
05ea2a05
TT
10266
10267fi
10268
10269 LIBS=$save_LIBS
10270 fi
10271fi
10272
10273if test "$ac_cv_header_sys_procfs_h" = yes; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10275$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10276 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
01027315
TT
10277 $as_echo_n "(cached) " >&6
10278else
05ea2a05 10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
01027315 10280/* end confdefs.h. */
05ea2a05
TT
10281
10282#define _SYSCALL32
10283/* Needed for new procfs interface on sparc-solaris. */
10284#define _STRUCTURED_PROC 1
10285#include <sys/procfs.h>
01027315
TT
10286int
10287main ()
10288{
05ea2a05 10289gregset_t avar
01027315
TT
10290 ;
10291 return 0;
10292}
10293_ACEOF
05ea2a05
TT
10294if ac_fn_c_try_compile "$LINENO"; then :
10295 bfd_cv_have_sys_procfs_type_gregset_t=yes
10296else
10297 bfd_cv_have_sys_procfs_type_gregset_t=no
01027315
TT
10298
10299fi
05ea2a05
TT
10300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301fi
01027315 10302
05ea2a05 10303 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
01027315 10304
05ea2a05 10305$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
01027315 10306
05ea2a05
TT
10307 fi
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10309$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
01027315 10310
05ea2a05
TT
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10312$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10313 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
01027315
TT
10314 $as_echo_n "(cached) " >&6
10315else
05ea2a05
TT
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317/* end confdefs.h. */
10318
10319#define _SYSCALL32
10320/* Needed for new procfs interface on sparc-solaris. */
10321#define _STRUCTURED_PROC 1
10322#include <sys/procfs.h>
10323int
10324main ()
10325{
10326fpregset_t avar
10327 ;
10328 return 0;
10329}
10330_ACEOF
10331if ac_fn_c_try_compile "$LINENO"; then :
10332 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10333else
10334 bfd_cv_have_sys_procfs_type_fpregset_t=no
01027315
TT
10335
10336fi
05ea2a05 10337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
10338fi
10339
05ea2a05
TT
10340 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10341
10342$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10343
10344 fi
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10346$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10347
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10349$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10350 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
01027315
TT
10351 $as_echo_n "(cached) " >&6
10352else
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354/* end confdefs.h. */
05ea2a05
TT
10355
10356#define _SYSCALL32
10357/* Needed for new procfs interface on sparc-solaris. */
10358#define _STRUCTURED_PROC 1
10359#include <sys/procfs.h>
01027315
TT
10360int
10361main ()
10362{
05ea2a05 10363prgregset_t avar
01027315
TT
10364 ;
10365 return 0;
10366}
10367_ACEOF
05ea2a05
TT
10368if ac_fn_c_try_compile "$LINENO"; then :
10369 bfd_cv_have_sys_procfs_type_prgregset_t=yes
01027315 10370else
05ea2a05 10371 bfd_cv_have_sys_procfs_type_prgregset_t=no
01027315
TT
10372
10373fi
05ea2a05
TT
10374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375fi
01027315 10376
05ea2a05 10377 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
01027315 10378
05ea2a05 10379$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
01027315 10380
05ea2a05
TT
10381 fi
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10383$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
01027315 10384
05ea2a05
TT
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10386$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10387 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
01027315
TT
10388 $as_echo_n "(cached) " >&6
10389else
05ea2a05
TT
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391/* end confdefs.h. */
01027315 10392
05ea2a05
TT
10393#define _SYSCALL32
10394/* Needed for new procfs interface on sparc-solaris. */
10395#define _STRUCTURED_PROC 1
10396#include <sys/procfs.h>
10397int
10398main ()
10399{
10400prfpregset_t avar
10401 ;
10402 return 0;
10403}
10404_ACEOF
10405if ac_fn_c_try_compile "$LINENO"; then :
10406 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
01027315 10407else
05ea2a05 10408 bfd_cv_have_sys_procfs_type_prfpregset_t=no
01027315 10409
05ea2a05
TT
10410fi
10411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315
TT
10412fi
10413
05ea2a05 10414 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
01027315 10415
05ea2a05 10416$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
01027315 10417
05ea2a05
TT
10418 fi
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10420$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
01027315 10421
05ea2a05
TT
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10423$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10424 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
10425 $as_echo_n "(cached) " >&6
10426else
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428/* end confdefs.h. */
01027315 10429
05ea2a05
TT
10430#define _SYSCALL32
10431/* Needed for new procfs interface on sparc-solaris. */
10432#define _STRUCTURED_PROC 1
10433#include <sys/procfs.h>
10434int
10435main ()
10436{
10437prgregset32_t avar
10438 ;
10439 return 0;
10440}
10441_ACEOF
10442if ac_fn_c_try_compile "$LINENO"; then :
10443 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
01027315 10444else
05ea2a05
TT
10445 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10446
10447fi
10448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
01027315 10449fi
01027315 10450
05ea2a05 10451 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
01027315 10452
05ea2a05
TT
10453$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10454
10455 fi
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10457$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10458
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10460$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10461 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
01027315
TT
10462 $as_echo_n "(cached) " >&6
10463else
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465/* end confdefs.h. */
05ea2a05
TT
10466
10467#define _SYSCALL32
10468/* Needed for new procfs interface on sparc-solaris. */
10469#define _STRUCTURED_PROC 1
10470#include <sys/procfs.h>
01027315
TT
10471int
10472main ()
10473{
05ea2a05 10474lwpid_t avar
01027315
TT
10475 ;
10476 return 0;
10477}
10478_ACEOF
05ea2a05
TT
10479if ac_fn_c_try_compile "$LINENO"; then :
10480 bfd_cv_have_sys_procfs_type_lwpid_t=yes
01027315 10481else
05ea2a05
TT
10482 bfd_cv_have_sys_procfs_type_lwpid_t=no
10483
01027315
TT
10484fi
10485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10486fi
01027315 10487
05ea2a05 10488 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
01027315 10489
05ea2a05 10490$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
01027315 10491
05ea2a05
TT
10492 fi
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10494$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
01027315 10495
05ea2a05
TT
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10497$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10498 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500else
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502/* end confdefs.h. */
01027315 10503
05ea2a05
TT
10504#define _SYSCALL32
10505/* Needed for new procfs interface on sparc-solaris. */
10506#define _STRUCTURED_PROC 1
10507#include <sys/procfs.h>
10508int
10509main ()
10510{
10511psaddr_t avar
10512 ;
10513 return 0;
10514}
10515_ACEOF
10516if ac_fn_c_try_compile "$LINENO"; then :
10517 bfd_cv_have_sys_procfs_type_psaddr_t=yes
10518else
10519 bfd_cv_have_sys_procfs_type_psaddr_t=no
01027315 10520
05ea2a05
TT
10521fi
10522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523fi
01027315 10524
05ea2a05 10525 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
01027315 10526
05ea2a05
TT
10527$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10528
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10531$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10532
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10534$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10535 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
01027315
TT
10536 $as_echo_n "(cached) " >&6
10537else
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539/* end confdefs.h. */
10540
05ea2a05
TT
10541#define _SYSCALL32
10542/* Needed for new procfs interface on sparc-solaris. */
10543#define _STRUCTURED_PROC 1
10544#include <sys/procfs.h>
01027315
TT
10545int
10546main ()
10547{
05ea2a05 10548elf_fpregset_t avar
01027315
TT
10549 ;
10550 return 0;
10551}
10552_ACEOF
10553if ac_fn_c_try_compile "$LINENO"; then :
05ea2a05 10554 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
01027315 10555else
05ea2a05
TT
10556 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
10557
01027315
TT
10558fi
10559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560fi
01027315 10561
05ea2a05
TT
10562 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10563
10564$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10565
10566 fi
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10568$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
01027315
TT
10569
10570fi
10571
10572
10573# Check whether we will enable the inclusion of unit tests when
10574# compiling GDB.
10575#
10576# The default value of this option changes depending whether we're on
10577# development mode (in which case it's "true") or not (in which case
10578# it's "false").
10579# Check whether --enable-unit-tests was given.
10580if test "${enable_unit_tests+set}" = set; then :
10581 enableval=$enable_unit_tests; case "${enableval}" in
10582 yes) enable_unittests=true ;;
10583 no) enable_unittests=false ;;
10584 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10585esac
10586else
10587 enable_unittests=$development
10588fi
10589
10590
10591if $enable_unittests; then
10592
10593$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10594
10595
10596fi
10597
10598 if $enable_unittests; then
10599 SELFTEST_TRUE=
10600 SELFTEST_FALSE='#'
10601else
10602 SELFTEST_TRUE='#'
10603 SELFTEST_FALSE=
10604fi
10605
10606
05ea2a05
TT
10607# Check the return and argument types of ptrace.
10608
10609
10610for ac_header in sys/ptrace.h ptrace.h
10611do :
10612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10613ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10614if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10615 cat >>confdefs.h <<_ACEOF
10616#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10617_ACEOF
10618
10619fi
10620
10621done
10622
10623
10624gdb_ptrace_headers='
10625#include <sys/types.h>
10626#if HAVE_SYS_PTRACE_H
10627# include <sys/ptrace.h>
10628#endif
10629#if HAVE_UNISTD_H
10630# include <unistd.h>
10631#endif
10632'
10633# There is no point in checking if we don't have a prototype.
10634ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10635"
10636if test "x$ac_cv_have_decl_ptrace" = xyes; then :
10637 ac_have_decl=1
10638else
10639 ac_have_decl=0
10640fi
10641
10642cat >>confdefs.h <<_ACEOF
10643#define HAVE_DECL_PTRACE $ac_have_decl
10644_ACEOF
10645if test $ac_have_decl = 1; then :
10646
10647else
10648
10649 : ${gdb_cv_func_ptrace_ret='int'}
10650 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10651
10652fi
10653
10654# Check return type. Varargs (used on GNU/Linux) conflict with the
10655# empty argument list, so check for that explicitly.
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10657$as_echo_n "checking return type of ptrace... " >&6; }
10658if ${gdb_cv_func_ptrace_ret+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660else
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h. */
10663$gdb_ptrace_headers
10664int
10665main ()
10666{
10667extern long ptrace (enum __ptrace_request, ...);
10668 ;
10669 return 0;
10670}
10671_ACEOF
10672if ac_fn_c_try_compile "$LINENO"; then :
10673 gdb_cv_func_ptrace_ret='long'
10674else
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h. */
10677$gdb_ptrace_headers
10678int
10679main ()
10680{
10681extern int ptrace ();
10682 ;
10683 return 0;
10684}
10685_ACEOF
10686if ac_fn_c_try_compile "$LINENO"; then :
10687 gdb_cv_func_ptrace_ret='int'
10688else
10689 gdb_cv_func_ptrace_ret='long'
10690fi
10691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692fi
10693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694fi
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10696$as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10697
10698cat >>confdefs.h <<_ACEOF
10699#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10700_ACEOF
10701
10702# Check argument types.
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10704$as_echo_n "checking types of arguments for ptrace... " >&6; }
10705if ${gdb_cv_func_ptrace_args+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707else
10708
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710/* end confdefs.h. */
10711$gdb_ptrace_headers
10712int
10713main ()
10714{
10715extern long ptrace (enum __ptrace_request, ...);
10716 ;
10717 return 0;
10718}
10719_ACEOF
10720if ac_fn_c_try_compile "$LINENO"; then :
10721 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10722else
10723
10724for gdb_arg1 in 'int' 'long'; do
10725 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10726 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10727 for gdb_arg4 in 'int' 'long' 'void *'; do
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h. */
10730$gdb_ptrace_headers
10731int
10732main ()
10733{
10734
10735extern $gdb_cv_func_ptrace_ret
10736 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10737
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742if ac_fn_c_try_compile "$LINENO"; then :
10743 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10744 break 4;
10745fi
10746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 for gdb_arg5 in 'int *' 'int' 'long'; do
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749/* end confdefs.h. */
10750$gdb_ptrace_headers
10751int
10752main ()
10753{
10754
10755extern $gdb_cv_func_ptrace_ret
10756 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10757
10758 ;
10759 return 0;
10760}
10761_ACEOF
10762if ac_fn_c_try_compile "$LINENO"; then :
10763
10764gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10765 break 5;
10766fi
10767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 done
10769 done
10770 done
10771 done
10772done
10773# Provide a safe default value.
10774: ${gdb_cv_func_ptrace_args='int,int,long,long'}
10775
10776fi
10777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778fi
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10780$as_echo "$gdb_cv_func_ptrace_args" >&6; }
10781ac_save_IFS=$IFS; IFS=','
10782set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10783IFS=$ac_save_IFS
10784shift
10785
10786cat >>confdefs.h <<_ACEOF
10787#define PTRACE_TYPE_ARG1 $1
10788_ACEOF
10789
10790
10791cat >>confdefs.h <<_ACEOF
10792#define PTRACE_TYPE_ARG3 $3
10793_ACEOF
10794
10795
10796cat >>confdefs.h <<_ACEOF
10797#define PTRACE_TYPE_ARG4 $4
10798_ACEOF
10799
10800if test -n "$5"; then
10801
10802cat >>confdefs.h <<_ACEOF
10803#define PTRACE_TYPE_ARG5 $5
10804_ACEOF
10805
10806fi
10807
10808
01027315
TT
10809TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
10810
10811cat >>confdefs.h <<_ACEOF
10812#define TARGET_WORD_SIZE $TARGET_WORD_SIZE
10813_ACEOF
10814
10815
10816case ${host} in
10817 *mingw32*)
10818
10819$as_echo "#define USE_WIN32API 1" >>confdefs.h
10820
10821 ;;
10822esac
10823
10824ac_config_files="$ac_config_files Makefile"
10825
10826cat >confcache <<\_ACEOF
10827# This file is a shell script that caches the results of configure
10828# tests run on this system so they can be shared between configure
10829# scripts and configure runs, see configure's option --config-cache.
10830# It is not useful on other systems. If it contains results you don't
10831# want to keep, you may remove or edit it.
10832#
10833# config.status only pays attention to the cache file if you give it
10834# the --recheck option to rerun configure.
10835#
10836# `ac_cv_env_foo' variables (set or unset) will be overridden when
10837# loading this file, other *unset* `ac_cv_foo' will be assigned the
10838# following values.
10839
10840_ACEOF
10841
10842# The following way of writing the cache mishandles newlines in values,
10843# but we know of no workaround that is simple, portable, and efficient.
10844# So, we kill variables containing newlines.
10845# Ultrix sh set writes to stderr and can't be redirected directly,
10846# and sets the high bit in the cache file unless we assign to the vars.
10847(
10848 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10849 eval ac_val=\$$ac_var
10850 case $ac_val in #(
10851 *${as_nl}*)
10852 case $ac_var in #(
10853 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10854$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10855 esac
10856 case $ac_var in #(
10857 _ | IFS | as_nl) ;; #(
10858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10859 *) { eval $ac_var=; unset $ac_var;} ;;
10860 esac ;;
10861 esac
10862 done
10863
10864 (set) 2>&1 |
10865 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10866 *${as_nl}ac_space=\ *)
10867 # `set' does not quote correctly, so add quotes: double-quote
10868 # substitution turns \\\\ into \\, and sed turns \\ into \.
10869 sed -n \
10870 "s/'/'\\\\''/g;
10871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10872 ;; #(
10873 *)
10874 # `set' quotes correctly as required by POSIX, so do not add quotes.
10875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10876 ;;
10877 esac |
10878 sort
10879) |
10880 sed '
10881 /^ac_cv_env_/b end
10882 t clear
10883 :clear
10884 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10885 t end
10886 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10887 :end' >>confcache
10888if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10889 if test -w "$cache_file"; then
10890 if test "x$cache_file" != "x/dev/null"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10892$as_echo "$as_me: updating cache $cache_file" >&6;}
10893 if test ! -f "$cache_file" || test -h "$cache_file"; then
10894 cat confcache >"$cache_file"
10895 else
10896 case $cache_file in #(
10897 */* | ?:*)
10898 mv -f confcache "$cache_file"$$ &&
10899 mv -f "$cache_file"$$ "$cache_file" ;; #(
10900 *)
10901 mv -f confcache "$cache_file" ;;
10902 esac
10903 fi
10904 fi
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10907$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10908 fi
10909fi
10910rm -f confcache
10911
10912test "x$prefix" = xNONE && prefix=$ac_default_prefix
10913# Let make expand exec_prefix.
10914test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10915
10916DEFS=-DHAVE_CONFIG_H
10917
10918ac_libobjs=
10919ac_ltlibobjs=
10920for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10921 # 1. Remove the extension, and $U if already installed.
10922 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10923 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10924 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10925 # will be set to the directory where LIBOBJS objects are built.
10926 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10927 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10928done
10929LIBOBJS=$ac_libobjs
10930
10931LTLIBOBJS=$ac_ltlibobjs
10932
10933
10934if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10935 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10936Usually this means the macro was only invoked conditionally." "$LINENO" 5
10937fi
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10939$as_echo_n "checking that generated files are newer than configure... " >&6; }
10940 if test -n "$am_sleep_pid"; then
10941 # Hide warnings about reused PIDs.
10942 wait $am_sleep_pid 2>/dev/null
10943 fi
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10945$as_echo "done" >&6; }
10946 if test -n "$EXEEXT"; then
10947 am__EXEEXT_TRUE=
10948 am__EXEEXT_FALSE='#'
10949else
10950 am__EXEEXT_TRUE='#'
10951 am__EXEEXT_FALSE=
10952fi
10953
10954if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10955 as_fn_error $? "conditional \"AMDEP\" was never defined.
10956Usually this means the macro was only invoked conditionally." "$LINENO" 5
10957fi
10958if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10959 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10960Usually this means the macro was only invoked conditionally." "$LINENO" 5
10961fi
10962if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10963 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10964Usually this means the macro was only invoked conditionally." "$LINENO" 5
10965fi
10966if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10967 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10968Usually this means the macro was only invoked conditionally." "$LINENO" 5
10969fi
10970if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
10971 as_fn_error $? "conditional \"SELFTEST\" was never defined.
10972Usually this means the macro was only invoked conditionally." "$LINENO" 5
10973fi
10974
10975: "${CONFIG_STATUS=./config.status}"
10976ac_write_fail=0
10977ac_clean_files_save=$ac_clean_files
10978ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10980$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10981as_write_fail=0
10982cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10983#! $SHELL
10984# Generated by $as_me.
10985# Run this file to recreate the current configuration.
10986# Compiler output produced by configure, useful for debugging
10987# configure, is in config.log if it exists.
10988
10989debug=false
10990ac_cs_recheck=false
10991ac_cs_silent=false
10992
10993SHELL=\${CONFIG_SHELL-$SHELL}
10994export SHELL
10995_ASEOF
10996cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10997## -------------------- ##
10998## M4sh Initialization. ##
10999## -------------------- ##
11000
11001# Be more Bourne compatible
11002DUALCASE=1; export DUALCASE # for MKS sh
11003if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11004 emulate sh
11005 NULLCMD=:
11006 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11007 # is contrary to our usage. Disable this feature.
11008 alias -g '${1+"$@"}'='"$@"'
11009 setopt NO_GLOB_SUBST
11010else
11011 case `(set -o) 2>/dev/null` in #(
11012 *posix*) :
11013 set -o posix ;; #(
11014 *) :
11015 ;;
11016esac
11017fi
11018
11019
11020as_nl='
11021'
11022export as_nl
11023# Printing a long string crashes Solaris 7 /usr/bin/printf.
11024as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11025as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11026as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11027# Prefer a ksh shell builtin over an external printf program on Solaris,
11028# but without wasting forks for bash or zsh.
11029if test -z "$BASH_VERSION$ZSH_VERSION" \
11030 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11031 as_echo='print -r --'
11032 as_echo_n='print -rn --'
11033elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11034 as_echo='printf %s\n'
11035 as_echo_n='printf %s'
11036else
11037 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11038 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11039 as_echo_n='/usr/ucb/echo -n'
11040 else
11041 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11042 as_echo_n_body='eval
11043 arg=$1;
11044 case $arg in #(
11045 *"$as_nl"*)
11046 expr "X$arg" : "X\\(.*\\)$as_nl";
11047 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11048 esac;
11049 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11050 '
11051 export as_echo_n_body
11052 as_echo_n='sh -c $as_echo_n_body as_echo'
11053 fi
11054 export as_echo_body
11055 as_echo='sh -c $as_echo_body as_echo'
11056fi
11057
11058# The user is always right.
11059if test "${PATH_SEPARATOR+set}" != set; then
11060 PATH_SEPARATOR=:
11061 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11062 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11063 PATH_SEPARATOR=';'
11064 }
11065fi
11066
11067
11068# IFS
11069# We need space, tab and new line, in precisely that order. Quoting is
11070# there to prevent editors from complaining about space-tab.
11071# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11072# splitting by setting IFS to empty value.)
11073IFS=" "" $as_nl"
11074
11075# Find who we are. Look in the path if we contain no directory separator.
11076as_myself=
11077case $0 in #((
11078 *[\\/]* ) as_myself=$0 ;;
11079 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11085 done
11086IFS=$as_save_IFS
11087
11088 ;;
11089esac
11090# We did not find ourselves, most probably we were run as `sh COMMAND'
11091# in which case we are not to be found in the path.
11092if test "x$as_myself" = x; then
11093 as_myself=$0
11094fi
11095if test ! -f "$as_myself"; then
11096 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11097 exit 1
11098fi
11099
11100# Unset variables that we do not need and which cause bugs (e.g. in
11101# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11102# suppresses any "Segmentation fault" message there. '((' could
11103# trigger a bug in pdksh 5.2.14.
11104for as_var in BASH_ENV ENV MAIL MAILPATH
11105do eval test x\${$as_var+set} = xset \
11106 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11107done
11108PS1='$ '
11109PS2='> '
11110PS4='+ '
11111
11112# NLS nuisances.
11113LC_ALL=C
11114export LC_ALL
11115LANGUAGE=C
11116export LANGUAGE
11117
11118# CDPATH.
11119(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11120
11121
11122# as_fn_error STATUS ERROR [LINENO LOG_FD]
11123# ----------------------------------------
11124# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11125# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11126# script with STATUS, using 1 if that was 0.
11127as_fn_error ()
11128{
11129 as_status=$1; test $as_status -eq 0 && as_status=1
11130 if test "$4"; then
11131 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11132 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11133 fi
11134 $as_echo "$as_me: error: $2" >&2
11135 as_fn_exit $as_status
11136} # as_fn_error
11137
11138
11139# as_fn_set_status STATUS
11140# -----------------------
11141# Set $? to STATUS, without forking.
11142as_fn_set_status ()
11143{
11144 return $1
11145} # as_fn_set_status
11146
11147# as_fn_exit STATUS
11148# -----------------
11149# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11150as_fn_exit ()
11151{
11152 set +e
11153 as_fn_set_status $1
11154 exit $1
11155} # as_fn_exit
11156
11157# as_fn_unset VAR
11158# ---------------
11159# Portably unset VAR.
11160as_fn_unset ()
11161{
11162 { eval $1=; unset $1;}
11163}
11164as_unset=as_fn_unset
11165# as_fn_append VAR VALUE
11166# ----------------------
11167# Append the text in VALUE to the end of the definition contained in VAR. Take
11168# advantage of any shell optimizations that allow amortized linear growth over
11169# repeated appends, instead of the typical quadratic growth present in naive
11170# implementations.
11171if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11172 eval 'as_fn_append ()
11173 {
11174 eval $1+=\$2
11175 }'
11176else
11177 as_fn_append ()
11178 {
11179 eval $1=\$$1\$2
11180 }
11181fi # as_fn_append
11182
11183# as_fn_arith ARG...
11184# ------------------
11185# Perform arithmetic evaluation on the ARGs, and store the result in the
11186# global $as_val. Take advantage of shells that can avoid forks. The arguments
11187# must be portable across $(()) and expr.
11188if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11189 eval 'as_fn_arith ()
11190 {
11191 as_val=$(( $* ))
11192 }'
11193else
11194 as_fn_arith ()
11195 {
11196 as_val=`expr "$@" || test $? -eq 1`
11197 }
11198fi # as_fn_arith
11199
11200
11201if expr a : '\(a\)' >/dev/null 2>&1 &&
11202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11203 as_expr=expr
11204else
11205 as_expr=false
11206fi
11207
11208if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11209 as_basename=basename
11210else
11211 as_basename=false
11212fi
11213
11214if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11215 as_dirname=dirname
11216else
11217 as_dirname=false
11218fi
11219
11220as_me=`$as_basename -- "$0" ||
11221$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11222 X"$0" : 'X\(//\)$' \| \
11223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11224$as_echo X/"$0" |
11225 sed '/^.*\/\([^/][^/]*\)\/*$/{
11226 s//\1/
11227 q
11228 }
11229 /^X\/\(\/\/\)$/{
11230 s//\1/
11231 q
11232 }
11233 /^X\/\(\/\).*/{
11234 s//\1/
11235 q
11236 }
11237 s/.*/./; q'`
11238
11239# Avoid depending upon Character Ranges.
11240as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11241as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11242as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11243as_cr_digits='0123456789'
11244as_cr_alnum=$as_cr_Letters$as_cr_digits
11245
11246ECHO_C= ECHO_N= ECHO_T=
11247case `echo -n x` in #(((((
11248-n*)
11249 case `echo 'xy\c'` in
11250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11251 xy) ECHO_C='\c';;
11252 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11253 ECHO_T=' ';;
11254 esac;;
11255*)
11256 ECHO_N='-n';;
11257esac
11258
11259rm -f conf$$ conf$$.exe conf$$.file
11260if test -d conf$$.dir; then
11261 rm -f conf$$.dir/conf$$.file
11262else
11263 rm -f conf$$.dir
11264 mkdir conf$$.dir 2>/dev/null
11265fi
11266if (echo >conf$$.file) 2>/dev/null; then
11267 if ln -s conf$$.file conf$$ 2>/dev/null; then
11268 as_ln_s='ln -s'
11269 # ... but there are two gotchas:
11270 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11271 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11272 # In both cases, we have to default to `cp -pR'.
11273 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11274 as_ln_s='cp -pR'
11275 elif ln conf$$.file conf$$ 2>/dev/null; then
11276 as_ln_s=ln
11277 else
11278 as_ln_s='cp -pR'
11279 fi
11280else
11281 as_ln_s='cp -pR'
11282fi
11283rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11284rmdir conf$$.dir 2>/dev/null
11285
11286
11287# as_fn_mkdir_p
11288# -------------
11289# Create "$as_dir" as a directory, including parents if necessary.
11290as_fn_mkdir_p ()
11291{
11292
11293 case $as_dir in #(
11294 -*) as_dir=./$as_dir;;
11295 esac
11296 test -d "$as_dir" || eval $as_mkdir_p || {
11297 as_dirs=
11298 while :; do
11299 case $as_dir in #(
11300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11301 *) as_qdir=$as_dir;;
11302 esac
11303 as_dirs="'$as_qdir' $as_dirs"
11304 as_dir=`$as_dirname -- "$as_dir" ||
11305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11306 X"$as_dir" : 'X\(//\)[^/]' \| \
11307 X"$as_dir" : 'X\(//\)$' \| \
11308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11309$as_echo X"$as_dir" |
11310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11311 s//\1/
11312 q
11313 }
11314 /^X\(\/\/\)[^/].*/{
11315 s//\1/
11316 q
11317 }
11318 /^X\(\/\/\)$/{
11319 s//\1/
11320 q
11321 }
11322 /^X\(\/\).*/{
11323 s//\1/
11324 q
11325 }
11326 s/.*/./; q'`
11327 test -d "$as_dir" && break
11328 done
11329 test -z "$as_dirs" || eval "mkdir $as_dirs"
11330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11331
11332
11333} # as_fn_mkdir_p
11334if mkdir -p . 2>/dev/null; then
11335 as_mkdir_p='mkdir -p "$as_dir"'
11336else
11337 test -d ./-p && rmdir ./-p
11338 as_mkdir_p=false
11339fi
11340
11341
11342# as_fn_executable_p FILE
11343# -----------------------
11344# Test if FILE is an executable regular file.
11345as_fn_executable_p ()
11346{
11347 test -f "$1" && test -x "$1"
11348} # as_fn_executable_p
11349as_test_x='test -x'
11350as_executable_p=as_fn_executable_p
11351
11352# Sed expression to map a string onto a valid CPP name.
11353as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11354
11355# Sed expression to map a string onto a valid variable name.
11356as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11357
11358
11359exec 6>&1
11360## ----------------------------------- ##
11361## Main body of $CONFIG_STATUS script. ##
11362## ----------------------------------- ##
11363_ASEOF
11364test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11365
11366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11367# Save the log message, to keep $0 and so on meaningful, and to
11368# report actual input values of CONFIG_FILES etc. instead of their
11369# values after options handling.
11370ac_log="
11371This file was extended by gdbsupport $as_me 1.0, which was
11372generated by GNU Autoconf 2.69. Invocation command line was
11373
11374 CONFIG_FILES = $CONFIG_FILES
11375 CONFIG_HEADERS = $CONFIG_HEADERS
11376 CONFIG_LINKS = $CONFIG_LINKS
11377 CONFIG_COMMANDS = $CONFIG_COMMANDS
11378 $ $0 $@
11379
11380on `(hostname || uname -n) 2>/dev/null | sed 1q`
11381"
11382
11383_ACEOF
11384
11385case $ac_config_files in *"
11386"*) set x $ac_config_files; shift; ac_config_files=$*;;
11387esac
11388
11389case $ac_config_headers in *"
11390"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11391esac
11392
11393
11394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11395# Files that config.status was made for.
11396config_files="$ac_config_files"
11397config_headers="$ac_config_headers"
11398config_commands="$ac_config_commands"
11399
11400_ACEOF
11401
11402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11403ac_cs_usage="\
11404\`$as_me' instantiates files and other configuration actions
11405from templates according to the current configuration. Unless the files
11406and actions are specified as TAGs, all are instantiated by default.
11407
11408Usage: $0 [OPTION]... [TAG]...
11409
11410 -h, --help print this help, then exit
11411 -V, --version print version number and configuration settings, then exit
11412 --config print configuration, then exit
11413 -q, --quiet, --silent
11414 do not print progress messages
11415 -d, --debug don't remove temporary files
11416 --recheck update $as_me by reconfiguring in the same conditions
11417 --file=FILE[:TEMPLATE]
11418 instantiate the configuration file FILE
11419 --header=FILE[:TEMPLATE]
11420 instantiate the configuration header FILE
11421
11422Configuration files:
11423$config_files
11424
11425Configuration headers:
11426$config_headers
11427
11428Configuration commands:
11429$config_commands
11430
11431Report bugs to the package provider."
11432
11433_ACEOF
11434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11435ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11436ac_cs_version="\\
11437gdbsupport config.status 1.0
11438configured by $0, generated by GNU Autoconf 2.69,
11439 with options \\"\$ac_cs_config\\"
11440
11441Copyright (C) 2012 Free Software Foundation, Inc.
11442This config.status script is free software; the Free Software Foundation
11443gives unlimited permission to copy, distribute and modify it."
11444
11445ac_pwd='$ac_pwd'
11446srcdir='$srcdir'
11447INSTALL='$INSTALL'
11448MKDIR_P='$MKDIR_P'
11449AWK='$AWK'
11450test -n "\$AWK" || AWK=awk
11451_ACEOF
11452
11453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11454# The default lists apply if the user does not specify any file.
11455ac_need_defaults=:
11456while test $# != 0
11457do
11458 case $1 in
11459 --*=?*)
11460 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11461 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11462 ac_shift=:
11463 ;;
11464 --*=)
11465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11466 ac_optarg=
11467 ac_shift=:
11468 ;;
11469 *)
11470 ac_option=$1
11471 ac_optarg=$2
11472 ac_shift=shift
11473 ;;
11474 esac
11475
11476 case $ac_option in
11477 # Handling of the options.
11478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11479 ac_cs_recheck=: ;;
11480 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11481 $as_echo "$ac_cs_version"; exit ;;
11482 --config | --confi | --conf | --con | --co | --c )
11483 $as_echo "$ac_cs_config"; exit ;;
11484 --debug | --debu | --deb | --de | --d | -d )
11485 debug=: ;;
11486 --file | --fil | --fi | --f )
11487 $ac_shift
11488 case $ac_optarg in
11489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11490 '') as_fn_error $? "missing file argument" ;;
11491 esac
11492 as_fn_append CONFIG_FILES " '$ac_optarg'"
11493 ac_need_defaults=false;;
11494 --header | --heade | --head | --hea )
11495 $ac_shift
11496 case $ac_optarg in
11497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11498 esac
11499 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11500 ac_need_defaults=false;;
11501 --he | --h)
11502 # Conflict between --help and --header
11503 as_fn_error $? "ambiguous option: \`$1'
11504Try \`$0 --help' for more information.";;
11505 --help | --hel | -h )
11506 $as_echo "$ac_cs_usage"; exit ;;
11507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11508 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11509 ac_cs_silent=: ;;
11510
11511 # This is an error.
11512 -*) as_fn_error $? "unrecognized option: \`$1'
11513Try \`$0 --help' for more information." ;;
11514
11515 *) as_fn_append ac_config_targets " $1"
11516 ac_need_defaults=false ;;
11517
11518 esac
11519 shift
11520done
11521
11522ac_configure_extra_args=
11523
11524if $ac_cs_silent; then
11525 exec 6>/dev/null
11526 ac_configure_extra_args="$ac_configure_extra_args --silent"
11527fi
11528
11529_ACEOF
11530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11531if \$ac_cs_recheck; then
11532 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11533 shift
11534 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11535 CONFIG_SHELL='$SHELL'
11536 export CONFIG_SHELL
11537 exec "\$@"
11538fi
11539
11540_ACEOF
11541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11542exec 5>>config.log
11543{
11544 echo
11545 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11546## Running $as_me. ##
11547_ASBOX
11548 $as_echo "$ac_log"
11549} >&5
11550
11551_ACEOF
11552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11553#
11554# INIT-COMMANDS
11555#
11556AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11557
11558_ACEOF
11559
11560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11561
11562# Handling of arguments.
11563for ac_config_target in $ac_config_targets
11564do
11565 case $ac_config_target in
11566 "support-config.h") CONFIG_HEADERS="$CONFIG_HEADERS support-config.h:config.in" ;;
11567 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11568 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11569
11570 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11571 esac
11572done
11573
11574
11575# If the user did not use the arguments to specify the items to instantiate,
11576# then the envvar interface is used. Set only those that are not.
11577# We use the long form for the default assignment because of an extremely
11578# bizarre bug on SunOS 4.1.3.
11579if $ac_need_defaults; then
11580 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11581 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11582 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11583fi
11584
11585# Have a temporary directory for convenience. Make it in the build tree
11586# simply because there is no reason against having it here, and in addition,
11587# creating and moving files from /tmp can sometimes cause problems.
11588# Hook for its removal unless debugging.
11589# Note that there is a small window in which the directory will not be cleaned:
11590# after its creation but before its name has been assigned to `$tmp'.
11591$debug ||
11592{
11593 tmp= ac_tmp=
11594 trap 'exit_status=$?
11595 : "${ac_tmp:=$tmp}"
11596 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11597' 0
11598 trap 'as_fn_exit 1' 1 2 13 15
11599}
11600# Create a (secure) tmp directory for tmp files.
11601
11602{
11603 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11604 test -d "$tmp"
11605} ||
11606{
11607 tmp=./conf$$-$RANDOM
11608 (umask 077 && mkdir "$tmp")
11609} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11610ac_tmp=$tmp
11611
11612# Set up the scripts for CONFIG_FILES section.
11613# No need to generate them if there are no CONFIG_FILES.
11614# This happens for instance with `./config.status config.h'.
11615if test -n "$CONFIG_FILES"; then
11616
11617
11618ac_cr=`echo X | tr X '\015'`
11619# On cygwin, bash can eat \r inside `` if the user requested igncr.
11620# But we know of no other shell where ac_cr would be empty at this
11621# point, so we can use a bashism as a fallback.
11622if test "x$ac_cr" = x; then
11623 eval ac_cr=\$\'\\r\'
11624fi
11625ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11626if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11627 ac_cs_awk_cr='\\r'
11628else
11629 ac_cs_awk_cr=$ac_cr
11630fi
11631
11632echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11633_ACEOF
11634
11635
11636{
11637 echo "cat >conf$$subs.awk <<_ACEOF" &&
11638 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11639 echo "_ACEOF"
11640} >conf$$subs.sh ||
11641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11642ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11643ac_delim='%!_!# '
11644for ac_last_try in false false false false false :; do
11645 . ./conf$$subs.sh ||
11646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11647
11648 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11649 if test $ac_delim_n = $ac_delim_num; then
11650 break
11651 elif $ac_last_try; then
11652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11653 else
11654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11655 fi
11656done
11657rm -f conf$$subs.sh
11658
11659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11660cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11661_ACEOF
11662sed -n '
11663h
11664s/^/S["/; s/!.*/"]=/
11665p
11666g
11667s/^[^!]*!//
11668:repl
11669t repl
11670s/'"$ac_delim"'$//
11671t delim
11672:nl
11673h
11674s/\(.\{148\}\)..*/\1/
11675t more1
11676s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11677p
11678n
11679b repl
11680:more1
11681s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11682p
11683g
11684s/.\{148\}//
11685t nl
11686:delim
11687h
11688s/\(.\{148\}\)..*/\1/
11689t more2
11690s/["\\]/\\&/g; s/^/"/; s/$/"/
11691p
11692b
11693:more2
11694s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11695p
11696g
11697s/.\{148\}//
11698t delim
11699' <conf$$subs.awk | sed '
11700/^[^""]/{
11701 N
11702 s/\n//
11703}
11704' >>$CONFIG_STATUS || ac_write_fail=1
11705rm -f conf$$subs.awk
11706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11707_ACAWK
11708cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11709 for (key in S) S_is_set[key] = 1
11710 FS = "\a"
11711
11712}
11713{
11714 line = $ 0
11715 nfields = split(line, field, "@")
11716 substed = 0
11717 len = length(field[1])
11718 for (i = 2; i < nfields; i++) {
11719 key = field[i]
11720 keylen = length(key)
11721 if (S_is_set[key]) {
11722 value = S[key]
11723 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11724 len += length(value) + length(field[++i])
11725 substed = 1
11726 } else
11727 len += 1 + keylen
11728 }
11729
11730 print line
11731}
11732
11733_ACAWK
11734_ACEOF
11735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11736if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11737 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11738else
11739 cat
11740fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11741 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11742_ACEOF
11743
11744# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11745# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11746# trailing colons and then remove the whole line if VPATH becomes empty
11747# (actually we leave an empty line to preserve line numbers).
11748if test "x$srcdir" = x.; then
11749 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11750h
11751s///
11752s/^/:/
11753s/[ ]*$/:/
11754s/:\$(srcdir):/:/g
11755s/:\${srcdir}:/:/g
11756s/:@srcdir@:/:/g
11757s/^:*//
11758s/:*$//
11759x
11760s/\(=[ ]*\).*/\1/
11761G
11762s/\n//
11763s/^[^=]*=[ ]*$//
11764}'
11765fi
11766
11767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11768fi # test -n "$CONFIG_FILES"
11769
11770# Set up the scripts for CONFIG_HEADERS section.
11771# No need to generate them if there are no CONFIG_HEADERS.
11772# This happens for instance with `./config.status Makefile'.
11773if test -n "$CONFIG_HEADERS"; then
11774cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11775BEGIN {
11776_ACEOF
11777
11778# Transform confdefs.h into an awk script `defines.awk', embedded as
11779# here-document in config.status, that substitutes the proper values into
11780# config.h.in to produce config.h.
11781
11782# Create a delimiter string that does not exist in confdefs.h, to ease
11783# handling of long lines.
11784ac_delim='%!_!# '
11785for ac_last_try in false false :; do
11786 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11787 if test -z "$ac_tt"; then
11788 break
11789 elif $ac_last_try; then
11790 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11791 else
11792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11793 fi
11794done
11795
11796# For the awk script, D is an array of macro values keyed by name,
11797# likewise P contains macro parameters if any. Preserve backslash
11798# newline sequences.
11799
11800ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11801sed -n '
11802s/.\{148\}/&'"$ac_delim"'/g
11803t rset
11804:rset
11805s/^[ ]*#[ ]*define[ ][ ]*/ /
11806t def
11807d
11808:def
11809s/\\$//
11810t bsnl
11811s/["\\]/\\&/g
11812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11813D["\1"]=" \3"/p
11814s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11815d
11816:bsnl
11817s/["\\]/\\&/g
11818s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11819D["\1"]=" \3\\\\\\n"\\/p
11820t cont
11821s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11822t cont
11823d
11824:cont
11825n
11826s/.\{148\}/&'"$ac_delim"'/g
11827t clear
11828:clear
11829s/\\$//
11830t bsnlc
11831s/["\\]/\\&/g; s/^/"/; s/$/"/p
11832d
11833:bsnlc
11834s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11835b cont
11836' <confdefs.h | sed '
11837s/'"$ac_delim"'/"\\\
11838"/g' >>$CONFIG_STATUS || ac_write_fail=1
11839
11840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11841 for (key in D) D_is_set[key] = 1
11842 FS = "\a"
11843}
11844/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11845 line = \$ 0
11846 split(line, arg, " ")
11847 if (arg[1] == "#") {
11848 defundef = arg[2]
11849 mac1 = arg[3]
11850 } else {
11851 defundef = substr(arg[1], 2)
11852 mac1 = arg[2]
11853 }
11854 split(mac1, mac2, "(") #)
11855 macro = mac2[1]
11856 prefix = substr(line, 1, index(line, defundef) - 1)
11857 if (D_is_set[macro]) {
11858 # Preserve the white space surrounding the "#".
11859 print prefix "define", macro P[macro] D[macro]
11860 next
11861 } else {
11862 # Replace #undef with comments. This is necessary, for example,
11863 # in the case of _POSIX_SOURCE, which is predefined and required
11864 # on some systems where configure will not decide to define it.
11865 if (defundef == "undef") {
11866 print "/*", prefix defundef, macro, "*/"
11867 next
11868 }
11869 }
11870}
11871{ print }
11872_ACAWK
11873_ACEOF
11874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11875 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11876fi # test -n "$CONFIG_HEADERS"
11877
11878
11879eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11880shift
11881for ac_tag
11882do
11883 case $ac_tag in
11884 :[FHLC]) ac_mode=$ac_tag; continue;;
11885 esac
11886 case $ac_mode$ac_tag in
11887 :[FHL]*:*);;
11888 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11889 :[FH]-) ac_tag=-:-;;
11890 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11891 esac
11892 ac_save_IFS=$IFS
11893 IFS=:
11894 set x $ac_tag
11895 IFS=$ac_save_IFS
11896 shift
11897 ac_file=$1
11898 shift
11899
11900 case $ac_mode in
11901 :L) ac_source=$1;;
11902 :[FH])
11903 ac_file_inputs=
11904 for ac_f
11905 do
11906 case $ac_f in
11907 -) ac_f="$ac_tmp/stdin";;
11908 *) # Look for the file first in the build tree, then in the source tree
11909 # (if the path is not absolute). The absolute path cannot be DOS-style,
11910 # because $ac_f cannot contain `:'.
11911 test -f "$ac_f" ||
11912 case $ac_f in
11913 [\\/$]*) false;;
11914 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11915 esac ||
11916 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11917 esac
11918 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11919 as_fn_append ac_file_inputs " '$ac_f'"
11920 done
11921
11922 # Let's still pretend it is `configure' which instantiates (i.e., don't
11923 # use $as_me), people would be surprised to read:
11924 # /* config.h. Generated by config.status. */
11925 configure_input='Generated from '`
11926 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11927 `' by configure.'
11928 if test x"$ac_file" != x-; then
11929 configure_input="$ac_file. $configure_input"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11931$as_echo "$as_me: creating $ac_file" >&6;}
11932 fi
11933 # Neutralize special characters interpreted by sed in replacement strings.
11934 case $configure_input in #(
11935 *\&* | *\|* | *\\* )
11936 ac_sed_conf_input=`$as_echo "$configure_input" |
11937 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11938 *) ac_sed_conf_input=$configure_input;;
11939 esac
11940
11941 case $ac_tag in
11942 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11943 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11944 esac
11945 ;;
11946 esac
11947
11948 ac_dir=`$as_dirname -- "$ac_file" ||
11949$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11950 X"$ac_file" : 'X\(//\)[^/]' \| \
11951 X"$ac_file" : 'X\(//\)$' \| \
11952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11953$as_echo X"$ac_file" |
11954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11955 s//\1/
11956 q
11957 }
11958 /^X\(\/\/\)[^/].*/{
11959 s//\1/
11960 q
11961 }
11962 /^X\(\/\/\)$/{
11963 s//\1/
11964 q
11965 }
11966 /^X\(\/\).*/{
11967 s//\1/
11968 q
11969 }
11970 s/.*/./; q'`
11971 as_dir="$ac_dir"; as_fn_mkdir_p
11972 ac_builddir=.
11973
11974case "$ac_dir" in
11975.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11976*)
11977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11978 # A ".." for each directory in $ac_dir_suffix.
11979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11980 case $ac_top_builddir_sub in
11981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11983 esac ;;
11984esac
11985ac_abs_top_builddir=$ac_pwd
11986ac_abs_builddir=$ac_pwd$ac_dir_suffix
11987# for backward compatibility:
11988ac_top_builddir=$ac_top_build_prefix
11989
11990case $srcdir in
11991 .) # We are building in place.
11992 ac_srcdir=.
11993 ac_top_srcdir=$ac_top_builddir_sub
11994 ac_abs_top_srcdir=$ac_pwd ;;
11995 [\\/]* | ?:[\\/]* ) # Absolute name.
11996 ac_srcdir=$srcdir$ac_dir_suffix;
11997 ac_top_srcdir=$srcdir
11998 ac_abs_top_srcdir=$srcdir ;;
11999 *) # Relative name.
12000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12001 ac_top_srcdir=$ac_top_build_prefix$srcdir
12002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12003esac
12004ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12005
12006
12007 case $ac_mode in
12008 :F)
12009 #
12010 # CONFIG_FILE
12011 #
12012
12013 case $INSTALL in
12014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12016 esac
12017 ac_MKDIR_P=$MKDIR_P
12018 case $MKDIR_P in
12019 [\\/$]* | ?:[\\/]* ) ;;
12020 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12021 esac
12022_ACEOF
12023
12024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12025# If the template does not know about datarootdir, expand it.
12026# FIXME: This hack should be removed a few years after 2.60.
12027ac_datarootdir_hack=; ac_datarootdir_seen=
12028ac_sed_dataroot='
12029/datarootdir/ {
12030 p
12031 q
12032}
12033/@datadir@/p
12034/@docdir@/p
12035/@infodir@/p
12036/@localedir@/p
12037/@mandir@/p'
12038case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12039*datarootdir*) ac_datarootdir_seen=yes;;
12040*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12042$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12043_ACEOF
12044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12045 ac_datarootdir_hack='
12046 s&@datadir@&$datadir&g
12047 s&@docdir@&$docdir&g
12048 s&@infodir@&$infodir&g
12049 s&@localedir@&$localedir&g
12050 s&@mandir@&$mandir&g
12051 s&\\\${datarootdir}&$datarootdir&g' ;;
12052esac
12053_ACEOF
12054
12055# Neutralize VPATH when `$srcdir' = `.'.
12056# Shell code in configure.ac might set extrasub.
12057# FIXME: do we really want to maintain this feature?
12058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12059ac_sed_extra="$ac_vpsub
12060$extrasub
12061_ACEOF
12062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12063:t
12064/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12065s|@configure_input@|$ac_sed_conf_input|;t t
12066s&@top_builddir@&$ac_top_builddir_sub&;t t
12067s&@top_build_prefix@&$ac_top_build_prefix&;t t
12068s&@srcdir@&$ac_srcdir&;t t
12069s&@abs_srcdir@&$ac_abs_srcdir&;t t
12070s&@top_srcdir@&$ac_top_srcdir&;t t
12071s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12072s&@builddir@&$ac_builddir&;t t
12073s&@abs_builddir@&$ac_abs_builddir&;t t
12074s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12075s&@INSTALL@&$ac_INSTALL&;t t
12076s&@MKDIR_P@&$ac_MKDIR_P&;t t
12077$ac_datarootdir_hack
12078"
12079eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12080 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12081
12082test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12083 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12084 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12085 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12087which seems to be undefined. Please make sure it is defined" >&5
12088$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12089which seems to be undefined. Please make sure it is defined" >&2;}
12090
12091 rm -f "$ac_tmp/stdin"
12092 case $ac_file in
12093 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12094 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12095 esac \
12096 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12097 ;;
12098 :H)
12099 #
12100 # CONFIG_HEADER
12101 #
12102 if test x"$ac_file" != x-; then
12103 {
12104 $as_echo "/* $configure_input */" \
12105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12106 } >"$ac_tmp/config.h" \
12107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12108 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12110$as_echo "$as_me: $ac_file is unchanged" >&6;}
12111 else
12112 rm -f "$ac_file"
12113 mv "$ac_tmp/config.h" "$ac_file" \
12114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12115 fi
12116 else
12117 $as_echo "/* $configure_input */" \
12118 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12119 || as_fn_error $? "could not create -" "$LINENO" 5
12120 fi
12121# Compute "$ac_file"'s index in $config_headers.
12122_am_arg="$ac_file"
12123_am_stamp_count=1
12124for _am_header in $config_headers :; do
12125 case $_am_header in
12126 $_am_arg | $_am_arg:* )
12127 break ;;
12128 * )
12129 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12130 esac
12131done
12132echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12133$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12134 X"$_am_arg" : 'X\(//\)[^/]' \| \
12135 X"$_am_arg" : 'X\(//\)$' \| \
12136 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12137$as_echo X"$_am_arg" |
12138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12139 s//\1/
12140 q
12141 }
12142 /^X\(\/\/\)[^/].*/{
12143 s//\1/
12144 q
12145 }
12146 /^X\(\/\/\)$/{
12147 s//\1/
12148 q
12149 }
12150 /^X\(\/\).*/{
12151 s//\1/
12152 q
12153 }
12154 s/.*/./; q'`/stamp-h$_am_stamp_count
12155 ;;
12156
12157 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12158$as_echo "$as_me: executing $ac_file commands" >&6;}
12159 ;;
12160 esac
12161
12162
12163 case $ac_file$ac_mode in
12164 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12165 # Older Autoconf quotes --file arguments for eval, but not when files
12166 # are listed without --file. Let's play safe and only enable the eval
12167 # if we detect the quoting.
12168 case $CONFIG_FILES in
12169 *\'*) eval set x "$CONFIG_FILES" ;;
12170 *) set x $CONFIG_FILES ;;
12171 esac
12172 shift
12173 for mf
12174 do
12175 # Strip MF so we end up with the name of the file.
12176 mf=`echo "$mf" | sed -e 's/:.*$//'`
12177 # Check whether this is an Automake generated Makefile or not.
12178 # We used to match only the files named 'Makefile.in', but
12179 # some people rename them; so instead we look at the file content.
12180 # Grep'ing the first line is not enough: some people post-process
12181 # each Makefile.in and add a new line on top of each file to say so.
12182 # Grep'ing the whole file is not good either: AIX grep has a line
12183 # limit of 2048, but all sed's we know have understand at least 4000.
12184 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12185 dirpart=`$as_dirname -- "$mf" ||
12186$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12187 X"$mf" : 'X\(//\)[^/]' \| \
12188 X"$mf" : 'X\(//\)$' \| \
12189 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12190$as_echo X"$mf" |
12191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12192 s//\1/
12193 q
12194 }
12195 /^X\(\/\/\)[^/].*/{
12196 s//\1/
12197 q
12198 }
12199 /^X\(\/\/\)$/{
12200 s//\1/
12201 q
12202 }
12203 /^X\(\/\).*/{
12204 s//\1/
12205 q
12206 }
12207 s/.*/./; q'`
12208 else
12209 continue
12210 fi
12211 # Extract the definition of DEPDIR, am__include, and am__quote
12212 # from the Makefile without running 'make'.
12213 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12214 test -z "$DEPDIR" && continue
12215 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12216 test -z "$am__include" && continue
12217 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12218 # Find all dependency output files, they are included files with
12219 # $(DEPDIR) in their names. We invoke sed twice because it is the
12220 # simplest approach to changing $(DEPDIR) to its actual value in the
12221 # expansion.
12222 for file in `sed -n "
12223 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12224 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12225 # Make sure the directory exists.
12226 test -f "$dirpart/$file" && continue
12227 fdir=`$as_dirname -- "$file" ||
12228$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12229 X"$file" : 'X\(//\)[^/]' \| \
12230 X"$file" : 'X\(//\)$' \| \
12231 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12232$as_echo X"$file" |
12233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12234 s//\1/
12235 q
12236 }
12237 /^X\(\/\/\)[^/].*/{
12238 s//\1/
12239 q
12240 }
12241 /^X\(\/\/\)$/{
12242 s//\1/
12243 q
12244 }
12245 /^X\(\/\).*/{
12246 s//\1/
12247 q
12248 }
12249 s/.*/./; q'`
12250 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12251 # echo "creating $dirpart/$file"
12252 echo '# dummy' > "$dirpart/$file"
12253 done
12254 done
12255}
12256 ;;
12257
12258 esac
12259done # for ac_tag
12260
12261
12262as_fn_exit 0
12263_ACEOF
12264ac_clean_files=$ac_clean_files_save
12265
12266test $ac_write_fail = 0 ||
12267 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12268
12269
12270# configure is writing to config.log, and then calls config.status.
12271# config.status does its own redirection, appending to config.log.
12272# Unfortunately, on DOS this fails, as config.log is still kept open
12273# by configure, so config.status won't be able to write to it; its
12274# output is simply discarded. So we exec the FD to /dev/null,
12275# effectively closing config.log, so it can be properly (re)opened and
12276# appended to by config.status. When coming back to configure, we
12277# need to make the FD available again.
12278if test "$no_create" != yes; then
12279 ac_cs_success=:
12280 ac_config_status_args=
12281 test "$silent" = yes &&
12282 ac_config_status_args="$ac_config_status_args --quiet"
12283 exec 5>/dev/null
12284 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12285 exec 5>>config.log
12286 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12287 # would make configure fail if this is the last instruction.
12288 $ac_cs_success || as_fn_exit 1
12289fi
12290if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12292$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12293fi
12294
This page took 0.546687 seconds and 4 git commands to generate.