diff options
| author | Albert Cervin <albert@acervin.com> | 2024-05-14 22:31:47 +0200 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2024-05-14 22:31:47 +0200 |
| commit | 8624c6b3d20c3455af970d111855ad7b07988a87 (patch) | |
| tree | 83da76d6abec258be38411845d584d401bce068e /configure | |
| parent | b5de6c24571231cd08dc0ed700ea40ead9bc6ff3 (diff) | |
| download | dged-8624c6b3d20c3455af970d111855ad7b07988a87.tar.gz dged-8624c6b3d20c3455af970d111855ad7b07988a87.tar.xz dged-8624c6b3d20c3455af970d111855ad7b07988a87.zip | |
Actually support prefix arg in configure
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -10,6 +10,7 @@ Options: enable_syntax=1 enable_asan=0 +prefix= while [ "$#" -gt 0 ]; do case $1 in --disable-syntax) @@ -27,6 +28,16 @@ while [ "$#" -gt 0 ]; do shift 1 ;; + --prefix) + prefix="$2" + shift 2 + ;; + + --prefix=*) + prefix="${1#*=}" + shift 1 + ;; + -h|--help) echo "$_usage" exit @@ -76,6 +87,10 @@ if [ "$enable_asan" -ne 0 ]; then echo "ASAN = true" >> config.mk fi +if [ -n "$prefix" ]; then + echo "setting prefix to \"$prefix\"" + echo "prefix = $prefix" >> config.mk +fi echo "#endif" >> src/config.h echo "wrote src/config.h" |
