diff options
author | Jim Meyering <jim@meyering.net> | 1999-12-19 09:33:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-12-19 09:33:18 +0000 |
commit | 68a35b96cee77059fd5df8378f0bc6aa8189af9d (patch) | |
tree | 4948f44033d84e3aaee69acf68f5f3dd6c980c4c /m4 | |
parent | a9afc5a7d079f20baedc232bce719d42540f6931 (diff) | |
download | coreutils-68a35b96cee77059fd5df8378f0bc6aa8189af9d.tar.xz |
*** empty log message ***
Diffstat (limited to 'm4')
-rw-r--r-- | m4/lstat-slash.m4 | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/m4/lstat-slash.m4 b/m4/lstat-slash.m4 index 935f19a9a..0e3988ab5 100644 --- a/m4/lstat-slash.m4 +++ b/m4/lstat-slash.m4 @@ -1,7 +1,7 @@ #serial 1 dnl From Jim Meyering. -dnl FIXME +dnl FIXME: describe AC_DEFUN(jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, [ @@ -38,15 +38,18 @@ AC_DEFUN(jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, fi ]) - # FIXME: convert to 0 or 1. - AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, FIXME, + test $jm_cv_func_lstat_dereferences_slashed_symlink = yes \ + && zero_one=1 \ + || zero_one=0 + AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, $zero_one, [Define if lstat dereferences a symlink specified with a trailing slash]) if test $jm_cv_func_lstat_dereferences_slashed_symlink = no; then AC_SUBST(LIBOBJS) -# FIXME: append to LIBOBJS only if it's not there already. - LIBOBJS="$LIBOBJS lstat.$ac_objext" - AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, 1, - [Define if lstat dereferences a symlink specified with a trailing slash]) + # Append lstat.o if it's not already in $LIBOBJS. + case "$LIBOBJS" in + *lstat.$ac_objext*) ;; + *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; + esac fi ]) |