… | |
… | |
5273 | printf "%s\n" "$ac_cv_accept4" >&6; } |
5273 | printf "%s\n" "$ac_cv_accept4" >&6; } |
5274 | test $ac_cv_accept4 = yes && |
5274 | test $ac_cv_accept4 = yes && |
5275 | printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h |
5275 | printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h |
5276 | |
5276 | |
5277 | |
5277 | |
|
|
5278 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" |
|
|
5279 | if test "x$ac_cv_header_sys_mount_h" = xyes |
|
|
5280 | then : |
|
|
5281 | printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h |
|
|
5282 | |
|
|
5283 | fi |
|
|
5284 | |
|
|
5285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount/umount" >&5 |
|
|
5286 | printf %s "checking for mount/umount... " >&6; } |
|
|
5287 | if test ${ac_cv_mount+y} |
|
|
5288 | then : |
|
|
5289 | printf %s "(cached) " >&6 |
|
|
5290 | else $as_nop |
|
|
5291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5292 | /* end confdefs.h. */ |
|
|
5293 | |
|
|
5294 | #include <sys/mount.h> |
|
|
5295 | int main (void) |
|
|
5296 | { |
|
|
5297 | int res; |
|
|
5298 | res = mount ("path", "path", "fstype", MS_RDONLY, 0); |
|
|
5299 | res = umount ("path"); |
|
|
5300 | return 0; |
|
|
5301 | } |
|
|
5302 | |
|
|
5303 | _ACEOF |
|
|
5304 | if ac_fn_c_try_link "$LINENO" |
|
|
5305 | then : |
|
|
5306 | ac_cv_mount=yes |
|
|
5307 | else $as_nop |
|
|
5308 | ac_cv_mount=no |
|
|
5309 | fi |
|
|
5310 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5311 | conftest$ac_exeext conftest.$ac_ext |
|
|
5312 | fi |
|
|
5313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5 |
|
|
5314 | printf "%s\n" "$ac_cv_mount" >&6; } |
|
|
5315 | test $ac_cv_mount = yes && |
|
|
5316 | printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h |
|
|
5317 | |
|
|
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5 |
|
|
5319 | printf %s "checking for umount2... " >&6; } |
|
|
5320 | if test ${ac_cv_umount2+y} |
|
|
5321 | then : |
|
|
5322 | printf %s "(cached) " >&6 |
|
|
5323 | else $as_nop |
|
|
5324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5325 | /* end confdefs.h. */ |
|
|
5326 | |
|
|
5327 | #include <sys/mount.h> |
|
|
5328 | int main (void) |
|
|
5329 | { |
|
|
5330 | int res; |
|
|
5331 | res = umount2 ("path", MNT_FORCE|MNT_DETACH); |
|
|
5332 | return 0; |
|
|
5333 | } |
|
|
5334 | |
|
|
5335 | _ACEOF |
|
|
5336 | if ac_fn_c_try_link "$LINENO" |
|
|
5337 | then : |
|
|
5338 | ac_cv_umount2=yes |
|
|
5339 | else $as_nop |
|
|
5340 | ac_cv_umount2=no |
|
|
5341 | fi |
|
|
5342 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5343 | conftest$ac_exeext conftest.$ac_ext |
|
|
5344 | fi |
|
|
5345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount2" >&5 |
|
|
5346 | printf "%s\n" "$ac_cv_umount2" >&6; } |
|
|
5347 | test $ac_cv_umount2 = yes && |
|
|
5348 | printf "%s\n" "#define HAVE_UMOUNT2 1" >>confdefs.h |
|
|
5349 | |
|
|
5350 | |
5278 | cat >confcache <<\_ACEOF |
5351 | cat >confcache <<\_ACEOF |
5279 | # This file is a shell script that caches the results of configure |
5352 | # This file is a shell script that caches the results of configure |
5280 | # tests run on this system so they can be shared between configure |
5353 | # tests run on this system so they can be shared between configure |
5281 | # scripts and configure runs, see configure's option --config-cache. |
5354 | # scripts and configure runs, see configure's option --config-cache. |
5282 | # It is not useful on other systems. If it contains results you don't |
5355 | # It is not useful on other systems. If it contains results you don't |