]> granicus.if.org Git - sysstat/blobdiff - configure
sar/sadc: Add stable identifier support for disks statistics
[sysstat] / configure
index 4b0507d48ed1017d70a50dfa06506ae7990a021e..9c75a787aa563b114b910d3cfd401de5f2bfb46a 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for sysstat 11.7.1.
+# Generated by GNU Autoconf 2.69 for sysstat 12.1.7.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -577,8 +577,8 @@ MAKEFLAGS=
 # Identity of this package.
 PACKAGE_NAME='sysstat'
 PACKAGE_TARNAME='sysstat'
-PACKAGE_VERSION='11.7.1'
-PACKAGE_STRING='sysstat 11.7.1'
+PACKAGE_VERSION='12.1.7'
+PACKAGE_STRING='sysstat 12.1.7'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -644,8 +644,6 @@ COMPRESS_MANPG
 IGNORE_FILE_ATTRIBUTES
 MAN_GROUP
 man_group
-PREALLOC_FACTOR
-prealloc
 COMPRESSAFTER
 compressafter
 HISTORY
@@ -663,6 +661,9 @@ INITD_DIR
 INIT_DIR
 RC_DIR
 rcdir
+DFPCP
+LFPCP
+HAVE_PCP
 DFSENSORS
 LFSENSORS
 HAVE_SENSORS
@@ -674,6 +675,8 @@ PATH_CP
 INSTALL_BIN
 INSTALL_DATA
 ZIP
+VER_JSON
+VER_XML
 MSGMERGE
 XGETTEXT
 MSGFMT
@@ -735,6 +738,7 @@ ac_user_opts='
 enable_option_checking
 with_systemdsystemunitdir
 enable_sensors
+enable_pcp
 enable_largefile
 enable_nls
 enable_file_attr
@@ -762,7 +766,6 @@ sa_dir
 conf_dir
 history
 compressafter
-prealloc
 man_group
 cron_owner
 cron_interval
