aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2010-05-17 19:21:42 -0400
committerTheodore Ts'o <tytso@mit.edu>2010-05-17 19:21:42 -0400
commit5aa6c3f61c0559f03b68bdeef886f34ece106757 (patch)
tree2f1bb396fad8c89a087702aab1de42dff4876a0d /configure.in
parent822c10e84e5f57394bcad921adc560f5b032c03e (diff)
downloade2fsprogs-5aa6c3f61c0559f03b68bdeef886f34ece106757.tar.gz
e2fsprogs-5aa6c3f61c0559f03b68bdeef886f34ece106757.tar.xz
e2fsprogs-5aa6c3f61c0559f03b68bdeef886f34ece106757.zip
Add configure options --enable-symlink-build and --enable-symlink-install
These options allow e2fsprogs to be built using symlinks instead of hard links, and to be installed using symlinks instead of hard links, respectively. Addresses-Sourceforge-Bug: #1436294 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in38
1 files changed, 37 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 5077a97b..3441bee6 100644
--- a/configure.in
+++ b/configure.in
@@ -154,10 +154,46 @@ AC_MSG_RESULT([Disabling maintainer mode by default])
)
AC_SUBST(MAINTAINER_CMT)
dnl
+dnl handle --enable-symlink-install
+dnl
+AC_ARG_ENABLE([symlink-install],
+[ --enable-symlink-install use symlinks when installing instead of hard links],
+if test "$enableval" = "no"
+then
+ LINK_INSTALL_FLAGS=-f
+ AC_MSG_RESULT([Disabling symlinks for install])
+else
+ LINK_INSTALL_FLAGS=-sf
+ AC_MSG_RESULT([Enabling symlinks for install])
+fi
+,
+LINK_INSTALL_FLAGS=-f
+AC_MSG_RESULT([Disabling symlinks for install])
+)
+AC_SUBST(LINK_INSTALL_FLAGS)
+dnl
+dnl handle --enable-symlink-build
+dnl
+AC_ARG_ENABLE([symlink-build],
+[ --enable-symlink-build use symlinks while building instead of hard links],
+if test "$enableval" = "no"
+then
+ LINK_BUILD_FLAGS=
+ AC_MSG_RESULT([Disabling symlinks for build])
+else
+ LINK_BUILD_FLAGS=-s
+ AC_MSG_RESULT([Enabling symlinks for build])
+fi
+,
+LINK_BUILD_FLAGS=
+AC_MSG_RESULT([Disabling symlinks for build])
+)
+AC_SUBST(LINK_BUILD_FLAGS)
+dnl
dnl handle --enable-verbose-makecmds
dnl
AC_ARG_ENABLE([verbose-makecmds],
-[ --enable-verbose-makecmds enable verbose make command output],
+[ --enable-verbose-makecmds enable verbose make command output],
if test "$enableval" = "no"
then
AC_MSG_RESULT([Disabling verbose make commands])