… | |
… | |
270 | PACKAGE_VERSION= |
270 | PACKAGE_VERSION= |
271 | PACKAGE_STRING= |
271 | PACKAGE_STRING= |
272 | PACKAGE_BUGREPORT= |
272 | PACKAGE_BUGREPORT= |
273 | |
273 | |
274 | ac_unique_file="src/logging.C" |
274 | ac_unique_file="src/logging.C" |
|
|
275 | # Factoring default headers for most tests. |
|
|
276 | ac_includes_default="\ |
|
|
277 | #include <stdio.h> |
|
|
278 | #if HAVE_SYS_TYPES_H |
|
|
279 | # include <sys/types.h> |
|
|
280 | #endif |
|
|
281 | #if HAVE_SYS_STAT_H |
|
|
282 | # include <sys/stat.h> |
|
|
283 | #endif |
|
|
284 | #if STDC_HEADERS |
|
|
285 | # include <stdlib.h> |
|
|
286 | # include <stddef.h> |
|
|
287 | #else |
|
|
288 | # if HAVE_STDLIB_H |
|
|
289 | # include <stdlib.h> |
|
|
290 | # endif |
|
|
291 | #endif |
|
|
292 | #if HAVE_STRING_H |
|
|
293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
|
|
294 | # include <memory.h> |
|
|
295 | # endif |
|
|
296 | # include <string.h> |
|
|
297 | #endif |
|
|
298 | #if HAVE_STRINGS_H |
|
|
299 | # include <strings.h> |
|
|
300 | #endif |
|
|
301 | #if HAVE_INTTYPES_H |
|
|
302 | # include <inttypes.h> |
|
|
303 | #else |
|
|
304 | # if HAVE_STDINT_H |
|
|
305 | # include <stdint.h> |
|
|
306 | # endif |
|
|
307 | #endif |
|
|
308 | #if HAVE_UNISTD_H |
|
|
309 | # include <unistd.h> |
|
|
310 | #endif" |
|
|
311 | |
275 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS' |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CXXCPP EGREP LIBOBJS LTLIBOBJS' |
276 | ac_subst_files='' |
313 | ac_subst_files='' |
277 | |
314 | |
278 | # Initialize some variables set by options. |
315 | # Initialize some variables set by options. |
279 | ac_init_help= |
316 | ac_init_help= |
280 | ac_init_version=false |
317 | ac_init_version=false |
… | |
… | |
727 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
728 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
729 | ac_env_CPPFLAGS_value=$CPPFLAGS |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
730 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
731 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
|
|
769 | ac_env_CXXCPP_set=${CXXCPP+set} |
|
|
770 | ac_env_CXXCPP_value=$CXXCPP |
|
|
771 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
|
|
772 | ac_cv_env_CXXCPP_value=$CXXCPP |
732 | |
773 | |
733 | # |
774 | # |
734 | # Report the --help message. |
775 | # Report the --help message. |
735 | # |
776 | # |
736 | if test "$ac_init_help" = "long"; then |
777 | if test "$ac_init_help" = "long"; then |
… | |
… | |
805 | CXXFLAGS C++ compiler flags |
846 | CXXFLAGS C++ compiler flags |
806 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
847 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
807 | nonstandard directory <lib dir> |
848 | nonstandard directory <lib dir> |
808 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
849 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
809 | headers in a nonstandard directory <include dir> |
850 | headers in a nonstandard directory <include dir> |
|
|
851 | CXXCPP C++ preprocessor |
810 | |
852 | |
811 | Use these variables to override the choices made by `configure' or to help |
853 | Use these variables to override the choices made by `configure' or to help |
812 | it to find libraries and programs with nonstandard names/locations. |
854 | it to find libraries and programs with nonstandard names/locations. |
813 | |
855 | |
814 | _ACEOF |
856 | _ACEOF |
… | |
… | |
1966 | ac_ext=cc |
2008 | ac_ext=cc |
1967 | ac_cpp='$CXXCPP $CPPFLAGS' |
2009 | ac_cpp='$CXXCPP $CPPFLAGS' |
1968 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2010 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1969 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2011 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1970 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2012 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
2013 | |
|
|
2014 | |
|
|
2015 | # Extract the first word of "rm", so it can be a program name with args. |
|
|
2016 | set dummy rm; ac_word=$2 |
|
|
2017 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2019 | if test "${ac_cv_path_RM+set}" = set; then |
|
|
2020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2021 | else |
|
|
2022 | case $RM in |
|
|
2023 | [\\/]* | ?:[\\/]*) |
|
|
2024 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
|
|
2025 | ;; |
|
|
2026 | *) |
|
|
2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2028 | for as_dir in $PATH |
|
|
2029 | do |
|
|
2030 | IFS=$as_save_IFS |
|
|
2031 | test -z "$as_dir" && as_dir=. |
|
|
2032 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2033 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2034 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
|
|
2035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2036 | break 2 |
|
|
2037 | fi |
|
|
2038 | done |
|
|
2039 | done |
|
|
2040 | |
|
|
2041 | ;; |
|
|
2042 | esac |
|
|
2043 | fi |
|
|
2044 | RM=$ac_cv_path_RM |
|
|
2045 | |
|
|
2046 | if test -n "$RM"; then |
|
|
2047 | echo "$as_me:$LINENO: result: $RM" >&5 |
|
|
2048 | echo "${ECHO_T}$RM" >&6 |
|
|
2049 | else |
|
|
2050 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2051 | echo "${ECHO_T}no" >&6 |
|
|
2052 | fi |
|
|
2053 | |
|
|
2054 | |
|
|
2055 | |
|
|
2056 | ac_ext=cc |
|
|
2057 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
2058 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2059 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2060 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
2061 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
2062 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
2063 | if test -z "$CXXCPP"; then |
|
|
2064 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
2065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2066 | else |
|
|
2067 | # Double quotes because CXXCPP needs to be expanded |
|
|
2068 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
2069 | do |
|
|
2070 | ac_preproc_ok=false |
|
|
2071 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
2072 | do |
|
|
2073 | # Use a header file that comes with gcc, so configuring glibc |
|
|
2074 | # with a fresh cross-compiler works. |
|
|
2075 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
2076 | # <limits.h> exists even on freestanding compilers. |
|
|
2077 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
2078 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
2079 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2080 | /* confdefs.h. */ |
|
|
2081 | _ACEOF |
|
|
2082 | cat confdefs.h >>conftest.$ac_ext |
|
|
2083 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2084 | /* end confdefs.h. */ |
|
|
2085 | #ifdef __STDC__ |
|
|
2086 | # include <limits.h> |
|
|
2087 | #else |
|
|
2088 | # include <assert.h> |
|
|
2089 | #endif |
|
|
2090 | Syntax error |
|
|
2091 | _ACEOF |
|
|
2092 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
2093 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
2094 | ac_status=$? |
|
|
2095 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2096 | rm -f conftest.er1 |
|
|
2097 | cat conftest.err >&5 |
|
|
2098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2099 | (exit $ac_status); } >/dev/null; then |
|
|
2100 | if test -s conftest.err; then |
|
|
2101 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
2102 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
2103 | else |
|
|
2104 | ac_cpp_err= |
|
|
2105 | fi |
|
|
2106 | else |
|
|
2107 | ac_cpp_err=yes |
|
|
2108 | fi |
|
|
2109 | if test -z "$ac_cpp_err"; then |
|
|
2110 | : |
|
|
2111 | else |
|
|
2112 | echo "$as_me: failed program was:" >&5 |
|
|
2113 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2114 | |
|
|
2115 | # Broken: fails on valid input. |
|
|
2116 | continue |
|
|
2117 | fi |
|
|
2118 | rm -f conftest.err conftest.$ac_ext |
|
|
2119 | |
|
|
2120 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
2121 | # can be detected and how. |
|
|
2122 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2123 | /* confdefs.h. */ |
|
|
2124 | _ACEOF |
|
|
2125 | cat confdefs.h >>conftest.$ac_ext |
|
|
2126 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2127 | /* end confdefs.h. */ |
|
|
2128 | #include <ac_nonexistent.h> |
|
|
2129 | _ACEOF |
|
|
2130 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
2131 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
2132 | ac_status=$? |
|
|
2133 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2134 | rm -f conftest.er1 |
|
|
2135 | cat conftest.err >&5 |
|
|
2136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2137 | (exit $ac_status); } >/dev/null; then |
|
|
2138 | if test -s conftest.err; then |
|
|
2139 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
2140 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
2141 | else |
|
|
2142 | ac_cpp_err= |
|
|
2143 | fi |
|
|
2144 | else |
|
|
2145 | ac_cpp_err=yes |
|
|
2146 | fi |
|
|
2147 | if test -z "$ac_cpp_err"; then |
|
|
2148 | # Broken: success on invalid input. |
|
|
2149 | continue |
|
|
2150 | else |
|
|
2151 | echo "$as_me: failed program was:" >&5 |
|
|
2152 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2153 | |
|
|
2154 | # Passes both tests. |
|
|
2155 | ac_preproc_ok=: |
|
|
2156 | break |
|
|
2157 | fi |
|
|
2158 | rm -f conftest.err conftest.$ac_ext |
|
|
2159 | |
|
|
2160 | done |
|
|
2161 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
2162 | rm -f conftest.err conftest.$ac_ext |
|
|
2163 | if $ac_preproc_ok; then |
|
|
2164 | break |
|
|
2165 | fi |
|
|
2166 | |
|
|
2167 | done |
|
|
2168 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
2169 | |
|
|
2170 | fi |
|
|
2171 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
2172 | else |
|
|
2173 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
2174 | fi |
|
|
2175 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
2176 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
2177 | ac_preproc_ok=false |
|
|
2178 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
2179 | do |
|
|
2180 | # Use a header file that comes with gcc, so configuring glibc |
|
|
2181 | # with a fresh cross-compiler works. |
|
|
2182 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
2183 | # <limits.h> exists even on freestanding compilers. |
|
|
2184 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
2185 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
2186 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2187 | /* confdefs.h. */ |
|
|
2188 | _ACEOF |
|
|
2189 | cat confdefs.h >>conftest.$ac_ext |
|
|
2190 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2191 | /* end confdefs.h. */ |
|
|
2192 | #ifdef __STDC__ |
|
|
2193 | # include <limits.h> |
|
|
2194 | #else |
|
|
2195 | # include <assert.h> |
|
|
2196 | #endif |
|
|
2197 | Syntax error |
|
|
2198 | _ACEOF |
|
|
2199 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
2200 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
2201 | ac_status=$? |
|
|
2202 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2203 | rm -f conftest.er1 |
|
|
2204 | cat conftest.err >&5 |
|
|
2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2206 | (exit $ac_status); } >/dev/null; then |
|
|
2207 | if test -s conftest.err; then |
|
|
2208 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
2209 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
2210 | else |
|
|
2211 | ac_cpp_err= |
|
|
2212 | fi |
|
|
2213 | else |
|
|
2214 | ac_cpp_err=yes |
|
|
2215 | fi |
|
|
2216 | if test -z "$ac_cpp_err"; then |
|
|
2217 | : |
|
|
2218 | else |
|
|
2219 | echo "$as_me: failed program was:" >&5 |
|
|
2220 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2221 | |
|
|
2222 | # Broken: fails on valid input. |
|
|
2223 | continue |
|
|
2224 | fi |
|
|
2225 | rm -f conftest.err conftest.$ac_ext |
|
|
2226 | |
|
|
2227 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
2228 | # can be detected and how. |
|
|
2229 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2230 | /* confdefs.h. */ |
|
|
2231 | _ACEOF |
|
|
2232 | cat confdefs.h >>conftest.$ac_ext |
|
|
2233 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2234 | /* end confdefs.h. */ |
|
|
2235 | #include <ac_nonexistent.h> |
|
|
2236 | _ACEOF |
|
|
2237 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
2238 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
2239 | ac_status=$? |
|
|
2240 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2241 | rm -f conftest.er1 |
|
|
2242 | cat conftest.err >&5 |
|
|
2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2244 | (exit $ac_status); } >/dev/null; then |
|
|
2245 | if test -s conftest.err; then |
|
|
2246 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
2247 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
2248 | else |
|
|
2249 | ac_cpp_err= |
|
|
2250 | fi |
|
|
2251 | else |
|
|
2252 | ac_cpp_err=yes |
|
|
2253 | fi |
|
|
2254 | if test -z "$ac_cpp_err"; then |
|
|
2255 | # Broken: success on invalid input. |
|
|
2256 | continue |
|
|
2257 | else |
|
|
2258 | echo "$as_me: failed program was:" >&5 |
|
|
2259 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2260 | |
|
|
2261 | # Passes both tests. |
|
|
2262 | ac_preproc_ok=: |
|
|
2263 | break |
|
|
2264 | fi |
|
|
2265 | rm -f conftest.err conftest.$ac_ext |
|
|
2266 | |
|
|
2267 | done |
|
|
2268 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
2269 | rm -f conftest.err conftest.$ac_ext |
|
|
2270 | if $ac_preproc_ok; then |
|
|
2271 | : |
|
|
2272 | else |
|
|
2273 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
2274 | See \`config.log' for more details." >&5 |
|
|
2275 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
2276 | See \`config.log' for more details." >&2;} |
|
|
2277 | { (exit 1); exit 1; }; } |
|
|
2278 | fi |
|
|
2279 | |
|
|
2280 | ac_ext=cc |
|
|
2281 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
2282 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2283 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2284 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
2285 | |
|
|
2286 | |
|
|
2287 | echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
2288 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
|
2289 | if test "${ac_cv_prog_egrep+set}" = set; then |
|
|
2290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2291 | else |
|
|
2292 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
2293 | then ac_cv_prog_egrep='grep -E' |
|
|
2294 | else ac_cv_prog_egrep='egrep' |
|
|
2295 | fi |
|
|
2296 | fi |
|
|
2297 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
2298 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
2299 | EGREP=$ac_cv_prog_egrep |
|
|
2300 | |
|
|
2301 | |
|
|
2302 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
2303 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
2304 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
2305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2306 | else |
|
|
2307 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2308 | /* confdefs.h. */ |
|
|
2309 | _ACEOF |
|
|
2310 | cat confdefs.h >>conftest.$ac_ext |
|
|
2311 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2312 | /* end confdefs.h. */ |
|
|
2313 | #include <stdlib.h> |
|
|
2314 | #include <stdarg.h> |
|
|
2315 | #include <string.h> |
|
|
2316 | #include <float.h> |
|
|
2317 | |
|
|
2318 | int |
|
|
2319 | main () |
|
|
2320 | { |
|
|
2321 | |
|
|
2322 | ; |
|
|
2323 | return 0; |
|
|
2324 | } |
|
|
2325 | _ACEOF |
|
|
2326 | rm -f conftest.$ac_objext |
|
|
2327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2328 | (eval $ac_compile) 2>conftest.er1 |
|
|
2329 | ac_status=$? |
|
|
2330 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2331 | rm -f conftest.er1 |
|
|
2332 | cat conftest.err >&5 |
|
|
2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2334 | (exit $ac_status); } && |
|
|
2335 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
2336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2337 | (eval $ac_try) 2>&5 |
|
|
2338 | ac_status=$? |
|
|
2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2340 | (exit $ac_status); }; } && |
|
|
2341 | { ac_try='test -s conftest.$ac_objext' |
|
|
2342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2343 | (eval $ac_try) 2>&5 |
|
|
2344 | ac_status=$? |
|
|
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2346 | (exit $ac_status); }; }; then |
|
|
2347 | ac_cv_header_stdc=yes |
|
|
2348 | else |
|
|
2349 | echo "$as_me: failed program was:" >&5 |
|
|
2350 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2351 | |
|
|
2352 | ac_cv_header_stdc=no |
|
|
2353 | fi |
|
|
2354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2355 | |
|
|
2356 | if test $ac_cv_header_stdc = yes; then |
|
|
2357 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
2358 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2359 | /* confdefs.h. */ |
|
|
2360 | _ACEOF |
|
|
2361 | cat confdefs.h >>conftest.$ac_ext |
|
|
2362 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2363 | /* end confdefs.h. */ |
|
|
2364 | #include <string.h> |
|
|
2365 | |
|
|
2366 | _ACEOF |
|
|
2367 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
2368 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
2369 | : |
|
|
2370 | else |
|
|
2371 | ac_cv_header_stdc=no |
|
|
2372 | fi |
|
|
2373 | rm -f conftest* |
|
|
2374 | |
|
|
2375 | fi |
|
|
2376 | |
|
|
2377 | if test $ac_cv_header_stdc = yes; then |
|
|
2378 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
2379 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2380 | /* confdefs.h. */ |
|
|
2381 | _ACEOF |
|
|
2382 | cat confdefs.h >>conftest.$ac_ext |
|
|
2383 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2384 | /* end confdefs.h. */ |
|
|
2385 | #include <stdlib.h> |
|
|
2386 | |
|
|
2387 | _ACEOF |
|
|
2388 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
2389 | $EGREP "free" >/dev/null 2>&1; then |
|
|
2390 | : |
|
|
2391 | else |
|
|
2392 | ac_cv_header_stdc=no |
|
|
2393 | fi |
|
|
2394 | rm -f conftest* |
|
|
2395 | |
|
|
2396 | fi |
|
|
2397 | |
|
|
2398 | if test $ac_cv_header_stdc = yes; then |
|
|
2399 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
2400 | if test "$cross_compiling" = yes; then |
|
|
2401 | : |
|
|
2402 | else |
|
|
2403 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2404 | /* confdefs.h. */ |
|
|
2405 | _ACEOF |
|
|
2406 | cat confdefs.h >>conftest.$ac_ext |
|
|
2407 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2408 | /* end confdefs.h. */ |
|
|
2409 | #include <ctype.h> |
|
|
2410 | #if ((' ' & 0x0FF) == 0x020) |
|
|
2411 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
2412 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
2413 | #else |
|
|
2414 | # define ISLOWER(c) \ |
|
|
2415 | (('a' <= (c) && (c) <= 'i') \ |
|
|
2416 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
2417 | || ('s' <= (c) && (c) <= 'z')) |
|
|
2418 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
2419 | #endif |
|
|
2420 | |
|
|
2421 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
2422 | int |
|
|
2423 | main () |
|
|
2424 | { |
|
|
2425 | int i; |
|
|
2426 | for (i = 0; i < 256; i++) |
|
|
2427 | if (XOR (islower (i), ISLOWER (i)) |
|
|
2428 | || toupper (i) != TOUPPER (i)) |
|
|
2429 | exit(2); |
|
|
2430 | exit (0); |
|
|
2431 | } |
|
|
2432 | _ACEOF |
|
|
2433 | rm -f conftest$ac_exeext |
|
|
2434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
2435 | (eval $ac_link) 2>&5 |
|
|
2436 | ac_status=$? |
|
|
2437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
2439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2440 | (eval $ac_try) 2>&5 |
|
|
2441 | ac_status=$? |
|
|
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2443 | (exit $ac_status); }; }; then |
|
|
2444 | : |
|
|
2445 | else |
|
|
2446 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
2447 | echo "$as_me: failed program was:" >&5 |
|
|
2448 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2449 | |
|
|
2450 | ( exit $ac_status ) |
|
|
2451 | ac_cv_header_stdc=no |
|
|
2452 | fi |
|
|
2453 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
2454 | fi |
|
|
2455 | fi |
|
|
2456 | fi |
|
|
2457 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
2458 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
2459 | if test $ac_cv_header_stdc = yes; then |
|
|
2460 | |
|
|
2461 | cat >>confdefs.h <<\_ACEOF |
|
|
2462 | #define STDC_HEADERS 1 |
|
|
2463 | _ACEOF |
|
|
2464 | |
|
|
2465 | fi |
|
|
2466 | |
|
|
2467 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
2468 | |
|
|
2469 | |
|
|
2470 | |
|
|
2471 | |
|
|
2472 | |
|
|
2473 | |
|
|
2474 | |
|
|
2475 | |
|
|
2476 | |
|
|
2477 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
2478 | inttypes.h stdint.h unistd.h |
|
|
2479 | do |
|
|
2480 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
2481 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
2482 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
2483 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
2484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2485 | else |
|
|
2486 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2487 | /* confdefs.h. */ |
|
|
2488 | _ACEOF |
|
|
2489 | cat confdefs.h >>conftest.$ac_ext |
|
|
2490 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2491 | /* end confdefs.h. */ |
|
|
2492 | $ac_includes_default |
|
|
2493 | |
|
|
2494 | #include <$ac_header> |
|
|
2495 | _ACEOF |
|
|
2496 | rm -f conftest.$ac_objext |
|
|
2497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2498 | (eval $ac_compile) 2>conftest.er1 |
|
|
2499 | ac_status=$? |
|
|
2500 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2501 | rm -f conftest.er1 |
|
|
2502 | cat conftest.err >&5 |
|
|
2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2504 | (exit $ac_status); } && |
|
|
2505 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
2506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2507 | (eval $ac_try) 2>&5 |
|
|
2508 | ac_status=$? |
|
|
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2510 | (exit $ac_status); }; } && |
|
|
2511 | { ac_try='test -s conftest.$ac_objext' |
|
|
2512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2513 | (eval $ac_try) 2>&5 |
|
|
2514 | ac_status=$? |
|
|
2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2516 | (exit $ac_status); }; }; then |
|
|
2517 | eval "$as_ac_Header=yes" |
|
|
2518 | else |
|
|
2519 | echo "$as_me: failed program was:" >&5 |
|
|
2520 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2521 | |
|
|
2522 | eval "$as_ac_Header=no" |
|
|
2523 | fi |
|
|
2524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2525 | fi |
|
|
2526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
2527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
2528 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
2529 | cat >>confdefs.h <<_ACEOF |
|
|
2530 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
2531 | _ACEOF |
|
|
2532 | |
|
|
2533 | fi |
|
|
2534 | |
|
|
2535 | done |
|
|
2536 | |
|
|
2537 | |
|
|
2538 | |
|
|
2539 | |
|
|
2540 | |
|
|
2541 | |
|
|
2542 | |
|
|
2543 | |
|
|
2544 | for ac_header in \ |
|
|
2545 | pty.h \ |
|
|
2546 | util.h \ |
|
|
2547 | libutil.h \ |
|
|
2548 | sys/ioctl.h \ |
|
|
2549 | sys/stropts.h \ |
|
|
2550 | |
|
|
2551 | do |
|
|
2552 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
2553 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
2554 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
2555 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
2556 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
2557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2558 | fi |
|
|
2559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
2560 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
2561 | else |
|
|
2562 | # Is the header compilable? |
|
|
2563 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
2564 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
2565 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2566 | /* confdefs.h. */ |
|
|
2567 | _ACEOF |
|
|
2568 | cat confdefs.h >>conftest.$ac_ext |
|
|
2569 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2570 | /* end confdefs.h. */ |
|
|
2571 | $ac_includes_default |
|
|
2572 | #include <$ac_header> |
|
|
2573 | _ACEOF |
|
|
2574 | rm -f conftest.$ac_objext |
|
|
2575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2576 | (eval $ac_compile) 2>conftest.er1 |
|
|
2577 | ac_status=$? |
|
|
2578 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2579 | rm -f conftest.er1 |
|
|
2580 | cat conftest.err >&5 |
|
|
2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2582 | (exit $ac_status); } && |
|
|
2583 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
2584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2585 | (eval $ac_try) 2>&5 |
|
|
2586 | ac_status=$? |
|
|
2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2588 | (exit $ac_status); }; } && |
|
|
2589 | { ac_try='test -s conftest.$ac_objext' |
|
|
2590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2591 | (eval $ac_try) 2>&5 |
|
|
2592 | ac_status=$? |
|
|
2593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2594 | (exit $ac_status); }; }; then |
|
|
2595 | ac_header_compiler=yes |
|
|
2596 | else |
|
|
2597 | echo "$as_me: failed program was:" >&5 |
|
|
2598 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2599 | |
|
|
2600 | ac_header_compiler=no |
|
|
2601 | fi |
|
|
2602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2603 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
2604 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
2605 | |
|
|
2606 | # Is the header present? |
|
|
2607 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
2608 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
2609 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2610 | /* confdefs.h. */ |
|
|
2611 | _ACEOF |
|
|
2612 | cat confdefs.h >>conftest.$ac_ext |
|
|
2613 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2614 | /* end confdefs.h. */ |
|
|
2615 | #include <$ac_header> |
|
|
2616 | _ACEOF |
|
|
2617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
2618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
2619 | ac_status=$? |
|
|
2620 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2621 | rm -f conftest.er1 |
|
|
2622 | cat conftest.err >&5 |
|
|
2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2624 | (exit $ac_status); } >/dev/null; then |
|
|
2625 | if test -s conftest.err; then |
|
|
2626 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
2627 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
2628 | else |
|
|
2629 | ac_cpp_err= |
|
|
2630 | fi |
|
|
2631 | else |
|
|
2632 | ac_cpp_err=yes |
|
|
2633 | fi |
|
|
2634 | if test -z "$ac_cpp_err"; then |
|
|
2635 | ac_header_preproc=yes |
|
|
2636 | else |
|
|
2637 | echo "$as_me: failed program was:" >&5 |
|
|
2638 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2639 | |
|
|
2640 | ac_header_preproc=no |
|
|
2641 | fi |
|
|
2642 | rm -f conftest.err conftest.$ac_ext |
|
|
2643 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
2644 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
2645 | |
|
|
2646 | # So? What about this header? |
|
|
2647 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
2648 | yes:no: ) |
|
|
2649 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
2650 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
2651 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
2652 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
2653 | ac_header_preproc=yes |
|
|
2654 | ;; |
|
|
2655 | no:yes:* ) |
|
|
2656 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
2657 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
2658 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
2659 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
2660 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
2661 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
2662 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
2663 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
2664 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
2665 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
2666 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
2667 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
2668 | ( |
|
|
2669 | cat <<\_ASBOX |
|
|
2670 | ## ------------------------------------------ ## |
|
|
2671 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
2672 | ## ------------------------------------------ ## |
|
|
2673 | _ASBOX |
|
|
2674 | ) | |
|
|
2675 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
2676 | ;; |
|
|
2677 | esac |
|
|
2678 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
2679 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
2680 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
2681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2682 | else |
|
|
2683 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
2684 | fi |
|
|
2685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
2686 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
2687 | |
|
|
2688 | fi |
|
|
2689 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
2690 | cat >>confdefs.h <<_ACEOF |
|
|
2691 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
2692 | _ACEOF |
|
|
2693 | |
|
|
2694 | fi |
|
|
2695 | |
|
|
2696 | done |
|
|
2697 | |
|
|
2698 | |
|
|
2699 | |
|
|
2700 | |
|
|
2701 | |
|
|
2702 | |
|
|
2703 | |
|
|
2704 | for ac_func in \ |
|
|
2705 | revoke \ |
|
|
2706 | _getpty \ |
|
|
2707 | getpt \ |
|
|
2708 | posix_openpt \ |
|
|
2709 | isastream \ |
|
|
2710 | |
|
|
2711 | do |
|
|
2712 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
2713 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
2714 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
2715 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
2716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2717 | else |
|
|
2718 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2719 | /* confdefs.h. */ |
|
|
2720 | _ACEOF |
|
|
2721 | cat confdefs.h >>conftest.$ac_ext |
|
|
2722 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2723 | /* end confdefs.h. */ |
|
|
2724 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
2725 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
2726 | #define $ac_func innocuous_$ac_func |
|
|
2727 | |
|
|
2728 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
2729 | which can conflict with char $ac_func (); below. |
|
|
2730 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
2731 | <limits.h> exists even on freestanding compilers. */ |
|
|
2732 | |
|
|
2733 | #ifdef __STDC__ |
|
|
2734 | # include <limits.h> |
|
|
2735 | #else |
|
|
2736 | # include <assert.h> |
|
|
2737 | #endif |
|
|
2738 | |
|
|
2739 | #undef $ac_func |
|
|
2740 | |
|
|
2741 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
2742 | #ifdef __cplusplus |
|
|
2743 | extern "C" |
|
|
2744 | { |
|
|
2745 | #endif |
|
|
2746 | /* We use char because int might match the return type of a gcc2 |
|
|
2747 | builtin and then its argument prototype would still apply. */ |
|
|
2748 | char $ac_func (); |
|
|
2749 | /* The GNU C library defines this for functions which it implements |
|
|
2750 | to always fail with ENOSYS. Some functions are actually named |
|
|
2751 | something starting with __ and the normal name is an alias. */ |
|
|
2752 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
2753 | choke me |
|
|
2754 | #else |
|
|
2755 | char (*f) () = $ac_func; |
|
|
2756 | #endif |
|
|
2757 | #ifdef __cplusplus |
|
|
2758 | } |
|
|
2759 | #endif |
|
|
2760 | |
|
|
2761 | int |
|
|
2762 | main () |
|
|
2763 | { |
|
|
2764 | return f != $ac_func; |
|
|
2765 | ; |
|
|
2766 | return 0; |
|
|
2767 | } |
|
|
2768 | _ACEOF |
|
|
2769 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
2771 | (eval $ac_link) 2>conftest.er1 |
|
|
2772 | ac_status=$? |
|
|
2773 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2774 | rm -f conftest.er1 |
|
|
2775 | cat conftest.err >&5 |
|
|
2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2777 | (exit $ac_status); } && |
|
|
2778 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
2779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2780 | (eval $ac_try) 2>&5 |
|
|
2781 | ac_status=$? |
|
|
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2783 | (exit $ac_status); }; } && |
|
|
2784 | { ac_try='test -s conftest$ac_exeext' |
|
|
2785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2786 | (eval $ac_try) 2>&5 |
|
|
2787 | ac_status=$? |
|
|
2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2789 | (exit $ac_status); }; }; then |
|
|
2790 | eval "$as_ac_var=yes" |
|
|
2791 | else |
|
|
2792 | echo "$as_me: failed program was:" >&5 |
|
|
2793 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2794 | |
|
|
2795 | eval "$as_ac_var=no" |
|
|
2796 | fi |
|
|
2797 | rm -f conftest.err conftest.$ac_objext \ |
|
|
2798 | conftest$ac_exeext conftest.$ac_ext |
|
|
2799 | fi |
|
|
2800 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
2801 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
2802 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
2803 | cat >>confdefs.h <<_ACEOF |
|
|
2804 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
2805 | _ACEOF |
|
|
2806 | |
|
|
2807 | fi |
|
|
2808 | done |
|
|
2809 | |
|
|
2810 | |
|
|
2811 | have_clone=no |
|
|
2812 | |
|
|
2813 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
2814 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
2815 | if test -e /dev/ptym/clone; then |
|
|
2816 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
2817 | echo "${ECHO_T}yes" >&6 |
|
|
2818 | |
|
|
2819 | cat >>confdefs.h <<\_ACEOF |
|
|
2820 | #define HAVE_DEV_CLONE 1 |
|
|
2821 | _ACEOF |
|
|
2822 | |
|
|
2823 | |
|
|
2824 | cat >>confdefs.h <<\_ACEOF |
|
|
2825 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
2826 | _ACEOF |
|
|
2827 | |
|
|
2828 | have_clone=yes |
|
|
2829 | else |
|
|
2830 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2831 | echo "${ECHO_T}no" >&6 |
|
|
2832 | fi |
|
|
2833 | |
|
|
2834 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
2835 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
2836 | if test -e /dev/ptc; then |
|
|
2837 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
2838 | echo "${ECHO_T}yes" >&6 |
|
|
2839 | |
|
|
2840 | cat >>confdefs.h <<\_ACEOF |
|
|
2841 | #define HAVE_DEV_PTC 1 |
|
|
2842 | _ACEOF |
|
|
2843 | |
|
|
2844 | |
|
|
2845 | cat >>confdefs.h <<\_ACEOF |
|
|
2846 | #define CLONE_DEVICE "/dev/ptc" |
|
|
2847 | _ACEOF |
|
|
2848 | |
|
|
2849 | have_clone=yes |
|
|
2850 | else |
|
|
2851 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2852 | echo "${ECHO_T}no" >&6 |
|
|
2853 | fi |
|
|
2854 | |
|
|
2855 | case $host in |
|
|
2856 | *-*-cygwin*) |
|
|
2857 | have_clone=yes |
|
|
2858 | |
|
|
2859 | cat >>confdefs.h <<\_ACEOF |
|
|
2860 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
2861 | _ACEOF |
|
|
2862 | |
|
|
2863 | ;; |
|
|
2864 | *) |
|
|
2865 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
2866 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
2867 | if test -e /dev/ptmx; then |
|
|
2868 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
2869 | echo "${ECHO_T}yes" >&6 |
|
|
2870 | |
|
|
2871 | cat >>confdefs.h <<\_ACEOF |
|
|
2872 | #define HAVE_DEV_PTMX 1 |
|
|
2873 | _ACEOF |
|
|
2874 | |
|
|
2875 | |
|
|
2876 | cat >>confdefs.h <<\_ACEOF |
|
|
2877 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
2878 | _ACEOF |
|
|
2879 | |
|
|
2880 | have_clone=yes |
|
|
2881 | else |
|
|
2882 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2883 | echo "${ECHO_T}no" >&6 |
|
|
2884 | fi |
|
|
2885 | ;; |
|
|
2886 | esac |
|
|
2887 | |
|
|
2888 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
2889 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
2890 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
2891 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2892 | /* confdefs.h. */ |
|
|
2893 | _ACEOF |
|
|
2894 | cat confdefs.h >>conftest.$ac_ext |
|
|
2895 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2896 | /* end confdefs.h. */ |
|
|
2897 | #include <stdlib.h> |
|
|
2898 | int |
|
|
2899 | main () |
|
|
2900 | { |
|
|
2901 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
2902 | ; |
|
|
2903 | return 0; |
|
|
2904 | } |
|
|
2905 | _ACEOF |
|
|
2906 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
2908 | (eval $ac_link) 2>conftest.er1 |
|
|
2909 | ac_status=$? |
|
|
2910 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2911 | rm -f conftest.er1 |
|
|
2912 | cat conftest.err >&5 |
|
|
2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2914 | (exit $ac_status); } && |
|
|
2915 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
2916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2917 | (eval $ac_try) 2>&5 |
|
|
2918 | ac_status=$? |
|
|
2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2920 | (exit $ac_status); }; } && |
|
|
2921 | { ac_try='test -s conftest$ac_exeext' |
|
|
2922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2923 | (eval $ac_try) 2>&5 |
|
|
2924 | ac_status=$? |
|
|
2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2926 | (exit $ac_status); }; }; then |
|
|
2927 | unix98_pty=yes |
|
|
2928 | |
|
|
2929 | cat >>confdefs.h <<\_ACEOF |
|
|
2930 | #define UNIX98_PTY 1 |
|
|
2931 | _ACEOF |
|
|
2932 | |
|
|
2933 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
2934 | echo "${ECHO_T}yes" >&6 |
|
|
2935 | else |
|
|
2936 | echo "$as_me: failed program was:" >&5 |
|
|
2937 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2938 | |
|
|
2939 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2940 | echo "${ECHO_T}no" >&6 |
|
|
2941 | fi |
|
|
2942 | rm -f conftest.err conftest.$ac_objext \ |
|
|
2943 | conftest$ac_exeext conftest.$ac_ext |
|
|
2944 | fi |
|
|
2945 | |
|
|
2946 | if test -z "$unix98_pty"; then |
|
|
2947 | |
|
|
2948 | for ac_func in openpty |
|
|
2949 | do |
|
|
2950 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
2951 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
2952 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
2953 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
2954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2955 | else |
|
|
2956 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2957 | /* confdefs.h. */ |
|
|
2958 | _ACEOF |
|
|
2959 | cat confdefs.h >>conftest.$ac_ext |
|
|
2960 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2961 | /* end confdefs.h. */ |
|
|
2962 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
2963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
2964 | #define $ac_func innocuous_$ac_func |
|
|
2965 | |
|
|
2966 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
2967 | which can conflict with char $ac_func (); below. |
|
|
2968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
2969 | <limits.h> exists even on freestanding compilers. */ |
|
|
2970 | |
|
|
2971 | #ifdef __STDC__ |
|
|
2972 | # include <limits.h> |
|
|
2973 | #else |
|
|
2974 | # include <assert.h> |
|
|
2975 | #endif |
|
|
2976 | |
|
|
2977 | #undef $ac_func |
|
|
2978 | |
|
|
2979 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
2980 | #ifdef __cplusplus |
|
|
2981 | extern "C" |
|
|
2982 | { |
|
|
2983 | #endif |
|
|
2984 | /* We use char because int might match the return type of a gcc2 |
|
|
2985 | builtin and then its argument prototype would still apply. */ |
|
|
2986 | char $ac_func (); |
|
|
2987 | /* The GNU C library defines this for functions which it implements |
|
|
2988 | to always fail with ENOSYS. Some functions are actually named |
|
|
2989 | something starting with __ and the normal name is an alias. */ |
|
|
2990 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
2991 | choke me |
|
|
2992 | #else |
|
|
2993 | char (*f) () = $ac_func; |
|
|
2994 | #endif |
|
|
2995 | #ifdef __cplusplus |
|
|
2996 | } |
|
|
2997 | #endif |
|
|
2998 | |
|
|
2999 | int |
|
|
3000 | main () |
|
|
3001 | { |
|
|
3002 | return f != $ac_func; |
|
|
3003 | ; |
|
|
3004 | return 0; |
|
|
3005 | } |
|
|
3006 | _ACEOF |
|
|
3007 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3009 | (eval $ac_link) 2>conftest.er1 |
|
|
3010 | ac_status=$? |
|
|
3011 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3012 | rm -f conftest.er1 |
|
|
3013 | cat conftest.err >&5 |
|
|
3014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3015 | (exit $ac_status); } && |
|
|
3016 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3018 | (eval $ac_try) 2>&5 |
|
|
3019 | ac_status=$? |
|
|
3020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3021 | (exit $ac_status); }; } && |
|
|
3022 | { ac_try='test -s conftest$ac_exeext' |
|
|
3023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3024 | (eval $ac_try) 2>&5 |
|
|
3025 | ac_status=$? |
|
|
3026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3027 | (exit $ac_status); }; }; then |
|
|
3028 | eval "$as_ac_var=yes" |
|
|
3029 | else |
|
|
3030 | echo "$as_me: failed program was:" >&5 |
|
|
3031 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3032 | |
|
|
3033 | eval "$as_ac_var=no" |
|
|
3034 | fi |
|
|
3035 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3036 | conftest$ac_exeext conftest.$ac_ext |
|
|
3037 | fi |
|
|
3038 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
3039 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
3040 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
3041 | cat >>confdefs.h <<_ACEOF |
|
|
3042 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
3043 | _ACEOF |
|
|
3044 | |
|
|
3045 | else |
|
|
3046 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
3047 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
3048 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
3049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3050 | else |
|
|
3051 | ac_check_lib_save_LIBS=$LIBS |
|
|
3052 | LIBS="-lutil $LIBS" |
|
|
3053 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3054 | /* confdefs.h. */ |
|
|
3055 | _ACEOF |
|
|
3056 | cat confdefs.h >>conftest.$ac_ext |
|
|
3057 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3058 | /* end confdefs.h. */ |
|
|
3059 | |
|
|
3060 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3061 | #ifdef __cplusplus |
|
|
3062 | extern "C" |
|
|
3063 | #endif |
|
|
3064 | /* We use char because int might match the return type of a gcc2 |
|
|
3065 | builtin and then its argument prototype would still apply. */ |
|
|
3066 | char openpty (); |
|
|
3067 | int |
|
|
3068 | main () |
|
|
3069 | { |
|
|
3070 | openpty (); |
|
|
3071 | ; |
|
|
3072 | return 0; |
|
|
3073 | } |
|
|
3074 | _ACEOF |
|
|
3075 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3077 | (eval $ac_link) 2>conftest.er1 |
|
|
3078 | ac_status=$? |
|
|
3079 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3080 | rm -f conftest.er1 |
|
|
3081 | cat conftest.err >&5 |
|
|
3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3083 | (exit $ac_status); } && |
|
|
3084 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3086 | (eval $ac_try) 2>&5 |
|
|
3087 | ac_status=$? |
|
|
3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3089 | (exit $ac_status); }; } && |
|
|
3090 | { ac_try='test -s conftest$ac_exeext' |
|
|
3091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3092 | (eval $ac_try) 2>&5 |
|
|
3093 | ac_status=$? |
|
|
3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3095 | (exit $ac_status); }; }; then |
|
|
3096 | ac_cv_lib_util_openpty=yes |
|
|
3097 | else |
|
|
3098 | echo "$as_me: failed program was:" >&5 |
|
|
3099 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3100 | |
|
|
3101 | ac_cv_lib_util_openpty=no |
|
|
3102 | fi |
|
|
3103 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3104 | conftest$ac_exeext conftest.$ac_ext |
|
|
3105 | LIBS=$ac_check_lib_save_LIBS |
|
|
3106 | fi |
|
|
3107 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
3108 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
3109 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
3110 | cat >>confdefs.h <<\_ACEOF |
|
|
3111 | #define HAVE_OPENPTY 1 |
|
|
3112 | _ACEOF |
|
|
3113 | LIBS="$LIBS -lutil" |
|
|
3114 | fi |
|
|
3115 | |
|
|
3116 | fi |
|
|
3117 | done |
|
|
3118 | |
|
|
3119 | fi |
|
|
3120 | |
|
|
3121 | |
|
|
3122 | |
|
|
3123 | |
|
|
3124 | |
|
|
3125 | |
|
|
3126 | for ac_func in \ |
|
|
3127 | ttyslot \ |
|
|
3128 | updwtmp \ |
|
|
3129 | updwtmpx \ |
|
|
3130 | |
|
|
3131 | do |
|
|
3132 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
3133 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
3134 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
3135 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
3136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3137 | else |
|
|
3138 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3139 | /* confdefs.h. */ |
|
|
3140 | _ACEOF |
|
|
3141 | cat confdefs.h >>conftest.$ac_ext |
|
|
3142 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3143 | /* end confdefs.h. */ |
|
|
3144 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
3145 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3146 | #define $ac_func innocuous_$ac_func |
|
|
3147 | |
|
|
3148 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3149 | which can conflict with char $ac_func (); below. |
|
|
3150 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3151 | <limits.h> exists even on freestanding compilers. */ |
|
|
3152 | |
|
|
3153 | #ifdef __STDC__ |
|
|
3154 | # include <limits.h> |
|
|
3155 | #else |
|
|
3156 | # include <assert.h> |
|
|
3157 | #endif |
|
|
3158 | |
|
|
3159 | #undef $ac_func |
|
|
3160 | |
|
|
3161 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3162 | #ifdef __cplusplus |
|
|
3163 | extern "C" |
|
|
3164 | { |
|
|
3165 | #endif |
|
|
3166 | /* We use char because int might match the return type of a gcc2 |
|
|
3167 | builtin and then its argument prototype would still apply. */ |
|
|
3168 | char $ac_func (); |
|
|
3169 | /* The GNU C library defines this for functions which it implements |
|
|
3170 | to always fail with ENOSYS. Some functions are actually named |
|
|
3171 | something starting with __ and the normal name is an alias. */ |
|
|
3172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
3173 | choke me |
|
|
3174 | #else |
|
|
3175 | char (*f) () = $ac_func; |
|
|
3176 | #endif |
|
|
3177 | #ifdef __cplusplus |
|
|
3178 | } |
|
|
3179 | #endif |
|
|
3180 | |
|
|
3181 | int |
|
|
3182 | main () |
|
|
3183 | { |
|
|
3184 | return f != $ac_func; |
|
|
3185 | ; |
|
|
3186 | return 0; |
|
|
3187 | } |
|
|
3188 | _ACEOF |
|
|
3189 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3191 | (eval $ac_link) 2>conftest.er1 |
|
|
3192 | ac_status=$? |
|
|
3193 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3194 | rm -f conftest.er1 |
|
|
3195 | cat conftest.err >&5 |
|
|
3196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3197 | (exit $ac_status); } && |
|
|
3198 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3200 | (eval $ac_try) 2>&5 |
|
|
3201 | ac_status=$? |
|
|
3202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3203 | (exit $ac_status); }; } && |
|
|
3204 | { ac_try='test -s conftest$ac_exeext' |
|
|
3205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3206 | (eval $ac_try) 2>&5 |
|
|
3207 | ac_status=$? |
|
|
3208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3209 | (exit $ac_status); }; }; then |
|
|
3210 | eval "$as_ac_var=yes" |
|
|
3211 | else |
|
|
3212 | echo "$as_me: failed program was:" >&5 |
|
|
3213 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3214 | |
|
|
3215 | eval "$as_ac_var=no" |
|
|
3216 | fi |
|
|
3217 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3218 | conftest$ac_exeext conftest.$ac_ext |
|
|
3219 | fi |
|
|
3220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
3221 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
3222 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
3223 | cat >>confdefs.h <<_ACEOF |
|
|
3224 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
3225 | _ACEOF |
|
|
3226 | |
|
|
3227 | fi |
|
|
3228 | done |
|
|
3229 | |
|
|
3230 | |
|
|
3231 | |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | for ac_header in \ |
|
|
3235 | utmp.h \ |
|
|
3236 | utmpx.h \ |
|
|
3237 | lastlog.h \ |
|
|
3238 | |
|
|
3239 | do |
|
|
3240 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
3241 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
3242 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
3243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
3244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
3245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3246 | fi |
|
|
3247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
3248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
3249 | else |
|
|
3250 | # Is the header compilable? |
|
|
3251 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
3252 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
3253 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3254 | /* confdefs.h. */ |
|
|
3255 | _ACEOF |
|
|
3256 | cat confdefs.h >>conftest.$ac_ext |
|
|
3257 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3258 | /* end confdefs.h. */ |
|
|
3259 | $ac_includes_default |
|
|
3260 | #include <$ac_header> |
|
|
3261 | _ACEOF |
|
|
3262 | rm -f conftest.$ac_objext |
|
|
3263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3264 | (eval $ac_compile) 2>conftest.er1 |
|
|
3265 | ac_status=$? |
|
|
3266 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3267 | rm -f conftest.er1 |
|
|
3268 | cat conftest.err >&5 |
|
|
3269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3270 | (exit $ac_status); } && |
|
|
3271 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3273 | (eval $ac_try) 2>&5 |
|
|
3274 | ac_status=$? |
|
|
3275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3276 | (exit $ac_status); }; } && |
|
|
3277 | { ac_try='test -s conftest.$ac_objext' |
|
|
3278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3279 | (eval $ac_try) 2>&5 |
|
|
3280 | ac_status=$? |
|
|
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3282 | (exit $ac_status); }; }; then |
|
|
3283 | ac_header_compiler=yes |
|
|
3284 | else |
|
|
3285 | echo "$as_me: failed program was:" >&5 |
|
|
3286 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3287 | |
|
|
3288 | ac_header_compiler=no |
|
|
3289 | fi |
|
|
3290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3291 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
3292 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
3293 | |
|
|
3294 | # Is the header present? |
|
|
3295 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
3296 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
3297 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3298 | /* confdefs.h. */ |
|
|
3299 | _ACEOF |
|
|
3300 | cat confdefs.h >>conftest.$ac_ext |
|
|
3301 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3302 | /* end confdefs.h. */ |
|
|
3303 | #include <$ac_header> |
|
|
3304 | _ACEOF |
|
|
3305 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3306 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3307 | ac_status=$? |
|
|
3308 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3309 | rm -f conftest.er1 |
|
|
3310 | cat conftest.err >&5 |
|
|
3311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3312 | (exit $ac_status); } >/dev/null; then |
|
|
3313 | if test -s conftest.err; then |
|
|
3314 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3315 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3316 | else |
|
|
3317 | ac_cpp_err= |
|
|
3318 | fi |
|
|
3319 | else |
|
|
3320 | ac_cpp_err=yes |
|
|
3321 | fi |
|
|
3322 | if test -z "$ac_cpp_err"; then |
|
|
3323 | ac_header_preproc=yes |
|
|
3324 | else |
|
|
3325 | echo "$as_me: failed program was:" >&5 |
|
|
3326 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3327 | |
|
|
3328 | ac_header_preproc=no |
|
|
3329 | fi |
|
|
3330 | rm -f conftest.err conftest.$ac_ext |
|
|
3331 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
3332 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
3333 | |
|
|
3334 | # So? What about this header? |
|
|
3335 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
3336 | yes:no: ) |
|
|
3337 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
3338 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
3339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
3340 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
3341 | ac_header_preproc=yes |
|
|
3342 | ;; |
|
|
3343 | no:yes:* ) |
|
|
3344 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
3345 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
3346 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
3347 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
3348 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
3349 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
3350 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
3351 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
3352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
3353 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
3354 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
3355 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
3356 | ( |
|
|
3357 | cat <<\_ASBOX |
|
|
3358 | ## ------------------------------------------ ## |
|
|
3359 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
3360 | ## ------------------------------------------ ## |
|
|
3361 | _ASBOX |
|
|
3362 | ) | |
|
|
3363 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
3364 | ;; |
|
|
3365 | esac |
|
|
3366 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
3367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
3368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
3369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3370 | else |
|
|
3371 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
3372 | fi |
|
|
3373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
3374 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
3375 | |
|
|
3376 | fi |
|
|
3377 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
3378 | cat >>confdefs.h <<_ACEOF |
|
|
3379 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
3380 | _ACEOF |
|
|
3381 | |
|
|
3382 | fi |
|
|
3383 | |
|
|
3384 | done |
|
|
3385 | |
|
|
3386 | |
|
|
3387 | |
|
|
3388 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
3389 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
3390 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
3391 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
3392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3393 | fi |
|
|
3394 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
3395 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
3396 | else |
|
|
3397 | # Is the header compilable? |
|
|
3398 | echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
3399 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
|
|
3400 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3401 | /* confdefs.h. */ |
|
|
3402 | _ACEOF |
|
|
3403 | cat confdefs.h >>conftest.$ac_ext |
|
|
3404 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3405 | /* end confdefs.h. */ |
|
|
3406 | $ac_includes_default |
|
|
3407 | #include <utmp.h> |
|
|
3408 | _ACEOF |
|
|
3409 | rm -f conftest.$ac_objext |
|
|
3410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3411 | (eval $ac_compile) 2>conftest.er1 |
|
|
3412 | ac_status=$? |
|
|
3413 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3414 | rm -f conftest.er1 |
|
|
3415 | cat conftest.err >&5 |
|
|
3416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3417 | (exit $ac_status); } && |
|
|
3418 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3420 | (eval $ac_try) 2>&5 |
|
|
3421 | ac_status=$? |
|
|
3422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3423 | (exit $ac_status); }; } && |
|
|
3424 | { ac_try='test -s conftest.$ac_objext' |
|
|
3425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3426 | (eval $ac_try) 2>&5 |
|
|
3427 | ac_status=$? |
|
|
3428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3429 | (exit $ac_status); }; }; then |
|
|
3430 | ac_header_compiler=yes |
|
|
3431 | else |
|
|
3432 | echo "$as_me: failed program was:" >&5 |
|
|
3433 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3434 | |
|
|
3435 | ac_header_compiler=no |
|
|
3436 | fi |
|
|
3437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3438 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
3439 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
3440 | |
|
|
3441 | # Is the header present? |
|
|
3442 | echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
3443 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
|
|
3444 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3445 | /* confdefs.h. */ |
|
|
3446 | _ACEOF |
|
|
3447 | cat confdefs.h >>conftest.$ac_ext |
|
|
3448 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3449 | /* end confdefs.h. */ |
|
|
3450 | #include <utmp.h> |
|
|
3451 | _ACEOF |
|
|
3452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3454 | ac_status=$? |
|
|
3455 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3456 | rm -f conftest.er1 |
|
|
3457 | cat conftest.err >&5 |
|
|
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3459 | (exit $ac_status); } >/dev/null; then |
|
|
3460 | if test -s conftest.err; then |
|
|
3461 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3462 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3463 | else |
|
|
3464 | ac_cpp_err= |
|
|
3465 | fi |
|
|
3466 | else |
|
|
3467 | ac_cpp_err=yes |
|
|
3468 | fi |
|
|
3469 | if test -z "$ac_cpp_err"; then |
|
|
3470 | ac_header_preproc=yes |
|
|
3471 | else |
|
|
3472 | echo "$as_me: failed program was:" >&5 |
|
|
3473 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3474 | |
|
|
3475 | ac_header_preproc=no |
|
|
3476 | fi |
|
|
3477 | rm -f conftest.err conftest.$ac_ext |
|
|
3478 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
3479 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
3480 | |
|
|
3481 | # So? What about this header? |
|
|
3482 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
3483 | yes:no: ) |
|
|
3484 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
3485 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
3486 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
3487 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
3488 | ac_header_preproc=yes |
|
|
3489 | ;; |
|
|
3490 | no:yes:* ) |
|
|
3491 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
3492 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
3493 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
3494 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
3495 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
3496 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
3497 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
3498 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
3499 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
3500 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
3501 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
3502 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
3503 | ( |
|
|
3504 | cat <<\_ASBOX |
|
|
3505 | ## ------------------------------------------ ## |
|
|
3506 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
3507 | ## ------------------------------------------ ## |
|
|
3508 | _ASBOX |
|
|
3509 | ) | |
|
|
3510 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
3511 | ;; |
|
|
3512 | esac |
|
|
3513 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
3514 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
3515 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
3516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3517 | else |
|
|
3518 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
3519 | fi |
|
|
3520 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
3521 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
3522 | |
|
|
3523 | fi |
|
|
3524 | if test $ac_cv_header_utmp_h = yes; then |
|
|
3525 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
3526 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
|
|
3527 | if test "${struct_utmp+set}" = set; then |
|
|
3528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3529 | else |
|
|
3530 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3531 | /* confdefs.h. */ |
|
|
3532 | _ACEOF |
|
|
3533 | cat confdefs.h >>conftest.$ac_ext |
|
|
3534 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3535 | /* end confdefs.h. */ |
|
|
3536 | #include <sys/types.h> |
|
|
3537 | #include <utmp.h> |
|
|
3538 | int |
|
|
3539 | main () |
|
|
3540 | { |
|
|
3541 | struct utmp ut; |
|
|
3542 | ; |
|
|
3543 | return 0; |
|
|
3544 | } |
|
|
3545 | _ACEOF |
|
|
3546 | rm -f conftest.$ac_objext |
|
|
3547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3548 | (eval $ac_compile) 2>conftest.er1 |
|
|
3549 | ac_status=$? |
|
|
3550 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3551 | rm -f conftest.er1 |
|
|
3552 | cat conftest.err >&5 |
|
|
3553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3554 | (exit $ac_status); } && |
|
|
3555 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3557 | (eval $ac_try) 2>&5 |
|
|
3558 | ac_status=$? |
|
|
3559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3560 | (exit $ac_status); }; } && |
|
|
3561 | { ac_try='test -s conftest.$ac_objext' |
|
|
3562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3563 | (eval $ac_try) 2>&5 |
|
|
3564 | ac_status=$? |
|
|
3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3566 | (exit $ac_status); }; }; then |
|
|
3567 | struct_utmp=yes |
|
|
3568 | else |
|
|
3569 | echo "$as_me: failed program was:" >&5 |
|
|
3570 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3571 | |
|
|
3572 | struct_utmp=no |
|
|
3573 | fi |
|
|
3574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3575 | fi |
|
|
3576 | echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
|
|
3577 | echo "${ECHO_T}$struct_utmp" >&6 |
|
|
3578 | if test x$struct_utmp = xyes; then |
|
|
3579 | |
|
|
3580 | cat >>confdefs.h <<\_ACEOF |
|
|
3581 | #define HAVE_STRUCT_UTMP 1 |
|
|
3582 | _ACEOF |
|
|
3583 | |
|
|
3584 | fi |
|
|
3585 | |
|
|
3586 | |
|
|
3587 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
3588 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
|
|
3589 | if test "${struct_utmp_host+set}" = set; then |
|
|
3590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3591 | else |
|
|
3592 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3593 | /* confdefs.h. */ |
|
|
3594 | _ACEOF |
|
|
3595 | cat confdefs.h >>conftest.$ac_ext |
|
|
3596 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3597 | /* end confdefs.h. */ |
|
|
3598 | #include <sys/types.h> |
|
|
3599 | #include <utmp.h> |
|
|
3600 | int |
|
|
3601 | main () |
|
|
3602 | { |
|
|
3603 | struct utmp ut; ut.ut_host; |
|
|
3604 | ; |
|
|
3605 | return 0; |
|
|
3606 | } |
|
|
3607 | _ACEOF |
|
|
3608 | rm -f conftest.$ac_objext |
|
|
3609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3610 | (eval $ac_compile) 2>conftest.er1 |
|
|
3611 | ac_status=$? |
|
|
3612 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3613 | rm -f conftest.er1 |
|
|
3614 | cat conftest.err >&5 |
|
|
3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3616 | (exit $ac_status); } && |
|
|
3617 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3619 | (eval $ac_try) 2>&5 |
|
|
3620 | ac_status=$? |
|
|
3621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3622 | (exit $ac_status); }; } && |
|
|
3623 | { ac_try='test -s conftest.$ac_objext' |
|
|
3624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3625 | (eval $ac_try) 2>&5 |
|
|
3626 | ac_status=$? |
|
|
3627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3628 | (exit $ac_status); }; }; then |
|
|
3629 | struct_utmp_host=yes |
|
|
3630 | else |
|
|
3631 | echo "$as_me: failed program was:" >&5 |
|
|
3632 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3633 | |
|
|
3634 | struct_utmp_host=no |
|
|
3635 | fi |
|
|
3636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3637 | fi |
|
|
3638 | echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
|
|
3639 | echo "${ECHO_T}$struct_utmp_host" >&6 |
|
|
3640 | if test x$struct_utmp_host = xyes; then |
|
|
3641 | |
|
|
3642 | cat >>confdefs.h <<\_ACEOF |
|
|
3643 | #define HAVE_UTMP_HOST 1 |
|
|
3644 | _ACEOF |
|
|
3645 | |
|
|
3646 | fi |
|
|
3647 | |
|
|
3648 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
3649 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
|
|
3650 | if test "${struct_utmp_pid+set}" = set; then |
|
|
3651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3652 | else |
|
|
3653 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3654 | /* confdefs.h. */ |
|
|
3655 | _ACEOF |
|
|
3656 | cat confdefs.h >>conftest.$ac_ext |
|
|
3657 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3658 | /* end confdefs.h. */ |
|
|
3659 | #include <sys/types.h> |
|
|
3660 | #include <utmp.h> |
|
|
3661 | int |
|
|
3662 | main () |
|
|
3663 | { |
|
|
3664 | struct utmp ut; ut.ut_pid; |
|
|
3665 | ; |
|
|
3666 | return 0; |
|
|
3667 | } |
|
|
3668 | _ACEOF |
|
|
3669 | rm -f conftest.$ac_objext |
|
|
3670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3671 | (eval $ac_compile) 2>conftest.er1 |
|
|
3672 | ac_status=$? |
|
|
3673 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3674 | rm -f conftest.er1 |
|
|
3675 | cat conftest.err >&5 |
|
|
3676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3677 | (exit $ac_status); } && |
|
|
3678 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3680 | (eval $ac_try) 2>&5 |
|
|
3681 | ac_status=$? |
|
|
3682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3683 | (exit $ac_status); }; } && |
|
|
3684 | { ac_try='test -s conftest.$ac_objext' |
|
|
3685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3686 | (eval $ac_try) 2>&5 |
|
|
3687 | ac_status=$? |
|
|
3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3689 | (exit $ac_status); }; }; then |
|
|
3690 | struct_utmp_pid=yes |
|
|
3691 | else |
|
|
3692 | echo "$as_me: failed program was:" >&5 |
|
|
3693 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3694 | |
|
|
3695 | struct_utmp_pid=no |
|
|
3696 | fi |
|
|
3697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3698 | fi |
|
|
3699 | echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
|
|
3700 | echo "${ECHO_T}$struct_utmp_pid" >&6 |
|
|
3701 | if test x$struct_utmp_pid = xyes; then |
|
|
3702 | |
|
|
3703 | cat >>confdefs.h <<\_ACEOF |
|
|
3704 | #define HAVE_UTMP_PID 1 |
|
|
3705 | _ACEOF |
|
|
3706 | |
|
|
3707 | fi |
|
|
3708 | |
|
|
3709 | fi |
|
|
3710 | |
|
|
3711 | |
|
|
3712 | |
|
|
3713 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
3714 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
3715 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
3716 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3718 | fi |
|
|
3719 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
3720 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
3721 | else |
|
|
3722 | # Is the header compilable? |
|
|
3723 | echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
3724 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
|
|
3725 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3726 | /* confdefs.h. */ |
|
|
3727 | _ACEOF |
|
|
3728 | cat confdefs.h >>conftest.$ac_ext |
|
|
3729 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3730 | /* end confdefs.h. */ |
|
|
3731 | $ac_includes_default |
|
|
3732 | #include <utmpx.h> |
|
|
3733 | _ACEOF |
|
|
3734 | rm -f conftest.$ac_objext |
|
|
3735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3736 | (eval $ac_compile) 2>conftest.er1 |
|
|
3737 | ac_status=$? |
|
|
3738 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3739 | rm -f conftest.er1 |
|
|
3740 | cat conftest.err >&5 |
|
|
3741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3742 | (exit $ac_status); } && |
|
|
3743 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3745 | (eval $ac_try) 2>&5 |
|
|
3746 | ac_status=$? |
|
|
3747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3748 | (exit $ac_status); }; } && |
|
|
3749 | { ac_try='test -s conftest.$ac_objext' |
|
|
3750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3751 | (eval $ac_try) 2>&5 |
|
|
3752 | ac_status=$? |
|
|
3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3754 | (exit $ac_status); }; }; then |
|
|
3755 | ac_header_compiler=yes |
|
|
3756 | else |
|
|
3757 | echo "$as_me: failed program was:" >&5 |
|
|
3758 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3759 | |
|
|
3760 | ac_header_compiler=no |
|
|
3761 | fi |
|
|
3762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3763 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
3764 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
3765 | |
|
|
3766 | # Is the header present? |
|
|
3767 | echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
3768 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
|
|
3769 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3770 | /* confdefs.h. */ |
|
|
3771 | _ACEOF |
|
|
3772 | cat confdefs.h >>conftest.$ac_ext |
|
|
3773 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3774 | /* end confdefs.h. */ |
|
|
3775 | #include <utmpx.h> |
|
|
3776 | _ACEOF |
|
|
3777 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3778 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3779 | ac_status=$? |
|
|
3780 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3781 | rm -f conftest.er1 |
|
|
3782 | cat conftest.err >&5 |
|
|
3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3784 | (exit $ac_status); } >/dev/null; then |
|
|
3785 | if test -s conftest.err; then |
|
|
3786 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3787 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3788 | else |
|
|
3789 | ac_cpp_err= |
|
|
3790 | fi |
|
|
3791 | else |
|
|
3792 | ac_cpp_err=yes |
|
|
3793 | fi |
|
|
3794 | if test -z "$ac_cpp_err"; then |
|
|
3795 | ac_header_preproc=yes |
|
|
3796 | else |
|
|
3797 | echo "$as_me: failed program was:" >&5 |
|
|
3798 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3799 | |
|
|
3800 | ac_header_preproc=no |
|
|
3801 | fi |
|
|
3802 | rm -f conftest.err conftest.$ac_ext |
|
|
3803 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
3804 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
3805 | |
|
|
3806 | # So? What about this header? |
|
|
3807 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
3808 | yes:no: ) |
|
|
3809 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
3810 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
3811 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
3812 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
3813 | ac_header_preproc=yes |
|
|
3814 | ;; |
|
|
3815 | no:yes:* ) |
|
|
3816 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
3817 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
3818 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
3819 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
3820 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
3821 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
3822 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
3823 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
3824 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
3825 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
3826 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
3827 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
3828 | ( |
|
|
3829 | cat <<\_ASBOX |
|
|
3830 | ## ------------------------------------------ ## |
|
|
3831 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
3832 | ## ------------------------------------------ ## |
|
|
3833 | _ASBOX |
|
|
3834 | ) | |
|
|
3835 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
3836 | ;; |
|
|
3837 | esac |
|
|
3838 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
3839 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
3840 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
3841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3842 | else |
|
|
3843 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
3844 | fi |
|
|
3845 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
3846 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
3847 | |
|
|
3848 | fi |
|
|
3849 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
3850 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
3851 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
|
|
3852 | if test "${struct_utmpx+set}" = set; then |
|
|
3853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3854 | else |
|
|
3855 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3856 | /* confdefs.h. */ |
|
|
3857 | _ACEOF |
|
|
3858 | cat confdefs.h >>conftest.$ac_ext |
|
|
3859 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3860 | /* end confdefs.h. */ |
|
|
3861 | #include <sys/types.h> |
|
|
3862 | #include <utmpx.h> |
|
|
3863 | int |
|
|
3864 | main () |
|
|
3865 | { |
|
|
3866 | struct utmpx ut; |
|
|
3867 | ; |
|
|
3868 | return 0; |
|
|
3869 | } |
|
|
3870 | _ACEOF |
|
|
3871 | rm -f conftest.$ac_objext |
|
|
3872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3873 | (eval $ac_compile) 2>conftest.er1 |
|
|
3874 | ac_status=$? |
|
|
3875 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3876 | rm -f conftest.er1 |
|
|
3877 | cat conftest.err >&5 |
|
|
3878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3879 | (exit $ac_status); } && |
|
|
3880 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3882 | (eval $ac_try) 2>&5 |
|
|
3883 | ac_status=$? |
|
|
3884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3885 | (exit $ac_status); }; } && |
|
|
3886 | { ac_try='test -s conftest.$ac_objext' |
|
|
3887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3888 | (eval $ac_try) 2>&5 |
|
|
3889 | ac_status=$? |
|
|
3890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3891 | (exit $ac_status); }; }; then |
|
|
3892 | struct_utmpx=yes |
|
|
3893 | else |
|
|
3894 | echo "$as_me: failed program was:" >&5 |
|
|
3895 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3896 | |
|
|
3897 | struct_utmpx=no |
|
|
3898 | fi |
|
|
3899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3900 | fi |
|
|
3901 | echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
|
|
3902 | echo "${ECHO_T}$struct_utmpx" >&6 |
|
|
3903 | if test x$struct_utmpx = xyes; then |
|
|
3904 | |
|
|
3905 | cat >>confdefs.h <<\_ACEOF |
|
|
3906 | #define HAVE_STRUCT_UTMPX 1 |
|
|
3907 | _ACEOF |
|
|
3908 | |
|
|
3909 | fi |
|
|
3910 | |
|
|
3911 | |
|
|
3912 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
3913 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
|
|
3914 | if test "${struct_utmpx_host+set}" = set; then |
|
|
3915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3916 | else |
|
|
3917 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3918 | /* confdefs.h. */ |
|
|
3919 | _ACEOF |
|
|
3920 | cat confdefs.h >>conftest.$ac_ext |
|
|
3921 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3922 | /* end confdefs.h. */ |
|
|
3923 | #include <sys/types.h> |
|
|
3924 | #include <utmpx.h> |
|
|
3925 | int |
|
|
3926 | main () |
|
|
3927 | { |
|
|
3928 | struct utmpx utx; utx.ut_host; |
|
|
3929 | ; |
|
|
3930 | return 0; |
|
|
3931 | } |
|
|
3932 | _ACEOF |
|
|
3933 | rm -f conftest.$ac_objext |
|
|
3934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3935 | (eval $ac_compile) 2>conftest.er1 |
|
|
3936 | ac_status=$? |
|
|
3937 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3938 | rm -f conftest.er1 |
|
|
3939 | cat conftest.err >&5 |
|
|
3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3941 | (exit $ac_status); } && |
|
|
3942 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3944 | (eval $ac_try) 2>&5 |
|
|
3945 | ac_status=$? |
|
|
3946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3947 | (exit $ac_status); }; } && |
|
|
3948 | { ac_try='test -s conftest.$ac_objext' |
|
|
3949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3950 | (eval $ac_try) 2>&5 |
|
|
3951 | ac_status=$? |
|
|
3952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3953 | (exit $ac_status); }; }; then |
|
|
3954 | struct_utmpx_host=yes |
|
|
3955 | else |
|
|
3956 | echo "$as_me: failed program was:" >&5 |
|
|
3957 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3958 | |
|
|
3959 | struct_utmpx_host=no |
|
|
3960 | fi |
|
|
3961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3962 | fi |
|
|
3963 | echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
|
|
3964 | echo "${ECHO_T}$struct_utmpx_host" >&6 |
|
|
3965 | if test x$struct_utmpx_host = xyes; then |
|
|
3966 | |
|
|
3967 | cat >>confdefs.h <<\_ACEOF |
|
|
3968 | #define HAVE_UTMPX_HOST 1 |
|
|
3969 | _ACEOF |
|
|
3970 | |
|
|
3971 | fi |
|
|
3972 | |
|
|
3973 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
3974 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
3975 | if test "${struct_utmpx_session+set}" = set; then |
|
|
3976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3977 | else |
|
|
3978 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3979 | /* confdefs.h. */ |
|
|
3980 | _ACEOF |
|
|
3981 | cat confdefs.h >>conftest.$ac_ext |
|
|
3982 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3983 | /* end confdefs.h. */ |
|
|
3984 | #include <sys/types.h> |
|
|
3985 | #include <utmpx.h> |
|
|
3986 | int |
|
|
3987 | main () |
|
|
3988 | { |
|
|
3989 | struct utmpx utx; utx.ut_session; |
|
|
3990 | ; |
|
|
3991 | return 0; |
|
|
3992 | } |
|
|
3993 | _ACEOF |
|
|
3994 | rm -f conftest.$ac_objext |
|
|
3995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3996 | (eval $ac_compile) 2>conftest.er1 |
|
|
3997 | ac_status=$? |
|
|
3998 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3999 | rm -f conftest.er1 |
|
|
4000 | cat conftest.err >&5 |
|
|
4001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4002 | (exit $ac_status); } && |
|
|
4003 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4005 | (eval $ac_try) 2>&5 |
|
|
4006 | ac_status=$? |
|
|
4007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4008 | (exit $ac_status); }; } && |
|
|
4009 | { ac_try='test -s conftest.$ac_objext' |
|
|
4010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4011 | (eval $ac_try) 2>&5 |
|
|
4012 | ac_status=$? |
|
|
4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4014 | (exit $ac_status); }; }; then |
|
|
4015 | struct_utmpx_session=yes |
|
|
4016 | else |
|
|
4017 | echo "$as_me: failed program was:" >&5 |
|
|
4018 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4019 | |
|
|
4020 | struct_utmpx_session=no |
|
|
4021 | fi |
|
|
4022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4023 | fi |
|
|
4024 | echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
|
|
4025 | echo "${ECHO_T}$struct_utmpx_session" >&6 |
|
|
4026 | if test x$struct_utmpx_session = xyes; then |
|
|
4027 | |
|
|
4028 | cat >>confdefs.h <<\_ACEOF |
|
|
4029 | #define HAVE_UTMPX_SESSION 1 |
|
|
4030 | _ACEOF |
|
|
4031 | |
|
|
4032 | fi |
|
|
4033 | |
|
|
4034 | fi |
|
|
4035 | |
|
|
4036 | |
|
|
4037 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
4038 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
|
|
4039 | if test "${struct_lastlog+set}" = set; then |
|
|
4040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4041 | else |
|
|
4042 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4043 | /* confdefs.h. */ |
|
|
4044 | _ACEOF |
|
|
4045 | cat confdefs.h >>conftest.$ac_ext |
|
|
4046 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4047 | /* end confdefs.h. */ |
|
|
4048 | #include <sys/types.h> |
|
|
4049 | #include <utmp.h> |
|
|
4050 | #ifdef HAVE_LASTLOG_H |
|
|
4051 | #include <lastlog.h> |
|
|
4052 | #endif |
|
|
4053 | |
|
|
4054 | int |
|
|
4055 | main () |
|
|
4056 | { |
|
|
4057 | struct lastlog ll; |
|
|
4058 | ; |
|
|
4059 | return 0; |
|
|
4060 | } |
|
|
4061 | _ACEOF |
|
|
4062 | rm -f conftest.$ac_objext |
|
|
4063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4064 | (eval $ac_compile) 2>conftest.er1 |
|
|
4065 | ac_status=$? |
|
|
4066 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4067 | rm -f conftest.er1 |
|
|
4068 | cat conftest.err >&5 |
|
|
4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4070 | (exit $ac_status); } && |
|
|
4071 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4073 | (eval $ac_try) 2>&5 |
|
|
4074 | ac_status=$? |
|
|
4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4076 | (exit $ac_status); }; } && |
|
|
4077 | { ac_try='test -s conftest.$ac_objext' |
|
|
4078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4079 | (eval $ac_try) 2>&5 |
|
|
4080 | ac_status=$? |
|
|
4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4082 | (exit $ac_status); }; }; then |
|
|
4083 | struct_lastlog=yes |
|
|
4084 | else |
|
|
4085 | echo "$as_me: failed program was:" >&5 |
|
|
4086 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4087 | |
|
|
4088 | struct_lastlog=no |
|
|
4089 | fi |
|
|
4090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4091 | fi |
|
|
4092 | echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
|
|
4093 | echo "${ECHO_T}$struct_lastlog" >&6 |
|
|
4094 | if test x$struct_lastlog = xyes; then |
|
|
4095 | |
|
|
4096 | cat >>confdefs.h <<\_ACEOF |
|
|
4097 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
4098 | _ACEOF |
|
|
4099 | |
|
|
4100 | fi |
|
|
4101 | |
|
|
4102 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
4103 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
|
|
4104 | if test "${struct_lastlogx+set}" = set; then |
|
|
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4106 | else |
|
|
4107 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4108 | /* confdefs.h. */ |
|
|
4109 | _ACEOF |
|
|
4110 | cat confdefs.h >>conftest.$ac_ext |
|
|
4111 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4112 | /* end confdefs.h. */ |
|
|
4113 | #include <sys/types.h> |
|
|
4114 | #include <utmpx.h> |
|
|
4115 | #ifdef HAVE_LASTLOG_H |
|
|
4116 | #include <lastlog.h> |
|
|
4117 | #endif |
|
|
4118 | |
|
|
4119 | int |
|
|
4120 | main () |
|
|
4121 | { |
|
|
4122 | struct lastlogx ll; |
|
|
4123 | ; |
|
|
4124 | return 0; |
|
|
4125 | } |
|
|
4126 | _ACEOF |
|
|
4127 | rm -f conftest.$ac_objext |
|
|
4128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4129 | (eval $ac_compile) 2>conftest.er1 |
|
|
4130 | ac_status=$? |
|
|
4131 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4132 | rm -f conftest.er1 |
|
|
4133 | cat conftest.err >&5 |
|
|
4134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4135 | (exit $ac_status); } && |
|
|
4136 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4138 | (eval $ac_try) 2>&5 |
|
|
4139 | ac_status=$? |
|
|
4140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4141 | (exit $ac_status); }; } && |
|
|
4142 | { ac_try='test -s conftest.$ac_objext' |
|
|
4143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4144 | (eval $ac_try) 2>&5 |
|
|
4145 | ac_status=$? |
|
|
4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4147 | (exit $ac_status); }; }; then |
|
|
4148 | struct_lastlogx=yes |
|
|
4149 | else |
|
|
4150 | echo "$as_me: failed program was:" >&5 |
|
|
4151 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4152 | |
|
|
4153 | struct_lastlogx=no |
|
|
4154 | fi |
|
|
4155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4156 | fi |
|
|
4157 | echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
|
|
4158 | echo "${ECHO_T}$struct_lastlogx" >&6 |
|
|
4159 | if test x$struct_lastlogx = xyes; then |
|
|
4160 | |
|
|
4161 | cat >>confdefs.h <<\_ACEOF |
|
|
4162 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
4163 | _ACEOF |
|
|
4164 | |
|
|
4165 | fi |
|
|
4166 | |
|
|
4167 | |
|
|
4168 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
4169 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
|
|
4170 | if test "${path_utmp+set}" = set; then |
|
|
4171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4172 | else |
|
|
4173 | if test "$cross_compiling" = yes; then |
|
|
4174 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
4175 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
4176 | else |
|
|
4177 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4178 | /* confdefs.h. */ |
|
|
4179 | _ACEOF |
|
|
4180 | cat confdefs.h >>conftest.$ac_ext |
|
|
4181 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4182 | /* end confdefs.h. */ |
|
|
4183 | #include <stdio.h> |
|
|
4184 | #include <sys/types.h> |
|
|
4185 | #include <utmp.h> |
|
|
4186 | #include <errno.h> |
|
|
4187 | main() |
|
|
4188 | { |
|
|
4189 | char **u, *utmplist[] = { |
|
|
4190 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
4191 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
4192 | if (!f) exit(1); |
|
|
4193 | #ifdef UTMP_FILE |
|
|
4194 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
4195 | exit(0); |
|
|
4196 | #endif |
|
|
4197 | #ifdef _PATH_UTMP |
|
|
4198 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
4199 | exit(0); |
|
|
4200 | #endif |
|
|
4201 | for (u = utmplist; *u; u++) { |
|
|
4202 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
4203 | fprintf(f, "%s\n", *u); |
|
|
4204 | exit(0); |
|
|
4205 | } |
|
|
4206 | } |
|
|
4207 | exit(0); |
|
|
4208 | } |
|
|
4209 | _ACEOF |
|
|
4210 | rm -f conftest$ac_exeext |
|
|
4211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4212 | (eval $ac_link) 2>&5 |
|
|
4213 | ac_status=$? |
|
|
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4215 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4217 | (eval $ac_try) 2>&5 |
|
|
4218 | ac_status=$? |
|
|
4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4220 | (exit $ac_status); }; }; then |
|
|
4221 | path_utmp=`cat conftestval` |
|
|
4222 | else |
|
|
4223 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4224 | echo "$as_me: failed program was:" >&5 |
|
|
4225 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4226 | |
|
|
4227 | ( exit $ac_status ) |
|
|
4228 | path_utmp= |
|
|
4229 | fi |
|
|
4230 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4231 | fi |
|
|
4232 | fi |
|
|
4233 | echo "$as_me:$LINENO: result: $path_utmp" >&5 |
|
|
4234 | echo "${ECHO_T}$path_utmp" >&6 |
|
|
4235 | if test x$path_utmp != x; then |
|
|
4236 | |
|
|
4237 | cat >>confdefs.h <<_ACEOF |
|
|
4238 | #define UTMP_FILE "$path_utmp" |
|
|
4239 | _ACEOF |
|
|
4240 | |
|
|
4241 | fi |
|
|
4242 | |
|
|
4243 | |
|
|
4244 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
4245 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
|
|
4246 | if test "${path_utmpx+set}" = set; then |
|
|
4247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4248 | else |
|
|
4249 | if test "$cross_compiling" = yes; then |
|
|
4250 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
|
|
4251 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
|
|
4252 | else |
|
|
4253 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4254 | /* confdefs.h. */ |
|
|
4255 | _ACEOF |
|
|
4256 | cat confdefs.h >>conftest.$ac_ext |
|
|
4257 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4258 | /* end confdefs.h. */ |
|
|
4259 | #include <stdio.h> |
|
|
4260 | #include <sys/types.h> |
|
|
4261 | #include <utmpx.h> |
|
|
4262 | #include <errno.h> |
|
|
4263 | #include <sys/stat.h> |
|
|
4264 | #ifdef HAVE_STRING_H |
|
|
4265 | #include <string.h> |
|
|
4266 | #endif |
|
|
4267 | main() |
|
|
4268 | { |
|
|
4269 | char **u, *p, *utmplist[] = { |
|
|
4270 | #ifdef UTMPX_FILE |
|
|
4271 | UTMPX_FILE, |
|
|
4272 | #endif |
|
|
4273 | #ifdef _PATH_UTMPX |
|
|
4274 | _PATH_UTMPX, |
|
|
4275 | #endif |
|
|
4276 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
4277 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
4278 | struct stat statu, statux; |
|
|
4279 | if (!f) exit(1); |
|
|
4280 | for (u = utmplist; *u; u++) { |
|
|
4281 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
4282 | if (stat(*u, &statux) < 0) |
|
|
4283 | continue; |
|
|
4284 | p = strdup(*u); |
|
|
4285 | p[strlen(p) - 1] = '\0'; |
|
|
4286 | if (stat(p, &statu) >= 0 |
|
|
4287 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
4288 | continue; |
|
|
4289 | fprintf(f, "%s\n", *u); |
|
|
4290 | exit(0); |
|
|
4291 | } |
|
|
4292 | } |
|
|
4293 | exit(0); |
|
|
4294 | } |
|
|
4295 | _ACEOF |
|
|
4296 | rm -f conftest$ac_exeext |
|
|
4297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4298 | (eval $ac_link) 2>&5 |
|
|
4299 | ac_status=$? |
|
|
4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4301 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4303 | (eval $ac_try) 2>&5 |
|
|
4304 | ac_status=$? |
|
|
4305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4306 | (exit $ac_status); }; }; then |
|
|
4307 | path_utmpx=`cat conftestval` |
|
|
4308 | else |
|
|
4309 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4310 | echo "$as_me: failed program was:" >&5 |
|
|
4311 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4312 | |
|
|
4313 | ( exit $ac_status ) |
|
|
4314 | path_utmpx= |
|
|
4315 | fi |
|
|
4316 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4317 | fi |
|
|
4318 | fi |
|
|
4319 | echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
|
|
4320 | echo "${ECHO_T}$path_utmpx" >&6 |
|
|
4321 | if test x$path_utmpx != x; then |
|
|
4322 | |
|
|
4323 | cat >>confdefs.h <<_ACEOF |
|
|
4324 | #define UTMPX_FILE "$path_utmpx" |
|
|
4325 | _ACEOF |
|
|
4326 | |
|
|
4327 | fi |
|
|
4328 | |
|
|
4329 | |
|
|
4330 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
4331 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
|
|
4332 | if test "${path_wtmp+set}" = set; then |
|
|
4333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4334 | else |
|
|
4335 | if test "$cross_compiling" = yes; then |
|
|
4336 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
4337 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
4338 | else |
|
|
4339 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4340 | /* confdefs.h. */ |
|
|
4341 | _ACEOF |
|
|
4342 | cat confdefs.h >>conftest.$ac_ext |
|
|
4343 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4344 | /* end confdefs.h. */ |
|
|
4345 | #include <stdio.h> |
|
|
4346 | #include <sys/types.h> |
|
|
4347 | #ifdef HAVE_UTMP_H |
|
|
4348 | #include <utmp.h> |
|
|
4349 | #endif |
|
|
4350 | #include <errno.h> |
|
|
4351 | main() |
|
|
4352 | { |
|
|
4353 | char **w, *wtmplist[] = { |
|
|
4354 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
4355 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
4356 | if (!f) exit(1); |
|
|
4357 | #ifdef WTMP_FILE |
|
|
4358 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
4359 | exit(0); |
|
|
4360 | #endif |
|
|
4361 | #ifdef _PATH_WTMP |
|
|
4362 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
4363 | exit(0); |
|
|
4364 | #endif |
|
|
4365 | for (w = wtmplist; *w; w++) { |
|
|
4366 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
4367 | fprintf(f, "%s\n", *w); |
|
|
4368 | exit(0); |
|
|
4369 | } |
|
|
4370 | } |
|
|
4371 | exit(0); |
|
|
4372 | } |
|
|
4373 | _ACEOF |
|
|
4374 | rm -f conftest$ac_exeext |
|
|
4375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4376 | (eval $ac_link) 2>&5 |
|
|
4377 | ac_status=$? |
|
|
4378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4381 | (eval $ac_try) 2>&5 |
|
|
4382 | ac_status=$? |
|
|
4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4384 | (exit $ac_status); }; }; then |
|
|
4385 | path_wtmp=`cat conftestval` |
|
|
4386 | else |
|
|
4387 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4388 | echo "$as_me: failed program was:" >&5 |
|
|
4389 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4390 | |
|
|
4391 | ( exit $ac_status ) |
|
|
4392 | path_wtmp= |
|
|
4393 | fi |
|
|
4394 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4395 | fi |
|
|
4396 | fi |
|
|
4397 | echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
|
|
4398 | echo "${ECHO_T}$path_wtmp" >&6 |
|
|
4399 | if test x$path_wtmp != x; then |
|
|
4400 | |
|
|
4401 | cat >>confdefs.h <<_ACEOF |
|
|
4402 | #define WTMP_FILE "$path_wtmp" |
|
|
4403 | _ACEOF |
|
|
4404 | |
|
|
4405 | fi |
|
|
4406 | |
|
|
4407 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
4408 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
|
|
4409 | if test "${path_wtmpx+set}" = set; then |
|
|
4410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4411 | else |
|
|
4412 | if test "$cross_compiling" = yes; then |
|
|
4413 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
|
|
4414 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
|
|
4415 | else |
|
|
4416 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4417 | /* confdefs.h. */ |
|
|
4418 | _ACEOF |
|
|
4419 | cat confdefs.h >>conftest.$ac_ext |
|
|
4420 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4421 | /* end confdefs.h. */ |
|
|
4422 | #include <stdio.h> |
|
|
4423 | #ifdef HAVE_UTMPX_H |
|
|
4424 | #include <utmpx.h> |
|
|
4425 | #endif |
|
|
4426 | #include <errno.h> |
|
|
4427 | main() |
|
|
4428 | { |
|
|
4429 | char **w, *wtmplist[] = { |
|
|
4430 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
4431 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
4432 | if (!f) exit(1); |
|
|
4433 | #ifdef WTMPX_FILE |
|
|
4434 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
4435 | exit(0); |
|
|
4436 | #endif |
|
|
4437 | #ifdef _PATH_WTMPX |
|
|
4438 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
4439 | exit(0); |
|
|
4440 | #endif |
|
|
4441 | for (w = wtmplist; *w; w++) { |
|
|
4442 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
4443 | fprintf(f, "%s\n", *w); |
|
|
4444 | exit(0); |
|
|
4445 | } |
|
|
4446 | } |
|
|
4447 | exit(0); |
|
|
4448 | } |
|
|
4449 | _ACEOF |
|
|
4450 | rm -f conftest$ac_exeext |
|
|
4451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4452 | (eval $ac_link) 2>&5 |
|
|
4453 | ac_status=$? |
|
|
4454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4457 | (eval $ac_try) 2>&5 |
|
|
4458 | ac_status=$? |
|
|
4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4460 | (exit $ac_status); }; }; then |
|
|
4461 | path_wtmpx=`cat conftestval` |
|
|
4462 | else |
|
|
4463 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4464 | echo "$as_me: failed program was:" >&5 |
|
|
4465 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4466 | |
|
|
4467 | ( exit $ac_status ) |
|
|
4468 | path_wtmpx= |
|
|
4469 | fi |
|
|
4470 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4471 | fi |
|
|
4472 | fi |
|
|
4473 | echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
|
|
4474 | echo "${ECHO_T}$path_wtmpx" >&6 |
|
|
4475 | if test x$path_wtmpx != x; then |
|
|
4476 | |
|
|
4477 | cat >>confdefs.h <<_ACEOF |
|
|
4478 | #define WTMPX_FILE "$path_wtmpx" |
|
|
4479 | _ACEOF |
|
|
4480 | |
|
|
4481 | fi |
|
|
4482 | |
|
|
4483 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
4484 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
|
|
4485 | if test "${path_lastlog+set}" = set; then |
|
|
4486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4487 | else |
|
|
4488 | if test "$cross_compiling" = yes; then |
|
|
4489 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
|
|
4490 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
|
|
4491 | else |
|
|
4492 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4493 | /* confdefs.h. */ |
|
|
4494 | _ACEOF |
|
|
4495 | cat confdefs.h >>conftest.$ac_ext |
|
|
4496 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4497 | /* end confdefs.h. */ |
|
|
4498 | #include <stdio.h> |
|
|
4499 | #include <sys/types.h> |
|
|
4500 | #ifdef HAVE_UTMPX_H |
|
|
4501 | #include <utmpx.h> |
|
|
4502 | #elif defined(HAVE_UTMP_H) |
|
|
4503 | #include <utmp.h> |
|
|
4504 | #endif |
|
|
4505 | #ifdef HAVE_LASTLOG_H |
|
|
4506 | #include <lastlog.h> |
|
|
4507 | #endif |
|
|
4508 | #include <errno.h> |
|
|
4509 | main() |
|
|
4510 | { |
|
|
4511 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
4512 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
4513 | if (!f) exit(1); |
|
|
4514 | #ifdef LASTLOG_FILE |
|
|
4515 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
4516 | exit(0); |
|
|
4517 | #endif |
|
|
4518 | #ifdef _PATH_LASTLOG |
|
|
4519 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
4520 | exit(0); |
|
|
4521 | #endif |
|
|
4522 | for (w = lastloglist; *w; w++) { |
|
|
4523 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
4524 | fprintf(f, "%s\n", *w); |
|
|
4525 | exit(0); |
|
|
4526 | } |
|
|
4527 | } |
|
|
4528 | exit(0); |
|
|
4529 | } |
|
|
4530 | _ACEOF |
|
|
4531 | rm -f conftest$ac_exeext |
|
|
4532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4533 | (eval $ac_link) 2>&5 |
|
|
4534 | ac_status=$? |
|
|
4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4536 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4538 | (eval $ac_try) 2>&5 |
|
|
4539 | ac_status=$? |
|
|
4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4541 | (exit $ac_status); }; }; then |
|
|
4542 | path_lastlog=`cat conftestval` |
|
|
4543 | else |
|
|
4544 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4545 | echo "$as_me: failed program was:" >&5 |
|
|
4546 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4547 | |
|
|
4548 | ( exit $ac_status ) |
|
|
4549 | path_lastlog= |
|
|
4550 | fi |
|
|
4551 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4552 | fi |
|
|
4553 | fi |
|
|
4554 | echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
|
|
4555 | echo "${ECHO_T}$path_lastlog" >&6 |
|
|
4556 | if test x$path_lastlog != x; then |
|
|
4557 | |
|
|
4558 | cat >>confdefs.h <<_ACEOF |
|
|
4559 | #define LASTLOG_FILE "$path_lastlog" |
|
|
4560 | _ACEOF |
|
|
4561 | |
|
|
4562 | if test -d "$path_lastlog"; then |
|
|
4563 | |
|
|
4564 | cat >>confdefs.h <<\_ACEOF |
|
|
4565 | #define LASTLOG_IS_DIR 1 |
|
|
4566 | _ACEOF |
|
|
4567 | |
|
|
4568 | fi |
|
|
4569 | fi |
|
|
4570 | |
|
|
4571 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
4572 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
|
|
4573 | if test "${path_lastlogx+set}" = set; then |
|
|
4574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4575 | else |
|
|
4576 | if test "$cross_compiling" = yes; then |
|
|
4577 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
|
|
4578 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
|
|
4579 | else |
|
|
4580 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4581 | /* confdefs.h. */ |
|
|
4582 | _ACEOF |
|
|
4583 | cat confdefs.h >>conftest.$ac_ext |
|
|
4584 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4585 | /* end confdefs.h. */ |
|
|
4586 | #include <stdio.h> |
|
|
4587 | #ifdef HAVE_UTMPX_H |
|
|
4588 | #include <utmpx.h> |
|
|
4589 | #endif |
|
|
4590 | #include <errno.h> |
|
|
4591 | main() |
|
|
4592 | { |
|
|
4593 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
4594 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
4595 | if (!f) exit(1); |
|
|
4596 | #ifdef LASTLOGX_FILE |
|
|
4597 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
4598 | exit(0); |
|
|
4599 | #endif |
|
|
4600 | #ifdef _PATH_LASTLOGX |
|
|
4601 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
4602 | exit(0); |
|
|
4603 | #endif |
|
|
4604 | for (w = wtmplist; *w; w++) { |
|
|
4605 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
4606 | fprintf(f, "%s\n", *w); |
|
|
4607 | exit(0); |
|
|
4608 | } |
|
|
4609 | } |
|
|
4610 | exit(0); |
|
|
4611 | } |
|
|
4612 | _ACEOF |
|
|
4613 | rm -f conftest$ac_exeext |
|
|
4614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4615 | (eval $ac_link) 2>&5 |
|
|
4616 | ac_status=$? |
|
|
4617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4618 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4620 | (eval $ac_try) 2>&5 |
|
|
4621 | ac_status=$? |
|
|
4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4623 | (exit $ac_status); }; }; then |
|
|
4624 | path_lastlogx=`cat conftestval` |
|
|
4625 | else |
|
|
4626 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4627 | echo "$as_me: failed program was:" >&5 |
|
|
4628 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4629 | |
|
|
4630 | ( exit $ac_status ) |
|
|
4631 | path_lastlogx= |
|
|
4632 | fi |
|
|
4633 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4634 | fi |
|
|
4635 | fi |
|
|
4636 | echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
|
|
4637 | echo "${ECHO_T}$path_lastlogx" >&6 |
|
|
4638 | if test x$path_lastlogx != x; then |
|
|
4639 | |
|
|
4640 | cat >>confdefs.h <<_ACEOF |
|
|
4641 | #define LASTLOGX_FILE "$path_lastlogx" |
|
|
4642 | _ACEOF |
|
|
4643 | |
|
|
4644 | fi |
|
|
4645 | |
|
|
4646 | |
|
|
4647 | |
|
|
4648 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
4649 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
4650 | if test "${can_pass_fds+set}" = set; then |
|
|
4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4652 | else |
|
|
4653 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4654 | /* confdefs.h. */ |
|
|
4655 | _ACEOF |
|
|
4656 | cat confdefs.h >>conftest.$ac_ext |
|
|
4657 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4658 | /* end confdefs.h. */ |
|
|
4659 | |
|
|
4660 | #include <cstddef> // broken bsds (is that redundant) need this |
|
|
4661 | #include <sys/types.h> |
|
|
4662 | #include <sys/socket.h> |
|
|
4663 | #include <sys/uio.h> |
|
|
4664 | |
|
|
4665 | int |
|
|
4666 | main () |
|
|
4667 | { |
|
|
4668 | |
|
|
4669 | { |
|
|
4670 | msghdr msg; |
|
|
4671 | iovec iov; |
|
|
4672 | char buf [100]; |
|
|
4673 | char data = 0; |
|
|
4674 | |
|
|
4675 | iov.iov_base = &data; |
|
|
4676 | iov.iov_len = 1; |
|
|
4677 | |
|
|
4678 | msg.msg_iov = &iov; |
|
|
4679 | msg.msg_iovlen = 1; |
|
|
4680 | msg.msg_control = buf; |
|
|
4681 | msg.msg_controllen = sizeof buf; |
|
|
4682 | |
|
|
4683 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
4684 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
4685 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
4686 | cmsg->cmsg_len = 100; |
|
|
4687 | |
|
|
4688 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
4689 | |
|
|
4690 | return sendmsg (3, &msg, 0); |
|
|
4691 | } |
|
|
4692 | |
|
|
4693 | ; |
|
|
4694 | return 0; |
|
|
4695 | } |
|
|
4696 | _ACEOF |
|
|
4697 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4699 | (eval $ac_link) 2>conftest.er1 |
|
|
4700 | ac_status=$? |
|
|
4701 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4702 | rm -f conftest.er1 |
|
|
4703 | cat conftest.err >&5 |
|
|
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4705 | (exit $ac_status); } && |
|
|
4706 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4708 | (eval $ac_try) 2>&5 |
|
|
4709 | ac_status=$? |
|
|
4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4711 | (exit $ac_status); }; } && |
|
|
4712 | { ac_try='test -s conftest$ac_exeext' |
|
|
4713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4714 | (eval $ac_try) 2>&5 |
|
|
4715 | ac_status=$? |
|
|
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4717 | (exit $ac_status); }; }; then |
|
|
4718 | can_pass_fds=yes |
|
|
4719 | else |
|
|
4720 | echo "$as_me: failed program was:" >&5 |
|
|
4721 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4722 | |
|
|
4723 | can_pass_fds=no |
|
|
4724 | fi |
|
|
4725 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4726 | conftest$ac_exeext conftest.$ac_ext |
|
|
4727 | fi |
|
|
4728 | echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
|
|
4729 | echo "${ECHO_T}$can_pass_fds" >&6 |
|
|
4730 | if test x$can_pass_fds = xyes; then |
|
|
4731 | |
|
|
4732 | cat >>confdefs.h <<\_ACEOF |
|
|
4733 | #define HAVE_UNIX_FDPASS 1 |
|
|
4734 | _ACEOF |
|
|
4735 | |
|
|
4736 | else |
|
|
4737 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
4738 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
4739 | { (exit 1); exit 1; }; } |
|
|
4740 | fi |
1971 | |
4741 | |
1972 | |
4742 | |
1973 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
4743 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
1974 | |
4744 | |
1975 | cat >confcache <<\_ACEOF |
4745 | cat >confcache <<\_ACEOF |
… | |
… | |
2601 | s,@EXEEXT@,$EXEEXT,;t t |
5371 | s,@EXEEXT@,$EXEEXT,;t t |
2602 | s,@OBJEXT@,$OBJEXT,;t t |
5372 | s,@OBJEXT@,$OBJEXT,;t t |
2603 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
5373 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
2604 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
5374 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
2605 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
5375 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
|
|
5376 | s,@RM@,$RM,;t t |
|
|
5377 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
5378 | s,@EGREP@,$EGREP,;t t |
2606 | s,@LIBOBJS@,$LIBOBJS,;t t |
5379 | s,@LIBOBJS@,$LIBOBJS,;t t |
2607 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
5380 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
2608 | CEOF |
5381 | CEOF |
2609 | |
5382 | |
2610 | _ACEOF |
5383 | _ACEOF |
… | |
… | |
3095 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
5868 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
3096 | # would make configure fail if this is the last instruction. |
5869 | # would make configure fail if this is the last instruction. |
3097 | $ac_cs_success || { (exit 1); exit 1; } |
5870 | $ac_cs_success || { (exit 1); exit 1; } |
3098 | fi |
5871 | fi |
3099 | |
5872 | |
3100 | |
|
|