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

Comparing IO-AIO/configure (file contents):
Revision 1.9 by root, Wed Dec 1 07:30:38 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.67. 3# Generated by GNU Autoconf 2.69.
4# 4#
5# 5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9# 7#
10# 8#
11# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 11## -------------------- ##
87# (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
88# splitting by setting IFS to empty value.) 86# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl" 87IFS=" "" $as_nl"
90 88
91# 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=
92case $0 in #(( 91case $0 in #((
93 *[\\/]* ) as_myself=$0 ;; 92 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH 94for as_dir in $PATH
96do 95do
131export LANGUAGE 130export LANGUAGE
132 131
133# CDPATH. 132# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 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;}
136if test "x$CONFIG_SHELL" = x; then 160if test "x$CONFIG_SHELL" = x; then
137 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 :
138 emulate sh 162 emulate sh
139 NULLCMD=: 163 NULLCMD=:
140 # 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
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 189
166else 190else
167 exitcode=1; echo positional parameters were not saved. 191 exitcode=1; echo positional parameters were not saved.
168fi 192fi
169test x\$exitcode = x0 || exit 1" 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
170 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
171 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
172 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'\" &&
173 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"
174 if (eval "$as_required") 2>/dev/null; then : 200 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes 201 as_have_required=yes
176else 202else
177 as_have_required=no 203 as_have_required=no
178fi 204fi
208fi; } 234fi; }
209IFS=$as_save_IFS 235IFS=$as_save_IFS
210 236
211 237
212 if test "x$CONFIG_SHELL" != x; then : 238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
213 # 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
214 # neutralization value for shells without unset; and this also 241# neutralization value for shells without unset; and this also
215 # 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.
216 BASH_ENV=/dev/null 244BASH_ENV=/dev/null
217 ENV=/dev/null 245ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 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
220 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
221fi 258fi
222 259
223 if test x$as_have_required = xno; then : 260 if test x$as_have_required = xno; then :
224 $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"
225 $as_echo "$0: the shells that I found on your system." 262 $as_echo "$0: the shells that I found on your system."
317 test -z "$as_dirs" || eval "mkdir $as_dirs" 354 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || 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"
319 356
320 357
321} # 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
322# as_fn_append VAR VALUE 367# as_fn_append VAR VALUE
323# ---------------------- 368# ----------------------
324# 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
325# advantage of any shell optimizations that allow amortized linear growth over 370# advantage of any shell optimizations that allow amortized linear growth over
326# repeated appends, instead of the typical quadratic growth present in naive 371# repeated appends, instead of the typical quadratic growth present in naive
438 s/-\n.*// 483 s/-\n.*//
439 ' >$as_me.lineno && 484 ' >$as_me.lineno &&
440 chmod +x "$as_me.lineno" || 485 chmod +x "$as_me.lineno" ||
441 { $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; }
442 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
443 # 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
444 # (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
445 # original and so on. Autoconf is especially sensitive to this). 494 # original and so on. Autoconf is especially sensitive to this).
446 . "./$as_me.lineno" 495 . "./$as_me.lineno"
447 # Exit status is that of the last command. 496 # Exit status is that of the last command.
472 if ln -s conf$$.file conf$$ 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 as_ln_s='ln -s' 522 as_ln_s='ln -s'
474 # ... but there are two gotchas: 523 # ... but there are two gotchas:
475 # 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.
476 # 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.
477 # In both cases, we have to default to `cp -p'. 526 # In both cases, we have to default to `cp -pR'.
478 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 ||
479 as_ln_s='cp -p' 528 as_ln_s='cp -pR'
480 elif ln conf$$.file conf$$ 2>/dev/null; then 529 elif ln conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s=ln 530 as_ln_s=ln
482 else 531 else
483 as_ln_s='cp -p' 532 as_ln_s='cp -pR'
484 fi 533 fi
485else 534else
486 as_ln_s='cp -p' 535 as_ln_s='cp -pR'
487fi 536fi
488rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489rmdir conf$$.dir 2>/dev/null 538rmdir conf$$.dir 2>/dev/null
490 539
491if mkdir -p . 2>/dev/null; then 540if mkdir -p . 2>/dev/null; then
493else 542else
494 test -d ./-p && rmdir ./-p 543 test -d ./-p && rmdir ./-p
495 as_mkdir_p=false 544 as_mkdir_p=false
496fi 545fi
497 546
498if test -x / >/dev/null 2>&1; then
499 as_test_x='test -x' 547as_test_x='test -x'
500else 548as_executable_p=as_fn_executable_p
501 if ls -dL / >/dev/null 2>&1; then
502 as_ls_L_option=L
503 else
504 as_ls_L_option=
505 fi
506 as_test_x='
507 eval sh -c '\''
508 if test -d "$1"; then
509 test -d "$1/.";
510 else
511 case $1 in #(
512 -*)set "./$1";;
513 esac;
514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 ???[sx]*):;;*)false;;esac;fi
516 '\'' sh
517 '
518fi
519as_executable_p=$as_test_x
520 549
521# Sed expression to map a string onto a valid CPP name. 550# Sed expression to map a string onto a valid CPP name.
522as_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'"
523 552
524# Sed expression to map a string onto a valid variable name. 553# Sed expression to map a string onto a valid variable name.
552PACKAGE_STRING= 581PACKAGE_STRING=
553PACKAGE_BUGREPORT= 582PACKAGE_BUGREPORT=
554PACKAGE_URL= 583PACKAGE_URL=
555 584
556ac_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
557ac_subst_vars='LTLIBOBJS 622ac_subst_vars='LTLIBOBJS
558LIBOBJS 623LIBOBJS
624EGREP
625GREP
626CPP
559OBJEXT 627OBJEXT
560EXEEXT 628EXEEXT
561ac_ct_CC 629ac_ct_CC
562CPPFLAGS 630CPPFLAGS
563LDFLAGS 631LDFLAGS
580htmldir 648htmldir
581infodir 649infodir
582docdir 650docdir
583oldincludedir 651oldincludedir
584includedir 652includedir
653runstatedir
585localstatedir 654localstatedir
586sharedstatedir 655sharedstatedir
587sysconfdir 656sysconfdir
588datadir 657datadir
589datarootdir 658datarootdir
610target_alias 679target_alias
611CC 680CC
612CFLAGS 681CFLAGS
613LDFLAGS 682LDFLAGS
614LIBS 683LIBS
615CPPFLAGS' 684CPPFLAGS
685CPP'
616 686
617 687
618# Initialize some variables set by options. 688# Initialize some variables set by options.
619ac_init_help= 689ac_init_help=
620ac_init_version=false 690ac_init_version=false
649datarootdir='${prefix}/share' 719datarootdir='${prefix}/share'
650datadir='${datarootdir}' 720datadir='${datarootdir}'
651sysconfdir='${prefix}/etc' 721sysconfdir='${prefix}/etc'
652sharedstatedir='${prefix}/com' 722sharedstatedir='${prefix}/com'
653localstatedir='${prefix}/var' 723localstatedir='${prefix}/var'
724runstatedir='${localstatedir}/run'
654includedir='${prefix}/include' 725includedir='${prefix}/include'
655oldincludedir='/usr/include' 726oldincludedir='/usr/include'
656docdir='${datarootdir}/doc/${PACKAGE}' 727docdir='${datarootdir}/doc/${PACKAGE}'
657infodir='${datarootdir}/info' 728infodir='${datarootdir}/info'
658htmldir='${docdir}' 729htmldir='${docdir}'
901 972
902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
903 | -silent | --silent | --silen | --sile | --sil) 974 | -silent | --silent | --silen | --sile | --sil)
904 silent=yes ;; 975 silent=yes ;;
905 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
906 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 986 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
907 ac_prev=sbindir ;; 987 ac_prev=sbindir ;;
908 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 988 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
909 | --sbi=* | --sb=*) 989 | --sbi=* | --sb=*)
910 sbindir=$ac_optarg ;; 990 sbindir=$ac_optarg ;;
1015 *) 1095 *)
1016 # FIXME: should be removed in autoconf 3.0. 1096 # FIXME: should be removed in autoconf 3.0.
1017 $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
1018 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1099 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1020 : ${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}"
1021 ;; 1101 ;;
1022 1102
1023 esac 1103 esac
1024done 1104done
1025 1105
1038 1118
1039# Check all directory arguments for consistency. 1119# Check all directory arguments for consistency.
1040for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1120for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1041 datadir sysconfdir sharedstatedir localstatedir includedir \ 1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1042 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1043 libdir localedir mandir 1123 libdir localedir mandir runstatedir
1044do 1124do
1045 eval ac_val=\$$ac_var 1125 eval ac_val=\$$ac_var
1046 # Remove trailing slashes. 1126 # Remove trailing slashes.
1047 case $ac_val in 1127 case $ac_val in
1048 */ ) 1128 */ )
1066 1146
1067# FIXME: To remove some day. 1147# FIXME: To remove some day.
1068if test "x$host_alias" != x; then 1148if test "x$host_alias" != x; then
1069 if test "x$build_alias" = x; then 1149 if test "x$build_alias" = x; then
1070 cross_compiling=maybe 1150 cross_compiling=maybe
1071 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1072 If a cross compiler is detected then cross compile mode will be used" >&2
1073 elif test "x$build_alias" != "x$host_alias"; then 1151 elif test "x$build_alias" != "x$host_alias"; then
1074 cross_compiling=yes 1152 cross_compiling=yes
1075 fi 1153 fi
1076fi 1154fi
1077 1155
1193 --sbindir=DIR system admin executables [EPREFIX/sbin] 1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1194 --libexecdir=DIR program executables [EPREFIX/libexec] 1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1195 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1196 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1197 --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]
1198 --libdir=DIR object code libraries [EPREFIX/lib] 1277 --libdir=DIR object code libraries [EPREFIX/lib]
1199 --includedir=DIR C header files [PREFIX/include] 1278 --includedir=DIR C header files [PREFIX/include]
1200 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1201 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1202 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1224 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
1225 nonstandard directory <lib dir> 1304 nonstandard directory <lib dir>
1226 LIBS libraries to pass to the linker, e.g. -l<library> 1305 LIBS libraries to pass to the linker, e.g. -l<library>
1227 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1306 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1228 you have headers in a nonstandard directory <include dir> 1307 you have headers in a nonstandard directory <include dir>
1308 CPP C preprocessor
1229 1309
1230Use 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
1231it to find libraries and programs with nonstandard names/locations. 1311it to find libraries and programs with nonstandard names/locations.
1232 1312
1233Report bugs to the package provider. 1313Report bugs to the package provider.
1292 1372
1293test -n "$ac_init_help" && exit $ac_status 1373test -n "$ac_init_help" && exit $ac_status
1294if $ac_init_version; then 1374if $ac_init_version; then
1295 cat <<\_ACEOF 1375 cat <<\_ACEOF
1296configure 1376configure
1297generated by GNU Autoconf 2.67 1377generated by GNU Autoconf 2.69
1298 1378
1299Copyright (C) 2010 Free Software Foundation, Inc. 1379Copyright (C) 2012 Free Software Foundation, Inc.
1300This configure script is free software; the Free Software Foundation 1380This configure script is free software; the Free Software Foundation
1301gives unlimited permission to copy, distribute and modify it. 1381gives unlimited permission to copy, distribute and modify it.
1302_ACEOF 1382_ACEOF
1303 exit 1383 exit
1304fi 1384fi
1338 $as_echo "$as_me: failed program was:" >&5 1418 $as_echo "$as_me: failed program was:" >&5
1339sed 's/^/| /' conftest.$ac_ext >&5 1419sed 's/^/| /' conftest.$ac_ext >&5
1340 1420
1341 ac_retval=1 1421 ac_retval=1
1342fi 1422fi
1343 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
1344 as_fn_set_status $ac_retval 1424 as_fn_set_status $ac_retval
1345 1425
1346} # 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
1347 1624
1348# ac_fn_c_try_link LINENO 1625# ac_fn_c_try_link LINENO
1349# ----------------------- 1626# -----------------------
1350# Try to link conftest.$ac_ext, and return whether this succeeded. 1627# Try to link conftest.$ac_ext, and return whether this succeeded.
1351ac_fn_c_try_link () 1628ac_fn_c_try_link ()
1370 test $ac_status = 0; } && { 1647 test $ac_status = 0; } && {
1371 test -z "$ac_c_werror_flag" || 1648 test -z "$ac_c_werror_flag" ||
1372 test ! -s conftest.err 1649 test ! -s conftest.err
1373 } && test -s conftest$ac_exeext && { 1650 } && test -s conftest$ac_exeext && {
1374 test "$cross_compiling" = yes || 1651 test "$cross_compiling" = yes ||
1375 $as_test_x conftest$ac_exeext 1652 test -x conftest$ac_exeext
1376 }; then : 1653 }; then :
1377 ac_retval=0 1654 ac_retval=0
1378else 1655else
1379 $as_echo "$as_me: failed program was:" >&5 1656 $as_echo "$as_me: failed program was:" >&5
1380sed 's/^/| /' conftest.$ac_ext >&5 1657sed 's/^/| /' conftest.$ac_ext >&5
1384 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1385 # 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
1386 # 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
1387 # 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.
1388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1389 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
1390 as_fn_set_status $ac_retval 1667 as_fn_set_status $ac_retval
1391 1668
1392} # ac_fn_c_try_link 1669} # ac_fn_c_try_link
1393cat >config.log <<_ACEOF 1670cat >config.log <<_ACEOF
1394This file contains any messages produced by compilers while 1671This file contains any messages produced by compilers while
1395running configure, to aid debugging if configure makes a mistake. 1672running configure, to aid debugging if configure makes a mistake.
1396 1673
1397It was created by $as_me, which was 1674It was created by $as_me, which was
1398generated by GNU Autoconf 2.67. Invocation command line was 1675generated by GNU Autoconf 2.69. Invocation command line was
1399 1676
1400 $ $0 $@ 1677 $ $0 $@
1401 1678
1402_ACEOF 1679_ACEOF
1403exec 5>>config.log 1680exec 5>>config.log
1651 sed 's/^/| /' "$ac_site_file" >&5 1928 sed 's/^/| /' "$ac_site_file" >&5
1652 . "$ac_site_file" \ 1929 . "$ac_site_file" \
1653 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1930 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1655as_fn_error $? "failed to load site script $ac_site_file 1932as_fn_error $? "failed to load site script $ac_site_file
1656See \`config.log' for more details" "$LINENO" 5 ; } 1933See \`config.log' for more details" "$LINENO" 5; }
1657 fi 1934 fi
1658done 1935done
1659 1936
1660if test -r "$cache_file"; then 1937if test -r "$cache_file"; then
1661 # Some versions of bash will fail to source /dev/null (special files 1938 # Some versions of bash will fail to source /dev/null (special files
1744 2021
1745 2022
1746ac_config_headers="$ac_config_headers libeio/config.h" 2023ac_config_headers="$ac_config_headers libeio/config.h"
1747 2024
1748 2025
2026
1749ac_ext=c 2027ac_ext=c
1750ac_cpp='$CPP $CPPFLAGS' 2028ac_cpp='$CPP $CPPFLAGS'
1751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1753ac_compiler_gnu=$ac_cv_c_compiler_gnu 2031ac_compiler_gnu=$ac_cv_c_compiler_gnu
1754if test -n "$ac_tool_prefix"; then 2032if test -n "$ac_tool_prefix"; then
1755 # 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.
1756set dummy ${ac_tool_prefix}gcc; ac_word=$2 2034set dummy ${ac_tool_prefix}gcc; ac_word=$2
1757{ $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
1758$as_echo_n "checking for $ac_word... " >&6; } 2036$as_echo_n "checking for $ac_word... " >&6; }
1759if test "${ac_cv_prog_CC+set}" = set; then : 2037if ${ac_cv_prog_CC+:} false; then :
1760 $as_echo_n "(cached) " >&6 2038 $as_echo_n "(cached) " >&6
1761else 2039else
1762 if test -n "$CC"; then 2040 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test. 2041 ac_cv_prog_CC="$CC" # Let the user override the test.
1764else 2042else
1766for as_dir in $PATH 2044for as_dir in $PATH
1767do 2045do
1768 IFS=$as_save_IFS 2046 IFS=$as_save_IFS
1769 test -z "$as_dir" && as_dir=. 2047 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do 2048 for ac_exec_ext in '' $ac_executable_extensions; do
1771 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
1772 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1773 $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
1774 break 2 2052 break 2
1775 fi 2053 fi
1776done 2054done
1794 ac_ct_CC=$CC 2072 ac_ct_CC=$CC
1795 # 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.
1796set dummy gcc; ac_word=$2 2074set dummy gcc; ac_word=$2
1797{ $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
1798$as_echo_n "checking for $ac_word... " >&6; } 2076$as_echo_n "checking for $ac_word... " >&6; }
1799if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2077if ${ac_cv_prog_ac_ct_CC+:} false; then :
1800 $as_echo_n "(cached) " >&6 2078 $as_echo_n "(cached) " >&6
1801else 2079else
1802 if test -n "$ac_ct_CC"; then 2080 if test -n "$ac_ct_CC"; then
1803 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.
1804else 2082else
1806for as_dir in $PATH 2084for as_dir in $PATH
1807do 2085do
1808 IFS=$as_save_IFS 2086 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=. 2087 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do 2088 for ac_exec_ext in '' $ac_executable_extensions; do
1811 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
1812 ac_cv_prog_ac_ct_CC="gcc" 2090 ac_cv_prog_ac_ct_CC="gcc"
1813 $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
1814 break 2 2092 break 2
1815 fi 2093 fi
1816done 2094done
1847 if test -n "$ac_tool_prefix"; then 2125 if test -n "$ac_tool_prefix"; then
1848 # 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.
1849set dummy ${ac_tool_prefix}cc; ac_word=$2 2127set dummy ${ac_tool_prefix}cc; ac_word=$2
1850{ $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
1851$as_echo_n "checking for $ac_word... " >&6; } 2129$as_echo_n "checking for $ac_word... " >&6; }
1852if test "${ac_cv_prog_CC+set}" = set; then : 2130if ${ac_cv_prog_CC+:} false; then :
1853 $as_echo_n "(cached) " >&6 2131 $as_echo_n "(cached) " >&6
1854else 2132else
1855 if test -n "$CC"; then 2133 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test. 2134 ac_cv_prog_CC="$CC" # Let the user override the test.
1857else 2135else
1859for as_dir in $PATH 2137for as_dir in $PATH
1860do 2138do
1861 IFS=$as_save_IFS 2139 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=. 2140 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do 2141 for ac_exec_ext in '' $ac_executable_extensions; do
1864 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
1865 ac_cv_prog_CC="${ac_tool_prefix}cc" 2143 ac_cv_prog_CC="${ac_tool_prefix}cc"
1866 $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
1867 break 2 2145 break 2
1868 fi 2146 fi
1869done 2147done
1887if test -z "$CC"; then 2165if test -z "$CC"; then
1888 # 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.
1889set dummy cc; ac_word=$2 2167set dummy cc; ac_word=$2
1890{ $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
1891$as_echo_n "checking for $ac_word... " >&6; } 2169$as_echo_n "checking for $ac_word... " >&6; }
1892if test "${ac_cv_prog_CC+set}" = set; then : 2170if ${ac_cv_prog_CC+:} false; then :
1893 $as_echo_n "(cached) " >&6 2171 $as_echo_n "(cached) " >&6
1894else 2172else
1895 if test -n "$CC"; then 2173 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test. 2174 ac_cv_prog_CC="$CC" # Let the user override the test.
1897else 2175else
1900for as_dir in $PATH 2178for as_dir in $PATH
1901do 2179do
1902 IFS=$as_save_IFS 2180 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=. 2181 test -z "$as_dir" && as_dir=.
1904 for ac_exec_ext in '' $ac_executable_extensions; do 2182 for ac_exec_ext in '' $ac_executable_extensions; do
1905 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
1906 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
1907 ac_prog_rejected=yes 2185 ac_prog_rejected=yes
1908 continue 2186 continue
1909 fi 2187 fi
1910 ac_cv_prog_CC="cc" 2188 ac_cv_prog_CC="cc"
1946 do 2224 do
1947 # 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.
1948set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1949{ $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
1950$as_echo_n "checking for $ac_word... " >&6; } 2228$as_echo_n "checking for $ac_word... " >&6; }
1951if test "${ac_cv_prog_CC+set}" = set; then : 2229if ${ac_cv_prog_CC+:} false; then :
1952 $as_echo_n "(cached) " >&6 2230 $as_echo_n "(cached) " >&6
1953else 2231else
1954 if test -n "$CC"; then 2232 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test. 2233 ac_cv_prog_CC="$CC" # Let the user override the test.
1956else 2234else
1958for as_dir in $PATH 2236for as_dir in $PATH
1959do 2237do
1960 IFS=$as_save_IFS 2238 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=. 2239 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do 2240 for ac_exec_ext in '' $ac_executable_extensions; do
1963 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
1964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1965 $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
1966 break 2 2244 break 2
1967 fi 2245 fi
1968done 2246done
1990do 2268do
1991 # 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.
1992set dummy $ac_prog; ac_word=$2 2270set dummy $ac_prog; ac_word=$2
1993{ $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
1994$as_echo_n "checking for $ac_word... " >&6; } 2272$as_echo_n "checking for $ac_word... " >&6; }
1995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2273if ${ac_cv_prog_ac_ct_CC+:} false; then :
1996 $as_echo_n "(cached) " >&6 2274 $as_echo_n "(cached) " >&6
1997else 2275else
1998 if test -n "$ac_ct_CC"; then 2276 if test -n "$ac_ct_CC"; then
1999 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.
2000else 2278else
2002for as_dir in $PATH 2280for as_dir in $PATH
2003do 2281do
2004 IFS=$as_save_IFS 2282 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=. 2283 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do 2284 for ac_exec_ext in '' $ac_executable_extensions; do
2007 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
2008 ac_cv_prog_ac_ct_CC="$ac_prog" 2286 ac_cv_prog_ac_ct_CC="$ac_prog"
2009 $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
2010 break 2 2288 break 2
2011 fi 2289 fi
2012done 2290done
2045 2323
2046 2324
2047test -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
2048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2049as_fn_error $? "no acceptable C compiler found in \$PATH 2327as_fn_error $? "no acceptable C compiler found in \$PATH
2050See \`config.log' for more details" "$LINENO" 5 ; } 2328See \`config.log' for more details" "$LINENO" 5; }
2051 2329
2052# Provide some information about the compiler. 2330# Provide some information about the compiler.
2053$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
2054set X $ac_compile 2332set X $ac_compile
2055ac_compiler=$2 2333ac_compiler=$2
2160sed 's/^/| /' conftest.$ac_ext >&5 2438sed 's/^/| /' conftest.$ac_ext >&5
2161 2439
2162{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2440{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164as_fn_error 77 "C compiler cannot create executables 2442as_fn_error 77 "C compiler cannot create executables
2165See \`config.log' for more details" "$LINENO" 5 ; } 2443See \`config.log' for more details" "$LINENO" 5; }
2166else 2444else
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2168$as_echo "yes" >&6; } 2446$as_echo "yes" >&6; }
2169fi 2447fi
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2203done 2481done
2204else 2482else
2205 { { $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
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2485as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2208See \`config.log' for more details" "$LINENO" 5 ; } 2486See \`config.log' for more details" "$LINENO" 5; }
2209fi 2487fi
2210rm -f conftest conftest$ac_cv_exeext 2488rm -f conftest conftest$ac_cv_exeext
2211{ $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
2212$as_echo "$ac_cv_exeext" >&6; } 2490$as_echo "$ac_cv_exeext" >&6; }
2213 2491
2262 else 2540 else
2263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2265as_fn_error $? "cannot run C compiled programs. 2543as_fn_error $? "cannot run C compiled programs.
2266If you meant to cross compile, use \`--host'. 2544If you meant to cross compile, use \`--host'.
2267See \`config.log' for more details" "$LINENO" 5 ; } 2545See \`config.log' for more details" "$LINENO" 5; }
2268 fi 2546 fi
2269 fi 2547 fi
2270fi 2548fi
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2272$as_echo "$cross_compiling" >&6; } 2550$as_echo "$cross_compiling" >&6; }
2273 2551
2274rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2552rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2275ac_clean_files=$ac_clean_files_save 2553ac_clean_files=$ac_clean_files_save
2276{ $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
2277$as_echo_n "checking for suffix of object files... " >&6; } 2555$as_echo_n "checking for suffix of object files... " >&6; }
2278if test "${ac_cv_objext+set}" = set; then : 2556if ${ac_cv_objext+:} false; then :
2279 $as_echo_n "(cached) " >&6 2557 $as_echo_n "(cached) " >&6
2280else 2558else
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282/* end confdefs.h. */ 2560/* end confdefs.h. */
2283 2561
2314sed 's/^/| /' conftest.$ac_ext >&5 2592sed 's/^/| /' conftest.$ac_ext >&5
2315 2593
2316{ { $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
2317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2318as_fn_error $? "cannot compute suffix of object files: cannot compile 2596as_fn_error $? "cannot compute suffix of object files: cannot compile
2319See \`config.log' for more details" "$LINENO" 5 ; } 2597See \`config.log' for more details" "$LINENO" 5; }
2320fi 2598fi
2321rm -f conftest.$ac_cv_objext conftest.$ac_ext 2599rm -f conftest.$ac_cv_objext conftest.$ac_ext
2322fi 2600fi
2323{ $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
2324$as_echo "$ac_cv_objext" >&6; } 2602$as_echo "$ac_cv_objext" >&6; }
2325OBJEXT=$ac_cv_objext 2603OBJEXT=$ac_cv_objext
2326ac_objext=$OBJEXT 2604ac_objext=$OBJEXT
2327{ $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
2328$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; }
2329if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2607if ${ac_cv_c_compiler_gnu+:} false; then :
2330 $as_echo_n "(cached) " >&6 2608 $as_echo_n "(cached) " >&6
2331else 2609else
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333/* end confdefs.h. */ 2611/* end confdefs.h. */
2334 2612
2361fi 2639fi
2362ac_test_CFLAGS=${CFLAGS+set} 2640ac_test_CFLAGS=${CFLAGS+set}
2363ac_save_CFLAGS=$CFLAGS 2641ac_save_CFLAGS=$CFLAGS
2364{ $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
2365$as_echo_n "checking whether $CC accepts -g... " >&6; } 2643$as_echo_n "checking whether $CC accepts -g... " >&6; }
2366if test "${ac_cv_prog_cc_g+set}" = set; then : 2644if ${ac_cv_prog_cc_g+:} false; then :
2367 $as_echo_n "(cached) " >&6 2645 $as_echo_n "(cached) " >&6
2368else 2646else
2369 ac_save_c_werror_flag=$ac_c_werror_flag 2647 ac_save_c_werror_flag=$ac_c_werror_flag
2370 ac_c_werror_flag=yes 2648 ac_c_werror_flag=yes
2371 ac_cv_prog_cc_g=no 2649 ac_cv_prog_cc_g=no
2439 CFLAGS= 2717 CFLAGS=
2440 fi 2718 fi
2441fi 2719fi
2442{ $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
2443$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; }
2444if test "${ac_cv_prog_cc_c89+set}" = set; then : 2722if ${ac_cv_prog_cc_c89+:} false; then :
2445 $as_echo_n "(cached) " >&6 2723 $as_echo_n "(cached) " >&6
2446else 2724else
2447 ac_cv_prog_cc_c89=no 2725 ac_cv_prog_cc_c89=no
2448ac_save_CC=$CC 2726ac_save_CC=$CC
2449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450/* end confdefs.h. */ 2728/* end confdefs.h. */
2451#include <stdarg.h> 2729#include <stdarg.h>
2452#include <stdio.h> 2730#include <stdio.h>
2453#include <sys/types.h> 2731struct stat;
2454#include <sys/stat.h>
2455/* 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. */
2456struct buf { int x; }; 2733struct buf { int x; };
2457FILE * (*rcsopen) (struct buf *, struct stat *, int); 2734FILE * (*rcsopen) (struct buf *, struct stat *, int);
2458static char *e (p, i) 2735static char *e (p, i)
2459 char **p; 2736 char **p;
2535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536ac_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'
2537ac_compiler_gnu=$ac_cv_c_compiler_gnu 2814ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 2815
2539 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
2540 3829
2541{ $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
2542$as_echo_n "checking for library containing pthread_create... " >&6; } 3831$as_echo_n "checking for library containing pthread_create... " >&6; }
2543if test "${ac_cv_search_pthread_create+set}" = set; then : 3832if ${ac_cv_search_pthread_create+:} false; then :
2544 $as_echo_n "(cached) " >&6 3833 $as_echo_n "(cached) " >&6
2545else 3834else
2546 ac_func_search_save_LIBS=$LIBS 3835 ac_func_search_save_LIBS=$LIBS
2547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548/* end confdefs.h. */ 3837/* end confdefs.h. */
2572 if ac_fn_c_try_link "$LINENO"; then : 3861 if ac_fn_c_try_link "$LINENO"; then :
2573 ac_cv_search_pthread_create=$ac_res 3862 ac_cv_search_pthread_create=$ac_res
2574fi 3863fi
2575rm -f core conftest.err conftest.$ac_objext \ 3864rm -f core conftest.err conftest.$ac_objext \
2576 conftest$ac_exeext 3865 conftest$ac_exeext
2577 if test "${ac_cv_search_pthread_create+set}" = set; then : 3866 if ${ac_cv_search_pthread_create+:} false; then :
2578 break 3867 break
2579fi 3868fi
2580done 3869done
2581if test "${ac_cv_search_pthread_create+set}" = set; then : 3870if ${ac_cv_search_pthread_create+:} false; then :
2582 3871
2583else 3872else
2584 ac_cv_search_pthread_create=no 3873 ac_cv_search_pthread_create=no
2585fi 3874fi
2586rm conftest.$ac_ext 3875rm conftest.$ac_ext
2598fi 3887fi
2599 3888
2600 3889
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5
2602$as_echo_n "checking for utimes... " >&6; } 3891$as_echo_n "checking for utimes... " >&6; }
2603if test "${ac_cv_utimes+set}" = set; then : 3892if ${ac_cv_utimes+:} false; then :
2604 $as_echo_n "(cached) " >&6 3893 $as_echo_n "(cached) " >&6
2605else 3894else
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h. */ 3896/* end confdefs.h. */
2608 3897
2632$as_echo "#define HAVE_UTIMES 1" >>confdefs.h 3921$as_echo "#define HAVE_UTIMES 1" >>confdefs.h
2633 3922
2634 3923
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5
2636$as_echo_n "checking for futimes... " >&6; } 3925$as_echo_n "checking for futimes... " >&6; }
2637if test "${ac_cv_futimes+set}" = set; then : 3926if ${ac_cv_futimes+:} false; then :
2638 $as_echo_n "(cached) " >&6 3927 $as_echo_n "(cached) " >&6
2639else 3928else
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641/* end confdefs.h. */ 3930/* end confdefs.h. */
2642 3931
2667$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h 3956$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h
2668 3957
2669 3958
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5
2671$as_echo_n "checking for readahead... " >&6; } 3960$as_echo_n "checking for readahead... " >&6; }
2672if test "${ac_cv_readahead+set}" = set; then : 3961if ${ac_cv_readahead+:} false; then :
2673 $as_echo_n "(cached) " >&6 3962 $as_echo_n "(cached) " >&6
2674else 3963else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676/* end confdefs.h. */ 3965/* end confdefs.h. */
2677 3966
2700$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h 3989$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h
2701 3990
2702 3991
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
2704$as_echo_n "checking for fdatasync... " >&6; } 3993$as_echo_n "checking for fdatasync... " >&6; }
2705if test "${ac_cv_fdatasync+set}" = set; then : 3994if ${ac_cv_fdatasync+:} false; then :
2706 $as_echo_n "(cached) " >&6 3995 $as_echo_n "(cached) " >&6
2707else 3996else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h. */ 3998/* end confdefs.h. */
2710 3999
2729$as_echo "$ac_cv_fdatasync" >&6; } 4018$as_echo "$ac_cv_fdatasync" >&6; }
2730test $ac_cv_fdatasync = yes && 4019test $ac_cv_fdatasync = yes &&
2731$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 4020$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
2732 4021
2733 4022
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread and pwrite" >&5
2735$as_echo_n "checking for pread and pwrite... " >&6; }
2736if test "${ac_cv_preadwrite+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2738else
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741
2742#include <unistd.h>
2743int main (void)
2744{
2745 int fd = 0;
2746 size_t count = 1;
2747 char buf;
2748 off_t offset = 1;
2749 ssize_t res;
2750 res = pread (fd, &buf, count, offset);
2751 res = pwrite (fd, &buf, count, offset);
2752 return 0;
2753}
2754
2755_ACEOF
2756if ac_fn_c_try_link "$LINENO"; then :
2757 ac_cv_preadwrite=yes
2758else
2759 ac_cv_preadwrite=no
2760fi
2761rm -f core conftest.err conftest.$ac_objext \
2762 conftest$ac_exeext conftest.$ac_ext
2763fi
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_preadwrite" >&5
2765$as_echo "$ac_cv_preadwrite" >&6; }
2766test $ac_cv_preadwrite = yes &&
2767$as_echo "#define HAVE_PREADWRITE 1" >>confdefs.h
2768
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5
2771$as_echo_n "checking for sendfile... " >&6; } 4024$as_echo_n "checking for sendfile... " >&6; }
2772if test "${ac_cv_sendfile+set}" = set; then : 4025if ${ac_cv_sendfile+:} false; then :
2773 $as_echo_n "(cached) " >&6 4026 $as_echo_n "(cached) " >&6
2774else 4027else
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776/* end confdefs.h. */ 4029/* end confdefs.h. */
2777 4030
2791 int fd = 0; 4044 int fd = 0;
2792 off_t offset = 1; 4045 off_t offset = 1;
2793 size_t count = 2; 4046 size_t count = 2;
2794 ssize_t res; 4047 ssize_t res;
2795#if __linux 4048#if __linux
2796 res = sendfile (fd, fd, offset, count); 4049 res = sendfile (fd, fd, &offset, count);
2797#elif __FreeBSD__ 4050#elif __FreeBSD__
2798 res = sendfile (fd, fd, offset, count, 0, &offset, 0); 4051 res = sendfile (fd, fd, offset, count, 0, &offset, 0);
2799#elif __hpux 4052#elif __hpux
2800 res = sendfile (fd, fd, offset, count, 0, 0); 4053 res = sendfile (fd, fd, offset, count, 0, 0);
2801#endif 4054#endif
2817$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h 4070$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h
2818 4071
2819 4072
2820{ $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
2821$as_echo_n "checking for sync_file_range... " >&6; } 4074$as_echo_n "checking for sync_file_range... " >&6; }
2822if test "${ac_cv_sync_file_range+set}" = set; then : 4075if ${ac_cv_sync_file_range+:} false; then :
2823 $as_echo_n "(cached) " >&6 4076 $as_echo_n "(cached) " >&6
2824else 4077else
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826/* end confdefs.h. */ 4079/* end confdefs.h. */
2827 4080
2850$as_echo "$ac_cv_sync_file_range" >&6; } 4103$as_echo "$ac_cv_sync_file_range" >&6; }
2851test $ac_cv_sync_file_range = yes && 4104test $ac_cv_sync_file_range = yes &&
2852$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h 4105$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
2853 4106
2854 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
2855 4202
2856 4203
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5
2858$as_echo_n "checking for posix_madvise... " >&6; } 4205$as_echo_n "checking for posix_madvise... " >&6; }
2859if test "${ac_cv_posix_madvise+set}" = set; then : 4206if ${ac_cv_posix_madvise+:} false; then :
2860 $as_echo_n "(cached) " >&6 4207 $as_echo_n "(cached) " >&6
2861else 4208else
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863/* end confdefs.h. */ 4210/* end confdefs.h. */
2864 4211
2888$as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h 4235$as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h
2889 4236
2890 4237
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
2892$as_echo_n "checking for posix_fadvise... " >&6; } 4239$as_echo_n "checking for posix_fadvise... " >&6; }
2893if test "${ac_cv_posix_fadvise+set}" = set; then : 4240if ${ac_cv_posix_fadvise+:} false; then :
2894 $as_echo_n "(cached) " >&6 4241 $as_echo_n "(cached) " >&6
2895else 4242else
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h. */ 4244/* end confdefs.h. */
2898 4245
2920fi 4267fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5
2922$as_echo "$ac_cv_posix_fadvise" >&6; } 4269$as_echo "$ac_cv_posix_fadvise" >&6; }
2923test $ac_cv_posix_fadvise = yes && 4270test $ac_cv_posix_fadvise = yes &&
2924$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h 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
4384
4385
2925 4386
2926 4387
2927cat >confcache <<\_ACEOF 4388cat >confcache <<\_ACEOF
2928# This file is a shell script that caches the results of configure 4389# This file is a shell script that caches the results of configure
2929# tests run on this system so they can be shared between configure 4390# tests run on this system so they can be shared between configure
2986 t end 4447 t end
2987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2988 :end' >>confcache 4449 :end' >>confcache
2989if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4450if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2990 if test -w "$cache_file"; then 4451 if test -w "$cache_file"; then
2991 test "x$cache_file" != "x/dev/null" && 4452 if test "x$cache_file" != "x/dev/null"; then
2992 { $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
2993$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
2994 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
2995 else 4467 else
2996 { $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
2997$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4469$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2998 fi 4470 fi
2999fi 4471fi
3021 4493
3022LTLIBOBJS=$ac_ltlibobjs 4494LTLIBOBJS=$ac_ltlibobjs
3023 4495
3024 4496
3025 4497
3026: ${CONFIG_STATUS=./config.status} 4498: "${CONFIG_STATUS=./config.status}"
3027ac_write_fail=0 4499ac_write_fail=0
3028ac_clean_files_save=$ac_clean_files 4500ac_clean_files_save=$ac_clean_files
3029ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4501ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3031$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4503$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3122# (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
3123# splitting by setting IFS to empty value.) 4595# splitting by setting IFS to empty value.)
3124IFS=" "" $as_nl" 4596IFS=" "" $as_nl"
3125 4597
3126# 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=
3127case $0 in #(( 4600case $0 in #((
3128 *[\\/]* ) as_myself=$0 ;; 4601 *[\\/]* ) as_myself=$0 ;;
3129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4602 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH 4603for as_dir in $PATH
3131do 4604do
3317 if ln -s conf$$.file conf$$ 2>/dev/null; then 4790 if ln -s conf$$.file conf$$ 2>/dev/null; then
3318 as_ln_s='ln -s' 4791 as_ln_s='ln -s'
3319 # ... but there are two gotchas: 4792 # ... but there are two gotchas:
3320 # 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.
3321 # 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.
3322 # In both cases, we have to default to `cp -p'. 4795 # In both cases, we have to default to `cp -pR'.
3323 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 ||
3324 as_ln_s='cp -p' 4797 as_ln_s='cp -pR'
3325 elif ln conf$$.file conf$$ 2>/dev/null; then 4798 elif ln conf$$.file conf$$ 2>/dev/null; then
3326 as_ln_s=ln 4799 as_ln_s=ln
3327 else 4800 else
3328 as_ln_s='cp -p' 4801 as_ln_s='cp -pR'
3329 fi 4802 fi
3330else 4803else
3331 as_ln_s='cp -p' 4804 as_ln_s='cp -pR'
3332fi 4805fi
3333rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4806rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3334rmdir conf$$.dir 2>/dev/null 4807rmdir conf$$.dir 2>/dev/null
3335 4808
3336 4809
3386else 4859else
3387 test -d ./-p && rmdir ./-p 4860 test -d ./-p && rmdir ./-p
3388 as_mkdir_p=false 4861 as_mkdir_p=false
3389fi 4862fi
3390 4863
3391if 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
3392 as_test_x='test -x' 4872as_test_x='test -x'
3393else 4873as_executable_p=as_fn_executable_p
3394 if ls -dL / >/dev/null 2>&1; then
3395 as_ls_L_option=L
3396 else
3397 as_ls_L_option=
3398 fi
3399 as_test_x='
3400 eval sh -c '\''
3401 if test -d "$1"; then
3402 test -d "$1/.";
3403 else
3404 case $1 in #(
3405 -*)set "./$1";;
3406 esac;
3407 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3408 ???[sx]*):;;*)false;;esac;fi
3409 '\'' sh
3410 '
3411fi
3412as_executable_p=$as_test_x
3413 4874
3414# Sed expression to map a string onto a valid CPP name. 4875# Sed expression to map a string onto a valid CPP name.
3415as_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'"
3416 4877
3417# Sed expression to map a string onto a valid variable name. 4878# Sed expression to map a string onto a valid variable name.
3429# 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
3430# report actual input values of CONFIG_FILES etc. instead of their 4891# report actual input values of CONFIG_FILES etc. instead of their
3431# values after options handling. 4892# values after options handling.
3432ac_log=" 4893ac_log="
3433This file was extended by $as_me, which was 4894This file was extended by $as_me, which was
3434generated by GNU Autoconf 2.67. Invocation command line was 4895generated by GNU Autoconf 2.69. Invocation command line was
3435 4896
3436 CONFIG_FILES = $CONFIG_FILES 4897 CONFIG_FILES = $CONFIG_FILES
3437 CONFIG_HEADERS = $CONFIG_HEADERS 4898 CONFIG_HEADERS = $CONFIG_HEADERS
3438 CONFIG_LINKS = $CONFIG_LINKS 4899 CONFIG_LINKS = $CONFIG_LINKS
3439 CONFIG_COMMANDS = $CONFIG_COMMANDS 4900 CONFIG_COMMANDS = $CONFIG_COMMANDS
3482_ACEOF 4943_ACEOF
3483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3484ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 4945ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3485ac_cs_version="\\ 4946ac_cs_version="\\
3486config.status 4947config.status
3487configured by $0, generated by GNU Autoconf 2.67, 4948configured by $0, generated by GNU Autoconf 2.69,
3488 with options \\"\$ac_cs_config\\" 4949 with options \\"\$ac_cs_config\\"
3489 4950
3490Copyright (C) 2010 Free Software Foundation, Inc. 4951Copyright (C) 2012 Free Software Foundation, Inc.
3491This config.status script is free software; the Free Software Foundation 4952This config.status script is free software; the Free Software Foundation
3492gives unlimited permission to copy, distribute and modify it." 4953gives unlimited permission to copy, distribute and modify it."
3493 4954
3494ac_pwd='$ac_pwd' 4955ac_pwd='$ac_pwd'
3495srcdir='$srcdir' 4956srcdir='$srcdir'
3565fi 5026fi
3566 5027
3567_ACEOF 5028_ACEOF
3568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3569if \$ac_cs_recheck; then 5030if \$ac_cs_recheck; then
3570 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
3571 shift 5032 shift
3572 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5033 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3573 CONFIG_SHELL='$SHELL' 5034 CONFIG_SHELL='$SHELL'
3574 export CONFIG_SHELL 5035 export CONFIG_SHELL
3575 exec "\$@" 5036 exec "\$@"
3596for ac_config_target in $ac_config_targets 5057for ac_config_target in $ac_config_targets
3597do 5058do
3598 case $ac_config_target in 5059 case $ac_config_target in
3599 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; 5060 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;;
3600 5061
3601 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 5062 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3602 esac 5063 esac
3603done 5064done
3604 5065
3605 5066
3606# 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,
3617# Hook for its removal unless debugging. 5078# Hook for its removal unless debugging.
3618# 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:
3619# 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'.
3620$debug || 5081$debug ||
3621{ 5082{
3622 tmp= 5083 tmp= ac_tmp=
3623 trap 'exit_status=$? 5084 trap 'exit_status=$?
5085 : "${ac_tmp:=$tmp}"
3624 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5086 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3625' 0 5087' 0
3626 trap 'as_fn_exit 1' 1 2 13 15 5088 trap 'as_fn_exit 1' 1 2 13 15
3627} 5089}
3628# Create a (secure) tmp directory for tmp files. 5090# Create a (secure) tmp directory for tmp files.
3629 5091
3630{ 5092{
3631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3632 test -n "$tmp" && test -d "$tmp" 5094 test -d "$tmp"
3633} || 5095} ||
3634{ 5096{
3635 tmp=./conf$$-$RANDOM 5097 tmp=./conf$$-$RANDOM
3636 (umask 077 && mkdir "$tmp") 5098 (umask 077 && mkdir "$tmp")
3637} || 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
3638 5101
3639# Set up the scripts for CONFIG_HEADERS section. 5102# Set up the scripts for CONFIG_HEADERS section.
3640# No need to generate them if there are no CONFIG_HEADERS. 5103# No need to generate them if there are no CONFIG_HEADERS.
3641# This happens for instance with `./config.status Makefile'. 5104# This happens for instance with `./config.status Makefile'.
3642if test -n "$CONFIG_HEADERS"; then 5105if test -n "$CONFIG_HEADERS"; then
3643cat >"$tmp/defines.awk" <<\_ACAWK || 5106cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
3644BEGIN { 5107BEGIN {
3645_ACEOF 5108_ACEOF
3646 5109
3647# Transform confdefs.h into an awk script `defines.awk', embedded as 5110# Transform confdefs.h into an awk script `defines.awk', embedded as
3648# here-document in config.status, that substitutes the proper values into 5111# here-document in config.status, that substitutes the proper values into
3650 5113
3651# 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
3652# handling of long lines. 5115# handling of long lines.
3653ac_delim='%!_!# ' 5116ac_delim='%!_!# '
3654for ac_last_try in false false :; do 5117for ac_last_try in false false :; do
3655 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 5118 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
3656 if test -z "$ac_t"; then 5119 if test -z "$ac_tt"; then
3657 break 5120 break
3658 elif $ac_last_try; then 5121 elif $ac_last_try; then
3659 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5122 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
3660 else 5123 else
3661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3752 case $ac_tag in 5215 case $ac_tag in
3753 :[FHLC]) ac_mode=$ac_tag; continue;; 5216 :[FHLC]) ac_mode=$ac_tag; continue;;
3754 esac 5217 esac
3755 case $ac_mode$ac_tag in 5218 case $ac_mode$ac_tag in
3756 :[FHL]*:*);; 5219 :[FHL]*:*);;
3757 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 5220 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3758 :[FH]-) ac_tag=-:-;; 5221 :[FH]-) ac_tag=-:-;;
3759 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5222 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3760 esac 5223 esac
3761 ac_save_IFS=$IFS 5224 ac_save_IFS=$IFS
3762 IFS=: 5225 IFS=:
3771 :[FH]) 5234 :[FH])
3772 ac_file_inputs= 5235 ac_file_inputs=
3773 for ac_f 5236 for ac_f
3774 do 5237 do
3775 case $ac_f in 5238 case $ac_f in
3776 -) ac_f="$tmp/stdin";; 5239 -) ac_f="$ac_tmp/stdin";;
3777 *) # 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
3778 # (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,
3779 # because $ac_f cannot contain `:'. 5242 # because $ac_f cannot contain `:'.
3780 test -f "$ac_f" || 5243 test -f "$ac_f" ||
3781 case $ac_f in 5244 case $ac_f in
3782 [\\/$]*) false;; 5245 [\\/$]*) false;;
3783 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5246 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3784 esac || 5247 esac ||
3785 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 5248 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3786 esac 5249 esac
3787 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
3788 as_fn_append ac_file_inputs " '$ac_f'" 5251 as_fn_append ac_file_inputs " '$ac_f'"
3789 done 5252 done
3790 5253
3806 sed 's/[\\\\&|]/\\\\&/g'`;; #( 5269 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3807 *) ac_sed_conf_input=$configure_input;; 5270 *) ac_sed_conf_input=$configure_input;;
3808 esac 5271 esac
3809 5272
3810 case $ac_tag in 5273 case $ac_tag in
3811 *:-:* | *:-) cat >"$tmp/stdin" \ 5274 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 5275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3813 esac 5276 esac
3814 ;; 5277 ;;
3815 esac 5278 esac
3816 5279
3817 ac_dir=`$as_dirname -- "$ac_file" || 5280 ac_dir=`$as_dirname -- "$ac_file" ||
3880 # CONFIG_HEADER 5343 # CONFIG_HEADER
3881 # 5344 #
3882 if test x"$ac_file" != x-; then 5345 if test x"$ac_file" != x-; then
3883 { 5346 {
3884 $as_echo "/* $configure_input */" \ 5347 $as_echo "/* $configure_input */" \
3885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 5348 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
3886 } >"$tmp/config.h" \ 5349 } >"$ac_tmp/config.h" \
3887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3888 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
3889 { $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
3890$as_echo "$as_me: $ac_file is unchanged" >&6;} 5353$as_echo "$as_me: $ac_file is unchanged" >&6;}
3891 else 5354 else
3892 rm -f "$ac_file" 5355 rm -f "$ac_file"
3893 mv "$tmp/config.h" "$ac_file" \ 5356 mv "$ac_tmp/config.h" "$ac_file" \
3894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3895 fi 5358 fi
3896 else 5359 else
3897 $as_echo "/* $configure_input */" \ 5360 $as_echo "/* $configure_input */" \
3898 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 5361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
3899 || as_fn_error $? "could not create -" "$LINENO" 5 5362 || as_fn_error $? "could not create -" "$LINENO" 5
3900 fi 5363 fi
3901 ;; 5364 ;;
3902 5365
3903 5366

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines