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