… | |
… | |
648 | htmldir |
648 | htmldir |
649 | infodir |
649 | infodir |
650 | docdir |
650 | docdir |
651 | oldincludedir |
651 | oldincludedir |
652 | includedir |
652 | includedir |
|
|
653 | runstatedir |
653 | localstatedir |
654 | localstatedir |
654 | sharedstatedir |
655 | sharedstatedir |
655 | sysconfdir |
656 | sysconfdir |
656 | datadir |
657 | datadir |
657 | datarootdir |
658 | datarootdir |
… | |
… | |
718 | datarootdir='${prefix}/share' |
719 | datarootdir='${prefix}/share' |
719 | datadir='${datarootdir}' |
720 | datadir='${datarootdir}' |
720 | sysconfdir='${prefix}/etc' |
721 | sysconfdir='${prefix}/etc' |
721 | sharedstatedir='${prefix}/com' |
722 | sharedstatedir='${prefix}/com' |
722 | localstatedir='${prefix}/var' |
723 | localstatedir='${prefix}/var' |
|
|
724 | runstatedir='${localstatedir}/run' |
723 | includedir='${prefix}/include' |
725 | includedir='${prefix}/include' |
724 | oldincludedir='/usr/include' |
726 | oldincludedir='/usr/include' |
725 | docdir='${datarootdir}/doc/${PACKAGE}' |
727 | docdir='${datarootdir}/doc/${PACKAGE}' |
726 | infodir='${datarootdir}/info' |
728 | infodir='${datarootdir}/info' |
727 | htmldir='${docdir}' |
729 | htmldir='${docdir}' |
… | |
… | |
970 | |
972 | |
971 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
973 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
972 | | -silent | --silent | --silen | --sile | --sil) |
974 | | -silent | --silent | --silen | --sile | --sil) |
973 | silent=yes ;; |
975 | silent=yes ;; |
974 | |
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 | |
975 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
986 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
976 | ac_prev=sbindir ;; |
987 | ac_prev=sbindir ;; |
977 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
988 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
978 | | --sbi=* | --sb=*) |
989 | | --sbi=* | --sb=*) |
979 | sbindir=$ac_optarg ;; |
990 | sbindir=$ac_optarg ;; |
… | |
… | |
1107 | |
1118 | |
1108 | # Check all directory arguments for consistency. |
1119 | # Check all directory arguments for consistency. |
1109 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1120 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1110 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1121 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1111 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1122 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1112 | libdir localedir mandir |
1123 | libdir localedir mandir runstatedir |
1113 | do |
1124 | do |
1114 | eval ac_val=\$$ac_var |
1125 | eval ac_val=\$$ac_var |
1115 | # Remove trailing slashes. |
1126 | # Remove trailing slashes. |
1116 | case $ac_val in |
1127 | case $ac_val in |
1117 | */ ) |
1128 | */ ) |
… | |
… | |
1260 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1271 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1261 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1272 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1262 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1273 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1263 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1274 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1264 | --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] |
1265 | --libdir=DIR object code libraries [EPREFIX/lib] |
1277 | --libdir=DIR object code libraries [EPREFIX/lib] |
1266 | --includedir=DIR C header files [PREFIX/include] |
1278 | --includedir=DIR C header files [PREFIX/include] |
1267 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1279 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1268 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1280 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1269 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1281 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
… | |
… | |
4032 | int fd = 0; |
4044 | int fd = 0; |
4033 | off_t offset = 1; |
4045 | off_t offset = 1; |
4034 | size_t count = 2; |
4046 | size_t count = 2; |
4035 | ssize_t res; |
4047 | ssize_t res; |
4036 | #if __linux |
4048 | #if __linux |
4037 | res = sendfile (fd, fd, offset, count); |
4049 | res = sendfile (fd, fd, &offset, count); |
4038 | #elif __FreeBSD__ |
4050 | #elif __FreeBSD__ |
4039 | res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
4051 | res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
4040 | #elif __hpux |
4052 | #elif __hpux |
4041 | res = sendfile (fd, fd, offset, count, 0, 0); |
4053 | res = sendfile (fd, fd, offset, count, 0, 0); |
4042 | #endif |
4054 | #endif |
… | |
… | |
4167 | /* end confdefs.h. */ |
4179 | /* end confdefs.h. */ |
4168 | |
4180 | |
4169 | #include <sys/prctl.h> |
4181 | #include <sys/prctl.h> |
4170 | int main (void) |
4182 | int main (void) |
4171 | { |
4183 | { |
4172 | char name = "test123"; |
4184 | char *name = "test123"; |
4173 | int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0); |
4185 | int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0); |
4174 | } |
4186 | } |
4175 | |
4187 | |
4176 | _ACEOF |
4188 | _ACEOF |
4177 | if ac_fn_c_try_link "$LINENO"; then : |
4189 | if ac_fn_c_try_link "$LINENO"; then : |
… | |
… | |
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5 |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5 |
4186 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4198 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4187 | test $ac_cv_prctl_set_name = yes && |
4199 | test $ac_cv_prctl_set_name = yes && |
4188 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4200 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4189 | |
4201 | |
|
|
4202 | |
|
|
4203 | |
|
|
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
|
|
4205 | $as_echo_n "checking for set/getrlimit... " >&6; } |
|
|
4206 | if ${ac_cv_rlimits+:} false; then : |
|
|
4207 | $as_echo_n "(cached) " >&6 |
|
|
4208 | else |
|
|
4209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4210 | /* end confdefs.h. */ |
|
|
4211 | |
|
|
4212 | #include <sys/time.h> |
|
|
4213 | #include <sys/resource.h> |
|
|
4214 | int res; |
|
|
4215 | int main (void) |
|
|
4216 | { |
|
|
4217 | struct rlimit srl; |
|
|
4218 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
|
|
4219 | res = getrlimit (RLIMIT_NOFILE, &srl); |
|
|
4220 | res = setrlimit (RLIMIT_NOFILE, &srl); |
|
|
4221 | return 0; |
|
|
4222 | } |
|
|
4223 | |
|
|
4224 | _ACEOF |
|
|
4225 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4226 | ac_cv_rlimits=yes |
|
|
4227 | else |
|
|
4228 | ac_cv_rlimits=no |
|
|
4229 | fi |
|
|
4230 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4231 | conftest$ac_exeext conftest.$ac_ext |
|
|
4232 | fi |
|
|
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5 |
|
|
4234 | $as_echo "$ac_cv_rlimits" >&6; } |
|
|
4235 | test $ac_cv_rlimits = yes && |
|
|
4236 | $as_echo "#define HAVE_RLIMITS 1" >>confdefs.h |
4190 | |
4237 | |
4191 | |
4238 | |
4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4193 | $as_echo_n "checking for posix_madvise... " >&6; } |
4240 | $as_echo_n "checking for posix_madvise... " >&6; } |
4194 | if ${ac_cv_posix_madvise+:} false; then : |
4241 | if ${ac_cv_posix_madvise+:} false; then : |
… | |
… | |
4304 | $as_echo "$ac_cv_linux_splice" >&6; } |
4351 | $as_echo "$ac_cv_linux_splice" >&6; } |
4305 | test $ac_cv_linux_splice = yes && |
4352 | test $ac_cv_linux_splice = yes && |
4306 | $as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h |
4353 | $as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h |
4307 | |
4354 | |
4308 | |
4355 | |
4309 | |
|
|
4310 | |
|
|
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5 |
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5 |
4312 | $as_echo_n "checking for pipe2... " >&6; } |
4357 | $as_echo_n "checking for pipe2... " >&6; } |
4313 | if ${ac_cv_pipe2+:} false; then : |
4358 | if ${ac_cv_pipe2+:} false; then : |
4314 | $as_echo_n "(cached) " >&6 |
4359 | $as_echo_n "(cached) " >&6 |
4315 | else |
4360 | else |
… | |
… | |
4336 | fi |
4381 | fi |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5 |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5 |
4338 | $as_echo "$ac_cv_pipe2" >&6; } |
4383 | $as_echo "$ac_cv_pipe2" >&6; } |
4339 | test $ac_cv_pipe2 = yes && |
4384 | test $ac_cv_pipe2 = yes && |
4340 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4385 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
|
|
4386 | |
|
|
4387 | |
|
|
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
|
|
4389 | $as_echo_n "checking for eventfd... " >&6; } |
|
|
4390 | if ${ac_cv_eventfd+:} false; then : |
|
|
4391 | $as_echo_n "(cached) " >&6 |
|
|
4392 | else |
|
|
4393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4394 | /* end confdefs.h. */ |
|
|
4395 | |
|
|
4396 | #include <sys/eventfd.h> |
|
|
4397 | int res; |
|
|
4398 | int main (void) |
|
|
4399 | { |
|
|
4400 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
4401 | return 0; |
|
|
4402 | } |
|
|
4403 | |
|
|
4404 | _ACEOF |
|
|
4405 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4406 | ac_cv_eventfd=yes |
|
|
4407 | else |
|
|
4408 | ac_cv_eventfd=no |
|
|
4409 | fi |
|
|
4410 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4411 | conftest$ac_exeext conftest.$ac_ext |
|
|
4412 | fi |
|
|
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
|
|
4414 | $as_echo "$ac_cv_eventfd" >&6; } |
|
|
4415 | test $ac_cv_eventfd = yes && |
|
|
4416 | $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4417 | |
|
|
4418 | |
|
|
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 |
|
|
4420 | $as_echo_n "checking for timerfd... " >&6; } |
|
|
4421 | if ${ac_cv_timerfd+:} false; then : |
|
|
4422 | $as_echo_n "(cached) " >&6 |
|
|
4423 | else |
|
|
4424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4425 | /* end confdefs.h. */ |
|
|
4426 | |
|
|
4427 | #include <sys/timerfd.h> |
|
|
4428 | int res; |
|
|
4429 | int main (void) |
|
|
4430 | { |
|
|
4431 | struct itimerspec its; |
|
|
4432 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4433 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4434 | res = timerfd_gettime (res, &its); |
|
|
4435 | return 0; |
|
|
4436 | } |
|
|
4437 | |
|
|
4438 | _ACEOF |
|
|
4439 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4440 | ac_cv_timerfd=yes |
|
|
4441 | else |
|
|
4442 | ac_cv_timerfd=no |
|
|
4443 | fi |
|
|
4444 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4445 | conftest$ac_exeext conftest.$ac_ext |
|
|
4446 | fi |
|
|
4447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
|
|
4448 | $as_echo "$ac_cv_timerfd" >&6; } |
|
|
4449 | test $ac_cv_timerfd = yes && |
|
|
4450 | $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
4451 | |
|
|
4452 | |
|
|
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
|
|
4454 | $as_echo_n "checking for renameat2... " >&6; } |
|
|
4455 | if ${ac_cv_renameat2+:} false; then : |
|
|
4456 | $as_echo_n "(cached) " >&6 |
|
|
4457 | else |
|
|
4458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4459 | /* end confdefs.h. */ |
|
|
4460 | |
|
|
4461 | #include <unistd.h> |
|
|
4462 | #include <sys/syscall.h> |
|
|
4463 | #include <linux/fs.h> |
|
|
4464 | int res; |
|
|
4465 | int main (void) |
|
|
4466 | { |
|
|
4467 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
|
|
4468 | return 0; |
|
|
4469 | } |
|
|
4470 | |
|
|
4471 | _ACEOF |
|
|
4472 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4473 | ac_cv_renameat2=yes |
|
|
4474 | else |
|
|
4475 | ac_cv_renameat2=no |
|
|
4476 | fi |
|
|
4477 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4478 | conftest$ac_exeext conftest.$ac_ext |
|
|
4479 | fi |
|
|
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
|
|
4481 | $as_echo "$ac_cv_renameat2" >&6; } |
|
|
4482 | test $ac_cv_renameat2 = yes && |
|
|
4483 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4484 | |
|
|
4485 | |
|
|
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4487 | $as_echo_n "checking for copy_file_range... " >&6; } |
|
|
4488 | if ${ac_cv_copy_file_range+:} false; then : |
|
|
4489 | $as_echo_n "(cached) " >&6 |
|
|
4490 | else |
|
|
4491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4492 | /* end confdefs.h. */ |
|
|
4493 | |
|
|
4494 | #include <unistd.h> |
|
|
4495 | #include <sys/syscall.h> |
|
|
4496 | /*#include <linux/copy.h>*/ |
|
|
4497 | int res; |
|
|
4498 | int main (void) |
|
|
4499 | { |
|
|
4500 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
4501 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
4502 | return 0; |
|
|
4503 | } |
|
|
4504 | |
|
|
4505 | _ACEOF |
|
|
4506 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4507 | ac_cv_copy_file_range=yes |
|
|
4508 | else |
|
|
4509 | ac_cv_copy_file_range=no |
|
|
4510 | fi |
|
|
4511 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4512 | conftest$ac_exeext conftest.$ac_ext |
|
|
4513 | fi |
|
|
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
4515 | $as_echo "$ac_cv_copy_file_range" >&6; } |
|
|
4516 | test $ac_cv_copy_file_range = yes && |
|
|
4517 | $as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
4518 | |
|
|
4519 | |
|
|
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
|
|
4521 | $as_echo_n "checking for posix_close... " >&6; } |
|
|
4522 | if ${ac_cv_posix_close+:} false; then : |
|
|
4523 | $as_echo_n "(cached) " >&6 |
|
|
4524 | else |
|
|
4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4526 | /* end confdefs.h. */ |
|
|
4527 | |
|
|
4528 | #include <unistd.h> |
|
|
4529 | int res; |
|
|
4530 | int main (void) |
|
|
4531 | { |
|
|
4532 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
4533 | return 0; |
|
|
4534 | } |
|
|
4535 | |
|
|
4536 | _ACEOF |
|
|
4537 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
4538 | ac_cv_posix_close=yes |
|
|
4539 | else |
|
|
4540 | ac_cv_posix_close=no |
|
|
4541 | fi |
|
|
4542 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
4543 | conftest$ac_exeext conftest.$ac_ext |
|
|
4544 | fi |
|
|
4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
|
|
4546 | $as_echo "$ac_cv_posix_close" >&6; } |
|
|
4547 | test $ac_cv_posix_close = yes && |
|
|
4548 | $as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
|
|
4549 | |
|
|
4550 | |
4341 | |
4551 | |
4342 | |
4552 | |
4343 | cat >confcache <<\_ACEOF |
4553 | cat >confcache <<\_ACEOF |
4344 | # This file is a shell script that caches the results of configure |
4554 | # This file is a shell script that caches the results of configure |
4345 | # tests run on this system so they can be shared between configure |
4555 | # tests run on this system so they can be shared between configure |