aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-02-14 14:43:52 -0500
committerSergey Poznyakoff <gray@gnu.org.ua>2016-11-10 13:05:51 +0200
commitf968d4b7c8254eddf027b162ae2d2fc97bf572bf (patch)
treedf83cc5fe0491552a1c3c4d0526a65e17cb160ef
parentd098e48f0164efd9616d434dc9b379c20e8a5a88 (diff)
downloadcpio-f968d4b7c8254eddf027b162ae2d2fc97bf572bf.tar.gz
cpio-f968d4b7c8254eddf027b162ae2d2fc97bf572bf.tar.bz2
fix enable_mt configure logic
In the default case, the build_mt flag is not set. This leads to an error at configure time like: ./configure: line 26866: test: =: unary operator expected Change to use the variable name autoconf creates for us and quote it so we never get weird expansion errors.
-rw-r--r--configure.ac5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index c68bd44..73a5e2b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,10 +60,9 @@ CPIO_SYSDEP
CPIO_PACKED_STRUCTS
AC_ARG_ENABLE(mt,
- AC_HELP_STRING([--enable-mt], [Enable building of mt program]),
- [build_mt=$enableval])
+ AC_HELP_STRING([--enable-mt], [Enable building of mt program]))
-AM_CONDITIONAL([CPIO_MT_COND], [test $build_mt = yes])
+AM_CONDITIONAL([CPIO_MT_COND], [test "$enable_mt" = yes])
AC_CHECK_HEADERS([unistd.h stdlib.h string.h fcntl.h pwd.h grp.h sys/io/trioctl.h utmp.h getopt.h locale.h libintl.h sys/wait.h utime.h locale.h process.h sys/ioctl.h])

Return to:

Send suggestions and report system problems to the System administrator.