Browse Source

configure.ac: Allow configuration of random device path

Julien 'Lta' BALLET 10 years ago
parent
commit
43475888af
1 changed files with 8 additions and 1 deletions
  1. 8 1
      configure.ac

+ 8 - 1
configure.ac

@@ -88,7 +88,14 @@ AM_CONDITIONAL(COMPAT_STRLCPY, [test x$compat_strlcpy = xyes])
 AC_CHECK_HEADERS([bsd/string.h])
 AC_CHECK_HEADERS([bsd/string.h])
 AC_CHECK_HEADERS([langinfo.h])
 AC_CHECK_HEADERS([langinfo.h])
 
 
-## Checks for doxygen presence
+## Configure random device path
+AC_ARG_WITH([urandom], 
+    [AS_HELP_STRING([--with-urandom=PATH], 
+        [Configure the path of the random generation device used @<:@default=/dev/urandom@:>@ ])],
+    [], [with_urandom=/dev/urandom])
+AC_DEFINE_UNQUOTED([URANDOM], ["$with_urandom"], [Path of the random number generation device])
+
+## Check for doxygen presence
 AC_CHECK_PROGS([DOXYGEN], [doxygen])
 AC_CHECK_PROGS([DOXYGEN], [doxygen])
 AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
 AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
 if test -z "$DOXYGEN";
 if test -z "$DOXYGEN";