diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2021-03-02 12:20:24 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2021-03-02 12:38:47 +0000 |
commit | 345d46766ae527aac625d4d43be6ac606ab15565 (patch) | |
tree | 8cd9e6a85ce2d7bbb4de9516de4955722fe16590 /configure.ac | |
parent | 61e79caa0c57ba2cfc1eb52beccdfb97a672f0d9 (diff) | |
download | ghostpdl-345d46766ae527aac625d4d43be6ac606ab15565.tar.gz |
Check for extract in a "default" location
i.e. ghostpdl/extract
as well as still allowing --with-extract-dir for custom locations.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 9e492f43b..d907468cb 100644 --- a/configure.ac +++ b/configure.ac @@ -2584,8 +2584,13 @@ AC_ARG_WITH([extract-dir], AC_HELP_STRING([--with-extract-dir=EXTRACT_DIR]), [ EXTRACT_DIR="$withval" - AS_IF([test ! -e $EXTRACT_DIR], AC_MSG_ERROR([EXTRACT_DIR does not exist: $EXTRACT_DIR])) - PS_DEVS="$PS_DEVS docxwrite" + AS_IF([test x"$EXTRACT_DIR" != x"no"], + [AS_IF([test -e $EXTRACT_DIR],[ PS_DEVS="$PS_DEVS docxwrite"] ,AC_MSG_ERROR([EXTRACT_DIR does not exist: $EXTRACT_DIR]))]) + ], + [ + AC_MSG_CHECKING([Checking for "extract" in default location]) + EXTRACT_DIR="extract" + AS_IF([test -e $EXTRACT_DIR], [AC_MSG_RESULT(yes); PS_DEVS="$PS_DEVS docxwrite"], [EXTRACT_DIR=""; AC_MSG_RESULT(no)]) ] ) |