On 7 April 2017 at 12:40, Andrew Jones <drjo...@redhat.com> wrote: > On Thu, Apr 06, 2017 at 08:07:20PM +0100, Alex Bennée wrote: >> diff --git a/configure b/configure >> index 8821f37..223809c 100755 >> --- a/configure >> +++ b/configure >> @@ -1,5 +1,6 @@ >> #!/bin/bash >> >> +srcdir=$(cd "$(dirname "$0")"; pwd) > > Why not just $(dirname "$0")? Any reason the path can't > be relative? Also, could use realpath vs. the cd/pwd.
Having srcdir be maybe relative and maybe absolute seems like a recipe for confusion later on to me -- much better for it to always be an absolute path, I think. (Compare how QEMU's configure is careful to absolutize the source_path variable.) realpath isn't portable (not on OSX, for instance). thanks -- PMM _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm