5 | | {{{ |
6 | | dnl Check for user-specified random device |
7 | | AC_ARG_WITH(random, |
8 | | AC_HELP_STRING([--with-random=FILE], |
9 | | [read randomness from FILE (default=/dev/urandom)]), |
10 | | [ RANDOM_FILE="$withval" ], |
11 | | [ |
12 | | dnl Check for random device |
13 | | AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] ) |
14 | | ] |
15 | | ) |
16 | | if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then |
17 | | AC_SUBST(RANDOM_FILE) |
18 | | AC_DEFINE_UNQUOTED(RANDOM_FILE, "$RANDOM_FILE", |
19 | | [a suitable file to read random data from]) |
20 | | fi |
21 | | }}} |
| 5 | > {{{ |
| 6 | > dnl Check for user-specified random device |
| 7 | > AC_ARG_WITH(random, |
| 8 | > AC_HELP_STRING([--with-random=FILE], |
| 9 | > [read randomness from FILE (default=/dev/urandom)]), |
| 10 | > [ RANDOM_FILE="$withval" ], |
| 11 | > [ |
| 12 | > dnl Check for random device |
| 13 | > AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] ) |
| 14 | > ] |
| 15 | > ) |
| 16 | > if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then |
| 17 | > AC_SUBST(RANDOM_FILE) |
| 18 | > AC_DEFINE_UNQUOTED(RANDOM_FILE, "$RANDOM_FILE", |
| 19 | > [a suitable file to read random data from]) |
| 20 | > fi |
| 21 | > }}} |