… | |
… | |
5324 | |
5324 | |
5325 | |
5325 | |
5326 | |
5326 | |
5327 | |
5327 | |
5328 | |
5328 | |
|
|
5329 | |
5329 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h |
5330 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
5330 | do |
5331 | do |
5331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5332 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5333 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5334 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
5471 | |
5472 | |
5472 | |
5473 | |
5473 | |
5474 | |
5474 | |
5475 | |
5475 | |
5476 | |
|
|
5477 | |
5476 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd |
5478 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
5477 | do |
5479 | do |
5478 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5480 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5479 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5481 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5482 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5481 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5483 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
5650 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5652 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5651 | if test $ac_cv_func_clock_gettime = yes; then |
5653 | if test $ac_cv_func_clock_gettime = yes; then |
5652 | : |
5654 | : |
5653 | else |
5655 | else |
5654 | |
5656 | |
5655 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5657 | if test $(uname) = Linux; then |
|
|
5658 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
|
|
5659 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
|
|
5660 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5661 | /* confdefs.h. */ |
|
|
5662 | _ACEOF |
|
|
5663 | cat confdefs.h >>conftest.$ac_ext |
|
|
5664 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5665 | /* end confdefs.h. */ |
|
|
5666 | #include <syscall.h> |
|
|
5667 | #include <time.h> |
|
|
5668 | int |
|
|
5669 | main () |
|
|
5670 | { |
|
|
5671 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5672 | ; |
|
|
5673 | return 0; |
|
|
5674 | } |
|
|
5675 | _ACEOF |
|
|
5676 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5677 | if { (ac_try="$ac_link" |
|
|
5678 | case "(($ac_try" in |
|
|
5679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5680 | *) ac_try_echo=$ac_try;; |
|
|
5681 | esac |
|
|
5682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5683 | (eval "$ac_link") 2>conftest.er1 |
|
|
5684 | ac_status=$? |
|
|
5685 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5686 | rm -f conftest.er1 |
|
|
5687 | cat conftest.err >&5 |
|
|
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5689 | (exit $ac_status); } && { |
|
|
5690 | test -z "$ac_cxx_werror_flag" || |
|
|
5691 | test ! -s conftest.err |
|
|
5692 | } && test -s conftest$ac_exeext && |
|
|
5693 | $as_test_x conftest$ac_exeext; then |
|
|
5694 | ac_have_clock_syscall=1 |
|
|
5695 | |
|
|
5696 | cat >>confdefs.h <<\_ACEOF |
|
|
5697 | #define HAVE_CLOCK_SYSCALL 1 |
|
|
5698 | _ACEOF |
|
|
5699 | |
|
|
5700 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5701 | echo "${ECHO_T}yes" >&6; } |
|
|
5702 | else |
|
|
5703 | echo "$as_me: failed program was:" >&5 |
|
|
5704 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5705 | |
|
|
5706 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5707 | echo "${ECHO_T}no" >&6; } |
|
|
5708 | fi |
|
|
5709 | |
|
|
5710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5711 | conftest$ac_exeext conftest.$ac_ext |
|
|
5712 | fi |
|
|
5713 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
5656 | |
5714 | |
5657 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5715 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5658 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5716 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5659 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5717 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
6149 | _ACEOF |
6207 | _ACEOF |
6150 | |
6208 | |
6151 | LIBS="-lm $LIBS" |
6209 | LIBS="-lm $LIBS" |
6152 | |
6210 | |
6153 | fi |
6211 | fi |
6154 | |
|
|
6155 | |
|
|
6156 | |
6212 | |
6157 | |
6213 | |
6158 | |
6214 | |
6159 | |
6215 | |
6160 | |
6216 | |
… | |
… | |
8558 | |
8614 | |
8559 | |
8615 | |
8560 | |
8616 | |
8561 | |
8617 | |
8562 | for ac_func in \ |
8618 | for ac_func in \ |
8563 | ttyslot \ |
|
|
8564 | updwtmp \ |
8619 | updwtmp \ |
8565 | updwtmpx \ |
8620 | updwtmpx \ |
|
|
8621 | updlastlogx \ |
8566 | |
8622 | |
8567 | do |
8623 | do |
8568 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8624 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8569 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8625 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8570 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8626 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
8656 | fi |
8712 | fi |
8657 | done |
8713 | done |
8658 | |
8714 | |
8659 | |
8715 | |
8660 | |
8716 | |
8661 | |
|
|
8662 | |
|
|
8663 | for ac_header in \ |
8717 | for ac_header in lastlog.h |
8664 | utmp.h \ |
|
|
8665 | utmpx.h \ |
|
|
8666 | lastlog.h \ |
|
|
8667 | |
|
|
8668 | do |
8718 | do |
8669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8719 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8721 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8672 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
8803 | |
8853 | |
8804 | done |
8854 | done |
8805 | |
8855 | |
8806 | |
8856 | |
8807 | |
8857 | |
8808 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8858 | |
|
|
8859 | for ac_header in utmp.h |
|
|
8860 | do |
|
|
8861 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8809 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8863 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8810 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8811 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8813 | fi |
8867 | fi |
|
|
8868 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8814 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8869 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
8815 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8870 | echo "${ECHO_T}$ac_res" >&6; } |
8816 | else |
8871 | else |
8817 | # Is the header compilable? |
8872 | # Is the header compilable? |
8818 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8873 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8819 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8874 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
8820 | cat >conftest.$ac_ext <<_ACEOF |
8875 | cat >conftest.$ac_ext <<_ACEOF |
8821 | /* confdefs.h. */ |
8876 | /* confdefs.h. */ |
8822 | _ACEOF |
8877 | _ACEOF |
8823 | cat confdefs.h >>conftest.$ac_ext |
8878 | cat confdefs.h >>conftest.$ac_ext |
8824 | cat >>conftest.$ac_ext <<_ACEOF |
8879 | cat >>conftest.$ac_ext <<_ACEOF |
8825 | /* end confdefs.h. */ |
8880 | /* end confdefs.h. */ |
8826 | $ac_includes_default |
8881 | $ac_includes_default |
8827 | #include <utmp.h> |
8882 | #include <$ac_header> |
8828 | _ACEOF |
8883 | _ACEOF |
8829 | rm -f conftest.$ac_objext |
8884 | rm -f conftest.$ac_objext |
8830 | if { (ac_try="$ac_compile" |
8885 | if { (ac_try="$ac_compile" |
8831 | case "(($ac_try" in |
8886 | case "(($ac_try" in |
8832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
8854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8855 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8910 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8856 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8911 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8857 | |
8912 | |
8858 | # Is the header present? |
8913 | # Is the header present? |
8859 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8914 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8860 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
8861 | cat >conftest.$ac_ext <<_ACEOF |
8916 | cat >conftest.$ac_ext <<_ACEOF |
8862 | /* confdefs.h. */ |
8917 | /* confdefs.h. */ |
8863 | _ACEOF |
8918 | _ACEOF |
8864 | cat confdefs.h >>conftest.$ac_ext |
8919 | cat confdefs.h >>conftest.$ac_ext |
8865 | cat >>conftest.$ac_ext <<_ACEOF |
8920 | cat >>conftest.$ac_ext <<_ACEOF |
8866 | /* end confdefs.h. */ |
8921 | /* end confdefs.h. */ |
8867 | #include <utmp.h> |
8922 | #include <$ac_header> |
8868 | _ACEOF |
8923 | _ACEOF |
8869 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8924 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8870 | case "(($ac_try" in |
8925 | case "(($ac_try" in |
8871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8872 | *) ac_try_echo=$ac_try;; |
8927 | *) ac_try_echo=$ac_try;; |
… | |
… | |
8895 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8950 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8896 | |
8951 | |
8897 | # So? What about this header? |
8952 | # So? What about this header? |
8898 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8953 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8899 | yes:no: ) |
8954 | yes:no: ) |
8900 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8955 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8901 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8956 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8902 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8903 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8958 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8904 | ac_header_preproc=yes |
8959 | ac_header_preproc=yes |
8905 | ;; |
8960 | ;; |
8906 | no:yes:* ) |
8961 | no:yes:* ) |
8907 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8962 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8908 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8963 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8909 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8964 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8910 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8965 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8911 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8966 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8912 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8967 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8913 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8968 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8914 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8969 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8915 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8916 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8917 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8972 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8918 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8973 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8919 | |
8974 | |
8920 | ;; |
8975 | ;; |
8921 | esac |
8976 | esac |
8922 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8977 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8923 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8924 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8979 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8926 | else |
8981 | else |
8927 | ac_cv_header_utmp_h=$ac_header_preproc |
8982 | eval "$as_ac_Header=\$ac_header_preproc" |
8928 | fi |
8983 | fi |
|
|
8984 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8929 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
8930 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8986 | echo "${ECHO_T}$ac_res" >&6; } |
8931 | |
8987 | |
8932 | fi |
8988 | fi |
8933 | if test $ac_cv_header_utmp_h = yes; then |
8989 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
8990 | cat >>confdefs.h <<_ACEOF |
|
|
8991 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8992 | _ACEOF |
8934 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8993 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8935 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8994 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8936 | if test "${struct_utmp+set}" = set; then |
8995 | if test "${struct_utmp+set}" = set; then |
8937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8938 | else |
8997 | else |
8939 | cat >conftest.$ac_ext <<_ACEOF |
8998 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
9106 | |
9165 | |
9107 | fi |
9166 | fi |
9108 | |
9167 | |
9109 | fi |
9168 | fi |
9110 | |
9169 | |
|
|
9170 | done |
9111 | |
9171 | |
9112 | |
9172 | |
9113 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9173 | |
|
|
9174 | for ac_header in utmpx.h |
|
|
9175 | do |
|
|
9176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9177 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9114 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9178 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9115 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9116 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9180 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9118 | fi |
9182 | fi |
|
|
9183 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9119 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9184 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9120 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9185 | echo "${ECHO_T}$ac_res" >&6; } |
9121 | else |
9186 | else |
9122 | # Is the header compilable? |
9187 | # Is the header compilable? |
9123 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9188 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9124 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9125 | cat >conftest.$ac_ext <<_ACEOF |
9190 | cat >conftest.$ac_ext <<_ACEOF |
9126 | /* confdefs.h. */ |
9191 | /* confdefs.h. */ |
9127 | _ACEOF |
9192 | _ACEOF |
9128 | cat confdefs.h >>conftest.$ac_ext |
9193 | cat confdefs.h >>conftest.$ac_ext |
9129 | cat >>conftest.$ac_ext <<_ACEOF |
9194 | cat >>conftest.$ac_ext <<_ACEOF |
9130 | /* end confdefs.h. */ |
9195 | /* end confdefs.h. */ |
9131 | $ac_includes_default |
9196 | $ac_includes_default |
9132 | #include <utmpx.h> |
9197 | #include <$ac_header> |
9133 | _ACEOF |
9198 | _ACEOF |
9134 | rm -f conftest.$ac_objext |
9199 | rm -f conftest.$ac_objext |
9135 | if { (ac_try="$ac_compile" |
9200 | if { (ac_try="$ac_compile" |
9136 | case "(($ac_try" in |
9201 | case "(($ac_try" in |
9137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
9159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9160 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9225 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9161 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9226 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9162 | |
9227 | |
9163 | # Is the header present? |
9228 | # Is the header present? |
9164 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9229 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9165 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9230 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
9166 | cat >conftest.$ac_ext <<_ACEOF |
9231 | cat >conftest.$ac_ext <<_ACEOF |
9167 | /* confdefs.h. */ |
9232 | /* confdefs.h. */ |
9168 | _ACEOF |
9233 | _ACEOF |
9169 | cat confdefs.h >>conftest.$ac_ext |
9234 | cat confdefs.h >>conftest.$ac_ext |
9170 | cat >>conftest.$ac_ext <<_ACEOF |
9235 | cat >>conftest.$ac_ext <<_ACEOF |
9171 | /* end confdefs.h. */ |
9236 | /* end confdefs.h. */ |
9172 | #include <utmpx.h> |
9237 | #include <$ac_header> |
9173 | _ACEOF |
9238 | _ACEOF |
9174 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9239 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9175 | case "(($ac_try" in |
9240 | case "(($ac_try" in |
9176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9177 | *) ac_try_echo=$ac_try;; |
9242 | *) ac_try_echo=$ac_try;; |
… | |
… | |
9200 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9265 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9201 | |
9266 | |
9202 | # So? What about this header? |
9267 | # So? What about this header? |
9203 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9268 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9204 | yes:no: ) |
9269 | yes:no: ) |
9205 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9270 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9206 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9271 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9207 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9208 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9273 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
9209 | ac_header_preproc=yes |
9274 | ac_header_preproc=yes |
9210 | ;; |
9275 | ;; |
9211 | no:yes:* ) |
9276 | no:yes:* ) |
9212 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9277 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9213 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9278 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
9214 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9279 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9215 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9280 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
9216 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9281 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
9217 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9282 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
9218 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9283 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
9219 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9284 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
9220 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9221 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9286 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
9222 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9223 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9288 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
9224 | |
9289 | |
9225 | ;; |
9290 | ;; |
9226 | esac |
9291 | esac |
9227 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9292 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9228 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9229 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9294 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9231 | else |
9296 | else |
9232 | ac_cv_header_utmpx_h=$ac_header_preproc |
9297 | eval "$as_ac_Header=\$ac_header_preproc" |
9233 | fi |
9298 | fi |
|
|
9299 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9234 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9300 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9235 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9301 | echo "${ECHO_T}$ac_res" >&6; } |
9236 | |
9302 | |
9237 | fi |
9303 | fi |
9238 | if test $ac_cv_header_utmpx_h = yes; then |
9304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9305 | cat >>confdefs.h <<_ACEOF |
|
|
9306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9307 | _ACEOF |
9239 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9308 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9240 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9309 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9241 | if test "${struct_utmpx+set}" = set; then |
9310 | if test "${struct_utmpx+set}" = set; then |
9242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9243 | else |
9312 | else |
9244 | cat >conftest.$ac_ext <<_ACEOF |
9313 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
9411 | |
9480 | |
9412 | fi |
9481 | fi |
9413 | |
9482 | |
9414 | fi |
9483 | fi |
9415 | |
9484 | |
|
|
9485 | done |
9416 | |
9486 | |
9417 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9487 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9418 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9488 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9419 | if test "${struct_lastlog+set}" = set; then |
9489 | if test "${struct_lastlog+set}" = set; then |
9420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
9991 | |
10061 | |
9992 | cat >>confdefs.h <<_ACEOF |
10062 | cat >>confdefs.h <<_ACEOF |
9993 | #define LASTLOG_FILE "$path_lastlog" |
10063 | #define LASTLOG_FILE "$path_lastlog" |
9994 | _ACEOF |
10064 | _ACEOF |
9995 | |
10065 | |
9996 | if test -d "$path_lastlog"; then |
|
|
9997 | |
|
|
9998 | cat >>confdefs.h <<\_ACEOF |
|
|
9999 | #define LASTLOG_IS_DIR 1 |
|
|
10000 | _ACEOF |
|
|
10001 | |
|
|
10002 | fi |
|
|
10003 | fi |
10066 | fi |
10004 | |
10067 | |
10005 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10068 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10006 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10069 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10007 | if test "${path_lastlogx+set}" = set; then |
10070 | if test "${path_lastlogx+set}" = set; then |