diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-11-17 14:08:44 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-11-17 14:08:44 +0000 |
commit | 29c3282e7c73474642dc48d60ef90d79385c2a1b (patch) | |
tree | 06eb15ec1674fe35f78d2ddff7ca90b314308a01 /configure | |
parent | cc74d3000e81af2533c386b7f55912f2e60e5a99 (diff) | |
download | bcnm-29c3282e7c73474642dc48d60ef90d79385c2a1b.tar.xz |
Apply smaeul's fixes; add --with-tmpdir configure option
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -45,6 +45,7 @@ Optional features: --enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled] --enable-absolute-paths do not rely on PATH to access this package's binaries, hardcode absolute BINDIR/foobar paths instead [disabled] + --with-tmpdir=DIR assume a writable-for-all directory at DIR [/tmp] EOF exit 0 @@ -158,6 +159,7 @@ addlibdpath='' vpaths='' vpathd='' build= +tmpdir=/tmp for arg ; do case "$arg" in @@ -191,6 +193,7 @@ for arg ; do --enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;; --host=*|--target=*) target=${arg#*=} ;; --build=*) build=${arg#*=} ;; + --with-tmpdir=*) tmpdir=${arg#*=} ;; -* ) echo "$0: unknown option $arg" ;; *=*) ;; *) target=$arg ;; @@ -212,7 +215,7 @@ fi # Expand installation directories stripdir prefix -for i in exec_prefix dynlibdir libexecdir bindir libdir includedir sysdeps sproot ; do +for i in exec_prefix dynlibdir libexecdir bindir libdir includedir sysdeps sproot tmpdir ; do eval tmp=\${$i} eval $i=$tmp stripdir $i @@ -396,6 +399,7 @@ sproot := $sproot version := $version home := $home exthome := $exthome +tmpdir := $tmpdir SPAWN_LIB := ${spawn_lib} SOCKET_LIB := ${socket_lib} SYSCLOCK_LIB := ${sysclock_lib} @@ -465,6 +469,7 @@ else echo "#define ${package_macro_name}_EXTBINPREFIX \"\"" fi echo "#define ${package_macro_name}_LIBEXECPREFIX \"$libexecdir/\"" +echo "#define ${package_macro_name}_TMPDIR \"$tmpdir\"" echo echo "#endif" exec 1>&3 3>&- |