changeset 4197:667aa26d9dd4

* configure.ac: Don't use undefined in default definition of PKG_DIR.
author John W. Eaton <jwe@octave.org>
date Tue, 30 Aug 2016 06:28:31 -0400
parents 4a414e5b16a4
children 2f1d93109f43
files configure.ac
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Mon Aug 29 23:48:04 2016 -0400
+++ b/configure.ac	Tue Aug 30 06:28:31 2016 -0400
@@ -53,7 +53,7 @@
 esac
 AC_SUBST(SHELL)
 
-PKG_DIR="$abs_srcdir/pkg"
+PKG_DIR="pkg"
 AC_ARG_WITH([pkg-dir],
   [AS_HELP_STRING([--with-pkg-dir=DIR],
     [use DIR as the location for downloaded packages (default: pkg)])])
@@ -65,13 +65,13 @@
   ;;
   *)
     PKG_DIR="$withval"
-    ## Ensure directory exists and that we refer to it using an absolute name
-    if ! test -d "$PKG_DIR"; then
-      mkdir -p "$PKG_DIR"
-    fi
-    PKG_DIR=`(cd "$PKG_DIR"; pwd)`
   ;;
 esac
+## Ensure directory exists and that we refer to it using an absolute name
+if ! test -d "$PKG_DIR"; then
+  mkdir -p "$PKG_DIR"
+fi
+PKG_DIR=`(cd "$PKG_DIR"; pwd)`
 AC_SUBST(PKG_DIR)
 
 USE_CCACHE=no