summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2015-08-01 17:54:49 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2015-08-01 17:54:49 +1000
commitc3cf5312c1ae666c6c96ada10cf7364ff1a41c98 (patch)
treef5ecaf796e4a5fcab0af726fcd6d568e5ec8d34c /autogen.sh
parent9e2bf61d68d580ebdb1c1284097024670a0a8d5b (diff)
downloadflac-c3cf5312c1ae666c6c96ada10cf7364ff1a41c98.tar.gz
autogen.sh: Add --no-symlinks option
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index a47d80eb..b62a3401 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,6 +3,18 @@
# We trust that the user has a recent enough autoconf & automake setup
# (not older than a few years...)
+use_symlinks=" --symlink"
+
+case $1 in
+ --no-symlink*)
+ use_symlinks=""
+ echo "Copying autotool files instead of using symlinks."
+ ;;
+ *)
+ echo "Using symlinks to autotool files (use --no-symlinks to copy instead)."
+ ;;
+ esac
+
test_program_errors=0
test_program () {
@@ -40,5 +52,5 @@ test -n "$srcdir" && cd "$srcdir"
echo "Updating build configuration files for FLAC, please wait...."
touch config.rpath
-autoreconf --install --symlink --force
+autoreconf --install $use_symlinks --force
#./configure "$@" && echo