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

Comparing IO-AIO/configure (file contents):
Revision 1.19 by root, Fri Jun 23 22:15:24 2017 UTC vs.
Revision 1.25 by root, Tue Aug 14 11:44:52 2018 UTC

2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019ac_compiler_gnu=$ac_cv_c_compiler_gnu 2019ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 2020
2021 2021
2022 2022
2023ac_config_headers="$ac_config_headers libeio/config.h" 2023ac_config_headers="$ac_config_headers config.h"
2024 2024
2025 2025
2026 2026
2027ac_ext=c 2027ac_ext=c
2028ac_cpp='$CPP $CPPFLAGS' 2028ac_cpp='$CPP $CPPFLAGS'
4198$as_echo "$ac_cv_prctl_set_name" >&6; } 4198$as_echo "$ac_cv_prctl_set_name" >&6; }
4199test $ac_cv_prctl_set_name = yes && 4199test $ac_cv_prctl_set_name = yes &&
4200$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h 4200$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h
4201 4201
4202 4202
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5
4204$as_echo_n "checking for posix_close... " >&6; }
4205if ${ac_cv_posix_close+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207else
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h. */
4210
4211#include <unistd.h>
4212int res;
4213int main (void)
4214{
4215 res = posix_close (0, 0); /* we do not need any flags */
4216 return 0;
4217}
4218
4219_ACEOF
4220if ac_fn_c_try_link "$LINENO"; then :
4221 ac_cv_posix_close=yes
4222else
4223 ac_cv_posix_close=no
4224fi
4225rm -f core conftest.err conftest.$ac_objext \
4226 conftest$ac_exeext conftest.$ac_ext
4227fi
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5
4229$as_echo "$ac_cv_posix_close" >&6; }
4230test $ac_cv_posix_close = yes &&
4231$as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h
4232
4233
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5
4235$as_echo_n "checking for renameat2... " >&6; }
4236if ${ac_cv_renameat2+:} false; then :
4237 $as_echo_n "(cached) " >&6
4238else
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h. */
4241
4242#include <unistd.h>
4243#include <sys/syscall.h>
4244#include <linux/fs.h>
4245int res;
4246int main (void)
4247{
4248 res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE);
4249 return 0;
4250}
4251
4252_ACEOF
4253if ac_fn_c_try_link "$LINENO"; then :
4254 ac_cv_renameat2=yes
4255else
4256 ac_cv_renameat2=no
4257fi
4258rm -f core conftest.err conftest.$ac_objext \
4259 conftest$ac_exeext conftest.$ac_ext
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5
4262$as_echo "$ac_cv_renameat2" >&6; }
4263test $ac_cv_renameat2 = yes &&
4264$as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h
4265
4266
4267
4268
4269# for these to work, you need to run autoheader in IO::AIO, not libeio :(
4270
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5
4272$as_echo_n "checking for set/getrlimit... " >&6; }
4273if ${ac_cv_rlimits+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275else
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277/* end confdefs.h. */
4278
4279#include <sys/time.h>
4280#include <sys/resource.h>
4281int res;
4282int main (void)
4283{
4284 struct rlimit srl;
4285 srl.rlim_cur = srl.rlim_max = RLIM_INFINITY;
4286 res = getrlimit (RLIMIT_NOFILE, &srl);
4287 res = setrlimit (RLIMIT_NOFILE, &srl);
4288 return 0;
4289}
4290
4291_ACEOF
4292if ac_fn_c_try_link "$LINENO"; then :
4293 ac_cv_rlimits=yes
4294else
4295 ac_cv_rlimits=no
4296fi
4297rm -f core conftest.err conftest.$ac_objext \
4298 conftest$ac_exeext conftest.$ac_ext
4299fi
4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5
4301$as_echo "$ac_cv_rlimits" >&6; }
4302test $ac_cv_rlimits = yes &&
4303$as_echo "#define HAVE_RLIMITS 1" >>confdefs.h
4304
4203 4305
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5
4205$as_echo_n "checking for posix_madvise... " >&6; } 4307$as_echo_n "checking for posix_madvise... " >&6; }
4206if ${ac_cv_posix_madvise+:} false; then : 4308if ${ac_cv_posix_madvise+:} false; then :
4207 $as_echo_n "(cached) " >&6 4309 $as_echo_n "(cached) " >&6
4283fi 4385fi
4284 4386
4285done 4387done
4286 4388
4287 4389
4390for ac_header in sys/prctl.h sys/sysmacros.h
4391do :
4392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4394if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4395 cat >>confdefs.h <<_ACEOF
4396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4397_ACEOF
4398
4399fi
4400
4401done
4402
4403
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 4404{ $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; } 4405$as_echo_n "checking for splice, vmsplice and tee... " >&6; }
4290if ${ac_cv_linux_splice+:} false; then : 4406if ${ac_cv_linux_splice+:} false; then :
4291 $as_echo_n "(cached) " >&6 4407 $as_echo_n "(cached) " >&6
4292else 4408else
4348$as_echo "$ac_cv_pipe2" >&6; } 4464$as_echo "$ac_cv_pipe2" >&6; }
4349test $ac_cv_pipe2 = yes && 4465test $ac_cv_pipe2 = yes &&
4350$as_echo "#define HAVE_PIPE2 1" >>confdefs.h 4466$as_echo "#define HAVE_PIPE2 1" >>confdefs.h
4351 4467
4352 4468
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
4354$as_echo_n "checking for renameat2... " >&6; } 4470$as_echo_n "checking for eventfd... " >&6; }
4355if ${ac_cv_renameat2+:} false; then : 4471if ${ac_cv_eventfd+:} false; then :
4356 $as_echo_n "(cached) " >&6 4472 $as_echo_n "(cached) " >&6
4357else 4473else
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h. */ 4475/* end confdefs.h. */
4360 4476
4361#include <unistd.h> 4477#include <sys/eventfd.h>
4362#include <sys/syscall.h>
4363#include <linux/fs.h>
4364int res; 4478int res;
4365int main (void) 4479int main (void)
4366{ 4480{
4367 res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); 4481 res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK);
4368 return 0; 4482 return 0;
4369} 4483}
4370 4484
4371_ACEOF 4485_ACEOF
4372if ac_fn_c_try_link "$LINENO"; then : 4486if ac_fn_c_try_link "$LINENO"; then :
4373 ac_cv_renameat2=yes 4487 ac_cv_eventfd=yes
4374else 4488else
4375 ac_cv_renameat2=no 4489 ac_cv_eventfd=no
4376fi 4490fi
4377rm -f core conftest.err conftest.$ac_objext \ 4491rm -f core conftest.err conftest.$ac_objext \
4378 conftest$ac_exeext conftest.$ac_ext 4492 conftest$ac_exeext conftest.$ac_ext
4379fi 4493fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5
4381$as_echo "$ac_cv_renameat2" >&6; } 4495$as_echo "$ac_cv_eventfd" >&6; }
4382test $ac_cv_renameat2 = yes && 4496test $ac_cv_eventfd = yes &&
4383$as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h 4497$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
4498
4499
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5
4501$as_echo_n "checking for timerfd... " >&6; }
4502if ${ac_cv_timerfd+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506/* end confdefs.h. */
4507
4508#include <sys/timerfd.h>
4509int res;
4510int main (void)
4511{
4512 struct itimerspec its;
4513 res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK);
4514 res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0);
4515 res = timerfd_gettime (res, &its);
4516 return 0;
4517}
4518
4519_ACEOF
4520if ac_fn_c_try_link "$LINENO"; then :
4521 ac_cv_timerfd=yes
4522else
4523 ac_cv_timerfd=no
4524fi
4525rm -f core conftest.err conftest.$ac_objext \
4526 conftest$ac_exeext conftest.$ac_ext
4527fi
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5
4529$as_echo "$ac_cv_timerfd" >&6; }
4530test $ac_cv_timerfd = yes &&
4531$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
4384 4532
4385 4533
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5
4387$as_echo_n "checking for copy_file_range... " >&6; } 4535$as_echo_n "checking for copy_file_range... " >&6; }
4388if ${ac_cv_copy_file_range+:} false; then : 4536if ${ac_cv_copy_file_range+:} false; then :
4415$as_echo "$ac_cv_copy_file_range" >&6; } 4563$as_echo "$ac_cv_copy_file_range" >&6; }
4416test $ac_cv_copy_file_range = yes && 4564test $ac_cv_copy_file_range = yes &&
4417$as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h 4565$as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
4418 4566
4419 4567
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5
4569$as_echo_n "checking for st_xtimensec... " >&6; }
4570if ${ac_cv_xtimensec+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572else
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h. */
4420 4575
4576#include "EXTERN.h"
4577#include "perl.h"
4578#include "XSUB.h"
4579
4580int res;
4581int main (void)
4582{
4583 return PL_statcache.st_atimensec
4584 + PL_statcache.st_mtimensec
4585 + PL_statcache.st_ctimensec;
4586 return 0;
4587}
4588
4589_ACEOF
4590if ac_fn_c_try_compile "$LINENO"; then :
4591 ac_cv_xtimensec=yes
4592else
4593 ac_cv_xtimensec=no
4594fi
4595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5
4598$as_echo "$ac_cv_xtimensec" >&6; }
4599test $ac_cv_xtimensec = yes &&
4600$as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h
4601
4602
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5
4604$as_echo_n "checking for st_xtimespec... " >&6; }
4605if ${ac_cv_xtimespec+:} false; then :
4606 $as_echo_n "(cached) " >&6
4607else
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h. */
4610
4611#include "EXTERN.h"
4612#include "perl.h"
4613#include "XSUB.h"
4614
4615int res;
4616int main (void)
4617{
4618 return PL_statcache.st_atim.tv_nsec
4619 + PL_statcache.st_mtim.tv_nsec
4620 + PL_statcache.st_ctim.tv_nsec;
4621}
4622
4623_ACEOF
4624if ac_fn_c_try_compile "$LINENO"; then :
4625 ac_cv_xtimespec=yes
4626else
4627 ac_cv_xtimespec=no
4628fi
4629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630fi
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5
4632$as_echo "$ac_cv_xtimespec" >&6; }
4633test $ac_cv_xtimespec = yes &&
4634$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h
4635
4636
4637# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec?
4421 4638
4422cat >confcache <<\_ACEOF 4639cat >confcache <<\_ACEOF
4423# This file is a shell script that caches the results of configure 4640# This file is a shell script that caches the results of configure
4424# tests run on this system so they can be shared between configure 4641# tests run on this system so they can be shared between configure
4425# scripts and configure runs, see configure's option --config-cache. 4642# scripts and configure runs, see configure's option --config-cache.
5089 5306
5090# Handling of arguments. 5307# Handling of arguments.
5091for ac_config_target in $ac_config_targets 5308for ac_config_target in $ac_config_targets
5092do 5309do
5093 case $ac_config_target in 5310 case $ac_config_target in
5094 "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; 5311 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5095 5312
5096 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5313 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5097 esac 5314 esac
5098done 5315done
5099 5316
5434if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5651if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5436$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5653$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5437fi 5654fi
5438 5655
5656

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines