ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
Revision: 1.17
Committed: Thu Jun 25 13:34:28 2015 UTC (8 years, 11 months ago) by root
Branch: MAIN
CVS Tags: rel-4_33, rel-4_34
Changes since 1.16: +232 -174 lines
Log Message:
*** empty log message ***

File Contents

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