diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 45 |
1 files changed, 6 insertions, 39 deletions
diff --git a/configure.in b/configure.in index 39ca3320..0fdd8f63 100644 --- a/configure.in +++ b/configure.in | |||
@@ -835,45 +835,6 @@ AC_DEFINE_UNQUOTED(PS_COMMAND,"$ac_cv_ps_command", | |||
835 | AC_DEFINE_UNQUOTED(PS_FORMAT,"$ac_cv_ps_format", | 835 | AC_DEFINE_UNQUOTED(PS_FORMAT,"$ac_cv_ps_format", |
836 | [Format string for scanning ps output in check_procs]) | 836 | [Format string for scanning ps output in check_procs]) |
837 | 837 | ||
838 | AC_PATH_PROG(PATH_TO_DF,df) | ||
839 | AC_PATH_PROG(PATH_TO_BDF,bdf) | ||
840 | |||
841 | AC_ARG_WITH(df_command, | ||
842 | ACX_HELP_STRING([--with-df-command=SYNTAX], | ||
843 | [sets syntax for df]), | ||
844 | with_df_command=$withval,) | ||
845 | |||
846 | AC_MSG_CHECKING(for df syntax) | ||
847 | if test -n "$with_df_command" | ||
848 | then | ||
849 | AC_MSG_RESULT([$with_df_command]) | ||
850 | |||
851 | elif df -Pk 2>/dev/null | egrep -i ["^(/dev/|[a-zA-Z]:)[a-z0-9/\\]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/\\]*"] >/dev/null | ||
852 | then | ||
853 | with_df_command="$PATH_TO_DF -Pk" | ||
854 | AC_MSG_RESULT([$with_df_command]) | ||
855 | |||
856 | elif df -k 2>/dev/null | egrep -i ["^/dev/[a-z0-9/]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*"] >/dev/null | ||
857 | then | ||
858 | with_df_command="$PATH_TO_DF -k" | ||
859 | AC_MSG_RESULT([$with_df_command]) | ||
860 | |||
861 | elif df 2>/dev/null | egrep -i ["^/dev/[a-z0-9/]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*"] >/dev/null | ||
862 | then | ||
863 | with_df_command="$PATH_TO_DF" | ||
864 | AC_MSG_RESULT([$with_df_command]) | ||
865 | |||
866 | elif bdf 2>/dev/null | egrep -i ["^/dev/[a-z0-9/]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*"] >/dev/null | ||
867 | then | ||
868 | with_df_command="$PATH_TO_BDF" | ||
869 | AC_MSG_RESULT([$with_df_command]) | ||
870 | |||
871 | else | ||
872 | AC_MSG_WARN([unable to find usable df syntax]) | ||
873 | fi | ||
874 | |||
875 | AC_DEFINE_UNQUOTED(DF_COMMAND,"$with_df_command",[path and args for df command]) | ||
876 | |||
877 | dnl jm_AFS | 838 | dnl jm_AFS |
878 | jm_LIST_MOUNTED_FILESYSTEMS([list_mounted_fs=yes], [list_mounted_fs=no]) | 839 | jm_LIST_MOUNTED_FILESYSTEMS([list_mounted_fs=yes], [list_mounted_fs=no]) |
879 | jm_FSTYPENAME | 840 | jm_FSTYPENAME |
@@ -1295,6 +1256,9 @@ dnl if /bin/test -e "/proc/meminfo" | |||
1295 | AC_PATH_PROG(PATH_TO_SWAP,swap) | 1256 | AC_PATH_PROG(PATH_TO_SWAP,swap) |
1296 | AC_PATH_PROG(PATH_TO_SWAPINFO,swapinfo) | 1257 | AC_PATH_PROG(PATH_TO_SWAPINFO,swapinfo) |
1297 | 1258 | ||
1259 | if ( test -n "$PATH_TO_SWAP" || test -n "$PATH_TO_SWAPINFO" ) | ||
1260 | then | ||
1261 | |||
1298 | AC_MSG_CHECKING(for how to check memory) | 1262 | AC_MSG_CHECKING(for how to check memory) |
1299 | if [cat /proc/meminfo > /dev/null 2>&1] | 1263 | if [cat /proc/meminfo > /dev/null 2>&1] |
1300 | then | 1264 | then |
@@ -1366,6 +1330,9 @@ then | |||
1366 | [Conversion factor to MB]) | 1330 | [Conversion factor to MB]) |
1367 | fi | 1331 | fi |
1368 | 1332 | ||
1333 | dnl End of if SWAP | ||
1334 | fi | ||
1335 | |||
1369 | AC_PATH_PROG(PATH_TO_DIG,dig) | 1336 | AC_PATH_PROG(PATH_TO_DIG,dig) |
1370 | AC_DEFINE_UNQUOTED(PATH_TO_DIG,"$PATH_TO_DIG",[Path to dig command, if present]) | 1337 | AC_DEFINE_UNQUOTED(PATH_TO_DIG,"$PATH_TO_DIG",[Path to dig command, if present]) |
1371 | if test -n "$PATH_TO_DIG"; then | 1338 | if test -n "$PATH_TO_DIG"; then |