diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 91 |
1 files changed, 61 insertions, 30 deletions
diff --git a/configure.in b/configure.in index 14dd51081..3c26e3d74 100644 --- a/configure.in +++ b/configure.in | |||
@@ -12,36 +12,6 @@ AC_CHECK_PROG(AR, ar, ar) | |||
12 | AC_PATH_PROG(PERL, perl) | 12 | AC_PATH_PROG(PERL, perl) |
13 | AC_SUBST(PERL) | 13 | AC_SUBST(PERL) |
14 | 14 | ||
15 | # We may need these for entropy collection | ||
16 | AC_PATH_PROG(PROG_LS, ls) | ||
17 | AC_DEFINE_UNQUOTED(PROG_LS, "$PROG_LS") | ||
18 | AC_PATH_PROG(PROG_NETSTAT, netstat) | ||
19 | AC_DEFINE_UNQUOTED(PROG_NETSTAT, "$PROG_NETSTAT") | ||
20 | AC_PATH_PROG(PROG_ARP, arp) | ||
21 | AC_DEFINE_UNQUOTED(PROG_ARP, "$PROG_ARP") | ||
22 | AC_PATH_PROG(PROG_IFCONFIG, ifconfig) | ||
23 | AC_DEFINE_UNQUOTED(PROG_IFCONFIG, "$PROG_IFCONFIG") | ||
24 | AC_PATH_PROG(PROG_PS, ps) | ||
25 | AC_DEFINE_UNQUOTED(PROG_PS, "$PROG_PS") | ||
26 | AC_PATH_PROG(PROG_W, w) | ||
27 | AC_DEFINE_UNQUOTED(PROG_W, "$PROG_W") | ||
28 | AC_PATH_PROG(PROG_WHO, who) | ||
29 | AC_DEFINE_UNQUOTED(PROG_WHO, "$PROG_WHO") | ||
30 | AC_PATH_PROG(PROG_LAST, last) | ||
31 | AC_DEFINE_UNQUOTED(PROG_LAST, "$PROG_LAST") | ||
32 | AC_PATH_PROG(PROG_LASTLOG, lastlog) | ||
33 | AC_DEFINE_UNQUOTED(PROG_LASTLOG, "$PROG_LASTLOG") | ||
34 | AC_PATH_PROG(PROG_DF, df) | ||
35 | AC_DEFINE_UNQUOTED(PROG_DF, "$PROG_DF") | ||
36 | AC_PATH_PROG(PROG_VMSTAT, vmstat) | ||
37 | AC_DEFINE_UNQUOTED(PROG_VMSTAT, "$PROG_VMSTAT") | ||
38 | AC_PATH_PROG(PROG_UPTIME, uptime) | ||
39 | AC_DEFINE_UNQUOTED(PROG_UPTIME, "$PROG_UPTIME") | ||
40 | AC_PATH_PROG(PROG_IPCS, ipcs) | ||
41 | AC_DEFINE_UNQUOTED(PROG_UPTIME, "$PROG_UPTIME") | ||
42 | AC_PATH_PROG(PROG_TAIL, tail) | ||
43 | AC_DEFINE_UNQUOTED(PROG_TAIL, "$PROG_TAIL") | ||
44 | |||
45 | if test -z "$LD" ; then | 15 | if test -z "$LD" ; then |
46 | LD=$CC | 16 | LD=$CC |
47 | fi | 17 | fi |
@@ -662,6 +632,67 @@ AC_ARG_WITH(egd-pool, | |||
662 | ] | 632 | ] |
663 | ) | 633 | ) |
664 | 634 | ||
635 | if test -z "$RANDOM_POOL" -a -z "$EGD_SOCKET" ; then | ||
636 | # Use these commands to collect entropy | ||
637 | AC_PATH_PROG(PROG_LS, ls) | ||
638 | AC_PATH_PROG(PROG_NETSTAT, netstat) | ||
639 | AC_PATH_PROG(PROG_ARP, arp) | ||
640 | AC_PATH_PROG(PROG_IFCONFIG, ifconfig) | ||
641 | AC_PATH_PROG(PROG_PS, ps) | ||
642 | AC_PATH_PROG(PROG_W, w) | ||
643 | AC_PATH_PROG(PROG_WHO, who) | ||
644 | AC_PATH_PROG(PROG_LAST, last) | ||
645 | AC_PATH_PROG(PROG_LASTLOG, lastlog) | ||
646 | AC_PATH_PROG(PROG_DF, df) | ||
647 | AC_PATH_PROG(PROG_VMSTAT, vmstat) | ||
648 | AC_PATH_PROG(PROG_UPTIME, uptime) | ||
649 | AC_PATH_PROG(PROG_IPCS, ipcs) | ||
650 | AC_PATH_PROG(PROG_TAIL, tail) | ||
651 | AC_PATH_PROG(PROG_LS, ls) | ||
652 | if test ! -z "$PROG_LS" ; then | ||
653 | AC_DEFINE_UNQUOTED(PROG_LS, "$PROG_LS") | ||
654 | fi | ||
655 | if test ! -z "$PROG_NETSTAT" ; then | ||
656 | AC_DEFINE_UNQUOTED(PROG_NETSTAT, "$PROG_NETSTAT") | ||
657 | fi | ||
658 | if test ! -z "$PROG_ARP" ; then | ||
659 | AC_DEFINE_UNQUOTED(PROG_ARP, "$PROG_ARP") | ||
660 | fi | ||
661 | if test ! -z "$PROG_IFCONFIG" ; then | ||
662 | AC_DEFINE_UNQUOTED(PROG_IFCONFIG, "$PROG_IFCONFIG") | ||
663 | fi | ||
664 | if test ! -z "$PROG_PS" ; then | ||
665 | AC_DEFINE_UNQUOTED(PROG_PS, "$PROG_PS") | ||
666 | fi | ||
667 | if test ! -z "$PROG_W" ; then | ||
668 | AC_DEFINE_UNQUOTED(PROG_W, "$PROG_W") | ||
669 | fi | ||
670 | if test ! -z "$PROG_WHO" ; then | ||
671 | AC_DEFINE_UNQUOTED(PROG_WHO, "$PROG_WHO") | ||
672 | fi | ||
673 | if test ! -z "$PROG_LAST" ; then | ||
674 | AC_DEFINE_UNQUOTED(PROG_LAST, "$PROG_LAST") | ||
675 | fi | ||
676 | if test ! -z "$PROG_LASTLOG" ; then | ||
677 | AC_DEFINE_UNQUOTED(PROG_LASTLOG, "$PROG_LASTLOG") | ||
678 | fi | ||
679 | if test ! -z "$PROG_DF" ; then | ||
680 | AC_DEFINE_UNQUOTED(PROG_DF, "$PROG_DF") | ||
681 | fi | ||
682 | if test ! -z "$PROG_VMSTAT" ; then | ||
683 | AC_DEFINE_UNQUOTED(PROG_VMSTAT, "$PROG_VMSTAT") | ||
684 | fi | ||
685 | if test ! -z "$PROG_UPTIME" ; then | ||
686 | AC_DEFINE_UNQUOTED(PROG_UPTIME, "$PROG_UPTIME") | ||
687 | fi | ||
688 | if test ! -z "$PROG_UPTIME" ; then | ||
689 | AC_DEFINE_UNQUOTED(PROG_UPTIME, "$PROG_UPTIME") | ||
690 | fi | ||
691 | if test ! -z "$PROG_TAIL" ; then | ||
692 | AC_DEFINE_UNQUOTED(PROG_TAIL, "$PROG_TAIL") | ||
693 | fi | ||
694 | fi | ||
695 | |||
665 | AC_ARG_WITH(catman, | 696 | AC_ARG_WITH(catman, |
666 | [ --with-catman=man|cat Install preformatted manpages[no]], | 697 | [ --with-catman=man|cat Install preformatted manpages[no]], |
667 | [ | 698 | [ |