]> git.ipfire.org Git - thirdparty/gcc.git/blame - c++tools/configure
configure: Implement --enable-host-pie
[thirdparty/gcc.git] / c++tools / configure
CommitLineData
35fc243f
NS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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'\" &&
09616422
NS
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
35fc243f
NS
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=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="c++tools"
586ac_unique_file="server.cc"
09616422
NS
587# Factoring default headers for most tests.
588ac_includes_default="\
589#include <stdio.h>
590#ifdef HAVE_SYS_TYPES_H
591# include <sys/types.h>
592#endif
593#ifdef HAVE_SYS_STAT_H
594# include <sys/stat.h>
595#endif
596#ifdef STDC_HEADERS
597# include <stdlib.h>
598# include <stddef.h>
599#else
600# ifdef HAVE_STDLIB_H
601# include <stdlib.h>
602# endif
603#endif
604#ifdef HAVE_STRING_H
605# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606# include <memory.h>
607# endif
608# include <string.h>
609#endif
610#ifdef HAVE_STRINGS_H
611# include <strings.h>
612#endif
613#ifdef HAVE_INTTYPES_H
614# include <inttypes.h>
615#endif
616#ifdef HAVE_STDINT_H
617# include <stdint.h>
618#endif
619#ifdef HAVE_UNISTD_H
620# include <unistd.h>
621#endif"
622
35fc243f
NS
623ac_subst_vars='LTLIBOBJS
624LIBOBJS
a20893cf 625NETLIBS
4e7e7c13 626get_gcc_base_ver
09616422
NS
627EGREP
628GREP
e4d306cf 629CXXCPP
251c72a6
MP
630LD_PICFLAG
631PICFLAG
35fc243f
NS
632MAINTAINER
633CXX_AUX_TOOLS
634AUTOHEADER
635AUTOCONF
636OBJEXT
637EXEEXT
638ac_ct_CXX
639CPPFLAGS
640LDFLAGS
641CXXFLAGS
642CXX
643INSTALL_DATA
644INSTALL_SCRIPT
645INSTALL_PROGRAM
646target_os
647target_vendor
648target_cpu
649target
650host_os
651host_vendor
652host_cpu
653host
654target_noncanonical
655build_os
656build_vendor
657build_cpu
658build
659target_alias
660host_alias
661build_alias
662LIBS
663ECHO_T
664ECHO_N
665ECHO_C
666DEFS
667mandir
668localedir
669libdir
670psdir
671pdfdir
672dvidir
673htmldir
674infodir
675docdir
676oldincludedir
677includedir
678localstatedir
679sharedstatedir
680sysconfdir
681datadir
682datarootdir
683libexecdir
684sbindir
685bindir
686program_transform_name
687prefix
688exec_prefix
689PACKAGE_URL
690PACKAGE_BUGREPORT
691PACKAGE_STRING
692PACKAGE_VERSION
693PACKAGE_TARNAME
694PACKAGE_NAME
695PATH_SEPARATOR
696SHELL'
697ac_subst_files=''
698ac_user_opts='
699enable_option_checking
700enable_c___tools
701enable_maintainer_mode
e4d306cf 702enable_checking
544f4775 703enable_default_pie
251c72a6 704enable_host_pie
4e7e7c13 705with_gcc_major_version_only
35fc243f
NS
706'
707 ac_precious_vars='build_alias
708host_alias
709target_alias
710CXX
711CXXFLAGS
712LDFLAGS
713LIBS
714CPPFLAGS
715CCC
e4d306cf 716CXXCPP'
35fc243f
NS
717
718
719# Initialize some variables set by options.
720ac_init_help=
721ac_init_version=false
722ac_unrecognized_opts=
723ac_unrecognized_sep=
724# The variables have the same names as the options, with
725# dashes changed to underlines.
726cache_file=/dev/null
727exec_prefix=NONE
728no_create=
729no_recursion=
730prefix=NONE
731program_prefix=NONE
732program_suffix=NONE
733program_transform_name=s,x,x,
734silent=
735site=
736srcdir=
737verbose=
738x_includes=NONE
739x_libraries=NONE
740
741# Installation directory options.
742# These are left unexpanded so users can "make install exec_prefix=/foo"
743# and all the variables that are supposed to be based on exec_prefix
744# by default will actually change.
745# Use braces instead of parens because sh, perl, etc. also accept them.
746# (The list follows the same order as the GNU Coding Standards.)
747bindir='${exec_prefix}/bin'
748sbindir='${exec_prefix}/sbin'
749libexecdir='${exec_prefix}/libexec'
750datarootdir='${prefix}/share'
751datadir='${datarootdir}'
752sysconfdir='${prefix}/etc'
753sharedstatedir='${prefix}/com'
754localstatedir='${prefix}/var'
755includedir='${prefix}/include'
756oldincludedir='/usr/include'
757docdir='${datarootdir}/doc/${PACKAGE}'
758infodir='${datarootdir}/info'
759htmldir='${docdir}'
760dvidir='${docdir}'
761pdfdir='${docdir}'
762psdir='${docdir}'
763libdir='${exec_prefix}/lib'
764localedir='${datarootdir}/locale'
765mandir='${datarootdir}/man'
766
767ac_prev=
768ac_dashdash=
769for ac_option
770do
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\$ac_option
774 ac_prev=
775 continue
776 fi
777
778 case $ac_option in
779 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 *=) ac_optarg= ;;
781 *) ac_optarg=yes ;;
782 esac
783
784 # Accept the important Cygnus configure options, so we can diagnose typos.
785
786 case $ac_dashdash$ac_option in
787 --)
788 ac_dashdash=yes ;;
789
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
794
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
799
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
806
807 --config-cache | -C)
808 cache_file=config.cache ;;
809
810 -datadir | --datadir | --datadi | --datad)
811 ac_prev=datadir ;;
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
814
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
821
822 -disable-* | --disable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error $? "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831"enable_$ac_useropt"
832"*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=no ;;
837
838 -docdir | --docdir | --docdi | --doc | --do)
839 ac_prev=docdir ;;
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 docdir=$ac_optarg ;;
842
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844 ac_prev=dvidir ;;
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 dvidir=$ac_optarg ;;
847
848 -enable-* | --enable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
856 *"
857"enable_$ac_useropt"
858"*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=\$ac_optarg ;;
863
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
872
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
876
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
883
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
888
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
894
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
901
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
906
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
911
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
918
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
923
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
930
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
935
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
939
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
943
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
947
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
956
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
961
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
968
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
975
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
992
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
997
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1002
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1006
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1012
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1023
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1028
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1033
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1040
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1045
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1048
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1051
1052 -with-* | --with-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid package name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061"with_$ac_useropt"
1062"*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval with_$ac_useropt=\$ac_optarg ;;
1067
1068 -without-* | --without-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077"with_$ac_useropt"
1078"*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=no ;;
1083
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1087
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1094
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1101
1102 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1103Try \`$0 --help' for more information"
1104 ;;
1105
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 case $ac_envvar in #(
1110 '' | [0-9]* | *[!_$as_cr_alnum]* )
1111 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1112 esac
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1115
1116 *)
1117 # FIXME: should be removed in autoconf 3.0.
1118 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1122 ;;
1123
1124 esac
1125done
1126
1127if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 as_fn_error $? "missing argument to $ac_option"
1130fi
1131
1132if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1134 no) ;;
1135 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1136 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1137 esac
1138fi
1139
1140# Check all directory arguments for consistency.
1141for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1145do
1146 eval ac_val=\$$ac_var
1147 # Remove trailing slashes.
1148 case $ac_val in
1149 */ )
1150 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\$ac_val;;
1152 esac
1153 # Be sure to have absolute directory names.
1154 case $ac_val in
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 esac
1158 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1159done
1160
1161# There might be people who depend on the old broken behavior: `$host'
1162# used to hold the argument of --host etc.
1163# FIXME: To remove some day.
1164build=$build_alias
1165host=$host_alias
1166target=$target_alias
1167
1168# FIXME: To remove some day.
1169if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 elif test "x$build_alias" != "x$host_alias"; then
1173 cross_compiling=yes
1174 fi
1175fi
1176
1177ac_tool_prefix=
1178test -n "$host_alias" && ac_tool_prefix=$host_alias-
1179
1180test "$silent" = yes && exec 6>/dev/null
1181
1182
1183ac_pwd=`pwd` && test -n "$ac_pwd" &&
1184ac_ls_di=`ls -di .` &&
1185ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1186 as_fn_error $? "working directory cannot be determined"
1187test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1188 as_fn_error $? "pwd does not report name of working directory"
1189
1190
1191# Find the source files, if location was not specified.
1192if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$as_myself" ||
1196$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$as_myself" : 'X\(//\)[^/]' \| \
1198 X"$as_myself" : 'X\(//\)$' \| \
1199 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1200$as_echo X"$as_myself" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\).*/{
1214 s//\1/
1215 q
1216 }
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1221 fi
1222else
1223 ac_srcdir_defaulted=no
1224fi
1225if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1228fi
1229ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230ac_abs_confdir=`(
1231 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1232 pwd)`
1233# When building in place, set srcdir=.
1234if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 srcdir=.
1236fi
1237# Remove unnecessary trailing slashes from srcdir.
1238# Double slashes in file names in object file debugging info
1239# mess up M-x gdb in Emacs.
1240case $srcdir in
1241*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242esac
1243for ac_var in $ac_precious_vars; do
1244 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_${ac_var}_value=\$${ac_var}
1246 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1248done
1249
1250#
1251# Report the --help message.
1252#
1253if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1256 cat <<_ACEOF
1257\`configure' configures this package to adapt to many kinds of systems.
1258
1259Usage: $0 [OPTION]... [VAR=VALUE]...
1260
1261To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262VAR=VALUE. See below for descriptions of some of the useful variables.
1263
1264Defaults for the options are specified in brackets.
1265
1266Configuration:
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
1271 -q, --quiet, --silent do not print \`checking ...' messages
1272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for \`--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1276
1277Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
1279 [$ac_default_prefix]
1280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1281 [PREFIX]
1282
1283By default, \`make install' will install all the files in
1284\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1285an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286for instance \`--prefix=\$HOME'.
1287
1288For better control, use the options below.
1289
1290Fine tuning of the installation directories:
1291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --libdir=DIR object code libraries [EPREFIX/lib]
1298 --includedir=DIR C header files [PREFIX/include]
1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1302 --infodir=DIR info documentation [DATAROOTDIR/info]
1303 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1304 --mandir=DIR man documentation [DATAROOTDIR/man]
1305 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1306 --htmldir=DIR html documentation [DOCDIR]
1307 --dvidir=DIR dvi documentation [DOCDIR]
1308 --pdfdir=DIR pdf documentation [DOCDIR]
1309 --psdir=DIR ps documentation [DOCDIR]
1310_ACEOF
1311
1312 cat <<\_ACEOF
1313
1314System types:
1315 --build=BUILD configure for building on BUILD [guessed]
1316 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1317 --target=TARGET configure for building compilers for TARGET [HOST]
1318_ACEOF
1319fi
1320
1321if test -n "$ac_init_help"; then
1322
1323 cat <<\_ACEOF
1324
1325Optional Features:
1326 --disable-option-checking ignore unrecognized --enable/--with options
1327 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1328 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1329 --enable-c++-tools build auxiliary c++ tools
1330 --enable-maintainer-mode
1331 enable maintainer mode. Add rules to rebuild
1332 configurey bits
e4d306cf
IS
1333 --enable-checking[=LIST]
1334 enable expensive run-time checks. With LIST, enable
1335 only specific categories of checks. Categories are:
1336 yes,no,all,none,release.
544f4775 1337 --enable-default-pie enable Position Independent Executable as default
251c72a6 1338 --enable-host-pie build host code as PIE
35fc243f 1339
4e7e7c13
JJ
1340Optional Packages:
1341 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1342 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1343 --with-gcc-major-version-only
1344 use only GCC major number in filesystem paths
1345
35fc243f
NS
1346Some influential environment variables:
1347 CXX C++ compiler command
1348 CXXFLAGS C++ compiler flags
1349 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1350 nonstandard directory <lib dir>
1351 LIBS libraries to pass to the linker, e.g. -l<library>
1352 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1353 you have headers in a nonstandard directory <include dir>
e4d306cf 1354 CXXCPP C++ preprocessor
35fc243f
NS
1355
1356Use these variables to override the choices made by `configure' or to help
1357it to find libraries and programs with nonstandard names/locations.
1358
1359Report bugs to the package provider.
1360_ACEOF
1361ac_status=$?
1362fi
1363
1364if test "$ac_init_help" = "recursive"; then
1365 # If there are subdirs, report their specific --help.
1366 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1367 test -d "$ac_dir" ||
1368 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1369 continue
1370 ac_builddir=.
1371
1372case "$ac_dir" in
1373.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374*)
1375 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1376 # A ".." for each directory in $ac_dir_suffix.
1377 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1378 case $ac_top_builddir_sub in
1379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1381 esac ;;
1382esac
1383ac_abs_top_builddir=$ac_pwd
1384ac_abs_builddir=$ac_pwd$ac_dir_suffix
1385# for backward compatibility:
1386ac_top_builddir=$ac_top_build_prefix
1387
1388case $srcdir in
1389 .) # We are building in place.
1390 ac_srcdir=.
1391 ac_top_srcdir=$ac_top_builddir_sub
1392 ac_abs_top_srcdir=$ac_pwd ;;
1393 [\\/]* | ?:[\\/]* ) # Absolute name.
1394 ac_srcdir=$srcdir$ac_dir_suffix;
1395 ac_top_srcdir=$srcdir
1396 ac_abs_top_srcdir=$srcdir ;;
1397 *) # Relative name.
1398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1399 ac_top_srcdir=$ac_top_build_prefix$srcdir
1400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1401esac
1402ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1403
1404 cd "$ac_dir" || { ac_status=$?; continue; }
1405 # Check for guested configure.
1406 if test -f "$ac_srcdir/configure.gnu"; then
1407 echo &&
1408 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1409 elif test -f "$ac_srcdir/configure"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure" --help=recursive
1412 else
1413 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1414 fi || ac_status=$?
1415 cd "$ac_pwd" || { ac_status=$?; break; }
1416 done
1417fi
1418
1419test -n "$ac_init_help" && exit $ac_status
1420if $ac_init_version; then
1421 cat <<\_ACEOF
1422configure
1423generated by GNU Autoconf 2.69
1424
1425Copyright (C) 2012 Free Software Foundation, Inc.
1426This configure script is free software; the Free Software Foundation
1427gives unlimited permission to copy, distribute and modify it.
1428_ACEOF
1429 exit
1430fi
1431
1432## ------------------------ ##
1433## Autoconf initialization. ##
1434## ------------------------ ##
1435
1436# ac_fn_cxx_try_compile LINENO
1437# ----------------------------
1438# Try to compile conftest.$ac_ext, and return whether this succeeded.
1439ac_fn_cxx_try_compile ()
1440{
1441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1442 rm -f conftest.$ac_objext
1443 if { { ac_try="$ac_compile"
1444case "(($ac_try" in
1445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1446 *) ac_try_echo=$ac_try;;
1447esac
1448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1449$as_echo "$ac_try_echo"; } >&5
1450 (eval "$ac_compile") 2>conftest.err
1451 ac_status=$?
1452 if test -s conftest.err; then
1453 grep -v '^ *+' conftest.err >conftest.er1
1454 cat conftest.er1 >&5
1455 mv -f conftest.er1 conftest.err
1456 fi
1457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1458 test $ac_status = 0; } && {
1459 test -z "$ac_cxx_werror_flag" ||
1460 test ! -s conftest.err
1461 } && test -s conftest.$ac_objext; then :
1462 ac_retval=0
1463else
1464 $as_echo "$as_me: failed program was:" >&5
1465sed 's/^/| /' conftest.$ac_ext >&5
1466
1467 ac_retval=1
1468fi
1469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1470 as_fn_set_status $ac_retval
1471
1472} # ac_fn_cxx_try_compile
1473
e4d306cf
IS
1474# ac_fn_cxx_try_cpp LINENO
1475# ------------------------
09616422 1476# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
e4d306cf 1477ac_fn_cxx_try_cpp ()
09616422
NS
1478{
1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 if { { ac_try="$ac_cpp conftest.$ac_ext"
1481case "(($ac_try" in
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1484esac
1485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486$as_echo "$ac_try_echo"; } >&5
1487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1488 ac_status=$?
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1493 fi
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } > conftest.i && {
e4d306cf 1496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
09616422
NS
1497 test ! -s conftest.err
1498 }; then :
1499 ac_retval=0
1500else
1501 $as_echo "$as_me: failed program was:" >&5
1502sed 's/^/| /' conftest.$ac_ext >&5
1503
1504 ac_retval=1
1505fi
1506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1507 as_fn_set_status $ac_retval
1508
e4d306cf 1509} # ac_fn_cxx_try_cpp
09616422 1510
e4d306cf
IS
1511# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1512# ---------------------------------------------------------
09616422
NS
1513# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1514# the include files in INCLUDES and setting the cache variable VAR
1515# accordingly.
e4d306cf 1516ac_fn_cxx_check_header_mongrel ()
09616422
NS
1517{
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 if eval \${$3+:} false; then :
1520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1521$as_echo_n "checking for $2... " >&6; }
1522if eval \${$3+:} false; then :
1523 $as_echo_n "(cached) " >&6
1524fi
1525eval ac_res=\$$3
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1527$as_echo "$ac_res" >&6; }
1528else
1529 # Is the header compilable?
1530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1531$as_echo_n "checking $2 usability... " >&6; }
1532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1533/* end confdefs.h. */
1534$4
1535#include <$2>
1536_ACEOF
e4d306cf 1537if ac_fn_cxx_try_compile "$LINENO"; then :
09616422
NS
1538 ac_header_compiler=yes
1539else
1540 ac_header_compiler=no
1541fi
1542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1544$as_echo "$ac_header_compiler" >&6; }
1545
1546# Is the header present?
1547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1548$as_echo_n "checking $2 presence... " >&6; }
1549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550/* end confdefs.h. */
1551#include <$2>
1552_ACEOF
e4d306cf 1553if ac_fn_cxx_try_cpp "$LINENO"; then :
09616422
NS
1554 ac_header_preproc=yes
1555else
1556 ac_header_preproc=no
1557fi
1558rm -f conftest.err conftest.i conftest.$ac_ext
1559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1560$as_echo "$ac_header_preproc" >&6; }
1561
1562# So? What about this header?
e4d306cf 1563case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
09616422
NS
1564 yes:no: )
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1566$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1568$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1569 ;;
1570 no:yes:* )
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1572$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1574$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1576$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1578$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1580$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1581 ;;
1582esac
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584$as_echo_n "checking for $2... " >&6; }
1585if eval \${$3+:} false; then :
1586 $as_echo_n "(cached) " >&6
1587else
1588 eval "$3=\$ac_header_compiler"
1589fi
1590eval ac_res=\$$3
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592$as_echo "$ac_res" >&6; }
1593fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595
e4d306cf 1596} # ac_fn_cxx_check_header_mongrel
09616422 1597
e4d306cf
IS
1598# ac_fn_cxx_try_run LINENO
1599# ------------------------
09616422
NS
1600# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1601# that executables *can* be run.
e4d306cf 1602ac_fn_cxx_try_run ()
09616422
NS
1603{
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_link"
1606case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>&5
1613 ac_status=$?
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1616 { { case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_try") 2>&5
1623 ac_status=$?
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; }; }; then :
1626 ac_retval=0
1627else
1628 $as_echo "$as_me: program exited with status $ac_status" >&5
1629 $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=$ac_status
1633fi
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1637
e4d306cf 1638} # ac_fn_cxx_try_run
09616422 1639
e4d306cf
IS
1640# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1641# ---------------------------------------------------------
09616422
NS
1642# Tests whether HEADER exists and can be compiled using the include files in
1643# INCLUDES, setting the cache variable VAR accordingly.
e4d306cf 1644ac_fn_cxx_check_header_compile ()
09616422
NS
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648$as_echo_n "checking for $2... " >&6; }
1649if eval \${$3+:} false; then :
1650 $as_echo_n "(cached) " >&6
1651else
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653/* end confdefs.h. */
1654$4
1655#include <$2>
1656_ACEOF
e4d306cf 1657if ac_fn_cxx_try_compile "$LINENO"; then :
09616422
NS
1658 eval "$3=yes"
1659else
1660 eval "$3=no"
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663fi
1664eval ac_res=\$$3
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666$as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
e4d306cf 1669} # ac_fn_cxx_check_header_compile
a20893cf 1670
e4d306cf
IS
1671# ac_fn_cxx_try_link LINENO
1672# -------------------------
a20893cf 1673# Try to link conftest.$ac_ext, and return whether this succeeded.
e4d306cf 1674ac_fn_cxx_try_link ()
a20893cf
RO
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1679case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
e4d306cf 1694 test -z "$ac_cxx_werror_flag" ||
a20893cf
RO
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest$ac_exeext
1699 }; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706fi
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
e4d306cf 1715} # ac_fn_cxx_try_link
35fc243f
NS
1716cat >config.log <<_ACEOF
1717This file contains any messages produced by compilers while
1718running configure, to aid debugging if configure makes a mistake.
1719
1720It was created by $as_me, which was
1721generated by GNU Autoconf 2.69. Invocation command line was
1722
1723 $ $0 $@
1724
1725_ACEOF
1726exec 5>>config.log
1727{
1728cat <<_ASUNAME
1729## --------- ##
1730## Platform. ##
1731## --------- ##
1732
1733hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737uname -v = `(uname -v) 2>/dev/null || echo unknown`
1738
1739/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1741
1742/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1743/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1744/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1746/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1747/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1748/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1749
1750_ASUNAME
1751
1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753for as_dir in $PATH
1754do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 $as_echo "PATH: $as_dir"
1758 done
1759IFS=$as_save_IFS
1760
1761} >&5
1762
1763cat >&5 <<_ACEOF
1764
1765
1766## ----------- ##
1767## Core tests. ##
1768## ----------- ##
1769
1770_ACEOF
1771
1772
1773# Keep a trace of the command line.
1774# Strip out --no-create and --no-recursion so they do not pile up.
1775# Strip out --silent because we don't want to record it for future runs.
1776# Also quote any args containing shell meta-characters.
1777# Make two passes to allow for proper duplicate-argument suppression.
1778ac_configure_args=
1779ac_configure_args0=
1780ac_configure_args1=
1781ac_must_keep_next=false
1782for ac_pass in 1 2
1783do
1784 for ac_arg
1785 do
1786 case $ac_arg in
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1790 continue ;;
1791 *\'*)
1792 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 esac
1794 case $ac_pass in
1795 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1796 2)
1797 as_fn_append ac_configure_args1 " '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
1799 ac_must_keep_next=false # Got value, back to normal.
1800 else
1801 case $ac_arg in
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1808 esac
1809 ;;
1810 -* ) ac_must_keep_next=true ;;
1811 esac
1812 fi
1813 as_fn_append ac_configure_args " '$ac_arg'"
1814 ;;
1815 esac
1816 done
1817done
1818{ ac_configure_args0=; unset ac_configure_args0;}
1819{ ac_configure_args1=; unset ac_configure_args1;}
1820
1821# When interrupted or exit'd, cleanup temporary files, and complete
1822# config.log. We remove comments because anyway the quotes in there
1823# would cause problems or look ugly.
1824# WARNING: Use '\'' to represent an apostrophe within the trap.
1825# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826trap 'exit_status=$?
1827 # Save into config.log some information that might help in debugging.
1828 {
1829 echo
1830
1831 $as_echo "## ---------------- ##
1832## Cache variables. ##
1833## ---------------- ##"
1834 echo
1835 # The following way of writing the cache mishandles newlines in values,
1836(
1837 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1838 eval ac_val=\$$ac_var
1839 case $ac_val in #(
1840 *${as_nl}*)
1841 case $ac_var in #(
1842 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1843$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1844 esac
1845 case $ac_var in #(
1846 _ | IFS | as_nl) ;; #(
1847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1848 *) { eval $ac_var=; unset $ac_var;} ;;
1849 esac ;;
1850 esac
1851 done
1852 (set) 2>&1 |
1853 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854 *${as_nl}ac_space=\ *)
1855 sed -n \
1856 "s/'\''/'\''\\\\'\'''\''/g;
1857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858 ;; #(
1859 *)
1860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861 ;;
1862 esac |
1863 sort
1864)
1865 echo
1866
1867 $as_echo "## ----------------- ##
1868## Output variables. ##
1869## ----------------- ##"
1870 echo
1871 for ac_var in $ac_subst_vars
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880
1881 if test -n "$ac_subst_files"; then
1882 $as_echo "## ------------------- ##
1883## File substitutions. ##
1884## ------------------- ##"
1885 echo
1886 for ac_var in $ac_subst_files
1887 do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 $as_echo "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1895 fi
1896
1897 if test -s confdefs.h; then
1898 $as_echo "## ----------- ##
1899## confdefs.h. ##
1900## ----------- ##"
1901 echo
1902 cat confdefs.h
1903 echo
1904 fi
1905 test "$ac_signal" != 0 &&
1906 $as_echo "$as_me: caught signal $ac_signal"
1907 $as_echo "$as_me: exit $exit_status"
1908 } >&5
1909 rm -f core *.core core.conftest.* &&
1910 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911 exit $exit_status
1912' 0
1913for ac_signal in 1 2 13 15; do
1914 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1915done
1916ac_signal=0
1917
1918# confdefs.h avoids OS command line length limits that DEFS can exceed.
1919rm -f -r conftest* confdefs.h
1920
1921$as_echo "/* confdefs.h */" > confdefs.h
1922
1923# Predefined preprocessor variables.
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_NAME "$PACKAGE_NAME"
1927_ACEOF
1928
1929cat >>confdefs.h <<_ACEOF
1930#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1931_ACEOF
1932
1933cat >>confdefs.h <<_ACEOF
1934#define PACKAGE_VERSION "$PACKAGE_VERSION"
1935_ACEOF
1936
1937cat >>confdefs.h <<_ACEOF
1938#define PACKAGE_STRING "$PACKAGE_STRING"
1939_ACEOF
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1943_ACEOF
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_URL "$PACKAGE_URL"
1947_ACEOF
1948
1949
1950# Let the site file select an alternate cache file if it wants to.
1951# Prefer an explicitly selected file to automatically selected ones.
1952ac_site_file1=NONE
1953ac_site_file2=NONE
1954if test -n "$CONFIG_SITE"; then
1955 # We do not want a PATH search for config.site.
1956 case $CONFIG_SITE in #((
1957 -*) ac_site_file1=./$CONFIG_SITE;;
1958 */*) ac_site_file1=$CONFIG_SITE;;
1959 *) ac_site_file1=./$CONFIG_SITE;;
1960 esac
1961elif test "x$prefix" != xNONE; then
1962 ac_site_file1=$prefix/share/config.site
1963 ac_site_file2=$prefix/etc/config.site
1964else
1965 ac_site_file1=$ac_default_prefix/share/config.site
1966 ac_site_file2=$ac_default_prefix/etc/config.site
1967fi
1968for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1969do
1970 test "x$ac_site_file" = xNONE && continue
1971 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1973$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1974 sed 's/^/| /' "$ac_site_file" >&5
1975 . "$ac_site_file" \
1976 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1978as_fn_error $? "failed to load site script $ac_site_file
1979See \`config.log' for more details" "$LINENO" 5; }
1980 fi
1981done
1982
1983if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special files
1985 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1986 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1988$as_echo "$as_me: loading cache $cache_file" >&6;}
1989 case $cache_file in
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
1992 esac
1993 fi
1994else
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1996$as_echo "$as_me: creating cache $cache_file" >&6;}
1997 >$cache_file
1998fi
1999
2000# Check that the precious variables saved in the cache have kept the same
2001# value.
2002ac_cache_corrupted=false
2003for ac_var in $ac_precious_vars; do
2004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005 eval ac_new_set=\$ac_env_${ac_var}_set
2006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007 eval ac_new_val=\$ac_env_${ac_var}_value
2008 case $ac_old_set,$ac_new_set in
2009 set,)
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2013 ,set)
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2015$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2017 ,);;
2018 *)
2019 if test "x$ac_old_val" != "x$ac_new_val"; then
2020 # differences in whitespace do not lead to failure.
2021 ac_old_val_w=`echo x $ac_old_val`
2022 ac_new_val_w=`echo x $ac_new_val`
2023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2025$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026 ac_cache_corrupted=:
2027 else
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030 eval $ac_var=\$ac_old_val
2031 fi
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2033$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2035$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2036 fi;;
2037 esac
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2040 case $ac_new_val in
2041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 *) ac_arg=$ac_var=$ac_new_val ;;
2043 esac
2044 case " $ac_configure_args " in
2045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2046 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2047 esac
2048 fi
2049done
2050if $ac_cache_corrupted; then
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2054$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2056fi
2057## -------------------- ##
2058## Main body of script. ##
2059## -------------------- ##
2060
2061ac_ext=c
2062ac_cpp='$CPP $CPPFLAGS'
2063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066
2067
2068
2069
2070
2071# Determine the noncanonical names used for directories.
2072ac_aux_dir=
2073for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2074 if test -f "$ac_dir/install-sh"; then
2075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/install-sh -c"
2077 break
2078 elif test -f "$ac_dir/install.sh"; then
2079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/install.sh -c"
2081 break
2082 elif test -f "$ac_dir/shtool"; then
2083 ac_aux_dir=$ac_dir
2084 ac_install_sh="$ac_aux_dir/shtool install -c"
2085 break
2086 fi
2087done
2088if test -z "$ac_aux_dir"; then
2089 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2090fi
2091
2092# These three variables are undocumented and unsupported,
2093# and are intended to be withdrawn in a future Autoconf release.
2094# They can cause serious problems if a builder's source tree is in a directory
2095# whose full name contains unusual characters.
2096ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2097ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2098ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2099
2100
2101# Make sure we can run config.sub.
2102$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2103 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2104
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2106$as_echo_n "checking build system type... " >&6; }
2107if ${ac_cv_build+:} false; then :
2108 $as_echo_n "(cached) " >&6
2109else
2110 ac_build_alias=$build_alias
2111test "x$ac_build_alias" = x &&
2112 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2113test "x$ac_build_alias" = x &&
2114 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2115ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2116 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2117
2118fi
2119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2120$as_echo "$ac_cv_build" >&6; }
2121case $ac_cv_build in
2122*-*-*) ;;
2123*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2124esac
2125build=$ac_cv_build
2126ac_save_IFS=$IFS; IFS='-'
2127set x $ac_cv_build
2128shift
2129build_cpu=$1
2130build_vendor=$2
2131shift; shift
2132# Remember, the first character of IFS is used to create $*,
2133# except with old shells:
2134build_os=$*
2135IFS=$ac_save_IFS
2136case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2137
2138
2139 case ${build_alias} in
2140 "") build_noncanonical=${build} ;;
2141 *) build_noncanonical=${build_alias} ;;
2142esac
2143
2144 case ${host_alias} in
2145 "") host_noncanonical=${build_noncanonical} ;;
2146 *) host_noncanonical=${host_alias} ;;
2147esac
2148
2149 case ${target_alias} in
2150 "") target_noncanonical=${host_noncanonical} ;;
2151 *) target_noncanonical=${target_alias} ;;
2152esac
2153
2154
2155
2156
2157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2158$as_echo_n "checking host system type... " >&6; }
2159if ${ac_cv_host+:} false; then :
2160 $as_echo_n "(cached) " >&6
2161else
2162 if test "x$host_alias" = x; then
2163 ac_cv_host=$ac_cv_build
2164else
2165 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2166 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2167fi
2168
2169fi
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2171$as_echo "$ac_cv_host" >&6; }
2172case $ac_cv_host in
2173*-*-*) ;;
2174*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2175esac
2176host=$ac_cv_host
2177ac_save_IFS=$IFS; IFS='-'
2178set x $ac_cv_host
2179shift
2180host_cpu=$1
2181host_vendor=$2
2182shift; shift
2183# Remember, the first character of IFS is used to create $*,
2184# except with old shells:
2185host_os=$*
2186IFS=$ac_save_IFS
2187case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2188
2189
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2191$as_echo_n "checking target system type... " >&6; }
2192if ${ac_cv_target+:} false; then :
2193 $as_echo_n "(cached) " >&6
2194else
2195 if test "x$target_alias" = x; then
2196 ac_cv_target=$ac_cv_host
2197else
2198 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2199 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2200fi
2201
2202fi
2203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2204$as_echo "$ac_cv_target" >&6; }
2205case $ac_cv_target in
2206*-*-*) ;;
2207*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2208esac
2209target=$ac_cv_target
2210ac_save_IFS=$IFS; IFS='-'
2211set x $ac_cv_target
2212shift
2213target_cpu=$1
2214target_vendor=$2
2215shift; shift
2216# Remember, the first character of IFS is used to create $*,
2217# except with old shells:
2218target_os=$*
2219IFS=$ac_save_IFS
2220case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2221
2222
2223# The aliases save the names the user supplied, while $host etc.
2224# will get canonicalized.
2225test -n "$target_alias" &&
2226 test "$program_prefix$program_suffix$program_transform_name" = \
2227 NONENONEs,x,x, &&
2228 program_prefix=${target_alias}-
2229
2230# Find a good install program. We prefer a C program (faster),
2231# so one script is as good as another. But avoid the broken or
2232# incompatible versions:
2233# SysV /etc/install, /usr/sbin/install
2234# SunOS /usr/etc/install
2235# IRIX /sbin/install
2236# AIX /bin/install
2237# AmigaOS /C/install, which installs bootblocks on floppy discs
2238# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2239# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2240# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2241# OS/2's system install, which has a completely different semantic
2242# ./install, which can be erroneously created by make from ./install.sh.
2243# Reject install programs that cannot install multiple files.
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2245$as_echo_n "checking for a BSD-compatible install... " >&6; }
2246if test -z "$INSTALL"; then
2247if ${ac_cv_path_install+:} false; then :
2248 $as_echo_n "(cached) " >&6
2249else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251for as_dir in $PATH
2252do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 # Account for people who put trailing slashes in PATH elements.
2256case $as_dir/ in #((
2257 ./ | .// | /[cC]/* | \
2258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2260 /usr/ucb/* ) ;;
2261 *)
2262 # OSF1 and SCO ODT 3.0 have their own names for install.
2263 # Don't use installbsd from OSF since it installs stuff as root
2264 # by default.
2265 for ac_prog in ginstall scoinst install; do
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2268 if test $ac_prog = install &&
2269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2270 # AIX install. It has an incompatible calling convention.
2271 :
2272 elif test $ac_prog = install &&
2273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # program-specific install script used by HP pwplus--don't use.
2275 :
2276 else
2277 rm -rf conftest.one conftest.two conftest.dir
2278 echo one > conftest.one
2279 echo two > conftest.two
2280 mkdir conftest.dir
2281 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2282 test -s conftest.one && test -s conftest.two &&
2283 test -s conftest.dir/conftest.one &&
2284 test -s conftest.dir/conftest.two
2285 then
2286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2287 break 3
2288 fi
2289 fi
2290 fi
2291 done
2292 done
2293 ;;
2294esac
2295
2296 done
2297IFS=$as_save_IFS
2298
2299rm -rf conftest.one conftest.two conftest.dir
2300
2301fi
2302 if test "${ac_cv_path_install+set}" = set; then
2303 INSTALL=$ac_cv_path_install
2304 else
2305 # As a last resort, use the slow shell script. Don't cache a
2306 # value for INSTALL within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the value is a relative name.
2309 INSTALL=$ac_install_sh
2310 fi
2311fi
2312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2313$as_echo "$INSTALL" >&6; }
2314
2315# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2316# It thinks the first close brace ends the variable substitution.
2317test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2318
2319test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2320
2321test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2322
3f78c8cb
NS
2323test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2324
35fc243f
NS
2325
2326ac_ext=cpp
2327ac_cpp='$CXXCPP $CPPFLAGS'
2328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2331if test -z "$CXX"; then
2332 if test -n "$CCC"; then
2333 CXX=$CCC
2334 else
2335 if test -n "$ac_tool_prefix"; then
2336 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2337 do
2338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2341$as_echo_n "checking for $ac_word... " >&6; }
2342if ${ac_cv_prog_CXX+:} false; then :
2343 $as_echo_n "(cached) " >&6
2344else
2345 if test -n "$CXX"; then
2346 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2347else
2348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349for as_dir in $PATH
2350do
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2358 fi
2359done
2360 done
2361IFS=$as_save_IFS
2362
2363fi
2364fi
2365CXX=$ac_cv_prog_CXX
2366if test -n "$CXX"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2368$as_echo "$CXX" >&6; }
2369else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2371$as_echo "no" >&6; }
2372fi
2373
2374
2375 test -n "$CXX" && break
2376 done
2377fi
2378if test -z "$CXX"; then
2379 ac_ct_CXX=$CXX
2380 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2381do
2382 # Extract the first word of "$ac_prog", so it can be a program name with args.
2383set dummy $ac_prog; ac_word=$2
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385$as_echo_n "checking for $ac_word... " >&6; }
2386if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2387 $as_echo_n "(cached) " >&6
2388else
2389 if test -n "$ac_ct_CXX"; then
2390 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2391else
2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2399 ac_cv_prog_ac_ct_CXX="$ac_prog"
2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 break 2
2402 fi
2403done
2404 done
2405IFS=$as_save_IFS
2406
2407fi
2408fi
2409ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2410if test -n "$ac_ct_CXX"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2412$as_echo "$ac_ct_CXX" >&6; }
2413else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415$as_echo "no" >&6; }
2416fi
2417
2418
2419 test -n "$ac_ct_CXX" && break
2420done
2421
2422 if test "x$ac_ct_CXX" = x; then
2423 CXX="g++"
2424 else
2425 case $cross_compiling:$ac_tool_warned in
2426yes:)
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2429ac_tool_warned=yes ;;
2430esac
2431 CXX=$ac_ct_CXX
2432 fi
2433fi
2434
2435 fi
2436fi
2437# Provide some information about the compiler.
2438$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2439set X $ac_compile
2440ac_compiler=$2
2441for ac_option in --version -v -V -qversion; do
2442 { { ac_try="$ac_compiler $ac_option >&5"
2443case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446esac
2447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448$as_echo "$ac_try_echo"; } >&5
2449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2450 ac_status=$?
2451 if test -s conftest.err; then
2452 sed '10a\
2453... rest of stderr output deleted ...
2454 10q' conftest.err >conftest.er1
2455 cat conftest.er1 >&5
2456 fi
2457 rm -f conftest.er1 conftest.err
2458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2459 test $ac_status = 0; }
2460done
2461
2462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463/* end confdefs.h. */
2464
2465int
2466main ()
2467{
2468
2469 ;
2470 return 0;
2471}
2472_ACEOF
2473ac_clean_files_save=$ac_clean_files
2474ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2475# Try to create an executable without -o first, disregard a.out.
2476# It will help us diagnose broken compilers, and finding out an intuition
2477# of exeext.
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2479$as_echo_n "checking whether the C++ compiler works... " >&6; }
2480ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2481
2482# The possible output files:
2483ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2484
2485ac_rmfiles=
2486for ac_file in $ac_files
2487do
2488 case $ac_file in
2489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2490 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2491 esac
2492done
2493rm -f $ac_rmfiles
2494
2495if { { ac_try="$ac_link_default"
2496case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499esac
2500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2501$as_echo "$ac_try_echo"; } >&5
2502 (eval "$ac_link_default") 2>&5
2503 ac_status=$?
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; }; then :
2506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2507# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2508# in a Makefile. We should not override ac_cv_exeext if it was cached,
2509# so that the user can short-circuit this test for compilers unknown to
2510# Autoconf.
2511for ac_file in $ac_files ''
2512do
2513 test -f "$ac_file" || continue
2514 case $ac_file in
2515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2516 ;;
2517 [ab].out )
2518 # We found the default executable, but exeext='' is most
2519 # certainly right.
2520 break;;
2521 *.* )
2522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2523 then :; else
2524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525 fi
2526 # We set ac_cv_exeext here because the later test for it is not
2527 # safe: cross compilers may not add the suffix if given an `-o'
2528 # argument, so we may need to know it at that point already.
2529 # Even if this section looks crufty: it has the advantage of
2530 # actually working.
2531 break;;
2532 * )
2533 break;;
2534 esac
2535done
2536test "$ac_cv_exeext" = no && ac_cv_exeext=
2537
2538else
2539 ac_file=''
2540fi
2541if test -z "$ac_file"; then :
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543$as_echo "no" >&6; }
2544$as_echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549as_fn_error 77 "C++ compiler cannot create executables
2550See \`config.log' for more details" "$LINENO" 5; }
2551else
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553$as_echo "yes" >&6; }
2554fi
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2556$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2558$as_echo "$ac_file" >&6; }
2559ac_exeext=$ac_cv_exeext
2560
2561rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2562ac_clean_files=$ac_clean_files_save
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2564$as_echo_n "checking for suffix of executables... " >&6; }
2565if { { ac_try="$ac_link"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
2570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571$as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_link") 2>&5
2573 ac_status=$?
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; }; then :
2576 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2577# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2578# work properly (i.e., refer to `conftest.exe'), while it won't with
2579# `rm'.
2580for ac_file in conftest.exe conftest conftest.*; do
2581 test -f "$ac_file" || continue
2582 case $ac_file in
2583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2585 break;;
2586 * ) break;;
2587 esac
2588done
2589else
2590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2593See \`config.log' for more details" "$LINENO" 5; }
2594fi
2595rm -f conftest conftest$ac_cv_exeext
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2597$as_echo "$ac_cv_exeext" >&6; }
2598
2599rm -f conftest.$ac_ext
2600EXEEXT=$ac_cv_exeext
2601ac_exeext=$EXEEXT
2602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603/* end confdefs.h. */
2604#include <stdio.h>
2605int
2606main ()
2607{
2608FILE *f = fopen ("conftest.out", "w");
2609 return ferror (f) || fclose (f) != 0;
2610
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615ac_clean_files="$ac_clean_files conftest.out"
2616# Check that the compiler produces executables we can run. If not, either
2617# the compiler is broken, or we cross compile.
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2619$as_echo_n "checking whether we are cross compiling... " >&6; }
2620if test "$cross_compiling" != yes; then
2621 { { ac_try="$ac_link"
2622case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2625esac
2626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627$as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link") 2>&5
2629 ac_status=$?
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; }
2632 if { ac_try='./conftest$ac_cv_exeext'
2633 { { case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636esac
2637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638$as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_try") 2>&5
2640 ac_status=$?
2641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2642 test $ac_status = 0; }; }; then
2643 cross_compiling=no
2644 else
2645 if test "$cross_compiling" = maybe; then
2646 cross_compiling=yes
2647 else
2648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650as_fn_error $? "cannot run C++ compiled programs.
2651If you meant to cross compile, use \`--host'.
2652See \`config.log' for more details" "$LINENO" 5; }
2653 fi
2654 fi
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2657$as_echo "$cross_compiling" >&6; }
2658
2659rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2660ac_clean_files=$ac_clean_files_save
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2662$as_echo_n "checking for suffix of object files... " >&6; }
2663if ${ac_cv_objext+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665else
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667/* end confdefs.h. */
2668
2669int
2670main ()
2671{
2672
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677rm -f conftest.o conftest.obj
2678if { { ac_try="$ac_compile"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
2683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2684$as_echo "$ac_try_echo"; } >&5
2685 (eval "$ac_compile") 2>&5
2686 ac_status=$?
2687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2688 test $ac_status = 0; }; then :
2689 for ac_file in conftest.o conftest.obj conftest.*; do
2690 test -f "$ac_file" || continue;
2691 case $ac_file in
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2694 break;;
2695 esac
2696done
2697else
2698 $as_echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703as_fn_error $? "cannot compute suffix of object files: cannot compile
2704See \`config.log' for more details" "$LINENO" 5; }
2705fi
2706rm -f conftest.$ac_cv_objext conftest.$ac_ext
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2709$as_echo "$ac_cv_objext" >&6; }
2710OBJEXT=$ac_cv_objext
2711ac_objext=$OBJEXT
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2713$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2714if ${ac_cv_cxx_compiler_gnu+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716else
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718/* end confdefs.h. */
2719
2720int
2721main ()
2722{
2723#ifndef __GNUC__
2724 choke me
2725#endif
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731if ac_fn_cxx_try_compile "$LINENO"; then :
2732 ac_compiler_gnu=yes
2733else
2734 ac_compiler_gnu=no
2735fi
2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2738
2739fi
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2741$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2742if test $ac_compiler_gnu = yes; then
2743 GXX=yes
2744else
2745 GXX=
2746fi
2747ac_test_CXXFLAGS=${CXXFLAGS+set}
2748ac_save_CXXFLAGS=$CXXFLAGS
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2750$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2751if ${ac_cv_prog_cxx_g+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753else
2754 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2755 ac_cxx_werror_flag=yes
2756 ac_cv_prog_cxx_g=no
2757 CXXFLAGS="-g"
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759/* end confdefs.h. */
2760
2761int
2762main ()
2763{
2764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769if ac_fn_cxx_try_compile "$LINENO"; then :
2770 ac_cv_prog_cxx_g=yes
2771else
2772 CXXFLAGS=""
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774/* end confdefs.h. */
2775
2776int
2777main ()
2778{
2779
2780 ;
2781 return 0;
2782}
2783_ACEOF
2784if ac_fn_cxx_try_compile "$LINENO"; then :
2785
2786else
2787 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2788 CXXFLAGS="-g"
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790/* end confdefs.h. */
2791
2792int
2793main ()
2794{
2795
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800if ac_fn_cxx_try_compile "$LINENO"; then :
2801 ac_cv_prog_cxx_g=yes
2802fi
2803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804fi
2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806fi
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2809fi
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2811$as_echo "$ac_cv_prog_cxx_g" >&6; }
2812if test "$ac_test_CXXFLAGS" = set; then
2813 CXXFLAGS=$ac_save_CXXFLAGS
2814elif test $ac_cv_prog_cxx_g = yes; then
2815 if test "$GXX" = yes; then
2816 CXXFLAGS="-g -O2"
2817 else
2818 CXXFLAGS="-g"
2819 fi
2820else
2821 if test "$GXX" = yes; then
2822 CXXFLAGS="-O2"
2823 else
2824 CXXFLAGS=
2825 fi
2826fi
2827ac_ext=c
2828ac_cpp='$CPP $CPPFLAGS'
2829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2831ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832
2833MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2834for ac_prog in autoconf
2835do
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837set dummy $ac_prog; ac_word=$2
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839$as_echo_n "checking for $ac_word... " >&6; }
2840if ${ac_cv_prog_AUTOCONF+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842else
2843 if test -n "$AUTOCONF"; then
2844 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_AUTOCONF="$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857done
2858 done
2859IFS=$as_save_IFS
2860
2861fi
2862fi
2863AUTOCONF=$ac_cv_prog_AUTOCONF
2864if test -n "$AUTOCONF"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
2866$as_echo "$AUTOCONF" >&6; }
2867else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870fi
2871
2872
2873 test -n "$AUTOCONF" && break
2874done
2875test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2876
2877for ac_prog in autoheader
2878do
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880set dummy $ac_prog; ac_word=$2
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882$as_echo_n "checking for $ac_word... " >&6; }
2883if ${ac_cv_prog_AUTOHEADER+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885else
2886 if test -n "$AUTOHEADER"; then
2887 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_AUTOHEADER="$ac_prog"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900done
2901 done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906AUTOHEADER=$ac_cv_prog_AUTOHEADER
2907if test -n "$AUTOHEADER"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
2909$as_echo "$AUTOHEADER" >&6; }
2910else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912$as_echo "no" >&6; }
2913fi
2914
2915
2916 test -n "$AUTOHEADER" && break
2917done
2918test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2919
2920
e4d306cf
IS
2921ac_ext=cpp
2922ac_cpp='$CXXCPP $CPPFLAGS'
2923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2926
2927
35fc243f
NS
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build C++ tools" >&5
2929$as_echo_n "checking whether to build C++ tools... " >&6; }
2930 # Check whether --enable-c++-tools was given.
2931if test "${enable_c___tools+set}" = set; then :
2932 enableval=$enable_c___tools; cxx_aux_tools=$enableval
2933else
2934 cxx_aux_tools=yes
2935fi
2936
2937
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx_aux_tools" >&5
2939$as_echo "$cxx_aux_tools" >&6; }
2940CXX_AUX_TOOLS="$cxx_aux_tools"
2941
2942
2943# Check whether --enable-maintainer-mode was given.
2944if test "${enable_maintainer_mode+set}" = set; then :
2945 enableval=$enable_maintainer_mode;
2946else
2947 enable_maintainer_mode=no
2948fi
2949
2950case "$enable_maintainer_mode" in
4b1987f8
EB
2951 yes) maintainer_mode=yes ;;
2952 no) maintainer_mode=no ;;
2953 *) as_fn_error $? "unknown maintainer mode $enable_maintainer_mode" "$LINENO" 5 ;;
35fc243f
NS
2954esac
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maintainer-mode" >&5
2956$as_echo_n "checking maintainer-mode... " >&6; }
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
2958$as_echo "$maintainer_mode" >&6; }
2959test "$maintainer_mode" = yes && MAINTAINER=yes
2960
2961
e4d306cf
IS
2962# Handle configuration of checking; for the tools in this directory we
2963# default to release checking and stricter checks do not change this.
35fc243f 2964
e4d306cf
IS
2965# Check whether --enable-checking was given.
2966if test "${enable_checking+set}" = set; then :
2967 enableval=$enable_checking; ac_checking_flags="${enableval}"
35fc243f 2968else
35fc243f 2969
e4d306cf
IS
2970# Default to checking.
2971ac_checking_flags=yes
35fc243f 2972
35fc243f
NS
2973fi
2974
e4d306cf
IS
2975IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2976for check in release $ac_checking_flags
35fc243f 2977do
e4d306cf
IS
2978 case $check in
2979 # these set all the flags to specific states
2980 yes|all|release|assert) ac_assert_checking=1 ; ;;
2981 no|none) ac_assert_checking= ; ;;
2982 *) ;;
2983 esac
35fc243f 2984done
e4d306cf 2985IFS="$ac_save_IFS"
35fc243f 2986
e4d306cf 2987if test x$ac_assert_checking != x ; then
35fc243f 2988
e4d306cf 2989$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
35fc243f
NS
2990
2991fi
35fc243f 2992
e4d306cf
IS
2993# Check whether --enable-default-pie was given.
2994# Check whether --enable-default-pie was given.
2995if test "${enable_default_pie+set}" = set; then :
251c72a6 2996 enableval=$enable_default_pie; PICFLAG=-fPIE
35fc243f 2997else
251c72a6 2998 PICFLAG=
35fc243f 2999fi
35fc243f 3000
35fc243f 3001
251c72a6
MP
3002# Enable --enable-host-pie
3003# Check whether --enable-host-pie was given.
3004if test "${enable_host_pie+set}" = set; then :
3005 enableval=$enable_host_pie; PICFLAG=-fPIE; LD_PICFLAG=-pie
3006fi
3007
3008
3009
35fc243f 3010
e4d306cf 3011# Check if O_CLOEXEC is defined by fcntl
35fc243f
NS
3012
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
3014$as_echo_n "checking for O_CLOEXEC... " >&6; }
3015if ${ac_cv_o_cloexec+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017else
3018
3019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h. */
3021
3022#include <fcntl.h>
3023int
3024main ()
3025{
3026
3027return open ("/dev/null", O_RDONLY | O_CLOEXEC);
3028 ;
3029 return 0;
3030}
3031_ACEOF
e4d306cf 3032if ac_fn_cxx_try_compile "$LINENO"; then :
35fc243f
NS
3033 ac_cv_o_cloexec=yes
3034else
3035 ac_cv_o_cloexec=no
3036fi
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038fi
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
3040$as_echo "$ac_cv_o_cloexec" >&6; }
3041if test $ac_cv_o_cloexec = yes; then
3042
3043$as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
3044
3045fi
3046
e4d306cf
IS
3047ac_ext=cpp
3048ac_cpp='$CXXCPP $CPPFLAGS'
3049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3053$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3054if test -z "$CXXCPP"; then
3055 if ${ac_cv_prog_CXXCPP+:} false; then :
09616422
NS
3056 $as_echo_n "(cached) " >&6
3057else
e4d306cf
IS
3058 # Double quotes because CXXCPP needs to be expanded
3059 for CXXCPP in "$CXX -E" "/lib/cpp"
09616422
NS
3060 do
3061 ac_preproc_ok=false
e4d306cf 3062for ac_cxx_preproc_warn_flag in '' yes
09616422
NS
3063do
3064 # Use a header file that comes with gcc, so configuring glibc
3065 # with a fresh cross-compiler works.
3066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067 # <limits.h> exists even on freestanding compilers.
3068 # On the NeXT, cc -E runs the code through the compiler's parser,
3069 # not just through cpp. "Syntax error" is here to catch this case.
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071/* end confdefs.h. */
3072#ifdef __STDC__
3073# include <limits.h>
3074#else
3075# include <assert.h>
3076#endif
3077 Syntax error
3078_ACEOF
e4d306cf 3079if ac_fn_cxx_try_cpp "$LINENO"; then :
09616422
NS
3080
3081else
3082 # Broken: fails on valid input.
3083continue
3084fi
3085rm -f conftest.err conftest.i conftest.$ac_ext
3086
3087 # OK, works on sane cases. Now check whether nonexistent headers
3088 # can be detected and how.
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h. */
3091#include <ac_nonexistent.h>
3092_ACEOF
e4d306cf 3093if ac_fn_cxx_try_cpp "$LINENO"; then :
09616422
NS
3094 # Broken: success on invalid input.
3095continue
3096else
3097 # Passes both tests.
3098ac_preproc_ok=:
3099break
3100fi
3101rm -f conftest.err conftest.i conftest.$ac_ext
3102
3103done
3104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105rm -f conftest.i conftest.err conftest.$ac_ext
3106if $ac_preproc_ok; then :
3107 break
3108fi
3109
3110 done
e4d306cf 3111 ac_cv_prog_CXXCPP=$CXXCPP
09616422
NS
3112
3113fi
e4d306cf 3114 CXXCPP=$ac_cv_prog_CXXCPP
09616422 3115else
e4d306cf 3116 ac_cv_prog_CXXCPP=$CXXCPP
09616422 3117fi
e4d306cf
IS
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3119$as_echo "$CXXCPP" >&6; }
09616422 3120ac_preproc_ok=false
e4d306cf 3121for ac_cxx_preproc_warn_flag in '' yes
09616422
NS
3122do
3123 # Use a header file that comes with gcc, so configuring glibc
3124 # with a fresh cross-compiler works.
3125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3126 # <limits.h> exists even on freestanding compilers.
3127 # On the NeXT, cc -E runs the code through the compiler's parser,
3128 # not just through cpp. "Syntax error" is here to catch this case.
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130/* end confdefs.h. */
3131#ifdef __STDC__
3132# include <limits.h>
3133#else
3134# include <assert.h>
3135#endif
3136 Syntax error
3137_ACEOF
e4d306cf 3138if ac_fn_cxx_try_cpp "$LINENO"; then :
09616422
NS
3139
3140else
3141 # Broken: fails on valid input.
3142continue
3143fi
3144rm -f conftest.err conftest.i conftest.$ac_ext
3145
3146 # OK, works on sane cases. Now check whether nonexistent headers
3147 # can be detected and how.
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149/* end confdefs.h. */
3150#include <ac_nonexistent.h>
3151_ACEOF
e4d306cf 3152if ac_fn_cxx_try_cpp "$LINENO"; then :
09616422
NS
3153 # Broken: success on invalid input.
3154continue
3155else
3156 # Passes both tests.
3157ac_preproc_ok=:
3158break
3159fi
3160rm -f conftest.err conftest.i conftest.$ac_ext
3161
3162done
3163# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3164rm -f conftest.i conftest.err conftest.$ac_ext
3165if $ac_preproc_ok; then :
3166
3167else
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
e4d306cf 3170as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
09616422
NS
3171See \`config.log' for more details" "$LINENO" 5; }
3172fi
3173
e4d306cf
IS
3174ac_ext=cpp
3175ac_cpp='$CXXCPP $CPPFLAGS'
3176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
09616422
NS
3179
3180
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3182$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3183if ${ac_cv_path_GREP+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185else
3186 if test -z "$GREP"; then
3187 ac_path_GREP_found=false
3188 # Loop through the user's path and test for each of PROGNAME-LIST
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3191do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_prog in grep ggrep; do
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3197 as_fn_executable_p "$ac_path_GREP" || continue
3198# Check for GNU ac_path_GREP and select it if it is found.
3199 # Check for GNU $ac_path_GREP
3200case `"$ac_path_GREP" --version 2>&1` in
3201*GNU*)
3202 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3203*)
3204 ac_count=0
3205 $as_echo_n 0123456789 >"conftest.in"
3206 while :
3207 do
3208 cat "conftest.in" "conftest.in" >"conftest.tmp"
3209 mv "conftest.tmp" "conftest.in"
3210 cp "conftest.in" "conftest.nl"
3211 $as_echo 'GREP' >> "conftest.nl"
3212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3214 as_fn_arith $ac_count + 1 && ac_count=$as_val
3215 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3216 # Best one so far, save it but keep looking for a better one
3217 ac_cv_path_GREP="$ac_path_GREP"
3218 ac_path_GREP_max=$ac_count
3219 fi
3220 # 10*(2^10) chars as input seems more than enough
3221 test $ac_count -gt 10 && break
3222 done
3223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3224esac
3225
3226 $ac_path_GREP_found && break 3
3227 done
3228 done
3229 done
3230IFS=$as_save_IFS
3231 if test -z "$ac_cv_path_GREP"; then
3232 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3233 fi
3234else
3235 ac_cv_path_GREP=$GREP
3236fi
3237
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3240$as_echo "$ac_cv_path_GREP" >&6; }
3241 GREP="$ac_cv_path_GREP"
3242
3243
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3245$as_echo_n "checking for egrep... " >&6; }
3246if ${ac_cv_path_EGREP+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248else
3249 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3250 then ac_cv_path_EGREP="$GREP -E"
3251 else
3252 if test -z "$EGREP"; then
3253 ac_path_EGREP_found=false
3254 # Loop through the user's path and test for each of PROGNAME-LIST
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_prog in egrep; do
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3263 as_fn_executable_p "$ac_path_EGREP" || continue
3264# Check for GNU ac_path_EGREP and select it if it is found.
3265 # Check for GNU $ac_path_EGREP
3266case `"$ac_path_EGREP" --version 2>&1` in
3267*GNU*)
3268 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3269*)
3270 ac_count=0
3271 $as_echo_n 0123456789 >"conftest.in"
3272 while :
3273 do
3274 cat "conftest.in" "conftest.in" >"conftest.tmp"
3275 mv "conftest.tmp" "conftest.in"
3276 cp "conftest.in" "conftest.nl"
3277 $as_echo 'EGREP' >> "conftest.nl"
3278 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3280 as_fn_arith $ac_count + 1 && ac_count=$as_val
3281 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3282 # Best one so far, save it but keep looking for a better one
3283 ac_cv_path_EGREP="$ac_path_EGREP"
3284 ac_path_EGREP_max=$ac_count
3285 fi
3286 # 10*(2^10) chars as input seems more than enough
3287 test $ac_count -gt 10 && break
3288 done
3289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3290esac
3291
3292 $ac_path_EGREP_found && break 3
3293 done
3294 done
3295 done
3296IFS=$as_save_IFS
3297 if test -z "$ac_cv_path_EGREP"; then
3298 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3299 fi
3300else
3301 ac_cv_path_EGREP=$EGREP
3302fi
3303
3304 fi
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3307$as_echo "$ac_cv_path_EGREP" >&6; }
3308 EGREP="$ac_cv_path_EGREP"
3309
3310
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3312$as_echo_n "checking for ANSI C header files... " >&6; }
3313if ${ac_cv_header_stdc+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315else
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h. */
3318#include <stdlib.h>
3319#include <stdarg.h>
3320#include <string.h>
3321#include <float.h>
3322
3323int
3324main ()
3325{
3326
3327 ;
3328 return 0;
3329}
3330_ACEOF
e4d306cf 3331if ac_fn_cxx_try_compile "$LINENO"; then :
09616422
NS
3332 ac_cv_header_stdc=yes
3333else
3334 ac_cv_header_stdc=no
3335fi
3336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337
3338if test $ac_cv_header_stdc = yes; then
3339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h. */
3342#include <string.h>
3343
3344_ACEOF
3345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3346 $EGREP "memchr" >/dev/null 2>&1; then :
3347
3348else
3349 ac_cv_header_stdc=no
3350fi
3351rm -f conftest*
3352
3353fi
3354
3355if test $ac_cv_header_stdc = yes; then
3356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h. */
3359#include <stdlib.h>
3360
3361_ACEOF
3362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3363 $EGREP "free" >/dev/null 2>&1; then :
3364
3365else
3366 ac_cv_header_stdc=no
3367fi
3368rm -f conftest*
3369
3370fi
3371
3372if test $ac_cv_header_stdc = yes; then
3373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3374 if test "$cross_compiling" = yes; then :
3375 :
3376else
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h. */
3379#include <ctype.h>
3380#include <stdlib.h>
3381#if ((' ' & 0x0FF) == 0x020)
3382# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3383# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3384#else
3385# define ISLOWER(c) \
3386 (('a' <= (c) && (c) <= 'i') \
3387 || ('j' <= (c) && (c) <= 'r') \
3388 || ('s' <= (c) && (c) <= 'z'))
3389# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3390#endif
3391
3392#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3393int
3394main ()
3395{
3396 int i;
3397 for (i = 0; i < 256; i++)
3398 if (XOR (islower (i), ISLOWER (i))
3399 || toupper (i) != TOUPPER (i))
3400 return 2;
3401 return 0;
3402}
3403_ACEOF
e4d306cf 3404if ac_fn_cxx_try_run "$LINENO"; then :
09616422
NS
3405
3406else
3407 ac_cv_header_stdc=no
3408fi
3409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3410 conftest.$ac_objext conftest.beam conftest.$ac_ext
3411fi
3412
3413fi
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3416$as_echo "$ac_cv_header_stdc" >&6; }
3417if test $ac_cv_header_stdc = yes; then
3418
3419$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3420
3421fi
3422
3423# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3424for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3425 inttypes.h stdint.h unistd.h
3426do :
3427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
e4d306cf 3428ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
09616422
NS
3429"
3430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3431 cat >>confdefs.h <<_ACEOF
3432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3433_ACEOF
3434
3435fi
3436
3437done
3438
3439
3440for ac_header in sys/mman.h
3441do :
e4d306cf 3442 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
09616422
NS
3443if test "x$ac_cv_header_sys_mman_h" = xyes; then :
3444 cat >>confdefs.h <<_ACEOF
3445#define HAVE_SYS_MMAN_H 1
3446_ACEOF
3447
3448fi
3449
3450done
3451
3452
35fc243f
NS
3453# C++ Modules would like some networking features to provide the mapping
3454# server. You can still use modules without them though.
3455# The following network-related checks could probably do with some
3456# Windows and other non-linux defenses and checking.
3457
3458# Local socket connectivity wants AF_UNIX networking
3459# Check for AF_UNIX networking
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
3461$as_echo_n "checking for AF_UNIX... " >&6; }
3462if ${ac_cv_af_unix+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464else
3465
3466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h. */
3468
3469#include <sys/types.h>
3470#include <sys/socket.h>
3471#include <sys/un.h>
3472#include <netinet/in.h>
3473int
3474main ()
3475{
3476
3477sockaddr_un un;
3478un.sun_family = AF_UNSPEC;
3479int fd = socket (AF_UNIX, SOCK_STREAM, 0);
3480connect (fd, (sockaddr *)&un, sizeof (un));
3481 ;
3482 return 0;
3483}
3484_ACEOF
e4d306cf 3485if ac_fn_cxx_try_compile "$LINENO"; then :
35fc243f
NS
3486 ac_cv_af_unix=yes
3487else
3488 ac_cv_af_unix=no
3489fi
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491fi
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
3493$as_echo "$ac_cv_af_unix" >&6; }
3494if test $ac_cv_af_unix = yes; then
3495
3496$as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
3497
3498fi
3499
3500# Remote socket connectivity wants AF_INET6 networking
3501# Check for AF_INET6 networking
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
3503$as_echo_n "checking for AF_INET6... " >&6; }
3504if ${ac_cv_af_inet6+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506else
3507
3508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509/* end confdefs.h. */
3510
3511#include <sys/types.h>
3512#include <sys/socket.h>
3513#include <netinet/in.h>
3514#include <netdb.h>
3515int
3516main ()
3517{
3518
3519sockaddr_in6 in6;
3520in6.sin6_family = AF_UNSPEC;
3521struct addrinfo *addrs = 0;
3522struct addrinfo hints;
3523hints.ai_flags = 0;
3524hints.ai_family = AF_INET6;
3525hints.ai_socktype = SOCK_STREAM;
3526hints.ai_protocol = 0;
3527hints.ai_canonname = 0;
3528hints.ai_addr = 0;
3529hints.ai_next = 0;
3530int e = getaddrinfo ("localhost", 0, &hints, &addrs);
3531const char *str = gai_strerror (e);
3532freeaddrinfo (addrs);
3533int fd = socket (AF_INET6, SOCK_STREAM, 0);
3534connect (fd, (sockaddr *)&in6, sizeof (in6));
3535 ;
3536 return 0;
3537}
3538_ACEOF
e4d306cf 3539if ac_fn_cxx_try_compile "$LINENO"; then :
35fc243f
NS
3540 ac_cv_af_inet6=yes
3541else
3542 ac_cv_af_inet6=no
3543fi
3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545fi
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
3547$as_echo "$ac_cv_af_inet6" >&6; }
3548if test $ac_cv_af_inet6 = yes; then
3549
3550$as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
3551
3552fi
3553
3554# Efficient server response wants epoll
3555# Check for epoll_create, epoll_ctl, epoll_pwait
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
3557$as_echo_n "checking for epoll... " >&6; }
3558if ${ac_cv_epoll+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560else
3561
3562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h. */
3564
3565#include <sys/epoll.h>
3566int
3567main ()
3568{
3569
3570int fd = epoll_create (1);
3571epoll_event ev;
3572ev.events = EPOLLIN;
3573ev.data.fd = 0;
3574epoll_ctl (fd, EPOLL_CTL_ADD, 0, &ev);
3575epoll_pwait (fd, 0, 0, -1, 0);
3576 ;
3577 return 0;
3578}
3579_ACEOF
e4d306cf 3580if ac_fn_cxx_try_compile "$LINENO"; then :
35fc243f
NS
3581 ac_cv_epoll=yes
3582else
3583 ac_cv_epoll=no
3584fi
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_epoll" >&5
3588$as_echo "$ac_cv_epoll" >&6; }
3589if test $ac_cv_epoll = yes; then
3590
3591$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
3592
3593fi
3594
3595# If we can't use epoll, try pselect.
3596# Check for pselect
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
3598$as_echo_n "checking for pselect... " >&6; }
3599if ${ac_cv_pselect+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601else
3602
3603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h. */
3605
3606#include <sys/select.h>
3607int
3608main ()
3609{
3610
3611pselect (0, 0, 0, 0, 0, 0);
3612 ;
3613 return 0;
3614}
3615_ACEOF
e4d306cf 3616if ac_fn_cxx_try_compile "$LINENO"; then :
35fc243f
NS
3617 ac_cv_pselect=yes
3618else
3619 ac_cv_pselect=no
3620fi
3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622fi
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pselect" >&5
3624$as_echo "$ac_cv_pselect" >&6; }
3625if test $ac_cv_pselect = yes; then
3626
3627$as_echo "#define HAVE_PSELECT 1" >>confdefs.h
3628
3629fi
3630
3631# And failing that, use good old select.
3632# If we can't even use this, the server is serialized.
3633# Check for select
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
3635$as_echo_n "checking for select... " >&6; }
3636if ${ac_cv_select+:} false; then :
3637 $as_echo_n "(cached) " >&6
3638else
3639
3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h. */
3642
3643#include <sys/select.h>
3644int
3645main ()
3646{
3647
3648select (0, 0, 0, 0, 0);
3649 ;
3650 return 0;
3651}
3652_ACEOF
e4d306cf 3653if ac_fn_cxx_try_compile "$LINENO"; then :
35fc243f
NS
3654 ac_cv_select=yes
3655else
3656 ac_cv_select=no
3657fi
3658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659fi
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_select" >&5
3661$as_echo "$ac_cv_select" >&6; }
3662if test $ac_cv_select = yes; then
3663
3664$as_echo "#define HAVE_SELECT 1" >>confdefs.h
3665
3666fi
3667
3668# Avoid some fnctl calls by using accept4, when available.
3669# Check for accept4
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5
3671$as_echo_n "checking for accept4... " >&6; }
3672if ${ac_cv_accept4+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674else
3675
3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h. */
3678
3679#include <sys/socket.h>
3680int
3681main ()
3682{
3683
3684int err = accept4 (1, 0, 0, SOCK_NONBLOCK);
3685 ;
3686 return 0;
3687}
3688_ACEOF
e4d306cf 3689if ac_fn_cxx_try_compile "$LINENO"; then :
35fc243f
NS
3690 ac_cv_accept4=yes
3691else
3692 ac_cv_accept4=no
3693fi
3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695fi
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5
3697$as_echo "$ac_cv_accept4" >&6; }
3698if test $ac_cv_accept4 = yes; then
3699
3700$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
3701
3702fi
3703
3704# For better server messages, look for a way to stringize network addresses
3705# Check for inet_ntop
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
3707$as_echo_n "checking for inet_ntop... " >&6; }
3708if ${ac_cv_inet_ntop+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710else
3711
3712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h. */
3714
3715#include <arpa/inet.h>
3716#include <netinet/in.h>
3717int
3718main ()
3719{
3720
3721sockaddr_in6 in6;
3722char buf[INET6_ADDRSTRLEN];
3723const char *str = inet_ntop (AF_INET6, &in6, buf, sizeof (buf));
3724 ;
3725 return 0;
3726}
3727_ACEOF
e4d306cf 3728if ac_fn_cxx_try_compile "$LINENO"; then :
35fc243f
NS
3729 ac_cv_inet_ntop=yes
3730else
3731 ac_cv_inet_ntop=no
3732fi
3733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734fi
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_inet_ntop" >&5
3736$as_echo "$ac_cv_inet_ntop" >&6; }
3737if test $ac_cv_inet_ntop = yes; then
3738
3739$as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
3740
3741fi
3742
4e7e7c13
JJ
3743# Determine what GCC version number to use in filesystem paths.
3744
3745 get_gcc_base_ver="cat"
3746
3747# Check whether --with-gcc-major-version-only was given.
3748if test "${with_gcc_major_version_only+set}" = set; then :
3749 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
3750 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3751 fi
3752
3753fi
3754
3755
3756
3757
a20893cf
RO
3758# Solaris needs libsocket and libnsl for socket functions before 11.4.
3759# libcody uses those.
3760save_LIBS="$LIBS"
3761LIBS=
3762
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
3764$as_echo_n "checking for library containing gethostbyname... " >&6; }
3765if ${ac_cv_search_gethostbyname+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767else
3768 ac_func_search_save_LIBS=$LIBS
3769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770/* end confdefs.h. */
3771
3772/* Override any GCC internal prototype to avoid an error.
3773 Use char because int might match the return type of a GCC
3774 builtin and then its argument prototype would still apply. */
3775#ifdef __cplusplus
3776extern "C"
3777#endif
3778char gethostbyname ();
3779int
3780main ()
3781{
3782return gethostbyname ();
3783 ;
3784 return 0;
3785}
3786_ACEOF
3787for ac_lib in '' nsl; do
3788 if test -z "$ac_lib"; then
3789 ac_res="none required"
3790 else
3791 ac_res=-l$ac_lib
3792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3793 fi
e4d306cf 3794 if ac_fn_cxx_try_link "$LINENO"; then :
a20893cf
RO
3795 ac_cv_search_gethostbyname=$ac_res
3796fi
3797rm -f core conftest.err conftest.$ac_objext \
3798 conftest$ac_exeext
3799 if ${ac_cv_search_gethostbyname+:} false; then :
3800 break
3801fi
3802done
3803if ${ac_cv_search_gethostbyname+:} false; then :
3804
3805else
3806 ac_cv_search_gethostbyname=no
3807fi
3808rm conftest.$ac_ext
3809LIBS=$ac_func_search_save_LIBS
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
3812$as_echo "$ac_cv_search_gethostbyname" >&6; }
3813ac_res=$ac_cv_search_gethostbyname
3814if test "$ac_res" != no; then :
3815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3816
3817fi
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
3820$as_echo_n "checking for library containing socket... " >&6; }
3821if ${ac_cv_search_socket+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823else
3824 ac_func_search_save_LIBS=$LIBS
3825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h. */
3827
3828/* Override any GCC internal prototype to avoid an error.
3829 Use char because int might match the return type of a GCC
3830 builtin and then its argument prototype would still apply. */
3831#ifdef __cplusplus
3832extern "C"
3833#endif
3834char socket ();
3835int
3836main ()
3837{
3838return socket ();
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843for ac_lib in '' socket; do
3844 if test -z "$ac_lib"; then
3845 ac_res="none required"
3846 else
3847 ac_res=-l$ac_lib
3848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3849 fi
e4d306cf 3850 if ac_fn_cxx_try_link "$LINENO"; then :
a20893cf
RO
3851 ac_cv_search_socket=$ac_res
3852fi
3853rm -f core conftest.err conftest.$ac_objext \
3854 conftest$ac_exeext
3855 if ${ac_cv_search_socket+:} false; then :
3856 break
3857fi
3858done
3859if ${ac_cv_search_socket+:} false; then :
3860
3861else
3862 ac_cv_search_socket=no
3863fi
3864rm conftest.$ac_ext
3865LIBS=$ac_func_search_save_LIBS
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
3868$as_echo "$ac_cv_search_socket" >&6; }
3869ac_res=$ac_cv_search_socket
3870if test "$ac_res" != no; then :
3871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3872
3873else
3874
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
3876$as_echo_n "checking for socket in -lsocket... " >&6; }
3877if ${ac_cv_lib_socket_socket+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879else
3880 ac_check_lib_save_LIBS=$LIBS
3881LIBS="-lsocket -lnsl $LIBS"
3882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883/* end confdefs.h. */
3884
3885/* Override any GCC internal prototype to avoid an error.
3886 Use char because int might match the return type of a GCC
3887 builtin and then its argument prototype would still apply. */
3888#ifdef __cplusplus
3889extern "C"
3890#endif
3891char socket ();
3892int
3893main ()
3894{
3895return socket ();
3896 ;
3897 return 0;
3898}
3899_ACEOF
e4d306cf 3900if ac_fn_cxx_try_link "$LINENO"; then :
a20893cf
RO
3901 ac_cv_lib_socket_socket=yes
3902else
3903 ac_cv_lib_socket_socket=no
3904fi
3905rm -f core conftest.err conftest.$ac_objext \
3906 conftest$ac_exeext conftest.$ac_ext
3907LIBS=$ac_check_lib_save_LIBS
3908fi
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
3910$as_echo "$ac_cv_lib_socket_socket" >&6; }
3911if test "x$ac_cv_lib_socket_socket" = xyes; then :
3912 LIBS="-lsocket -lnsl $LIBS"
3913fi
3914
3915fi
3916
3917
3918NETLIBS="$LIBS"
3919LIBS="$save_LIBS"
3920
3921
35fc243f
NS
3922ac_config_headers="$ac_config_headers config.h"
3923
3924ac_config_files="$ac_config_files Makefile"
3925
3926
3927cat >confcache <<\_ACEOF
3928# This file is a shell script that caches the results of configure
3929# tests run on this system so they can be shared between configure
3930# scripts and configure runs, see configure's option --config-cache.
3931# It is not useful on other systems. If it contains results you don't
3932# want to keep, you may remove or edit it.
3933#
3934# config.status only pays attention to the cache file if you give it
3935# the --recheck option to rerun configure.
3936#
3937# `ac_cv_env_foo' variables (set or unset) will be overridden when
3938# loading this file, other *unset* `ac_cv_foo' will be assigned the
3939# following values.
3940
3941_ACEOF
3942
3943# The following way of writing the cache mishandles newlines in values,
3944# but we know of no workaround that is simple, portable, and efficient.
3945# So, we kill variables containing newlines.
3946# Ultrix sh set writes to stderr and can't be redirected directly,
3947# and sets the high bit in the cache file unless we assign to the vars.
3948(
3949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3950 eval ac_val=\$$ac_var
3951 case $ac_val in #(
3952 *${as_nl}*)
3953 case $ac_var in #(
3954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3955$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3956 esac
3957 case $ac_var in #(
3958 _ | IFS | as_nl) ;; #(
3959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3960 *) { eval $ac_var=; unset $ac_var;} ;;
3961 esac ;;
3962 esac
3963 done
3964
3965 (set) 2>&1 |
3966 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3967 *${as_nl}ac_space=\ *)
3968 # `set' does not quote correctly, so add quotes: double-quote
3969 # substitution turns \\\\ into \\, and sed turns \\ into \.
3970 sed -n \
3971 "s/'/'\\\\''/g;
3972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3973 ;; #(
3974 *)
3975 # `set' quotes correctly as required by POSIX, so do not add quotes.
3976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3977 ;;
3978 esac |
3979 sort
3980) |
3981 sed '
3982 /^ac_cv_env_/b end
3983 t clear
3984 :clear
3985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3986 t end
3987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3988 :end' >>confcache
3989if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3990 if test -w "$cache_file"; then
3991 if test "x$cache_file" != "x/dev/null"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3993$as_echo "$as_me: updating cache $cache_file" >&6;}
3994 if test ! -f "$cache_file" || test -h "$cache_file"; then
3995 cat confcache >"$cache_file"
3996 else
3997 case $cache_file in #(
3998 */* | ?:*)
3999 mv -f confcache "$cache_file"$$ &&
4000 mv -f "$cache_file"$$ "$cache_file" ;; #(
4001 *)
4002 mv -f confcache "$cache_file" ;;
4003 esac
4004 fi
4005 fi
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4008$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4009 fi
4010fi
4011rm -f confcache
4012
4013test "x$prefix" = xNONE && prefix=$ac_default_prefix
4014# Let make expand exec_prefix.
4015test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4016
4017DEFS=-DHAVE_CONFIG_H
4018
4019ac_libobjs=
4020ac_ltlibobjs=
4021U=
4022for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4023 # 1. Remove the extension, and $U if already installed.
4024 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4025 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4026 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4027 # will be set to the directory where LIBOBJS objects are built.
4028 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4029 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4030done
4031LIBOBJS=$ac_libobjs
4032
4033LTLIBOBJS=$ac_ltlibobjs
4034
4035
4036
4037: "${CONFIG_STATUS=./config.status}"
4038ac_write_fail=0
4039ac_clean_files_save=$ac_clean_files
4040ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4042$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4043as_write_fail=0
4044cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4045#! $SHELL
4046# Generated by $as_me.
4047# Run this file to recreate the current configuration.
4048# Compiler output produced by configure, useful for debugging
4049# configure, is in config.log if it exists.
4050
4051debug=false
4052ac_cs_recheck=false
4053ac_cs_silent=false
4054
4055SHELL=\${CONFIG_SHELL-$SHELL}
4056export SHELL
4057_ASEOF
4058cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4059## -------------------- ##
4060## M4sh Initialization. ##
4061## -------------------- ##
4062
4063# Be more Bourne compatible
4064DUALCASE=1; export DUALCASE # for MKS sh
4065if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4066 emulate sh
4067 NULLCMD=:
4068 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4069 # is contrary to our usage. Disable this feature.
4070 alias -g '${1+"$@"}'='"$@"'
4071 setopt NO_GLOB_SUBST
4072else
4073 case `(set -o) 2>/dev/null` in #(
4074 *posix*) :
4075 set -o posix ;; #(
4076 *) :
4077 ;;
4078esac
4079fi
4080
4081
4082as_nl='
4083'
4084export as_nl
4085# Printing a long string crashes Solaris 7 /usr/bin/printf.
4086as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4087as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4088as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4089# Prefer a ksh shell builtin over an external printf program on Solaris,
4090# but without wasting forks for bash or zsh.
4091if test -z "$BASH_VERSION$ZSH_VERSION" \
4092 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4093 as_echo='print -r --'
4094 as_echo_n='print -rn --'
4095elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4096 as_echo='printf %s\n'
4097 as_echo_n='printf %s'
4098else
4099 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4100 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4101 as_echo_n='/usr/ucb/echo -n'
4102 else
4103 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4104 as_echo_n_body='eval
4105 arg=$1;
4106 case $arg in #(
4107 *"$as_nl"*)
4108 expr "X$arg" : "X\\(.*\\)$as_nl";
4109 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4110 esac;
4111 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4112 '
4113 export as_echo_n_body
4114 as_echo_n='sh -c $as_echo_n_body as_echo'
4115 fi
4116 export as_echo_body
4117 as_echo='sh -c $as_echo_body as_echo'
4118fi
4119
4120# The user is always right.
4121if test "${PATH_SEPARATOR+set}" != set; then
4122 PATH_SEPARATOR=:
4123 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4124 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4125 PATH_SEPARATOR=';'
4126 }
4127fi
4128
4129
4130# IFS
4131# We need space, tab and new line, in precisely that order. Quoting is
4132# there to prevent editors from complaining about space-tab.
4133# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4134# splitting by setting IFS to empty value.)
4135IFS=" "" $as_nl"
4136
4137# Find who we are. Look in the path if we contain no directory separator.
4138as_myself=
4139case $0 in #((
4140 *[\\/]* ) as_myself=$0 ;;
4141 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH
4143do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4147 done
4148IFS=$as_save_IFS
4149
4150 ;;
4151esac
4152# We did not find ourselves, most probably we were run as `sh COMMAND'
4153# in which case we are not to be found in the path.
4154if test "x$as_myself" = x; then
4155 as_myself=$0
4156fi
4157if test ! -f "$as_myself"; then
4158 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4159 exit 1
4160fi
4161
4162# Unset variables that we do not need and which cause bugs (e.g. in
4163# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4164# suppresses any "Segmentation fault" message there. '((' could
4165# trigger a bug in pdksh 5.2.14.
4166for as_var in BASH_ENV ENV MAIL MAILPATH
4167do eval test x\${$as_var+set} = xset \
4168 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4169done
4170PS1='$ '
4171PS2='> '
4172PS4='+ '
4173
4174# NLS nuisances.
4175LC_ALL=C
4176export LC_ALL
4177LANGUAGE=C
4178export LANGUAGE
4179
4180# CDPATH.
4181(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4182
4183
4184# as_fn_error STATUS ERROR [LINENO LOG_FD]
4185# ----------------------------------------
4186# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4187# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4188# script with STATUS, using 1 if that was 0.
4189as_fn_error ()
4190{
4191 as_status=$1; test $as_status -eq 0 && as_status=1
4192 if test "$4"; then
4193 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4194 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4195 fi
4196 $as_echo "$as_me: error: $2" >&2
4197 as_fn_exit $as_status
4198} # as_fn_error
4199
4200
4201# as_fn_set_status STATUS
4202# -----------------------
4203# Set $? to STATUS, without forking.
4204as_fn_set_status ()
4205{
4206 return $1
4207} # as_fn_set_status
4208
4209# as_fn_exit STATUS
4210# -----------------
4211# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4212as_fn_exit ()
4213{
4214 set +e
4215 as_fn_set_status $1
4216 exit $1
4217} # as_fn_exit
4218
4219# as_fn_unset VAR
4220# ---------------
4221# Portably unset VAR.
4222as_fn_unset ()
4223{
4224 { eval $1=; unset $1;}
4225}
4226as_unset=as_fn_unset
4227# as_fn_append VAR VALUE
4228# ----------------------
4229# Append the text in VALUE to the end of the definition contained in VAR. Take
4230# advantage of any shell optimizations that allow amortized linear growth over
4231# repeated appends, instead of the typical quadratic growth present in naive
4232# implementations.
4233if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4234 eval 'as_fn_append ()
4235 {
4236 eval $1+=\$2
4237 }'
4238else
4239 as_fn_append ()
4240 {
4241 eval $1=\$$1\$2
4242 }
4243fi # as_fn_append
4244
4245# as_fn_arith ARG...
4246# ------------------
4247# Perform arithmetic evaluation on the ARGs, and store the result in the
4248# global $as_val. Take advantage of shells that can avoid forks. The arguments
4249# must be portable across $(()) and expr.
4250if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4251 eval 'as_fn_arith ()
4252 {
4253 as_val=$(( $* ))
4254 }'
4255else
4256 as_fn_arith ()
4257 {
4258 as_val=`expr "$@" || test $? -eq 1`
4259 }
4260fi # as_fn_arith
4261
4262
4263if expr a : '\(a\)' >/dev/null 2>&1 &&
4264 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4265 as_expr=expr
4266else
4267 as_expr=false
4268fi
4269
4270if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4271 as_basename=basename
4272else
4273 as_basename=false
4274fi
4275
4276if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4277 as_dirname=dirname
4278else
4279 as_dirname=false
4280fi
4281
4282as_me=`$as_basename -- "$0" ||
4283$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4284 X"$0" : 'X\(//\)$' \| \
4285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4286$as_echo X/"$0" |
4287 sed '/^.*\/\([^/][^/]*\)\/*$/{
4288 s//\1/
4289 q
4290 }
4291 /^X\/\(\/\/\)$/{
4292 s//\1/
4293 q
4294 }
4295 /^X\/\(\/\).*/{
4296 s//\1/
4297 q
4298 }
4299 s/.*/./; q'`
4300
4301# Avoid depending upon Character Ranges.
4302as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4303as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4304as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4305as_cr_digits='0123456789'
4306as_cr_alnum=$as_cr_Letters$as_cr_digits
4307
4308ECHO_C= ECHO_N= ECHO_T=
4309case `echo -n x` in #(((((
4310-n*)
4311 case `echo 'xy\c'` in
4312 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4313 xy) ECHO_C='\c';;
4314 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4315 ECHO_T=' ';;
4316 esac;;
4317*)
4318 ECHO_N='-n';;
4319esac
4320
4321rm -f conf$$ conf$$.exe conf$$.file
4322if test -d conf$$.dir; then
4323 rm -f conf$$.dir/conf$$.file
4324else
4325 rm -f conf$$.dir
4326 mkdir conf$$.dir 2>/dev/null
4327fi
4328if (echo >conf$$.file) 2>/dev/null; then
4329 if ln -s conf$$.file conf$$ 2>/dev/null; then
4330 as_ln_s='ln -s'
4331 # ... but there are two gotchas:
4332 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4333 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4334 # In both cases, we have to default to `cp -pR'.
4335 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4336 as_ln_s='cp -pR'
4337 elif ln conf$$.file conf$$ 2>/dev/null; then
4338 as_ln_s=ln
4339 else
4340 as_ln_s='cp -pR'
4341 fi
4342else
4343 as_ln_s='cp -pR'
4344fi
4345rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4346rmdir conf$$.dir 2>/dev/null
4347
4348
4349# as_fn_mkdir_p
4350# -------------
4351# Create "$as_dir" as a directory, including parents if necessary.
4352as_fn_mkdir_p ()
4353{
4354
4355 case $as_dir in #(
4356 -*) as_dir=./$as_dir;;
4357 esac
4358 test -d "$as_dir" || eval $as_mkdir_p || {
4359 as_dirs=
4360 while :; do
4361 case $as_dir in #(
4362 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4363 *) as_qdir=$as_dir;;
4364 esac
4365 as_dirs="'$as_qdir' $as_dirs"
4366 as_dir=`$as_dirname -- "$as_dir" ||
4367$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4368 X"$as_dir" : 'X\(//\)[^/]' \| \
4369 X"$as_dir" : 'X\(//\)$' \| \
4370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4371$as_echo X"$as_dir" |
4372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4373 s//\1/
4374 q
4375 }
4376 /^X\(\/\/\)[^/].*/{
4377 s//\1/
4378 q
4379 }
4380 /^X\(\/\/\)$/{
4381 s//\1/
4382 q
4383 }
4384 /^X\(\/\).*/{
4385 s//\1/
4386 q
4387 }
4388 s/.*/./; q'`
4389 test -d "$as_dir" && break
4390 done
4391 test -z "$as_dirs" || eval "mkdir $as_dirs"
4392 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4393
4394
4395} # as_fn_mkdir_p
4396if mkdir -p . 2>/dev/null; then
4397 as_mkdir_p='mkdir -p "$as_dir"'
4398else
4399 test -d ./-p && rmdir ./-p
4400 as_mkdir_p=false
4401fi
4402
4403
4404# as_fn_executable_p FILE
4405# -----------------------
4406# Test if FILE is an executable regular file.
4407as_fn_executable_p ()
4408{
4409 test -f "$1" && test -x "$1"
4410} # as_fn_executable_p
4411as_test_x='test -x'
4412as_executable_p=as_fn_executable_p
4413
4414# Sed expression to map a string onto a valid CPP name.
4415as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4416
4417# Sed expression to map a string onto a valid variable name.
4418as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4419
4420
4421exec 6>&1
4422## ----------------------------------- ##
4423## Main body of $CONFIG_STATUS script. ##
4424## ----------------------------------- ##
4425_ASEOF
4426test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4427
4428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4429# Save the log message, to keep $0 and so on meaningful, and to
4430# report actual input values of CONFIG_FILES etc. instead of their
4431# values after options handling.
4432ac_log="
4433This file was extended by $as_me, which was
4434generated by GNU Autoconf 2.69. Invocation command line was
4435
4436 CONFIG_FILES = $CONFIG_FILES
4437 CONFIG_HEADERS = $CONFIG_HEADERS
4438 CONFIG_LINKS = $CONFIG_LINKS
4439 CONFIG_COMMANDS = $CONFIG_COMMANDS
4440 $ $0 $@
4441
4442on `(hostname || uname -n) 2>/dev/null | sed 1q`
4443"
4444
4445_ACEOF
4446
4447case $ac_config_files in *"
4448"*) set x $ac_config_files; shift; ac_config_files=$*;;
4449esac
4450
4451case $ac_config_headers in *"
4452"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4453esac
4454
4455
4456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4457# Files that config.status was made for.
4458config_files="$ac_config_files"
4459config_headers="$ac_config_headers"
4460
4461_ACEOF
4462
4463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4464ac_cs_usage="\
4465\`$as_me' instantiates files and other configuration actions
4466from templates according to the current configuration. Unless the files
4467and actions are specified as TAGs, all are instantiated by default.
4468
4469Usage: $0 [OPTION]... [TAG]...
4470
4471 -h, --help print this help, then exit
4472 -V, --version print version number and configuration settings, then exit
4473 --config print configuration, then exit
4474 -q, --quiet, --silent
4475 do not print progress messages
4476 -d, --debug don't remove temporary files
4477 --recheck update $as_me by reconfiguring in the same conditions
4478 --file=FILE[:TEMPLATE]
4479 instantiate the configuration file FILE
4480 --header=FILE[:TEMPLATE]
4481 instantiate the configuration header FILE
4482
4483Configuration files:
4484$config_files
4485
4486Configuration headers:
4487$config_headers
4488
4489Report bugs to the package provider."
4490
4491_ACEOF
4492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4493ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4494ac_cs_version="\\
4495config.status
4496configured by $0, generated by GNU Autoconf 2.69,
4497 with options \\"\$ac_cs_config\\"
4498
4499Copyright (C) 2012 Free Software Foundation, Inc.
4500This config.status script is free software; the Free Software Foundation
4501gives unlimited permission to copy, distribute and modify it."
4502
4503ac_pwd='$ac_pwd'
4504srcdir='$srcdir'
4505INSTALL='$INSTALL'
4506test -n "\$AWK" || AWK=awk
4507_ACEOF
4508
4509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4510# The default lists apply if the user does not specify any file.
4511ac_need_defaults=:
4512while test $# != 0
4513do
4514 case $1 in
4515 --*=?*)
4516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4518 ac_shift=:
4519 ;;
4520 --*=)
4521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4522 ac_optarg=
4523 ac_shift=:
4524 ;;
4525 *)
4526 ac_option=$1
4527 ac_optarg=$2
4528 ac_shift=shift
4529 ;;
4530 esac
4531
4532 case $ac_option in
4533 # Handling of the options.
4534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4535 ac_cs_recheck=: ;;
4536 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4537 $as_echo "$ac_cs_version"; exit ;;
4538 --config | --confi | --conf | --con | --co | --c )
4539 $as_echo "$ac_cs_config"; exit ;;
4540 --debug | --debu | --deb | --de | --d | -d )
4541 debug=: ;;
4542 --file | --fil | --fi | --f )
4543 $ac_shift
4544 case $ac_optarg in
4545 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4546 '') as_fn_error $? "missing file argument" ;;
4547 esac
4548 as_fn_append CONFIG_FILES " '$ac_optarg'"
4549 ac_need_defaults=false;;
4550 --header | --heade | --head | --hea )
4551 $ac_shift
4552 case $ac_optarg in
4553 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4554 esac
4555 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4556 ac_need_defaults=false;;
4557 --he | --h)
4558 # Conflict between --help and --header
4559 as_fn_error $? "ambiguous option: \`$1'
4560Try \`$0 --help' for more information.";;
4561 --help | --hel | -h )
4562 $as_echo "$ac_cs_usage"; exit ;;
4563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4565 ac_cs_silent=: ;;
4566
4567 # This is an error.
4568 -*) as_fn_error $? "unrecognized option: \`$1'
4569Try \`$0 --help' for more information." ;;
4570
4571 *) as_fn_append ac_config_targets " $1"
4572 ac_need_defaults=false ;;
4573
4574 esac
4575 shift
4576done
4577
4578ac_configure_extra_args=
4579
4580if $ac_cs_silent; then
4581 exec 6>/dev/null
4582 ac_configure_extra_args="$ac_configure_extra_args --silent"
4583fi
4584
4585_ACEOF
4586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4587if \$ac_cs_recheck; then
4588 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4589 shift
4590 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4591 CONFIG_SHELL='$SHELL'
4592 export CONFIG_SHELL
4593 exec "\$@"
4594fi
4595
4596_ACEOF
4597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4598exec 5>>config.log
4599{
4600 echo
4601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4602## Running $as_me. ##
4603_ASBOX
4604 $as_echo "$ac_log"
4605} >&5
4606
4607_ACEOF
4608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4609_ACEOF
4610
4611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4612
4613# Handling of arguments.
4614for ac_config_target in $ac_config_targets
4615do
4616 case $ac_config_target in
4617 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4618 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4619
4620 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4621 esac
4622done
4623
4624
4625# If the user did not use the arguments to specify the items to instantiate,
4626# then the envvar interface is used. Set only those that are not.
4627# We use the long form for the default assignment because of an extremely
4628# bizarre bug on SunOS 4.1.3.
4629if $ac_need_defaults; then
4630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4631 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4632fi
4633
4634# Have a temporary directory for convenience. Make it in the build tree
4635# simply because there is no reason against having it here, and in addition,
4636# creating and moving files from /tmp can sometimes cause problems.
4637# Hook for its removal unless debugging.
4638# Note that there is a small window in which the directory will not be cleaned:
4639# after its creation but before its name has been assigned to `$tmp'.
4640$debug ||
4641{
4642 tmp= ac_tmp=
4643 trap 'exit_status=$?
4644 : "${ac_tmp:=$tmp}"
4645 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4646' 0
4647 trap 'as_fn_exit 1' 1 2 13 15
4648}
4649# Create a (secure) tmp directory for tmp files.
4650
4651{
4652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4653 test -d "$tmp"
4654} ||
4655{
4656 tmp=./conf$$-$RANDOM
4657 (umask 077 && mkdir "$tmp")
4658} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4659ac_tmp=$tmp
4660
4661# Set up the scripts for CONFIG_FILES section.
4662# No need to generate them if there are no CONFIG_FILES.
4663# This happens for instance with `./config.status config.h'.
4664if test -n "$CONFIG_FILES"; then
4665
4666
4667ac_cr=`echo X | tr X '\015'`
4668# On cygwin, bash can eat \r inside `` if the user requested igncr.
4669# But we know of no other shell where ac_cr would be empty at this
4670# point, so we can use a bashism as a fallback.
4671if test "x$ac_cr" = x; then
4672 eval ac_cr=\$\'\\r\'
4673fi
4674ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4675if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4676 ac_cs_awk_cr='\\r'
4677else
4678 ac_cs_awk_cr=$ac_cr
4679fi
4680
4681echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4682_ACEOF
4683
4684
4685{
4686 echo "cat >conf$$subs.awk <<_ACEOF" &&
4687 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4688 echo "_ACEOF"
4689} >conf$$subs.sh ||
4690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4691ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4692ac_delim='%!_!# '
4693for ac_last_try in false false false false false :; do
4694 . ./conf$$subs.sh ||
4695 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4696
4697 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4698 if test $ac_delim_n = $ac_delim_num; then
4699 break
4700 elif $ac_last_try; then
4701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4702 else
4703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4704 fi
4705done
4706rm -f conf$$subs.sh
4707
4708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4709cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4710_ACEOF
4711sed -n '
4712h
4713s/^/S["/; s/!.*/"]=/
4714p
4715g
4716s/^[^!]*!//
4717:repl
4718t repl
4719s/'"$ac_delim"'$//
4720t delim
4721:nl
4722h
4723s/\(.\{148\}\)..*/\1/
4724t more1
4725s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4726p
4727n
4728b repl
4729:more1
4730s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4731p
4732g
4733s/.\{148\}//
4734t nl
4735:delim
4736h
4737s/\(.\{148\}\)..*/\1/
4738t more2
4739s/["\\]/\\&/g; s/^/"/; s/$/"/
4740p
4741b
4742:more2
4743s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4744p
4745g
4746s/.\{148\}//
4747t delim
4748' <conf$$subs.awk | sed '
4749/^[^""]/{
4750 N
4751 s/\n//
4752}
4753' >>$CONFIG_STATUS || ac_write_fail=1
4754rm -f conf$$subs.awk
4755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4756_ACAWK
4757cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4758 for (key in S) S_is_set[key] = 1
4759 FS = "\a"
4760
4761}
4762{
4763 line = $ 0
4764 nfields = split(line, field, "@")
4765 substed = 0
4766 len = length(field[1])
4767 for (i = 2; i < nfields; i++) {
4768 key = field[i]
4769 keylen = length(key)
4770 if (S_is_set[key]) {
4771 value = S[key]
4772 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4773 len += length(value) + length(field[++i])
4774 substed = 1
4775 } else
4776 len += 1 + keylen
4777 }
4778
4779 print line
4780}
4781
4782_ACAWK
4783_ACEOF
4784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4785if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4786 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4787else
4788 cat
4789fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4790 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4791_ACEOF
4792
4793# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4794# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4795# trailing colons and then remove the whole line if VPATH becomes empty
4796# (actually we leave an empty line to preserve line numbers).
4797if test "x$srcdir" = x.; then
4798 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4799h
4800s///
4801s/^/:/
4802s/[ ]*$/:/
4803s/:\$(srcdir):/:/g
4804s/:\${srcdir}:/:/g
4805s/:@srcdir@:/:/g
4806s/^:*//
4807s/:*$//
4808x
4809s/\(=[ ]*\).*/\1/
4810G
4811s/\n//
4812s/^[^=]*=[ ]*$//
4813}'
4814fi
4815
4816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4817fi # test -n "$CONFIG_FILES"
4818
4819# Set up the scripts for CONFIG_HEADERS section.
4820# No need to generate them if there are no CONFIG_HEADERS.
4821# This happens for instance with `./config.status Makefile'.
4822if test -n "$CONFIG_HEADERS"; then
4823cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4824BEGIN {
4825_ACEOF
4826
4827# Transform confdefs.h into an awk script `defines.awk', embedded as
4828# here-document in config.status, that substitutes the proper values into
4829# config.h.in to produce config.h.
4830
4831# Create a delimiter string that does not exist in confdefs.h, to ease
4832# handling of long lines.
4833ac_delim='%!_!# '
4834for ac_last_try in false false :; do
4835 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4836 if test -z "$ac_tt"; then
4837 break
4838 elif $ac_last_try; then
4839 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4840 else
4841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4842 fi
4843done
4844
4845# For the awk script, D is an array of macro values keyed by name,
4846# likewise P contains macro parameters if any. Preserve backslash
4847# newline sequences.
4848
4849ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4850sed -n '
4851s/.\{148\}/&'"$ac_delim"'/g
4852t rset
4853:rset
4854s/^[ ]*#[ ]*define[ ][ ]*/ /
4855t def
4856d
4857:def
4858s/\\$//
4859t bsnl
4860s/["\\]/\\&/g
4861s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4862D["\1"]=" \3"/p
4863s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4864d
4865:bsnl
4866s/["\\]/\\&/g
4867s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4868D["\1"]=" \3\\\\\\n"\\/p
4869t cont
4870s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4871t cont
4872d
4873:cont
4874n
4875s/.\{148\}/&'"$ac_delim"'/g
4876t clear
4877:clear
4878s/\\$//
4879t bsnlc
4880s/["\\]/\\&/g; s/^/"/; s/$/"/p
4881d
4882:bsnlc
4883s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4884b cont
4885' <confdefs.h | sed '
4886s/'"$ac_delim"'/"\\\
4887"/g' >>$CONFIG_STATUS || ac_write_fail=1
4888
4889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4890 for (key in D) D_is_set[key] = 1
4891 FS = "\a"
4892}
4893/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4894 line = \$ 0
4895 split(line, arg, " ")
4896 if (arg[1] == "#") {
4897 defundef = arg[2]
4898 mac1 = arg[3]
4899 } else {
4900 defundef = substr(arg[1], 2)
4901 mac1 = arg[2]
4902 }
4903 split(mac1, mac2, "(") #)
4904 macro = mac2[1]
4905 prefix = substr(line, 1, index(line, defundef) - 1)
4906 if (D_is_set[macro]) {
4907 # Preserve the white space surrounding the "#".
4908 print prefix "define", macro P[macro] D[macro]
4909 next
4910 } else {
4911 # Replace #undef with comments. This is necessary, for example,
4912 # in the case of _POSIX_SOURCE, which is predefined and required
4913 # on some systems where configure will not decide to define it.
4914 if (defundef == "undef") {
4915 print "/*", prefix defundef, macro, "*/"
4916 next
4917 }
4918 }
4919}
4920{ print }
4921_ACAWK
4922_ACEOF
4923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4924 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4925fi # test -n "$CONFIG_HEADERS"
4926
4927
4928eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4929shift
4930for ac_tag
4931do
4932 case $ac_tag in
4933 :[FHLC]) ac_mode=$ac_tag; continue;;
4934 esac
4935 case $ac_mode$ac_tag in
4936 :[FHL]*:*);;
4937 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4938 :[FH]-) ac_tag=-:-;;
4939 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4940 esac
4941 ac_save_IFS=$IFS
4942 IFS=:
4943 set x $ac_tag
4944 IFS=$ac_save_IFS
4945 shift
4946 ac_file=$1
4947 shift
4948
4949 case $ac_mode in
4950 :L) ac_source=$1;;
4951 :[FH])
4952 ac_file_inputs=
4953 for ac_f
4954 do
4955 case $ac_f in
4956 -) ac_f="$ac_tmp/stdin";;
4957 *) # Look for the file first in the build tree, then in the source tree
4958 # (if the path is not absolute). The absolute path cannot be DOS-style,
4959 # because $ac_f cannot contain `:'.
4960 test -f "$ac_f" ||
4961 case $ac_f in
4962 [\\/$]*) false;;
4963 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4964 esac ||
4965 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4966 esac
4967 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4968 as_fn_append ac_file_inputs " '$ac_f'"
4969 done
4970
4971 # Let's still pretend it is `configure' which instantiates (i.e., don't
4972 # use $as_me), people would be surprised to read:
4973 # /* config.h. Generated by config.status. */
4974 configure_input='Generated from '`
4975 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4976 `' by configure.'
4977 if test x"$ac_file" != x-; then
4978 configure_input="$ac_file. $configure_input"
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4980$as_echo "$as_me: creating $ac_file" >&6;}
4981 fi
4982 # Neutralize special characters interpreted by sed in replacement strings.
4983 case $configure_input in #(
4984 *\&* | *\|* | *\\* )
4985 ac_sed_conf_input=`$as_echo "$configure_input" |
4986 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4987 *) ac_sed_conf_input=$configure_input;;
4988 esac
4989
4990 case $ac_tag in
4991 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4993 esac
4994 ;;
4995 esac
4996
4997 ac_dir=`$as_dirname -- "$ac_file" ||
4998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4999 X"$ac_file" : 'X\(//\)[^/]' \| \
5000 X"$ac_file" : 'X\(//\)$' \| \
5001 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5002$as_echo X"$ac_file" |
5003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5004 s//\1/
5005 q
5006 }
5007 /^X\(\/\/\)[^/].*/{
5008 s//\1/
5009 q
5010 }
5011 /^X\(\/\/\)$/{
5012 s//\1/
5013 q
5014 }
5015 /^X\(\/\).*/{
5016 s//\1/
5017 q
5018 }
5019 s/.*/./; q'`
5020 as_dir="$ac_dir"; as_fn_mkdir_p
5021 ac_builddir=.
5022
5023case "$ac_dir" in
5024.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5025*)
5026 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5027 # A ".." for each directory in $ac_dir_suffix.
5028 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5029 case $ac_top_builddir_sub in
5030 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5031 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5032 esac ;;
5033esac
5034ac_abs_top_builddir=$ac_pwd
5035ac_abs_builddir=$ac_pwd$ac_dir_suffix
5036# for backward compatibility:
5037ac_top_builddir=$ac_top_build_prefix
5038
5039case $srcdir in
5040 .) # We are building in place.
5041 ac_srcdir=.
5042 ac_top_srcdir=$ac_top_builddir_sub
5043 ac_abs_top_srcdir=$ac_pwd ;;
5044 [\\/]* | ?:[\\/]* ) # Absolute name.
5045 ac_srcdir=$srcdir$ac_dir_suffix;
5046 ac_top_srcdir=$srcdir
5047 ac_abs_top_srcdir=$srcdir ;;
5048 *) # Relative name.
5049 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5050 ac_top_srcdir=$ac_top_build_prefix$srcdir
5051 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5052esac
5053ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5054
5055
5056 case $ac_mode in
5057 :F)
5058 #
5059 # CONFIG_FILE
5060 #
5061
5062 case $INSTALL in
5063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5064 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5065 esac
5066_ACEOF
5067
5068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5069# If the template does not know about datarootdir, expand it.
5070# FIXME: This hack should be removed a few years after 2.60.
5071ac_datarootdir_hack=; ac_datarootdir_seen=
5072ac_sed_dataroot='
5073/datarootdir/ {
5074 p
5075 q
5076}
5077/@datadir@/p
5078/@docdir@/p
5079/@infodir@/p
5080/@localedir@/p
5081/@mandir@/p'
5082case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5083*datarootdir*) ac_datarootdir_seen=yes;;
5084*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5086$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5087_ACEOF
5088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5089 ac_datarootdir_hack='
5090 s&@datadir@&$datadir&g
5091 s&@docdir@&$docdir&g
5092 s&@infodir@&$infodir&g
5093 s&@localedir@&$localedir&g
5094 s&@mandir@&$mandir&g
5095 s&\\\${datarootdir}&$datarootdir&g' ;;
5096esac
5097_ACEOF
5098
5099# Neutralize VPATH when `$srcdir' = `.'.
5100# Shell code in configure.ac might set extrasub.
5101# FIXME: do we really want to maintain this feature?
5102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5103ac_sed_extra="$ac_vpsub
5104$extrasub
5105_ACEOF
5106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5107:t
5108/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5109s|@configure_input@|$ac_sed_conf_input|;t t
5110s&@top_builddir@&$ac_top_builddir_sub&;t t
5111s&@top_build_prefix@&$ac_top_build_prefix&;t t
5112s&@srcdir@&$ac_srcdir&;t t
5113s&@abs_srcdir@&$ac_abs_srcdir&;t t
5114s&@top_srcdir@&$ac_top_srcdir&;t t
5115s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5116s&@builddir@&$ac_builddir&;t t
5117s&@abs_builddir@&$ac_abs_builddir&;t t
5118s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5119s&@INSTALL@&$ac_INSTALL&;t t
5120$ac_datarootdir_hack
5121"
5122eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5123 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5124
5125test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5126 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5127 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5128 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5130which seems to be undefined. Please make sure it is defined" >&5
5131$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5132which seems to be undefined. Please make sure it is defined" >&2;}
5133
5134 rm -f "$ac_tmp/stdin"
5135 case $ac_file in
5136 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5137 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5138 esac \
5139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5140 ;;
5141 :H)
5142 #
5143 # CONFIG_HEADER
5144 #
5145 if test x"$ac_file" != x-; then
5146 {
5147 $as_echo "/* $configure_input */" \
5148 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5149 } >"$ac_tmp/config.h" \
5150 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5151 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5153$as_echo "$as_me: $ac_file is unchanged" >&6;}
5154 else
5155 rm -f "$ac_file"
5156 mv "$ac_tmp/config.h" "$ac_file" \
5157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5158 fi
5159 else
5160 $as_echo "/* $configure_input */" \
5161 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5162 || as_fn_error $? "could not create -" "$LINENO" 5
5163 fi
5164 ;;
5165
5166
5167 esac
5168
5169done # for ac_tag
5170
5171
5172as_fn_exit 0
5173_ACEOF
5174ac_clean_files=$ac_clean_files_save
5175
5176test $ac_write_fail = 0 ||
5177 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5178
5179
5180# configure is writing to config.log, and then calls config.status.
5181# config.status does its own redirection, appending to config.log.
5182# Unfortunately, on DOS this fails, as config.log is still kept open
5183# by configure, so config.status won't be able to write to it; its
5184# output is simply discarded. So we exec the FD to /dev/null,
5185# effectively closing config.log, so it can be properly (re)opened and
5186# appended to by config.status. When coming back to configure, we
5187# need to make the FD available again.
5188if test "$no_create" != yes; then
5189 ac_cs_success=:
5190 ac_config_status_args=
5191 test "$silent" = yes &&
5192 ac_config_status_args="$ac_config_status_args --quiet"
5193 exec 5>/dev/null
5194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5195 exec 5>>config.log
5196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5197 # would make configure fail if this is the last instruction.
5198 $ac_cs_success || as_fn_exit 1
5199fi
5200if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5202$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5203fi
5204