7fca25
commit 1ff5f3d2a0fcd48add9462567c30fe0e14585fb4
7fca25
Author: Matt Whitlock <whitslack@users.noreply.github.com>
7fca25
Date:   Wed Jun 9 10:25:18 2021 -0400
7fca25
7fca25
    configure.ac: fix SYSCONFDEFDIR default value
7fca25
    
7fca25
    configure.ac was using AC_ARG_WITH incorrectly, yielding a generated configure script like:
7fca25
    
7fca25
        # Check whether --with-sysconfdefdir was given.
7fca25
        if test "${with_sysconfdefdir+set}" = set; then :
7fca25
          withval=$with_sysconfdefdir; SYSCONFDEFDIR=$withval
7fca25
        else
7fca25
          "/etc/sysconfig"
7fca25
        fi
7fca25
    
7fca25
    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.
7fca25
    
7fca25
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
7fca25
7fca25
diff --git a/configure.ac b/configure.ac
7fca25
index f7d1947..33b81fe 100644
7fca25
--- a/configure.ac
7fca25
+++ b/configure.ac
7fca25
@@ -172,7 +172,7 @@ AC_SUBST([RASSTATEDIR])
7fca25
 AC_ARG_WITH(sysconfdefdir,
7fca25
     AC_HELP_STRING([--with-sysconfdefdir=DIR], [rasdaemon environment file dir]),
7fca25
     [SYSCONFDEFDIR=$withval],
7fca25
-    ["/etc/sysconfig"])
7fca25
+    [SYSCONFDEFDIR=/etc/sysconfig])
7fca25
 AC_SUBST([SYSCONFDEFDIR])
7fca25
 
7fca25
 AC_DEFINE([RAS_DB_FNAME], ["ras-mc_event.db"], [ras events database])