Support autoconf's --runstatedir option.
[oweals/tinc.git] / configure.ac
index e4079bb5fa666e87ec287cc946a515d579dda24d..7287726827d67fe8d85baf905bb1a8d843bb82d4 100644 (file)
@@ -242,6 +242,11 @@ AC_ARG_ENABLE(jumbograms,
   ]
 )
 
+dnl Ensure runstatedir is set if we are using a version of autoconf that does not suppport it
+if test "x$runstatedir" = "x"; then
+  AC_SUBST([runstatedir], ['${localstatedir}/run'])
+fi
+
 AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile distro/Makefile])
 
 AC_OUTPUT