ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
Revision: 1.15
Committed: Tue Apr 10 05:01:34 2012 UTC (12 years, 1 month ago) by root
Branch: MAIN
CVS Tags: rel-4_15
Changes since 1.14: +793 -157 lines
Log Message:
4.15

File Contents

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