diff --git a/configure/tools/fullPathName.pl b/configure/tools/fullPathName.pl index 17d04c4a8..e2585a22b 100755 --- a/configure/tools/fullPathName.pl +++ b/configure/tools/fullPathName.pl @@ -3,6 +3,8 @@ eval 'exec perl -S -w $0 ${1+"$@"}' # -*- Mode: perl -*- use Cwd 'abs_path'; my $dir; -$dir = abs_path("$ARGV[0]"); -print "$dir\n"; - +if( $ARGV[0] ) +{ + $dir = abs_path("$ARGV[0]"); + print "$dir\n"; +}