]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
configure.ac: fix SYSCONFDEFDIR default value
authorMatt Whitlock <whitslack@users.noreply.github.com>
Wed, 9 Jun 2021 14:25:18 +0000 (10:25 -0400)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 17 Aug 2021 10:55:26 +0000 (12:55 +0200)
configure.ac was using AC_ARG_WITH incorrectly, yielding a generated configure script like:

    # Check whether --with-sysconfdefdir was given.
    if test "${with_sysconfdefdir+set}" = set; then :
      withval=$with_sysconfdefdir; SYSCONFDEFDIR=$withval
    else
      "/etc/sysconfig"
    fi

This commit fixes the default case so that the SYSCONFDEFDIR variable is assigned the value "/etc/sysconfig" rather than trying to execute "/etc/sysconfig" as a command.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
configure.ac

index f7d1947165822835c4a813eb18bdcc5474941e37..33b81fe228e81e08bf76f30344bca9f89f631394 100644 (file)
@@ -172,7 +172,7 @@ AC_SUBST([RASSTATEDIR])
 AC_ARG_WITH(sysconfdefdir,
     AC_HELP_STRING([--with-sysconfdefdir=DIR], [rasdaemon environment file dir]),
     [SYSCONFDEFDIR=$withval],
-    ["/etc/sysconfig"])
+    [SYSCONFDEFDIR=/etc/sysconfig])
 AC_SUBST([SYSCONFDEFDIR])
 
 AC_DEFINE([RAS_DB_FNAME], ["ras-mc_event.db"], [ras events database])