Whamcloud - gitweb
configure.in: On Linux systems, if the prefix is defaulted to
authorTheodore Ts'o <tytso@mit.edu>
Wed, 22 May 2002 02:21:38 +0000 (22:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 May 2002 02:21:38 +0000 (22:21 -0400)
/usr, then default mandir to /usr/share/man

ChangeLog
configure
configure.in

index 3a550fa..da51af7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-21  Theodore Ts'o  <tytso@mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * Remove check for asm/page.h, and add check for sysconf()
index e242e42..30d0d1e 100644 (file)
--- 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 <<EOF
-#line 4800 "configure"
+#line 4804 "configure"
 #include "confdefs.h"
 #include <stdio.h>
 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
index 4670cc8..04f9248 100644 (file)
@@ -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