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