diff options
| author | Glenn Morris | 2011-06-19 14:33:17 -0400 |
|---|---|---|
| committer | Glenn Morris | 2011-06-19 14:33:17 -0400 |
| commit | 34119902fd5b32acbd324e233119fad007b0fea1 (patch) | |
| tree | dcdbff4e5974277e5ad64e9b38bb0cf34cea7d14 | |
| parent | add3f049962534b7d8412517b69d53a3f411c5de (diff) | |
| download | emacs-34119902fd5b32acbd324e233119fad007b0fea1.tar.gz emacs-34119902fd5b32acbd324e233119fad007b0fea1.zip | |
Auto-commit of generated files.
| -rwxr-xr-x | autogen/configure | 192 |
1 files changed, 96 insertions, 96 deletions
diff --git a/autogen/configure b/autogen/configure index 439e4f4ffa7..dbc48737643 100755 --- a/autogen/configure +++ b/autogen/configure | |||
| @@ -16707,14 +16707,14 @@ ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" | |||
| 16707 | if test "x$ac_cv_func_getloadavg" = x""yes; then : | 16707 | if test "x$ac_cv_func_getloadavg" = x""yes; then : |
| 16708 | 16708 | ||
| 16709 | else | 16709 | else |
| 16710 | gl_have_func=no | 16710 | gl_func_getloadavg_done=no |
| 16711 | 16711 | ||
| 16712 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | 16712 | # Some systems with -lutil have (and need) -lkvm as well, some do not. |
| 16713 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | 16713 | # On Solaris, -lkvm requires nlist from -lelf, so check that first |
| 16714 | # to get the right answer into the cache. | 16714 | # to get the right answer into the cache. |
| 16715 | # For kstat on solaris, we need to test for libelf and libkvm to force the | 16715 | # For kstat on solaris, we need to test for libelf and libkvm to force the |
| 16716 | # definition of SVR4 below. | 16716 | # definition of SVR4 below. |
| 16717 | if test $gl_have_func = no; then | 16717 | if test $gl_func_getloadavg_done = no; then |
| 16718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 | 16718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 |
| 16719 | $as_echo_n "checking for elf_begin in -lelf... " >&6; } | 16719 | $as_echo_n "checking for elf_begin in -lelf... " >&6; } |
| 16720 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : | 16720 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : |
| @@ -16833,12 +16833,12 @@ fi | |||
| 16833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 | 16833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 |
| 16834 | $as_echo "$ac_cv_lib_util_getloadavg" >&6; } | 16834 | $as_echo "$ac_cv_lib_util_getloadavg" >&6; } |
| 16835 | if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : | 16835 | if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : |
| 16836 | LIBS="-lutil $LIBS" gl_have_func=yes | 16836 | LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes |
| 16837 | fi | 16837 | fi |
| 16838 | 16838 | ||
| 16839 | fi | 16839 | fi |
| 16840 | 16840 | ||
| 16841 | if test $gl_have_func = no; then | 16841 | if test $gl_func_getloadavg_done = no; then |
| 16842 | # There is a commonly available library for RS/6000 AIX. | 16842 | # There is a commonly available library for RS/6000 AIX. |
| 16843 | # Since it is not a standard part of AIX, it might be installed locally. | 16843 | # Since it is not a standard part of AIX, it might be installed locally. |
| 16844 | gl_getloadavg_LIBS=$LIBS | 16844 | gl_getloadavg_LIBS=$LIBS |
| @@ -16880,7 +16880,7 @@ fi | |||
| 16880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 | 16880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
| 16881 | $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } | 16881 | $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } |
| 16882 | if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : | 16882 | if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : |
| 16883 | LIBS="-lgetloadavg $LIBS" gl_have_func=yes | 16883 | LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes |
| 16884 | else | 16884 | else |
| 16885 | LIBS=$gl_getloadavg_LIBS | 16885 | LIBS=$gl_getloadavg_LIBS |
| 16886 | fi | 16886 | fi |
| @@ -16888,67 +16888,11 @@ fi | |||
| 16888 | fi | 16888 | fi |
| 16889 | 16889 | ||
| 16890 | # Set up the replacement function if necessary. | 16890 | # Set up the replacement function if necessary. |
| 16891 | if test $gl_have_func = no; then | 16891 | if test $gl_func_getloadavg_done = no; then |
| 16892 | HAVE_GETLOADAVG=0 | 16892 | HAVE_GETLOADAVG=0 |
| 16893 | fi | ||
| 16894 | fi | ||
| 16895 | |||
| 16896 | |||
| 16897 | if test "x$gl_save_LIBS" = x; then | ||
| 16898 | GETLOADAVG_LIBS=$LIBS | ||
| 16899 | else | ||
| 16900 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"` | ||
| 16901 | fi | ||
| 16902 | LIBS=$gl_save_LIBS | ||
| 16903 | |||
| 16904 | |||
| 16905 | # Test whether the system declares getloadavg. Solaris has the function | ||
| 16906 | # but declares it in <sys/loadavg.h>, not <stdlib.h>. | ||
| 16907 | for ac_header in sys/loadavg.h | ||
| 16908 | do : | ||
| 16909 | ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" | ||
| 16910 | if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then : | ||
| 16911 | cat >>confdefs.h <<_ACEOF | ||
| 16912 | #define HAVE_SYS_LOADAVG_H 1 | ||
| 16913 | _ACEOF | ||
| 16914 | |||
| 16915 | fi | ||
| 16916 | |||
| 16917 | done | ||
| 16918 | |||
| 16919 | if test $ac_cv_header_sys_loadavg_h = yes; then | ||
| 16920 | HAVE_SYS_LOADAVG_H=1 | ||
| 16921 | else | ||
| 16922 | HAVE_SYS_LOADAVG_H=0 | ||
| 16923 | fi | ||
| 16924 | ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H | ||
| 16925 | # include <sys/loadavg.h> | ||
| 16926 | #endif | ||
| 16927 | #include <stdlib.h> | ||
| 16928 | " | ||
| 16929 | if test "x$ac_cv_have_decl_getloadavg" = x""yes; then : | ||
| 16930 | |||
| 16931 | else | ||
| 16932 | HAVE_DECL_GETLOADAVG=0 | ||
| 16933 | fi | ||
| 16934 | |||
| 16935 | |||
| 16936 | if test $HAVE_GETLOADAVG = 0; then | ||
| 16937 | |||
| 16938 | |||
| 16939 | |||
| 16940 | |||
| 16941 | |||
| 16942 | |||
| 16943 | |||
| 16944 | |||
| 16945 | gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext" | ||
| 16946 | 16893 | ||
| 16947 | 16894 | # Solaris has libkstat which does not require root. | |
| 16948 | # Figure out what our getloadavg.c needs. | 16895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 |
| 16949 | |||
| 16950 | # Solaris has libkstat which does not require root. | ||
| 16951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 | ||
| 16952 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } | 16896 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
| 16953 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : | 16897 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : |
| 16954 | $as_echo_n "(cached) " >&6 | 16898 | $as_echo_n "(cached) " >&6 |
| @@ -16993,26 +16937,11 @@ _ACEOF | |||
| 16993 | 16937 | ||
| 16994 | fi | 16938 | fi |
| 16995 | 16939 | ||
| 16996 | test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes | 16940 | test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes |
| 16997 | 16941 | ||
| 16998 | # On HPUX9, an unprivileged user can get load averages this way. | 16942 | # AIX has libperfstat which does not require root |
| 16999 | if test $gl_have_func = no; then | 16943 | if test $gl_func_getloadavg_done = no; then |
| 17000 | for ac_func in pstat_getdynamic | 16944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5 |
| 17001 | do : | ||
| 17002 | ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" | ||
| 17003 | if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : | ||
| 17004 | cat >>confdefs.h <<_ACEOF | ||
| 17005 | #define HAVE_PSTAT_GETDYNAMIC 1 | ||
| 17006 | _ACEOF | ||
| 17007 | gl_have_func=yes | ||
| 17008 | fi | ||
| 17009 | done | ||
| 17010 | |||
| 17011 | fi | ||
| 17012 | |||
| 17013 | # AIX has libperfstat which does not require root | ||
| 17014 | if test $gl_have_func = no; then | ||
| 17015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5 | ||
| 17016 | $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; } | 16945 | $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; } |
| 17017 | if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then : | 16946 | if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then : |
| 17018 | $as_echo_n "(cached) " >&6 | 16947 | $as_echo_n "(cached) " >&6 |
| @@ -17057,17 +16986,17 @@ _ACEOF | |||
| 17057 | 16986 | ||
| 17058 | fi | 16987 | fi |
| 17059 | 16988 | ||
| 17060 | test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes | 16989 | test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes |
| 17061 | fi | 16990 | fi |
| 17062 | 16991 | ||
| 17063 | if test $gl_have_func = no; then | 16992 | if test $gl_func_getloadavg_done = no; then |
| 17064 | ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" | 16993 | ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" |
| 17065 | if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : | 16994 | if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : |
| 17066 | gl_have_func=yes | 16995 | gl_func_getloadavg_done=yes |
| 17067 | 16996 | ||
| 17068 | $as_echo "#define DGUX 1" >>confdefs.h | 16997 | $as_echo "#define DGUX 1" >>confdefs.h |
| 17069 | 16998 | ||
| 17070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 | 16999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 |
| 17071 | $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } | 17000 | $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } |
| 17072 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : | 17001 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : |
| 17073 | $as_echo_n "(cached) " >&6 | 17002 | $as_echo_n "(cached) " >&6 |
| @@ -17115,23 +17044,94 @@ fi | |||
| 17115 | fi | 17044 | fi |
| 17116 | 17045 | ||
| 17117 | 17046 | ||
| 17047 | fi | ||
| 17048 | fi | ||
| 17049 | fi | ||
| 17050 | |||
| 17051 | |||
| 17052 | if test "x$gl_save_LIBS" = x; then | ||
| 17053 | GETLOADAVG_LIBS=$LIBS | ||
| 17054 | else | ||
| 17055 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"` | ||
| 17056 | fi | ||
| 17057 | LIBS=$gl_save_LIBS | ||
| 17058 | |||
| 17059 | |||
| 17060 | # Test whether the system declares getloadavg. Solaris has the function | ||
| 17061 | # but declares it in <sys/loadavg.h>, not <stdlib.h>. | ||
| 17062 | for ac_header in sys/loadavg.h | ||
| 17063 | do : | ||
| 17064 | ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" | ||
| 17065 | if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then : | ||
| 17066 | cat >>confdefs.h <<_ACEOF | ||
| 17067 | #define HAVE_SYS_LOADAVG_H 1 | ||
| 17068 | _ACEOF | ||
| 17069 | |||
| 17070 | fi | ||
| 17071 | |||
| 17072 | done | ||
| 17073 | |||
| 17074 | if test $ac_cv_header_sys_loadavg_h = yes; then | ||
| 17075 | HAVE_SYS_LOADAVG_H=1 | ||
| 17076 | else | ||
| 17077 | HAVE_SYS_LOADAVG_H=0 | ||
| 17078 | fi | ||
| 17079 | ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H | ||
| 17080 | # include <sys/loadavg.h> | ||
| 17081 | #endif | ||
| 17082 | #include <stdlib.h> | ||
| 17083 | " | ||
| 17084 | if test "x$ac_cv_have_decl_getloadavg" = x""yes; then : | ||
| 17085 | |||
| 17086 | else | ||
| 17087 | HAVE_DECL_GETLOADAVG=0 | ||
| 17088 | fi | ||
| 17089 | |||
| 17090 | |||
| 17091 | if test $HAVE_GETLOADAVG = 0; then | ||
| 17092 | |||
| 17093 | |||
| 17094 | |||
| 17095 | |||
| 17096 | |||
| 17097 | |||
| 17098 | |||
| 17099 | |||
| 17100 | gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext" | ||
| 17101 | |||
| 17102 | |||
| 17103 | # Figure out what our getloadavg.c needs. | ||
| 17104 | |||
| 17105 | # On HPUX9, an unprivileged user can get load averages this way. | ||
| 17106 | if test $gl_func_getloadavg_done = no; then | ||
| 17107 | for ac_func in pstat_getdynamic | ||
| 17108 | do : | ||
| 17109 | ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" | ||
| 17110 | if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : | ||
| 17111 | cat >>confdefs.h <<_ACEOF | ||
| 17112 | #define HAVE_PSTAT_GETDYNAMIC 1 | ||
| 17113 | _ACEOF | ||
| 17114 | gl_func_getloadavg_done=yes | ||
| 17115 | fi | ||
| 17116 | done | ||
| 17117 | |||
| 17118 | fi | 17118 | fi |
| 17119 | 17119 | ||
| 17120 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | 17120 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
| 17121 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | 17121 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because |
| 17122 | # Irix 4.0.5F has the header but not the library. | 17122 | # Irix 4.0.5F has the header but not the library. |
| 17123 | if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \ | 17123 | if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \ |
| 17124 | && test "$ac_cv_lib_kvm_kvm_open" = yes; then | 17124 | && test "$ac_cv_lib_kvm_kvm_open" = yes; then |
| 17125 | gl_have_func=yes | 17125 | gl_func_getloadavg_done=yes |
| 17126 | 17126 | ||
| 17127 | $as_echo "#define SVR4 1" >>confdefs.h | 17127 | $as_echo "#define SVR4 1" >>confdefs.h |
| 17128 | 17128 | ||
| 17129 | fi | 17129 | fi |
| 17130 | 17130 | ||
| 17131 | if test $gl_have_func = no; then | 17131 | if test $gl_func_getloadavg_done = no; then |
| 17132 | ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" | 17132 | ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" |
| 17133 | if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : | 17133 | if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : |
| 17134 | gl_have_func=yes | 17134 | gl_func_getloadavg_done=yes |
| 17135 | 17135 | ||
| 17136 | $as_echo "#define UMAX 1" >>confdefs.h | 17136 | $as_echo "#define UMAX 1" >>confdefs.h |
| 17137 | 17137 | ||
| @@ -17143,17 +17143,17 @@ fi | |||
| 17143 | 17143 | ||
| 17144 | fi | 17144 | fi |
| 17145 | 17145 | ||
| 17146 | if test $gl_have_func = no; then | 17146 | if test $gl_func_getloadavg_done = no; then |
| 17147 | ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" | 17147 | ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" |
| 17148 | if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : | 17148 | if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : |
| 17149 | gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h | 17149 | gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h |
| 17150 | 17150 | ||
| 17151 | fi | 17151 | fi |
| 17152 | 17152 | ||
| 17153 | 17153 | ||
| 17154 | fi | 17154 | fi |
| 17155 | 17155 | ||
| 17156 | if test $gl_have_func = no; then | 17156 | if test $gl_func_getloadavg_done = no; then |
| 17157 | for ac_header in mach/mach.h | 17157 | for ac_header in mach/mach.h |
| 17158 | do : | 17158 | do : |
| 17159 | ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" | 17159 | ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" |