… | |
… | |
5252 | |
5252 | |
5253 | #include <sys/types.h> |
5253 | #include <sys/types.h> |
5254 | #include <sys/socket.h> |
5254 | #include <sys/socket.h> |
5255 | int main (void) |
5255 | int main (void) |
5256 | { |
5256 | { |
5257 | int res; |
|
|
5258 | res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); |
5257 | int res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); |
5259 | return 0; |
5258 | return 0; |
5260 | } |
5259 | } |
5261 | |
5260 | |
5262 | _ACEOF |
5261 | _ACEOF |
5263 | if ac_fn_c_try_link "$LINENO" |
5262 | if ac_fn_c_try_link "$LINENO" |
… | |
… | |
5280 | then : |
5279 | then : |
5281 | printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h |
5280 | printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h |
5282 | |
5281 | |
5283 | fi |
5282 | fi |
5284 | |
5283 | |
5285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount/umount" >&5 |
5284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount" >&5 |
5286 | printf %s "checking for mount/umount... " >&6; } |
5285 | printf %s "checking for mount... " >&6; } |
5287 | if test ${ac_cv_mount+y} |
5286 | if test ${ac_cv_mount+y} |
5288 | then : |
5287 | then : |
5289 | printf %s "(cached) " >&6 |
5288 | printf %s "(cached) " >&6 |
5290 | else $as_nop |
5289 | else $as_nop |
5291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5292 | /* end confdefs.h. */ |
5291 | /* end confdefs.h. */ |
5293 | |
5292 | |
5294 | #include <sys/mount.h> |
5293 | #include <sys/mount.h> |
5295 | int main (void) |
5294 | int main (void) |
5296 | { |
5295 | { |
5297 | int res; |
|
|
5298 | res = mount ("path", "path", "fstype", MS_RDONLY, 0); |
5296 | int res = mount ("path", "path", "fstype", MS_RDONLY, 0); |
5299 | res = umount ("path"); |
|
|
5300 | return 0; |
5297 | return 0; |
5301 | } |
5298 | } |
5302 | |
5299 | |
5303 | _ACEOF |
5300 | _ACEOF |
5304 | if ac_fn_c_try_link "$LINENO" |
5301 | if ac_fn_c_try_link "$LINENO" |
… | |
… | |
5313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5 |
5310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5 |
5314 | printf "%s\n" "$ac_cv_mount" >&6; } |
5311 | printf "%s\n" "$ac_cv_mount" >&6; } |
5315 | test $ac_cv_mount = yes && |
5312 | test $ac_cv_mount = yes && |
5316 | printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h |
5313 | printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h |
5317 | |
5314 | |
|
|
5315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount" >&5 |
|
|
5316 | printf %s "checking for umount... " >&6; } |
|
|
5317 | if test ${ac_cv_umount+y} |
|
|
5318 | then : |
|
|
5319 | printf %s "(cached) " >&6 |
|
|
5320 | else $as_nop |
|
|
5321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5322 | /* end confdefs.h. */ |
|
|
5323 | |
|
|
5324 | #include <sys/mount.h> |
|
|
5325 | int main (void) |
|
|
5326 | { |
|
|
5327 | int res = umount ("path"); |
|
|
5328 | return 0; |
|
|
5329 | } |
|
|
5330 | |
|
|
5331 | _ACEOF |
|
|
5332 | if ac_fn_c_try_link "$LINENO" |
|
|
5333 | then : |
|
|
5334 | ac_cv_umount=yes |
|
|
5335 | else $as_nop |
|
|
5336 | ac_cv_umount=no |
|
|
5337 | fi |
|
|
5338 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5339 | conftest$ac_exeext conftest.$ac_ext |
|
|
5340 | fi |
|
|
5341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount" >&5 |
|
|
5342 | printf "%s\n" "$ac_cv_umount" >&6; } |
|
|
5343 | test $ac_cv_umount = yes && |
|
|
5344 | printf "%s\n" "#define HAVE_UMOUNT 1" >>confdefs.h |
|
|
5345 | |
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5 |
5346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5 |
5319 | printf %s "checking for umount2... " >&6; } |
5347 | printf %s "checking for umount2... " >&6; } |
5320 | if test ${ac_cv_umount2+y} |
5348 | if test ${ac_cv_umount2+y} |
5321 | then : |
5349 | then : |
5322 | printf %s "(cached) " >&6 |
5350 | printf %s "(cached) " >&6 |
… | |
… | |
5325 | /* end confdefs.h. */ |
5353 | /* end confdefs.h. */ |
5326 | |
5354 | |
5327 | #include <sys/mount.h> |
5355 | #include <sys/mount.h> |
5328 | int main (void) |
5356 | int main (void) |
5329 | { |
5357 | { |
5330 | int res; |
|
|
5331 | res = umount2 ("path", MNT_FORCE|MNT_DETACH); |
5358 | int res = umount2 ("path", MNT_FORCE|MNT_DETACH); |
5332 | return 0; |
5359 | return 0; |
5333 | } |
5360 | } |
5334 | |
5361 | |
5335 | _ACEOF |
5362 | _ACEOF |
5336 | if ac_fn_c_try_link "$LINENO" |
5363 | if ac_fn_c_try_link "$LINENO" |