ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
(Generate patch)

Comparing IO-AIO/configure (file contents):
Revision 1.7 by root, Sat Jan 2 12:58:37 2010 UTC vs.
Revision 1.18 by root, Fri Jun 23 03:23:19 2017 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64. 3# Generated by GNU Autoconf 2.69.
4# 4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 5#
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7# Foundation, Inc. 7#
8# 8#
9# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ## 11## -------------------- ##
12## M4sh Initialization. ## 12## M4sh Initialization. ##
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.) 86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl" 87IFS=" "" $as_nl"
88 88
89# Find who we are. Look in the path if we contain no directory separator. 89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
90case $0 in #(( 91case $0 in #((
91 *[\\/]* ) as_myself=$0 ;; 92 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH 94for as_dir in $PATH
94do 95do
129export LANGUAGE 130export LANGUAGE
130 131
131# CDPATH. 132# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133 134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
134if test "x$CONFIG_SHELL" = x; then 160if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh 162 emulate sh
137 NULLCMD=: 163 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163 189
164else 190else
165 exitcode=1; echo positional parameters were not saved. 191 exitcode=1; echo positional parameters were not saved.
166fi 192fi
167test x\$exitcode = x0 || exit 1" 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
172 if (eval "$as_required") 2>/dev/null; then : 200 if (eval "$as_required") 2>/dev/null; then :
173 as_have_required=yes 201 as_have_required=yes
174else 202else
175 as_have_required=no 203 as_have_required=no
176fi 204fi
206fi; } 234fi; }
207IFS=$as_save_IFS 235IFS=$as_save_IFS
208 236
209 237
210 if test "x$CONFIG_SHELL" != x; then : 238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
211 # We cannot yet assume a decent shell, so we have to provide a 240 # We cannot yet assume a decent shell, so we have to provide a
212 # neutralization value for shells without unset; and this also 241# neutralization value for shells without unset; and this also
213 # works around shells that cannot unset nonexistent variables. 242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
214 BASH_ENV=/dev/null 244BASH_ENV=/dev/null
215 ENV=/dev/null 245ENV=/dev/null
216 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217 export CONFIG_SHELL 247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
218 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
219fi 258fi
220 259
221 if test x$as_have_required = xno; then : 260 if test x$as_have_required = xno; then :
222 $as_echo "$0: This script requires a shell more modern than all" 261 $as_echo "$0: This script requires a shell more modern than all"
223 $as_echo "$0: the shells that I found on your system." 262 $as_echo "$0: the shells that I found on your system."
311 } 350 }
312 s/.*/./; q'` 351 s/.*/./; q'`
313 test -d "$as_dir" && break 352 test -d "$as_dir" && break
314 done 353 done
315 test -z "$as_dirs" || eval "mkdir $as_dirs" 354 test -z "$as_dirs" || eval "mkdir $as_dirs"
316 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
317 356
318 357
319} # as_fn_mkdir_p 358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
320# as_fn_append VAR VALUE 367# as_fn_append VAR VALUE
321# ---------------------- 368# ----------------------
322# Append the text in VALUE to the end of the definition contained in VAR. Take 369# Append the text in VALUE to the end of the definition contained in VAR. Take
323# advantage of any shell optimizations that allow amortized linear growth over 370# advantage of any shell optimizations that allow amortized linear growth over
324# repeated appends, instead of the typical quadratic growth present in naive 371# repeated appends, instead of the typical quadratic growth present in naive
351 as_val=`expr "$@" || test $? -eq 1` 398 as_val=`expr "$@" || test $? -eq 1`
352 } 399 }
353fi # as_fn_arith 400fi # as_fn_arith
354 401
355 402
356# as_fn_error ERROR [LINENO LOG_FD] 403# as_fn_error STATUS ERROR [LINENO LOG_FD]
357# --------------------------------- 404# ----------------------------------------
358# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
359# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
360# script with status $?, using 1 if that was 0. 407# script with STATUS, using 1 if that was 0.
361as_fn_error () 408as_fn_error ()
362{ 409{
363 as_status=$?; test $as_status -eq 0 && as_status=1 410 as_status=$1; test $as_status -eq 0 && as_status=1
364 if test "$3"; then 411 if test "$4"; then
365 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
366 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
367 fi 414 fi
368 $as_echo "$as_me: error: $1" >&2 415 $as_echo "$as_me: error: $2" >&2
369 as_fn_exit $as_status 416 as_fn_exit $as_status
370} # as_fn_error 417} # as_fn_error
371 418
372if expr a : '\(a\)' >/dev/null 2>&1 && 419if expr a : '\(a\)' >/dev/null 2>&1 &&
373 test "X`expr 00001 : '.*\(...\)'`" = X001; then 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
436 s/-\n.*// 483 s/-\n.*//
437 ' >$as_me.lineno && 484 ' >$as_me.lineno &&
438 chmod +x "$as_me.lineno" || 485 chmod +x "$as_me.lineno" ||
439 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
440 487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
441 # Don't try to exec as it changes $[0], causing all sort of problems 492 # Don't try to exec as it changes $[0], causing all sort of problems
442 # (the dirname of $[0] is not the place where we might find the 493 # (the dirname of $[0] is not the place where we might find the
443 # original and so on. Autoconf is especially sensitive to this). 494 # original and so on. Autoconf is especially sensitive to this).
444 . "./$as_me.lineno" 495 . "./$as_me.lineno"
445 # Exit status is that of the last command. 496 # Exit status is that of the last command.
470 if ln -s conf$$.file conf$$ 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then
471 as_ln_s='ln -s' 522 as_ln_s='ln -s'
472 # ... but there are two gotchas: 523 # ... but there are two gotchas:
473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
475 # In both cases, we have to default to `cp -p'. 526 # In both cases, we have to default to `cp -pR'.
476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
477 as_ln_s='cp -p' 528 as_ln_s='cp -pR'
478 elif ln conf$$.file conf$$ 2>/dev/null; then 529 elif ln conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s=ln 530 as_ln_s=ln
480 else 531 else
481 as_ln_s='cp -p' 532 as_ln_s='cp -pR'
482 fi 533 fi
483else 534else
484 as_ln_s='cp -p' 535 as_ln_s='cp -pR'
485fi 536fi
486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
487rmdir conf$$.dir 2>/dev/null 538rmdir conf$$.dir 2>/dev/null
488 539
489if mkdir -p . 2>/dev/null; then 540if mkdir -p . 2>/dev/null; then
491else 542else
492 test -d ./-p && rmdir ./-p 543 test -d ./-p && rmdir ./-p
493 as_mkdir_p=false 544 as_mkdir_p=false
494fi 545fi
495 546
496if test -x / >/dev/null 2>&1; then
497 as_test_x='test -x' 547as_test_x='test -x'
498else 548as_executable_p=as_fn_executable_p
499 if ls -dL / >/dev/null 2>&1; then
500 as_ls_L_option=L
501 else
502 as_ls_L_option=
503 fi
504 as_test_x='
505 eval sh -c '\''
506 if test -d "$1"; then
507 test -d "$1/.";
508 else
509 case $1 in #(
510 -*)set "./$1";;
511 esac;
512 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
513 ???[sx]*):;;*)false;;esac;fi
514 '\'' sh
515 '
516fi
517as_executable_p=$as_test_x
518 549
519# Sed expression to map a string onto a valid CPP name. 550# Sed expression to map a string onto a valid CPP name.
520as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
521 552
522# Sed expression to map a string onto a valid variable name. 553# Sed expression to map a string onto a valid variable name.
523as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
524 555
525 556
526exec 7<&0 </dev/null 6>&1 557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
527 559
528# Name of the host. 560# Name of the host.
529# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
530# so uname gets run too. 562# so uname gets run too.
531ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
532 564
533# 565#
534# Initializations. 566# Initializations.
549PACKAGE_STRING= 581PACKAGE_STRING=
550PACKAGE_BUGREPORT= 582PACKAGE_BUGREPORT=
551PACKAGE_URL= 583PACKAGE_URL=
552 584
553ac_unique_file="libeio/eio.h" 585ac_unique_file="libeio/eio.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600# include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
554ac_subst_vars='LTLIBOBJS 622ac_subst_vars='LTLIBOBJS
555LIBOBJS 623LIBOBJS
624EGREP
625GREP
626CPP
556OBJEXT 627OBJEXT
557EXEEXT 628EXEEXT
558ac_ct_CC 629ac_ct_CC
559CPPFLAGS 630CPPFLAGS
560LDFLAGS 631LDFLAGS
577htmldir 648htmldir
578infodir 649infodir
579docdir 650docdir
580oldincludedir 651oldincludedir
581includedir 652includedir
653runstatedir
582localstatedir 654localstatedir
583sharedstatedir 655sharedstatedir
584sysconfdir 656sysconfdir
585datadir 657datadir
586datarootdir 658datarootdir
607target_alias 679target_alias
608CC 680CC
609CFLAGS 681CFLAGS
610LDFLAGS 682LDFLAGS
611LIBS 683LIBS
612CPPFLAGS' 684CPPFLAGS
685CPP'
613 686
614 687
615# Initialize some variables set by options. 688# Initialize some variables set by options.
616ac_init_help= 689ac_init_help=
617ac_init_version=false 690ac_init_version=false
646datarootdir='${prefix}/share' 719datarootdir='${prefix}/share'
647datadir='${datarootdir}' 720datadir='${datarootdir}'
648sysconfdir='${prefix}/etc' 721sysconfdir='${prefix}/etc'
649sharedstatedir='${prefix}/com' 722sharedstatedir='${prefix}/com'
650localstatedir='${prefix}/var' 723localstatedir='${prefix}/var'
724runstatedir='${localstatedir}/run'
651includedir='${prefix}/include' 725includedir='${prefix}/include'
652oldincludedir='/usr/include' 726oldincludedir='/usr/include'
653docdir='${datarootdir}/doc/${PACKAGE}' 727docdir='${datarootdir}/doc/${PACKAGE}'
654infodir='${datarootdir}/info' 728infodir='${datarootdir}/info'
655htmldir='${docdir}' 729htmldir='${docdir}'
670 ac_prev= 744 ac_prev=
671 continue 745 continue
672 fi 746 fi
673 747
674 case $ac_option in 748 case $ac_option in
675 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 749 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
750 *=) ac_optarg= ;;
676 *) ac_optarg=yes ;; 751 *) ac_optarg=yes ;;
677 esac 752 esac
678 753
679 # Accept the important Cygnus configure options, so we can diagnose typos. 754 # Accept the important Cygnus configure options, so we can diagnose typos.
680 755
681 case $ac_dashdash$ac_option in 756 case $ac_dashdash$ac_option in
716 791
717 -disable-* | --disable-*) 792 -disable-* | --disable-*)
718 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 793 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
719 # Reject names that are not valid shell variable names. 794 # Reject names that are not valid shell variable names.
720 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 795 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
721 as_fn_error "invalid feature name: $ac_useropt" 796 as_fn_error $? "invalid feature name: $ac_useropt"
722 ac_useropt_orig=$ac_useropt 797 ac_useropt_orig=$ac_useropt
723 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 798 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
724 case $ac_user_opts in 799 case $ac_user_opts in
725 *" 800 *"
726"enable_$ac_useropt" 801"enable_$ac_useropt"
742 817
743 -enable-* | --enable-*) 818 -enable-* | --enable-*)
744 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 819 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
745 # Reject names that are not valid shell variable names. 820 # Reject names that are not valid shell variable names.
746 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
747 as_fn_error "invalid feature name: $ac_useropt" 822 as_fn_error $? "invalid feature name: $ac_useropt"
748 ac_useropt_orig=$ac_useropt 823 ac_useropt_orig=$ac_useropt
749 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 824 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
750 case $ac_user_opts in 825 case $ac_user_opts in
751 *" 826 *"
752"enable_$ac_useropt" 827"enable_$ac_useropt"
897 972
898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
899 | -silent | --silent | --silen | --sile | --sil) 974 | -silent | --silent | --silen | --sile | --sil)
900 silent=yes ;; 975 silent=yes ;;
901 976
977 -runstatedir | --runstatedir | --runstatedi | --runstated \
978 | --runstate | --runstat | --runsta | --runst | --runs \
979 | --run | --ru | --r)
980 ac_prev=runstatedir ;;
981 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
982 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
983 | --run=* | --ru=* | --r=*)
984 runstatedir=$ac_optarg ;;
985
902 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 986 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
903 ac_prev=sbindir ;; 987 ac_prev=sbindir ;;
904 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 988 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
905 | --sbi=* | --sb=*) 989 | --sbi=* | --sb=*)
906 sbindir=$ac_optarg ;; 990 sbindir=$ac_optarg ;;
946 1030
947 -with-* | --with-*) 1031 -with-* | --with-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1032 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
949 # Reject names that are not valid shell variable names. 1033 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid package name: $ac_useropt" 1035 as_fn_error $? "invalid package name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt 1036 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in 1038 case $ac_user_opts in
955 *" 1039 *"
956"with_$ac_useropt" 1040"with_$ac_useropt"
962 1046
963 -without-* | --without-*) 1047 -without-* | --without-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1048 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
965 # Reject names that are not valid shell variable names. 1049 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error "invalid package name: $ac_useropt" 1051 as_fn_error $? "invalid package name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt 1052 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in 1054 case $ac_user_opts in
971 *" 1055 *"
972"with_$ac_useropt" 1056"with_$ac_useropt"
992 ac_prev=x_libraries ;; 1076 ac_prev=x_libraries ;;
993 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1077 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
994 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1078 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
995 x_libraries=$ac_optarg ;; 1079 x_libraries=$ac_optarg ;;
996 1080
997 -*) as_fn_error "unrecognized option: \`$ac_option' 1081 -*) as_fn_error $? "unrecognized option: \`$ac_option'
998Try \`$0 --help' for more information." 1082Try \`$0 --help' for more information"
999 ;; 1083 ;;
1000 1084
1001 *=*) 1085 *=*)
1002 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1086 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1003 # Reject names that are not valid shell variable names. 1087 # Reject names that are not valid shell variable names.
1004 case $ac_envvar in #( 1088 case $ac_envvar in #(
1005 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1089 '' | [0-9]* | *[!_$as_cr_alnum]* )
1006 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1090 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1007 esac 1091 esac
1008 eval $ac_envvar=\$ac_optarg 1092 eval $ac_envvar=\$ac_optarg
1009 export $ac_envvar ;; 1093 export $ac_envvar ;;
1010 1094
1011 *) 1095 *)
1012 # FIXME: should be removed in autoconf 3.0. 1096 # FIXME: should be removed in autoconf 3.0.
1013 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1097 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1014 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1099 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1016 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1100 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1017 ;; 1101 ;;
1018 1102
1019 esac 1103 esac
1020done 1104done
1021 1105
1022if test -n "$ac_prev"; then 1106if test -n "$ac_prev"; then
1023 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1107 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1024 as_fn_error "missing argument to $ac_option" 1108 as_fn_error $? "missing argument to $ac_option"
1025fi 1109fi
1026 1110
1027if test -n "$ac_unrecognized_opts"; then 1111if test -n "$ac_unrecognized_opts"; then
1028 case $enable_option_checking in 1112 case $enable_option_checking in
1029 no) ;; 1113 no) ;;
1030 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1114 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1031 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1115 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1032 esac 1116 esac
1033fi 1117fi
1034 1118
1035# Check all directory arguments for consistency. 1119# Check all directory arguments for consistency.
1036for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1120for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1037 datadir sysconfdir sharedstatedir localstatedir includedir \ 1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1038 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1039 libdir localedir mandir 1123 libdir localedir mandir runstatedir
1040do 1124do
1041 eval ac_val=\$$ac_var 1125 eval ac_val=\$$ac_var
1042 # Remove trailing slashes. 1126 # Remove trailing slashes.
1043 case $ac_val in 1127 case $ac_val in
1044 */ ) 1128 */ )
1048 # Be sure to have absolute directory names. 1132 # Be sure to have absolute directory names.
1049 case $ac_val in 1133 case $ac_val in
1050 [\\/$]* | ?:[\\/]* ) continue;; 1134 [\\/$]* | ?:[\\/]* ) continue;;
1051 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1052 esac 1136 esac
1053 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1137 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1054done 1138done
1055 1139
1056# There might be people who depend on the old broken behavior: `$host' 1140# There might be people who depend on the old broken behavior: `$host'
1057# used to hold the argument of --host etc. 1141# used to hold the argument of --host etc.
1058# FIXME: To remove some day. 1142# FIXME: To remove some day.
1062 1146
1063# FIXME: To remove some day. 1147# FIXME: To remove some day.
1064if test "x$host_alias" != x; then 1148if test "x$host_alias" != x; then
1065 if test "x$build_alias" = x; then 1149 if test "x$build_alias" = x; then
1066 cross_compiling=maybe 1150 cross_compiling=maybe
1067 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1068 If a cross compiler is detected then cross compile mode will be used." >&2
1069 elif test "x$build_alias" != "x$host_alias"; then 1151 elif test "x$build_alias" != "x$host_alias"; then
1070 cross_compiling=yes 1152 cross_compiling=yes
1071 fi 1153 fi
1072fi 1154fi
1073 1155
1078 1160
1079 1161
1080ac_pwd=`pwd` && test -n "$ac_pwd" && 1162ac_pwd=`pwd` && test -n "$ac_pwd" &&
1081ac_ls_di=`ls -di .` && 1163ac_ls_di=`ls -di .` &&
1082ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1164ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1083 as_fn_error "working directory cannot be determined" 1165 as_fn_error $? "working directory cannot be determined"
1084test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1166test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1085 as_fn_error "pwd does not report name of working directory" 1167 as_fn_error $? "pwd does not report name of working directory"
1086 1168
1087 1169
1088# Find the source files, if location was not specified. 1170# Find the source files, if location was not specified.
1089if test -z "$srcdir"; then 1171if test -z "$srcdir"; then
1090 ac_srcdir_defaulted=yes 1172 ac_srcdir_defaulted=yes
1119else 1201else
1120 ac_srcdir_defaulted=no 1202 ac_srcdir_defaulted=no
1121fi 1203fi
1122if test ! -r "$srcdir/$ac_unique_file"; then 1204if test ! -r "$srcdir/$ac_unique_file"; then
1123 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1124 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1206 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1125fi 1207fi
1126ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1208ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1127ac_abs_confdir=`( 1209ac_abs_confdir=`(
1128 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1210 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1129 pwd)` 1211 pwd)`
1130# When building in place, set srcdir=. 1212# When building in place, set srcdir=.
1131if test "$ac_abs_confdir" = "$ac_pwd"; then 1213if test "$ac_abs_confdir" = "$ac_pwd"; then
1132 srcdir=. 1214 srcdir=.
1133fi 1215fi
1163Configuration: 1245Configuration:
1164 -h, --help display this help and exit 1246 -h, --help display this help and exit
1165 --help=short display options specific to this package 1247 --help=short display options specific to this package
1166 --help=recursive display the short help of all the included packages 1248 --help=recursive display the short help of all the included packages
1167 -V, --version display version information and exit 1249 -V, --version display version information and exit
1168 -q, --quiet, --silent do not print \`checking...' messages 1250 -q, --quiet, --silent do not print \`checking ...' messages
1169 --cache-file=FILE cache test results in FILE [disabled] 1251 --cache-file=FILE cache test results in FILE [disabled]
1170 -C, --config-cache alias for \`--cache-file=config.cache' 1252 -C, --config-cache alias for \`--cache-file=config.cache'
1171 -n, --no-create do not create output files 1253 -n, --no-create do not create output files
1172 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1173 1255
1189 --sbindir=DIR system admin executables [EPREFIX/sbin] 1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1190 --libexecdir=DIR program executables [EPREFIX/libexec] 1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1191 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1192 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1193 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1194 --libdir=DIR object code libraries [EPREFIX/lib] 1277 --libdir=DIR object code libraries [EPREFIX/lib]
1195 --includedir=DIR C header files [PREFIX/include] 1278 --includedir=DIR C header files [PREFIX/include]
1196 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1197 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1198 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1218 CC C compiler command 1301 CC C compiler command
1219 CFLAGS C compiler flags 1302 CFLAGS C compiler flags
1220 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1221 nonstandard directory <lib dir> 1304 nonstandard directory <lib dir>
1222 LIBS libraries to pass to the linker, e.g. -l<library> 1305 LIBS libraries to pass to the linker, e.g. -l<library>
1223 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1306 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1224 you have headers in a nonstandard directory <include dir> 1307 you have headers in a nonstandard directory <include dir>
1308 CPP C preprocessor
1225 1309
1226Use these variables to override the choices made by `configure' or to help 1310Use these variables to override the choices made by `configure' or to help
1227it to find libraries and programs with nonstandard names/locations. 1311it to find libraries and programs with nonstandard names/locations.
1228 1312
1229Report bugs to the package provider. 1313Report bugs to the package provider.
1288 1372
1289test -n "$ac_init_help" && exit $ac_status 1373test -n "$ac_init_help" && exit $ac_status
1290if $ac_init_version; then 1374if $ac_init_version; then
1291 cat <<\_ACEOF 1375 cat <<\_ACEOF
1292configure 1376configure
1293generated by GNU Autoconf 2.64 1377generated by GNU Autoconf 2.69
1294 1378
1295Copyright (C) 2009 Free Software Foundation, Inc. 1379Copyright (C) 2012 Free Software Foundation, Inc.
1296This configure script is free software; the Free Software Foundation 1380This configure script is free software; the Free Software Foundation
1297gives unlimited permission to copy, distribute and modify it. 1381gives unlimited permission to copy, distribute and modify it.
1298_ACEOF 1382_ACEOF
1299 exit 1383 exit
1300fi 1384fi
1334 $as_echo "$as_me: failed program was:" >&5 1418 $as_echo "$as_me: failed program was:" >&5
1335sed 's/^/| /' conftest.$ac_ext >&5 1419sed 's/^/| /' conftest.$ac_ext >&5
1336 1420
1337 ac_retval=1 1421 ac_retval=1
1338fi 1422fi
1339 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1340 return $ac_retval 1424 as_fn_set_status $ac_retval
1341 1425
1342} # ac_fn_c_try_compile 1426} # ac_fn_c_try_compile
1427
1428# ac_fn_c_try_cpp LINENO
1429# ----------------------
1430# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1431ac_fn_c_try_cpp ()
1432{
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 if { { ac_try="$ac_cpp conftest.$ac_ext"
1435case "(($ac_try" in
1436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1437 *) ac_try_echo=$ac_try;;
1438esac
1439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1440$as_echo "$ac_try_echo"; } >&5
1441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1442 ac_status=$?
1443 if test -s conftest.err; then
1444 grep -v '^ *+' conftest.err >conftest.er1
1445 cat conftest.er1 >&5
1446 mv -f conftest.er1 conftest.err
1447 fi
1448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1449 test $ac_status = 0; } > conftest.i && {
1450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1451 test ! -s conftest.err
1452 }; then :
1453 ac_retval=0
1454else
1455 $as_echo "$as_me: failed program was:" >&5
1456sed 's/^/| /' conftest.$ac_ext >&5
1457
1458 ac_retval=1
1459fi
1460 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1461 as_fn_set_status $ac_retval
1462
1463} # ac_fn_c_try_cpp
1464
1465# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1466# -------------------------------------------------------
1467# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1468# the include files in INCLUDES and setting the cache variable VAR
1469# accordingly.
1470ac_fn_c_check_header_mongrel ()
1471{
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 if eval \${$3+:} false; then :
1474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1475$as_echo_n "checking for $2... " >&6; }
1476if eval \${$3+:} false; then :
1477 $as_echo_n "(cached) " >&6
1478fi
1479eval ac_res=\$$3
1480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1481$as_echo "$ac_res" >&6; }
1482else
1483 # Is the header compilable?
1484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1485$as_echo_n "checking $2 usability... " >&6; }
1486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1487/* end confdefs.h. */
1488$4
1489#include <$2>
1490_ACEOF
1491if ac_fn_c_try_compile "$LINENO"; then :
1492 ac_header_compiler=yes
1493else
1494 ac_header_compiler=no
1495fi
1496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1498$as_echo "$ac_header_compiler" >&6; }
1499
1500# Is the header present?
1501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1502$as_echo_n "checking $2 presence... " >&6; }
1503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504/* end confdefs.h. */
1505#include <$2>
1506_ACEOF
1507if ac_fn_c_try_cpp "$LINENO"; then :
1508 ac_header_preproc=yes
1509else
1510 ac_header_preproc=no
1511fi
1512rm -f conftest.err conftest.i conftest.$ac_ext
1513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1514$as_echo "$ac_header_preproc" >&6; }
1515
1516# So? What about this header?
1517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1518 yes:no: )
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1520$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1522$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1523 ;;
1524 no:yes:* )
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1526$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1528$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1530$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1532$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1534$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1535 ;;
1536esac
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1538$as_echo_n "checking for $2... " >&6; }
1539if eval \${$3+:} false; then :
1540 $as_echo_n "(cached) " >&6
1541else
1542 eval "$3=\$ac_header_compiler"
1543fi
1544eval ac_res=\$$3
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1546$as_echo "$ac_res" >&6; }
1547fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549
1550} # ac_fn_c_check_header_mongrel
1551
1552# ac_fn_c_try_run LINENO
1553# ----------------------
1554# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1555# that executables *can* be run.
1556ac_fn_c_try_run ()
1557{
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_link"
1560case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_link") 2>&5
1567 ac_status=$?
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1570 { { case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_try") 2>&5
1577 ac_status=$?
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; }; }; then :
1580 ac_retval=0
1581else
1582 $as_echo "$as_me: program exited with status $ac_status" >&5
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=$ac_status
1587fi
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_run
1593
1594# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595# -------------------------------------------------------
1596# Tests whether HEADER exists and can be compiled using the include files in
1597# INCLUDES, setting the cache variable VAR accordingly.
1598ac_fn_c_check_header_compile ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602$as_echo_n "checking for $2... " >&6; }
1603if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1605else
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h. */
1608$4
1609#include <$2>
1610_ACEOF
1611if ac_fn_c_try_compile "$LINENO"; then :
1612 eval "$3=yes"
1613else
1614 eval "$3=no"
1615fi
1616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617fi
1618eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620$as_echo "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623} # ac_fn_c_check_header_compile
1343 1624
1344# ac_fn_c_try_link LINENO 1625# ac_fn_c_try_link LINENO
1345# ----------------------- 1626# -----------------------
1346# Try to link conftest.$ac_ext, and return whether this succeeded. 1627# Try to link conftest.$ac_ext, and return whether this succeeded.
1347ac_fn_c_try_link () 1628ac_fn_c_try_link ()
1366 test $ac_status = 0; } && { 1647 test $ac_status = 0; } && {
1367 test -z "$ac_c_werror_flag" || 1648 test -z "$ac_c_werror_flag" ||
1368 test ! -s conftest.err 1649 test ! -s conftest.err
1369 } && test -s conftest$ac_exeext && { 1650 } && test -s conftest$ac_exeext && {
1370 test "$cross_compiling" = yes || 1651 test "$cross_compiling" = yes ||
1371 $as_test_x conftest$ac_exeext 1652 test -x conftest$ac_exeext
1372 }; then : 1653 }; then :
1373 ac_retval=0 1654 ac_retval=0
1374else 1655else
1375 $as_echo "$as_me: failed program was:" >&5 1656 $as_echo "$as_me: failed program was:" >&5
1376sed 's/^/| /' conftest.$ac_ext >&5 1657sed 's/^/| /' conftest.$ac_ext >&5
1380 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1381 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1382 # interfere with the next link command; also delete a directory that is 1663 # interfere with the next link command; also delete a directory that is
1383 # left behind by Apple's compiler. We do this before executing the actions. 1664 # left behind by Apple's compiler. We do this before executing the actions.
1384 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1385 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1386 return $ac_retval 1667 as_fn_set_status $ac_retval
1387 1668
1388} # ac_fn_c_try_link 1669} # ac_fn_c_try_link
1389cat >config.log <<_ACEOF 1670cat >config.log <<_ACEOF
1390This file contains any messages produced by compilers while 1671This file contains any messages produced by compilers while
1391running configure, to aid debugging if configure makes a mistake. 1672running configure, to aid debugging if configure makes a mistake.
1392 1673
1393It was created by $as_me, which was 1674It was created by $as_me, which was
1394generated by GNU Autoconf 2.64. Invocation command line was 1675generated by GNU Autoconf 2.69. Invocation command line was
1395 1676
1396 $ $0 $@ 1677 $ $0 $@
1397 1678
1398_ACEOF 1679_ACEOF
1399exec 5>>config.log 1680exec 5>>config.log
1499trap 'exit_status=$? 1780trap 'exit_status=$?
1500 # Save into config.log some information that might help in debugging. 1781 # Save into config.log some information that might help in debugging.
1501 { 1782 {
1502 echo 1783 echo
1503 1784
1504 cat <<\_ASBOX
1505## ---------------- ## 1785 $as_echo "## ---------------- ##
1506## Cache variables. ## 1786## Cache variables. ##
1507## ---------------- ## 1787## ---------------- ##"
1508_ASBOX
1509 echo 1788 echo
1510 # The following way of writing the cache mishandles newlines in values, 1789 # The following way of writing the cache mishandles newlines in values,
1511( 1790(
1512 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1513 eval ac_val=\$$ac_var 1792 eval ac_val=\$$ac_var
1537 esac | 1816 esac |
1538 sort 1817 sort
1539) 1818)
1540 echo 1819 echo
1541 1820
1542 cat <<\_ASBOX
1543## ----------------- ## 1821 $as_echo "## ----------------- ##
1544## Output variables. ## 1822## Output variables. ##
1545## ----------------- ## 1823## ----------------- ##"
1546_ASBOX
1547 echo 1824 echo
1548 for ac_var in $ac_subst_vars 1825 for ac_var in $ac_subst_vars
1549 do 1826 do
1550 eval ac_val=\$$ac_var 1827 eval ac_val=\$$ac_var
1551 case $ac_val in 1828 case $ac_val in
1554 $as_echo "$ac_var='\''$ac_val'\''" 1831 $as_echo "$ac_var='\''$ac_val'\''"
1555 done | sort 1832 done | sort
1556 echo 1833 echo
1557 1834
1558 if test -n "$ac_subst_files"; then 1835 if test -n "$ac_subst_files"; then
1559 cat <<\_ASBOX
1560## ------------------- ## 1836 $as_echo "## ------------------- ##
1561## File substitutions. ## 1837## File substitutions. ##
1562## ------------------- ## 1838## ------------------- ##"
1563_ASBOX
1564 echo 1839 echo
1565 for ac_var in $ac_subst_files 1840 for ac_var in $ac_subst_files
1566 do 1841 do
1567 eval ac_val=\$$ac_var 1842 eval ac_val=\$$ac_var
1568 case $ac_val in 1843 case $ac_val in
1572 done | sort 1847 done | sort
1573 echo 1848 echo
1574 fi 1849 fi
1575 1850
1576 if test -s confdefs.h; then 1851 if test -s confdefs.h; then
1577 cat <<\_ASBOX 1852 $as_echo "## ----------- ##
1578## ----------- ##
1579## confdefs.h. ## 1853## confdefs.h. ##
1580## ----------- ## 1854## ----------- ##"
1581_ASBOX
1582 echo 1855 echo
1583 cat confdefs.h 1856 cat confdefs.h
1584 echo 1857 echo
1585 fi 1858 fi
1586 test "$ac_signal" != 0 && 1859 test "$ac_signal" != 0 &&
1631# Let the site file select an alternate cache file if it wants to. 1904# Let the site file select an alternate cache file if it wants to.
1632# Prefer an explicitly selected file to automatically selected ones. 1905# Prefer an explicitly selected file to automatically selected ones.
1633ac_site_file1=NONE 1906ac_site_file1=NONE
1634ac_site_file2=NONE 1907ac_site_file2=NONE
1635if test -n "$CONFIG_SITE"; then 1908if test -n "$CONFIG_SITE"; then
1909 # We do not want a PATH search for config.site.
1910 case $CONFIG_SITE in #((
1911 -*) ac_site_file1=./$CONFIG_SITE;;
1636 ac_site_file1=$CONFIG_SITE 1912 */*) ac_site_file1=$CONFIG_SITE;;
1913 *) ac_site_file1=./$CONFIG_SITE;;
1914 esac
1637elif test "x$prefix" != xNONE; then 1915elif test "x$prefix" != xNONE; then
1638 ac_site_file1=$prefix/share/config.site 1916 ac_site_file1=$prefix/share/config.site
1639 ac_site_file2=$prefix/etc/config.site 1917 ac_site_file2=$prefix/etc/config.site
1640else 1918else
1641 ac_site_file1=$ac_default_prefix/share/config.site 1919 ac_site_file1=$ac_default_prefix/share/config.site
1642 ac_site_file2=$ac_default_prefix/etc/config.site 1920 ac_site_file2=$ac_default_prefix/etc/config.site
1643fi 1921fi
1644for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1922for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1645do 1923do
1646 test "x$ac_site_file" = xNONE && continue 1924 test "x$ac_site_file" = xNONE && continue
1647 if test -r "$ac_site_file"; then 1925 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1649$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1927$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1650 sed 's/^/| /' "$ac_site_file" >&5 1928 sed 's/^/| /' "$ac_site_file" >&5
1651 . "$ac_site_file" 1929 . "$ac_site_file" \
1930 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1932as_fn_error $? "failed to load site script $ac_site_file
1933See \`config.log' for more details" "$LINENO" 5; }
1652 fi 1934 fi
1653done 1935done
1654 1936
1655if test -r "$cache_file"; then 1937if test -r "$cache_file"; then
1656 # Some versions of bash will fail to source /dev/null (special 1938 # Some versions of bash will fail to source /dev/null (special files
1657 # files actually), so we avoid doing that. 1939 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1658 if test -f "$cache_file"; then 1940 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1660$as_echo "$as_me: loading cache $cache_file" >&6;} 1942$as_echo "$as_me: loading cache $cache_file" >&6;}
1661 case $cache_file in 1943 case $cache_file in
1662 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1663 *) . "./$cache_file";; 1945 *) . "./$cache_file";;
1722if $ac_cache_corrupted; then 2004if $ac_cache_corrupted; then
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1726$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2008$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1727 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2009 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1728fi 2010fi
1729## -------------------- ## 2011## -------------------- ##
1730## Main body of script. ## 2012## Main body of script. ##
1731## -------------------- ## 2013## -------------------- ##
1732 2014
1737ac_compiler_gnu=$ac_cv_c_compiler_gnu 2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
1738 2020
1739 2021
1740 2022
1741ac_config_headers="$ac_config_headers libeio/config.h" 2023ac_config_headers="$ac_config_headers libeio/config.h"
2024
1742 2025
1743 2026
1744ac_ext=c 2027ac_ext=c
1745ac_cpp='$CPP $CPPFLAGS' 2028ac_cpp='$CPP $CPPFLAGS'
1746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1749if test -n "$ac_tool_prefix"; then 2032if test -n "$ac_tool_prefix"; then
1750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1751set dummy ${ac_tool_prefix}gcc; ac_word=$2 2034set dummy ${ac_tool_prefix}gcc; ac_word=$2
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1753$as_echo_n "checking for $ac_word... " >&6; } 2036$as_echo_n "checking for $ac_word... " >&6; }
1754if test "${ac_cv_prog_CC+set}" = set; then : 2037if ${ac_cv_prog_CC+:} false; then :
1755 $as_echo_n "(cached) " >&6 2038 $as_echo_n "(cached) " >&6
1756else 2039else
1757 if test -n "$CC"; then 2040 if test -n "$CC"; then
1758 ac_cv_prog_CC="$CC" # Let the user override the test. 2041 ac_cv_prog_CC="$CC" # Let the user override the test.
1759else 2042else
1761for as_dir in $PATH 2044for as_dir in $PATH
1762do 2045do
1763 IFS=$as_save_IFS 2046 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=. 2047 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do 2048 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 break 2 2052 break 2
1770 fi 2053 fi
1771done 2054done
1789 ac_ct_CC=$CC 2072 ac_ct_CC=$CC
1790 # Extract the first word of "gcc", so it can be a program name with args. 2073 # Extract the first word of "gcc", so it can be a program name with args.
1791set dummy gcc; ac_word=$2 2074set dummy gcc; ac_word=$2
1792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1793$as_echo_n "checking for $ac_word... " >&6; } 2076$as_echo_n "checking for $ac_word... " >&6; }
1794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2077if ${ac_cv_prog_ac_ct_CC+:} false; then :
1795 $as_echo_n "(cached) " >&6 2078 $as_echo_n "(cached) " >&6
1796else 2079else
1797 if test -n "$ac_ct_CC"; then 2080 if test -n "$ac_ct_CC"; then
1798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1799else 2082else
1801for as_dir in $PATH 2084for as_dir in $PATH
1802do 2085do
1803 IFS=$as_save_IFS 2086 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=. 2087 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do 2088 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_ac_ct_CC="gcc" 2090 ac_cv_prog_ac_ct_CC="gcc"
1808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2 2092 break 2
1810 fi 2093 fi
1811done 2094done
1842 if test -n "$ac_tool_prefix"; then 2125 if test -n "$ac_tool_prefix"; then
1843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1844set dummy ${ac_tool_prefix}cc; ac_word=$2 2127set dummy ${ac_tool_prefix}cc; ac_word=$2
1845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1846$as_echo_n "checking for $ac_word... " >&6; } 2129$as_echo_n "checking for $ac_word... " >&6; }
1847if test "${ac_cv_prog_CC+set}" = set; then : 2130if ${ac_cv_prog_CC+:} false; then :
1848 $as_echo_n "(cached) " >&6 2131 $as_echo_n "(cached) " >&6
1849else 2132else
1850 if test -n "$CC"; then 2133 if test -n "$CC"; then
1851 ac_cv_prog_CC="$CC" # Let the user override the test. 2134 ac_cv_prog_CC="$CC" # Let the user override the test.
1852else 2135else
1854for as_dir in $PATH 2137for as_dir in $PATH
1855do 2138do
1856 IFS=$as_save_IFS 2139 IFS=$as_save_IFS
1857 test -z "$as_dir" && as_dir=. 2140 test -z "$as_dir" && as_dir=.
1858 for ac_exec_ext in '' $ac_executable_extensions; do 2141 for ac_exec_ext in '' $ac_executable_extensions; do
1859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860 ac_cv_prog_CC="${ac_tool_prefix}cc" 2143 ac_cv_prog_CC="${ac_tool_prefix}cc"
1861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 break 2 2145 break 2
1863 fi 2146 fi
1864done 2147done
1882if test -z "$CC"; then 2165if test -z "$CC"; then
1883 # Extract the first word of "cc", so it can be a program name with args. 2166 # Extract the first word of "cc", so it can be a program name with args.
1884set dummy cc; ac_word=$2 2167set dummy cc; ac_word=$2
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1886$as_echo_n "checking for $ac_word... " >&6; } 2169$as_echo_n "checking for $ac_word... " >&6; }
1887if test "${ac_cv_prog_CC+set}" = set; then : 2170if ${ac_cv_prog_CC+:} false; then :
1888 $as_echo_n "(cached) " >&6 2171 $as_echo_n "(cached) " >&6
1889else 2172else
1890 if test -n "$CC"; then 2173 if test -n "$CC"; then
1891 ac_cv_prog_CC="$CC" # Let the user override the test. 2174 ac_cv_prog_CC="$CC" # Let the user override the test.
1892else 2175else
1895for as_dir in $PATH 2178for as_dir in $PATH
1896do 2179do
1897 IFS=$as_save_IFS 2180 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=. 2181 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do 2182 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1902 ac_prog_rejected=yes 2185 ac_prog_rejected=yes
1903 continue 2186 continue
1904 fi 2187 fi
1905 ac_cv_prog_CC="cc" 2188 ac_cv_prog_CC="cc"
1941 do 2224 do
1942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1943set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1945$as_echo_n "checking for $ac_word... " >&6; } 2228$as_echo_n "checking for $ac_word... " >&6; }
1946if test "${ac_cv_prog_CC+set}" = set; then : 2229if ${ac_cv_prog_CC+:} false; then :
1947 $as_echo_n "(cached) " >&6 2230 $as_echo_n "(cached) " >&6
1948else 2231else
1949 if test -n "$CC"; then 2232 if test -n "$CC"; then
1950 ac_cv_prog_CC="$CC" # Let the user override the test. 2233 ac_cv_prog_CC="$CC" # Let the user override the test.
1951else 2234else
1953for as_dir in $PATH 2236for as_dir in $PATH
1954do 2237do
1955 IFS=$as_save_IFS 2238 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=. 2239 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do 2240 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2 2244 break 2
1962 fi 2245 fi
1963done 2246done
1985do 2268do
1986 # Extract the first word of "$ac_prog", so it can be a program name with args. 2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
1987set dummy $ac_prog; ac_word=$2 2270set dummy $ac_prog; ac_word=$2
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1989$as_echo_n "checking for $ac_word... " >&6; } 2272$as_echo_n "checking for $ac_word... " >&6; }
1990if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2273if ${ac_cv_prog_ac_ct_CC+:} false; then :
1991 $as_echo_n "(cached) " >&6 2274 $as_echo_n "(cached) " >&6
1992else 2275else
1993 if test -n "$ac_ct_CC"; then 2276 if test -n "$ac_ct_CC"; then
1994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1995else 2278else
1997for as_dir in $PATH 2280for as_dir in $PATH
1998do 2281do
1999 IFS=$as_save_IFS 2282 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=. 2283 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do 2284 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003 ac_cv_prog_ac_ct_CC="$ac_prog" 2286 ac_cv_prog_ac_ct_CC="$ac_prog"
2004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2 2288 break 2
2006 fi 2289 fi
2007done 2290done
2039fi 2322fi
2040 2323
2041 2324
2042test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2325test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2044as_fn_error "no acceptable C compiler found in \$PATH 2327as_fn_error $? "no acceptable C compiler found in \$PATH
2045See \`config.log' for more details." "$LINENO" 5; } 2328See \`config.log' for more details" "$LINENO" 5; }
2046 2329
2047# Provide some information about the compiler. 2330# Provide some information about the compiler.
2048$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2331$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2049set X $ac_compile 2332set X $ac_compile
2050ac_compiler=$2 2333ac_compiler=$2
2061 if test -s conftest.err; then 2344 if test -s conftest.err; then
2062 sed '10a\ 2345 sed '10a\
2063... rest of stderr output deleted ... 2346... rest of stderr output deleted ...
2064 10q' conftest.err >conftest.er1 2347 10q' conftest.err >conftest.er1
2065 cat conftest.er1 >&5 2348 cat conftest.er1 >&5
2066 rm -f conftest.er1 conftest.err
2067 fi 2349 fi
2350 rm -f conftest.er1 conftest.err
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; } 2352 test $ac_status = 0; }
2070done 2353done
2071 2354
2072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h. */ 2356/* end confdefs.h. */
2074#include <stdio.h> 2357
2075int 2358int
2076main () 2359main ()
2077{ 2360{
2078FILE *f = fopen ("conftest.out", "w");
2079 return ferror (f) || fclose (f) != 0;
2080 2361
2081 ; 2362 ;
2082 return 0; 2363 return 0;
2083} 2364}
2084_ACEOF 2365_ACEOF
2085ac_clean_files_save=$ac_clean_files 2366ac_clean_files_save=$ac_clean_files
2086ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 2367ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2087# Try to create an executable without -o first, disregard a.out. 2368# Try to create an executable without -o first, disregard a.out.
2088# It will help us diagnose broken compilers, and finding out an intuition 2369# It will help us diagnose broken compilers, and finding out an intuition
2089# of exeext. 2370# of exeext.
2090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2091$as_echo_n "checking for C compiler default output file name... " >&6; } 2372$as_echo_n "checking whether the C compiler works... " >&6; }
2092ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2373ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 2374
2094# The possible output files: 2375# The possible output files:
2095ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2376ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2096 2377
2148test "$ac_cv_exeext" = no && ac_cv_exeext= 2429test "$ac_cv_exeext" = no && ac_cv_exeext=
2149 2430
2150else 2431else
2151 ac_file='' 2432 ac_file=''
2152fi 2433fi
2434if test -z "$ac_file"; then :
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2436$as_echo "no" >&6; }
2437$as_echo "$as_me: failed program was:" >&5
2438sed 's/^/| /' conftest.$ac_ext >&5
2439
2440{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442as_fn_error 77 "C compiler cannot create executables
2443See \`config.log' for more details" "$LINENO" 5; }
2444else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2446$as_echo "yes" >&6; }
2447fi
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2449$as_echo_n "checking for C compiler default output file name... " >&6; }
2153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2154$as_echo "$ac_file" >&6; } 2451$as_echo "$ac_file" >&6; }
2155if test -z "$ac_file"; then :
2156 $as_echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161{ as_fn_set_status 77
2162as_fn_error "C compiler cannot create executables
2163See \`config.log' for more details." "$LINENO" 5; }; }
2164fi
2165ac_exeext=$ac_cv_exeext 2452ac_exeext=$ac_cv_exeext
2166 2453
2167# Check that the compiler produces executables we can run. If not, either
2168# the compiler is broken, or we cross compile.
2169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2170$as_echo_n "checking whether the C compiler works... " >&6; }
2171# If not cross compiling, check that we can run a simple program.
2172if test "$cross_compiling" != yes; then
2173 if { ac_try='./$ac_file'
2174 { { case "(($ac_try" in
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2177esac
2178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2179$as_echo "$ac_try_echo"; } >&5
2180 (eval "$ac_try") 2>&5
2181 ac_status=$?
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; }; }; then
2184 cross_compiling=no
2185 else
2186 if test "$cross_compiling" = maybe; then
2187 cross_compiling=yes
2188 else
2189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191as_fn_error "cannot run C compiled programs.
2192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." "$LINENO" 5; }
2194 fi
2195 fi
2196fi
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2198$as_echo "yes" >&6; }
2199
2200rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 2454rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2201ac_clean_files=$ac_clean_files_save 2455ac_clean_files=$ac_clean_files_save
2202# Check that the compiler produces executables we can run. If not, either
2203# the compiler is broken, or we cross compile.
2204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2205$as_echo_n "checking whether we are cross compiling... " >&6; }
2206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2207$as_echo "$cross_compiling" >&6; }
2208
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2210$as_echo_n "checking for suffix of executables... " >&6; } 2457$as_echo_n "checking for suffix of executables... " >&6; }
2211if { { ac_try="$ac_link" 2458if { { ac_try="$ac_link"
2212case "(($ac_try" in 2459case "(($ac_try" in
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 esac 2480 esac
2234done 2481done
2235else 2482else
2236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238as_fn_error "cannot compute suffix of executables: cannot compile and link 2485as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2239See \`config.log' for more details." "$LINENO" 5; } 2486See \`config.log' for more details" "$LINENO" 5; }
2240fi 2487fi
2241rm -f conftest$ac_cv_exeext 2488rm -f conftest conftest$ac_cv_exeext
2242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2243$as_echo "$ac_cv_exeext" >&6; } 2490$as_echo "$ac_cv_exeext" >&6; }
2244 2491
2245rm -f conftest.$ac_ext 2492rm -f conftest.$ac_ext
2246EXEEXT=$ac_cv_exeext 2493EXEEXT=$ac_cv_exeext
2247ac_exeext=$EXEEXT 2494ac_exeext=$EXEEXT
2495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496/* end confdefs.h. */
2497#include <stdio.h>
2498int
2499main ()
2500{
2501FILE *f = fopen ("conftest.out", "w");
2502 return ferror (f) || fclose (f) != 0;
2503
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508ac_clean_files="$ac_clean_files conftest.out"
2509# Check that the compiler produces executables we can run. If not, either
2510# the compiler is broken, or we cross compile.
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2512$as_echo_n "checking whether we are cross compiling... " >&6; }
2513if test "$cross_compiling" != yes; then
2514 { { ac_try="$ac_link"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520$as_echo "$ac_try_echo"; } >&5
2521 (eval "$ac_link") 2>&5
2522 ac_status=$?
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; }
2525 if { ac_try='./conftest$ac_cv_exeext'
2526 { { case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2531$as_echo "$ac_try_echo"; } >&5
2532 (eval "$ac_try") 2>&5
2533 ac_status=$?
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; }; }; then
2536 cross_compiling=no
2537 else
2538 if test "$cross_compiling" = maybe; then
2539 cross_compiling=yes
2540 else
2541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543as_fn_error $? "cannot run C compiled programs.
2544If you meant to cross compile, use \`--host'.
2545See \`config.log' for more details" "$LINENO" 5; }
2546 fi
2547 fi
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2550$as_echo "$cross_compiling" >&6; }
2551
2552rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2553ac_clean_files=$ac_clean_files_save
2248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2249$as_echo_n "checking for suffix of object files... " >&6; } 2555$as_echo_n "checking for suffix of object files... " >&6; }
2250if test "${ac_cv_objext+set}" = set; then : 2556if ${ac_cv_objext+:} false; then :
2251 $as_echo_n "(cached) " >&6 2557 $as_echo_n "(cached) " >&6
2252else 2558else
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254/* end confdefs.h. */ 2560/* end confdefs.h. */
2255 2561
2285 $as_echo "$as_me: failed program was:" >&5 2591 $as_echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5 2592sed 's/^/| /' conftest.$ac_ext >&5
2287 2593
2288{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2594{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290as_fn_error "cannot compute suffix of object files: cannot compile 2596as_fn_error $? "cannot compute suffix of object files: cannot compile
2291See \`config.log' for more details." "$LINENO" 5; } 2597See \`config.log' for more details" "$LINENO" 5; }
2292fi 2598fi
2293rm -f conftest.$ac_cv_objext conftest.$ac_ext 2599rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294fi 2600fi
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2296$as_echo "$ac_cv_objext" >&6; } 2602$as_echo "$ac_cv_objext" >&6; }
2297OBJEXT=$ac_cv_objext 2603OBJEXT=$ac_cv_objext
2298ac_objext=$OBJEXT 2604ac_objext=$OBJEXT
2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2300$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2606$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2301if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2607if ${ac_cv_c_compiler_gnu+:} false; then :
2302 $as_echo_n "(cached) " >&6 2608 $as_echo_n "(cached) " >&6
2303else 2609else
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305/* end confdefs.h. */ 2611/* end confdefs.h. */
2306 2612
2333fi 2639fi
2334ac_test_CFLAGS=${CFLAGS+set} 2640ac_test_CFLAGS=${CFLAGS+set}
2335ac_save_CFLAGS=$CFLAGS 2641ac_save_CFLAGS=$CFLAGS
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2337$as_echo_n "checking whether $CC accepts -g... " >&6; } 2643$as_echo_n "checking whether $CC accepts -g... " >&6; }
2338if test "${ac_cv_prog_cc_g+set}" = set; then : 2644if ${ac_cv_prog_cc_g+:} false; then :
2339 $as_echo_n "(cached) " >&6 2645 $as_echo_n "(cached) " >&6
2340else 2646else
2341 ac_save_c_werror_flag=$ac_c_werror_flag 2647 ac_save_c_werror_flag=$ac_c_werror_flag
2342 ac_c_werror_flag=yes 2648 ac_c_werror_flag=yes
2343 ac_cv_prog_cc_g=no 2649 ac_cv_prog_cc_g=no
2411 CFLAGS= 2717 CFLAGS=
2412 fi 2718 fi
2413fi 2719fi
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2415$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2721$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2416if test "${ac_cv_prog_cc_c89+set}" = set; then : 2722if ${ac_cv_prog_cc_c89+:} false; then :
2417 $as_echo_n "(cached) " >&6 2723 $as_echo_n "(cached) " >&6
2418else 2724else
2419 ac_cv_prog_cc_c89=no 2725 ac_cv_prog_cc_c89=no
2420ac_save_CC=$CC 2726ac_save_CC=$CC
2421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422/* end confdefs.h. */ 2728/* end confdefs.h. */
2423#include <stdarg.h> 2729#include <stdarg.h>
2424#include <stdio.h> 2730#include <stdio.h>
2425#include <sys/types.h> 2731struct stat;
2426#include <sys/stat.h>
2427/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2732/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2428struct buf { int x; }; 2733struct buf { int x; };
2429FILE * (*rcsopen) (struct buf *, struct stat *, int); 2734FILE * (*rcsopen) (struct buf *, struct stat *, int);
2430static char *e (p, i) 2735static char *e (p, i)
2431 char **p; 2736 char **p;
2507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509ac_compiler_gnu=$ac_cv_c_compiler_gnu 2814ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 2815
2511 2816
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2823$as_echo_n "checking how to run the C preprocessor... " >&6; }
2824# On Suns, sometimes $CPP names a directory.
2825if test -n "$CPP" && test -d "$CPP"; then
2826 CPP=
2827fi
2828if test -z "$CPP"; then
2829 if ${ac_cv_prog_CPP+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831else
2832 # Double quotes because CPP needs to be expanded
2833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2834 do
2835 ac_preproc_ok=false
2836for ac_c_preproc_warn_flag in '' yes
2837do
2838 # Use a header file that comes with gcc, so configuring glibc
2839 # with a fresh cross-compiler works.
2840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2841 # <limits.h> exists even on freestanding compilers.
2842 # On the NeXT, cc -E runs the code through the compiler's parser,
2843 # not just through cpp. "Syntax error" is here to catch this case.
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846#ifdef __STDC__
2847# include <limits.h>
2848#else
2849# include <assert.h>
2850#endif
2851 Syntax error
2852_ACEOF
2853if ac_fn_c_try_cpp "$LINENO"; then :
2854
2855else
2856 # Broken: fails on valid input.
2857continue
2858fi
2859rm -f conftest.err conftest.i conftest.$ac_ext
2860
2861 # OK, works on sane cases. Now check whether nonexistent headers
2862 # can be detected and how.
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h. */
2865#include <ac_nonexistent.h>
2866_ACEOF
2867if ac_fn_c_try_cpp "$LINENO"; then :
2868 # Broken: success on invalid input.
2869continue
2870else
2871 # Passes both tests.
2872ac_preproc_ok=:
2873break
2874fi
2875rm -f conftest.err conftest.i conftest.$ac_ext
2876
2877done
2878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2879rm -f conftest.i conftest.err conftest.$ac_ext
2880if $ac_preproc_ok; then :
2881 break
2882fi
2883
2884 done
2885 ac_cv_prog_CPP=$CPP
2886
2887fi
2888 CPP=$ac_cv_prog_CPP
2889else
2890 ac_cv_prog_CPP=$CPP
2891fi
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2893$as_echo "$CPP" >&6; }
2894ac_preproc_ok=false
2895for ac_c_preproc_warn_flag in '' yes
2896do
2897 # Use a header file that comes with gcc, so configuring glibc
2898 # with a fresh cross-compiler works.
2899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900 # <limits.h> exists even on freestanding compilers.
2901 # On the NeXT, cc -E runs the code through the compiler's parser,
2902 # not just through cpp. "Syntax error" is here to catch this case.
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h. */
2905#ifdef __STDC__
2906# include <limits.h>
2907#else
2908# include <assert.h>
2909#endif
2910 Syntax error
2911_ACEOF
2912if ac_fn_c_try_cpp "$LINENO"; then :
2913
2914else
2915 # Broken: fails on valid input.
2916continue
2917fi
2918rm -f conftest.err conftest.i conftest.$ac_ext
2919
2920 # OK, works on sane cases. Now check whether nonexistent headers
2921 # can be detected and how.
2922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2923/* end confdefs.h. */
2924#include <ac_nonexistent.h>
2925_ACEOF
2926if ac_fn_c_try_cpp "$LINENO"; then :
2927 # Broken: success on invalid input.
2928continue
2929else
2930 # Passes both tests.
2931ac_preproc_ok=:
2932break
2933fi
2934rm -f conftest.err conftest.i conftest.$ac_ext
2935
2936done
2937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2938rm -f conftest.i conftest.err conftest.$ac_ext
2939if $ac_preproc_ok; then :
2940
2941else
2942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2945See \`config.log' for more details" "$LINENO" 5; }
2946fi
2947
2948ac_ext=c
2949ac_cpp='$CPP $CPPFLAGS'
2950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2956$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2957if ${ac_cv_path_GREP+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959else
2960 if test -z "$GREP"; then
2961 ac_path_GREP_found=false
2962 # Loop through the user's path and test for each of PROGNAME-LIST
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_prog in grep ggrep; do
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2971 as_fn_executable_p "$ac_path_GREP" || continue
2972# Check for GNU ac_path_GREP and select it if it is found.
2973 # Check for GNU $ac_path_GREP
2974case `"$ac_path_GREP" --version 2>&1` in
2975*GNU*)
2976 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2977*)
2978 ac_count=0
2979 $as_echo_n 0123456789 >"conftest.in"
2980 while :
2981 do
2982 cat "conftest.in" "conftest.in" >"conftest.tmp"
2983 mv "conftest.tmp" "conftest.in"
2984 cp "conftest.in" "conftest.nl"
2985 $as_echo 'GREP' >> "conftest.nl"
2986 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2988 as_fn_arith $ac_count + 1 && ac_count=$as_val
2989 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2990 # Best one so far, save it but keep looking for a better one
2991 ac_cv_path_GREP="$ac_path_GREP"
2992 ac_path_GREP_max=$ac_count
2993 fi
2994 # 10*(2^10) chars as input seems more than enough
2995 test $ac_count -gt 10 && break
2996 done
2997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2998esac
2999
3000 $ac_path_GREP_found && break 3
3001 done
3002 done
3003 done
3004IFS=$as_save_IFS
3005 if test -z "$ac_cv_path_GREP"; then
3006 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3007 fi
3008else
3009 ac_cv_path_GREP=$GREP
3010fi
3011
3012fi
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3014$as_echo "$ac_cv_path_GREP" >&6; }
3015 GREP="$ac_cv_path_GREP"
3016
3017
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3019$as_echo_n "checking for egrep... " >&6; }
3020if ${ac_cv_path_EGREP+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022else
3023 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3024 then ac_cv_path_EGREP="$GREP -E"
3025 else
3026 if test -z "$EGREP"; then
3027 ac_path_EGREP_found=false
3028 # Loop through the user's path and test for each of PROGNAME-LIST
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_prog in egrep; do
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3037 as_fn_executable_p "$ac_path_EGREP" || continue
3038# Check for GNU ac_path_EGREP and select it if it is found.
3039 # Check for GNU $ac_path_EGREP
3040case `"$ac_path_EGREP" --version 2>&1` in
3041*GNU*)
3042 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3043*)
3044 ac_count=0
3045 $as_echo_n 0123456789 >"conftest.in"
3046 while :
3047 do
3048 cat "conftest.in" "conftest.in" >"conftest.tmp"
3049 mv "conftest.tmp" "conftest.in"
3050 cp "conftest.in" "conftest.nl"
3051 $as_echo 'EGREP' >> "conftest.nl"
3052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3054 as_fn_arith $ac_count + 1 && ac_count=$as_val
3055 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3056 # Best one so far, save it but keep looking for a better one
3057 ac_cv_path_EGREP="$ac_path_EGREP"
3058 ac_path_EGREP_max=$ac_count
3059 fi
3060 # 10*(2^10) chars as input seems more than enough
3061 test $ac_count -gt 10 && break
3062 done
3063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3064esac
3065
3066 $ac_path_EGREP_found && break 3
3067 done
3068 done
3069 done
3070IFS=$as_save_IFS
3071 if test -z "$ac_cv_path_EGREP"; then
3072 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3073 fi
3074else
3075 ac_cv_path_EGREP=$EGREP
3076fi
3077
3078 fi
3079fi
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3081$as_echo "$ac_cv_path_EGREP" >&6; }
3082 EGREP="$ac_cv_path_EGREP"
3083
3084
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3086$as_echo_n "checking for ANSI C header files... " >&6; }
3087if ${ac_cv_header_stdc+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089else
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091/* end confdefs.h. */
3092#include <stdlib.h>
3093#include <stdarg.h>
3094#include <string.h>
3095#include <float.h>
3096
3097int
3098main ()
3099{
3100
3101 ;
3102 return 0;
3103}
3104_ACEOF
3105if ac_fn_c_try_compile "$LINENO"; then :
3106 ac_cv_header_stdc=yes
3107else
3108 ac_cv_header_stdc=no
3109fi
3110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111
3112if test $ac_cv_header_stdc = yes; then
3113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115/* end confdefs.h. */
3116#include <string.h>
3117
3118_ACEOF
3119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3120 $EGREP "memchr" >/dev/null 2>&1; then :
3121
3122else
3123 ac_cv_header_stdc=no
3124fi
3125rm -f conftest*
3126
3127fi
3128
3129if test $ac_cv_header_stdc = yes; then
3130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132/* end confdefs.h. */
3133#include <stdlib.h>
3134
3135_ACEOF
3136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3137 $EGREP "free" >/dev/null 2>&1; then :
3138
3139else
3140 ac_cv_header_stdc=no
3141fi
3142rm -f conftest*
3143
3144fi
3145
3146if test $ac_cv_header_stdc = yes; then
3147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3148 if test "$cross_compiling" = yes; then :
3149 :
3150else
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152/* end confdefs.h. */
3153#include <ctype.h>
3154#include <stdlib.h>
3155#if ((' ' & 0x0FF) == 0x020)
3156# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3157# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3158#else
3159# define ISLOWER(c) \
3160 (('a' <= (c) && (c) <= 'i') \
3161 || ('j' <= (c) && (c) <= 'r') \
3162 || ('s' <= (c) && (c) <= 'z'))
3163# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3164#endif
3165
3166#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3167int
3168main ()
3169{
3170 int i;
3171 for (i = 0; i < 256; i++)
3172 if (XOR (islower (i), ISLOWER (i))
3173 || toupper (i) != TOUPPER (i))
3174 return 2;
3175 return 0;
3176}
3177_ACEOF
3178if ac_fn_c_try_run "$LINENO"; then :
3179
3180else
3181 ac_cv_header_stdc=no
3182fi
3183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3184 conftest.$ac_objext conftest.beam conftest.$ac_ext
3185fi
3186
3187fi
3188fi
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3190$as_echo "$ac_cv_header_stdc" >&6; }
3191if test $ac_cv_header_stdc = yes; then
3192
3193$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3194
3195fi
3196
3197# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3198for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3199 inttypes.h stdint.h unistd.h
3200do :
3201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3202ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3203"
3204if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3205 cat >>confdefs.h <<_ACEOF
3206#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3207_ACEOF
3208
3209fi
3210
3211done
3212
3213
3214
3215 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3216if test "x$ac_cv_header_minix_config_h" = xyes; then :
3217 MINIX=yes
3218else
3219 MINIX=
3220fi
3221
3222
3223 if test "$MINIX" = yes; then
3224
3225$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3226
3227
3228$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3229
3230
3231$as_echo "#define _MINIX 1" >>confdefs.h
3232
3233 fi
3234
3235
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3237$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3238if ${ac_cv_safe_to_define___extensions__+:} false; then :
3239 $as_echo_n "(cached) " >&6
3240else
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h. */
3243
3244# define __EXTENSIONS__ 1
3245 $ac_includes_default
3246int
3247main ()
3248{
3249
3250 ;
3251 return 0;
3252}
3253_ACEOF
3254if ac_fn_c_try_compile "$LINENO"; then :
3255 ac_cv_safe_to_define___extensions__=yes
3256else
3257 ac_cv_safe_to_define___extensions__=no
3258fi
3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260fi
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3262$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3263 test $ac_cv_safe_to_define___extensions__ = yes &&
3264 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3265
3266 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3267
3268 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3269
3270 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3271
3272 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3273
3274
3275
3276ac_ext=c
3277ac_cpp='$CPP $CPPFLAGS'
3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3283set dummy ${ac_tool_prefix}gcc; ac_word=$2
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285$as_echo_n "checking for $ac_word... " >&6; }
3286if ${ac_cv_prog_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291else
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303done
3304 done
3305IFS=$as_save_IFS
3306
3307fi
3308fi
3309CC=$ac_cv_prog_CC
3310if test -n "$CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312$as_echo "$CC" >&6; }
3313else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315$as_echo "no" >&6; }
3316fi
3317
3318
3319fi
3320if test -z "$ac_cv_prog_CC"; then
3321 ac_ct_CC=$CC
3322 # Extract the first word of "gcc", so it can be a program name with args.
3323set dummy gcc; ac_word=$2
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325$as_echo_n "checking for $ac_word... " >&6; }
3326if ${ac_cv_prog_ac_ct_CC+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328else
3329 if test -n "$ac_ct_CC"; then
3330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331else
3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_ac_ct_CC="gcc"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343done
3344 done
3345IFS=$as_save_IFS
3346
3347fi
3348fi
3349ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350if test -n "$ac_ct_CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352$as_echo "$ac_ct_CC" >&6; }
3353else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
3356fi
3357
3358 if test "x$ac_ct_CC" = x; then
3359 CC=""
3360 else
3361 case $cross_compiling:$ac_tool_warned in
3362yes:)
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365ac_tool_warned=yes ;;
3366esac
3367 CC=$ac_ct_CC
3368 fi
3369else
3370 CC="$ac_cv_prog_CC"
3371fi
3372
3373if test -z "$CC"; then
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3376set dummy ${ac_tool_prefix}cc; ac_word=$2
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
3379if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="${ac_tool_prefix}cc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397 done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402CC=$ac_cv_prog_CC
3403if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405$as_echo "$CC" >&6; }
3406else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411
3412 fi
3413fi
3414if test -z "$CC"; then
3415 # Extract the first word of "cc", so it can be a program name with args.
3416set dummy cc; ac_word=$2
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418$as_echo_n "checking for $ac_word... " >&6; }
3419if ${ac_cv_prog_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421else
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424else
3425 ac_prog_rejected=no
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3434 ac_prog_rejected=yes
3435 continue
3436 fi
3437 ac_cv_prog_CC="cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441done
3442 done
3443IFS=$as_save_IFS
3444
3445if test $ac_prog_rejected = yes; then
3446 # We found a bogon in the path, so make sure we never use it.
3447 set dummy $ac_cv_prog_CC
3448 shift
3449 if test $# != 0; then
3450 # We chose a different compiler from the bogus one.
3451 # However, it has the same basename, so the bogon will be chosen
3452 # first if we set CC to just the basename; use the full file name.
3453 shift
3454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3455 fi
3456fi
3457fi
3458fi
3459CC=$ac_cv_prog_CC
3460if test -n "$CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462$as_echo "$CC" >&6; }
3463else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466fi
3467
3468
3469fi
3470if test -z "$CC"; then
3471 if test -n "$ac_tool_prefix"; then
3472 for ac_prog in cl.exe
3473 do
3474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3475set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477$as_echo_n "checking for $ac_word... " >&6; }
3478if ${ac_cv_prog_CC+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495done
3496 done
3497IFS=$as_save_IFS
3498
3499fi
3500fi
3501CC=$ac_cv_prog_CC
3502if test -n "$CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504$as_echo "$CC" >&6; }
3505else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507$as_echo "no" >&6; }
3508fi
3509
3510
3511 test -n "$CC" && break
3512 done
3513fi
3514if test -z "$CC"; then
3515 ac_ct_CC=$CC
3516 for ac_prog in cl.exe
3517do
3518 # Extract the first word of "$ac_prog", so it can be a program name with args.
3519set dummy $ac_prog; ac_word=$2
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521$as_echo_n "checking for $ac_word... " >&6; }
3522if ${ac_cv_prog_ac_ct_CC+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524else
3525 if test -n "$ac_ct_CC"; then
3526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_ac_ct_CC="$ac_prog"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539done
3540 done
3541IFS=$as_save_IFS
3542
3543fi
3544fi
3545ac_ct_CC=$ac_cv_prog_ac_ct_CC
3546if test -n "$ac_ct_CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3548$as_echo "$ac_ct_CC" >&6; }
3549else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551$as_echo "no" >&6; }
3552fi
3553
3554
3555 test -n "$ac_ct_CC" && break
3556done
3557
3558 if test "x$ac_ct_CC" = x; then
3559 CC=""
3560 else
3561 case $cross_compiling:$ac_tool_warned in
3562yes:)
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565ac_tool_warned=yes ;;
3566esac
3567 CC=$ac_ct_CC
3568 fi
3569fi
3570
3571fi
3572
3573
3574test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576as_fn_error $? "no acceptable C compiler found in \$PATH
3577See \`config.log' for more details" "$LINENO" 5; }
3578
3579# Provide some information about the compiler.
3580$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3581set X $ac_compile
3582ac_compiler=$2
3583for ac_option in --version -v -V -qversion; do
3584 { { ac_try="$ac_compiler $ac_option >&5"
3585case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588esac
3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590$as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3592 ac_status=$?
3593 if test -s conftest.err; then
3594 sed '10a\
3595... rest of stderr output deleted ...
3596 10q' conftest.err >conftest.er1
3597 cat conftest.er1 >&5
3598 fi
3599 rm -f conftest.er1 conftest.err
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }
3602done
3603
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3605$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3606if ${ac_cv_c_compiler_gnu+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608else
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610/* end confdefs.h. */
3611
3612int
3613main ()
3614{
3615#ifndef __GNUC__
3616 choke me
3617#endif
3618
3619 ;
3620 return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"; then :
3624 ac_compiler_gnu=yes
3625else
3626 ac_compiler_gnu=no
3627fi
3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629ac_cv_c_compiler_gnu=$ac_compiler_gnu
3630
3631fi
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3633$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3634if test $ac_compiler_gnu = yes; then
3635 GCC=yes
3636else
3637 GCC=
3638fi
3639ac_test_CFLAGS=${CFLAGS+set}
3640ac_save_CFLAGS=$CFLAGS
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3642$as_echo_n "checking whether $CC accepts -g... " >&6; }
3643if ${ac_cv_prog_cc_g+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645else
3646 ac_save_c_werror_flag=$ac_c_werror_flag
3647 ac_c_werror_flag=yes
3648 ac_cv_prog_cc_g=no
3649 CFLAGS="-g"
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651/* end confdefs.h. */
3652
3653int
3654main ()
3655{
3656
3657 ;
3658 return 0;
3659}
3660_ACEOF
3661if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_prog_cc_g=yes
3663else
3664 CFLAGS=""
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h. */
3667
3668int
3669main ()
3670{
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676if ac_fn_c_try_compile "$LINENO"; then :
3677
3678else
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3680 CFLAGS="-g"
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h. */
3683
3684int
3685main ()
3686{
3687
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_prog_cc_g=yes
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696fi
3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698fi
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3701fi
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3703$as_echo "$ac_cv_prog_cc_g" >&6; }
3704if test "$ac_test_CFLAGS" = set; then
3705 CFLAGS=$ac_save_CFLAGS
3706elif test $ac_cv_prog_cc_g = yes; then
3707 if test "$GCC" = yes; then
3708 CFLAGS="-g -O2"
3709 else
3710 CFLAGS="-g"
3711 fi
3712else
3713 if test "$GCC" = yes; then
3714 CFLAGS="-O2"
3715 else
3716 CFLAGS=
3717 fi
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3720$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3721if ${ac_cv_prog_cc_c89+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723else
3724 ac_cv_prog_cc_c89=no
3725ac_save_CC=$CC
3726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727/* end confdefs.h. */
3728#include <stdarg.h>
3729#include <stdio.h>
3730struct stat;
3731/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3732struct buf { int x; };
3733FILE * (*rcsopen) (struct buf *, struct stat *, int);
3734static char *e (p, i)
3735 char **p;
3736 int i;
3737{
3738 return p[i];
3739}
3740static char *f (char * (*g) (char **, int), char **p, ...)
3741{
3742 char *s;
3743 va_list v;
3744 va_start (v,p);
3745 s = g (p, va_arg (v,int));
3746 va_end (v);
3747 return s;
3748}
3749
3750/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3751 function prototypes and stuff, but not '\xHH' hex character constants.
3752 These don't provoke an error unfortunately, instead are silently treated
3753 as 'x'. The following induces an error, until -std is added to get
3754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3755 array size at least. It's necessary to write '\x00'==0 to get something
3756 that's true only with -std. */
3757int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3758
3759/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3760 inside strings and character constants. */
3761#define FOO(x) 'x'
3762int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3763
3764int test (int i, double x);
3765struct s1 {int (*f) (int a);};
3766struct s2 {int (*f) (double a);};
3767int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3768int argc;
3769char **argv;
3770int
3771main ()
3772{
3773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3780do
3781 CC="$ac_save_CC $ac_arg"
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_cv_prog_cc_c89=$ac_arg
3784fi
3785rm -f core conftest.err conftest.$ac_objext
3786 test "x$ac_cv_prog_cc_c89" != "xno" && break
3787done
3788rm -f conftest.$ac_ext
3789CC=$ac_save_CC
3790
3791fi
3792# AC_CACHE_VAL
3793case "x$ac_cv_prog_cc_c89" in
3794 x)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3796$as_echo "none needed" >&6; } ;;
3797 xno)
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3799$as_echo "unsupported" >&6; } ;;
3800 *)
3801 CC="$CC $ac_cv_prog_cc_c89"
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3803$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3804esac
3805if test "x$ac_cv_prog_cc_c89" != xno; then :
3806
3807fi
3808
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
3815
3816for ac_header in stdint.h sys/syscall.h sys/prctl.h
3817do :
3818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3819ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3820if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3821 cat >>confdefs.h <<_ACEOF
3822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823_ACEOF
3824
3825fi
3826
3827done
3828
2512 3829
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
2514$as_echo_n "checking for library containing pthread_create... " >&6; } 3831$as_echo_n "checking for library containing pthread_create... " >&6; }
2515if test "${ac_cv_search_pthread_create+set}" = set; then : 3832if ${ac_cv_search_pthread_create+:} false; then :
2516 $as_echo_n "(cached) " >&6 3833 $as_echo_n "(cached) " >&6
2517else 3834else
2518 ac_func_search_save_LIBS=$LIBS 3835 ac_func_search_save_LIBS=$LIBS
2519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h. */ 3837/* end confdefs.h. */
2544 if ac_fn_c_try_link "$LINENO"; then : 3861 if ac_fn_c_try_link "$LINENO"; then :
2545 ac_cv_search_pthread_create=$ac_res 3862 ac_cv_search_pthread_create=$ac_res
2546fi 3863fi
2547rm -f core conftest.err conftest.$ac_objext \ 3864rm -f core conftest.err conftest.$ac_objext \
2548 conftest$ac_exeext 3865 conftest$ac_exeext
2549 if test "${ac_cv_search_pthread_create+set}" = set; then : 3866 if ${ac_cv_search_pthread_create+:} false; then :
2550 break 3867 break
2551fi 3868fi
2552done 3869done
2553if test "${ac_cv_search_pthread_create+set}" = set; then : 3870if ${ac_cv_search_pthread_create+:} false; then :
2554 3871
2555else 3872else
2556 ac_cv_search_pthread_create=no 3873 ac_cv_search_pthread_create=no
2557fi 3874fi
2558rm conftest.$ac_ext 3875rm conftest.$ac_ext
2563ac_res=$ac_cv_search_pthread_create 3880ac_res=$ac_cv_search_pthread_create
2564if test "$ac_res" != no; then : 3881if test "$ac_res" != no; then :
2565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2566 3883
2567else 3884else
2568 as_fn_error "pthread functions not found" "$LINENO" 5 3885 as_fn_error $? "pthread functions not found" "$LINENO" 5
2569 3886
2570fi 3887fi
3888
3889
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5
3891$as_echo_n "checking for utimes... " >&6; }
3892if ${ac_cv_utimes+:} false; then :
3893 $as_echo_n "(cached) " >&6
3894else
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h. */
3897
3898#include <sys/types.h>
3899#include <sys/time.h>
3900#include <utime.h>
3901struct timeval tv[2];
3902int res;
3903int main (void)
3904{
3905 res = utimes ("/", tv);
3906 return 0;
3907}
3908
3909_ACEOF
3910if ac_fn_c_try_link "$LINENO"; then :
3911 ac_cv_utimes=yes
3912else
3913 ac_cv_utimes=no
3914fi
3915rm -f core conftest.err conftest.$ac_objext \
3916 conftest$ac_exeext conftest.$ac_ext
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5
3919$as_echo "$ac_cv_utimes" >&6; }
3920test $ac_cv_utimes = yes &&
3921$as_echo "#define HAVE_UTIMES 1" >>confdefs.h
2571 3922
2572 3923
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5
2574$as_echo_n "checking for futimes... " >&6; } 3925$as_echo_n "checking for futimes... " >&6; }
2575if test "${ac_cv_futimes+set}" = set; then : 3926if ${ac_cv_futimes+:} false; then :
2576 $as_echo_n "(cached) " >&6 3927 $as_echo_n "(cached) " >&6
2577else 3928else
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579/* end confdefs.h. */ 3930/* end confdefs.h. */
2580 3931
2582#include <sys/time.h> 3933#include <sys/time.h>
2583#include <utime.h> 3934#include <utime.h>
2584struct timeval tv[2]; 3935struct timeval tv[2];
2585int res; 3936int res;
2586int fd; 3937int fd;
2587int main(void) 3938int main (void)
2588{ 3939{
2589 res = futimes (fd, tv); 3940 res = futimes (fd, tv);
2590 return 0; 3941 return 0;
2591} 3942}
2592 3943
2605$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h 3956$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h
2606 3957
2607 3958
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5
2609$as_echo_n "checking for readahead... " >&6; } 3960$as_echo_n "checking for readahead... " >&6; }
2610if test "${ac_cv_readahead+set}" = set; then : 3961if ${ac_cv_readahead+:} false; then :
2611 $as_echo_n "(cached) " >&6 3962 $as_echo_n "(cached) " >&6
2612else 3963else
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614/* end confdefs.h. */ 3965/* end confdefs.h. */
2615 3966
2616#include <fcntl.h> 3967#include <fcntl.h>
2617int main(void) 3968int main (void)
2618{ 3969{
2619 int fd = 0; 3970 int fd = 0;
2620 size_t count = 2; 3971 size_t count = 2;
2621 ssize_t res; 3972 ssize_t res;
2622 res = readahead (fd, 0, count); 3973 res = readahead (fd, 0, count);
2638$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h 3989$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h
2639 3990
2640 3991
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
2642$as_echo_n "checking for fdatasync... " >&6; } 3993$as_echo_n "checking for fdatasync... " >&6; }
2643if test "${ac_cv_fdatasync+set}" = set; then : 3994if ${ac_cv_fdatasync+:} false; then :
2644 $as_echo_n "(cached) " >&6 3995 $as_echo_n "(cached) " >&6
2645else 3996else
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h. */ 3998/* end confdefs.h. */
2648 3999
2649#include <unistd.h> 4000#include <unistd.h>
2650int main(void) 4001int main (void)
2651{ 4002{
2652 int fd = 0; 4003 int fd = 0;
2653 fdatasync (fd); 4004 fdatasync (fd);
2654 return 0; 4005 return 0;
2655} 4006}
2667$as_echo "$ac_cv_fdatasync" >&6; } 4018$as_echo "$ac_cv_fdatasync" >&6; }
2668test $ac_cv_fdatasync = yes && 4019test $ac_cv_fdatasync = yes &&
2669$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 4020$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
2670 4021
2671 4022
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread and pwrite" >&5
2673$as_echo_n "checking for pread and pwrite... " >&6; }
2674if test "${ac_cv_preadwrite+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678/* end confdefs.h. */
2679
2680#include <unistd.h>
2681int main(void)
2682{
2683 int fd = 0;
2684 size_t count = 1;
2685 char buf;
2686 off_t offset = 1;
2687 ssize_t res;
2688 res = pread (fd, &buf, count, offset);
2689 res = pwrite (fd, &buf, count, offset);
2690 return 0;
2691}
2692
2693_ACEOF
2694if ac_fn_c_try_link "$LINENO"; then :
2695 ac_cv_preadwrite=yes
2696else
2697 ac_cv_preadwrite=no
2698fi
2699rm -f core conftest.err conftest.$ac_objext \
2700 conftest$ac_exeext conftest.$ac_ext
2701fi
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_preadwrite" >&5
2703$as_echo "$ac_cv_preadwrite" >&6; }
2704test $ac_cv_preadwrite = yes &&
2705$as_echo "#define HAVE_PREADWRITE 1" >>confdefs.h
2706
2707
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5
2709$as_echo_n "checking for sendfile... " >&6; } 4024$as_echo_n "checking for sendfile... " >&6; }
2710if test "${ac_cv_sendfile+set}" = set; then : 4025if ${ac_cv_sendfile+:} false; then :
2711 $as_echo_n "(cached) " >&6 4026 $as_echo_n "(cached) " >&6
2712else 4027else
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h. */ 4029/* end confdefs.h. */
2715 4030
2716# include <sys/types.h> 4031# include <sys/types.h>
2717#if __linux 4032#if __linux
2718# include <sys/sendfile.h> 4033# include <sys/sendfile.h>
2719#elif __freebsd || defined (__APPLE__) 4034#elif __FreeBSD__ || defined __APPLE__
2720# include <sys/socket.h> 4035# include <sys/socket.h>
2721# include <sys/uio.h> 4036# include <sys/uio.h>
2722#elif __hpux 4037#elif __hpux
2723# include <sys/socket.h> 4038# include <sys/socket.h>
2724#else 4039#else
2725# error unsupported architecture 4040# error unsupported architecture
2726#endif 4041#endif
2727int main(void) 4042int main (void)
2728{ 4043{
2729 int fd = 0; 4044 int fd = 0;
2730 off_t offset = 1; 4045 off_t offset = 1;
2731 size_t count = 2; 4046 size_t count = 2;
2732 ssize_t res; 4047 ssize_t res;
2733#if __linux 4048#if __linux
2734 res = sendfile (fd, fd, offset, count); 4049 res = sendfile (fd, fd, &offset, count);
2735#elif __freebsd 4050#elif __FreeBSD__
2736 res = sendfile (fd, fd, offset, count, 0, &offset, 0); 4051 res = sendfile (fd, fd, offset, count, 0, &offset, 0);
2737#elif __hpux 4052#elif __hpux
2738 res = sendfile (fd, fd, offset, count, 0, 0); 4053 res = sendfile (fd, fd, offset, count, 0, 0);
2739#endif 4054#endif
2740 return 0; 4055 return 0;
2755$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h 4070$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h
2756 4071
2757 4072
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5
2759$as_echo_n "checking for sync_file_range... " >&6; } 4074$as_echo_n "checking for sync_file_range... " >&6; }
2760if test "${ac_cv_sync_file_range+set}" = set; then : 4075if ${ac_cv_sync_file_range+:} false; then :
2761 $as_echo_n "(cached) " >&6 4076 $as_echo_n "(cached) " >&6
2762else 4077else
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764/* end confdefs.h. */ 4079/* end confdefs.h. */
2765 4080
2766#include <fcntl.h> 4081#include <fcntl.h>
2767int main(void) 4082int main (void)
2768{ 4083{
2769 int fd = 0; 4084 int fd = 0;
2770 off64_t offset = 1; 4085 off64_t offset = 1;
2771 off64_t nbytes = 1; 4086 off64_t nbytes = 1;
2772 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER; 4087 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER;
2786fi 4101fi
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5
2788$as_echo "$ac_cv_sync_file_range" >&6; } 4103$as_echo "$ac_cv_sync_file_range" >&6; }
2789test $ac_cv_sync_file_range = yes && 4104test $ac_cv_sync_file_range = yes &&
2790$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h 4105$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
4106
4107
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
4109$as_echo_n "checking for fallocate... " >&6; }
4110if ${ac_cv_linux_fallocate+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112else
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h. */
4115
4116#include <fcntl.h>
4117int main (void)
4118{
4119 int fd = 0;
4120 int mode = 0;
4121 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
4129if ac_fn_c_try_link "$LINENO"; then :
4130 ac_cv_linux_fallocate=yes
4131else
4132 ac_cv_linux_fallocate=no
4133fi
4134rm -f core conftest.err conftest.$ac_objext \
4135 conftest$ac_exeext conftest.$ac_ext
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5
4138$as_echo "$ac_cv_linux_fallocate" >&6; }
4139test $ac_cv_linux_fallocate = yes &&
4140$as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h
4141
4142
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5
4144$as_echo_n "checking for sys_syncfs... " >&6; }
4145if ${ac_cv_sys_syncfs+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149/* end confdefs.h. */
4150
4151#include <unistd.h>
4152#include <sys/syscall.h>
4153int main (void)
4154{
4155 int res = syscall (__NR_syncfs, (int)0);
4156}
4157
4158_ACEOF
4159if ac_fn_c_try_link "$LINENO"; then :
4160 ac_cv_sys_syncfs=yes
4161else
4162 ac_cv_sys_syncfs=no
4163fi
4164rm -f core conftest.err conftest.$ac_objext \
4165 conftest$ac_exeext conftest.$ac_ext
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5
4168$as_echo "$ac_cv_sys_syncfs" >&6; }
4169test $ac_cv_sys_syncfs = yes &&
4170$as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h
4171
4172
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5
4174$as_echo_n "checking for prctl_set_name... " >&6; }
4175if ${ac_cv_prctl_set_name+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177else
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179/* end confdefs.h. */
4180
4181#include <sys/prctl.h>
4182int main (void)
4183{
4184 char *name = "test123";
4185 int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0);
4186}
4187
4188_ACEOF
4189if ac_fn_c_try_link "$LINENO"; then :
4190 ac_cv_prctl_set_name=yes
4191else
4192 ac_cv_prctl_set_name=no
4193fi
4194rm -f core conftest.err conftest.$ac_objext \
4195 conftest$ac_exeext conftest.$ac_ext
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5
4198$as_echo "$ac_cv_prctl_set_name" >&6; }
4199test $ac_cv_prctl_set_name = yes &&
4200$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
4201
4202
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5
4205$as_echo_n "checking for posix_madvise... " >&6; }
4206if ${ac_cv_posix_madvise+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208else
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h. */
4211
4212#include <sys/mman.h>
4213int 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
4224if ac_fn_c_try_link "$LINENO"; then :
4225 ac_cv_posix_madvise=yes
4226else
4227 ac_cv_posix_madvise=no
4228fi
4229rm -f core conftest.err conftest.$ac_objext \
4230 conftest$ac_exeext conftest.$ac_ext
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5
4233$as_echo "$ac_cv_posix_madvise" >&6; }
4234test $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; }
4240if ${ac_cv_posix_fadvise+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242else
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h. */
4245
4246#define _XOPEN_SOURCE 600
4247#include <fcntl.h>
4248int 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
4260if ac_fn_c_try_link "$LINENO"; then :
4261 ac_cv_posix_fadvise=yes
4262else
4263 ac_cv_posix_fadvise=no
4264fi
4265rm -f core conftest.err conftest.$ac_objext \
4266 conftest$ac_exeext conftest.$ac_ext
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5
4269$as_echo "$ac_cv_posix_fadvise" >&6; }
4270test $ac_cv_posix_fadvise = yes &&
4271$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
4272
4273
4274for ac_header in linux/fs.h linux/fiemap.h
4275do :
4276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4277ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4278if 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
4283fi
4284
4285done
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; }
4290if ${ac_cv_linux_splice+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292else
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294/* end confdefs.h. */
4295
4296#include <fcntl.h>
4297int 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
4307if ac_fn_c_try_link "$LINENO"; then :
4308 ac_cv_linux_splice=yes
4309else
4310 ac_cv_linux_splice=no
4311fi
4312rm -f core conftest.err conftest.$ac_objext \
4313 conftest$ac_exeext conftest.$ac_ext
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5
4316$as_echo "$ac_cv_linux_splice" >&6; }
4317test $ac_cv_linux_splice = yes &&
4318$as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h
4319
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5
4322$as_echo_n "checking for pipe2... " >&6; }
4323if ${ac_cv_pipe2+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */
4328
4329#include <fcntl.h>
4330#include <unistd.h>
4331int res;
4332int main (void)
4333{
4334 res = pipe2 (0, 0);
4335 return 0;
4336}
4337
4338_ACEOF
4339if ac_fn_c_try_link "$LINENO"; then :
4340 ac_cv_pipe2=yes
4341else
4342 ac_cv_pipe2=no
4343fi
4344rm -f core conftest.err conftest.$ac_objext \
4345 conftest$ac_exeext conftest.$ac_ext
4346fi
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5
4348$as_echo "$ac_cv_pipe2" >&6; }
4349test $ac_cv_pipe2 = yes &&
4350$as_echo "#define HAVE_PIPE2 1" >>confdefs.h
4351
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5
4354$as_echo_n "checking for renameat2... " >&6; }
4355if ${ac_cv_renameat2+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357else
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h. */
4360
4361#include <unistd.h>
4362#include <sys/syscall.h>
4363#include <linux/fs.h>
4364int res;
4365int main (void)
4366{
4367 res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE);
4368 return 0;
4369}
4370
4371_ACEOF
4372if ac_fn_c_try_link "$LINENO"; then :
4373 ac_cv_renameat2=yes
4374else
4375 ac_cv_renameat2=no
4376fi
4377rm -f core conftest.err conftest.$ac_objext \
4378 conftest$ac_exeext conftest.$ac_ext
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5
4381$as_echo "$ac_cv_renameat2" >&6; }
4382test $ac_cv_renameat2 = yes &&
4383$as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h
2791 4384
2792 4385
2793 4386
2794 4387
2795cat >confcache <<\_ACEOF 4388cat >confcache <<\_ACEOF
2854 t end 4447 t end
2855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2856 :end' >>confcache 4449 :end' >>confcache
2857if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4450if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2858 if test -w "$cache_file"; then 4451 if test -w "$cache_file"; then
2859 test "x$cache_file" != "x/dev/null" && 4452 if test "x$cache_file" != "x/dev/null"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2861$as_echo "$as_me: updating cache $cache_file" >&6;} 4454$as_echo "$as_me: updating cache $cache_file" >&6;}
4455 if test ! -f "$cache_file" || test -h "$cache_file"; then
2862 cat confcache >$cache_file 4456 cat confcache >"$cache_file"
4457 else
4458 case $cache_file in #(
4459 */* | ?:*)
4460 mv -f confcache "$cache_file"$$ &&
4461 mv -f "$cache_file"$$ "$cache_file" ;; #(
4462 *)
4463 mv -f confcache "$cache_file" ;;
4464 esac
4465 fi
4466 fi
2863 else 4467 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2865$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4469$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2866 fi 4470 fi
2867fi 4471fi
2873 4477
2874DEFS=-DHAVE_CONFIG_H 4478DEFS=-DHAVE_CONFIG_H
2875 4479
2876ac_libobjs= 4480ac_libobjs=
2877ac_ltlibobjs= 4481ac_ltlibobjs=
4482U=
2878for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4483for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2879 # 1. Remove the extension, and $U if already installed. 4484 # 1. Remove the extension, and $U if already installed.
2880 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4485 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2881 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4486 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2882 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4487 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2888 4493
2889LTLIBOBJS=$ac_ltlibobjs 4494LTLIBOBJS=$ac_ltlibobjs
2890 4495
2891 4496
2892 4497
2893: ${CONFIG_STATUS=./config.status} 4498: "${CONFIG_STATUS=./config.status}"
2894ac_write_fail=0 4499ac_write_fail=0
2895ac_clean_files_save=$ac_clean_files 4500ac_clean_files_save=$ac_clean_files
2896ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4501ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2898$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4503$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2989# (If _AS_PATH_WALK were called with IFS unset, it would disable word 4594# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2990# splitting by setting IFS to empty value.) 4595# splitting by setting IFS to empty value.)
2991IFS=" "" $as_nl" 4596IFS=" "" $as_nl"
2992 4597
2993# Find who we are. Look in the path if we contain no directory separator. 4598# Find who we are. Look in the path if we contain no directory separator.
4599as_myself=
2994case $0 in #(( 4600case $0 in #((
2995 *[\\/]* ) as_myself=$0 ;; 4601 *[\\/]* ) as_myself=$0 ;;
2996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4602 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH 4603for as_dir in $PATH
2998do 4604do
3034 4640
3035# CDPATH. 4641# CDPATH.
3036(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3037 4643
3038 4644
3039# as_fn_error ERROR [LINENO LOG_FD] 4645# as_fn_error STATUS ERROR [LINENO LOG_FD]
3040# --------------------------------- 4646# ----------------------------------------
3041# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4647# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3042# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4648# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3043# script with status $?, using 1 if that was 0. 4649# script with STATUS, using 1 if that was 0.
3044as_fn_error () 4650as_fn_error ()
3045{ 4651{
3046 as_status=$?; test $as_status -eq 0 && as_status=1 4652 as_status=$1; test $as_status -eq 0 && as_status=1
3047 if test "$3"; then 4653 if test "$4"; then
3048 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3049 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 4655 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3050 fi 4656 fi
3051 $as_echo "$as_me: error: $1" >&2 4657 $as_echo "$as_me: error: $2" >&2
3052 as_fn_exit $as_status 4658 as_fn_exit $as_status
3053} # as_fn_error 4659} # as_fn_error
3054 4660
3055 4661
3056# as_fn_set_status STATUS 4662# as_fn_set_status STATUS
3184 if ln -s conf$$.file conf$$ 2>/dev/null; then 4790 if ln -s conf$$.file conf$$ 2>/dev/null; then
3185 as_ln_s='ln -s' 4791 as_ln_s='ln -s'
3186 # ... but there are two gotchas: 4792 # ... but there are two gotchas:
3187 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4793 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3188 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4794 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3189 # In both cases, we have to default to `cp -p'. 4795 # In both cases, we have to default to `cp -pR'.
3190 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4796 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3191 as_ln_s='cp -p' 4797 as_ln_s='cp -pR'
3192 elif ln conf$$.file conf$$ 2>/dev/null; then 4798 elif ln conf$$.file conf$$ 2>/dev/null; then
3193 as_ln_s=ln 4799 as_ln_s=ln
3194 else 4800 else
3195 as_ln_s='cp -p' 4801 as_ln_s='cp -pR'
3196 fi 4802 fi
3197else 4803else
3198 as_ln_s='cp -p' 4804 as_ln_s='cp -pR'
3199fi 4805fi
3200rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4806rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3201rmdir conf$$.dir 2>/dev/null 4807rmdir conf$$.dir 2>/dev/null
3202 4808
3203 4809
3242 } 4848 }
3243 s/.*/./; q'` 4849 s/.*/./; q'`
3244 test -d "$as_dir" && break 4850 test -d "$as_dir" && break
3245 done 4851 done
3246 test -z "$as_dirs" || eval "mkdir $as_dirs" 4852 test -z "$as_dirs" || eval "mkdir $as_dirs"
3247 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 4853 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3248 4854
3249 4855
3250} # as_fn_mkdir_p 4856} # as_fn_mkdir_p
3251if mkdir -p . 2>/dev/null; then 4857if mkdir -p . 2>/dev/null; then
3252 as_mkdir_p='mkdir -p "$as_dir"' 4858 as_mkdir_p='mkdir -p "$as_dir"'
3253else 4859else
3254 test -d ./-p && rmdir ./-p 4860 test -d ./-p && rmdir ./-p
3255 as_mkdir_p=false 4861 as_mkdir_p=false
3256fi 4862fi
3257 4863
3258if test -x / >/dev/null 2>&1; then 4864
4865# as_fn_executable_p FILE
4866# -----------------------
4867# Test if FILE is an executable regular file.
4868as_fn_executable_p ()
4869{
4870 test -f "$1" && test -x "$1"
4871} # as_fn_executable_p
3259 as_test_x='test -x' 4872as_test_x='test -x'
3260else 4873as_executable_p=as_fn_executable_p
3261 if ls -dL / >/dev/null 2>&1; then
3262 as_ls_L_option=L
3263 else
3264 as_ls_L_option=
3265 fi
3266 as_test_x='
3267 eval sh -c '\''
3268 if test -d "$1"; then
3269 test -d "$1/.";
3270 else
3271 case $1 in #(
3272 -*)set "./$1";;
3273 esac;
3274 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3275 ???[sx]*):;;*)false;;esac;fi
3276 '\'' sh
3277 '
3278fi
3279as_executable_p=$as_test_x
3280 4874
3281# Sed expression to map a string onto a valid CPP name. 4875# Sed expression to map a string onto a valid CPP name.
3282as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4876as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3283 4877
3284# Sed expression to map a string onto a valid variable name. 4878# Sed expression to map a string onto a valid variable name.
3296# Save the log message, to keep $0 and so on meaningful, and to 4890# Save the log message, to keep $0 and so on meaningful, and to
3297# report actual input values of CONFIG_FILES etc. instead of their 4891# report actual input values of CONFIG_FILES etc. instead of their
3298# values after options handling. 4892# values after options handling.
3299ac_log=" 4893ac_log="
3300This file was extended by $as_me, which was 4894This file was extended by $as_me, which was
3301generated by GNU Autoconf 2.64. Invocation command line was 4895generated by GNU Autoconf 2.69. Invocation command line was
3302 4896
3303 CONFIG_FILES = $CONFIG_FILES 4897 CONFIG_FILES = $CONFIG_FILES
3304 CONFIG_HEADERS = $CONFIG_HEADERS 4898 CONFIG_HEADERS = $CONFIG_HEADERS
3305 CONFIG_LINKS = $CONFIG_LINKS 4899 CONFIG_LINKS = $CONFIG_LINKS
3306 CONFIG_COMMANDS = $CONFIG_COMMANDS 4900 CONFIG_COMMANDS = $CONFIG_COMMANDS
3331 4925
3332Usage: $0 [OPTION]... [TAG]... 4926Usage: $0 [OPTION]... [TAG]...
3333 4927
3334 -h, --help print this help, then exit 4928 -h, --help print this help, then exit
3335 -V, --version print version number and configuration settings, then exit 4929 -V, --version print version number and configuration settings, then exit
4930 --config print configuration, then exit
3336 -q, --quiet, --silent 4931 -q, --quiet, --silent
3337 do not print progress messages 4932 do not print progress messages
3338 -d, --debug don't remove temporary files 4933 -d, --debug don't remove temporary files
3339 --recheck update $as_me by reconfiguring in the same conditions 4934 --recheck update $as_me by reconfiguring in the same conditions
3340 --header=FILE[:TEMPLATE] 4935 --header=FILE[:TEMPLATE]
3345 4940
3346Report bugs to the package provider." 4941Report bugs to the package provider."
3347 4942
3348_ACEOF 4943_ACEOF
3349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4945ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3350ac_cs_version="\\ 4946ac_cs_version="\\
3351config.status 4947config.status
3352configured by $0, generated by GNU Autoconf 2.64, 4948configured by $0, generated by GNU Autoconf 2.69,
3353 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 4949 with options \\"\$ac_cs_config\\"
3354 4950
3355Copyright (C) 2009 Free Software Foundation, Inc. 4951Copyright (C) 2012 Free Software Foundation, Inc.
3356This config.status script is free software; the Free Software Foundation 4952This config.status script is free software; the Free Software Foundation
3357gives unlimited permission to copy, distribute and modify it." 4953gives unlimited permission to copy, distribute and modify it."
3358 4954
3359ac_pwd='$ac_pwd' 4955ac_pwd='$ac_pwd'
3360srcdir='$srcdir' 4956srcdir='$srcdir'
3365# The default lists apply if the user does not specify any file. 4961# The default lists apply if the user does not specify any file.
3366ac_need_defaults=: 4962ac_need_defaults=:
3367while test $# != 0 4963while test $# != 0
3368do 4964do
3369 case $1 in 4965 case $1 in
3370 --*=*) 4966 --*=?*)
3371 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4969 ac_shift=:
4970 ;;
4971 --*=)
4972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4973 ac_optarg=
3373 ac_shift=: 4974 ac_shift=:
3374 ;; 4975 ;;
3375 *) 4976 *)
3376 ac_option=$1 4977 ac_option=$1
3377 ac_optarg=$2 4978 ac_optarg=$2
3383 # Handling of the options. 4984 # Handling of the options.
3384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3385 ac_cs_recheck=: ;; 4986 ac_cs_recheck=: ;;
3386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3387 $as_echo "$ac_cs_version"; exit ;; 4988 $as_echo "$ac_cs_version"; exit ;;
4989 --config | --confi | --conf | --con | --co | --c )
4990 $as_echo "$ac_cs_config"; exit ;;
3388 --debug | --debu | --deb | --de | --d | -d ) 4991 --debug | --debu | --deb | --de | --d | -d )
3389 debug=: ;; 4992 debug=: ;;
3390 --header | --heade | --head | --hea ) 4993 --header | --heade | --head | --hea )
3391 $ac_shift 4994 $ac_shift
3392 case $ac_optarg in 4995 case $ac_optarg in
3394 esac 4997 esac
3395 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 4998 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3396 ac_need_defaults=false;; 4999 ac_need_defaults=false;;
3397 --he | --h) 5000 --he | --h)
3398 # Conflict between --help and --header 5001 # Conflict between --help and --header
3399 as_fn_error "ambiguous option: \`$1' 5002 as_fn_error $? "ambiguous option: \`$1'
3400Try \`$0 --help' for more information.";; 5003Try \`$0 --help' for more information.";;
3401 --help | --hel | -h ) 5004 --help | --hel | -h )
3402 $as_echo "$ac_cs_usage"; exit ;; 5005 $as_echo "$ac_cs_usage"; exit ;;
3403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3404 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5007 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3405 ac_cs_silent=: ;; 5008 ac_cs_silent=: ;;
3406 5009
3407 # This is an error. 5010 # This is an error.
3408 -*) as_fn_error "unrecognized option: \`$1' 5011 -*) as_fn_error $? "unrecognized option: \`$1'
3409Try \`$0 --help' for more information." ;; 5012Try \`$0 --help' for more information." ;;
3410 5013
3411 *) as_fn_append ac_config_targets " $1" 5014 *) as_fn_append ac_config_targets " $1"
3412 ac_need_defaults=false ;; 5015 ac_need_defaults=false ;;
3413 5016
3423fi 5026fi
3424 5027
3425_ACEOF 5028_ACEOF
3426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3427if \$ac_cs_recheck; then 5030if \$ac_cs_recheck; then
3428 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5031 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3429 shift 5032 shift
3430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5033 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3431 CONFIG_SHELL='$SHELL' 5034 CONFIG_SHELL='$SHELL'
3432 export CONFIG_SHELL 5035 export CONFIG_SHELL
3433 exec "\$@" 5036 exec "\$@"
3454for ac_config_target in $ac_config_targets 5057for ac_config_target in $ac_config_targets
3455do 5058do
3456 case $ac_config_target in 5059 case $ac_config_target in
3457 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; 5060 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;;
3458 5061
3459 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5062 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3460 esac 5063 esac
3461done 5064done
3462 5065
3463 5066
3464# If the user did not use the arguments to specify the items to instantiate, 5067# If the user did not use the arguments to specify the items to instantiate,
3475# Hook for its removal unless debugging. 5078# Hook for its removal unless debugging.
3476# Note that there is a small window in which the directory will not be cleaned: 5079# Note that there is a small window in which the directory will not be cleaned:
3477# after its creation but before its name has been assigned to `$tmp'. 5080# after its creation but before its name has been assigned to `$tmp'.
3478$debug || 5081$debug ||
3479{ 5082{
3480 tmp= 5083 tmp= ac_tmp=
3481 trap 'exit_status=$? 5084 trap 'exit_status=$?
5085 : "${ac_tmp:=$tmp}"
3482 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5086 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3483' 0 5087' 0
3484 trap 'as_fn_exit 1' 1 2 13 15 5088 trap 'as_fn_exit 1' 1 2 13 15
3485} 5089}
3486# Create a (secure) tmp directory for tmp files. 5090# Create a (secure) tmp directory for tmp files.
3487 5091
3488{ 5092{
3489 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3490 test -n "$tmp" && test -d "$tmp" 5094 test -d "$tmp"
3491} || 5095} ||
3492{ 5096{
3493 tmp=./conf$$-$RANDOM 5097 tmp=./conf$$-$RANDOM
3494 (umask 077 && mkdir "$tmp") 5098 (umask 077 && mkdir "$tmp")
3495} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 5099} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5100ac_tmp=$tmp
3496 5101
3497# Set up the scripts for CONFIG_HEADERS section. 5102# Set up the scripts for CONFIG_HEADERS section.
3498# No need to generate them if there are no CONFIG_HEADERS. 5103# No need to generate them if there are no CONFIG_HEADERS.
3499# This happens for instance with `./config.status Makefile'. 5104# This happens for instance with `./config.status Makefile'.
3500if test -n "$CONFIG_HEADERS"; then 5105if test -n "$CONFIG_HEADERS"; then
3501cat >"$tmp/defines.awk" <<\_ACAWK || 5106cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
3502BEGIN { 5107BEGIN {
3503_ACEOF 5108_ACEOF
3504 5109
3505# Transform confdefs.h into an awk script `defines.awk', embedded as 5110# Transform confdefs.h into an awk script `defines.awk', embedded as
3506# here-document in config.status, that substitutes the proper values into 5111# here-document in config.status, that substitutes the proper values into
3508 5113
3509# Create a delimiter string that does not exist in confdefs.h, to ease 5114# Create a delimiter string that does not exist in confdefs.h, to ease
3510# handling of long lines. 5115# handling of long lines.
3511ac_delim='%!_!# ' 5116ac_delim='%!_!# '
3512for ac_last_try in false false :; do 5117for ac_last_try in false false :; do
3513 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 5118 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
3514 if test -z "$ac_t"; then 5119 if test -z "$ac_tt"; then
3515 break 5120 break
3516 elif $ac_last_try; then 5121 elif $ac_last_try; then
3517 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 5122 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
3518 else 5123 else
3519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3520 fi 5125 fi
3521done 5126done
3522 5127
3597} 5202}
3598{ print } 5203{ print }
3599_ACAWK 5204_ACAWK
3600_ACEOF 5205_ACEOF
3601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3602 as_fn_error "could not setup config headers machinery" "$LINENO" 5 5207 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
3603fi # test -n "$CONFIG_HEADERS" 5208fi # test -n "$CONFIG_HEADERS"
3604 5209
3605 5210
3606eval set X " :H $CONFIG_HEADERS " 5211eval set X " :H $CONFIG_HEADERS "
3607shift 5212shift
3610 case $ac_tag in 5215 case $ac_tag in
3611 :[FHLC]) ac_mode=$ac_tag; continue;; 5216 :[FHLC]) ac_mode=$ac_tag; continue;;
3612 esac 5217 esac
3613 case $ac_mode$ac_tag in 5218 case $ac_mode$ac_tag in
3614 :[FHL]*:*);; 5219 :[FHL]*:*);;
3615 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 5220 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3616 :[FH]-) ac_tag=-:-;; 5221 :[FH]-) ac_tag=-:-;;
3617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5222 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3618 esac 5223 esac
3619 ac_save_IFS=$IFS 5224 ac_save_IFS=$IFS
3620 IFS=: 5225 IFS=:
3629 :[FH]) 5234 :[FH])
3630 ac_file_inputs= 5235 ac_file_inputs=
3631 for ac_f 5236 for ac_f
3632 do 5237 do
3633 case $ac_f in 5238 case $ac_f in
3634 -) ac_f="$tmp/stdin";; 5239 -) ac_f="$ac_tmp/stdin";;
3635 *) # Look for the file first in the build tree, then in the source tree 5240 *) # Look for the file first in the build tree, then in the source tree
3636 # (if the path is not absolute). The absolute path cannot be DOS-style, 5241 # (if the path is not absolute). The absolute path cannot be DOS-style,
3637 # because $ac_f cannot contain `:'. 5242 # because $ac_f cannot contain `:'.
3638 test -f "$ac_f" || 5243 test -f "$ac_f" ||
3639 case $ac_f in 5244 case $ac_f in
3640 [\\/$]*) false;; 5245 [\\/$]*) false;;
3641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5246 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3642 esac || 5247 esac ||
3643 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 5248 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3644 esac 5249 esac
3645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5250 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3646 as_fn_append ac_file_inputs " '$ac_f'" 5251 as_fn_append ac_file_inputs " '$ac_f'"
3647 done 5252 done
3648 5253
3664 sed 's/[\\\\&|]/\\\\&/g'`;; #( 5269 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3665 *) ac_sed_conf_input=$configure_input;; 5270 *) ac_sed_conf_input=$configure_input;;
3666 esac 5271 esac
3667 5272
3668 case $ac_tag in 5273 case $ac_tag in
3669 *:-:* | *:-) cat >"$tmp/stdin" \ 5274 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3670 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 5275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3671 esac 5276 esac
3672 ;; 5277 ;;
3673 esac 5278 esac
3674 5279
3675 ac_dir=`$as_dirname -- "$ac_file" || 5280 ac_dir=`$as_dirname -- "$ac_file" ||
3738 # CONFIG_HEADER 5343 # CONFIG_HEADER
3739 # 5344 #
3740 if test x"$ac_file" != x-; then 5345 if test x"$ac_file" != x-; then
3741 { 5346 {
3742 $as_echo "/* $configure_input */" \ 5347 $as_echo "/* $configure_input */" \
3743 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 5348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
3744 } >"$tmp/config.h" \ 5349 } >"$ac_tmp/config.h" \
3745 || as_fn_error "could not create $ac_file" "$LINENO" 5 5350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3746 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 5351 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
3748$as_echo "$as_me: $ac_file is unchanged" >&6;} 5353$as_echo "$as_me: $ac_file is unchanged" >&6;}
3749 else 5354 else
3750 rm -f "$ac_file" 5355 rm -f "$ac_file"
3751 mv "$tmp/config.h" "$ac_file" \ 5356 mv "$ac_tmp/config.h" "$ac_file" \
3752 || as_fn_error "could not create $ac_file" "$LINENO" 5 5357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3753 fi 5358 fi
3754 else 5359 else
3755 $as_echo "/* $configure_input */" \ 5360 $as_echo "/* $configure_input */" \
3756 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 5361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
3757 || as_fn_error "could not create -" "$LINENO" 5 5362 || as_fn_error $? "could not create -" "$LINENO" 5
3758 fi 5363 fi
3759 ;; 5364 ;;
3760 5365
3761 5366
3762 esac 5367 esac
3767as_fn_exit 0 5372as_fn_exit 0
3768_ACEOF 5373_ACEOF
3769ac_clean_files=$ac_clean_files_save 5374ac_clean_files=$ac_clean_files_save
3770 5375
3771test $ac_write_fail = 0 || 5376test $ac_write_fail = 0 ||
3772 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 5377 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3773 5378
3774 5379
3775# configure is writing to config.log, and then calls config.status. 5380# configure is writing to config.log, and then calls config.status.
3776# config.status does its own redirection, appending to config.log. 5381# config.status does its own redirection, appending to config.log.
3777# Unfortunately, on DOS this fails, as config.log is still kept open 5382# Unfortunately, on DOS this fails, as config.log is still kept open
3788 exec 5>/dev/null 5393 exec 5>/dev/null
3789 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3790 exec 5>>config.log 5395 exec 5>>config.log
3791 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3792 # would make configure fail if this is the last instruction. 5397 # would make configure fail if this is the last instruction.
3793 $ac_cs_success || as_fn_exit $? 5398 $ac_cs_success || as_fn_exit 1
3794fi 5399fi
3795if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5400if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3797$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5402$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3798fi 5403fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines