]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
osx: fix postinstall script 0.7.6
authorVincent Bernat <bernat@luffy.cx>
Fri, 12 Jul 2013 08:00:01 +0000 (10:00 +0200)
committerVincent Bernat <bernat@luffy.cx>
Fri, 12 Jul 2013 08:06:16 +0000 (10:06 +0200)
`@PRIVSEP_USER@` and `@PRIVSEP_GROUP@` were not substituted with the
appropriate values because they were not declared as an output
variable.

m4/args.m4

index 9c9dc19c8596b00d4b291dd0c80c2abfac66714a..cc6263bd319d2cfb89ca58fb1dfd20c88f79a6e4 100644 (file)
@@ -7,10 +7,12 @@ dnl lldp_ARG_WITH(name, help1, default)
 AC_DEFUN([lldp_ARG_WITH],[
   AC_ARG_WITH([$1],
        AS_HELP_STRING([--with-$1],
-               [$2 @<:@default=$3@:>@]),
-       AC_DEFINE_UNQUOTED(AS_TR_CPP([$1]), ["$withval"], [$2]),
-       AC_DEFINE_UNQUOTED(AS_TR_CPP([$1]), ["$3"], [$2]))
-])
+               [$2 @<:@default=$3@:>@]),[
+        AC_DEFINE_UNQUOTED(AS_TR_CPP([$1]), ["$withval"], [$2])
+        AC_SUBST(AS_TR_CPP([$1]), [$withval])],[
+       AC_DEFINE_UNQUOTED(AS_TR_CPP([$1]), ["$3"], [$2])
+        AC_SUBST(AS_TR_CPP([$1]), [$3])
+])])
 
 dnl lldp_ARG_ENABLE(name, help1, default)