*** acfunctions.m4.~1.33.~ Wed Apr 25 08:13:08 2001 --- acfunctions.m4 Tue May 22 13:54:07 2001 *************** *** 670,694 **** [AC_CACHE_CHECK( [whether lstat dereferences a symlink specified with a trailing slash], [ac_cv_func_lstat_dereferences_slashed_symlink], ! [rm -f conftest.sym conftest.file echo >conftest.file ! if ln -s conftest.file conftest.sym; then AC_RUN_IFELSE([AC_LANG_PROGRAM(address@hidden:@include @%:@include ], [struct stat sbuf; /* Linux will dereference the symlink and fail. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ ! exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);])], [ac_cv_func_lstat_dereferences_slashed_symlink=yes], [ac_cv_func_lstat_dereferences_slashed_symlink=no], [ac_cv_func_lstat_dereferences_slashed_symlink=no]) else ! # If the `ln -s' command failed, then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi ! rm -f conftest.sym conftest.file ]) test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && --- 670,694 ---- [AC_CACHE_CHECK( [whether lstat dereferences a symlink specified with a trailing slash], [ac_cv_func_lstat_dereferences_slashed_symlink], ! [rm -f conf$$.sym conf$$.file echo >conftest.file ! if test "$as_ln_s" = "ln -s" && ln -s conf$$.file conf$$.sym; then AC_RUN_IFELSE([AC_LANG_PROGRAM(address@hidden:@include @%:@include ], [struct stat sbuf; /* Linux will dereference the symlink and fail. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ ! exit (lstat ("conf$$.sym/", &sbuf) ? 0 : 1);])], [ac_cv_func_lstat_dereferences_slashed_symlink=yes], [ac_cv_func_lstat_dereferences_slashed_symlink=no], [ac_cv_func_lstat_dereferences_slashed_symlink=no]) else ! # If the `ln -s' command failed then we probably don't even # have an lstat function. ac_cv_func_lstat_dereferences_slashed_symlink=no fi ! rm -f conf$$.sym conf$$.file ]) test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&