@@ -1307,7 +1310,7 @@ if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures sysstat 11.7.1 to adapt to many kinds of systems.
+\`configure' configures sysstat 12.1.7 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1368,7 +1371,7 @@ fi
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of sysstat 11.7.1:";;
+     short | recursive ) echo "Configuration of sysstat 12.1.7:";;
    esac
   cat <<\_ACEOF
 
@@ -1377,6 +1380,7 @@ Optional Features:
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --disable-sensors       disable sensors support
+  --disable-pcp           disable PCP support
   --disable-largefile     omit support for large files
   --disable-nls           disable National Language Support
   --disable-file-attr     do not set attributes on files being installed
@@ -1412,8 +1416,6 @@ Some influential environment variables:
   compressafter
               number of days after which data files are compressed (default
               value is 10)
-  prealloc    preallocation factor that will determine data files size
-              (default value is 1)
   man_group   group for manual pages
   cron_owner  crontab owner
   cron_interval
@@ -1487,7 +1489,7 @@ fi
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-sysstat configure 11.7.1
+sysstat configure 12.1.7
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1906,7 +1908,7 @@ cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by sysstat $as_me 11.7.1, which was
+It was created by sysstat $as_me 12.1.7, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3788,6 +3790,86 @@ $as_echo "no" >&6; }
 fi
 
 
+# Extract the first word of "xmllint", so it can be a program name with args.
+set dummy xmllint; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_VER_XML+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$VER_XML"; then
+  ac_cv_prog_VER_XML="$VER_XML" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_VER_XML="xmllint"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+VER_XML=$ac_cv_prog_VER_XML
+if test -n "$VER_XML"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VER_XML" >&5
+$as_echo "$VER_XML" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+for ac_prog in json_verify json_pp
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_VER_JSON+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$VER_JSON"; then
+  ac_cv_prog_VER_JSON="$VER_JSON" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_VER_JSON="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+VER_JSON=$ac_cv_prog_VER_JSON
+if test -n "$VER_JSON"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VER_JSON" >&5
+$as_echo "$VER_JSON" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$VER_JSON" && break
+done
+test -n "$VER_JSON" || VER_JSON="true"
+
 for ac_prog in xz bzip2 gzip
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -3836,6 +3918,9 @@ INSTALL_DATA="\${INSTALL} -m 644"
 INSTALL_BIN="\${INSTALL} -m 755"
 
 
+
+
+
 # Extract the first word of "cp", so it can be a program name with args.
 set dummy cp; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -4563,18 +4648,19 @@ else
 fi
 
 if test $SENSORS != "yes"; then
-   HAVE_SENSORS="n"
+       HAVE_SENSORS="n"
 else
-   HAVE_SENSORS="y"
+       HAVE_SENSORS="y"
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
 $as_echo "$SENSORS" >&6; }
 
 # Check for lm_sensors
-SENSORS=no
 LFSENSORS=""
 DFSENSORS=""
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
+if test $HAVE_SENSORS = "y"; then
+       SENSORS=no
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
 $as_echo_n "checking for sensors_get_detected_chips in -lsensors... " >&6; }
 if ${ac_cv_lib_sensors_sensors_get_detected_chips+:} false; then :
   $as_echo_n "(cached) " >&6
@@ -4616,12 +4702,12 @@ else
   HAVE_SENSORS="n"
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
 $as_echo_n "checking for sensors lib... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 #include <sensors/sensors.h>
-#include <sensors/error.h>
+                      #include <sensors/error.h>
 
 int
 main ()
@@ -4637,8 +4723,102 @@ else
   HAVE_SENSORS="n"; SENSORS=no
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
 $as_echo "$SENSORS" >&6; }
+fi
+
+
+
+
+# Should we check for PCP support?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCP support" >&5
+$as_echo_n "checking for PCP support... " >&6; }
+# Check whether --enable-pcp was given.
+if test "${enable_pcp+set}" = set; then :
+  enableval=$enable_pcp; PCP=$enableval
+else
+  PCP=yes
+fi
+
+if test $PCP != "yes"; then
+       HAVE_PCP="n"
+else
+       HAVE_PCP="y"
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
+$as_echo "$PCP" >&6; }
+
+# Check for PCP libraries
+LFPCP=""
+DFPCP=""
+if test $HAVE_PCP = "y"; then
+       PCP=no
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmGetVersion in -lpcp" >&5
+$as_echo_n "checking for pmGetVersion in -lpcp... " >&6; }
+if ${ac_cv_lib_pcp_pmGetVersion+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lpcp  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char pmGetVersion ();
+int
+main ()
+{
+return pmGetVersion ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_pcp_pmGetVersion=yes
+else
+  ac_cv_lib_pcp_pmGetVersion=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcp_pmGetVersion" >&5
+$as_echo "$ac_cv_lib_pcp_pmGetVersion" >&6; }
+if test "x$ac_cv_lib_pcp_pmGetVersion" = xyes; then :
+  LFPCP="-lpcp -lpcp_import"
+else
+  HAVE_PCP="n"
+fi
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCP libraries" >&5
+$as_echo_n "checking for PCP libraries... " >&6; }
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <pcp/pmapi.h>
+                      #include <pcp/import.h>
+
+int
+main ()
+{
+pmiEnd();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  PCP=yes; DFPCP="-DHAVE_PCP"
+else
+  HAVE_PCP="n"; PCP=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
+$as_echo "$PCP" >&6; }
+fi
 
 
 
@@ -4864,15 +5044,16 @@ echo .
 #  --enable-compress-manpg compress manual pages
 #  --enable-debuginfo      enable debug output (--debuginfo option)
 #  --disable-documentation do not install documentation (man pages...)
-#  --disable-sensors      do not link against libsensors even if available
+#  --disable-sensors       do not link against libsensors even if available
+#  --disable-pcp           do not link against PCP libraries even if available
 #  --disable-stripping     do not strip object files
-#  --enablle-copy-only     only copy files when installing sysstat
+#  --enable-copy-only      only copy files when installing sysstat
 #
 # Some influential environment variables:
-#  rcdir        directory where startup scripts are installed
+#  rcdir         directory where startup scripts are installed
 #  sa_lib_dir    sadc, sa1 and sa2 directory
 #  sa_dir        system activity daily datafiles directory
-#  conf_dir     sysstat configuration directory (default is /etc/sysconfig)
+#  conf_dir      sysstat configuration directory (default is /etc/sysconfig)
 #  history       number of daily datafiles to keep (default value is 7)
 #  compressafter number of days after which datafiles are compressed
 #  man_group     group for man pages
@@ -4882,7 +5063,7 @@ echo .
 #
 # Fine tuning the installation directories:
 #  --mandir=DIR           man documentation directory [PREFIX/man]
-#  --docdir=DIR                  other documentation directory [PREFIX/share/doc]
+#  --docdir=DIR           other documentation directory [PREFIX/share/doc]
 #
 # Installation directories:
 #  --prefix=PREFIX         install architecture-independent files in PREFIX
@@ -5079,19 +5260,6 @@ fi
 $as_echo "$COMPRESSAFTER" >&6; }
 
 
-# Preallocation factor
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking preallocation factor value" >&5
-$as_echo_n "checking preallocation factor value... " >&6; }
-
-if test x$prealloc = x""; then
-   PREALLOC_FACTOR=1
-else
-   PREALLOC_FACTOR=$prealloc
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PREALLOC_FACTOR" >&5
-$as_echo "$PREALLOC_FACTOR" >&6; }
-
-
 # Manual page group
 grep ^man: /etc/group >/dev/null 2>&1
 if test $? = 0; then
@@ -5396,8 +5564,6 @@ ac_config_files="$ac_config_files version.h:version.in"
                # File must be renamed
 ac_config_files="$ac_config_files sysconfig.h:sysconfig.in"
        # File must be renamed
-ac_config_files="$ac_config_files prealloc.h:prealloc.in"
-       # File must be renamed
 ac_config_files="$ac_config_files cron/sysstat.cron.daily"
 
 ac_config_files="$ac_config_files cron/sysstat.cron.hourly"
@@ -5434,6 +5600,8 @@ ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
        # File must be renamed
 ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
        # File must be renamed
+ac_config_files="$ac_config_files tests/variables"
+
 
 ac_config_files="$ac_config_files Makefile"
 
@@ -5979,7 +6147,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by sysstat $as_me 11.7.1, which was
+This file was extended by sysstat $as_me 12.1.7, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -6032,7 +6200,7 @@ _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-sysstat config.status 11.7.1
+sysstat config.status 12.1.7
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
@@ -6148,7 +6316,6 @@ do
     "sysstat.sysconfig") CONFIG_FILES="$CONFIG_FILES sysstat.sysconfig" ;;
     "version.h") CONFIG_FILES="$CONFIG_FILES version.h:version.in" ;;
     "sysconfig.h") CONFIG_FILES="$CONFIG_FILES sysconfig.h:sysconfig.in" ;;
-    "prealloc.h") CONFIG_FILES="$CONFIG_FILES prealloc.h:prealloc.in" ;;
     "cron/sysstat.cron.daily") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.daily" ;;
     "cron/sysstat.cron.hourly") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.hourly" ;;
     "cron/sysstat.crond") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond" ;;
@@ -6167,6 +6334,7 @@ do
     "man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
     "man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
     "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
+    "tests/variables") CONFIG_FILES="$CONFIG_FILES tests/variables" ;;
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;