From: Theodore Ts'o Date: Wed, 22 May 2002 02:21:38 +0000 (-0400) Subject: configure.in: On Linux systems, if the prefix is defaulted to X-Git-Tag: E2FSPROGS-1.28-WIP-0626~14 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bff61a7aaa5cfa0d5040b6c5d1dbc1e40f08bfcb;p=tools%2Fe2fsprogs.git configure.in: On Linux systems, if the prefix is defaulted to /usr, then default mandir to /usr/share/man --- diff --git a/ChangeLog b/ChangeLog index 3a550fa..da51af7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-05-21 Theodore Ts'o + + * configure.in: On Linux systems, if the prefix is defaulted to + /usr, then default mandir to /usr/share/man + 2002-05-17 Theodore Ts'o * Remove check for asm/page.h, and add check for sysconf() diff --git a/configure b/configure index e242e42..30d0d1e 100644 --- a/configure +++ b/configure @@ -4765,6 +4765,10 @@ linux* | gnu*) if test "$prefix" = NONE ; then prefix="/usr"; echo "On $host_os systems, prefix defaults to /usr" + if test "$mandir" = '${prefix}/man' ; then + echo "...and mandir defaults to /usr/share/man" + mandir=/usr/share/man + fi fi ;; esac @@ -4790,20 +4794,20 @@ fi echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 -echo "configure:4794: checking whether linker accepts -static" >&5 +echo "configure:4798: checking whether linker accepts -static" >&5 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" cat > conftest.$ac_ext < int main() { fflush(stdout); ; return 0; } EOF -if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_e2fsprogs_use_static=yes else diff --git a/configure.in b/configure.in index 4670cc8..04f9248 100644 --- a/configure.in +++ b/configure.in @@ -587,6 +587,10 @@ linux* | gnu*) if test "$prefix" = NONE ; then prefix="/usr"; echo "On $host_os systems, prefix defaults to /usr" + if test "$mandir" = '${prefix}/man' ; then + echo "...and mandir defaults to /usr/share/man" + mandir=/usr/share/man + fi fi ;; esac