Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
b4e70030 | 3 | # Generated by GNU Autoconf 2.59. |
c906108c | 4 | # |
b4e70030 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
c906108c SS |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
bec39cab AC |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
bec39cab AC |
21 | fi |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 33 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
34 | PS1='$ ' |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
b4e70030 | 47 | $as_unset $as_var |
bec39cab AC |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
b4e70030 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
b4e70030 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
b4e70030 | 66 | as_me=`$as_basename "$0" || |
bec39cab AC |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 71 | echo X/"$0" | |
b4e70030 JB |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
bec39cab | 76 | |
4e8d927d | 77 | |
b4e70030 JB |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4e8d927d | 85 | |
b4e70030 JB |
86 | # The user is always right. |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
4e8d927d DJ |
97 | fi |
98 | ||
4e8d927d | 99 | |
b4e70030 JB |
100 | as_lineno_1=$LINENO |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
4e8d927d | 116 | |
b4e70030 JB |
117 | ;; |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
bec39cab | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b4e70030 | 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
bec39cab AC |
132 | do |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
b4e70030 JB |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
bec39cab | 137 | /*) |
b4e70030 | 138 | if ("$as_dir/$as_base" -c ' |
4e8d927d DJ |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
b4e70030 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4e8d927d | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
bec39cab AC |
155 | |
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
158 | # line-number line before each line; the second 'sed' does the real |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
bec39cab AC |
165 | sed ' |
166 | N | |
b4e70030 JB |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 170 | t loop |
b4e70030 JB |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 173 | ' >$as_me.lineno && |
b4e70030 | 174 | chmod +x $as_me.lineno || |
bec39cab AC |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
bec39cab AC |
182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
b4e70030 JB |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
192 | esac |
193 | ||
b4e70030 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
195 | as_expr=expr |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
203 | # We could just check for DJGPP; but this test a) works b) is more generic |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
bec39cab | 207 | as_ln_s='cp -p' |
b4e70030 JB |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
bec39cab AC |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
b4e70030 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
217 | |
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
b4e70030 | 225 | as_executable_p="test -f" |
bec39cab AC |
226 | |
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
b4e70030 JB |
234 | # IFS |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
bec39cab | 242 | |
c906108c | 243 | |
bec39cab AC |
244 | # Name of the host. |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
b4e70030 JB |
249 | exec 6>&1 |
250 | ||
bec39cab AC |
251 | # |
252 | # Initializations. | |
253 | # | |
c906108c | 254 | ac_default_prefix=/usr/local |
bec39cab AC |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
b4e70030 JB |
262 | # Maximum number of lines to put in a shell here document. |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
bec39cab AC |
267 | # Identity of this package. |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="main.c" | |
20e95c23 | 275 | ac_subdirs_all="$ac_subdirs_all doc testsuite" |
bec39cab AC |
276 | # Factoring default headers for most tests. |
277 | ac_includes_default="\ | |
278 | #include <stdio.h> | |
279 | #if HAVE_SYS_TYPES_H | |
280 | # include <sys/types.h> | |
281 | #endif | |
282 | #if HAVE_SYS_STAT_H | |
283 | # include <sys/stat.h> | |
284 | #endif | |
285 | #if STDC_HEADERS | |
286 | # include <stdlib.h> | |
287 | # include <stddef.h> | |
288 | #else | |
289 | # if HAVE_STDLIB_H | |
290 | # include <stdlib.h> | |
291 | # endif | |
292 | #endif | |
293 | #if HAVE_STRING_H | |
294 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
295 | # include <memory.h> | |
296 | # endif | |
297 | # include <string.h> | |
298 | #endif | |
299 | #if HAVE_STRINGS_H | |
300 | # include <strings.h> | |
301 | #endif | |
302 | #if HAVE_INTTYPES_H | |
303 | # include <inttypes.h> | |
b4e70030 JB |
304 | #else |
305 | # if HAVE_STDINT_H | |
306 | # include <stdint.h> | |
307 | # endif | |
bec39cab AC |
308 | #endif |
309 | #if HAVE_UNISTD_H | |
310 | # include <unistd.h> | |
311 | #endif" | |
312 | ||
b4e70030 JB |
313 | ac_subdirs_all="$ac_subdirs_all gdbtk" |
314 | ac_subdirs_all="$ac_subdirs_all multi-ice" | |
315 | ac_subdirs_all="$ac_subdirs_all gdbserver" | |
6a30b0a5 | 316 | 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS' |
b4e70030 | 317 | ac_subst_files='host_makefile_frag target_makefile_frag' |
c906108c SS |
318 | |
319 | # Initialize some variables set by options. | |
bec39cab AC |
320 | ac_init_help= |
321 | ac_init_version=false | |
c906108c SS |
322 | # The variables have the same names as the options, with |
323 | # dashes changed to underlines. | |
bec39cab | 324 | cache_file=/dev/null |
c906108c | 325 | exec_prefix=NONE |
c906108c | 326 | no_create= |
c906108c SS |
327 | no_recursion= |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
c906108c SS |
335 | verbose= |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
bec39cab AC |
338 | |
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
344 | bindir='${exec_prefix}/bin' |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
b4e70030 | 347 | datadir='${prefix}/share' |
c906108c SS |
348 | sysconfdir='${prefix}/etc' |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
b4e70030 | 351 | libdir='${exec_prefix}/lib' |
c906108c SS |
352 | includedir='${prefix}/include' |
353 | oldincludedir='/usr/include' | |
b4e70030 JB |
354 | infodir='${prefix}/info' |
355 | mandir='${prefix}/man' | |
c906108c | 356 | |
c906108c SS |
357 | ac_prev= |
358 | for ac_option | |
359 | do | |
c906108c SS |
360 | # If the previous option needs an argument, assign it. |
361 | if test -n "$ac_prev"; then | |
b4e70030 | 362 | eval "$ac_prev=\$ac_option" |
c906108c SS |
363 | ac_prev= |
364 | continue | |
365 | fi | |
366 | ||
b4e70030 | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
b4e70030 | 371 | case $ac_option in |
c906108c SS |
372 | |
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 376 | bindir=$ac_optarg ;; |
c906108c SS |
377 | |
378 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 379 | ac_prev=build_alias ;; |
c906108c | 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 381 | build_alias=$ac_optarg ;; |
c906108c SS |
382 | |
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
388 | cache_file=$ac_optarg ;; |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
c906108c | 392 | |
b4e70030 | 393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
c906108c | 394 | ac_prev=datadir ;; |
b4e70030 JB |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
396 | | --da=*) | |
bec39cab | 397 | datadir=$ac_optarg ;; |
c906108c SS |
398 | |
399 | -disable-* | --disable-*) | |
bec39cab | 400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 401 | # Reject names that are not valid shell variable names. |
bec39cab AC |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 | 406 | eval "enable_$ac_feature=no" ;; |
c906108c SS |
407 | |
408 | -enable-* | --enable-*) | |
bec39cab | 409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 410 | # Reject names that are not valid shell variable names. |
bec39cab AC |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 JB |
415 | case $ac_option in |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
c906108c SS |
420 | |
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 428 | exec_prefix=$ac_optarg ;; |
c906108c SS |
429 | |
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
bec39cab AC |
434 | -help | --help | --hel | --he | -h) |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
c906108c SS |
440 | |
441 | -host | --host | --hos | --ho) | |
bec39cab | 442 | ac_prev=host_alias ;; |
c906108c | 443 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 444 | host_alias=$ac_optarg ;; |
c906108c SS |
445 | |
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 451 | includedir=$ac_optarg ;; |
c906108c SS |
452 | |
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 456 | infodir=$ac_optarg ;; |
c906108c SS |
457 | |
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 461 | libdir=$ac_optarg ;; |
c906108c SS |
462 | |
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 468 | libexecdir=$ac_optarg ;; |
c906108c SS |
469 | |
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
b4e70030 JB |
471 | | --localstate | --localstat | --localsta | --localst \ |
472 | | --locals | --local | --loca | --loc | --lo) | |
c906108c SS |
473 | ac_prev=localstatedir ;; |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
b4e70030 JB |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
bec39cab | 477 | localstatedir=$ac_optarg ;; |
c906108c SS |
478 | |
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 482 | mandir=$ac_optarg ;; |
c906108c SS |
483 | |
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 489 | | --no-cr | --no-c | -n) |
c906108c SS |
490 | no_create=yes ;; |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 503 | oldincludedir=$ac_optarg ;; |
c906108c SS |
504 | |
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 508 | prefix=$ac_optarg ;; |
c906108c SS |
509 | |
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 515 | program_prefix=$ac_optarg ;; |
c906108c SS |
516 | |
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 522 | program_suffix=$ac_optarg ;; |
c906108c SS |
523 | |
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 539 | program_transform_name=$ac_optarg ;; |
c906108c SS |
540 | |
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
bec39cab | 549 | sbindir=$ac_optarg ;; |
c906108c SS |
550 | |
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
bec39cab | 560 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
561 | |
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
bec39cab | 565 | site=$ac_optarg ;; |
3ace7edb | 566 | |
c906108c SS |
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 570 | srcdir=$ac_optarg ;; |
c906108c SS |
571 | |
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 577 | sysconfdir=$ac_optarg ;; |
c906108c SS |
578 | |
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 580 | ac_prev=target_alias ;; |
c906108c | 581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 582 | target_alias=$ac_optarg ;; |
c906108c SS |
583 | |
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
bec39cab AC |
587 | -version | --version | --versio | --versi | --vers | -V) |
588 | ac_init_version=: ;; | |
c906108c SS |
589 | |
590 | -with-* | --with-*) | |
bec39cab | 591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 592 | # Reject names that are not valid shell variable names. |
bec39cab AC |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
c906108c | 596 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b4e70030 JB |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
c906108c SS |
602 | |
603 | -without-* | --without-*) | |
bec39cab | 604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 605 | # Reject names that are not valid shell variable names. |
bec39cab AC |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
b4e70030 | 610 | eval "with_$ac_package=no" ;; |
c906108c SS |
611 | |
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 621 | x_includes=$ac_optarg ;; |
c906108c SS |
622 | |
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 628 | x_libraries=$ac_optarg ;; |
c906108c | 629 | |
bec39cab AC |
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
c906108c SS |
633 | ;; |
634 | ||
bec39cab AC |
635 | *=*) |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
642 | eval "$ac_envvar='$ac_optarg'" | |
bec39cab AC |
643 | export $ac_envvar ;; |
644 | ||
c906108c | 645 | *) |
bec39cab AC |
646 | # FIXME: should be removed in autoconf 3.0. |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
651 | ;; |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
bec39cab AC |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
c906108c | 660 | fi |
c906108c | 661 | |
b4e70030 JB |
662 | # Be sure to have absolute paths. |
663 | for ac_var in exec_prefix prefix | |
c906108c | 664 | do |
b4e70030 | 665 | eval ac_val=$`echo $ac_var` |
bec39cab | 666 | case $ac_val in |
b4e70030 JB |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
675 | localstatedir libdir includedir oldincludedir infodir mandir | |
676 | do | |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
c906108c SS |
682 | esac |
683 | done | |
684 | ||
bec39cab AC |
685 | # There might be people who depend on the old broken behavior: `$host' |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
c906108c | 702 | |
bec39cab AC |
703 | ac_tool_prefix= |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 707 | |
c906108c SS |
708 | |
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
b4e70030 JB |
712 | # Try the directory containing this script, then its parent. |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
bec39cab AC |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
715 | X"$0" : 'X\(//\)[^/]' \| \ | |
716 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
717 | X"$0" : 'X\(/\)' \| \ |
718 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 719 | echo X"$0" | |
b4e70030 JB |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
c906108c | 725 | srcdir=$ac_confdir |
b4e70030 | 726 | if test ! -r $srcdir/$ac_unique_file; then |
c906108c SS |
727 | srcdir=.. |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
b4e70030 JB |
732 | if test ! -r $srcdir/$ac_unique_file; then |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bec39cab | 738 | { (exit 1); exit 1; }; } |
b4e70030 | 739 | fi |
c906108c | 740 | fi |
b4e70030 JB |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
bec39cab | 743 | { (exit 1); exit 1; }; } |
b4e70030 JB |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
c906108c | 777 | |
bec39cab AC |
778 | # |
779 | # Report the --help message. | |
780 | # | |
781 | if test "$ac_init_help" = "long"; then | |
782 | # Omit some internal or obsolete options to make the list less imposing. | |
783 | # This message is too long to be a string in the A/UX 3.1 sh. | |
784 | cat <<_ACEOF | |
785 | \`configure' configures this package to adapt to many kinds of systems. | |
786 | ||
787 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
788 | ||
789 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
790 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
791 | ||
792 | Defaults for the options are specified in brackets. | |
793 | ||
794 | Configuration: | |
795 | -h, --help display this help and exit | |
796 | --help=short display options specific to this package | |
797 | --help=recursive display the short help of all the included packages | |
798 | -V, --version display version information and exit | |
799 | -q, --quiet, --silent do not print \`checking...' messages | |
800 | --cache-file=FILE cache test results in FILE [disabled] | |
801 | -C, --config-cache alias for \`--cache-file=config.cache' | |
802 | -n, --no-create do not create output files | |
803 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
804 | ||
b4e70030 JB |
805 | _ACEOF |
806 | ||
807 | cat <<_ACEOF | |
bec39cab AC |
808 | Installation directories: |
809 | --prefix=PREFIX install architecture-independent files in PREFIX | |
810 | [$ac_default_prefix] | |
811 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
812 | [PREFIX] | |
813 | ||
814 | By default, \`make install' will install all the files in | |
815 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
816 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
817 | for instance \`--prefix=\$HOME'. | |
818 | ||
819 | For better control, use the options below. | |
820 | ||
821 | Fine tuning of the installation directories: | |
822 | --bindir=DIR user executables [EPREFIX/bin] | |
823 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
824 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
b4e70030 | 825 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
bec39cab AC |
826 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
827 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
828 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
829 | --libdir=DIR object code libraries [EPREFIX/lib] | |
830 | --includedir=DIR C header files [PREFIX/include] | |
831 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
b4e70030 JB |
832 | --infodir=DIR info documentation [PREFIX/info] |
833 | --mandir=DIR man documentation [PREFIX/man] | |
bec39cab AC |
834 | _ACEOF |
835 | ||
836 | cat <<\_ACEOF | |
837 | ||
838 | Program names: | |
839 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
840 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
841 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
842 | ||
843 | X features: | |
844 | --x-includes=DIR X include files are in DIR | |
845 | --x-libraries=DIR X library files are in DIR | |
846 | ||
847 | System types: | |
848 | --build=BUILD configure for building on BUILD [guessed] | |
849 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
850 | --target=TARGET configure for building compilers for TARGET [HOST] | |
851 | _ACEOF | |
852 | fi | |
853 | ||
854 | if test -n "$ac_init_help"; then | |
855 | ||
856 | cat <<\_ACEOF | |
857 | ||
858 | Optional Features: | |
859 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
860 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85981d60 AC |
861 | --enable-maintainer-mode enable make rules and dependencies not useful |
862 | (and sometimes confusing) to the casual installer | |
bec39cab AC |
863 | --disable-gdbcli disable command-line interface (CLI) |
864 | --disable-gdbmi disable machine-interface (MI) | |
865 | --enable-tui enable full-screen terminal user interface (TUI) | |
866 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
867 | --enable-profiling enable profiling of GDB | |
3841debe | 868 | --disable-rpath do not hardcode runtime library paths |
094a342e | 869 | --enable-werror treat compile warnings as errors |
bec39cab AC |
870 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
871 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
872 | --enable-sim Link gdb with simulator | |
873 | --enable-multi-ice build the multi-ice-gdb-server | |
874 | ||
875 | Optional Packages: | |
876 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
877 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
bec39cab AC |
878 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug |
879 | --with-libunwind Use libunwind frame unwinding support | |
6a30b0a5 | 880 | --with-system-readline use installed readline library |
5c39566f | 881 | --with-expat include expat support (auto/yes/no) |
3841debe DJ |
882 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
883 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib | |
884 | --without-libexpat-prefix don't search for libexpat in includedir and libdir | |
bec39cab AC |
885 | --without-included-regex don't use included regex; this is the default |
886 | on systems with version 2 of the GNU C library | |
887 | (use with caution on other system) | |
888 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
889 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
890 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
891 | --with-tclinclude=DIR Directory where tcl private headers are | |
892 | --with-tkinclude=DIR Directory where tk private headers are | |
893 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
894 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
895 | --with-x use the X Window System | |
896 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
897 | ||
898 | Some influential environment variables: | |
899 | CC C compiler command | |
900 | CFLAGS C compiler flags | |
901 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
902 | nonstandard directory <lib dir> | |
b4e70030 JB |
903 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
904 | headers in a nonstandard directory <include dir> | |
bec39cab AC |
905 | CPP C preprocessor |
906 | ||
907 | Use these variables to override the choices made by `configure' or to help | |
908 | it to find libraries and programs with nonstandard names/locations. | |
909 | ||
910 | _ACEOF | |
911 | fi | |
912 | ||
913 | if test "$ac_init_help" = "recursive"; then | |
914 | # If there are subdirs, report their specific --help. | |
b4e70030 | 915 | ac_popdir=`pwd` |
bec39cab AC |
916 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
917 | test -d $ac_dir || continue | |
918 | ac_builddir=. | |
919 | ||
b4e70030 | 920 | if test "$ac_dir" != .; then |
bec39cab | 921 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
922 | # A "../" for each directory in $ac_dir_suffix. |
923 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
924 | else | |
925 | ac_dir_suffix= ac_top_builddir= | |
926 | fi | |
bec39cab AC |
927 | |
928 | case $srcdir in | |
b4e70030 | 929 | .) # No --srcdir option. We are building in place. |
bec39cab | 930 | ac_srcdir=. |
b4e70030 JB |
931 | if test -z "$ac_top_builddir"; then |
932 | ac_top_srcdir=. | |
933 | else | |
934 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
935 | fi ;; | |
936 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 937 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
938 | ac_top_srcdir=$srcdir ;; |
939 | *) # Relative path. | |
940 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
941 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
942 | esac | |
943 | ||
944 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
945 | # the directories may not exist. | |
946 | case `pwd` in | |
947 | .) ac_abs_builddir="$ac_dir";; | |
948 | *) | |
949 | case "$ac_dir" in | |
950 | .) ac_abs_builddir=`pwd`;; | |
951 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
952 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
953 | esac;; | |
954 | esac | |
955 | case $ac_abs_builddir in | |
956 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
957 | *) | |
958 | case ${ac_top_builddir}. in | |
959 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
960 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
961 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
962 | esac;; | |
963 | esac | |
964 | case $ac_abs_builddir in | |
965 | .) ac_abs_srcdir=$ac_srcdir;; | |
966 | *) | |
967 | case $ac_srcdir in | |
968 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
969 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
970 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
971 | esac;; | |
972 | esac | |
973 | case $ac_abs_builddir in | |
974 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
975 | *) | |
976 | case $ac_top_srcdir in | |
977 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
978 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
979 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
980 | esac;; | |
bec39cab AC |
981 | esac |
982 | ||
b4e70030 JB |
983 | cd $ac_dir |
984 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab | 985 | if test -f $ac_srcdir/configure.gnu; then |
b4e70030 | 986 | echo |
bec39cab AC |
987 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
988 | elif test -f $ac_srcdir/configure; then | |
b4e70030 | 989 | echo |
bec39cab | 990 | $SHELL $ac_srcdir/configure --help=recursive |
b4e70030 JB |
991 | elif test -f $ac_srcdir/configure.ac || |
992 | test -f $ac_srcdir/configure.in; then | |
993 | echo | |
994 | $ac_configure --help | |
3ace7edb | 995 | else |
bec39cab | 996 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
b4e70030 JB |
997 | fi |
998 | cd $ac_popdir | |
bec39cab AC |
999 | done |
1000 | fi | |
1001 | ||
b4e70030 | 1002 | test -n "$ac_init_help" && exit 0 |
bec39cab AC |
1003 | if $ac_init_version; then |
1004 | cat <<\_ACEOF | |
1005 | ||
b4e70030 | 1006 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
1007 | This configure script is free software; the Free Software Foundation |
1008 | gives unlimited permission to copy, distribute and modify it. | |
1009 | _ACEOF | |
b4e70030 | 1010 | exit 0 |
bec39cab | 1011 | fi |
b4e70030 JB |
1012 | exec 5>config.log |
1013 | cat >&5 <<_ACEOF | |
bec39cab AC |
1014 | This file contains any messages produced by compilers while |
1015 | running configure, to aid debugging if configure makes a mistake. | |
1016 | ||
1017 | It was created by $as_me, which was | |
b4e70030 | 1018 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
1019 | |
1020 | $ $0 $@ | |
1021 | ||
1022 | _ACEOF | |
1023 | { | |
1024 | cat <<_ASUNAME | |
1025 | ## --------- ## | |
1026 | ## Platform. ## | |
1027 | ## --------- ## | |
1028 | ||
1029 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1030 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1031 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1032 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1033 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1034 | ||
1035 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1036 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1037 | ||
1038 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1039 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1040 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
b4e70030 | 1041 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1042 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1043 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1044 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1045 | ||
1046 | _ASUNAME | |
1047 | ||
1048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1049 | for as_dir in $PATH | |
1050 | do | |
1051 | IFS=$as_save_IFS | |
1052 | test -z "$as_dir" && as_dir=. | |
1053 | echo "PATH: $as_dir" | |
1054 | done | |
1055 | ||
1056 | } >&5 | |
1057 | ||
1058 | cat >&5 <<_ACEOF | |
1059 | ||
1060 | ||
1061 | ## ----------- ## | |
1062 | ## Core tests. ## | |
1063 | ## ----------- ## | |
1064 | ||
1065 | _ACEOF | |
1066 | ||
1067 | ||
1068 | # Keep a trace of the command line. | |
1069 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1070 | # Strip out --silent because we don't want to record it for future runs. | |
1071 | # Also quote any args containing shell meta-characters. | |
1072 | # Make two passes to allow for proper duplicate-argument suppression. | |
1073 | ac_configure_args= | |
1074 | ac_configure_args0= | |
1075 | ac_configure_args1= | |
1076 | ac_sep= | |
1077 | ac_must_keep_next=false | |
1078 | for ac_pass in 1 2 | |
1079 | do | |
1080 | for ac_arg | |
1081 | do | |
1082 | case $ac_arg in | |
1083 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1085 | | -silent | --silent | --silen | --sile | --sil) | |
1086 | continue ;; | |
b4e70030 | 1087 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
bec39cab AC |
1088 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1089 | esac | |
1090 | case $ac_pass in | |
1091 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1092 | 2) | |
1093 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1094 | if test $ac_must_keep_next = true; then | |
1095 | ac_must_keep_next=false # Got value, back to normal. | |
1096 | else | |
1097 | case $ac_arg in | |
1098 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1099 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1100 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1101 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1102 | case "$ac_configure_args0 " in | |
1103 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1104 | esac | |
1105 | ;; | |
1106 | -* ) ac_must_keep_next=true ;; | |
1107 | esac | |
1108 | fi | |
1109 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1110 | # Get rid of the leading space. | |
1111 | ac_sep=" " | |
1112 | ;; | |
1113 | esac | |
1114 | done | |
1115 | done | |
1116 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1117 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1118 | ||
1119 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1120 | # config.log. We remove comments because anyway the quotes in there | |
1121 | # would cause problems or look ugly. | |
b4e70030 JB |
1122 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1123 | # such as our DU 5.0 friend, will then `close' the trap. | |
bec39cab AC |
1124 | trap 'exit_status=$? |
1125 | # Save into config.log some information that might help in debugging. | |
1126 | { | |
1127 | echo | |
1128 | ||
1129 | cat <<\_ASBOX | |
1130 | ## ---------------- ## | |
1131 | ## Cache variables. ## | |
1132 | ## ---------------- ## | |
1133 | _ASBOX | |
1134 | echo | |
1135 | # The following way of writing the cache mishandles newlines in values, | |
b4e70030 | 1136 | { |
bec39cab | 1137 | (set) 2>&1 | |
b4e70030 JB |
1138 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1139 | *ac_space=\ *) | |
bec39cab | 1140 | sed -n \ |
b4e70030 JB |
1141 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1142 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1143 | ;; | |
bec39cab | 1144 | *) |
b4e70030 JB |
1145 | sed -n \ |
1146 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 1147 | ;; |
b4e70030 JB |
1148 | esac; |
1149 | } | |
bec39cab AC |
1150 | echo |
1151 | ||
1152 | cat <<\_ASBOX | |
1153 | ## ----------------- ## | |
1154 | ## Output variables. ## | |
1155 | ## ----------------- ## | |
1156 | _ASBOX | |
1157 | echo | |
1158 | for ac_var in $ac_subst_vars | |
1159 | do | |
b4e70030 JB |
1160 | eval ac_val=$`echo $ac_var` |
1161 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1162 | done | sort |
1163 | echo | |
1164 | ||
1165 | if test -n "$ac_subst_files"; then | |
1166 | cat <<\_ASBOX | |
b4e70030 JB |
1167 | ## ------------- ## |
1168 | ## Output files. ## | |
1169 | ## ------------- ## | |
bec39cab AC |
1170 | _ASBOX |
1171 | echo | |
1172 | for ac_var in $ac_subst_files | |
1173 | do | |
b4e70030 JB |
1174 | eval ac_val=$`echo $ac_var` |
1175 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1176 | done | sort |
1177 | echo | |
1178 | fi | |
1179 | ||
1180 | if test -s confdefs.h; then | |
1181 | cat <<\_ASBOX | |
1182 | ## ----------- ## | |
1183 | ## confdefs.h. ## | |
1184 | ## ----------- ## | |
1185 | _ASBOX | |
1186 | echo | |
b4e70030 | 1187 | sed "/^$/d" confdefs.h | sort |
bec39cab | 1188 | echo |
3ace7edb | 1189 | fi |
bec39cab AC |
1190 | test "$ac_signal" != 0 && |
1191 | echo "$as_me: caught signal $ac_signal" | |
1192 | echo "$as_me: exit $exit_status" | |
1193 | } >&5 | |
b4e70030 JB |
1194 | rm -f core *.core && |
1195 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1196 | exit $exit_status |
b4e70030 | 1197 | ' 0 |
bec39cab AC |
1198 | for ac_signal in 1 2 13 15; do |
1199 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1200 | done | |
1201 | ac_signal=0 | |
1202 | ||
1203 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
b4e70030 JB |
1204 | rm -rf conftest* confdefs.h |
1205 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1206 | echo >confdefs.h | |
bec39cab AC |
1207 | |
1208 | # Predefined preprocessor variables. | |
1209 | ||
1210 | cat >>confdefs.h <<_ACEOF | |
1211 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1212 | _ACEOF | |
1213 | ||
1214 | ||
1215 | cat >>confdefs.h <<_ACEOF | |
1216 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1217 | _ACEOF | |
1218 | ||
1219 | ||
1220 | cat >>confdefs.h <<_ACEOF | |
1221 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1222 | _ACEOF | |
1223 | ||
1224 | ||
1225 | cat >>confdefs.h <<_ACEOF | |
1226 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1227 | _ACEOF | |
1228 | ||
1229 | ||
1230 | cat >>confdefs.h <<_ACEOF | |
1231 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1232 | _ACEOF | |
1233 | ||
1234 | ||
1235 | # Let the site file select an alternate cache file if it wants to. | |
1236 | # Prefer explicitly selected file to automatically selected ones. | |
b4e70030 JB |
1237 | if test -z "$CONFIG_SITE"; then |
1238 | if test "x$prefix" != xNONE; then | |
1239 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1240 | else | |
1241 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1242 | fi | |
c906108c | 1243 | fi |
b4e70030 | 1244 | for ac_site_file in $CONFIG_SITE; do |
c906108c | 1245 | if test -r "$ac_site_file"; then |
bec39cab AC |
1246 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1247 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1248 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1249 | . "$ac_site_file" |
1250 | fi | |
1251 | done | |
1252 | ||
1253 | if test -r "$cache_file"; then | |
bec39cab AC |
1254 | # Some versions of bash will fail to source /dev/null (special |
1255 | # files actually), so we avoid doing that. | |
1256 | if test -f "$cache_file"; then | |
1257 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1258 | echo "$as_me: loading cache $cache_file" >&6;} | |
1259 | case $cache_file in | |
1260 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1261 | *) . ./$cache_file;; | |
1262 | esac | |
1263 | fi | |
c906108c | 1264 | else |
bec39cab AC |
1265 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1266 | echo "$as_me: creating cache $cache_file" >&6;} | |
1267 | >$cache_file | |
1268 | fi | |
1269 | ||
1270 | # Check that the precious variables saved in the cache have kept the same | |
1271 | # value. | |
1272 | ac_cache_corrupted=false | |
b4e70030 JB |
1273 | for ac_var in `(set) 2>&1 | |
1274 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
bec39cab AC |
1275 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1276 | eval ac_new_set=\$ac_env_${ac_var}_set | |
b4e70030 JB |
1277 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1278 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
bec39cab AC |
1279 | case $ac_old_set,$ac_new_set in |
1280 | set,) | |
1281 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1282 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1283 | ac_cache_corrupted=: ;; | |
1284 | ,set) | |
1285 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1286 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1287 | ac_cache_corrupted=: ;; | |
1288 | ,);; | |
1289 | *) | |
1290 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1291 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1292 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1293 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1294 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1295 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1296 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1297 | ac_cache_corrupted=: | |
1298 | fi;; | |
1299 | esac | |
1300 | # Pass precious variables to config.status. | |
1301 | if test "$ac_new_set" = set; then | |
1302 | case $ac_new_val in | |
b4e70030 JB |
1303 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1304 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1305 | *) ac_arg=$ac_var=$ac_new_val ;; |
1306 | esac | |
1307 | case " $ac_configure_args " in | |
1308 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1309 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1310 | esac | |
1311 | fi | |
1312 | done | |
1313 | if $ac_cache_corrupted; then | |
1314 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1315 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1316 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1317 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1318 | { (exit 1); exit 1; }; } | |
c906108c SS |
1319 | fi |
1320 | ||
b4e70030 JB |
1321 | ac_ext=c |
1322 | ac_cpp='$CPP $CPPFLAGS' | |
1323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1326 | |
1327 | ||
bec39cab AC |
1328 | |
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | ||
1343 | ||
bec39cab | 1344 | |
b4e70030 JB |
1345 | ac_config_headers="$ac_config_headers config.h:config.in" |
1346 | ||
1347 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1348 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1349 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
413ccac7 | 1350 | if test "${enable_maintainer_mode+set}" = set; then |
b4e70030 JB |
1351 | enableval="$enable_maintainer_mode" |
1352 | USE_MAINTAINER_MODE=$enableval | |
413ccac7 AC |
1353 | else |
1354 | USE_MAINTAINER_MODE=no | |
b4e70030 JB |
1355 | fi; |
1356 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1357 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1358 | |
413ccac7 AC |
1359 | |
1360 | if test $USE_MAINTAINER_MODE = yes; then | |
1361 | MAINTAINER_MODE_TRUE= | |
1362 | MAINTAINER_MODE_FALSE='#' | |
1363 | else | |
1364 | MAINTAINER_MODE_TRUE='#' | |
1365 | MAINTAINER_MODE_FALSE= | |
1366 | fi | |
85981d60 | 1367 | |
413ccac7 | 1368 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1369 | |
c906108c | 1370 | |
bec39cab AC |
1371 | |
1372 | ac_ext=c | |
1373 | ac_cpp='$CPP $CPPFLAGS' | |
1374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1377 | if test -n "$ac_tool_prefix"; then | |
1378 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1379 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b4e70030 JB |
1380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1382 | if test "${ac_cv_prog_CC+set}" = set; then |
1383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1384 | else | |
1385 | if test -n "$CC"; then | |
1386 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1387 | else | |
1388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1389 | for as_dir in $PATH | |
1390 | do | |
1391 | IFS=$as_save_IFS | |
1392 | test -z "$as_dir" && as_dir=. | |
1393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1395 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1397 | break 2 | |
1398 | fi | |
1399 | done | |
1400 | done | |
1401 | ||
1402 | fi | |
1403 | fi | |
1404 | CC=$ac_cv_prog_CC | |
1405 | if test -n "$CC"; then | |
b4e70030 JB |
1406 | echo "$as_me:$LINENO: result: $CC" >&5 |
1407 | echo "${ECHO_T}$CC" >&6 | |
bec39cab | 1408 | else |
b4e70030 JB |
1409 | echo "$as_me:$LINENO: result: no" >&5 |
1410 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1411 | fi |
1412 | ||
1413 | fi | |
1414 | if test -z "$ac_cv_prog_CC"; then | |
1415 | ac_ct_CC=$CC | |
1416 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1417 | set dummy gcc; ac_word=$2 |
b4e70030 JB |
1418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1420 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1422 | else | |
1423 | if test -n "$ac_ct_CC"; then | |
1424 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1425 | else | |
1426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1427 | for as_dir in $PATH | |
1428 | do | |
1429 | IFS=$as_save_IFS | |
1430 | test -z "$as_dir" && as_dir=. | |
1431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1433 | ac_cv_prog_ac_ct_CC="gcc" |
1434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1435 | break 2 | |
1436 | fi | |
1437 | done | |
1438 | done | |
1439 | ||
1440 | fi | |
1441 | fi | |
1442 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1443 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1444 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1445 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1446 | else |
b4e70030 JB |
1447 | echo "$as_me:$LINENO: result: no" >&5 |
1448 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1449 | fi |
1450 | ||
b4e70030 | 1451 | CC=$ac_ct_CC |
bec39cab AC |
1452 | else |
1453 | CC="$ac_cv_prog_CC" | |
1454 | fi | |
1455 | ||
1456 | if test -z "$CC"; then | |
b4e70030 JB |
1457 | if test -n "$ac_tool_prefix"; then |
1458 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1459 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b4e70030 JB |
1460 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1462 | if test "${ac_cv_prog_CC+set}" = set; then |
1463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1464 | else |
1465 | if test -n "$CC"; then | |
1466 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1467 | else | |
bec39cab AC |
1468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1469 | for as_dir in $PATH | |
1470 | do | |
1471 | IFS=$as_save_IFS | |
1472 | test -z "$as_dir" && as_dir=. | |
1473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1475 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1477 | break 2 | |
1478 | fi | |
1479 | done | |
1480 | done | |
1481 | ||
c906108c SS |
1482 | fi |
1483 | fi | |
bec39cab | 1484 | CC=$ac_cv_prog_CC |
c906108c | 1485 | if test -n "$CC"; then |
b4e70030 JB |
1486 | echo "$as_me:$LINENO: result: $CC" >&5 |
1487 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1488 | else |
b4e70030 JB |
1489 | echo "$as_me:$LINENO: result: no" >&5 |
1490 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1491 | fi |
1492 | ||
b4e70030 JB |
1493 | fi |
1494 | if test -z "$ac_cv_prog_CC"; then | |
1495 | ac_ct_CC=$CC | |
1496 | # Extract the first word of "cc", so it can be a program name with args. | |
1497 | set dummy cc; ac_word=$2 | |
1498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1500 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1502 | else | |
1503 | if test -n "$ac_ct_CC"; then | |
1504 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1505 | else | |
1506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1507 | for as_dir in $PATH | |
1508 | do | |
1509 | IFS=$as_save_IFS | |
1510 | test -z "$as_dir" && as_dir=. | |
1511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1513 | ac_cv_prog_ac_ct_CC="cc" | |
1514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1515 | break 2 | |
4e8d927d | 1516 | fi |
b4e70030 JB |
1517 | done |
1518 | done | |
1519 | ||
1520 | fi | |
1521 | fi | |
1522 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1523 | if test -n "$ac_ct_CC"; then | |
1524 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1525 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1526 | else | |
1527 | echo "$as_me:$LINENO: result: no" >&5 | |
1528 | echo "${ECHO_T}no" >&6 | |
1529 | fi | |
1530 | ||
1531 | CC=$ac_ct_CC | |
1532 | else | |
1533 | CC="$ac_cv_prog_CC" | |
1534 | fi | |
1535 | ||
bec39cab | 1536 | fi |
c906108c SS |
1537 | if test -z "$CC"; then |
1538 | # Extract the first word of "cc", so it can be a program name with args. | |
1539 | set dummy cc; ac_word=$2 | |
b4e70030 JB |
1540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1542 | if test "${ac_cv_prog_CC+set}" = set; then |
1543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1544 | else |
1545 | if test -n "$CC"; then | |
1546 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1547 | else | |
c906108c | 1548 | ac_prog_rejected=no |
bec39cab AC |
1549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1550 | for as_dir in $PATH | |
1551 | do | |
1552 | IFS=$as_save_IFS | |
1553 | test -z "$as_dir" && as_dir=. | |
1554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1555 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1556 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1557 | ac_prog_rejected=yes | |
1558 | continue | |
1559 | fi | |
1560 | ac_cv_prog_CC="cc" | |
1561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1562 | break 2 | |
1563 | fi | |
1564 | done | |
1565 | done | |
1566 | ||
c906108c SS |
1567 | if test $ac_prog_rejected = yes; then |
1568 | # We found a bogon in the path, so make sure we never use it. | |
1569 | set dummy $ac_cv_prog_CC | |
1570 | shift | |
bec39cab | 1571 | if test $# != 0; then |
c906108c SS |
1572 | # We chose a different compiler from the bogus one. |
1573 | # However, it has the same basename, so the bogon will be chosen | |
1574 | # first if we set CC to just the basename; use the full file name. | |
1575 | shift | |
bec39cab | 1576 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1577 | fi |
1578 | fi | |
1579 | fi | |
1580 | fi | |
bec39cab | 1581 | CC=$ac_cv_prog_CC |
c906108c | 1582 | if test -n "$CC"; then |
b4e70030 JB |
1583 | echo "$as_me:$LINENO: result: $CC" >&5 |
1584 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1585 | else |
b4e70030 JB |
1586 | echo "$as_me:$LINENO: result: no" >&5 |
1587 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1588 | fi |
1589 | ||
bec39cab AC |
1590 | fi |
1591 | if test -z "$CC"; then | |
1592 | if test -n "$ac_tool_prefix"; then | |
b4e70030 | 1593 | for ac_prog in cl |
bec39cab AC |
1594 | do |
1595 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1596 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b4e70030 JB |
1597 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1599 | if test "${ac_cv_prog_CC+set}" = set; then |
1600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1601 | else |
1602 | if test -n "$CC"; then | |
1603 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1604 | else | |
bec39cab AC |
1605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1606 | for as_dir in $PATH | |
1607 | do | |
1608 | IFS=$as_save_IFS | |
1609 | test -z "$as_dir" && as_dir=. | |
1610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1611 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1612 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1614 | break 2 | |
1615 | fi | |
1616 | done | |
1617 | done | |
1618 | ||
c906108c SS |
1619 | fi |
1620 | fi | |
bec39cab | 1621 | CC=$ac_cv_prog_CC |
c906108c | 1622 | if test -n "$CC"; then |
b4e70030 JB |
1623 | echo "$as_me:$LINENO: result: $CC" >&5 |
1624 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1625 | else |
b4e70030 JB |
1626 | echo "$as_me:$LINENO: result: no" >&5 |
1627 | echo "${ECHO_T}no" >&6 | |
c906108c | 1628 | fi |
bec39cab AC |
1629 | |
1630 | test -n "$CC" && break | |
1631 | done | |
1632 | fi | |
1633 | if test -z "$CC"; then | |
1634 | ac_ct_CC=$CC | |
b4e70030 | 1635 | for ac_prog in cl |
bec39cab AC |
1636 | do |
1637 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1638 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
1639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1641 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1643 | else | |
1644 | if test -n "$ac_ct_CC"; then | |
1645 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1646 | else | |
1647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1648 | for as_dir in $PATH | |
1649 | do | |
1650 | IFS=$as_save_IFS | |
1651 | test -z "$as_dir" && as_dir=. | |
1652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1654 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1656 | break 2 | |
c906108c | 1657 | fi |
bec39cab AC |
1658 | done |
1659 | done | |
1660 | ||
1661 | fi | |
1662 | fi | |
1663 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1664 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1665 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1666 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1667 | else |
b4e70030 JB |
1668 | echo "$as_me:$LINENO: result: no" >&5 |
1669 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1670 | fi |
1671 | ||
bec39cab AC |
1672 | test -n "$ac_ct_CC" && break |
1673 | done | |
c906108c | 1674 | |
b4e70030 | 1675 | CC=$ac_ct_CC |
bec39cab AC |
1676 | fi |
1677 | ||
1678 | fi | |
1679 | ||
1680 | ||
1681 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1682 | See \`config.log' for more details." >&5 | |
1683 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1684 | See \`config.log' for more details." >&2;} | |
1685 | { (exit 1); exit 1; }; } | |
1686 | ||
1687 | # Provide some information about the compiler. | |
b4e70030 JB |
1688 | echo "$as_me:$LINENO:" \ |
1689 | "checking for C compiler version" >&5 | |
bec39cab | 1690 | ac_compiler=`set X $ac_compile; echo $2` |
b4e70030 JB |
1691 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1692 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
bec39cab AC |
1693 | ac_status=$? |
1694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1695 | (exit $ac_status); } | |
b4e70030 JB |
1696 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1697 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
bec39cab AC |
1698 | ac_status=$? |
1699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1700 | (exit $ac_status); } | |
b4e70030 JB |
1701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1702 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
bec39cab AC |
1703 | ac_status=$? |
1704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1705 | (exit $ac_status); } | |
1706 | ||
1707 | cat >conftest.$ac_ext <<_ACEOF | |
1708 | /* confdefs.h. */ | |
1709 | _ACEOF | |
1710 | cat confdefs.h >>conftest.$ac_ext | |
1711 | cat >>conftest.$ac_ext <<_ACEOF | |
1712 | /* end confdefs.h. */ | |
1713 | ||
1714 | int | |
1715 | main () | |
1716 | { | |
1717 | ||
1718 | ; | |
1719 | return 0; | |
1720 | } | |
1721 | _ACEOF | |
1722 | ac_clean_files_save=$ac_clean_files | |
b4e70030 | 1723 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
bec39cab AC |
1724 | # Try to create an executable without -o first, disregard a.out. |
1725 | # It will help us diagnose broken compilers, and finding out an intuition | |
1726 | # of exeext. | |
b4e70030 JB |
1727 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1728 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
bec39cab AC |
1729 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1730 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1731 | (eval $ac_link_default) 2>&5 | |
1732 | ac_status=$? | |
1733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1734 | (exit $ac_status); }; then | |
b4e70030 JB |
1735 | # Find the output, starting from the most likely. This scheme is |
1736 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1737 | # resort. | |
1738 | ||
1739 | # Be careful to initialize this variable, since it used to be cached. | |
1740 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1741 | ac_cv_exeext= | |
1742 | # b.out is created by i960 compilers. | |
1743 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
bec39cab AC |
1744 | do |
1745 | test -f "$ac_file" || continue | |
1746 | case $ac_file in | |
b4e70030 JB |
1747 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1748 | ;; | |
1749 | conftest.$ac_ext ) | |
1750 | # This is the source file. | |
1751 | ;; | |
1752 | [ab].out ) | |
1753 | # We found the default executable, but exeext='' is most | |
1754 | # certainly right. | |
1755 | break;; | |
1756 | *.* ) | |
1757 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1758 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1759 | # but it would be cool to find out if it's true. Does anybody | |
1760 | # maintain Libtool? --akim. | |
1761 | export ac_cv_exeext | |
1762 | break;; | |
1763 | * ) | |
1764 | break;; | |
bec39cab AC |
1765 | esac |
1766 | done | |
1767 | else | |
1768 | echo "$as_me: failed program was:" >&5 | |
1769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1770 | ||
1771 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1772 | See \`config.log' for more details." >&5 | |
1773 | echo "$as_me: error: C compiler cannot create executables | |
1774 | See \`config.log' for more details." >&2;} | |
1775 | { (exit 77); exit 77; }; } | |
1776 | fi | |
1777 | ||
b4e70030 JB |
1778 | ac_exeext=$ac_cv_exeext |
1779 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1780 | echo "${ECHO_T}$ac_file" >&6 | |
1781 | ||
1782 | # Check the compiler produces executables we can run. If not, either | |
bec39cab | 1783 | # the compiler is broken, or we cross compile. |
b4e70030 JB |
1784 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1785 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
bec39cab AC |
1786 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1787 | # If not cross compiling, check that we can run a simple program. | |
1788 | if test "$cross_compiling" != yes; then | |
1789 | if { ac_try='./$ac_file' | |
1790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1791 | (eval $ac_try) 2>&5 | |
1792 | ac_status=$? | |
1793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1794 | (exit $ac_status); }; }; then | |
1795 | cross_compiling=no | |
c906108c | 1796 | else |
bec39cab AC |
1797 | if test "$cross_compiling" = maybe; then |
1798 | cross_compiling=yes | |
1799 | else | |
1800 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1801 | If you meant to cross compile, use \`--host'. | |
1802 | See \`config.log' for more details." >&5 | |
1803 | echo "$as_me: error: cannot run C compiled programs. | |
1804 | If you meant to cross compile, use \`--host'. | |
1805 | See \`config.log' for more details." >&2;} | |
1806 | { (exit 1); exit 1; }; } | |
1807 | fi | |
c906108c | 1808 | fi |
bec39cab | 1809 | fi |
b4e70030 JB |
1810 | echo "$as_me:$LINENO: result: yes" >&5 |
1811 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 1812 | |
b4e70030 JB |
1813 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1814 | ac_clean_files=$ac_clean_files_save | |
1815 | # Check the compiler produces executables we can run. If not, either | |
1816 | # the compiler is broken, or we cross compile. | |
1817 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1818 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1819 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1820 | echo "${ECHO_T}$cross_compiling" >&6 | |
4e8d927d | 1821 | |
b4e70030 JB |
1822 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1823 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
bec39cab AC |
1825 | (eval $ac_link) 2>&5 |
1826 | ac_status=$? | |
1827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1828 | (exit $ac_status); }; then | |
b4e70030 JB |
1829 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1830 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1831 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1832 | # `rm'. | |
1833 | for ac_file in conftest.exe conftest conftest.*; do | |
1834 | test -f "$ac_file" || continue | |
1835 | case $ac_file in | |
1836 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1837 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1838 | export ac_cv_exeext | |
1839 | break;; | |
1840 | * ) break;; | |
1841 | esac | |
1842 | done | |
c906108c | 1843 | else |
bec39cab AC |
1844 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1845 | See \`config.log' for more details." >&5 | |
1846 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1847 | See \`config.log' for more details." >&2;} | |
1848 | { (exit 1); exit 1; }; } | |
c906108c | 1849 | fi |
c906108c | 1850 | |
b4e70030 JB |
1851 | rm -f conftest$ac_cv_exeext |
1852 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1853 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1854 | |
b4e70030 | 1855 | rm -f conftest.$ac_ext |
bec39cab AC |
1856 | EXEEXT=$ac_cv_exeext |
1857 | ac_exeext=$EXEEXT | |
b4e70030 JB |
1858 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1859 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
bec39cab AC |
1860 | if test "${ac_cv_objext+set}" = set; then |
1861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1862 | else | |
b4e70030 JB |
1863 | cat >conftest.$ac_ext <<_ACEOF |
1864 | /* confdefs.h. */ | |
1865 | _ACEOF | |
1866 | cat confdefs.h >>conftest.$ac_ext | |
1867 | cat >>conftest.$ac_ext <<_ACEOF | |
1868 | /* end confdefs.h. */ | |
1869 | ||
1870 | int | |
1871 | main () | |
1872 | { | |
1873 | ||
1874 | ; | |
1875 | return 0; | |
1876 | } | |
1877 | _ACEOF | |
1878 | rm -f conftest.o conftest.obj | |
bec39cab AC |
1879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1880 | (eval $ac_compile) 2>&5 | |
1881 | ac_status=$? | |
1882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1883 | (exit $ac_status); }; then | |
b4e70030 | 1884 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
bec39cab | 1885 | case $ac_file in |
b4e70030 | 1886 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
bec39cab AC |
1887 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1888 | break;; | |
1889 | esac | |
1890 | done | |
c906108c | 1891 | else |
bec39cab AC |
1892 | echo "$as_me: failed program was:" >&5 |
1893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1894 | ||
1895 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1896 | See \`config.log' for more details." >&5 | |
1897 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1898 | See \`config.log' for more details." >&2;} | |
1899 | { (exit 1); exit 1; }; } | |
c906108c SS |
1900 | fi |
1901 | ||
b4e70030 | 1902 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
bec39cab | 1903 | fi |
b4e70030 JB |
1904 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1905 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
bec39cab AC |
1906 | OBJEXT=$ac_cv_objext |
1907 | ac_objext=$OBJEXT | |
b4e70030 JB |
1908 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1909 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
bec39cab AC |
1910 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1912 | else |
bec39cab AC |
1913 | cat >conftest.$ac_ext <<_ACEOF |
1914 | /* confdefs.h. */ | |
1915 | _ACEOF | |
1916 | cat confdefs.h >>conftest.$ac_ext | |
1917 | cat >>conftest.$ac_ext <<_ACEOF | |
1918 | /* end confdefs.h. */ | |
1919 | ||
1920 | int | |
1921 | main () | |
1922 | { | |
1923 | #ifndef __GNUC__ | |
1924 | choke me | |
1925 | #endif | |
1926 | ||
1927 | ; | |
1928 | return 0; | |
1929 | } | |
1930 | _ACEOF | |
1931 | rm -f conftest.$ac_objext | |
1932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1933 | (eval $ac_compile) 2>conftest.er1 | |
1934 | ac_status=$? | |
1935 | grep -v '^ *+' conftest.er1 >conftest.err | |
1936 | rm -f conftest.er1 | |
1937 | cat conftest.err >&5 | |
1938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1939 | (exit $ac_status); } && | |
b4e70030 JB |
1940 | { ac_try='test -z "$ac_c_werror_flag" |
1941 | || test ! -s conftest.err' | |
bec39cab AC |
1942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1943 | (eval $ac_try) 2>&5 | |
1944 | ac_status=$? | |
1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1946 | (exit $ac_status); }; } && | |
1947 | { ac_try='test -s conftest.$ac_objext' | |
1948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1949 | (eval $ac_try) 2>&5 | |
1950 | ac_status=$? | |
1951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1952 | (exit $ac_status); }; }; then | |
1953 | ac_compiler_gnu=yes | |
1954 | else | |
1955 | echo "$as_me: failed program was:" >&5 | |
1956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1957 | ||
b4e70030 | 1958 | ac_compiler_gnu=no |
bec39cab AC |
1959 | fi |
1960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1961 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1962 | ||
1963 | fi | |
b4e70030 JB |
1964 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1965 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
bec39cab AC |
1966 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1967 | ac_test_CFLAGS=${CFLAGS+set} | |
1968 | ac_save_CFLAGS=$CFLAGS | |
b4e70030 JB |
1969 | CFLAGS="-g" |
1970 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1971 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
bec39cab AC |
1972 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1974 | else | |
b4e70030 | 1975 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
1976 | /* confdefs.h. */ |
1977 | _ACEOF | |
1978 | cat confdefs.h >>conftest.$ac_ext | |
1979 | cat >>conftest.$ac_ext <<_ACEOF | |
1980 | /* end confdefs.h. */ | |
1981 | ||
1982 | int | |
1983 | main () | |
1984 | { | |
1985 | ||
1986 | ; | |
1987 | return 0; | |
1988 | } | |
1989 | _ACEOF | |
1990 | rm -f conftest.$ac_objext | |
1991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1992 | (eval $ac_compile) 2>conftest.er1 | |
1993 | ac_status=$? | |
1994 | grep -v '^ *+' conftest.er1 >conftest.err | |
1995 | rm -f conftest.er1 | |
1996 | cat conftest.err >&5 | |
1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1998 | (exit $ac_status); } && | |
b4e70030 JB |
1999 | { ac_try='test -z "$ac_c_werror_flag" |
2000 | || test ! -s conftest.err' | |
bec39cab AC |
2001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2002 | (eval $ac_try) 2>&5 | |
2003 | ac_status=$? | |
2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2005 | (exit $ac_status); }; } && | |
2006 | { ac_try='test -s conftest.$ac_objext' | |
2007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2008 | (eval $ac_try) 2>&5 | |
2009 | ac_status=$? | |
2010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2011 | (exit $ac_status); }; }; then | |
c906108c SS |
2012 | ac_cv_prog_cc_g=yes |
2013 | else | |
bec39cab AC |
2014 | echo "$as_me: failed program was:" >&5 |
2015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2016 | |
b4e70030 | 2017 | ac_cv_prog_cc_g=no |
4e8d927d | 2018 | fi |
bec39cab AC |
2019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2020 | fi | |
b4e70030 JB |
2021 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2022 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2023 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2024 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2025 | elif test $ac_cv_prog_cc_g = yes; then |
2026 | if test "$GCC" = yes; then | |
2027 | CFLAGS="-g -O2" | |
2028 | else | |
2029 | CFLAGS="-g" | |
2030 | fi | |
2031 | else | |
2032 | if test "$GCC" = yes; then | |
2033 | CFLAGS="-O2" | |
2034 | else | |
2035 | CFLAGS= | |
2036 | fi | |
2037 | fi | |
b4e70030 JB |
2038 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2039 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2040 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
bec39cab AC |
2041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2042 | else | |
b4e70030 | 2043 | ac_cv_prog_cc_stdc=no |
bec39cab AC |
2044 | ac_save_CC=$CC |
2045 | cat >conftest.$ac_ext <<_ACEOF | |
2046 | /* confdefs.h. */ | |
2047 | _ACEOF | |
2048 | cat confdefs.h >>conftest.$ac_ext | |
2049 | cat >>conftest.$ac_ext <<_ACEOF | |
2050 | /* end confdefs.h. */ | |
c906108c SS |
2051 | #include <stdarg.h> |
2052 | #include <stdio.h> | |
2053 | #include <sys/types.h> | |
2054 | #include <sys/stat.h> | |
2055 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2056 | struct buf { int x; }; | |
2057 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2058 | static char *e (p, i) | |
2059 | char **p; | |
2060 | int i; | |
2061 | { | |
2062 | return p[i]; | |
2063 | } | |
2064 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2065 | { | |
2066 | char *s; | |
2067 | va_list v; | |
2068 | va_start (v,p); | |
2069 | s = g (p, va_arg (v,int)); | |
2070 | va_end (v); | |
2071 | return s; | |
2072 | } | |
bec39cab AC |
2073 | |
2074 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2075 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2076 | These don't provoke an error unfortunately, instead are silently treated | |
b4e70030 | 2077 | as 'x'. The following induces an error, until -std1 is added to get |
bec39cab AC |
2078 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2079 | array size at least. It's necessary to write '\x00'==0 to get something | |
b4e70030 | 2080 | that's true only with -std1. */ |
bec39cab AC |
2081 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2082 | ||
c906108c SS |
2083 | int test (int i, double x); |
2084 | struct s1 {int (*f) (int a);}; | |
2085 | struct s2 {int (*f) (double a);}; | |
2086 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2087 | int argc; | |
2088 | char **argv; | |
bec39cab AC |
2089 | int |
2090 | main () | |
2091 | { | |
c906108c | 2092 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2093 | ; |
2094 | return 0; | |
2095 | } | |
2096 | _ACEOF | |
b4e70030 JB |
2097 | # Don't try gcc -ansi; that turns off useful extensions and |
2098 | # breaks some systems' header files. | |
2099 | # AIX -qlanglvl=ansi | |
2100 | # Ultrix and OSF/1 -std1 | |
2101 | # HP-UX 10.20 and later -Ae | |
2102 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2103 | # SVR4 -Xc -D__EXTENSIONS__ | |
2104 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2105 | do |
2106 | CC="$ac_save_CC $ac_arg" | |
2107 | rm -f conftest.$ac_objext | |
2108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2109 | (eval $ac_compile) 2>conftest.er1 | |
2110 | ac_status=$? | |
2111 | grep -v '^ *+' conftest.er1 >conftest.err | |
2112 | rm -f conftest.er1 | |
2113 | cat conftest.err >&5 | |
2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2115 | (exit $ac_status); } && | |
b4e70030 JB |
2116 | { ac_try='test -z "$ac_c_werror_flag" |
2117 | || test ! -s conftest.err' | |
bec39cab AC |
2118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2119 | (eval $ac_try) 2>&5 | |
2120 | ac_status=$? | |
2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2122 | (exit $ac_status); }; } && | |
2123 | { ac_try='test -s conftest.$ac_objext' | |
2124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2125 | (eval $ac_try) 2>&5 | |
2126 | ac_status=$? | |
2127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2128 | (exit $ac_status); }; }; then | |
b4e70030 JB |
2129 | ac_cv_prog_cc_stdc=$ac_arg |
2130 | break | |
c906108c | 2131 | else |
bec39cab AC |
2132 | echo "$as_me: failed program was:" >&5 |
2133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2134 | ||
c906108c | 2135 | fi |
bec39cab | 2136 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2137 | done |
b4e70030 | 2138 | rm -f conftest.$ac_ext conftest.$ac_objext |
bec39cab | 2139 | CC=$ac_save_CC |
c906108c SS |
2140 | |
2141 | fi | |
b4e70030 JB |
2142 | |
2143 | case "x$ac_cv_prog_cc_stdc" in | |
2144 | x|xno) | |
2145 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2146 | echo "${ECHO_T}none needed" >&6 ;; | |
bec39cab | 2147 | *) |
b4e70030 JB |
2148 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2149 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2150 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2151 | esac |
2152 | ||
b4e70030 JB |
2153 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2154 | # in C++ we need to declare it. In case someone uses the same compiler | |
2155 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2156 | # the declaration of exit, since it's the most demanding environment. | |
2157 | cat >conftest.$ac_ext <<_ACEOF | |
2158 | #ifndef __cplusplus | |
2159 | choke me | |
2160 | #endif | |
2161 | _ACEOF | |
2162 | rm -f conftest.$ac_objext | |
2163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2164 | (eval $ac_compile) 2>conftest.er1 | |
2165 | ac_status=$? | |
2166 | grep -v '^ *+' conftest.er1 >conftest.err | |
2167 | rm -f conftest.er1 | |
2168 | cat conftest.err >&5 | |
2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2170 | (exit $ac_status); } && | |
2171 | { ac_try='test -z "$ac_c_werror_flag" | |
2172 | || test ! -s conftest.err' | |
2173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2174 | (eval $ac_try) 2>&5 | |
2175 | ac_status=$? | |
2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2177 | (exit $ac_status); }; } && | |
2178 | { ac_try='test -s conftest.$ac_objext' | |
2179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2180 | (eval $ac_try) 2>&5 | |
2181 | ac_status=$? | |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); }; }; then | |
2184 | for ac_declaration in \ | |
2185 | '' \ | |
2186 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2187 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2188 | 'extern "C" void exit (int) throw ();' \ | |
2189 | 'extern "C" void exit (int);' \ | |
2190 | 'void exit (int);' | |
2191 | do | |
2192 | cat >conftest.$ac_ext <<_ACEOF | |
2193 | /* confdefs.h. */ | |
2194 | _ACEOF | |
2195 | cat confdefs.h >>conftest.$ac_ext | |
2196 | cat >>conftest.$ac_ext <<_ACEOF | |
2197 | /* end confdefs.h. */ | |
2198 | $ac_declaration | |
2199 | #include <stdlib.h> | |
2200 | int | |
2201 | main () | |
2202 | { | |
2203 | exit (42); | |
2204 | ; | |
2205 | return 0; | |
2206 | } | |
2207 | _ACEOF | |
2208 | rm -f conftest.$ac_objext | |
2209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2210 | (eval $ac_compile) 2>conftest.er1 | |
2211 | ac_status=$? | |
2212 | grep -v '^ *+' conftest.er1 >conftest.err | |
2213 | rm -f conftest.er1 | |
2214 | cat conftest.err >&5 | |
2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2216 | (exit $ac_status); } && | |
2217 | { ac_try='test -z "$ac_c_werror_flag" | |
2218 | || test ! -s conftest.err' | |
2219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2220 | (eval $ac_try) 2>&5 | |
2221 | ac_status=$? | |
2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2223 | (exit $ac_status); }; } && | |
2224 | { ac_try='test -s conftest.$ac_objext' | |
2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2226 | (eval $ac_try) 2>&5 | |
2227 | ac_status=$? | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); }; }; then | |
2230 | : | |
2231 | else | |
2232 | echo "$as_me: failed program was:" >&5 | |
2233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2234 | ||
2235 | continue | |
2236 | fi | |
2237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2238 | cat >conftest.$ac_ext <<_ACEOF | |
2239 | /* confdefs.h. */ | |
2240 | _ACEOF | |
2241 | cat confdefs.h >>conftest.$ac_ext | |
2242 | cat >>conftest.$ac_ext <<_ACEOF | |
2243 | /* end confdefs.h. */ | |
2244 | $ac_declaration | |
2245 | int | |
2246 | main () | |
2247 | { | |
2248 | exit (42); | |
2249 | ; | |
2250 | return 0; | |
2251 | } | |
2252 | _ACEOF | |
2253 | rm -f conftest.$ac_objext | |
2254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2255 | (eval $ac_compile) 2>conftest.er1 | |
2256 | ac_status=$? | |
2257 | grep -v '^ *+' conftest.er1 >conftest.err | |
2258 | rm -f conftest.er1 | |
2259 | cat conftest.err >&5 | |
2260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2261 | (exit $ac_status); } && | |
2262 | { ac_try='test -z "$ac_c_werror_flag" | |
2263 | || test ! -s conftest.err' | |
2264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2265 | (eval $ac_try) 2>&5 | |
2266 | ac_status=$? | |
2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2268 | (exit $ac_status); }; } && | |
2269 | { ac_try='test -s conftest.$ac_objext' | |
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2271 | (eval $ac_try) 2>&5 | |
2272 | ac_status=$? | |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2274 | (exit $ac_status); }; }; then | |
2275 | break | |
2276 | else | |
2277 | echo "$as_me: failed program was:" >&5 | |
2278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2279 | ||
2280 | fi | |
2281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2282 | done | |
2283 | rm -f conftest* | |
2284 | if test -n "$ac_declaration"; then | |
2285 | echo '#ifdef __cplusplus' >>confdefs.h | |
2286 | echo $ac_declaration >>confdefs.h | |
2287 | echo '#endif' >>confdefs.h | |
2288 | fi | |
2289 | ||
2290 | else | |
2291 | echo "$as_me: failed program was:" >&5 | |
2292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2293 | |
b4e70030 JB |
2294 | fi |
2295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
2296 | ac_ext=c |
2297 | ac_cpp='$CPP $CPPFLAGS' | |
2298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2301 | |
60ca704f | 2302 | |
bec39cab AC |
2303 | cat >>confdefs.h <<\_ACEOF |
2304 | #define _GNU_SOURCE 1 | |
2305 | _ACEOF | |
c906108c SS |
2306 | |
2307 | ||
8bb2c122 | 2308 | |
bec39cab AC |
2309 | ac_ext=c |
2310 | ac_cpp='$CPP $CPPFLAGS' | |
2311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4e70030 JB |
2314 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2315 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
bec39cab AC |
2316 | # On Suns, sometimes $CPP names a directory. |
2317 | if test -n "$CPP" && test -d "$CPP"; then | |
2318 | CPP= | |
8bb2c122 | 2319 | fi |
bec39cab AC |
2320 | if test -z "$CPP"; then |
2321 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2323 | else | |
2324 | # Double quotes because CPP needs to be expanded | |
2325 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2326 | do | |
2327 | ac_preproc_ok=false | |
2328 | for ac_c_preproc_warn_flag in '' yes | |
2329 | do | |
2330 | # Use a header file that comes with gcc, so configuring glibc | |
2331 | # with a fresh cross-compiler works. | |
2332 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2333 | # <limits.h> exists even on freestanding compilers. | |
2334 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2335 | # not just through cpp. "Syntax error" is here to catch this case. | |
2336 | cat >conftest.$ac_ext <<_ACEOF | |
2337 | /* confdefs.h. */ | |
2338 | _ACEOF | |
2339 | cat confdefs.h >>conftest.$ac_ext | |
2340 | cat >>conftest.$ac_ext <<_ACEOF | |
2341 | /* end confdefs.h. */ | |
2342 | #ifdef __STDC__ | |
2343 | # include <limits.h> | |
2344 | #else | |
2345 | # include <assert.h> | |
2346 | #endif | |
2347 | Syntax error | |
2348 | _ACEOF | |
2349 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2350 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2351 | ac_status=$? | |
2352 | grep -v '^ *+' conftest.er1 >conftest.err | |
2353 | rm -f conftest.er1 | |
2354 | cat conftest.err >&5 | |
2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2356 | (exit $ac_status); } >/dev/null; then | |
2357 | if test -s conftest.err; then | |
2358 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2360 | else | |
2361 | ac_cpp_err= | |
2362 | fi | |
8bb2c122 | 2363 | else |
bec39cab | 2364 | ac_cpp_err=yes |
8bb2c122 | 2365 | fi |
bec39cab AC |
2366 | if test -z "$ac_cpp_err"; then |
2367 | : | |
8bb2c122 | 2368 | else |
bec39cab AC |
2369 | echo "$as_me: failed program was:" >&5 |
2370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2371 | ||
2372 | # Broken: fails on valid input. | |
2373 | continue | |
2374 | fi | |
2375 | rm -f conftest.err conftest.$ac_ext | |
2376 | ||
b4e70030 | 2377 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2378 | # can be detected and how. |
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 <ac_nonexistent.h> | |
2386 | _ACEOF | |
2387 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2388 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2389 | ac_status=$? | |
2390 | grep -v '^ *+' conftest.er1 >conftest.err | |
2391 | rm -f conftest.er1 | |
2392 | cat conftest.err >&5 | |
2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2394 | (exit $ac_status); } >/dev/null; then | |
2395 | if test -s conftest.err; then | |
2396 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2397 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2398 | else | |
2399 | ac_cpp_err= | |
2400 | fi | |
8bb2c122 | 2401 | else |
bec39cab | 2402 | ac_cpp_err=yes |
8bb2c122 | 2403 | fi |
bec39cab AC |
2404 | if test -z "$ac_cpp_err"; then |
2405 | # Broken: success on invalid input. | |
2406 | continue | |
8bb2c122 | 2407 | else |
bec39cab AC |
2408 | echo "$as_me: failed program was:" >&5 |
2409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2410 | |
bec39cab AC |
2411 | # Passes both tests. |
2412 | ac_preproc_ok=: | |
2413 | break | |
8bb2c122 | 2414 | fi |
bec39cab | 2415 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2416 | |
bec39cab AC |
2417 | done |
2418 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2419 | rm -f conftest.err conftest.$ac_ext | |
2420 | if $ac_preproc_ok; then | |
2421 | break | |
2422 | fi | |
8bb2c122 | 2423 | |
bec39cab AC |
2424 | done |
2425 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2426 | |
c906108c | 2427 | fi |
bec39cab AC |
2428 | CPP=$ac_cv_prog_CPP |
2429 | else | |
2430 | ac_cv_prog_CPP=$CPP | |
c906108c | 2431 | fi |
b4e70030 JB |
2432 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2433 | echo "${ECHO_T}$CPP" >&6 | |
bec39cab AC |
2434 | ac_preproc_ok=false |
2435 | for ac_c_preproc_warn_flag in '' yes | |
2436 | do | |
2437 | # Use a header file that comes with gcc, so configuring glibc | |
2438 | # with a fresh cross-compiler works. | |
2439 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2440 | # <limits.h> exists even on freestanding compilers. | |
2441 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2442 | # not just through cpp. "Syntax error" is here to catch this case. | |
2443 | cat >conftest.$ac_ext <<_ACEOF | |
2444 | /* confdefs.h. */ | |
2445 | _ACEOF | |
2446 | cat confdefs.h >>conftest.$ac_ext | |
2447 | cat >>conftest.$ac_ext <<_ACEOF | |
2448 | /* end confdefs.h. */ | |
2449 | #ifdef __STDC__ | |
2450 | # include <limits.h> | |
2451 | #else | |
2452 | # include <assert.h> | |
2453 | #endif | |
2454 | Syntax error | |
2455 | _ACEOF | |
2456 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2457 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2458 | ac_status=$? | |
2459 | grep -v '^ *+' conftest.er1 >conftest.err | |
2460 | rm -f conftest.er1 | |
2461 | cat conftest.err >&5 | |
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2463 | (exit $ac_status); } >/dev/null; then | |
2464 | if test -s conftest.err; then | |
2465 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2466 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2467 | else | |
2468 | ac_cpp_err= | |
2469 | fi | |
c906108c | 2470 | else |
bec39cab | 2471 | ac_cpp_err=yes |
c906108c | 2472 | fi |
bec39cab AC |
2473 | if test -z "$ac_cpp_err"; then |
2474 | : | |
c906108c | 2475 | else |
bec39cab AC |
2476 | echo "$as_me: failed program was:" >&5 |
2477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2478 | ||
2479 | # Broken: fails on valid input. | |
2480 | continue | |
2481 | fi | |
2482 | rm -f conftest.err conftest.$ac_ext | |
2483 | ||
b4e70030 | 2484 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2485 | # can be detected and how. |
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 | #include <ac_nonexistent.h> | |
2493 | _ACEOF | |
2494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2496 | ac_status=$? | |
2497 | grep -v '^ *+' conftest.er1 >conftest.err | |
2498 | rm -f conftest.er1 | |
2499 | cat conftest.err >&5 | |
2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2501 | (exit $ac_status); } >/dev/null; then | |
2502 | if test -s conftest.err; then | |
2503 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2505 | else | |
2506 | ac_cpp_err= | |
2507 | fi | |
c906108c | 2508 | else |
bec39cab | 2509 | ac_cpp_err=yes |
c906108c | 2510 | fi |
bec39cab AC |
2511 | if test -z "$ac_cpp_err"; then |
2512 | # Broken: success on invalid input. | |
2513 | continue | |
c906108c | 2514 | else |
bec39cab AC |
2515 | echo "$as_me: failed program was:" >&5 |
2516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2517 | |
bec39cab AC |
2518 | # Passes both tests. |
2519 | ac_preproc_ok=: | |
2520 | break | |
c906108c | 2521 | fi |
bec39cab | 2522 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2523 | |
bec39cab AC |
2524 | done |
2525 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2526 | rm -f conftest.err conftest.$ac_ext | |
2527 | if $ac_preproc_ok; then | |
c906108c SS |
2528 | : |
2529 | else | |
bec39cab AC |
2530 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2531 | See \`config.log' for more details." >&5 | |
2532 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2533 | See \`config.log' for more details." >&2;} | |
2534 | { (exit 1); exit 1; }; } | |
c906108c | 2535 | fi |
c906108c | 2536 | |
bec39cab AC |
2537 | ac_ext=c |
2538 | ac_cpp='$CPP $CPPFLAGS' | |
2539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2542 | ||
2543 | ||
b4e70030 JB |
2544 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2545 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2546 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4e8d927d DJ |
2547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2548 | else | |
b4e70030 JB |
2549 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2550 | then ac_cv_prog_egrep='grep -E' | |
2551 | else ac_cv_prog_egrep='egrep' | |
bec39cab | 2552 | fi |
4e8d927d | 2553 | fi |
b4e70030 JB |
2554 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2555 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2556 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2557 | |
bec39cab AC |
2558 | |
2559 | ||
b4e70030 JB |
2560 | echo "$as_me:$LINENO: checking for AIX" >&5 |
2561 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
bec39cab AC |
2562 | cat >conftest.$ac_ext <<_ACEOF |
2563 | /* confdefs.h. */ | |
2564 | _ACEOF | |
2565 | cat confdefs.h >>conftest.$ac_ext | |
2566 | cat >>conftest.$ac_ext <<_ACEOF | |
2567 | /* end confdefs.h. */ | |
2568 | #ifdef _AIX | |
2569 | yes | |
2570 | #endif | |
2571 | ||
2572 | _ACEOF | |
c906108c | 2573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2574 | $EGREP "yes" >/dev/null 2>&1; then |
b4e70030 JB |
2575 | echo "$as_me:$LINENO: result: yes" >&5 |
2576 | echo "${ECHO_T}yes" >&6 | |
bec39cab AC |
2577 | cat >>confdefs.h <<\_ACEOF |
2578 | #define _ALL_SOURCE 1 | |
2579 | _ACEOF | |
2580 | ||
c906108c | 2581 | else |
b4e70030 JB |
2582 | echo "$as_me:$LINENO: result: no" >&5 |
2583 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2584 | fi |
2585 | rm -f conftest* | |
2586 | ||
c906108c | 2587 | |
b4e70030 JB |
2588 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2589 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
bec39cab AC |
2590 | if test "${ac_cv_search_strerror+set}" = set; then |
2591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2592 | else |
bec39cab | 2593 | ac_func_search_save_LIBS=$LIBS |
b4e70030 | 2594 | ac_cv_search_strerror=no |
bec39cab AC |
2595 | cat >conftest.$ac_ext <<_ACEOF |
2596 | /* confdefs.h. */ | |
2597 | _ACEOF | |
2598 | cat confdefs.h >>conftest.$ac_ext | |
2599 | cat >>conftest.$ac_ext <<_ACEOF | |
2600 | /* end confdefs.h. */ | |
c906108c | 2601 | |
b4e70030 | 2602 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
2603 | #ifdef __cplusplus |
2604 | extern "C" | |
2605 | #endif | |
b4e70030 JB |
2606 | /* We use char because int might match the return type of a gcc2 |
2607 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
2608 | char strerror (); |
2609 | int | |
2610 | main () | |
2611 | { | |
b4e70030 | 2612 | strerror (); |
bec39cab AC |
2613 | ; |
2614 | return 0; | |
2615 | } | |
2616 | _ACEOF | |
b4e70030 | 2617 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
2618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2619 | (eval $ac_link) 2>conftest.er1 | |
2620 | ac_status=$? | |
2621 | grep -v '^ *+' conftest.er1 >conftest.err | |
2622 | rm -f conftest.er1 | |
2623 | cat conftest.err >&5 | |
2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2625 | (exit $ac_status); } && | |
b4e70030 JB |
2626 | { ac_try='test -z "$ac_c_werror_flag" |
2627 | || test ! -s conftest.err' | |
bec39cab AC |
2628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2629 | (eval $ac_try) 2>&5 | |
2630 | ac_status=$? | |
2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2632 | (exit $ac_status); }; } && | |
2633 | { ac_try='test -s conftest$ac_exeext' | |
2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2635 | (eval $ac_try) 2>&5 | |
2636 | ac_status=$? | |
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2638 | (exit $ac_status); }; }; then | |
b4e70030 | 2639 | ac_cv_search_strerror="none required" |
c906108c | 2640 | else |
bec39cab AC |
2641 | echo "$as_me: failed program was:" >&5 |
2642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2643 | |
2644 | fi | |
bec39cab | 2645 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
2646 | conftest$ac_exeext conftest.$ac_ext |
2647 | if test "$ac_cv_search_strerror" = no; then | |
2648 | for ac_lib in cposix; do | |
2649 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2650 | cat >conftest.$ac_ext <<_ACEOF | |
2651 | /* confdefs.h. */ | |
2652 | _ACEOF | |
2653 | cat confdefs.h >>conftest.$ac_ext | |
2654 | cat >>conftest.$ac_ext <<_ACEOF | |
2655 | /* end confdefs.h. */ | |
2656 | ||
2657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2658 | #ifdef __cplusplus | |
2659 | extern "C" | |
2660 | #endif | |
2661 | /* We use char because int might match the return type of a gcc2 | |
2662 | builtin and then its argument prototype would still apply. */ | |
2663 | char strerror (); | |
2664 | int | |
2665 | main () | |
2666 | { | |
2667 | strerror (); | |
2668 | ; | |
2669 | return 0; | |
2670 | } | |
2671 | _ACEOF | |
2672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2674 | (eval $ac_link) 2>conftest.er1 | |
2675 | ac_status=$? | |
2676 | grep -v '^ *+' conftest.er1 >conftest.err | |
2677 | rm -f conftest.er1 | |
2678 | cat conftest.err >&5 | |
2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2680 | (exit $ac_status); } && | |
2681 | { ac_try='test -z "$ac_c_werror_flag" | |
2682 | || test ! -s conftest.err' | |
2683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2684 | (eval $ac_try) 2>&5 | |
2685 | ac_status=$? | |
2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2687 | (exit $ac_status); }; } && | |
2688 | { ac_try='test -s conftest$ac_exeext' | |
2689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2690 | (eval $ac_try) 2>&5 | |
2691 | ac_status=$? | |
2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2693 | (exit $ac_status); }; }; then | |
2694 | ac_cv_search_strerror="-l$ac_lib" | |
2695 | break | |
4e8d927d | 2696 | else |
b4e70030 JB |
2697 | echo "$as_me: failed program was:" >&5 |
2698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2699 | ||
2700 | fi | |
2701 | rm -f conftest.err conftest.$ac_objext \ | |
2702 | conftest$ac_exeext conftest.$ac_ext | |
2703 | done | |
c906108c | 2704 | fi |
bec39cab | 2705 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2706 | fi |
b4e70030 JB |
2707 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2708 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2709 | if test "$ac_cv_search_strerror" != no; then | |
2710 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
bec39cab | 2711 | |
c906108c SS |
2712 | fi |
2713 | ||
c906108c | 2714 | |
c906108c | 2715 | |
bec39cab | 2716 | |
b4e70030 JB |
2717 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
2718 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
bec39cab AC |
2719 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
2720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2721 | else |
bec39cab AC |
2722 | am_cv_prog_cc_stdc=no |
2723 | ac_save_CC="$CC" | |
2724 | # Don't try gcc -ansi; that turns off useful extensions and | |
2725 | # breaks some systems' header files. | |
2726 | # AIX -qlanglvl=ansi | |
2727 | # Ultrix and OSF/1 -std1 | |
2728 | # HP-UX 10.20 and later -Ae | |
2729 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2730 | # SVR4 -Xc -D__EXTENSIONS__ | |
2731 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2732 | do | |
2733 | CC="$ac_save_CC $ac_arg" | |
2734 | cat >conftest.$ac_ext <<_ACEOF | |
2735 | /* confdefs.h. */ | |
2736 | _ACEOF | |
2737 | cat confdefs.h >>conftest.$ac_ext | |
2738 | cat >>conftest.$ac_ext <<_ACEOF | |
2739 | /* end confdefs.h. */ | |
2740 | #include <stdarg.h> | |
2741 | #include <stdio.h> | |
2742 | #include <sys/types.h> | |
2743 | #include <sys/stat.h> | |
2744 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2745 | struct buf { int x; }; | |
2746 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2747 | static char *e (p, i) | |
2748 | char **p; | |
2749 | int i; | |
2750 | { | |
2751 | return p[i]; | |
2752 | } | |
2753 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2754 | { | |
2755 | char *s; | |
2756 | va_list v; | |
2757 | va_start (v,p); | |
2758 | s = g (p, va_arg (v,int)); | |
2759 | va_end (v); | |
2760 | return s; | |
2761 | } | |
2762 | int test (int i, double x); | |
2763 | struct s1 {int (*f) (int a);}; | |
2764 | struct s2 {int (*f) (double a);}; | |
2765 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2766 | int argc; | |
2767 | char **argv; | |
c906108c | 2768 | |
bec39cab AC |
2769 | int |
2770 | main () | |
2771 | { | |
c906108c | 2772 | |
bec39cab | 2773 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 2774 | |
bec39cab AC |
2775 | ; |
2776 | return 0; | |
2777 | } | |
2778 | _ACEOF | |
2779 | rm -f conftest.$ac_objext | |
2780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2781 | (eval $ac_compile) 2>conftest.er1 | |
2782 | ac_status=$? | |
2783 | grep -v '^ *+' conftest.er1 >conftest.err | |
2784 | rm -f conftest.er1 | |
2785 | cat conftest.err >&5 | |
2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2787 | (exit $ac_status); } && | |
b4e70030 JB |
2788 | { ac_try='test -z "$ac_c_werror_flag" |
2789 | || test ! -s conftest.err' | |
bec39cab AC |
2790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2791 | (eval $ac_try) 2>&5 | |
2792 | ac_status=$? | |
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2794 | (exit $ac_status); }; } && | |
2795 | { ac_try='test -s conftest.$ac_objext' | |
2796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2797 | (eval $ac_try) 2>&5 | |
2798 | ac_status=$? | |
2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2800 | (exit $ac_status); }; }; then | |
2801 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 2802 | else |
bec39cab AC |
2803 | echo "$as_me: failed program was:" >&5 |
2804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2805 | |
2806 | fi | |
bec39cab AC |
2807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2808 | done | |
2809 | CC="$ac_save_CC" | |
c906108c SS |
2810 | |
2811 | fi | |
2812 | ||
bec39cab | 2813 | if test -z "$am_cv_prog_cc_stdc"; then |
b4e70030 JB |
2814 | echo "$as_me:$LINENO: result: none needed" >&5 |
2815 | echo "${ECHO_T}none needed" >&6 | |
c906108c | 2816 | else |
b4e70030 JB |
2817 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
2818 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
c906108c | 2819 | fi |
bec39cab AC |
2820 | case "x$am_cv_prog_cc_stdc" in |
2821 | x|xno) ;; | |
2822 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2823 | esac | |
c906108c | 2824 | |
c906108c | 2825 | |
bec39cab AC |
2826 | ac_aux_dir= |
2827 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
2828 | if test -f $ac_dir/install-sh; then | |
2829 | ac_aux_dir=$ac_dir | |
2830 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2831 | break | |
2832 | elif test -f $ac_dir/install.sh; then | |
2833 | ac_aux_dir=$ac_dir | |
2834 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2835 | break | |
2836 | elif test -f $ac_dir/shtool; then | |
2837 | ac_aux_dir=$ac_dir | |
2838 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2839 | break | |
2840 | fi | |
2841 | done | |
2842 | if test -z "$ac_aux_dir"; then | |
2843 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
2844 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
2845 | { (exit 1); exit 1; }; } | |
c906108c | 2846 | fi |
bec39cab AC |
2847 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2848 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2849 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 2850 | |
bec39cab AC |
2851 | # Make sure we can run config.sub. |
2852 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2853 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2854 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2855 | { (exit 1); exit 1; }; } | |
2856 | ||
b4e70030 JB |
2857 | echo "$as_me:$LINENO: checking build system type" >&5 |
2858 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
bec39cab AC |
2859 | if test "${ac_cv_build+set}" = set; then |
2860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2861 | else | |
b4e70030 JB |
2862 | ac_cv_build_alias=$build_alias |
2863 | test -z "$ac_cv_build_alias" && | |
2864 | ac_cv_build_alias=`$ac_config_guess` | |
2865 | test -z "$ac_cv_build_alias" && | |
bec39cab AC |
2866 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2867 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2868 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
2869 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2870 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2871 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
bec39cab AC |
2872 | { (exit 1); exit 1; }; } |
2873 | ||
2874 | fi | |
b4e70030 JB |
2875 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2876 | echo "${ECHO_T}$ac_cv_build" >&6 | |
bec39cab | 2877 | build=$ac_cv_build |
b4e70030 JB |
2878 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2879 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2880 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2881 | |
2882 | ||
b4e70030 JB |
2883 | echo "$as_me:$LINENO: checking host system type" >&5 |
2884 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
bec39cab AC |
2885 | if test "${ac_cv_host+set}" = set; then |
2886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2887 | else | |
b4e70030 JB |
2888 | ac_cv_host_alias=$host_alias |
2889 | test -z "$ac_cv_host_alias" && | |
2890 | ac_cv_host_alias=$ac_cv_build_alias | |
2891 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2892 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2893 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
bec39cab AC |
2894 | { (exit 1); exit 1; }; } |
2895 | ||
2896 | fi | |
b4e70030 JB |
2897 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2898 | echo "${ECHO_T}$ac_cv_host" >&6 | |
bec39cab | 2899 | host=$ac_cv_host |
b4e70030 JB |
2900 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2901 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2902 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2903 | |
2904 | ||
b4e70030 JB |
2905 | echo "$as_me:$LINENO: checking target system type" >&5 |
2906 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
bec39cab AC |
2907 | if test "${ac_cv_target+set}" = set; then |
2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2909 | else | |
b4e70030 JB |
2910 | ac_cv_target_alias=$target_alias |
2911 | test "x$ac_cv_target_alias" = "x" && | |
2912 | ac_cv_target_alias=$ac_cv_host_alias | |
2913 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2914 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2915 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
bec39cab AC |
2916 | { (exit 1); exit 1; }; } |
2917 | ||
2918 | fi | |
b4e70030 JB |
2919 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2920 | echo "${ECHO_T}$ac_cv_target" >&6 | |
bec39cab | 2921 | target=$ac_cv_target |
b4e70030 JB |
2922 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2923 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2924 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2925 | |
c906108c | 2926 | |
bec39cab AC |
2927 | # The aliases save the names the user supplied, while $host etc. |
2928 | # will get canonicalized. | |
2929 | test -n "$target_alias" && | |
2930 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2931 | NONENONEs,x,x, && | |
2932 | program_prefix=${target_alias}- | |
c906108c | 2933 | |
c906108c | 2934 | |
bec39cab AC |
2935 | CONFIG_OBS= |
2936 | CONFIG_DEPS= | |
2937 | CONFIG_SRCS= | |
2938 | ENABLE_CFLAGS= | |
c906108c | 2939 | |
bec39cab AC |
2940 | CONFIG_ALL= |
2941 | CONFIG_CLEAN= | |
2942 | CONFIG_INSTALL= | |
2943 | CONFIG_UNINSTALL= | |
2944 | ||
20e95c23 DJ |
2945 | # If we haven't got the data from the intl directory, |
2946 | # assume NLS is disabled. | |
2947 | USE_NLS=no | |
2948 | LIBINTL= | |
2949 | LIBINTL_DEP= | |
2950 | INCINTL= | |
2951 | XGETTEXT= | |
2952 | GMSGFMT= | |
2953 | POSUB= | |
3841debe DJ |
2954 | |
2955 | if test -f ../intl/config.intl; then | |
2956 | . ../intl/config.intl | |
20e95c23 DJ |
2957 | fi |
2958 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
2959 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
2960 | if test x"$USE_NLS" != xyes; then | |
b4e70030 JB |
2961 | echo "$as_me:$LINENO: result: no" >&5 |
2962 | echo "${ECHO_T}no" >&6 | |
c906108c | 2963 | else |
20e95c23 DJ |
2964 | echo "$as_me:$LINENO: result: yes" >&5 |
2965 | echo "${ECHO_T}yes" >&6 | |
c906108c | 2966 | |
20e95c23 DJ |
2967 | cat >>confdefs.h <<\_ACEOF |
2968 | #define ENABLE_NLS 1 | |
bec39cab | 2969 | _ACEOF |
c906108c | 2970 | |
c906108c | 2971 | |
20e95c23 DJ |
2972 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
2973 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
2974 | # Look for .po and .gmo files in the source directory. | |
2975 | CATALOGS= | |
2976 | XLINGUAS= | |
2977 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
2978 | # If there aren't any .gmo files the shell will give us the | |
2979 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
2980 | # weeded out. | |
2981 | case "$cat" in *\**) | |
2982 | continue;; | |
2983 | esac | |
2984 | # The quadruple backslash is collapsed to a double backslash | |
2985 | # by the backticks, then collapsed again by the double quotes, | |
2986 | # leaving us with one backslash in the sed expression (right | |
2987 | # before the dot that mustn't act as a wildcard). | |
2988 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
2989 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
2990 | # The user is allowed to set LINGUAS to a list of languages to | |
2991 | # install catalogs for. If it's empty that means "all of them." | |
2992 | if test "x$LINGUAS" = x; then | |
2993 | CATALOGS="$CATALOGS $cat" | |
2994 | XLINGUAS="$XLINGUAS $lang" | |
2995 | else | |
2996 | case "$LINGUAS" in *$lang*) | |
2997 | CATALOGS="$CATALOGS $cat" | |
2998 | XLINGUAS="$XLINGUAS $lang" | |
2999 | ;; | |
3000 | esac | |
3001 | fi | |
3002 | done | |
3003 | LINGUAS="$XLINGUAS" | |
3004 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
3005 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c | 3006 | |
c906108c | 3007 | |
20e95c23 | 3008 | DATADIRNAME=share |
c906108c | 3009 | |
20e95c23 | 3010 | INSTOBJEXT=.mo |
c906108c | 3011 | |
20e95c23 DJ |
3012 | GENCAT=gencat |
3013 | ||
3014 | CATOBJEXT=.gmo | |
3015 | ||
3016 | fi | |
3017 | ||
3018 | localedir='${datadir}/locale' | |
c906108c | 3019 | |
bec39cab | 3020 | |
20e95c23 | 3021 | if test x"$USE_NLS" = xyes; then |
bec39cab AC |
3022 | CONFIG_ALL="$CONFIG_ALL all-po" |
3023 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
3024 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
3025 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
3026 | fi | |
3027 | ||
3028 | PACKAGE=gdb | |
3029 | ||
3030 | cat >>confdefs.h <<_ACEOF | |
3031 | #define PACKAGE "$PACKAGE" | |
3032 | _ACEOF | |
3033 | ||
3034 | ||
3035 | ||
3036 | debugdir=${libdir}/debug | |
3037 | ||
3038 | ||
b4e70030 | 3039 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
bec39cab | 3040 | if test "${with_separate_debug_dir+set}" = set; then |
b4e70030 JB |
3041 | withval="$with_separate_debug_dir" |
3042 | debugdir="${withval}" | |
3043 | fi; | |
bec39cab AC |
3044 | |
3045 | ||
3046 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
3047 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3048 | ac_define_dir=`eval echo $debugdir` | |
3049 | ac_define_dir=`eval echo $ac_define_dir` | |
3050 | ||
3051 | cat >>confdefs.h <<_ACEOF | |
3052 | #define DEBUGDIR "$ac_define_dir" | |
3053 | _ACEOF | |
3054 | ||
3055 | ||
3056 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
3057 | ||
aa28a74e DJ |
3058 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
3059 | if test "x$prefix" = xNONE; then | |
3060 | test_prefix=/usr/local | |
3061 | else | |
3062 | test_prefix=$prefix | |
3063 | fi | |
3064 | else | |
3065 | test_prefix=$exec_prefix | |
3066 | fi | |
3067 | case ${debugdir} in | |
3068 | "${test_prefix}"|"${test_prefix}/"*|\ | |
3069 | '${exec_prefix}'|'${exec_prefix}/'*) | |
3070 | ||
3071 | cat >>confdefs.h <<\_ACEOF | |
3072 | #define DEBUGDIR_RELOCATABLE 1 | |
3073 | _ACEOF | |
3074 | ||
3075 | ;; | |
3076 | esac | |
3077 | ||
b4e70030 JB |
3078 | |
3079 | ||
bec39cab AC |
3080 | subdirs="$subdirs doc testsuite" |
3081 | ||
3082 | ||
121ce6e5 DJ |
3083 | # Provide defaults for some variables set by the per-host and per-target |
3084 | # configuration. | |
3085 | gdb_host_obs=posix-hdep.o | |
3086 | ||
771b4502 UW |
3087 | if test "${target}" = "${host}"; then |
3088 | gdb_native=yes | |
3089 | else | |
3090 | gdb_native=no | |
3091 | fi | |
3092 | ||
bec39cab AC |
3093 | . $srcdir/configure.host |
3094 | ||
3095 | . $srcdir/configure.tgt | |
3096 | ||
3097 | # Fetch the default architecture and default target vector from BFD. | |
3098 | targ=$target; . $srcdir/../bfd/config.bfd | |
3099 | ||
3100 | # We only want the first architecture, so strip off the others if | |
3101 | # there is more than one. | |
3102 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
3103 | ||
3104 | if test "x$targ_archs" != x; then | |
3105 | ||
3106 | cat >>confdefs.h <<_ACEOF | |
3107 | #define DEFAULT_BFD_ARCH $targ_archs | |
3108 | _ACEOF | |
3109 | ||
3110 | fi | |
3111 | if test "x$targ_defvec" != x; then | |
3112 | ||
3113 | cat >>confdefs.h <<_ACEOF | |
3114 | #define DEFAULT_BFD_VEC $targ_defvec | |
3115 | _ACEOF | |
3116 | ||
3117 | fi | |
3118 | ||
3119 | test "$program_prefix" != NONE && | |
b4e70030 | 3120 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
bec39cab AC |
3121 | # Use a double $ so make ignores it. |
3122 | test "$program_suffix" != NONE && | |
b4e70030 | 3123 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
bec39cab AC |
3124 | # Double any \ or $. echo might interpret backslashes. |
3125 | # By default was `s,x,x', remove it if useless. | |
3126 | cat <<\_ACEOF >conftest.sed | |
3127 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3128 | _ACEOF | |
3129 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
b4e70030 | 3130 | rm conftest.sed |
bec39cab AC |
3131 | |
3132 | ||
3133 | # The CLI cannot be disabled yet, but may be in the future. | |
3134 | ||
3135 | # Enable CLI. | |
b4e70030 | 3136 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
bec39cab | 3137 | if test "${enable_gdbcli+set}" = set; then |
b4e70030 JB |
3138 | enableval="$enable_gdbcli" |
3139 | case $enableval in | |
bec39cab AC |
3140 | yes) |
3141 | ;; | |
3142 | no) | |
3143 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
3144 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
3145 | { (exit 1); exit 1; }; } ;; | |
3146 | *) | |
3147 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
3148 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
3149 | { (exit 1); exit 1; }; } ;; | |
3150 | esac | |
3151 | else | |
3152 | enable_gdbcli=yes | |
b4e70030 | 3153 | fi; |
bec39cab AC |
3154 | if test x"$enable_gdbcli" = xyes; then |
3155 | if test -d $srcdir/cli; then | |
3156 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
3157 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
3158 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
3159 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
3160 | fi | |
3161 | fi | |
3162 | ||
3163 | # Enable MI. | |
b4e70030 | 3164 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
bec39cab | 3165 | if test "${enable_gdbmi+set}" = set; then |
b4e70030 JB |
3166 | enableval="$enable_gdbmi" |
3167 | case $enableval in | |
bec39cab AC |
3168 | yes | no) |
3169 | ;; | |
3170 | *) | |
3171 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
3172 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
3173 | { (exit 1); exit 1; }; } ;; | |
3174 | esac | |
3175 | else | |
3176 | enable_gdbmi=yes | |
b4e70030 | 3177 | fi; |
bec39cab AC |
3178 | if test x"$enable_gdbmi" = xyes; then |
3179 | if test -d $srcdir/mi; then | |
3180 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
3181 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
3182 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
3183 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
3184 | fi | |
3185 | fi | |
3186 | ||
3187 | # Enable TUI. | |
b4e70030 | 3188 | # Check whether --enable-tui or --disable-tui was given. |
bec39cab | 3189 | if test "${enable_tui+set}" = set; then |
b4e70030 JB |
3190 | enableval="$enable_tui" |
3191 | case $enableval in | |
bec39cab AC |
3192 | yes | no) |
3193 | ;; | |
3194 | *) | |
3195 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
3196 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
3197 | { (exit 1); exit 1; }; } ;; | |
3198 | esac | |
3199 | else | |
3200 | enable_tui=yes | |
b4e70030 | 3201 | fi; |
bec39cab AC |
3202 | |
3203 | # Enable gdbtk. | |
b4e70030 | 3204 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
bec39cab | 3205 | if test "${enable_gdbtk+set}" = set; then |
b4e70030 JB |
3206 | enableval="$enable_gdbtk" |
3207 | case $enableval in | |
bec39cab AC |
3208 | yes | no) |
3209 | ;; | |
3210 | *) | |
3211 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
3212 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
3213 | { (exit 1); exit 1; }; } ;; | |
3214 | esac | |
3215 | else | |
04ac69aa | 3216 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
bec39cab AC |
3217 | enable_gdbtk=yes |
3218 | else | |
3219 | enable_gdbtk=no | |
3220 | fi | |
b4e70030 | 3221 | fi; |
bec39cab AC |
3222 | # We unconditionally disable gdbtk tests on selected platforms. |
3223 | case $host_os in | |
3224 | go32* | windows*) | |
3225 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
3226 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
3227 | enable_gdbtk=no ;; | |
3228 | esac | |
3229 | ||
3230 | # Libunwind support. | |
20e95c23 DJ |
3231 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3232 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3233 | if test "${ac_cv_header_stdc+set}" = set; then | |
3234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3235 | else | |
3236 | cat >conftest.$ac_ext <<_ACEOF | |
3237 | /* confdefs.h. */ | |
3238 | _ACEOF | |
3239 | cat confdefs.h >>conftest.$ac_ext | |
3240 | cat >>conftest.$ac_ext <<_ACEOF | |
3241 | /* end confdefs.h. */ | |
3242 | #include <stdlib.h> | |
3243 | #include <stdarg.h> | |
3244 | #include <string.h> | |
3245 | #include <float.h> | |
3246 | ||
3247 | int | |
3248 | main () | |
3249 | { | |
3250 | ||
3251 | ; | |
3252 | return 0; | |
3253 | } | |
3254 | _ACEOF | |
3255 | rm -f conftest.$ac_objext | |
3256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3257 | (eval $ac_compile) 2>conftest.er1 | |
3258 | ac_status=$? | |
3259 | grep -v '^ *+' conftest.er1 >conftest.err | |
3260 | rm -f conftest.er1 | |
3261 | cat conftest.err >&5 | |
3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3263 | (exit $ac_status); } && | |
3264 | { ac_try='test -z "$ac_c_werror_flag" | |
3265 | || test ! -s conftest.err' | |
3266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3267 | (eval $ac_try) 2>&5 | |
3268 | ac_status=$? | |
3269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3270 | (exit $ac_status); }; } && | |
3271 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
3277 | ac_cv_header_stdc=yes | |
3278 | else | |
3279 | echo "$as_me: failed program was:" >&5 | |
3280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3281 | ||
3282 | ac_cv_header_stdc=no | |
3283 | fi | |
3284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3285 | ||
3286 | if test $ac_cv_header_stdc = yes; then | |
3287 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3288 | cat >conftest.$ac_ext <<_ACEOF | |
3289 | /* confdefs.h. */ | |
3290 | _ACEOF | |
3291 | cat confdefs.h >>conftest.$ac_ext | |
3292 | cat >>conftest.$ac_ext <<_ACEOF | |
3293 | /* end confdefs.h. */ | |
3294 | #include <string.h> | |
3295 | ||
3296 | _ACEOF | |
3297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3298 | $EGREP "memchr" >/dev/null 2>&1; then | |
3299 | : | |
3300 | else | |
3301 | ac_cv_header_stdc=no | |
3302 | fi | |
3303 | rm -f conftest* | |
3304 | ||
3305 | fi | |
3306 | ||
3307 | if test $ac_cv_header_stdc = yes; then | |
3308 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3309 | cat >conftest.$ac_ext <<_ACEOF | |
3310 | /* confdefs.h. */ | |
3311 | _ACEOF | |
3312 | cat confdefs.h >>conftest.$ac_ext | |
3313 | cat >>conftest.$ac_ext <<_ACEOF | |
3314 | /* end confdefs.h. */ | |
3315 | #include <stdlib.h> | |
3316 | ||
3317 | _ACEOF | |
3318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3319 | $EGREP "free" >/dev/null 2>&1; then | |
3320 | : | |
3321 | else | |
3322 | ac_cv_header_stdc=no | |
3323 | fi | |
3324 | rm -f conftest* | |
3325 | ||
3326 | fi | |
3327 | ||
3328 | if test $ac_cv_header_stdc = yes; then | |
3329 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3330 | if test "$cross_compiling" = yes; then | |
3331 | : | |
3332 | else | |
3333 | cat >conftest.$ac_ext <<_ACEOF | |
3334 | /* confdefs.h. */ | |
3335 | _ACEOF | |
3336 | cat confdefs.h >>conftest.$ac_ext | |
3337 | cat >>conftest.$ac_ext <<_ACEOF | |
3338 | /* end confdefs.h. */ | |
3339 | #include <ctype.h> | |
3340 | #if ((' ' & 0x0FF) == 0x020) | |
3341 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3342 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3343 | #else | |
3344 | # define ISLOWER(c) \ | |
3345 | (('a' <= (c) && (c) <= 'i') \ | |
3346 | || ('j' <= (c) && (c) <= 'r') \ | |
3347 | || ('s' <= (c) && (c) <= 'z')) | |
3348 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3349 | #endif | |
3350 | ||
3351 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3352 | int | |
3353 | main () | |
3354 | { | |
3355 | int i; | |
3356 | for (i = 0; i < 256; i++) | |
3357 | if (XOR (islower (i), ISLOWER (i)) | |
3358 | || toupper (i) != TOUPPER (i)) | |
3359 | exit(2); | |
3360 | exit (0); | |
3361 | } | |
3362 | _ACEOF | |
3363 | rm -f conftest$ac_exeext | |
3364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3365 | (eval $ac_link) 2>&5 | |
3366 | ac_status=$? | |
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3368 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3370 | (eval $ac_try) 2>&5 | |
3371 | ac_status=$? | |
3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3373 | (exit $ac_status); }; }; then | |
3374 | : | |
3375 | else | |
3376 | echo "$as_me: program exited with status $ac_status" >&5 | |
3377 | echo "$as_me: failed program was:" >&5 | |
3378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3379 | ||
3380 | ( exit $ac_status ) | |
3381 | ac_cv_header_stdc=no | |
3382 | fi | |
3383 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3384 | fi | |
3385 | fi | |
3386 | fi | |
3387 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3388 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3389 | if test $ac_cv_header_stdc = yes; then | |
3390 | ||
3391 | cat >>confdefs.h <<\_ACEOF | |
3392 | #define STDC_HEADERS 1 | |
3393 | _ACEOF | |
3394 | ||
3395 | fi | |
3396 | ||
3397 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3398 | ||
3399 | ||
3400 | ||
3401 | ||
3402 | ||
3403 | ||
3404 | ||
3405 | ||
3406 | ||
3407 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3408 | inttypes.h stdint.h unistd.h | |
3409 | do | |
3410 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3411 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3412 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3415 | else | |
3416 | cat >conftest.$ac_ext <<_ACEOF | |
3417 | /* confdefs.h. */ | |
3418 | _ACEOF | |
3419 | cat confdefs.h >>conftest.$ac_ext | |
3420 | cat >>conftest.$ac_ext <<_ACEOF | |
3421 | /* end confdefs.h. */ | |
3422 | $ac_includes_default | |
3423 | ||
3424 | #include <$ac_header> | |
3425 | _ACEOF | |
3426 | rm -f conftest.$ac_objext | |
3427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3428 | (eval $ac_compile) 2>conftest.er1 | |
3429 | ac_status=$? | |
3430 | grep -v '^ *+' conftest.er1 >conftest.err | |
3431 | rm -f conftest.er1 | |
3432 | cat conftest.err >&5 | |
3433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3434 | (exit $ac_status); } && | |
3435 | { ac_try='test -z "$ac_c_werror_flag" | |
3436 | || test ! -s conftest.err' | |
3437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3438 | (eval $ac_try) 2>&5 | |
3439 | ac_status=$? | |
3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3441 | (exit $ac_status); }; } && | |
3442 | { ac_try='test -s conftest.$ac_objext' | |
3443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3444 | (eval $ac_try) 2>&5 | |
3445 | ac_status=$? | |
3446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3447 | (exit $ac_status); }; }; then | |
3448 | eval "$as_ac_Header=yes" | |
3449 | else | |
3450 | echo "$as_me: failed program was:" >&5 | |
3451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3452 | ||
3453 | eval "$as_ac_Header=no" | |
3454 | fi | |
3455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3456 | fi | |
3457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3459 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3460 | cat >>confdefs.h <<_ACEOF | |
3461 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3462 | _ACEOF | |
3463 | ||
3464 | fi | |
3465 | ||
3466 | done | |
3467 | ||
3468 | ||
bec39cab | 3469 | |
b4e70030 | 3470 | # Check whether --with-libunwind or --without-libunwind was given. |
bec39cab | 3471 | if test "${with_libunwind+set}" = set; then |
b4e70030 JB |
3472 | withval="$with_libunwind" |
3473 | case "${withval}" in | |
bec39cab AC |
3474 | yes) enable_libunwind=yes ;; |
3475 | no) enable_libunwind=no ;; | |
3476 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
3477 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
3478 | { (exit 1); exit 1; }; } ;; | |
3479 | esac | |
3480 | else | |
3481 | ||
3482 | ||
3483 | for ac_header in libunwind.h | |
3484 | do | |
3485 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3486 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3487 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3488 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3491 | fi | |
b4e70030 JB |
3492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3494 | else |
3495 | # Is the header compilable? | |
b4e70030 JB |
3496 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3497 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3498 | cat >conftest.$ac_ext <<_ACEOF |
3499 | /* confdefs.h. */ | |
3500 | _ACEOF | |
3501 | cat confdefs.h >>conftest.$ac_ext | |
3502 | cat >>conftest.$ac_ext <<_ACEOF | |
3503 | /* end confdefs.h. */ | |
3504 | $ac_includes_default | |
3505 | #include <$ac_header> | |
3506 | _ACEOF | |
3507 | rm -f conftest.$ac_objext | |
3508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3509 | (eval $ac_compile) 2>conftest.er1 | |
3510 | ac_status=$? | |
3511 | grep -v '^ *+' conftest.er1 >conftest.err | |
3512 | rm -f conftest.er1 | |
3513 | cat conftest.err >&5 | |
3514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3515 | (exit $ac_status); } && | |
b4e70030 JB |
3516 | { ac_try='test -z "$ac_c_werror_flag" |
3517 | || test ! -s conftest.err' | |
bec39cab AC |
3518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3519 | (eval $ac_try) 2>&5 | |
3520 | ac_status=$? | |
3521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3522 | (exit $ac_status); }; } && | |
3523 | { ac_try='test -s conftest.$ac_objext' | |
3524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3525 | (eval $ac_try) 2>&5 | |
3526 | ac_status=$? | |
3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3528 | (exit $ac_status); }; }; then | |
3529 | ac_header_compiler=yes | |
3530 | else | |
3531 | echo "$as_me: failed program was:" >&5 | |
3532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3533 | ||
b4e70030 | 3534 | ac_header_compiler=no |
bec39cab AC |
3535 | fi |
3536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3537 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3538 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3539 | |
3540 | # Is the header present? | |
b4e70030 JB |
3541 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3542 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3543 | cat >conftest.$ac_ext <<_ACEOF |
3544 | /* confdefs.h. */ | |
3545 | _ACEOF | |
3546 | cat confdefs.h >>conftest.$ac_ext | |
3547 | cat >>conftest.$ac_ext <<_ACEOF | |
3548 | /* end confdefs.h. */ | |
3549 | #include <$ac_header> | |
3550 | _ACEOF | |
3551 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3552 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3553 | ac_status=$? | |
3554 | grep -v '^ *+' conftest.er1 >conftest.err | |
3555 | rm -f conftest.er1 | |
3556 | cat conftest.err >&5 | |
3557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3558 | (exit $ac_status); } >/dev/null; then | |
3559 | if test -s conftest.err; then | |
3560 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3561 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3562 | else | |
3563 | ac_cpp_err= | |
3564 | fi | |
3565 | else | |
3566 | ac_cpp_err=yes | |
3567 | fi | |
3568 | if test -z "$ac_cpp_err"; then | |
3569 | ac_header_preproc=yes | |
3570 | else | |
3571 | echo "$as_me: failed program was:" >&5 | |
3572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3573 | ||
3574 | ac_header_preproc=no | |
3575 | fi | |
3576 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3577 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3578 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3579 | |
3580 | # So? What about this header? | |
3581 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3582 | yes:no: ) | |
3583 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3584 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3585 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3586 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3587 | ac_header_preproc=yes | |
3588 | ;; | |
3589 | no:yes:* ) | |
3590 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3591 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3592 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3593 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3594 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3595 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3596 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3597 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3598 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3599 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3600 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3601 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3602 | ( |
3603 | cat <<\_ASBOX | |
3604 | ## ------------------------------------------ ## | |
3605 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3606 | ## ------------------------------------------ ## | |
3607 | _ASBOX | |
3608 | ) | | |
3609 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3610 | ;; |
3611 | esac | |
b4e70030 JB |
3612 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3614 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3616 | else | |
3617 | eval "$as_ac_Header=\$ac_header_preproc" | |
3618 | fi | |
b4e70030 JB |
3619 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3620 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3621 | |
3622 | fi | |
3623 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3624 | cat >>confdefs.h <<_ACEOF | |
3625 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3626 | _ACEOF | |
3627 | ||
3628 | fi | |
3629 | ||
3630 | done | |
3631 | ||
3632 | ||
3633 | for ac_header in libunwind-ia64.h | |
3634 | do | |
3635 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3637 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3638 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3639 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3641 | fi | |
b4e70030 JB |
3642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3644 | else |
3645 | # Is the header compilable? | |
b4e70030 JB |
3646 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3647 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3648 | cat >conftest.$ac_ext <<_ACEOF |
3649 | /* confdefs.h. */ | |
3650 | _ACEOF | |
3651 | cat confdefs.h >>conftest.$ac_ext | |
3652 | cat >>conftest.$ac_ext <<_ACEOF | |
3653 | /* end confdefs.h. */ | |
3654 | $ac_includes_default | |
3655 | #include <$ac_header> | |
3656 | _ACEOF | |
3657 | rm -f conftest.$ac_objext | |
3658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3659 | (eval $ac_compile) 2>conftest.er1 | |
3660 | ac_status=$? | |
3661 | grep -v '^ *+' conftest.er1 >conftest.err | |
3662 | rm -f conftest.er1 | |
3663 | cat conftest.err >&5 | |
3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3665 | (exit $ac_status); } && | |
b4e70030 JB |
3666 | { ac_try='test -z "$ac_c_werror_flag" |
3667 | || test ! -s conftest.err' | |
bec39cab AC |
3668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3669 | (eval $ac_try) 2>&5 | |
3670 | ac_status=$? | |
3671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3672 | (exit $ac_status); }; } && | |
3673 | { ac_try='test -s conftest.$ac_objext' | |
3674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3675 | (eval $ac_try) 2>&5 | |
3676 | ac_status=$? | |
3677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3678 | (exit $ac_status); }; }; then | |
3679 | ac_header_compiler=yes | |
3680 | else | |
3681 | echo "$as_me: failed program was:" >&5 | |
3682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3683 | ||
b4e70030 | 3684 | ac_header_compiler=no |
bec39cab AC |
3685 | fi |
3686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3687 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3688 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3689 | |
3690 | # Is the header present? | |
b4e70030 JB |
3691 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3692 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3693 | cat >conftest.$ac_ext <<_ACEOF |
3694 | /* confdefs.h. */ | |
3695 | _ACEOF | |
3696 | cat confdefs.h >>conftest.$ac_ext | |
3697 | cat >>conftest.$ac_ext <<_ACEOF | |
3698 | /* end confdefs.h. */ | |
3699 | #include <$ac_header> | |
3700 | _ACEOF | |
3701 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3702 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3703 | ac_status=$? | |
3704 | grep -v '^ *+' conftest.er1 >conftest.err | |
3705 | rm -f conftest.er1 | |
3706 | cat conftest.err >&5 | |
3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3708 | (exit $ac_status); } >/dev/null; then | |
3709 | if test -s conftest.err; then | |
3710 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3711 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3712 | else | |
3713 | ac_cpp_err= | |
3714 | fi | |
3715 | else | |
3716 | ac_cpp_err=yes | |
3717 | fi | |
3718 | if test -z "$ac_cpp_err"; then | |
3719 | ac_header_preproc=yes | |
3720 | else | |
3721 | echo "$as_me: failed program was:" >&5 | |
3722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3723 | ||
3724 | ac_header_preproc=no | |
3725 | fi | |
3726 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3727 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3728 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3729 | |
3730 | # So? What about this header? | |
3731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3732 | yes:no: ) | |
3733 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3734 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3735 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3736 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3737 | ac_header_preproc=yes | |
3738 | ;; | |
3739 | no:yes:* ) | |
3740 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3741 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3742 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3743 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3744 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3745 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3746 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3747 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3749 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3750 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3751 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3752 | ( |
3753 | cat <<\_ASBOX | |
3754 | ## ------------------------------------------ ## | |
3755 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3756 | ## ------------------------------------------ ## | |
3757 | _ASBOX | |
3758 | ) | | |
3759 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3760 | ;; |
3761 | esac | |
b4e70030 JB |
3762 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3766 | else | |
3767 | eval "$as_ac_Header=\$ac_header_preproc" | |
3768 | fi | |
b4e70030 JB |
3769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3770 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3771 | |
3772 | fi | |
3773 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3774 | cat >>confdefs.h <<_ACEOF | |
3775 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3776 | _ACEOF | |
3777 | ||
3778 | fi | |
3779 | ||
3780 | done | |
3781 | ||
3782 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
3783 | enable_libunwind=yes; | |
3784 | fi | |
3785 | ||
b4e70030 | 3786 | fi; |
bec39cab AC |
3787 | |
3788 | if test x"$enable_libunwind" = xyes; then | |
3789 | ||
3790 | for ac_header in libunwind.h | |
3791 | do | |
3792 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3794 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3795 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3798 | fi | |
b4e70030 JB |
3799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3800 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3801 | else |
3802 | # Is the header compilable? | |
b4e70030 JB |
3803 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3804 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3805 | cat >conftest.$ac_ext <<_ACEOF |
3806 | /* confdefs.h. */ | |
3807 | _ACEOF | |
3808 | cat confdefs.h >>conftest.$ac_ext | |
3809 | cat >>conftest.$ac_ext <<_ACEOF | |
3810 | /* end confdefs.h. */ | |
3811 | $ac_includes_default | |
3812 | #include <$ac_header> | |
3813 | _ACEOF | |
3814 | rm -f conftest.$ac_objext | |
3815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3816 | (eval $ac_compile) 2>conftest.er1 | |
3817 | ac_status=$? | |
3818 | grep -v '^ *+' conftest.er1 >conftest.err | |
3819 | rm -f conftest.er1 | |
3820 | cat conftest.err >&5 | |
3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3822 | (exit $ac_status); } && | |
b4e70030 JB |
3823 | { ac_try='test -z "$ac_c_werror_flag" |
3824 | || test ! -s conftest.err' | |
bec39cab AC |
3825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3826 | (eval $ac_try) 2>&5 | |
3827 | ac_status=$? | |
3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3829 | (exit $ac_status); }; } && | |
3830 | { ac_try='test -s conftest.$ac_objext' | |
3831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3832 | (eval $ac_try) 2>&5 | |
3833 | ac_status=$? | |
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3835 | (exit $ac_status); }; }; then | |
3836 | ac_header_compiler=yes | |
3837 | else | |
3838 | echo "$as_me: failed program was:" >&5 | |
3839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3840 | ||
b4e70030 | 3841 | ac_header_compiler=no |
bec39cab AC |
3842 | fi |
3843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3844 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3845 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3846 | |
3847 | # Is the header present? | |
b4e70030 JB |
3848 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3849 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3850 | cat >conftest.$ac_ext <<_ACEOF |
3851 | /* confdefs.h. */ | |
3852 | _ACEOF | |
3853 | cat confdefs.h >>conftest.$ac_ext | |
3854 | cat >>conftest.$ac_ext <<_ACEOF | |
3855 | /* end confdefs.h. */ | |
3856 | #include <$ac_header> | |
3857 | _ACEOF | |
3858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3860 | ac_status=$? | |
3861 | grep -v '^ *+' conftest.er1 >conftest.err | |
3862 | rm -f conftest.er1 | |
3863 | cat conftest.err >&5 | |
3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3865 | (exit $ac_status); } >/dev/null; then | |
3866 | if test -s conftest.err; then | |
3867 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3868 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3869 | else | |
3870 | ac_cpp_err= | |
3871 | fi | |
3872 | else | |
3873 | ac_cpp_err=yes | |
3874 | fi | |
3875 | if test -z "$ac_cpp_err"; then | |
3876 | ac_header_preproc=yes | |
3877 | else | |
3878 | echo "$as_me: failed program was:" >&5 | |
3879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3880 | ||
3881 | ac_header_preproc=no | |
3882 | fi | |
3883 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3884 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3885 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3886 | |
3887 | # So? What about this header? | |
3888 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3889 | yes:no: ) | |
3890 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3891 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3893 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3894 | ac_header_preproc=yes | |
3895 | ;; | |
3896 | no:yes:* ) | |
3897 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3898 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3899 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3900 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3901 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3902 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3903 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3904 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3906 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3907 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3908 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3909 | ( |
3910 | cat <<\_ASBOX | |
3911 | ## ------------------------------------------ ## | |
3912 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3913 | ## ------------------------------------------ ## | |
3914 | _ASBOX | |
3915 | ) | | |
3916 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3917 | ;; |
3918 | esac | |
b4e70030 JB |
3919 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3923 | else | |
3924 | eval "$as_ac_Header=\$ac_header_preproc" | |
3925 | fi | |
b4e70030 JB |
3926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3927 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3928 | |
3929 | fi | |
3930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3931 | cat >>confdefs.h <<_ACEOF | |
3932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3933 | _ACEOF | |
3934 | ||
3935 | fi | |
3936 | ||
3937 | done | |
3938 | ||
3939 | ||
3940 | for ac_header in libunwind-ia64.h | |
3941 | do | |
3942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3948 | fi | |
b4e70030 JB |
3949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3951 | else |
3952 | # Is the header compilable? | |
b4e70030 JB |
3953 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3954 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3955 | cat >conftest.$ac_ext <<_ACEOF |
3956 | /* confdefs.h. */ | |
3957 | _ACEOF | |
3958 | cat confdefs.h >>conftest.$ac_ext | |
3959 | cat >>conftest.$ac_ext <<_ACEOF | |
3960 | /* end confdefs.h. */ | |
3961 | $ac_includes_default | |
3962 | #include <$ac_header> | |
3963 | _ACEOF | |
3964 | rm -f conftest.$ac_objext | |
3965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3966 | (eval $ac_compile) 2>conftest.er1 | |
3967 | ac_status=$? | |
3968 | grep -v '^ *+' conftest.er1 >conftest.err | |
3969 | rm -f conftest.er1 | |
3970 | cat conftest.err >&5 | |
3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3972 | (exit $ac_status); } && | |
b4e70030 JB |
3973 | { ac_try='test -z "$ac_c_werror_flag" |
3974 | || test ! -s conftest.err' | |
bec39cab AC |
3975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3976 | (eval $ac_try) 2>&5 | |
3977 | ac_status=$? | |
3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3979 | (exit $ac_status); }; } && | |
3980 | { ac_try='test -s conftest.$ac_objext' | |
3981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3982 | (eval $ac_try) 2>&5 | |
3983 | ac_status=$? | |
3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3985 | (exit $ac_status); }; }; then | |
3986 | ac_header_compiler=yes | |
3987 | else | |
3988 | echo "$as_me: failed program was:" >&5 | |
3989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3990 | ||
b4e70030 | 3991 | ac_header_compiler=no |
bec39cab AC |
3992 | fi |
3993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3994 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3995 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3996 | |
3997 | # Is the header present? | |
b4e70030 JB |
3998 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3999 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
4000 | cat >conftest.$ac_ext <<_ACEOF |
4001 | /* confdefs.h. */ | |
4002 | _ACEOF | |
4003 | cat confdefs.h >>conftest.$ac_ext | |
4004 | cat >>conftest.$ac_ext <<_ACEOF | |
4005 | /* end confdefs.h. */ | |
4006 | #include <$ac_header> | |
4007 | _ACEOF | |
4008 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4009 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4010 | ac_status=$? | |
4011 | grep -v '^ *+' conftest.er1 >conftest.err | |
4012 | rm -f conftest.er1 | |
4013 | cat conftest.err >&5 | |
4014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4015 | (exit $ac_status); } >/dev/null; then | |
4016 | if test -s conftest.err; then | |
4017 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4018 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4019 | else | |
4020 | ac_cpp_err= | |
4021 | fi | |
4022 | else | |
4023 | ac_cpp_err=yes | |
4024 | fi | |
4025 | if test -z "$ac_cpp_err"; then | |
4026 | ac_header_preproc=yes | |
4027 | else | |
4028 | echo "$as_me: failed program was:" >&5 | |
4029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4030 | ||
4031 | ac_header_preproc=no | |
4032 | fi | |
4033 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
4034 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4035 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
4036 | |
4037 | # So? What about this header? | |
4038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4039 | yes:no: ) | |
4040 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4041 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4043 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4044 | ac_header_preproc=yes | |
4045 | ;; | |
4046 | no:yes:* ) | |
4047 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4048 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4049 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4050 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4051 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4052 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4053 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4054 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4056 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4057 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4058 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
4059 | ( |
4060 | cat <<\_ASBOX | |
4061 | ## ------------------------------------------ ## | |
4062 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4063 | ## ------------------------------------------ ## | |
4064 | _ASBOX | |
4065 | ) | | |
4066 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
4067 | ;; |
4068 | esac | |
b4e70030 JB |
4069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
4072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4073 | else | |
4074 | eval "$as_ac_Header=\$ac_header_preproc" | |
4075 | fi | |
b4e70030 JB |
4076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
4078 | |
4079 | fi | |
4080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4081 | cat >>confdefs.h <<_ACEOF | |
4082 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4083 | _ACEOF | |
4084 | ||
4085 | fi | |
4086 | ||
4087 | done | |
4088 | ||
60ca704f SE |
4089 | |
4090 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
4091 | #define HAVE_LIBUNWIND 1 |
4092 | _ACEOF | |
4093 | ||
4094 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
4095 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
4096 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
4097 | fi | |
4098 | ||
4099 | # Profiling support. | |
b4e70030 | 4100 | # Check whether --enable-profiling or --disable-profiling was given. |
bec39cab | 4101 | if test "${enable_profiling+set}" = set; then |
b4e70030 JB |
4102 | enableval="$enable_profiling" |
4103 | case $enableval in | |
bec39cab AC |
4104 | yes | no) |
4105 | ;; | |
4106 | *) | |
4107 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
4108 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
4109 | { (exit 1); exit 1; }; } ;; | |
4110 | esac | |
4111 | else | |
4112 | enable_profiling=no | |
b4e70030 | 4113 | fi; |
bec39cab AC |
4114 | |
4115 | ||
4116 | ||
4117 | for ac_func in monstartup _mcleanup | |
4118 | do | |
4119 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
4120 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4121 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4122 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
4123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4124 | else | |
4125 | cat >conftest.$ac_ext <<_ACEOF | |
4126 | /* confdefs.h. */ | |
4127 | _ACEOF | |
4128 | cat confdefs.h >>conftest.$ac_ext | |
4129 | cat >>conftest.$ac_ext <<_ACEOF | |
4130 | /* end confdefs.h. */ | |
4131 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4132 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4133 | #define $ac_func innocuous_$ac_func | |
4134 | ||
4135 | /* System header to define __stub macros and hopefully few prototypes, | |
4136 | which can conflict with char $ac_func (); below. | |
4137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4138 | <limits.h> exists even on freestanding compilers. */ | |
4139 | ||
4140 | #ifdef __STDC__ | |
4141 | # include <limits.h> | |
4142 | #else | |
4143 | # include <assert.h> | |
4144 | #endif | |
4145 | ||
4146 | #undef $ac_func | |
4147 | ||
b4e70030 | 4148 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
4149 | #ifdef __cplusplus |
4150 | extern "C" | |
b4e70030 | 4151 | { |
bec39cab | 4152 | #endif |
b4e70030 JB |
4153 | /* We use char because int might match the return type of a gcc2 |
4154 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
4155 | char $ac_func (); |
4156 | /* The GNU C library defines this for functions which it implements | |
4157 | to always fail with ENOSYS. Some functions are actually named | |
4158 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 4159 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bec39cab | 4160 | choke me |
b4e70030 JB |
4161 | #else |
4162 | char (*f) () = $ac_func; | |
4163 | #endif | |
4164 | #ifdef __cplusplus | |
4165 | } | |
bec39cab AC |
4166 | #endif |
4167 | ||
4168 | int | |
4169 | main () | |
4170 | { | |
b4e70030 | 4171 | return f != $ac_func; |
bec39cab AC |
4172 | ; |
4173 | return 0; | |
4174 | } | |
4175 | _ACEOF | |
4176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4178 | (eval $ac_link) 2>conftest.er1 | |
4179 | ac_status=$? | |
4180 | grep -v '^ *+' conftest.er1 >conftest.err | |
4181 | rm -f conftest.er1 | |
4182 | cat conftest.err >&5 | |
4183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4184 | (exit $ac_status); } && | |
b4e70030 JB |
4185 | { ac_try='test -z "$ac_c_werror_flag" |
4186 | || test ! -s conftest.err' | |
bec39cab AC |
4187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4188 | (eval $ac_try) 2>&5 | |
4189 | ac_status=$? | |
4190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4191 | (exit $ac_status); }; } && | |
4192 | { ac_try='test -s conftest$ac_exeext' | |
4193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4194 | (eval $ac_try) 2>&5 | |
4195 | ac_status=$? | |
4196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4197 | (exit $ac_status); }; }; then | |
4198 | eval "$as_ac_var=yes" | |
4199 | else | |
4200 | echo "$as_me: failed program was:" >&5 | |
4201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4202 | ||
b4e70030 | 4203 | eval "$as_ac_var=no" |
bec39cab AC |
4204 | fi |
4205 | rm -f conftest.err conftest.$ac_objext \ | |
4206 | conftest$ac_exeext conftest.$ac_ext | |
4207 | fi | |
b4e70030 JB |
4208 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4209 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
4210 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
4211 | cat >>confdefs.h <<_ACEOF | |
4212 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4213 | _ACEOF | |
4214 | ||
4215 | fi | |
4216 | done | |
4217 | ||
b4e70030 JB |
4218 | echo "$as_me:$LINENO: checking for _etext" >&5 |
4219 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
bec39cab AC |
4220 | if test "${ac_cv_var__etext+set}" = set; then |
4221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4222 | else | |
4223 | cat >conftest.$ac_ext <<_ACEOF | |
4224 | /* confdefs.h. */ | |
4225 | _ACEOF | |
4226 | cat confdefs.h >>conftest.$ac_ext | |
4227 | cat >>conftest.$ac_ext <<_ACEOF | |
4228 | /* end confdefs.h. */ | |
4229 | #include <stdlib.h> | |
4230 | extern char _etext; | |
4231 | ||
4232 | int | |
4233 | main () | |
4234 | { | |
4235 | free (&_etext); | |
4236 | ; | |
4237 | return 0; | |
4238 | } | |
4239 | _ACEOF | |
4240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4242 | (eval $ac_link) 2>conftest.er1 | |
4243 | ac_status=$? | |
4244 | grep -v '^ *+' conftest.er1 >conftest.err | |
4245 | rm -f conftest.er1 | |
4246 | cat conftest.err >&5 | |
4247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4248 | (exit $ac_status); } && | |
b4e70030 JB |
4249 | { ac_try='test -z "$ac_c_werror_flag" |
4250 | || test ! -s conftest.err' | |
bec39cab AC |
4251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4252 | (eval $ac_try) 2>&5 | |
4253 | ac_status=$? | |
4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4255 | (exit $ac_status); }; } && | |
4256 | { ac_try='test -s conftest$ac_exeext' | |
4257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4258 | (eval $ac_try) 2>&5 | |
4259 | ac_status=$? | |
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4261 | (exit $ac_status); }; }; then | |
4262 | ac_cv_var__etext=yes | |
4263 | else | |
4264 | echo "$as_me: failed program was:" >&5 | |
4265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4266 | ||
b4e70030 | 4267 | ac_cv_var__etext=no |
bec39cab AC |
4268 | fi |
4269 | rm -f conftest.err conftest.$ac_objext \ | |
4270 | conftest$ac_exeext conftest.$ac_ext | |
4271 | fi | |
b4e70030 JB |
4272 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
4273 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
bec39cab AC |
4274 | if test $ac_cv_var__etext = yes; then |
4275 | ||
4276 | cat >>confdefs.h <<\_ACEOF | |
4277 | #define HAVE__ETEXT 1 | |
4278 | _ACEOF | |
4279 | ||
4280 | fi | |
4281 | if test "$enable_profiling" = yes ; then | |
4282 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
4283 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
4284 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
4285 | { (exit 1); exit 1; }; } | |
4286 | fi | |
4287 | PROFILE_CFLAGS=-pg | |
4288 | OLD_CFLAGS="$CFLAGS" | |
4289 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
4290 | ||
b4e70030 JB |
4291 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
4292 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
bec39cab AC |
4293 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
4294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4295 | else |
bec39cab AC |
4296 | cat >conftest.$ac_ext <<_ACEOF |
4297 | /* confdefs.h. */ | |
4298 | _ACEOF | |
4299 | cat confdefs.h >>conftest.$ac_ext | |
4300 | cat >>conftest.$ac_ext <<_ACEOF | |
4301 | /* end confdefs.h. */ | |
4302 | ||
4303 | int | |
4304 | main () | |
4305 | { | |
4306 | int x; | |
4307 | ; | |
4308 | return 0; | |
4309 | } | |
4310 | _ACEOF | |
4311 | rm -f conftest.$ac_objext | |
4312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4313 | (eval $ac_compile) 2>conftest.er1 | |
4314 | ac_status=$? | |
4315 | grep -v '^ *+' conftest.er1 >conftest.err | |
4316 | rm -f conftest.er1 | |
4317 | cat conftest.err >&5 | |
4318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4319 | (exit $ac_status); } && | |
b4e70030 JB |
4320 | { ac_try='test -z "$ac_c_werror_flag" |
4321 | || test ! -s conftest.err' | |
bec39cab AC |
4322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4323 | (eval $ac_try) 2>&5 | |
4324 | ac_status=$? | |
4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4326 | (exit $ac_status); }; } && | |
4327 | { ac_try='test -s conftest.$ac_objext' | |
4328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4329 | (eval $ac_try) 2>&5 | |
4330 | ac_status=$? | |
4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4332 | (exit $ac_status); }; }; then | |
4333 | ac_cv_cc_supports_pg=yes | |
4334 | else | |
4335 | echo "$as_me: failed program was:" >&5 | |
4336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4337 | ||
b4e70030 | 4338 | ac_cv_cc_supports_pg=no |
bec39cab AC |
4339 | fi |
4340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4341 | fi | |
b4e70030 JB |
4342 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
4343 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
bec39cab AC |
4344 | |
4345 | if test $ac_cv_cc_supports_pg = no; then | |
4346 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
4347 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
4348 | { (exit 1); exit 1; }; } | |
4349 | fi | |
4350 | ||
4351 | CFLAGS="$OLD_CFLAGS" | |
4352 | fi | |
4353 | ||
4354 | # --------------------- # | |
4355 | # Checks for programs. # | |
4356 | # --------------------- # | |
4357 | ||
4358 | for ac_prog in gawk mawk nawk awk | |
4359 | do | |
4360 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4361 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4362 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4364 | if test "${ac_cv_prog_AWK+set}" = set; then |
4365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4366 | else | |
4367 | if test -n "$AWK"; then | |
4368 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4369 | else | |
4370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4371 | for as_dir in $PATH | |
4372 | do | |
4373 | IFS=$as_save_IFS | |
4374 | test -z "$as_dir" && as_dir=. | |
4375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4376 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4377 | ac_cv_prog_AWK="$ac_prog" |
4378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4379 | break 2 | |
4380 | fi | |
4381 | done | |
4382 | done | |
4383 | ||
4384 | fi | |
4385 | fi | |
4386 | AWK=$ac_cv_prog_AWK | |
4387 | if test -n "$AWK"; then | |
b4e70030 JB |
4388 | echo "$as_me:$LINENO: result: $AWK" >&5 |
4389 | echo "${ECHO_T}$AWK" >&6 | |
bec39cab | 4390 | else |
b4e70030 JB |
4391 | echo "$as_me:$LINENO: result: no" >&5 |
4392 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4393 | fi |
4394 | ||
4395 | test -n "$AWK" && break | |
4396 | done | |
4397 | ||
4398 | # Find a good install program. We prefer a C program (faster), | |
4399 | # so one script is as good as another. But avoid the broken or | |
4400 | # incompatible versions: | |
4401 | # SysV /etc/install, /usr/sbin/install | |
4402 | # SunOS /usr/etc/install | |
4403 | # IRIX /sbin/install | |
4404 | # AIX /bin/install | |
4405 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4406 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4407 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4408 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4409 | # OS/2's system install, which has a completely different semantic | |
4410 | # ./install, which can be erroneously created by make from ./install.sh. | |
b4e70030 JB |
4411 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4412 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bec39cab AC |
4413 | if test -z "$INSTALL"; then |
4414 | if test "${ac_cv_path_install+set}" = set; then | |
4415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4416 | else | |
4417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4418 | for as_dir in $PATH | |
4419 | do | |
4420 | IFS=$as_save_IFS | |
4421 | test -z "$as_dir" && as_dir=. | |
4422 | # Account for people who put trailing slashes in PATH elements. | |
4423 | case $as_dir/ in | |
4424 | ./ | .// | /cC/* | \ | |
4425 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4426 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4427 | /usr/ucb/* ) ;; | |
c906108c | 4428 | *) |
bec39cab AC |
4429 | # OSF1 and SCO ODT 3.0 have their own names for install. |
4430 | # Don't use installbsd from OSF since it installs stuff as root | |
4431 | # by default. | |
4432 | for ac_prog in ginstall scoinst install; do | |
4433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4434 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bec39cab AC |
4435 | if test $ac_prog = install && |
4436 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4437 | # AIX install. It has an incompatible calling convention. | |
4438 | : | |
4439 | elif test $ac_prog = install && | |
4440 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4441 | # program-specific install script used by HP pwplus--don't use. | |
4442 | : | |
4443 | else | |
4444 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4445 | break 3 | |
4446 | fi | |
4447 | fi | |
4448 | done | |
4449 | done | |
4450 | ;; | |
c906108c | 4451 | esac |
bec39cab AC |
4452 | done |
4453 | ||
4454 | ||
4455 | fi | |
4456 | if test "${ac_cv_path_install+set}" = set; then | |
4457 | INSTALL=$ac_cv_path_install | |
4458 | else | |
b4e70030 JB |
4459 | # As a last resort, use the slow shell script. We don't cache a |
4460 | # path for INSTALL within a source directory, because that will | |
bec39cab | 4461 | # break other packages using the cache if that directory is |
b4e70030 | 4462 | # removed, or if the path is relative. |
bec39cab AC |
4463 | INSTALL=$ac_install_sh |
4464 | fi | |
4465 | fi | |
b4e70030 JB |
4466 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4467 | echo "${ECHO_T}$INSTALL" >&6 | |
bec39cab AC |
4468 | |
4469 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4470 | # It thinks the first close brace ends the variable substitution. | |
4471 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4472 | ||
4473 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4474 | ||
4475 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4476 | ||
b4e70030 JB |
4477 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4478 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
bec39cab AC |
4479 | LN_S=$as_ln_s |
4480 | if test "$LN_S" = "ln -s"; then | |
b4e70030 JB |
4481 | echo "$as_me:$LINENO: result: yes" >&5 |
4482 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 4483 | else |
b4e70030 JB |
4484 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4485 | echo "${ECHO_T}no, using $LN_S" >&6 | |
bec39cab AC |
4486 | fi |
4487 | ||
4488 | if test -n "$ac_tool_prefix"; then | |
4489 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4490 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b4e70030 JB |
4491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4493 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4495 | else | |
4496 | if test -n "$RANLIB"; then | |
4497 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4498 | else | |
4499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4500 | for as_dir in $PATH | |
4501 | do | |
4502 | IFS=$as_save_IFS | |
4503 | test -z "$as_dir" && as_dir=. | |
4504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4506 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4508 | break 2 | |
4509 | fi | |
4510 | done | |
4511 | done | |
4512 | ||
4513 | fi | |
4514 | fi | |
4515 | RANLIB=$ac_cv_prog_RANLIB | |
4516 | if test -n "$RANLIB"; then | |
b4e70030 JB |
4517 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4518 | echo "${ECHO_T}$RANLIB" >&6 | |
bec39cab | 4519 | else |
b4e70030 JB |
4520 | echo "$as_me:$LINENO: result: no" >&5 |
4521 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4522 | fi |
4523 | ||
4524 | fi | |
4525 | if test -z "$ac_cv_prog_RANLIB"; then | |
4526 | ac_ct_RANLIB=$RANLIB | |
4527 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4528 | set dummy ranlib; ac_word=$2 | |
b4e70030 JB |
4529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4531 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
4532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4533 | else | |
4534 | if test -n "$ac_ct_RANLIB"; then | |
4535 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4536 | else | |
4537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4538 | for as_dir in $PATH | |
4539 | do | |
4540 | IFS=$as_save_IFS | |
4541 | test -z "$as_dir" && as_dir=. | |
4542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4544 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4546 | break 2 | |
4547 | fi | |
4548 | done | |
4549 | done | |
4550 | ||
b4e70030 | 4551 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
bec39cab AC |
4552 | fi |
4553 | fi | |
4554 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4555 | if test -n "$ac_ct_RANLIB"; then | |
b4e70030 JB |
4556 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4557 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
bec39cab | 4558 | else |
b4e70030 JB |
4559 | echo "$as_me:$LINENO: result: no" >&5 |
4560 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4561 | fi |
4562 | ||
b4e70030 | 4563 | RANLIB=$ac_ct_RANLIB |
bec39cab AC |
4564 | else |
4565 | RANLIB="$ac_cv_prog_RANLIB" | |
4566 | fi | |
4567 | ||
4568 | for ac_prog in 'bison -y' byacc | |
4569 | do | |
4570 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4571 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4572 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4574 | if test "${ac_cv_prog_YACC+set}" = set; then |
4575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4576 | else | |
4577 | if test -n "$YACC"; then | |
4578 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4579 | else | |
4580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4581 | for as_dir in $PATH | |
4582 | do | |
4583 | IFS=$as_save_IFS | |
4584 | test -z "$as_dir" && as_dir=. | |
4585 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4586 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4587 | ac_cv_prog_YACC="$ac_prog" |
4588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4589 | break 2 | |
4590 | fi | |
4591 | done | |
4592 | done | |
4593 | ||
4594 | fi | |
4595 | fi | |
4596 | YACC=$ac_cv_prog_YACC | |
4597 | if test -n "$YACC"; then | |
b4e70030 JB |
4598 | echo "$as_me:$LINENO: result: $YACC" >&5 |
4599 | echo "${ECHO_T}$YACC" >&6 | |
bec39cab | 4600 | else |
b4e70030 JB |
4601 | echo "$as_me:$LINENO: result: no" >&5 |
4602 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4603 | fi |
4604 | ||
4605 | test -n "$YACC" && break | |
4606 | done | |
4607 | test -n "$YACC" || YACC="yacc" | |
4608 | ||
4609 | ||
4610 | if test -n "$ac_tool_prefix"; then | |
4611 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4612 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
b4e70030 JB |
4613 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4615 | if test "${ac_cv_prog_AR+set}" = set; then |
4616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4617 | else | |
4618 | if test -n "$AR"; then | |
4619 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4620 | else | |
4621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4622 | for as_dir in $PATH | |
4623 | do | |
4624 | IFS=$as_save_IFS | |
4625 | test -z "$as_dir" && as_dir=. | |
4626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4628 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4630 | break 2 | |
4631 | fi | |
4632 | done | |
4633 | done | |
4634 | ||
4635 | fi | |
4636 | fi | |
4637 | AR=$ac_cv_prog_AR | |
4638 | if test -n "$AR"; then | |
b4e70030 JB |
4639 | echo "$as_me:$LINENO: result: $AR" >&5 |
4640 | echo "${ECHO_T}$AR" >&6 | |
bec39cab | 4641 | else |
b4e70030 JB |
4642 | echo "$as_me:$LINENO: result: no" >&5 |
4643 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4644 | fi |
4645 | ||
4646 | fi | |
4647 | if test -z "$ac_cv_prog_AR"; then | |
4648 | ac_ct_AR=$AR | |
4649 | # Extract the first word of "ar", so it can be a program name with args. | |
4650 | set dummy ar; ac_word=$2 | |
b4e70030 JB |
4651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4653 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4655 | else | |
4656 | if test -n "$ac_ct_AR"; then | |
4657 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4658 | else | |
4659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4660 | for as_dir in $PATH | |
4661 | do | |
4662 | IFS=$as_save_IFS | |
4663 | test -z "$as_dir" && as_dir=. | |
4664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4666 | ac_cv_prog_ac_ct_AR="ar" |
4667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4668 | break 2 | |
4669 | fi | |
4670 | done | |
4671 | done | |
4672 | ||
4673 | fi | |
4674 | fi | |
4675 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4676 | if test -n "$ac_ct_AR"; then | |
b4e70030 JB |
4677 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
4678 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
bec39cab | 4679 | else |
b4e70030 JB |
4680 | echo "$as_me:$LINENO: result: no" >&5 |
4681 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4682 | fi |
4683 | ||
b4e70030 | 4684 | AR=$ac_ct_AR |
bec39cab AC |
4685 | else |
4686 | AR="$ac_cv_prog_AR" | |
4687 | fi | |
4688 | ||
4689 | if test -n "$ac_tool_prefix"; then | |
4690 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
4691 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
b4e70030 JB |
4692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4694 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4696 | else | |
4697 | if test -n "$DLLTOOL"; then | |
4698 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
4699 | else | |
4700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4701 | for as_dir in $PATH | |
4702 | do | |
4703 | IFS=$as_save_IFS | |
4704 | test -z "$as_dir" && as_dir=. | |
4705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4707 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
4708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4709 | break 2 | |
4710 | fi | |
4711 | done | |
4712 | done | |
4713 | ||
4714 | fi | |
4715 | fi | |
4716 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
4717 | if test -n "$DLLTOOL"; then | |
b4e70030 JB |
4718 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
4719 | echo "${ECHO_T}$DLLTOOL" >&6 | |
bec39cab | 4720 | else |
b4e70030 JB |
4721 | echo "$as_me:$LINENO: result: no" >&5 |
4722 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4723 | fi |
4724 | ||
4725 | fi | |
4726 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
4727 | ac_ct_DLLTOOL=$DLLTOOL | |
4728 | # Extract the first word of "dlltool", so it can be a program name with args. | |
4729 | set dummy dlltool; ac_word=$2 | |
b4e70030 JB |
4730 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4732 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4734 | else | |
4735 | if test -n "$ac_ct_DLLTOOL"; then | |
4736 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
4737 | else | |
4738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4739 | for as_dir in $PATH | |
4740 | do | |
4741 | IFS=$as_save_IFS | |
4742 | test -z "$as_dir" && as_dir=. | |
4743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4744 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4745 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
4746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4747 | break 2 | |
4748 | fi | |
4749 | done | |
4750 | done | |
4751 | ||
4752 | fi | |
4753 | fi | |
4754 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
4755 | if test -n "$ac_ct_DLLTOOL"; then | |
b4e70030 JB |
4756 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
4757 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
bec39cab | 4758 | else |
b4e70030 JB |
4759 | echo "$as_me:$LINENO: result: no" >&5 |
4760 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4761 | fi |
4762 | ||
b4e70030 | 4763 | DLLTOOL=$ac_ct_DLLTOOL |
bec39cab AC |
4764 | else |
4765 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
4766 | fi | |
4767 | ||
4768 | if test -n "$ac_tool_prefix"; then | |
4769 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
4770 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
b4e70030 JB |
4771 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4773 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
4774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4775 | else | |
4776 | if test -n "$WINDRES"; then | |
4777 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
4778 | else | |
4779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4780 | for as_dir in $PATH | |
4781 | do | |
4782 | IFS=$as_save_IFS | |
4783 | test -z "$as_dir" && as_dir=. | |
4784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4785 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4786 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
4787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4788 | break 2 | |
4789 | fi | |
4790 | done | |
4791 | done | |
4792 | ||
4793 | fi | |
4794 | fi | |
4795 | WINDRES=$ac_cv_prog_WINDRES | |
4796 | if test -n "$WINDRES"; then | |
b4e70030 JB |
4797 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
4798 | echo "${ECHO_T}$WINDRES" >&6 | |
bec39cab | 4799 | else |
b4e70030 JB |
4800 | echo "$as_me:$LINENO: result: no" >&5 |
4801 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4802 | fi |
4803 | ||
4804 | fi | |
4805 | if test -z "$ac_cv_prog_WINDRES"; then | |
4806 | ac_ct_WINDRES=$WINDRES | |
4807 | # Extract the first word of "windres", so it can be a program name with args. | |
4808 | set dummy windres; ac_word=$2 | |
b4e70030 JB |
4809 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4811 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
4812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4813 | else | |
4814 | if test -n "$ac_ct_WINDRES"; then | |
4815 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
4816 | else | |
4817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4818 | for as_dir in $PATH | |
4819 | do | |
4820 | IFS=$as_save_IFS | |
4821 | test -z "$as_dir" && as_dir=. | |
4822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4823 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4824 | ac_cv_prog_ac_ct_WINDRES="windres" |
4825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4826 | break 2 | |
4827 | fi | |
4828 | done | |
4829 | done | |
4830 | ||
4831 | fi | |
4832 | fi | |
4833 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
4834 | if test -n "$ac_ct_WINDRES"; then | |
b4e70030 JB |
4835 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
4836 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
bec39cab | 4837 | else |
b4e70030 JB |
4838 | echo "$as_me:$LINENO: result: no" >&5 |
4839 | echo "${ECHO_T}no" >&6 | |
c906108c | 4840 | fi |
bec39cab | 4841 | |
b4e70030 | 4842 | WINDRES=$ac_ct_WINDRES |
c906108c | 4843 | else |
bec39cab | 4844 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
4845 | fi |
4846 | ||
bec39cab AC |
4847 | |
4848 | # Needed for GNU/Hurd. | |
4849 | if test -n "$ac_tool_prefix"; then | |
4850 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
4851 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
b4e70030 JB |
4852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4854 | if test "${ac_cv_prog_MIG+set}" = set; then |
4855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4856 | else |
bec39cab AC |
4857 | if test -n "$MIG"; then |
4858 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
4859 | else | |
4860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4861 | for as_dir in $PATH | |
4862 | do | |
4863 | IFS=$as_save_IFS | |
4864 | test -z "$as_dir" && as_dir=. | |
4865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4867 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
4868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4869 | break 2 | |
4870 | fi | |
4871 | done | |
4872 | done | |
4873 | ||
c906108c | 4874 | fi |
bec39cab AC |
4875 | fi |
4876 | MIG=$ac_cv_prog_MIG | |
4877 | if test -n "$MIG"; then | |
b4e70030 JB |
4878 | echo "$as_me:$LINENO: result: $MIG" >&5 |
4879 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 4880 | else |
b4e70030 JB |
4881 | echo "$as_me:$LINENO: result: no" >&5 |
4882 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
4883 | fi |
4884 | ||
bec39cab AC |
4885 | fi |
4886 | if test -z "$ac_cv_prog_MIG"; then | |
4887 | ac_ct_MIG=$MIG | |
4888 | # Extract the first word of "mig", so it can be a program name with args. | |
4889 | set dummy mig; ac_word=$2 | |
b4e70030 JB |
4890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4892 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
4893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4894 | else | |
4895 | if test -n "$ac_ct_MIG"; then | |
4896 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
4897 | else | |
4898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4899 | for as_dir in $PATH | |
4900 | do | |
4901 | IFS=$as_save_IFS | |
4902 | test -z "$as_dir" && as_dir=. | |
4903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4905 | ac_cv_prog_ac_ct_MIG="mig" |
4906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4907 | break 2 | |
4908 | fi | |
4909 | done | |
4910 | done | |
c906108c | 4911 | |
bec39cab AC |
4912 | fi |
4913 | fi | |
4914 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
4915 | if test -n "$ac_ct_MIG"; then | |
b4e70030 JB |
4916 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
4917 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
bec39cab | 4918 | else |
b4e70030 JB |
4919 | echo "$as_me:$LINENO: result: no" >&5 |
4920 | echo "${ECHO_T}no" >&6 | |
bec39cab | 4921 | fi |
c906108c | 4922 | |
b4e70030 | 4923 | MIG=$ac_ct_MIG |
bec39cab AC |
4924 | else |
4925 | MIG="$ac_cv_prog_MIG" | |
4926 | fi | |
c906108c | 4927 | |
c906108c | 4928 | |
bec39cab AC |
4929 | # ---------------------- # |
4930 | # Checks for libraries. # | |
4931 | # ---------------------- # | |
c906108c | 4932 | |
bec39cab | 4933 | # We might need to link with -lm; most simulators need it. |
c906108c | 4934 | |
b4e70030 JB |
4935 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
4936 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
bec39cab AC |
4937 | if test "${ac_cv_lib_m_main+set}" = set; then |
4938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4939 | else | |
4940 | ac_check_lib_save_LIBS=$LIBS | |
4941 | LIBS="-lm $LIBS" | |
4942 | cat >conftest.$ac_ext <<_ACEOF | |
4943 | /* confdefs.h. */ | |
4944 | _ACEOF | |
4945 | cat confdefs.h >>conftest.$ac_ext | |
4946 | cat >>conftest.$ac_ext <<_ACEOF | |
4947 | /* end confdefs.h. */ | |
c906108c | 4948 | |
c906108c | 4949 | |
bec39cab AC |
4950 | int |
4951 | main () | |
4952 | { | |
b4e70030 | 4953 | main (); |
bec39cab AC |
4954 | ; |
4955 | return 0; | |
4956 | } | |
4957 | _ACEOF | |
4958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4960 | (eval $ac_link) 2>conftest.er1 | |
4961 | ac_status=$? | |
4962 | grep -v '^ *+' conftest.er1 >conftest.err | |
4963 | rm -f conftest.er1 | |
4964 | cat conftest.err >&5 | |
4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4966 | (exit $ac_status); } && | |
b4e70030 JB |
4967 | { ac_try='test -z "$ac_c_werror_flag" |
4968 | || test ! -s conftest.err' | |
bec39cab AC |
4969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4970 | (eval $ac_try) 2>&5 | |
4971 | ac_status=$? | |
4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4973 | (exit $ac_status); }; } && | |
4974 | { ac_try='test -s conftest$ac_exeext' | |
4975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4976 | (eval $ac_try) 2>&5 | |
4977 | ac_status=$? | |
4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4979 | (exit $ac_status); }; }; then | |
4980 | ac_cv_lib_m_main=yes | |
4981 | else | |
4982 | echo "$as_me: failed program was:" >&5 | |
4983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4984 | ||
b4e70030 | 4985 | ac_cv_lib_m_main=no |
bec39cab AC |
4986 | fi |
4987 | rm -f conftest.err conftest.$ac_objext \ | |
4988 | conftest$ac_exeext conftest.$ac_ext | |
4989 | LIBS=$ac_check_lib_save_LIBS | |
4990 | fi | |
b4e70030 JB |
4991 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
4992 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
bec39cab AC |
4993 | if test $ac_cv_lib_m_main = yes; then |
4994 | cat >>confdefs.h <<_ACEOF | |
4995 | #define HAVE_LIBM 1 | |
4996 | _ACEOF | |
4997 | ||
4998 | LIBS="-lm $LIBS" | |
c906108c | 4999 | |
c906108c | 5000 | fi |
bec39cab AC |
5001 | |
5002 | ||
5003 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
5004 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
5005 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
5006 | # is known to have this problem). Therefore we avoid libw if we can. | |
b4e70030 JB |
5007 | echo "$as_me:$LINENO: checking for wctype" >&5 |
5008 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
bec39cab AC |
5009 | if test "${ac_cv_func_wctype+set}" = set; then |
5010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5011 | else | |
5012 | cat >conftest.$ac_ext <<_ACEOF | |
5013 | /* confdefs.h. */ | |
5014 | _ACEOF | |
5015 | cat confdefs.h >>conftest.$ac_ext | |
5016 | cat >>conftest.$ac_ext <<_ACEOF | |
5017 | /* end confdefs.h. */ | |
5018 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
5019 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5020 | #define wctype innocuous_wctype | |
5021 | ||
5022 | /* System header to define __stub macros and hopefully few prototypes, | |
5023 | which can conflict with char wctype (); below. | |
5024 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5025 | <limits.h> exists even on freestanding compilers. */ | |
5026 | ||
5027 | #ifdef __STDC__ | |
5028 | # include <limits.h> | |
5029 | #else | |
5030 | # include <assert.h> | |
5031 | #endif | |
5032 | ||
5033 | #undef wctype | |
5034 | ||
b4e70030 | 5035 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5036 | #ifdef __cplusplus |
5037 | extern "C" | |
b4e70030 | 5038 | { |
bec39cab | 5039 | #endif |
b4e70030 JB |
5040 | /* We use char because int might match the return type of a gcc2 |
5041 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5042 | char wctype (); |
5043 | /* The GNU C library defines this for functions which it implements | |
5044 | to always fail with ENOSYS. Some functions are actually named | |
5045 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 5046 | #if defined (__stub_wctype) || defined (__stub___wctype) |
bec39cab | 5047 | choke me |
b4e70030 JB |
5048 | #else |
5049 | char (*f) () = wctype; | |
5050 | #endif | |
5051 | #ifdef __cplusplus | |
5052 | } | |
bec39cab AC |
5053 | #endif |
5054 | ||
5055 | int | |
5056 | main () | |
5057 | { | |
b4e70030 | 5058 | return f != wctype; |
bec39cab AC |
5059 | ; |
5060 | return 0; | |
5061 | } | |
5062 | _ACEOF | |
5063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5065 | (eval $ac_link) 2>conftest.er1 | |
5066 | ac_status=$? | |
5067 | grep -v '^ *+' conftest.er1 >conftest.err | |
5068 | rm -f conftest.er1 | |
5069 | cat conftest.err >&5 | |
5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5071 | (exit $ac_status); } && | |
b4e70030 JB |
5072 | { ac_try='test -z "$ac_c_werror_flag" |
5073 | || test ! -s conftest.err' | |
bec39cab AC |
5074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5075 | (eval $ac_try) 2>&5 | |
5076 | ac_status=$? | |
5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5078 | (exit $ac_status); }; } && | |
5079 | { ac_try='test -s conftest$ac_exeext' | |
5080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5081 | (eval $ac_try) 2>&5 | |
5082 | ac_status=$? | |
5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5084 | (exit $ac_status); }; }; then | |
5085 | ac_cv_func_wctype=yes | |
5086 | else | |
5087 | echo "$as_me: failed program was:" >&5 | |
5088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5089 | ||
b4e70030 | 5090 | ac_cv_func_wctype=no |
bec39cab AC |
5091 | fi |
5092 | rm -f conftest.err conftest.$ac_objext \ | |
5093 | conftest$ac_exeext conftest.$ac_ext | |
5094 | fi | |
b4e70030 JB |
5095 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
5096 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
bec39cab AC |
5097 | if test $ac_cv_func_wctype = yes; then |
5098 | : | |
c906108c | 5099 | else |
c906108c | 5100 | |
b4e70030 JB |
5101 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
5102 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
bec39cab AC |
5103 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
5104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5105 | else | |
5106 | ac_check_lib_save_LIBS=$LIBS | |
5107 | LIBS="-lw $LIBS" | |
5108 | cat >conftest.$ac_ext <<_ACEOF | |
5109 | /* confdefs.h. */ | |
5110 | _ACEOF | |
5111 | cat confdefs.h >>conftest.$ac_ext | |
5112 | cat >>conftest.$ac_ext <<_ACEOF | |
5113 | /* end confdefs.h. */ | |
c906108c | 5114 | |
b4e70030 | 5115 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5116 | #ifdef __cplusplus |
5117 | extern "C" | |
5118 | #endif | |
b4e70030 JB |
5119 | /* We use char because int might match the return type of a gcc2 |
5120 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5121 | char wctype (); |
5122 | int | |
5123 | main () | |
5124 | { | |
b4e70030 | 5125 | wctype (); |
bec39cab AC |
5126 | ; |
5127 | return 0; | |
5128 | } | |
5129 | _ACEOF | |
5130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5132 | (eval $ac_link) 2>conftest.er1 | |
5133 | ac_status=$? | |
5134 | grep -v '^ *+' conftest.er1 >conftest.err | |
5135 | rm -f conftest.er1 | |
5136 | cat conftest.err >&5 | |
5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5138 | (exit $ac_status); } && | |
b4e70030 JB |
5139 | { ac_try='test -z "$ac_c_werror_flag" |
5140 | || test ! -s conftest.err' | |
bec39cab AC |
5141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5142 | (eval $ac_try) 2>&5 | |
5143 | ac_status=$? | |
5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5145 | (exit $ac_status); }; } && | |
5146 | { ac_try='test -s conftest$ac_exeext' | |
5147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5148 | (eval $ac_try) 2>&5 | |
5149 | ac_status=$? | |
5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5151 | (exit $ac_status); }; }; then | |
5152 | ac_cv_lib_w_wctype=yes | |
5153 | else | |
5154 | echo "$as_me: failed program was:" >&5 | |
5155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5156 | ||
b4e70030 | 5157 | ac_cv_lib_w_wctype=no |
bec39cab AC |
5158 | fi |
5159 | rm -f conftest.err conftest.$ac_objext \ | |
5160 | conftest$ac_exeext conftest.$ac_ext | |
5161 | LIBS=$ac_check_lib_save_LIBS | |
5162 | fi | |
b4e70030 JB |
5163 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
5164 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
bec39cab AC |
5165 | if test $ac_cv_lib_w_wctype = yes; then |
5166 | cat >>confdefs.h <<_ACEOF | |
5167 | #define HAVE_LIBW 1 | |
5168 | _ACEOF | |
c906108c | 5169 | |
bec39cab | 5170 | LIBS="-lw $LIBS" |
c906108c | 5171 | |
bec39cab | 5172 | fi |
c906108c | 5173 | |
bec39cab | 5174 | fi |
c906108c | 5175 | |
ddc9cd0f | 5176 | |
bec39cab | 5177 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
b4e70030 JB |
5178 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
5179 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
bec39cab AC |
5180 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
5181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5182 | else | |
5183 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5184 | ac_cv_search_gethostbyname=no |
bec39cab AC |
5185 | cat >conftest.$ac_ext <<_ACEOF |
5186 | /* confdefs.h. */ | |
5187 | _ACEOF | |
5188 | cat confdefs.h >>conftest.$ac_ext | |
5189 | cat >>conftest.$ac_ext <<_ACEOF | |
5190 | /* end confdefs.h. */ | |
ddc9cd0f | 5191 | |
b4e70030 | 5192 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5193 | #ifdef __cplusplus |
5194 | extern "C" | |
5195 | #endif | |
b4e70030 JB |
5196 | /* We use char because int might match the return type of a gcc2 |
5197 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5198 | char gethostbyname (); |
5199 | int | |
5200 | main () | |
5201 | { | |
b4e70030 | 5202 | gethostbyname (); |
bec39cab AC |
5203 | ; |
5204 | return 0; | |
5205 | } | |
5206 | _ACEOF | |
b4e70030 | 5207 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5209 | (eval $ac_link) 2>conftest.er1 | |
5210 | ac_status=$? | |
5211 | grep -v '^ *+' conftest.er1 >conftest.err | |
5212 | rm -f conftest.er1 | |
5213 | cat conftest.err >&5 | |
5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5215 | (exit $ac_status); } && | |
b4e70030 JB |
5216 | { ac_try='test -z "$ac_c_werror_flag" |
5217 | || test ! -s conftest.err' | |
bec39cab AC |
5218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5219 | (eval $ac_try) 2>&5 | |
5220 | ac_status=$? | |
5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5222 | (exit $ac_status); }; } && | |
5223 | { ac_try='test -s conftest$ac_exeext' | |
5224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5225 | (eval $ac_try) 2>&5 | |
5226 | ac_status=$? | |
5227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5228 | (exit $ac_status); }; }; then | |
b4e70030 | 5229 | ac_cv_search_gethostbyname="none required" |
bec39cab AC |
5230 | else |
5231 | echo "$as_me: failed program was:" >&5 | |
5232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 5233 | |
bec39cab AC |
5234 | fi |
5235 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5236 | conftest$ac_exeext conftest.$ac_ext |
5237 | if test "$ac_cv_search_gethostbyname" = no; then | |
5238 | for ac_lib in nsl; do | |
5239 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5240 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
5241 | /* confdefs.h. */ |
5242 | _ACEOF | |
5243 | cat confdefs.h >>conftest.$ac_ext | |
5244 | cat >>conftest.$ac_ext <<_ACEOF | |
5245 | /* end confdefs.h. */ | |
ddc9cd0f | 5246 | |
b4e70030 | 5247 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5248 | #ifdef __cplusplus |
5249 | extern "C" | |
5250 | #endif | |
b4e70030 JB |
5251 | /* We use char because int might match the return type of a gcc2 |
5252 | builtin and then its argument prototype would still apply. */ | |
5253 | char gethostbyname (); | |
bec39cab AC |
5254 | int |
5255 | main () | |
5256 | { | |
b4e70030 | 5257 | gethostbyname (); |
bec39cab AC |
5258 | ; |
5259 | return 0; | |
5260 | } | |
5261 | _ACEOF | |
b4e70030 | 5262 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5264 | (eval $ac_link) 2>conftest.er1 | |
5265 | ac_status=$? | |
5266 | grep -v '^ *+' conftest.er1 >conftest.err | |
5267 | rm -f conftest.er1 | |
5268 | cat conftest.err >&5 | |
5269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5270 | (exit $ac_status); } && | |
b4e70030 JB |
5271 | { ac_try='test -z "$ac_c_werror_flag" |
5272 | || test ! -s conftest.err' | |
bec39cab AC |
5273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5274 | (eval $ac_try) 2>&5 | |
5275 | ac_status=$? | |
5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5277 | (exit $ac_status); }; } && | |
5278 | { ac_try='test -s conftest$ac_exeext' | |
5279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5280 | (eval $ac_try) 2>&5 | |
5281 | ac_status=$? | |
5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5283 | (exit $ac_status); }; }; then | |
b4e70030 JB |
5284 | ac_cv_search_gethostbyname="-l$ac_lib" |
5285 | break | |
bec39cab AC |
5286 | else |
5287 | echo "$as_me: failed program was:" >&5 | |
5288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5289 | ||
5290 | fi | |
5291 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5292 | conftest$ac_exeext conftest.$ac_ext |
5293 | done | |
bec39cab AC |
5294 | fi |
5295 | LIBS=$ac_func_search_save_LIBS | |
5296 | fi | |
b4e70030 JB |
5297 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
5298 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
5299 | if test "$ac_cv_search_gethostbyname" != no; then | |
5300 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
96baa820 | 5301 | |
bec39cab | 5302 | fi |
96baa820 | 5303 | |
c906108c | 5304 | |
b4e70030 JB |
5305 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
5306 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
5307 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
5308 | if test "${ac_cv_search_socketpair+set}" = set; then | |
5309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5310 | else | |
5311 | ac_func_search_save_LIBS=$LIBS | |
5312 | ac_cv_search_socketpair=no | |
5313 | cat >conftest.$ac_ext <<_ACEOF | |
5314 | /* confdefs.h. */ | |
5315 | _ACEOF | |
5316 | cat confdefs.h >>conftest.$ac_ext | |
5317 | cat >>conftest.$ac_ext <<_ACEOF | |
5318 | /* end confdefs.h. */ | |
5319 | ||
5320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5321 | #ifdef __cplusplus | |
5322 | extern "C" | |
5323 | #endif | |
5324 | /* We use char because int might match the return type of a gcc2 | |
5325 | builtin and then its argument prototype would still apply. */ | |
5326 | char socketpair (); | |
5327 | int | |
5328 | main () | |
5329 | { | |
5330 | socketpair (); | |
5331 | ; | |
5332 | return 0; | |
5333 | } | |
5334 | _ACEOF | |
5335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5337 | (eval $ac_link) 2>conftest.er1 | |
5338 | ac_status=$? | |
5339 | grep -v '^ *+' conftest.er1 >conftest.err | |
5340 | rm -f conftest.er1 | |
5341 | cat conftest.err >&5 | |
5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5343 | (exit $ac_status); } && | |
5344 | { ac_try='test -z "$ac_c_werror_flag" | |
5345 | || test ! -s conftest.err' | |
5346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5347 | (eval $ac_try) 2>&5 | |
5348 | ac_status=$? | |
5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5350 | (exit $ac_status); }; } && | |
5351 | { ac_try='test -s conftest$ac_exeext' | |
5352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5353 | (eval $ac_try) 2>&5 | |
5354 | ac_status=$? | |
5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5356 | (exit $ac_status); }; }; then | |
5357 | ac_cv_search_socketpair="none required" | |
5358 | else | |
5359 | echo "$as_me: failed program was:" >&5 | |
5360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5361 | ||
5362 | fi | |
5363 | rm -f conftest.err conftest.$ac_objext \ | |
5364 | conftest$ac_exeext conftest.$ac_ext | |
5365 | if test "$ac_cv_search_socketpair" = no; then | |
5366 | for ac_lib in socket; do | |
5367 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5368 | cat >conftest.$ac_ext <<_ACEOF | |
5369 | /* confdefs.h. */ | |
5370 | _ACEOF | |
5371 | cat confdefs.h >>conftest.$ac_ext | |
5372 | cat >>conftest.$ac_ext <<_ACEOF | |
5373 | /* end confdefs.h. */ | |
5374 | ||
5375 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5376 | #ifdef __cplusplus | |
5377 | extern "C" | |
5378 | #endif | |
5379 | /* We use char because int might match the return type of a gcc2 | |
5380 | builtin and then its argument prototype would still apply. */ | |
5381 | char socketpair (); | |
5382 | int | |
5383 | main () | |
5384 | { | |
5385 | socketpair (); | |
5386 | ; | |
5387 | return 0; | |
5388 | } | |
5389 | _ACEOF | |
5390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5392 | (eval $ac_link) 2>conftest.er1 | |
5393 | ac_status=$? | |
5394 | grep -v '^ *+' conftest.er1 >conftest.err | |
5395 | rm -f conftest.er1 | |
5396 | cat conftest.err >&5 | |
5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5398 | (exit $ac_status); } && | |
5399 | { ac_try='test -z "$ac_c_werror_flag" | |
5400 | || test ! -s conftest.err' | |
5401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5402 | (eval $ac_try) 2>&5 | |
5403 | ac_status=$? | |
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5405 | (exit $ac_status); }; } && | |
5406 | { ac_try='test -s conftest$ac_exeext' | |
5407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5408 | (eval $ac_try) 2>&5 | |
5409 | ac_status=$? | |
5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5411 | (exit $ac_status); }; }; then | |
5412 | ac_cv_search_socketpair="-l$ac_lib" | |
5413 | break | |
5414 | else | |
5415 | echo "$as_me: failed program was:" >&5 | |
5416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5417 | ||
5418 | fi | |
5419 | rm -f conftest.err conftest.$ac_objext \ | |
5420 | conftest$ac_exeext conftest.$ac_ext | |
5421 | done | |
5422 | fi | |
5423 | LIBS=$ac_func_search_save_LIBS | |
5424 | fi | |
5425 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
5426 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
5427 | if test "$ac_cv_search_socketpair" != no; then | |
5428 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
5429 | ||
5430 | fi | |
5431 | ||
5432 | ||
5433 | # For the TUI, we need enhanced curses functionality. | |
bec39cab AC |
5434 | # |
5435 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
5436 | # curses library because the latter might not provide all the | |
5437 | # functionality we need. However, this leads to problems on systems | |
5438 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
5439 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
5440 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
5441 | # a situation. | |
b4e70030 JB |
5442 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
5443 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
bec39cab AC |
5444 | if test "${ac_cv_search_waddstr+set}" = set; then |
5445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5446 | else | |
5447 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5448 | ac_cv_search_waddstr=no |
bec39cab AC |
5449 | cat >conftest.$ac_ext <<_ACEOF |
5450 | /* confdefs.h. */ | |
5451 | _ACEOF | |
5452 | cat confdefs.h >>conftest.$ac_ext | |
5453 | cat >>conftest.$ac_ext <<_ACEOF | |
5454 | /* end confdefs.h. */ | |
c906108c | 5455 | |
b4e70030 | 5456 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5457 | #ifdef __cplusplus |
5458 | extern "C" | |
5459 | #endif | |
b4e70030 JB |
5460 | /* We use char because int might match the return type of a gcc2 |
5461 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5462 | char waddstr (); |
5463 | int | |
5464 | main () | |
5465 | { | |
b4e70030 | 5466 | waddstr (); |
bec39cab AC |
5467 | ; |
5468 | return 0; | |
5469 | } | |
5470 | _ACEOF | |
b4e70030 | 5471 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5473 | (eval $ac_link) 2>conftest.er1 | |
5474 | ac_status=$? | |
5475 | grep -v '^ *+' conftest.er1 >conftest.err | |
5476 | rm -f conftest.er1 | |
5477 | cat conftest.err >&5 | |
5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5479 | (exit $ac_status); } && | |
b4e70030 JB |
5480 | { ac_try='test -z "$ac_c_werror_flag" |
5481 | || test ! -s conftest.err' | |
bec39cab AC |
5482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5483 | (eval $ac_try) 2>&5 | |
5484 | ac_status=$? | |
5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5486 | (exit $ac_status); }; } && | |
5487 | { ac_try='test -s conftest$ac_exeext' | |
5488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5489 | (eval $ac_try) 2>&5 | |
5490 | ac_status=$? | |
5491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5492 | (exit $ac_status); }; }; then | |
b4e70030 | 5493 | ac_cv_search_waddstr="none required" |
bec39cab AC |
5494 | else |
5495 | echo "$as_me: failed program was:" >&5 | |
5496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
5497 | |
5498 | fi | |
bec39cab | 5499 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5500 | conftest$ac_exeext conftest.$ac_ext |
5501 | if test "$ac_cv_search_waddstr" = no; then | |
5502 | for ac_lib in ncurses cursesX curses; do | |
5503 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5504 | cat >conftest.$ac_ext <<_ACEOF | |
5505 | /* confdefs.h. */ | |
5506 | _ACEOF | |
5507 | cat confdefs.h >>conftest.$ac_ext | |
5508 | cat >>conftest.$ac_ext <<_ACEOF | |
5509 | /* end confdefs.h. */ | |
5510 | ||
5511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5512 | #ifdef __cplusplus | |
5513 | extern "C" | |
5514 | #endif | |
5515 | /* We use char because int might match the return type of a gcc2 | |
5516 | builtin and then its argument prototype would still apply. */ | |
5517 | char waddstr (); | |
5518 | int | |
5519 | main () | |
5520 | { | |
5521 | waddstr (); | |
5522 | ; | |
5523 | return 0; | |
5524 | } | |
5525 | _ACEOF | |
5526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5528 | (eval $ac_link) 2>conftest.er1 | |
5529 | ac_status=$? | |
5530 | grep -v '^ *+' conftest.er1 >conftest.err | |
5531 | rm -f conftest.er1 | |
5532 | cat conftest.err >&5 | |
5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5534 | (exit $ac_status); } && | |
5535 | { ac_try='test -z "$ac_c_werror_flag" | |
5536 | || test ! -s conftest.err' | |
5537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5538 | (eval $ac_try) 2>&5 | |
5539 | ac_status=$? | |
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5541 | (exit $ac_status); }; } && | |
5542 | { ac_try='test -s conftest$ac_exeext' | |
5543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5544 | (eval $ac_try) 2>&5 | |
5545 | ac_status=$? | |
5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5547 | (exit $ac_status); }; }; then | |
5548 | ac_cv_search_waddstr="-l$ac_lib" | |
5549 | break | |
4e8d927d | 5550 | else |
b4e70030 JB |
5551 | echo "$as_me: failed program was:" >&5 |
5552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5553 | ||
5554 | fi | |
5555 | rm -f conftest.err conftest.$ac_objext \ | |
5556 | conftest$ac_exeext conftest.$ac_ext | |
5557 | done | |
1ba607ad | 5558 | fi |
bec39cab AC |
5559 | LIBS=$ac_func_search_save_LIBS |
5560 | fi | |
b4e70030 JB |
5561 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
5562 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
5563 | if test "$ac_cv_search_waddstr" != no; then | |
5564 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 5565 | |
8bb2c122 | 5566 | fi |
8bb2c122 | 5567 | |
8bb2c122 | 5568 | |
bec39cab AC |
5569 | # Since GDB uses Readline, we need termcap functionality. In many |
5570 | # cases this will be provided by the curses library, but some systems | |
5571 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 5572 | |
bec39cab AC |
5573 | case $host_os in |
5574 | cygwin*) | |
5575 | if test -d $srcdir/libtermcap; then | |
5576 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
5577 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
5578 | fi ;; | |
5579 | go32* | *djgpp*) | |
5580 | ac_cv_search_tgetent="none required" | |
5581 | ;; | |
7ef34f2c MM |
5582 | *mingw32*) |
5583 | ac_cv_search_tgetent="none required" | |
5584 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
5585 | ;; | |
bec39cab | 5586 | esac |
627af7ea | 5587 | |
bec39cab | 5588 | # These are the libraries checked by Readline. |
b4e70030 JB |
5589 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
5590 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
bec39cab AC |
5591 | if test "${ac_cv_search_tgetent+set}" = set; then |
5592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5593 | else | |
5594 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5595 | ac_cv_search_tgetent=no |
bec39cab AC |
5596 | cat >conftest.$ac_ext <<_ACEOF |
5597 | /* confdefs.h. */ | |
5598 | _ACEOF | |
5599 | cat confdefs.h >>conftest.$ac_ext | |
5600 | cat >>conftest.$ac_ext <<_ACEOF | |
5601 | /* end confdefs.h. */ | |
5602 | ||
b4e70030 | 5603 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5604 | #ifdef __cplusplus |
5605 | extern "C" | |
5606 | #endif | |
b4e70030 JB |
5607 | /* We use char because int might match the return type of a gcc2 |
5608 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5609 | char tgetent (); |
5610 | int | |
5611 | main () | |
5612 | { | |
b4e70030 | 5613 | tgetent (); |
bec39cab AC |
5614 | ; |
5615 | return 0; | |
5616 | } | |
5617 | _ACEOF | |
b4e70030 | 5618 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5620 | (eval $ac_link) 2>conftest.er1 | |
5621 | ac_status=$? | |
5622 | grep -v '^ *+' conftest.er1 >conftest.err | |
5623 | rm -f conftest.er1 | |
5624 | cat conftest.err >&5 | |
5625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5626 | (exit $ac_status); } && | |
b4e70030 JB |
5627 | { ac_try='test -z "$ac_c_werror_flag" |
5628 | || test ! -s conftest.err' | |
bec39cab AC |
5629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5630 | (eval $ac_try) 2>&5 | |
5631 | ac_status=$? | |
5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5633 | (exit $ac_status); }; } && | |
5634 | { ac_try='test -s conftest$ac_exeext' | |
5635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5636 | (eval $ac_try) 2>&5 | |
5637 | ac_status=$? | |
5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5639 | (exit $ac_status); }; }; then | |
b4e70030 | 5640 | ac_cv_search_tgetent="none required" |
627af7ea | 5641 | else |
bec39cab AC |
5642 | echo "$as_me: failed program was:" >&5 |
5643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 5644 | |
627af7ea | 5645 | fi |
bec39cab | 5646 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5647 | conftest$ac_exeext conftest.$ac_ext |
5648 | if test "$ac_cv_search_tgetent" = no; then | |
5649 | for ac_lib in termcap tinfo curses ncurses; do | |
5650 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5651 | cat >conftest.$ac_ext <<_ACEOF | |
5652 | /* confdefs.h. */ | |
5653 | _ACEOF | |
5654 | cat confdefs.h >>conftest.$ac_ext | |
5655 | cat >>conftest.$ac_ext <<_ACEOF | |
5656 | /* end confdefs.h. */ | |
5657 | ||
5658 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5659 | #ifdef __cplusplus | |
5660 | extern "C" | |
5661 | #endif | |
5662 | /* We use char because int might match the return type of a gcc2 | |
5663 | builtin and then its argument prototype would still apply. */ | |
5664 | char tgetent (); | |
5665 | int | |
5666 | main () | |
5667 | { | |
5668 | tgetent (); | |
5669 | ; | |
5670 | return 0; | |
5671 | } | |
5672 | _ACEOF | |
5673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5675 | (eval $ac_link) 2>conftest.er1 | |
5676 | ac_status=$? | |
5677 | grep -v '^ *+' conftest.er1 >conftest.err | |
5678 | rm -f conftest.er1 | |
5679 | cat conftest.err >&5 | |
5680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5681 | (exit $ac_status); } && | |
5682 | { ac_try='test -z "$ac_c_werror_flag" | |
5683 | || test ! -s conftest.err' | |
5684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5685 | (eval $ac_try) 2>&5 | |
5686 | ac_status=$? | |
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5688 | (exit $ac_status); }; } && | |
5689 | { ac_try='test -s conftest$ac_exeext' | |
5690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5691 | (eval $ac_try) 2>&5 | |
5692 | ac_status=$? | |
5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5694 | (exit $ac_status); }; }; then | |
5695 | ac_cv_search_tgetent="-l$ac_lib" | |
5696 | break | |
4e8d927d | 5697 | else |
b4e70030 JB |
5698 | echo "$as_me: failed program was:" >&5 |
5699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5700 | ||
5701 | fi | |
5702 | rm -f conftest.err conftest.$ac_objext \ | |
5703 | conftest$ac_exeext conftest.$ac_ext | |
5704 | done | |
bec39cab AC |
5705 | fi |
5706 | LIBS=$ac_func_search_save_LIBS | |
5707 | fi | |
b4e70030 JB |
5708 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
5709 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
5710 | if test "$ac_cv_search_tgetent" != no; then | |
5711 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 5712 | |
06825bd1 MK |
5713 | fi |
5714 | ||
06825bd1 | 5715 | |
bec39cab AC |
5716 | if test "$ac_cv_search_tgetent" = no; then |
5717 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
5718 | echo "$as_me: error: no termcap library found" >&2;} | |
5719 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
5720 | fi |
5721 | ||
3841debe | 5722 | |
6a30b0a5 AS |
5723 | # Check whether --with-system-readline or --without-system-readline was given. |
5724 | if test "${with_system_readline+set}" = set; then | |
5725 | withval="$with_system_readline" | |
5726 | ||
5727 | fi; | |
5728 | ||
5729 | if test "$with_system_readline" = yes; then | |
5730 | READLINE=-lreadline | |
5731 | READLINE_DEPS= | |
5732 | READLINE_CFLAGS= | |
5733 | else | |
5734 | READLINE='$(READLINE_DIR)/libreadline.a' | |
5735 | READLINE_DEPS='$(READLINE)' | |
5736 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' | |
5737 | fi | |
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5c39566f DJ |
5743 | # Check whether --with-expat or --without-expat was given. |
5744 | if test "${with_expat+set}" = set; then | |
5745 | withval="$with_expat" | |
5746 | ||
5747 | else | |
5748 | with_expat=auto | |
5749 | fi; | |
5750 | echo "$as_me:$LINENO: checking whether to use expat" >&5 | |
5751 | echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6 | |
5752 | echo "$as_me:$LINENO: result: $with_expat" >&5 | |
5753 | echo "${ECHO_T}$with_expat" >&6 | |
5754 | ||
5755 | if test "${with_expat}" = no; then | |
5756 | { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5 | |
5757 | echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} | |
5758 | HAVE_LIBEXPAT=no | |
5759 | else | |
5760 | ||
3841debe DJ |
5761 | if test "X$prefix" = "XNONE"; then |
5762 | acl_final_prefix="$ac_default_prefix" | |
5763 | else | |
5764 | acl_final_prefix="$prefix" | |
5765 | fi | |
5766 | if test "X$exec_prefix" = "XNONE"; then | |
5767 | acl_final_exec_prefix='${prefix}' | |
5768 | else | |
5769 | acl_final_exec_prefix="$exec_prefix" | |
5770 | fi | |
5771 | acl_save_prefix="$prefix" | |
5772 | prefix="$acl_final_prefix" | |
5773 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
5774 | prefix="$acl_save_prefix" | |
5775 | ||
5776 | ||
5777 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5778 | if test "${with_gnu_ld+set}" = set; then | |
5779 | withval="$with_gnu_ld" | |
5780 | test "$withval" = no || with_gnu_ld=yes | |
5781 | else | |
5782 | with_gnu_ld=no | |
5783 | fi; | |
5784 | # Prepare PATH_SEPARATOR. | |
5785 | # The user is always right. | |
5786 | if test "${PATH_SEPARATOR+set}" != set; then | |
5787 | echo "#! /bin/sh" >conf$$.sh | |
5788 | echo "exit 0" >>conf$$.sh | |
5789 | chmod +x conf$$.sh | |
5790 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5791 | PATH_SEPARATOR=';' | |
5792 | else | |
5793 | PATH_SEPARATOR=: | |
5794 | fi | |
5795 | rm -f conf$$.sh | |
5796 | fi | |
5797 | ac_prog=ld | |
5798 | if test "$GCC" = yes; then | |
5799 | # Check if gcc -print-prog-name=ld gives a path. | |
5800 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
5801 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
5802 | case $host in | |
5803 | *-*-mingw*) | |
5804 | # gcc leaves a trailing carriage return which upsets mingw | |
5805 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5806 | *) | |
5807 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5808 | esac | |
5809 | case $ac_prog in | |
5810 | # Accept absolute paths. | |
5811 | [\\/]* | [A-Za-z]:[\\/]*) | |
5812 | re_direlt='/[^/][^/]*/\.\./' | |
5813 | # Canonicalize the path of ld | |
5814 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
5815 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5816 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5817 | done | |
5818 | test -z "$LD" && LD="$ac_prog" | |
5819 | ;; | |
5820 | "") | |
5821 | # If it fails, then pretend we aren't using GCC. | |
5822 | ac_prog=ld | |
5823 | ;; | |
5824 | *) | |
5825 | # If it is relative, then search for the first ld in PATH. | |
5826 | with_gnu_ld=unknown | |
5827 | ;; | |
5828 | esac | |
5829 | elif test "$with_gnu_ld" = yes; then | |
5830 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5831 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5832 | else | |
5833 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5834 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5835 | fi | |
5836 | if test "${acl_cv_path_LD+set}" = set; then | |
5837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5838 | else | |
5839 | if test -z "$LD"; then | |
5840 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
5841 | for ac_dir in $PATH; do | |
5842 | test -z "$ac_dir" && ac_dir=. | |
5843 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5844 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
5845 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5846 | # but apparently some GNU ld's only accept -v. | |
5847 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5848 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
5849 | test "$with_gnu_ld" != no && break | |
5850 | else | |
5851 | test "$with_gnu_ld" != yes && break | |
5852 | fi | |
5853 | fi | |
5854 | done | |
5855 | IFS="$ac_save_ifs" | |
5856 | else | |
5857 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
5858 | fi | |
5859 | fi | |
5860 | ||
5861 | LD="$acl_cv_path_LD" | |
5862 | if test -n "$LD"; then | |
5863 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5864 | echo "${ECHO_T}$LD" >&6 | |
5865 | else | |
5866 | echo "$as_me:$LINENO: result: no" >&5 | |
5867 | echo "${ECHO_T}no" >&6 | |
5868 | fi | |
5869 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5870 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5871 | { (exit 1); exit 1; }; } | |
5872 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5873 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5874 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
5875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5876 | else | |
5877 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5878 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
5879 | acl_cv_prog_gnu_ld=yes | |
5880 | else | |
5881 | acl_cv_prog_gnu_ld=no | |
5882 | fi | |
5883 | fi | |
5884 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
5885 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
5886 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
5887 | ||
5888 | ||
5889 | ||
5890 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
5891 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
5892 | if test "${acl_cv_rpath+set}" = set; then | |
5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5894 | else | |
5895 | ||
5896 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
5897 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
5898 | . ./conftest.sh | |
5899 | rm -f ./conftest.sh | |
5900 | acl_cv_rpath=done | |
5901 | ||
5902 | fi | |
5903 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
5904 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
5905 | wl="$acl_cv_wl" | |
5906 | libext="$acl_cv_libext" | |
5907 | shlibext="$acl_cv_shlibext" | |
5908 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
5909 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
5910 | hardcode_direct="$acl_cv_hardcode_direct" | |
5911 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5912 | # Check whether --enable-rpath or --disable-rpath was given. | |
5913 | if test "${enable_rpath+set}" = set; then | |
5914 | enableval="$enable_rpath" | |
5915 | : | |
5916 | else | |
5917 | enable_rpath=yes | |
5918 | fi; | |
5919 | ||
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | ||
5925 | ||
5926 | ||
5927 | ||
5928 | use_additional=yes | |
5929 | ||
5930 | acl_save_prefix="$prefix" | |
5931 | prefix="$acl_final_prefix" | |
5932 | acl_save_exec_prefix="$exec_prefix" | |
5933 | exec_prefix="$acl_final_exec_prefix" | |
5934 | ||
5935 | eval additional_includedir=\"$includedir\" | |
5936 | eval additional_libdir=\"$libdir\" | |
5937 | ||
5938 | exec_prefix="$acl_save_exec_prefix" | |
5939 | prefix="$acl_save_prefix" | |
5940 | ||
5941 | ||
5942 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. | |
5943 | if test "${with_libexpat_prefix+set}" = set; then | |
5944 | withval="$with_libexpat_prefix" | |
5945 | ||
5946 | if test "X$withval" = "Xno"; then | |
5947 | use_additional=no | |
5948 | else | |
5949 | if test "X$withval" = "X"; then | |
5950 | ||
5951 | acl_save_prefix="$prefix" | |
5952 | prefix="$acl_final_prefix" | |
5953 | acl_save_exec_prefix="$exec_prefix" | |
5954 | exec_prefix="$acl_final_exec_prefix" | |
5955 | ||
5956 | eval additional_includedir=\"$includedir\" | |
5957 | eval additional_libdir=\"$libdir\" | |
5958 | ||
5959 | exec_prefix="$acl_save_exec_prefix" | |
5960 | prefix="$acl_save_prefix" | |
5961 | ||
5962 | else | |
5963 | additional_includedir="$withval/include" | |
5964 | additional_libdir="$withval/lib" | |
5965 | fi | |
5966 | fi | |
5967 | ||
5968 | fi; | |
5969 | LIBEXPAT= | |
5970 | LTLIBEXPAT= | |
5971 | INCEXPAT= | |
5972 | rpathdirs= | |
5973 | ltrpathdirs= | |
5974 | names_already_handled= | |
5975 | names_next_round='expat ' | |
5976 | while test -n "$names_next_round"; do | |
5977 | names_this_round="$names_next_round" | |
5978 | names_next_round= | |
5979 | for name in $names_this_round; do | |
5980 | already_handled= | |
5981 | for n in $names_already_handled; do | |
5982 | if test "$n" = "$name"; then | |
5983 | already_handled=yes | |
5984 | break | |
5985 | fi | |
5986 | done | |
5987 | if test -z "$already_handled"; then | |
5988 | names_already_handled="$names_already_handled $name" | |
5989 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
5990 | eval value=\"\$HAVE_LIB$uppername\" | |
5991 | if test -n "$value"; then | |
5992 | if test "$value" = yes; then | |
5993 | eval value=\"\$LIB$uppername\" | |
5994 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" | |
5995 | eval value=\"\$LTLIB$uppername\" | |
5996 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" | |
5997 | else | |
5998 | : | |
5999 | fi | |
6000 | else | |
6001 | found_dir= | |
6002 | found_la= | |
6003 | found_so= | |
6004 | found_a= | |
6005 | if test $use_additional = yes; then | |
6006 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
6007 | found_dir="$additional_libdir" | |
6008 | found_so="$additional_libdir/lib$name.$shlibext" | |
6009 | if test -f "$additional_libdir/lib$name.la"; then | |
6010 | found_la="$additional_libdir/lib$name.la" | |
6011 | fi | |
6012 | else | |
6013 | if test -f "$additional_libdir/lib$name.$libext"; then | |
6014 | found_dir="$additional_libdir" | |
6015 | found_a="$additional_libdir/lib$name.$libext" | |
6016 | if test -f "$additional_libdir/lib$name.la"; then | |
6017 | found_la="$additional_libdir/lib$name.la" | |
6018 | fi | |
6019 | fi | |
6020 | fi | |
6021 | fi | |
6022 | if test "X$found_dir" = "X"; then | |
6023 | for x in $LDFLAGS $LTLIBEXPAT; do | |
6024 | ||
6025 | acl_save_prefix="$prefix" | |
6026 | prefix="$acl_final_prefix" | |
6027 | acl_save_exec_prefix="$exec_prefix" | |
6028 | exec_prefix="$acl_final_exec_prefix" | |
6029 | eval x=\"$x\" | |
6030 | exec_prefix="$acl_save_exec_prefix" | |
6031 | prefix="$acl_save_prefix" | |
6032 | ||
6033 | case "$x" in | |
6034 | -L*) | |
6035 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
6036 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
6037 | found_dir="$dir" | |
6038 | found_so="$dir/lib$name.$shlibext" | |
6039 | if test -f "$dir/lib$name.la"; then | |
6040 | found_la="$dir/lib$name.la" | |
6041 | fi | |
6042 | else | |
6043 | if test -f "$dir/lib$name.$libext"; then | |
6044 | found_dir="$dir" | |
6045 | found_a="$dir/lib$name.$libext" | |
6046 | if test -f "$dir/lib$name.la"; then | |
6047 | found_la="$dir/lib$name.la" | |
6048 | fi | |
6049 | fi | |
6050 | fi | |
6051 | ;; | |
6052 | esac | |
6053 | if test "X$found_dir" != "X"; then | |
6054 | break | |
6055 | fi | |
6056 | done | |
6057 | fi | |
6058 | if test "X$found_dir" != "X"; then | |
6059 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" | |
6060 | if test "X$found_so" != "X"; then | |
6061 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
6062 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6063 | else | |
6064 | haveit= | |
6065 | for x in $ltrpathdirs; do | |
6066 | if test "X$x" = "X$found_dir"; then | |
6067 | haveit=yes | |
6068 | break | |
6069 | fi | |
6070 | done | |
6071 | if test -z "$haveit"; then | |
6072 | ltrpathdirs="$ltrpathdirs $found_dir" | |
6073 | fi | |
6074 | if test "$hardcode_direct" = yes; then | |
6075 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6076 | else | |
6077 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
6078 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6079 | haveit= | |
6080 | for x in $rpathdirs; do | |
6081 | if test "X$x" = "X$found_dir"; then | |
6082 | haveit=yes | |
6083 | break | |
6084 | fi | |
6085 | done | |
6086 | if test -z "$haveit"; then | |
6087 | rpathdirs="$rpathdirs $found_dir" | |
6088 | fi | |
6089 | else | |
6090 | haveit= | |
6091 | for x in $LDFLAGS $LIBEXPAT; do | |
6092 | ||
6093 | acl_save_prefix="$prefix" | |
6094 | prefix="$acl_final_prefix" | |
6095 | acl_save_exec_prefix="$exec_prefix" | |
6096 | exec_prefix="$acl_final_exec_prefix" | |
6097 | eval x=\"$x\" | |
6098 | exec_prefix="$acl_save_exec_prefix" | |
6099 | prefix="$acl_save_prefix" | |
6100 | ||
6101 | if test "X$x" = "X-L$found_dir"; then | |
6102 | haveit=yes | |
6103 | break | |
6104 | fi | |
6105 | done | |
6106 | if test -z "$haveit"; then | |
6107 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" | |
6108 | fi | |
6109 | if test "$hardcode_minus_L" != no; then | |
6110 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6111 | else | |
6112 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6113 | fi | |
6114 | fi | |
6115 | fi | |
6116 | fi | |
6117 | else | |
6118 | if test "X$found_a" != "X"; then | |
6119 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" | |
6120 | else | |
6121 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" | |
6122 | fi | |
6123 | fi | |
6124 | additional_includedir= | |
6125 | case "$found_dir" in | |
6126 | */lib | */lib/) | |
6127 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
6128 | additional_includedir="$basedir/include" | |
6129 | ;; | |
6130 | esac | |
6131 | if test "X$additional_includedir" != "X"; then | |
6132 | if test "X$additional_includedir" != "X/usr/include"; then | |
6133 | haveit= | |
6134 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
6135 | if test -n "$GCC"; then | |
6136 | case $host_os in | |
6137 | linux*) haveit=yes;; | |
6138 | esac | |
6139 | fi | |
6140 | fi | |
6141 | if test -z "$haveit"; then | |
6142 | for x in $CPPFLAGS $INCEXPAT; do | |
6143 | ||
6144 | acl_save_prefix="$prefix" | |
6145 | prefix="$acl_final_prefix" | |
6146 | acl_save_exec_prefix="$exec_prefix" | |
6147 | exec_prefix="$acl_final_exec_prefix" | |
6148 | eval x=\"$x\" | |
6149 | exec_prefix="$acl_save_exec_prefix" | |
6150 | prefix="$acl_save_prefix" | |
6151 | ||
6152 | if test "X$x" = "X-I$additional_includedir"; then | |
6153 | haveit=yes | |
6154 | break | |
6155 | fi | |
6156 | done | |
6157 | if test -z "$haveit"; then | |
6158 | if test -d "$additional_includedir"; then | |
6159 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" | |
6160 | fi | |
6161 | fi | |
6162 | fi | |
6163 | fi | |
6164 | fi | |
6165 | if test -n "$found_la"; then | |
6166 | save_libdir="$libdir" | |
6167 | case "$found_la" in | |
6168 | */* | *\\*) . "$found_la" ;; | |
6169 | *) . "./$found_la" ;; | |
6170 | esac | |
6171 | libdir="$save_libdir" | |
6172 | for dep in $dependency_libs; do | |
6173 | case "$dep" in | |
6174 | -L*) | |
6175 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
6176 | if test "X$additional_libdir" != "X/usr/lib"; then | |
6177 | haveit= | |
6178 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
6179 | if test -n "$GCC"; then | |
6180 | case $host_os in | |
6181 | linux*) haveit=yes;; | |
6182 | esac | |
6183 | fi | |
6184 | fi | |
6185 | if test -z "$haveit"; then | |
6186 | haveit= | |
6187 | for x in $LDFLAGS $LIBEXPAT; do | |
6188 | ||
6189 | acl_save_prefix="$prefix" | |
6190 | prefix="$acl_final_prefix" | |
6191 | acl_save_exec_prefix="$exec_prefix" | |
6192 | exec_prefix="$acl_final_exec_prefix" | |
6193 | eval x=\"$x\" | |
6194 | exec_prefix="$acl_save_exec_prefix" | |
6195 | prefix="$acl_save_prefix" | |
6196 | ||
6197 | if test "X$x" = "X-L$additional_libdir"; then | |
6198 | haveit=yes | |
6199 | break | |
6200 | fi | |
6201 | done | |
6202 | if test -z "$haveit"; then | |
6203 | if test -d "$additional_libdir"; then | |
6204 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" | |
6205 | fi | |
6206 | fi | |
6207 | haveit= | |
6208 | for x in $LDFLAGS $LTLIBEXPAT; do | |
6209 | ||
6210 | acl_save_prefix="$prefix" | |
6211 | prefix="$acl_final_prefix" | |
6212 | acl_save_exec_prefix="$exec_prefix" | |
6213 | exec_prefix="$acl_final_exec_prefix" | |
6214 | eval x=\"$x\" | |
6215 | exec_prefix="$acl_save_exec_prefix" | |
6216 | prefix="$acl_save_prefix" | |
6217 | ||
6218 | if test "X$x" = "X-L$additional_libdir"; then | |
6219 | haveit=yes | |
6220 | break | |
6221 | fi | |
6222 | done | |
6223 | if test -z "$haveit"; then | |
6224 | if test -d "$additional_libdir"; then | |
6225 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" | |
6226 | fi | |
6227 | fi | |
6228 | fi | |
6229 | fi | |
6230 | ;; | |
6231 | -R*) | |
6232 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
6233 | if test "$enable_rpath" != no; then | |
6234 | haveit= | |
6235 | for x in $rpathdirs; do | |
6236 | if test "X$x" = "X$dir"; then | |
6237 | haveit=yes | |
6238 | break | |
6239 | fi | |
6240 | done | |
6241 | if test -z "$haveit"; then | |
6242 | rpathdirs="$rpathdirs $dir" | |
6243 | fi | |
6244 | haveit= | |
6245 | for x in $ltrpathdirs; do | |
6246 | if test "X$x" = "X$dir"; then | |
6247 | haveit=yes | |
6248 | break | |
6249 | fi | |
6250 | done | |
6251 | if test -z "$haveit"; then | |
6252 | ltrpathdirs="$ltrpathdirs $dir" | |
6253 | fi | |
6254 | fi | |
6255 | ;; | |
6256 | -l*) | |
6257 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
6258 | ;; | |
6259 | *.la) | |
6260 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
6261 | ;; | |
6262 | *) | |
6263 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" | |
6264 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" | |
6265 | ;; | |
6266 | esac | |
6267 | done | |
6268 | fi | |
6269 | else | |
6270 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6271 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" | |
6272 | fi | |
6273 | fi | |
6274 | fi | |
6275 | done | |
6276 | done | |
6277 | if test "X$rpathdirs" != "X"; then | |
6278 | if test -n "$hardcode_libdir_separator"; then | |
6279 | alldirs= | |
6280 | for found_dir in $rpathdirs; do | |
6281 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
6282 | done | |
6283 | acl_save_libdir="$libdir" | |
6284 | libdir="$alldirs" | |
6285 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6286 | libdir="$acl_save_libdir" | |
6287 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6288 | else | |
6289 | for found_dir in $rpathdirs; do | |
6290 | acl_save_libdir="$libdir" | |
6291 | libdir="$found_dir" | |
6292 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6293 | libdir="$acl_save_libdir" | |
6294 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6295 | done | |
6296 | fi | |
6297 | fi | |
6298 | if test "X$ltrpathdirs" != "X"; then | |
6299 | for found_dir in $ltrpathdirs; do | |
6300 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" | |
6301 | done | |
6302 | fi | |
6303 | ||
6304 | ||
6305 | ac_save_CPPFLAGS="$CPPFLAGS" | |
6306 | ||
6307 | for element in $INCEXPAT; do | |
6308 | haveit= | |
6309 | for x in $CPPFLAGS; do | |
6310 | ||
6311 | acl_save_prefix="$prefix" | |
6312 | prefix="$acl_final_prefix" | |
6313 | acl_save_exec_prefix="$exec_prefix" | |
6314 | exec_prefix="$acl_final_exec_prefix" | |
6315 | eval x=\"$x\" | |
6316 | exec_prefix="$acl_save_exec_prefix" | |
6317 | prefix="$acl_save_prefix" | |
6318 | ||
6319 | if test "X$x" = "X$element"; then | |
6320 | haveit=yes | |
6321 | break | |
6322 | fi | |
6323 | done | |
6324 | if test -z "$haveit"; then | |
6325 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
6326 | fi | |
6327 | done | |
6328 | ||
6329 | ||
6330 | echo "$as_me:$LINENO: checking for libexpat" >&5 | |
6331 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 | |
6332 | if test "${ac_cv_libexpat+set}" = set; then | |
6333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6334 | else | |
6335 | ||
6336 | ac_save_LIBS="$LIBS" | |
6337 | LIBS="$LIBS $LIBEXPAT" | |
6338 | cat >conftest.$ac_ext <<_ACEOF | |
6339 | /* confdefs.h. */ | |
6340 | _ACEOF | |
6341 | cat confdefs.h >>conftest.$ac_ext | |
6342 | cat >>conftest.$ac_ext <<_ACEOF | |
6343 | /* end confdefs.h. */ | |
6344 | #include "expat.h" | |
6345 | int | |
6346 | main () | |
6347 | { | |
6348 | XML_Parser p = XML_ParserCreate (0); | |
6349 | ; | |
6350 | return 0; | |
6351 | } | |
6352 | _ACEOF | |
6353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6355 | (eval $ac_link) 2>conftest.er1 | |
6356 | ac_status=$? | |
6357 | grep -v '^ *+' conftest.er1 >conftest.err | |
6358 | rm -f conftest.er1 | |
6359 | cat conftest.err >&5 | |
6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6361 | (exit $ac_status); } && | |
6362 | { ac_try='test -z "$ac_c_werror_flag" | |
6363 | || test ! -s conftest.err' | |
6364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6365 | (eval $ac_try) 2>&5 | |
6366 | ac_status=$? | |
6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6368 | (exit $ac_status); }; } && | |
6369 | { ac_try='test -s conftest$ac_exeext' | |
6370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6371 | (eval $ac_try) 2>&5 | |
6372 | ac_status=$? | |
6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6374 | (exit $ac_status); }; }; then | |
6375 | ac_cv_libexpat=yes | |
6376 | else | |
6377 | echo "$as_me: failed program was:" >&5 | |
6378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6379 | ||
6380 | ac_cv_libexpat=no | |
6381 | fi | |
6382 | rm -f conftest.err conftest.$ac_objext \ | |
6383 | conftest$ac_exeext conftest.$ac_ext | |
6384 | LIBS="$ac_save_LIBS" | |
6385 | ||
6386 | fi | |
6387 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 | |
6388 | echo "${ECHO_T}$ac_cv_libexpat" >&6 | |
6389 | if test "$ac_cv_libexpat" = yes; then | |
6390 | HAVE_LIBEXPAT=yes | |
6391 | ||
6392 | cat >>confdefs.h <<\_ACEOF | |
6393 | #define HAVE_LIBEXPAT 1 | |
6394 | _ACEOF | |
6395 | ||
6396 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 | |
6397 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 | |
6398 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 | |
6399 | echo "${ECHO_T}$LIBEXPAT" >&6 | |
6400 | else | |
6401 | HAVE_LIBEXPAT=no | |
6402 | CPPFLAGS="$ac_save_CPPFLAGS" | |
6403 | LIBEXPAT= | |
6404 | LTLIBEXPAT= | |
6405 | fi | |
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
5c39566f DJ |
6412 | if test "$HAVE_LIBEXPAT" != yes; then |
6413 | if test "$with_expat" = yes; then | |
6414 | { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5 | |
6415 | echo "$as_me: error: expat is missing or unusable" >&2;} | |
6416 | { (exit 1); exit 1; }; } | |
6417 | else | |
6418 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5 | |
6419 | echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} | |
6420 | fi | |
6421 | else | |
6422 | save_LIBS=$LIBS | |
6423 | LIBS="$LIBS $LIBEXPAT" | |
ca4ca11e DJ |
6424 | |
6425 | for ac_func in XML_StopParser | |
6426 | do | |
6427 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6428 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6429 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6430 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6432 | else | |
6433 | cat >conftest.$ac_ext <<_ACEOF | |
6434 | /* confdefs.h. */ | |
6435 | _ACEOF | |
6436 | cat confdefs.h >>conftest.$ac_ext | |
6437 | cat >>conftest.$ac_ext <<_ACEOF | |
6438 | /* end confdefs.h. */ | |
6439 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6440 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6441 | #define $ac_func innocuous_$ac_func | |
6442 | ||
6443 | /* System header to define __stub macros and hopefully few prototypes, | |
6444 | which can conflict with char $ac_func (); below. | |
6445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6446 | <limits.h> exists even on freestanding compilers. */ | |
6447 | ||
6448 | #ifdef __STDC__ | |
6449 | # include <limits.h> | |
6450 | #else | |
6451 | # include <assert.h> | |
6452 | #endif | |
6453 | ||
6454 | #undef $ac_func | |
6455 | ||
6456 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6457 | #ifdef __cplusplus | |
6458 | extern "C" | |
6459 | { | |
6460 | #endif | |
6461 | /* We use char because int might match the return type of a gcc2 | |
6462 | builtin and then its argument prototype would still apply. */ | |
6463 | char $ac_func (); | |
6464 | /* The GNU C library defines this for functions which it implements | |
6465 | to always fail with ENOSYS. Some functions are actually named | |
6466 | something starting with __ and the normal name is an alias. */ | |
6467 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6468 | choke me | |
6469 | #else | |
6470 | char (*f) () = $ac_func; | |
6471 | #endif | |
6472 | #ifdef __cplusplus | |
6473 | } | |
6474 | #endif | |
6475 | ||
6476 | int | |
6477 | main () | |
6478 | { | |
6479 | return f != $ac_func; | |
6480 | ; | |
6481 | return 0; | |
6482 | } | |
6483 | _ACEOF | |
6484 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6486 | (eval $ac_link) 2>conftest.er1 | |
6487 | ac_status=$? | |
6488 | grep -v '^ *+' conftest.er1 >conftest.err | |
6489 | rm -f conftest.er1 | |
6490 | cat conftest.err >&5 | |
6491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6492 | (exit $ac_status); } && | |
6493 | { ac_try='test -z "$ac_c_werror_flag" | |
6494 | || test ! -s conftest.err' | |
6495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6496 | (eval $ac_try) 2>&5 | |
6497 | ac_status=$? | |
6498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6499 | (exit $ac_status); }; } && | |
6500 | { ac_try='test -s conftest$ac_exeext' | |
6501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6502 | (eval $ac_try) 2>&5 | |
6503 | ac_status=$? | |
6504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6505 | (exit $ac_status); }; }; then | |
6506 | eval "$as_ac_var=yes" | |
6507 | else | |
6508 | echo "$as_me: failed program was:" >&5 | |
6509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6510 | ||
6511 | eval "$as_ac_var=no" | |
6512 | fi | |
6513 | rm -f conftest.err conftest.$ac_objext \ | |
6514 | conftest$ac_exeext conftest.$ac_ext | |
6515 | fi | |
6516 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6517 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6518 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6519 | cat >>confdefs.h <<_ACEOF | |
6520 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6521 | _ACEOF | |
6522 | ||
6523 | fi | |
6524 | done | |
6525 | ||
5c39566f DJ |
6526 | LIBS=$save_LIBS |
6527 | fi | |
3841debe DJ |
6528 | fi |
6529 | ||
bec39cab AC |
6530 | # ------------------------- # |
6531 | # Checks for header files. # | |
6532 | # ------------------------- # | |
8ee53726 | 6533 | |
0e5d83e3 | 6534 | |
bec39cab AC |
6535 | |
6536 | ||
6537 | ||
6538 | ||
6539 | ac_header_dirent=no | |
6540 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
6541 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
b4e70030 JB |
6542 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
6543 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
6544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
6545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6546 | else | |
6547 | cat >conftest.$ac_ext <<_ACEOF | |
6548 | /* confdefs.h. */ | |
6549 | _ACEOF | |
6550 | cat confdefs.h >>conftest.$ac_ext | |
6551 | cat >>conftest.$ac_ext <<_ACEOF | |
6552 | /* end confdefs.h. */ | |
6553 | #include <sys/types.h> | |
0e5d83e3 | 6554 | #include <$ac_hdr> |
bec39cab AC |
6555 | |
6556 | int | |
6557 | main () | |
6558 | { | |
6559 | if ((DIR *) 0) | |
6560 | return 0; | |
6561 | ; | |
6562 | return 0; | |
6563 | } | |
6564 | _ACEOF | |
6565 | rm -f conftest.$ac_objext | |
6566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6567 | (eval $ac_compile) 2>conftest.er1 | |
6568 | ac_status=$? | |
6569 | grep -v '^ *+' conftest.er1 >conftest.err | |
6570 | rm -f conftest.er1 | |
6571 | cat conftest.err >&5 | |
6572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6573 | (exit $ac_status); } && | |
b4e70030 JB |
6574 | { ac_try='test -z "$ac_c_werror_flag" |
6575 | || test ! -s conftest.err' | |
bec39cab AC |
6576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6577 | (eval $ac_try) 2>&5 | |
6578 | ac_status=$? | |
6579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6580 | (exit $ac_status); }; } && | |
6581 | { ac_try='test -s conftest.$ac_objext' | |
6582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6583 | (eval $ac_try) 2>&5 | |
6584 | ac_status=$? | |
6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6586 | (exit $ac_status); }; }; then | |
6587 | eval "$as_ac_Header=yes" | |
6588 | else | |
6589 | echo "$as_me: failed program was:" >&5 | |
6590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6591 | ||
b4e70030 | 6592 | eval "$as_ac_Header=no" |
bec39cab AC |
6593 | fi |
6594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6595 | fi | |
b4e70030 JB |
6596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6597 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
6598 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6599 | cat >>confdefs.h <<_ACEOF | |
6600 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
6601 | _ACEOF | |
6602 | ||
6603 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 6604 | fi |
0e5d83e3 | 6605 | |
bec39cab AC |
6606 | done |
6607 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6608 | if test $ac_header_dirent = dirent.h; then | |
b4e70030 JB |
6609 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6610 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6611 | if test "${ac_cv_search_opendir+set}" = set; then |
6612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6613 | else | |
6614 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6615 | ac_cv_search_opendir=no |
bec39cab AC |
6616 | cat >conftest.$ac_ext <<_ACEOF |
6617 | /* confdefs.h. */ | |
6618 | _ACEOF | |
6619 | cat confdefs.h >>conftest.$ac_ext | |
6620 | cat >>conftest.$ac_ext <<_ACEOF | |
6621 | /* end confdefs.h. */ | |
0e5d83e3 | 6622 | |
b4e70030 | 6623 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6624 | #ifdef __cplusplus |
6625 | extern "C" | |
6626 | #endif | |
b4e70030 JB |
6627 | /* We use char because int might match the return type of a gcc2 |
6628 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6629 | char opendir (); |
6630 | int | |
6631 | main () | |
6632 | { | |
b4e70030 | 6633 | opendir (); |
bec39cab AC |
6634 | ; |
6635 | return 0; | |
6636 | } | |
6637 | _ACEOF | |
b4e70030 | 6638 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6640 | (eval $ac_link) 2>conftest.er1 | |
6641 | ac_status=$? | |
6642 | grep -v '^ *+' conftest.er1 >conftest.err | |
6643 | rm -f conftest.er1 | |
6644 | cat conftest.err >&5 | |
6645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6646 | (exit $ac_status); } && | |
b4e70030 JB |
6647 | { ac_try='test -z "$ac_c_werror_flag" |
6648 | || test ! -s conftest.err' | |
bec39cab AC |
6649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6650 | (eval $ac_try) 2>&5 | |
6651 | ac_status=$? | |
6652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6653 | (exit $ac_status); }; } && | |
6654 | { ac_try='test -s conftest$ac_exeext' | |
6655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6656 | (eval $ac_try) 2>&5 | |
6657 | ac_status=$? | |
6658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6659 | (exit $ac_status); }; }; then | |
b4e70030 | 6660 | ac_cv_search_opendir="none required" |
bec39cab AC |
6661 | else |
6662 | echo "$as_me: failed program was:" >&5 | |
6663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6664 | ||
6665 | fi | |
bec39cab | 6666 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6667 | conftest$ac_exeext conftest.$ac_ext |
6668 | if test "$ac_cv_search_opendir" = no; then | |
6669 | for ac_lib in dir; do | |
6670 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6671 | cat >conftest.$ac_ext <<_ACEOF | |
6672 | /* confdefs.h. */ | |
6673 | _ACEOF | |
6674 | cat confdefs.h >>conftest.$ac_ext | |
6675 | cat >>conftest.$ac_ext <<_ACEOF | |
6676 | /* end confdefs.h. */ | |
6677 | ||
6678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6679 | #ifdef __cplusplus | |
6680 | extern "C" | |
6681 | #endif | |
6682 | /* We use char because int might match the return type of a gcc2 | |
6683 | builtin and then its argument prototype would still apply. */ | |
6684 | char opendir (); | |
6685 | int | |
6686 | main () | |
6687 | { | |
6688 | opendir (); | |
6689 | ; | |
6690 | return 0; | |
6691 | } | |
6692 | _ACEOF | |
6693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6695 | (eval $ac_link) 2>conftest.er1 | |
6696 | ac_status=$? | |
6697 | grep -v '^ *+' conftest.er1 >conftest.err | |
6698 | rm -f conftest.er1 | |
6699 | cat conftest.err >&5 | |
6700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6701 | (exit $ac_status); } && | |
6702 | { ac_try='test -z "$ac_c_werror_flag" | |
6703 | || test ! -s conftest.err' | |
6704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6705 | (eval $ac_try) 2>&5 | |
6706 | ac_status=$? | |
6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6708 | (exit $ac_status); }; } && | |
6709 | { ac_try='test -s conftest$ac_exeext' | |
6710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6711 | (eval $ac_try) 2>&5 | |
6712 | ac_status=$? | |
6713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6714 | (exit $ac_status); }; }; then | |
6715 | ac_cv_search_opendir="-l$ac_lib" | |
6716 | break | |
4e8d927d | 6717 | else |
b4e70030 JB |
6718 | echo "$as_me: failed program was:" >&5 |
6719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6720 | ||
6721 | fi | |
6722 | rm -f conftest.err conftest.$ac_objext \ | |
6723 | conftest$ac_exeext conftest.$ac_ext | |
6724 | done | |
0e5d83e3 | 6725 | fi |
bec39cab | 6726 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 6727 | fi |
b4e70030 JB |
6728 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6729 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6730 | if test "$ac_cv_search_opendir" != no; then | |
6731 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 6732 | |
0e5d83e3 JJ |
6733 | fi |
6734 | ||
d28f9cdf | 6735 | else |
b4e70030 JB |
6736 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6737 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6738 | if test "${ac_cv_search_opendir+set}" = set; then |
6739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6740 | else | |
6741 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6742 | ac_cv_search_opendir=no |
bec39cab AC |
6743 | cat >conftest.$ac_ext <<_ACEOF |
6744 | /* confdefs.h. */ | |
6745 | _ACEOF | |
6746 | cat confdefs.h >>conftest.$ac_ext | |
6747 | cat >>conftest.$ac_ext <<_ACEOF | |
6748 | /* end confdefs.h. */ | |
d28f9cdf | 6749 | |
b4e70030 | 6750 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6751 | #ifdef __cplusplus |
6752 | extern "C" | |
d28f9cdf | 6753 | #endif |
b4e70030 JB |
6754 | /* We use char because int might match the return type of a gcc2 |
6755 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6756 | char opendir (); |
6757 | int | |
6758 | main () | |
6759 | { | |
b4e70030 | 6760 | opendir (); |
bec39cab AC |
6761 | ; |
6762 | return 0; | |
6763 | } | |
6764 | _ACEOF | |
b4e70030 | 6765 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6767 | (eval $ac_link) 2>conftest.er1 | |
6768 | ac_status=$? | |
6769 | grep -v '^ *+' conftest.er1 >conftest.err | |
6770 | rm -f conftest.er1 | |
6771 | cat conftest.err >&5 | |
6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6773 | (exit $ac_status); } && | |
b4e70030 JB |
6774 | { ac_try='test -z "$ac_c_werror_flag" |
6775 | || test ! -s conftest.err' | |
bec39cab AC |
6776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6777 | (eval $ac_try) 2>&5 | |
6778 | ac_status=$? | |
6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6780 | (exit $ac_status); }; } && | |
6781 | { ac_try='test -s conftest$ac_exeext' | |
6782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6783 | (eval $ac_try) 2>&5 | |
6784 | ac_status=$? | |
6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6786 | (exit $ac_status); }; }; then | |
b4e70030 | 6787 | ac_cv_search_opendir="none required" |
d28f9cdf | 6788 | else |
bec39cab AC |
6789 | echo "$as_me: failed program was:" >&5 |
6790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6791 | ||
d28f9cdf | 6792 | fi |
bec39cab | 6793 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6794 | conftest$ac_exeext conftest.$ac_ext |
6795 | if test "$ac_cv_search_opendir" = no; then | |
6796 | for ac_lib in x; do | |
6797 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6798 | cat >conftest.$ac_ext <<_ACEOF | |
6799 | /* confdefs.h. */ | |
6800 | _ACEOF | |
6801 | cat confdefs.h >>conftest.$ac_ext | |
6802 | cat >>conftest.$ac_ext <<_ACEOF | |
6803 | /* end confdefs.h. */ | |
6804 | ||
6805 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6806 | #ifdef __cplusplus | |
6807 | extern "C" | |
6808 | #endif | |
6809 | /* We use char because int might match the return type of a gcc2 | |
6810 | builtin and then its argument prototype would still apply. */ | |
6811 | char opendir (); | |
6812 | int | |
6813 | main () | |
6814 | { | |
6815 | opendir (); | |
6816 | ; | |
6817 | return 0; | |
6818 | } | |
6819 | _ACEOF | |
6820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6822 | (eval $ac_link) 2>conftest.er1 | |
6823 | ac_status=$? | |
6824 | grep -v '^ *+' conftest.er1 >conftest.err | |
6825 | rm -f conftest.er1 | |
6826 | cat conftest.err >&5 | |
6827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6828 | (exit $ac_status); } && | |
6829 | { ac_try='test -z "$ac_c_werror_flag" | |
6830 | || test ! -s conftest.err' | |
6831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6832 | (eval $ac_try) 2>&5 | |
6833 | ac_status=$? | |
6834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6835 | (exit $ac_status); }; } && | |
6836 | { ac_try='test -s conftest$ac_exeext' | |
6837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6838 | (eval $ac_try) 2>&5 | |
6839 | ac_status=$? | |
6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6841 | (exit $ac_status); }; }; then | |
6842 | ac_cv_search_opendir="-l$ac_lib" | |
6843 | break | |
4e8d927d | 6844 | else |
b4e70030 JB |
6845 | echo "$as_me: failed program was:" >&5 |
6846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6847 | ||
6848 | fi | |
6849 | rm -f conftest.err conftest.$ac_objext \ | |
6850 | conftest$ac_exeext conftest.$ac_ext | |
6851 | done | |
bec39cab AC |
6852 | fi |
6853 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 6854 | fi |
b4e70030 JB |
6855 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6856 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6857 | if test "$ac_cv_search_opendir" != no; then | |
6858 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 6859 | |
d28f9cdf DJ |
6860 | fi |
6861 | ||
bec39cab | 6862 | fi |
b0b1c2c0 | 6863 | |
b4e70030 JB |
6864 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
6865 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
bec39cab AC |
6866 | if test "${ac_cv_header_stat_broken+set}" = set; then |
6867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 6868 | else |
bec39cab AC |
6869 | cat >conftest.$ac_ext <<_ACEOF |
6870 | /* confdefs.h. */ | |
6871 | _ACEOF | |
6872 | cat confdefs.h >>conftest.$ac_ext | |
6873 | cat >>conftest.$ac_ext <<_ACEOF | |
6874 | /* end confdefs.h. */ | |
6875 | #include <sys/types.h> | |
6876 | #include <sys/stat.h> | |
b0b1c2c0 | 6877 | |
b4e70030 | 6878 | #if defined(S_ISBLK) && defined(S_IFDIR) |
bec39cab AC |
6879 | # if S_ISBLK (S_IFDIR) |
6880 | You lose. | |
6881 | # endif | |
6882 | #endif | |
b0b1c2c0 | 6883 | |
b4e70030 | 6884 | #if defined(S_ISBLK) && defined(S_IFCHR) |
bec39cab AC |
6885 | # if S_ISBLK (S_IFCHR) |
6886 | You lose. | |
6887 | # endif | |
6888 | #endif | |
d28f9cdf | 6889 | |
b4e70030 | 6890 | #if defined(S_ISLNK) && defined(S_IFREG) |
bec39cab AC |
6891 | # if S_ISLNK (S_IFREG) |
6892 | You lose. | |
6893 | # endif | |
6894 | #endif | |
d28f9cdf | 6895 | |
b4e70030 | 6896 | #if defined(S_ISSOCK) && defined(S_IFREG) |
bec39cab AC |
6897 | # if S_ISSOCK (S_IFREG) |
6898 | You lose. | |
6899 | # endif | |
6900 | #endif | |
6901 | ||
6902 | _ACEOF | |
6903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6904 | $EGREP "You lose" >/dev/null 2>&1; then | |
6905 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 6906 | else |
bec39cab | 6907 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
6908 | fi |
6909 | rm -f conftest* | |
d28f9cdf | 6910 | |
d28f9cdf | 6911 | fi |
b4e70030 JB |
6912 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
6913 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
bec39cab | 6914 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 6915 | |
bec39cab AC |
6916 | cat >>confdefs.h <<\_ACEOF |
6917 | #define STAT_MACROS_BROKEN 1 | |
6918 | _ACEOF | |
8bb2c122 | 6919 | |
7a292a7a | 6920 | fi |
bec39cab | 6921 | |
b4e70030 JB |
6922 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6923 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
6924 | if test "${ac_cv_header_stdc+set}" = set; then |
6925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 6926 | else |
bec39cab AC |
6927 | cat >conftest.$ac_ext <<_ACEOF |
6928 | /* confdefs.h. */ | |
6929 | _ACEOF | |
6930 | cat confdefs.h >>conftest.$ac_ext | |
6931 | cat >>conftest.$ac_ext <<_ACEOF | |
6932 | /* end confdefs.h. */ | |
6933 | #include <stdlib.h> | |
6934 | #include <stdarg.h> | |
6935 | #include <string.h> | |
6936 | #include <float.h> | |
7a292a7a | 6937 | |
bec39cab AC |
6938 | int |
6939 | main () | |
6940 | { | |
7a292a7a | 6941 | |
bec39cab AC |
6942 | ; |
6943 | return 0; | |
6944 | } | |
6945 | _ACEOF | |
6946 | rm -f conftest.$ac_objext | |
6947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6948 | (eval $ac_compile) 2>conftest.er1 | |
6949 | ac_status=$? | |
6950 | grep -v '^ *+' conftest.er1 >conftest.err | |
6951 | rm -f conftest.er1 | |
6952 | cat conftest.err >&5 | |
6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6954 | (exit $ac_status); } && | |
b4e70030 JB |
6955 | { ac_try='test -z "$ac_c_werror_flag" |
6956 | || test ! -s conftest.err' | |
bec39cab AC |
6957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6958 | (eval $ac_try) 2>&5 | |
6959 | ac_status=$? | |
6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6961 | (exit $ac_status); }; } && | |
6962 | { ac_try='test -s conftest.$ac_objext' | |
6963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6964 | (eval $ac_try) 2>&5 | |
6965 | ac_status=$? | |
6966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6967 | (exit $ac_status); }; }; then | |
6968 | ac_cv_header_stdc=yes | |
c906108c | 6969 | else |
bec39cab AC |
6970 | echo "$as_me: failed program was:" >&5 |
6971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 6972 | |
b4e70030 | 6973 | ac_cv_header_stdc=no |
c906108c | 6974 | fi |
bec39cab | 6975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6976 | |
bec39cab AC |
6977 | if test $ac_cv_header_stdc = yes; then |
6978 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6979 | cat >conftest.$ac_ext <<_ACEOF | |
6980 | /* confdefs.h. */ | |
6981 | _ACEOF | |
6982 | cat confdefs.h >>conftest.$ac_ext | |
6983 | cat >>conftest.$ac_ext <<_ACEOF | |
6984 | /* end confdefs.h. */ | |
6985 | #include <string.h> | |
c906108c | 6986 | |
bec39cab AC |
6987 | _ACEOF |
6988 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6989 | $EGREP "memchr" >/dev/null 2>&1; then | |
6990 | : | |
8bb2c122 | 6991 | else |
bec39cab | 6992 | ac_cv_header_stdc=no |
8bb2c122 | 6993 | fi |
bec39cab AC |
6994 | rm -f conftest* |
6995 | ||
c906108c SS |
6996 | fi |
6997 | ||
bec39cab AC |
6998 | if test $ac_cv_header_stdc = yes; then |
6999 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7000 | cat >conftest.$ac_ext <<_ACEOF | |
7001 | /* confdefs.h. */ | |
7002 | _ACEOF | |
7003 | cat confdefs.h >>conftest.$ac_ext | |
7004 | cat >>conftest.$ac_ext <<_ACEOF | |
7005 | /* end confdefs.h. */ | |
7006 | #include <stdlib.h> | |
7007 | ||
7008 | _ACEOF | |
7009 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7010 | $EGREP "free" >/dev/null 2>&1; then | |
7011 | : | |
c906108c | 7012 | else |
bec39cab | 7013 | ac_cv_header_stdc=no |
c906108c | 7014 | fi |
bec39cab AC |
7015 | rm -f conftest* |
7016 | ||
c906108c SS |
7017 | fi |
7018 | ||
bec39cab AC |
7019 | if test $ac_cv_header_stdc = yes; then |
7020 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7021 | if test "$cross_compiling" = yes; then | |
7022 | : | |
c906108c | 7023 | else |
bec39cab AC |
7024 | cat >conftest.$ac_ext <<_ACEOF |
7025 | /* confdefs.h. */ | |
7026 | _ACEOF | |
7027 | cat confdefs.h >>conftest.$ac_ext | |
7028 | cat >>conftest.$ac_ext <<_ACEOF | |
7029 | /* end confdefs.h. */ | |
7030 | #include <ctype.h> | |
7031 | #if ((' ' & 0x0FF) == 0x020) | |
7032 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7033 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7034 | #else | |
7035 | # define ISLOWER(c) \ | |
7036 | (('a' <= (c) && (c) <= 'i') \ | |
7037 | || ('j' <= (c) && (c) <= 'r') \ | |
7038 | || ('s' <= (c) && (c) <= 'z')) | |
7039 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7040 | #endif | |
7041 | ||
7042 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7043 | int | |
7044 | main () | |
7045 | { | |
7046 | int i; | |
7047 | for (i = 0; i < 256; i++) | |
7048 | if (XOR (islower (i), ISLOWER (i)) | |
7049 | || toupper (i) != TOUPPER (i)) | |
b4e70030 JB |
7050 | exit(2); |
7051 | exit (0); | |
bec39cab AC |
7052 | } |
7053 | _ACEOF | |
7054 | rm -f conftest$ac_exeext | |
7055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7056 | (eval $ac_link) 2>&5 | |
7057 | ac_status=$? | |
7058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7059 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7061 | (eval $ac_try) 2>&5 | |
7062 | ac_status=$? | |
7063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7064 | (exit $ac_status); }; }; then | |
7065 | : | |
7066 | else | |
7067 | echo "$as_me: program exited with status $ac_status" >&5 | |
7068 | echo "$as_me: failed program was:" >&5 | |
7069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7070 | ||
7071 | ( exit $ac_status ) | |
7072 | ac_cv_header_stdc=no | |
c906108c | 7073 | fi |
b4e70030 | 7074 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 7075 | fi |
c906108c | 7076 | fi |
bec39cab | 7077 | fi |
b4e70030 JB |
7078 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7079 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab | 7080 | if test $ac_cv_header_stdc = yes; then |
c906108c | 7081 | |
bec39cab AC |
7082 | cat >>confdefs.h <<\_ACEOF |
7083 | #define STDC_HEADERS 1 | |
7084 | _ACEOF | |
c906108c | 7085 | |
bec39cab | 7086 | fi |
8bb2c122 | 7087 | |
bec39cab | 7088 | |
7cb9022a | 7089 | for ac_header in nlist.h |
bec39cab AC |
7090 | do |
7091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7093 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7095 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7097 | fi | |
b4e70030 JB |
7098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7100 | else |
7101 | # Is the header compilable? | |
b4e70030 JB |
7102 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7103 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7104 | cat >conftest.$ac_ext <<_ACEOF |
7105 | /* confdefs.h. */ | |
7106 | _ACEOF | |
7107 | cat confdefs.h >>conftest.$ac_ext | |
7108 | cat >>conftest.$ac_ext <<_ACEOF | |
7109 | /* end confdefs.h. */ | |
7110 | $ac_includes_default | |
7111 | #include <$ac_header> | |
7112 | _ACEOF | |
7113 | rm -f conftest.$ac_objext | |
7114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7115 | (eval $ac_compile) 2>conftest.er1 | |
7116 | ac_status=$? | |
7117 | grep -v '^ *+' conftest.er1 >conftest.err | |
7118 | rm -f conftest.er1 | |
7119 | cat conftest.err >&5 | |
7120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7121 | (exit $ac_status); } && | |
b4e70030 JB |
7122 | { ac_try='test -z "$ac_c_werror_flag" |
7123 | || test ! -s conftest.err' | |
bec39cab AC |
7124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7125 | (eval $ac_try) 2>&5 | |
7126 | ac_status=$? | |
7127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7128 | (exit $ac_status); }; } && | |
7129 | { ac_try='test -s conftest.$ac_objext' | |
7130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7131 | (eval $ac_try) 2>&5 | |
7132 | ac_status=$? | |
7133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7134 | (exit $ac_status); }; }; then | |
7135 | ac_header_compiler=yes | |
7136 | else | |
7137 | echo "$as_me: failed program was:" >&5 | |
7138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7139 | ||
b4e70030 | 7140 | ac_header_compiler=no |
bec39cab AC |
7141 | fi |
7142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7143 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7144 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7145 | |
7146 | # Is the header present? | |
b4e70030 JB |
7147 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7148 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7149 | cat >conftest.$ac_ext <<_ACEOF |
7150 | /* confdefs.h. */ | |
7151 | _ACEOF | |
7152 | cat confdefs.h >>conftest.$ac_ext | |
7153 | cat >>conftest.$ac_ext <<_ACEOF | |
7154 | /* end confdefs.h. */ | |
7155 | #include <$ac_header> | |
7156 | _ACEOF | |
7157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7159 | ac_status=$? | |
7160 | grep -v '^ *+' conftest.er1 >conftest.err | |
7161 | rm -f conftest.er1 | |
7162 | cat conftest.err >&5 | |
7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7164 | (exit $ac_status); } >/dev/null; then | |
7165 | if test -s conftest.err; then | |
7166 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7167 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7168 | else | |
7169 | ac_cpp_err= | |
7170 | fi | |
c906108c | 7171 | else |
bec39cab | 7172 | ac_cpp_err=yes |
c906108c | 7173 | fi |
bec39cab AC |
7174 | if test -z "$ac_cpp_err"; then |
7175 | ac_header_preproc=yes | |
c906108c | 7176 | else |
bec39cab AC |
7177 | echo "$as_me: failed program was:" >&5 |
7178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 7179 | |
bec39cab AC |
7180 | ac_header_preproc=no |
7181 | fi | |
7182 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7183 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7184 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 7185 | |
bec39cab AC |
7186 | # So? What about this header? |
7187 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7188 | yes:no: ) | |
7189 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7190 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7192 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7193 | ac_header_preproc=yes | |
7194 | ;; | |
7195 | no:yes:* ) | |
7196 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7197 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7198 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7199 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7200 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7201 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7202 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7203 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7204 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7205 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7206 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7207 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7208 | ( |
7209 | cat <<\_ASBOX | |
7210 | ## ------------------------------------------ ## | |
7211 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7212 | ## ------------------------------------------ ## | |
7213 | _ASBOX | |
7214 | ) | | |
7215 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7216 | ;; |
7217 | esac | |
b4e70030 JB |
7218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 7222 | else |
bec39cab | 7223 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 7224 | fi |
b4e70030 JB |
7225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7226 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7227 | |
95ca63c4 | 7228 | fi |
bec39cab AC |
7229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7230 | cat >>confdefs.h <<_ACEOF | |
7231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7232 | _ACEOF | |
7233 | ||
95ca63c4 CF |
7234 | fi |
7235 | ||
bec39cab | 7236 | done |
95ca63c4 CF |
7237 | |
7238 | ||
7cb9022a | 7239 | for ac_header in link.h |
bec39cab AC |
7240 | do |
7241 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7242 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 7246 | else |
7cb9022a | 7247 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
7248 | /* confdefs.h. */ |
7249 | _ACEOF | |
7250 | cat confdefs.h >>conftest.$ac_ext | |
7251 | cat >>conftest.$ac_ext <<_ACEOF | |
7252 | /* end confdefs.h. */ | |
7cb9022a MK |
7253 | #if HAVE_SYS_TYPES_H |
7254 | # include <sys/types.h> | |
7255 | #endif | |
7256 | #if HAVE_NLIST_H | |
7257 | # include <nlist.h> | |
7258 | #endif | |
7259 | ||
7260 | ||
bec39cab AC |
7261 | #include <$ac_header> |
7262 | _ACEOF | |
7263 | rm -f conftest.$ac_objext | |
7264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7265 | (eval $ac_compile) 2>conftest.er1 | |
7266 | ac_status=$? | |
7267 | grep -v '^ *+' conftest.er1 >conftest.err | |
7268 | rm -f conftest.er1 | |
7269 | cat conftest.err >&5 | |
7270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7271 | (exit $ac_status); } && | |
b4e70030 JB |
7272 | { ac_try='test -z "$ac_c_werror_flag" |
7273 | || test ! -s conftest.err' | |
bec39cab AC |
7274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7275 | (eval $ac_try) 2>&5 | |
7276 | ac_status=$? | |
7277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7278 | (exit $ac_status); }; } && | |
7279 | { ac_try='test -s conftest.$ac_objext' | |
7280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7281 | (eval $ac_try) 2>&5 | |
7282 | ac_status=$? | |
7283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7284 | (exit $ac_status); }; }; then | |
7cb9022a | 7285 | eval "$as_ac_Header=yes" |
bec39cab AC |
7286 | else |
7287 | echo "$as_me: failed program was:" >&5 | |
7288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7289 | ||
b4e70030 | 7290 | eval "$as_ac_Header=no" |
bec39cab AC |
7291 | fi |
7292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 7293 | fi |
b4e70030 JB |
7294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7295 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7296 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7297 | cat >>confdefs.h <<_ACEOF | |
7298 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7299 | _ACEOF | |
95ca63c4 | 7300 | |
bec39cab | 7301 | fi |
95ca63c4 | 7302 | |
bec39cab | 7303 | done |
95ca63c4 | 7304 | |
c906108c | 7305 | |
7cb9022a | 7306 | for ac_header in machine/reg.h |
bec39cab AC |
7307 | do |
7308 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7309 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7310 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7311 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7312 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7314 | fi | |
b4e70030 JB |
7315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7316 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7317 | else |
7318 | # Is the header compilable? | |
b4e70030 JB |
7319 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7320 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7321 | cat >conftest.$ac_ext <<_ACEOF |
7322 | /* confdefs.h. */ | |
7323 | _ACEOF | |
7324 | cat confdefs.h >>conftest.$ac_ext | |
7325 | cat >>conftest.$ac_ext <<_ACEOF | |
7326 | /* end confdefs.h. */ | |
7327 | $ac_includes_default | |
7328 | #include <$ac_header> | |
7329 | _ACEOF | |
7330 | rm -f conftest.$ac_objext | |
7331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7332 | (eval $ac_compile) 2>conftest.er1 | |
7333 | ac_status=$? | |
7334 | grep -v '^ *+' conftest.er1 >conftest.err | |
7335 | rm -f conftest.er1 | |
7336 | cat conftest.err >&5 | |
7337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7338 | (exit $ac_status); } && | |
b4e70030 JB |
7339 | { ac_try='test -z "$ac_c_werror_flag" |
7340 | || test ! -s conftest.err' | |
bec39cab AC |
7341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7342 | (eval $ac_try) 2>&5 | |
7343 | ac_status=$? | |
7344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7345 | (exit $ac_status); }; } && | |
7346 | { ac_try='test -s conftest.$ac_objext' | |
7347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7348 | (eval $ac_try) 2>&5 | |
7349 | ac_status=$? | |
7350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7351 | (exit $ac_status); }; }; then | |
7352 | ac_header_compiler=yes | |
7353 | else | |
7354 | echo "$as_me: failed program was:" >&5 | |
7355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7356 | ||
b4e70030 | 7357 | ac_header_compiler=no |
bec39cab AC |
7358 | fi |
7359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7360 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7361 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7362 | |
7363 | # Is the header present? | |
b4e70030 JB |
7364 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7365 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7366 | cat >conftest.$ac_ext <<_ACEOF |
7367 | /* confdefs.h. */ | |
7368 | _ACEOF | |
7369 | cat confdefs.h >>conftest.$ac_ext | |
7370 | cat >>conftest.$ac_ext <<_ACEOF | |
7371 | /* end confdefs.h. */ | |
7372 | #include <$ac_header> | |
7373 | _ACEOF | |
7374 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7375 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7376 | ac_status=$? | |
7377 | grep -v '^ *+' conftest.er1 >conftest.err | |
7378 | rm -f conftest.er1 | |
7379 | cat conftest.err >&5 | |
7380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7381 | (exit $ac_status); } >/dev/null; then | |
7382 | if test -s conftest.err; then | |
7383 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7384 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7385 | else | |
7386 | ac_cpp_err= | |
7387 | fi | |
75c6e08a | 7388 | else |
bec39cab | 7389 | ac_cpp_err=yes |
75c6e08a | 7390 | fi |
bec39cab AC |
7391 | if test -z "$ac_cpp_err"; then |
7392 | ac_header_preproc=yes | |
7393 | else | |
7394 | echo "$as_me: failed program was:" >&5 | |
7395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7396 | ||
7397 | ac_header_preproc=no | |
75c6e08a | 7398 | fi |
bec39cab | 7399 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7400 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7401 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7402 | |
7403 | # So? What about this header? | |
7404 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7405 | yes:no: ) | |
7406 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7407 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7408 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7409 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7410 | ac_header_preproc=yes | |
7411 | ;; | |
7412 | no:yes:* ) | |
7413 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7414 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7415 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7416 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7417 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7418 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7419 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7420 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7421 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7422 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7423 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7424 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7425 | ( |
7426 | cat <<\_ASBOX | |
7427 | ## ------------------------------------------ ## | |
7428 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7429 | ## ------------------------------------------ ## | |
7430 | _ASBOX | |
7431 | ) | | |
7432 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7433 | ;; |
7434 | esac | |
b4e70030 JB |
7435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
75c6e08a | 7439 | else |
bec39cab AC |
7440 | eval "$as_ac_Header=\$ac_header_preproc" |
7441 | fi | |
b4e70030 JB |
7442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7443 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7444 | |
75c6e08a | 7445 | fi |
bec39cab AC |
7446 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7447 | cat >>confdefs.h <<_ACEOF | |
7448 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7449 | _ACEOF | |
75c6e08a | 7450 | |
bec39cab | 7451 | fi |
75c6e08a | 7452 | |
bec39cab | 7453 | done |
75c6e08a MK |
7454 | |
7455 | ||
9a156167 | 7456 | |
bec39cab AC |
7457 | for ac_header in poll.h sys/poll.h |
7458 | do | |
7459 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7461 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7462 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7463 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7465 | fi | |
b4e70030 JB |
7466 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7467 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7468 | else |
7469 | # Is the header compilable? | |
b4e70030 JB |
7470 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7471 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7472 | cat >conftest.$ac_ext <<_ACEOF |
7473 | /* confdefs.h. */ | |
7474 | _ACEOF | |
7475 | cat confdefs.h >>conftest.$ac_ext | |
7476 | cat >>conftest.$ac_ext <<_ACEOF | |
7477 | /* end confdefs.h. */ | |
7478 | $ac_includes_default | |
7479 | #include <$ac_header> | |
7480 | _ACEOF | |
7481 | rm -f conftest.$ac_objext | |
7482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7483 | (eval $ac_compile) 2>conftest.er1 | |
7484 | ac_status=$? | |
7485 | grep -v '^ *+' conftest.er1 >conftest.err | |
7486 | rm -f conftest.er1 | |
7487 | cat conftest.err >&5 | |
7488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7489 | (exit $ac_status); } && | |
b4e70030 JB |
7490 | { ac_try='test -z "$ac_c_werror_flag" |
7491 | || test ! -s conftest.err' | |
bec39cab AC |
7492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7493 | (eval $ac_try) 2>&5 | |
7494 | ac_status=$? | |
7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7496 | (exit $ac_status); }; } && | |
7497 | { ac_try='test -s conftest.$ac_objext' | |
7498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7499 | (eval $ac_try) 2>&5 | |
7500 | ac_status=$? | |
7501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7502 | (exit $ac_status); }; }; then | |
7503 | ac_header_compiler=yes | |
7504 | else | |
7505 | echo "$as_me: failed program was:" >&5 | |
7506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7507 | ||
b4e70030 | 7508 | ac_header_compiler=no |
bec39cab AC |
7509 | fi |
7510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7511 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7512 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7513 | |
7514 | # Is the header present? | |
b4e70030 JB |
7515 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7516 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7517 | cat >conftest.$ac_ext <<_ACEOF |
7518 | /* confdefs.h. */ | |
7519 | _ACEOF | |
7520 | cat confdefs.h >>conftest.$ac_ext | |
7521 | cat >>conftest.$ac_ext <<_ACEOF | |
7522 | /* end confdefs.h. */ | |
7523 | #include <$ac_header> | |
7524 | _ACEOF | |
7525 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7526 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7527 | ac_status=$? | |
7528 | grep -v '^ *+' conftest.er1 >conftest.err | |
7529 | rm -f conftest.er1 | |
7530 | cat conftest.err >&5 | |
7531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7532 | (exit $ac_status); } >/dev/null; then | |
7533 | if test -s conftest.err; then | |
7534 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7535 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7536 | else | |
7537 | ac_cpp_err= | |
7538 | fi | |
9a156167 | 7539 | else |
bec39cab | 7540 | ac_cpp_err=yes |
9a156167 | 7541 | fi |
bec39cab AC |
7542 | if test -z "$ac_cpp_err"; then |
7543 | ac_header_preproc=yes | |
7544 | else | |
7545 | echo "$as_me: failed program was:" >&5 | |
7546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7547 | |
bec39cab | 7548 | ac_header_preproc=no |
9a156167 | 7549 | fi |
bec39cab | 7550 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7551 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7552 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7553 | |
bec39cab AC |
7554 | # So? What about this header? |
7555 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7556 | yes:no: ) | |
7557 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7558 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7560 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7561 | ac_header_preproc=yes | |
7562 | ;; | |
7563 | no:yes:* ) | |
7564 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7565 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7566 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7567 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7568 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7569 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7570 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7571 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7572 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7573 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7574 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7575 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7576 | ( |
7577 | cat <<\_ASBOX | |
7578 | ## ------------------------------------------ ## | |
7579 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7580 | ## ------------------------------------------ ## | |
7581 | _ASBOX | |
7582 | ) | | |
7583 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7584 | ;; |
7585 | esac | |
b4e70030 JB |
7586 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7587 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7588 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7590 | else |
bec39cab | 7591 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7592 | fi |
b4e70030 JB |
7593 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7594 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 7595 | |
bec39cab AC |
7596 | fi |
7597 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7598 | cat >>confdefs.h <<_ACEOF | |
7599 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7600 | _ACEOF | |
9a156167 | 7601 | |
bec39cab | 7602 | fi |
9a156167 | 7603 | |
bec39cab | 7604 | done |
9a156167 | 7605 | |
9a156167 | 7606 | |
9a156167 | 7607 | |
bec39cab AC |
7608 | |
7609 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
7610 | do | |
7611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7613 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7617 | fi | |
b4e70030 JB |
7618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7619 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7620 | else |
7621 | # Is the header compilable? | |
b4e70030 JB |
7622 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7623 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7624 | cat >conftest.$ac_ext <<_ACEOF |
7625 | /* confdefs.h. */ | |
7626 | _ACEOF | |
7627 | cat confdefs.h >>conftest.$ac_ext | |
7628 | cat >>conftest.$ac_ext <<_ACEOF | |
436868fb DP |
7629 | /* end confdefs.h. */ |
7630 | $ac_includes_default | |
7631 | #include <$ac_header> | |
7632 | _ACEOF | |
7633 | rm -f conftest.$ac_objext | |
7634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7635 | (eval $ac_compile) 2>conftest.er1 | |
7636 | ac_status=$? | |
7637 | grep -v '^ *+' conftest.er1 >conftest.err | |
7638 | rm -f conftest.er1 | |
7639 | cat conftest.err >&5 | |
7640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7641 | (exit $ac_status); } && | |
7642 | { ac_try='test -z "$ac_c_werror_flag" | |
7643 | || test ! -s conftest.err' | |
7644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7645 | (eval $ac_try) 2>&5 | |
7646 | ac_status=$? | |
7647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7648 | (exit $ac_status); }; } && | |
7649 | { ac_try='test -s conftest.$ac_objext' | |
7650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7651 | (eval $ac_try) 2>&5 | |
7652 | ac_status=$? | |
7653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7654 | (exit $ac_status); }; }; then | |
7655 | ac_header_compiler=yes | |
7656 | else | |
7657 | echo "$as_me: failed program was:" >&5 | |
7658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7659 | ||
7660 | ac_header_compiler=no | |
7661 | fi | |
7662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7663 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7664 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7665 | ||
7666 | # Is the header present? | |
7667 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7668 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7669 | cat >conftest.$ac_ext <<_ACEOF | |
7670 | /* confdefs.h. */ | |
7671 | _ACEOF | |
7672 | cat confdefs.h >>conftest.$ac_ext | |
7673 | cat >>conftest.$ac_ext <<_ACEOF | |
7674 | /* end confdefs.h. */ | |
7675 | #include <$ac_header> | |
7676 | _ACEOF | |
7677 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7678 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7679 | ac_status=$? | |
7680 | grep -v '^ *+' conftest.er1 >conftest.err | |
7681 | rm -f conftest.er1 | |
7682 | cat conftest.err >&5 | |
7683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7684 | (exit $ac_status); } >/dev/null; then | |
7685 | if test -s conftest.err; then | |
7686 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7687 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7688 | else | |
7689 | ac_cpp_err= | |
7690 | fi | |
7691 | else | |
7692 | ac_cpp_err=yes | |
7693 | fi | |
7694 | if test -z "$ac_cpp_err"; then | |
7695 | ac_header_preproc=yes | |
7696 | else | |
7697 | echo "$as_me: failed program was:" >&5 | |
7698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7699 | ||
7700 | ac_header_preproc=no | |
7701 | fi | |
7702 | rm -f conftest.err conftest.$ac_ext | |
7703 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7704 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7705 | ||
7706 | # So? What about this header? | |
7707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7708 | yes:no: ) | |
7709 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7710 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7712 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7713 | ac_header_preproc=yes | |
7714 | ;; | |
7715 | no:yes:* ) | |
7716 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7717 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7718 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7719 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7720 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7721 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7722 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7723 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7725 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7726 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7727 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7728 | ( | |
7729 | cat <<\_ASBOX | |
7730 | ## ------------------------------------------ ## | |
7731 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7732 | ## ------------------------------------------ ## | |
7733 | _ASBOX | |
7734 | ) | | |
7735 | sed "s/^/$as_me: WARNING: /" >&2 | |
7736 | ;; | |
7737 | esac | |
7738 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7740 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7742 | else | |
7743 | eval "$as_ac_Header=\$ac_header_preproc" | |
7744 | fi | |
7745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7746 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7747 | ||
7748 | fi | |
7749 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7750 | cat >>confdefs.h <<_ACEOF | |
7751 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7752 | _ACEOF | |
7753 | ||
7754 | fi | |
7755 | ||
7756 | done | |
7757 | ||
7758 | ||
7759 | for ac_header in signal.h | |
7760 | do | |
7761 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7763 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7767 | fi | |
7768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7769 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7770 | else | |
7771 | # Is the header compilable? | |
7772 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7774 | cat >conftest.$ac_ext <<_ACEOF | |
7775 | /* confdefs.h. */ | |
7776 | _ACEOF | |
7777 | cat confdefs.h >>conftest.$ac_ext | |
7778 | cat >>conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
7779 | /* end confdefs.h. */ |
7780 | $ac_includes_default | |
7781 | #include <$ac_header> | |
7782 | _ACEOF | |
7783 | rm -f conftest.$ac_objext | |
7784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7785 | (eval $ac_compile) 2>conftest.er1 | |
7786 | ac_status=$? | |
7787 | grep -v '^ *+' conftest.er1 >conftest.err | |
7788 | rm -f conftest.er1 | |
7789 | cat conftest.err >&5 | |
7790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7791 | (exit $ac_status); } && | |
b4e70030 JB |
7792 | { ac_try='test -z "$ac_c_werror_flag" |
7793 | || test ! -s conftest.err' | |
bec39cab AC |
7794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7795 | (eval $ac_try) 2>&5 | |
7796 | ac_status=$? | |
7797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7798 | (exit $ac_status); }; } && | |
7799 | { ac_try='test -s conftest.$ac_objext' | |
7800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7801 | (eval $ac_try) 2>&5 | |
7802 | ac_status=$? | |
7803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7804 | (exit $ac_status); }; }; then | |
7805 | ac_header_compiler=yes | |
7806 | else | |
7807 | echo "$as_me: failed program was:" >&5 | |
7808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7809 | ||
b4e70030 | 7810 | ac_header_compiler=no |
bec39cab AC |
7811 | fi |
7812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7813 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7814 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7815 | |
7816 | # Is the header present? | |
b4e70030 JB |
7817 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7818 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7819 | cat >conftest.$ac_ext <<_ACEOF |
7820 | /* confdefs.h. */ | |
7821 | _ACEOF | |
7822 | cat confdefs.h >>conftest.$ac_ext | |
7823 | cat >>conftest.$ac_ext <<_ACEOF | |
7824 | /* end confdefs.h. */ | |
7825 | #include <$ac_header> | |
7826 | _ACEOF | |
7827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7829 | ac_status=$? | |
7830 | grep -v '^ *+' conftest.er1 >conftest.err | |
7831 | rm -f conftest.er1 | |
7832 | cat conftest.err >&5 | |
7833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7834 | (exit $ac_status); } >/dev/null; then | |
7835 | if test -s conftest.err; then | |
7836 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7837 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7838 | else | |
7839 | ac_cpp_err= | |
7840 | fi | |
9a156167 | 7841 | else |
bec39cab | 7842 | ac_cpp_err=yes |
9a156167 | 7843 | fi |
bec39cab AC |
7844 | if test -z "$ac_cpp_err"; then |
7845 | ac_header_preproc=yes | |
7846 | else | |
7847 | echo "$as_me: failed program was:" >&5 | |
7848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7849 | |
bec39cab | 7850 | ac_header_preproc=no |
9a156167 | 7851 | fi |
bec39cab | 7852 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7853 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7854 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7855 | |
bec39cab AC |
7856 | # So? What about this header? |
7857 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7858 | yes:no: ) | |
7859 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7860 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7862 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7863 | ac_header_preproc=yes | |
7864 | ;; | |
7865 | no:yes:* ) | |
7866 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7867 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7868 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7869 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7870 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7871 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7872 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7873 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7875 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7876 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7877 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7878 | ( |
7879 | cat <<\_ASBOX | |
7880 | ## ------------------------------------------ ## | |
7881 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7882 | ## ------------------------------------------ ## | |
7883 | _ASBOX | |
7884 | ) | | |
7885 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7886 | ;; |
7887 | esac | |
b4e70030 JB |
7888 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7892 | else |
bec39cab | 7893 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7894 | fi |
b4e70030 JB |
7895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
7897 | |
7898 | fi | |
bec39cab AC |
7899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7900 | cat >>confdefs.h <<_ACEOF | |
7901 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7902 | _ACEOF | |
9a156167 | 7903 | |
bec39cab AC |
7904 | fi |
7905 | ||
7906 | done | |
9a156167 | 7907 | |
c890192f | 7908 | |
bec39cab AC |
7909 | for ac_header in stddef.h |
7910 | do | |
7911 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7913 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7914 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7915 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7917 | fi | |
b4e70030 JB |
7918 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7919 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7920 | else |
7921 | # Is the header compilable? | |
b4e70030 JB |
7922 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7923 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7924 | cat >conftest.$ac_ext <<_ACEOF |
7925 | /* confdefs.h. */ | |
7926 | _ACEOF | |
7927 | cat confdefs.h >>conftest.$ac_ext | |
7928 | cat >>conftest.$ac_ext <<_ACEOF | |
7929 | /* end confdefs.h. */ | |
7930 | $ac_includes_default | |
7931 | #include <$ac_header> | |
7932 | _ACEOF | |
7933 | rm -f conftest.$ac_objext | |
7934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7935 | (eval $ac_compile) 2>conftest.er1 | |
7936 | ac_status=$? | |
7937 | grep -v '^ *+' conftest.er1 >conftest.err | |
7938 | rm -f conftest.er1 | |
7939 | cat conftest.err >&5 | |
7940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7941 | (exit $ac_status); } && | |
b4e70030 JB |
7942 | { ac_try='test -z "$ac_c_werror_flag" |
7943 | || test ! -s conftest.err' | |
bec39cab AC |
7944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7945 | (eval $ac_try) 2>&5 | |
7946 | ac_status=$? | |
7947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7948 | (exit $ac_status); }; } && | |
7949 | { ac_try='test -s conftest.$ac_objext' | |
7950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7951 | (eval $ac_try) 2>&5 | |
7952 | ac_status=$? | |
7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7954 | (exit $ac_status); }; }; then | |
7955 | ac_header_compiler=yes | |
7956 | else | |
7957 | echo "$as_me: failed program was:" >&5 | |
7958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7959 | ||
b4e70030 | 7960 | ac_header_compiler=no |
bec39cab AC |
7961 | fi |
7962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7963 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7964 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7965 | |
7966 | # Is the header present? | |
b4e70030 JB |
7967 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7968 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7969 | cat >conftest.$ac_ext <<_ACEOF |
7970 | /* confdefs.h. */ | |
7971 | _ACEOF | |
7972 | cat confdefs.h >>conftest.$ac_ext | |
7973 | cat >>conftest.$ac_ext <<_ACEOF | |
7974 | /* end confdefs.h. */ | |
7975 | #include <$ac_header> | |
7976 | _ACEOF | |
7977 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7978 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7979 | ac_status=$? | |
7980 | grep -v '^ *+' conftest.er1 >conftest.err | |
7981 | rm -f conftest.er1 | |
7982 | cat conftest.err >&5 | |
7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7984 | (exit $ac_status); } >/dev/null; then | |
7985 | if test -s conftest.err; then | |
7986 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7987 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7988 | else | |
7989 | ac_cpp_err= | |
7990 | fi | |
c890192f | 7991 | else |
bec39cab AC |
7992 | ac_cpp_err=yes |
7993 | fi | |
7994 | if test -z "$ac_cpp_err"; then | |
7995 | ac_header_preproc=yes | |
c890192f | 7996 | else |
bec39cab AC |
7997 | echo "$as_me: failed program was:" >&5 |
7998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7999 | ||
8000 | ac_header_preproc=no | |
c890192f | 8001 | fi |
bec39cab | 8002 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8003 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8004 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8005 | |
8006 | # So? What about this header? | |
8007 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8008 | yes:no: ) | |
8009 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8010 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8012 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8013 | ac_header_preproc=yes | |
8014 | ;; | |
8015 | no:yes:* ) | |
8016 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8017 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8018 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8019 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8020 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8021 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8022 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8023 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8024 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8025 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8026 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8027 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8028 | ( |
8029 | cat <<\_ASBOX | |
8030 | ## ------------------------------------------ ## | |
8031 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8032 | ## ------------------------------------------ ## | |
8033 | _ASBOX | |
8034 | ) | | |
8035 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8036 | ;; |
8037 | esac | |
b4e70030 JB |
8038 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8039 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8040 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c890192f | 8042 | else |
bec39cab | 8043 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 8044 | fi |
b4e70030 JB |
8045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8046 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8047 | |
c890192f | 8048 | fi |
bec39cab AC |
8049 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8050 | cat >>confdefs.h <<_ACEOF | |
8051 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8052 | _ACEOF | |
c890192f | 8053 | |
c890192f MK |
8054 | fi |
8055 | ||
bec39cab | 8056 | done |
9a156167 | 8057 | |
bec39cab AC |
8058 | |
8059 | for ac_header in stdlib.h | |
8060 | do | |
8061 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8062 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8063 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8064 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8065 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8067 | fi | |
b4e70030 JB |
8068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8070 | else |
8071 | # Is the header compilable? | |
b4e70030 JB |
8072 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8073 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8074 | cat >conftest.$ac_ext <<_ACEOF |
8075 | /* confdefs.h. */ | |
8076 | _ACEOF | |
8077 | cat confdefs.h >>conftest.$ac_ext | |
8078 | cat >>conftest.$ac_ext <<_ACEOF | |
8079 | /* end confdefs.h. */ | |
8080 | $ac_includes_default | |
8081 | #include <$ac_header> | |
8082 | _ACEOF | |
8083 | rm -f conftest.$ac_objext | |
8084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8085 | (eval $ac_compile) 2>conftest.er1 | |
8086 | ac_status=$? | |
8087 | grep -v '^ *+' conftest.er1 >conftest.err | |
8088 | rm -f conftest.er1 | |
8089 | cat conftest.err >&5 | |
8090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8091 | (exit $ac_status); } && | |
b4e70030 JB |
8092 | { ac_try='test -z "$ac_c_werror_flag" |
8093 | || test ! -s conftest.err' | |
bec39cab AC |
8094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8095 | (eval $ac_try) 2>&5 | |
8096 | ac_status=$? | |
8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8098 | (exit $ac_status); }; } && | |
8099 | { ac_try='test -s conftest.$ac_objext' | |
8100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8101 | (eval $ac_try) 2>&5 | |
8102 | ac_status=$? | |
8103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8104 | (exit $ac_status); }; }; then | |
8105 | ac_header_compiler=yes | |
8106 | else | |
8107 | echo "$as_me: failed program was:" >&5 | |
8108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8109 | ||
b4e70030 | 8110 | ac_header_compiler=no |
bec39cab AC |
8111 | fi |
8112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8113 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8114 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8115 | |
8116 | # Is the header present? | |
b4e70030 JB |
8117 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8118 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8119 | cat >conftest.$ac_ext <<_ACEOF |
8120 | /* confdefs.h. */ | |
8121 | _ACEOF | |
8122 | cat confdefs.h >>conftest.$ac_ext | |
8123 | cat >>conftest.$ac_ext <<_ACEOF | |
8124 | /* end confdefs.h. */ | |
8125 | #include <$ac_header> | |
8126 | _ACEOF | |
8127 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8128 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8129 | ac_status=$? | |
8130 | grep -v '^ *+' conftest.er1 >conftest.err | |
8131 | rm -f conftest.er1 | |
8132 | cat conftest.err >&5 | |
8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8134 | (exit $ac_status); } >/dev/null; then | |
8135 | if test -s conftest.err; then | |
8136 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8137 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8138 | else | |
8139 | ac_cpp_err= | |
8140 | fi | |
9a156167 | 8141 | else |
bec39cab AC |
8142 | ac_cpp_err=yes |
8143 | fi | |
8144 | if test -z "$ac_cpp_err"; then | |
8145 | ac_header_preproc=yes | |
9a156167 | 8146 | else |
bec39cab AC |
8147 | echo "$as_me: failed program was:" >&5 |
8148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8149 | ||
8150 | ac_header_preproc=no | |
9a156167 | 8151 | fi |
bec39cab | 8152 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8153 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8154 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8155 | |
8156 | # So? What about this header? | |
8157 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8158 | yes:no: ) | |
8159 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8160 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8162 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8163 | ac_header_preproc=yes | |
8164 | ;; | |
8165 | no:yes:* ) | |
8166 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8167 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8168 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8169 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8170 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8171 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8172 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8173 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8174 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8175 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8176 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8177 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8178 | ( |
8179 | cat <<\_ASBOX | |
8180 | ## ------------------------------------------ ## | |
8181 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8182 | ## ------------------------------------------ ## | |
8183 | _ASBOX | |
8184 | ) | | |
8185 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8186 | ;; |
8187 | esac | |
b4e70030 JB |
8188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 8192 | else |
bec39cab | 8193 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 8194 | fi |
b4e70030 JB |
8195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8196 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8197 | |
9a156167 | 8198 | fi |
bec39cab AC |
8199 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8200 | cat >>confdefs.h <<_ACEOF | |
8201 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8202 | _ACEOF | |
9a156167 | 8203 | |
9a156167 MK |
8204 | fi |
8205 | ||
bec39cab AC |
8206 | done |
8207 | ||
06825bd1 | 8208 | |
bec39cab AC |
8209 | for ac_header in stdint.h |
8210 | do | |
8211 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8213 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8217 | fi | |
b4e70030 JB |
8218 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8219 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8220 | else |
8221 | # Is the header compilable? | |
b4e70030 JB |
8222 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8223 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8224 | cat >conftest.$ac_ext <<_ACEOF |
8225 | /* confdefs.h. */ | |
8226 | _ACEOF | |
8227 | cat confdefs.h >>conftest.$ac_ext | |
8228 | cat >>conftest.$ac_ext <<_ACEOF | |
8229 | /* end confdefs.h. */ | |
8230 | $ac_includes_default | |
8231 | #include <$ac_header> | |
8232 | _ACEOF | |
8233 | rm -f conftest.$ac_objext | |
8234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8235 | (eval $ac_compile) 2>conftest.er1 | |
8236 | ac_status=$? | |
8237 | grep -v '^ *+' conftest.er1 >conftest.err | |
8238 | rm -f conftest.er1 | |
8239 | cat conftest.err >&5 | |
8240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8241 | (exit $ac_status); } && | |
b4e70030 JB |
8242 | { ac_try='test -z "$ac_c_werror_flag" |
8243 | || test ! -s conftest.err' | |
bec39cab AC |
8244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8245 | (eval $ac_try) 2>&5 | |
8246 | ac_status=$? | |
8247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8248 | (exit $ac_status); }; } && | |
8249 | { ac_try='test -s conftest.$ac_objext' | |
8250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8251 | (eval $ac_try) 2>&5 | |
8252 | ac_status=$? | |
8253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8254 | (exit $ac_status); }; }; then | |
8255 | ac_header_compiler=yes | |
8256 | else | |
8257 | echo "$as_me: failed program was:" >&5 | |
8258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8259 | ||
b4e70030 | 8260 | ac_header_compiler=no |
bec39cab AC |
8261 | fi |
8262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8263 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8264 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8265 | |
8266 | # Is the header present? | |
b4e70030 JB |
8267 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8268 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8269 | cat >conftest.$ac_ext <<_ACEOF |
8270 | /* confdefs.h. */ | |
8271 | _ACEOF | |
8272 | cat confdefs.h >>conftest.$ac_ext | |
8273 | cat >>conftest.$ac_ext <<_ACEOF | |
8274 | /* end confdefs.h. */ | |
8275 | #include <$ac_header> | |
8276 | _ACEOF | |
8277 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8278 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8279 | ac_status=$? | |
8280 | grep -v '^ *+' conftest.er1 >conftest.err | |
8281 | rm -f conftest.er1 | |
8282 | cat conftest.err >&5 | |
8283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8284 | (exit $ac_status); } >/dev/null; then | |
8285 | if test -s conftest.err; then | |
8286 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8287 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8288 | else | |
8289 | ac_cpp_err= | |
8290 | fi | |
06825bd1 | 8291 | else |
bec39cab AC |
8292 | ac_cpp_err=yes |
8293 | fi | |
8294 | if test -z "$ac_cpp_err"; then | |
8295 | ac_header_preproc=yes | |
06825bd1 | 8296 | else |
bec39cab AC |
8297 | echo "$as_me: failed program was:" >&5 |
8298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8299 | ||
8300 | ac_header_preproc=no | |
06825bd1 | 8301 | fi |
bec39cab | 8302 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8303 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8304 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8305 | |
8306 | # So? What about this header? | |
8307 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8308 | yes:no: ) | |
8309 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8310 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8311 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8312 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8313 | ac_header_preproc=yes | |
8314 | ;; | |
8315 | no:yes:* ) | |
8316 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8317 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8318 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8319 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8320 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8321 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8322 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8323 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8324 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8325 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8326 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8327 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8328 | ( |
8329 | cat <<\_ASBOX | |
8330 | ## ------------------------------------------ ## | |
8331 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8332 | ## ------------------------------------------ ## | |
8333 | _ASBOX | |
8334 | ) | | |
8335 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8336 | ;; |
8337 | esac | |
b4e70030 JB |
8338 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
06825bd1 | 8342 | else |
bec39cab | 8343 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 8344 | fi |
b4e70030 JB |
8345 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8346 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8347 | |
06825bd1 | 8348 | fi |
bec39cab AC |
8349 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8350 | cat >>confdefs.h <<_ACEOF | |
8351 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8352 | _ACEOF | |
06825bd1 | 8353 | |
06825bd1 | 8354 | fi |
4f0be353 | 8355 | |
bec39cab | 8356 | done |
4f0be353 | 8357 | |
06825bd1 | 8358 | |
06825bd1 | 8359 | |
bec39cab AC |
8360 | |
8361 | for ac_header in string.h memory.h strings.h | |
8362 | do | |
8363 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8364 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8365 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8366 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8369 | fi | |
b4e70030 JB |
8370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8371 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8372 | else |
8373 | # Is the header compilable? | |
b4e70030 JB |
8374 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8375 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8376 | cat >conftest.$ac_ext <<_ACEOF |
8377 | /* confdefs.h. */ | |
8378 | _ACEOF | |
8379 | cat confdefs.h >>conftest.$ac_ext | |
8380 | cat >>conftest.$ac_ext <<_ACEOF | |
8381 | /* end confdefs.h. */ | |
8382 | $ac_includes_default | |
8383 | #include <$ac_header> | |
8384 | _ACEOF | |
8385 | rm -f conftest.$ac_objext | |
8386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8387 | (eval $ac_compile) 2>conftest.er1 | |
8388 | ac_status=$? | |
8389 | grep -v '^ *+' conftest.er1 >conftest.err | |
8390 | rm -f conftest.er1 | |
8391 | cat conftest.err >&5 | |
8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8393 | (exit $ac_status); } && | |
b4e70030 JB |
8394 | { ac_try='test -z "$ac_c_werror_flag" |
8395 | || test ! -s conftest.err' | |
bec39cab AC |
8396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8397 | (eval $ac_try) 2>&5 | |
8398 | ac_status=$? | |
8399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8400 | (exit $ac_status); }; } && | |
8401 | { ac_try='test -s conftest.$ac_objext' | |
8402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8403 | (eval $ac_try) 2>&5 | |
8404 | ac_status=$? | |
8405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8406 | (exit $ac_status); }; }; then | |
8407 | ac_header_compiler=yes | |
8408 | else | |
8409 | echo "$as_me: failed program was:" >&5 | |
8410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8411 | ||
b4e70030 | 8412 | ac_header_compiler=no |
bec39cab AC |
8413 | fi |
8414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8415 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8416 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8417 | |
8418 | # Is the header present? | |
b4e70030 JB |
8419 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8420 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8421 | cat >conftest.$ac_ext <<_ACEOF |
8422 | /* confdefs.h. */ | |
8423 | _ACEOF | |
8424 | cat confdefs.h >>conftest.$ac_ext | |
8425 | cat >>conftest.$ac_ext <<_ACEOF | |
8426 | /* end confdefs.h. */ | |
8427 | #include <$ac_header> | |
8428 | _ACEOF | |
8429 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8430 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8431 | ac_status=$? | |
8432 | grep -v '^ *+' conftest.er1 >conftest.err | |
8433 | rm -f conftest.er1 | |
8434 | cat conftest.err >&5 | |
8435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8436 | (exit $ac_status); } >/dev/null; then | |
8437 | if test -s conftest.err; then | |
8438 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8439 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8440 | else | |
8441 | ac_cpp_err= | |
8442 | fi | |
06825bd1 | 8443 | else |
bec39cab AC |
8444 | ac_cpp_err=yes |
8445 | fi | |
8446 | if test -z "$ac_cpp_err"; then | |
8447 | ac_header_preproc=yes | |
06825bd1 | 8448 | else |
bec39cab AC |
8449 | echo "$as_me: failed program was:" >&5 |
8450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8451 | ||
8452 | ac_header_preproc=no | |
06825bd1 | 8453 | fi |
bec39cab | 8454 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8455 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8456 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8457 | |
8458 | # So? What about this header? | |
8459 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8460 | yes:no: ) | |
8461 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8462 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8463 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8464 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8465 | ac_header_preproc=yes | |
8466 | ;; | |
8467 | no:yes:* ) | |
8468 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8469 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8470 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8471 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8472 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8473 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8474 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8475 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8476 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8477 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8478 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8479 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8480 | ( |
8481 | cat <<\_ASBOX | |
8482 | ## ------------------------------------------ ## | |
8483 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8484 | ## ------------------------------------------ ## | |
8485 | _ASBOX | |
8486 | ) | | |
8487 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8488 | ;; |
8489 | esac | |
b4e70030 JB |
8490 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8494 | else | |
8495 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 8496 | fi |
b4e70030 JB |
8497 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8498 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 8499 | |
06825bd1 | 8500 | fi |
bec39cab AC |
8501 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8502 | cat >>confdefs.h <<_ACEOF | |
8503 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8504 | _ACEOF | |
06825bd1 | 8505 | |
06825bd1 MK |
8506 | fi |
8507 | ||
bec39cab | 8508 | done |
5ee754fc | 8509 | |
bec39cab AC |
8510 | |
8511 | for ac_header in sys/fault.h | |
5ee754fc | 8512 | do |
bec39cab | 8513 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
8514 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8515 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8517 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8519 | fi | |
b4e70030 JB |
8520 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8521 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8522 | else |
8523 | # Is the header compilable? | |
b4e70030 JB |
8524 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8525 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8526 | cat >conftest.$ac_ext <<_ACEOF |
8527 | /* confdefs.h. */ | |
8528 | _ACEOF | |
8529 | cat confdefs.h >>conftest.$ac_ext | |
8530 | cat >>conftest.$ac_ext <<_ACEOF | |
8531 | /* end confdefs.h. */ | |
8532 | $ac_includes_default | |
8533 | #include <$ac_header> | |
8534 | _ACEOF | |
8535 | rm -f conftest.$ac_objext | |
8536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8537 | (eval $ac_compile) 2>conftest.er1 | |
8538 | ac_status=$? | |
8539 | grep -v '^ *+' conftest.er1 >conftest.err | |
8540 | rm -f conftest.er1 | |
8541 | cat conftest.err >&5 | |
8542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8543 | (exit $ac_status); } && | |
b4e70030 JB |
8544 | { ac_try='test -z "$ac_c_werror_flag" |
8545 | || test ! -s conftest.err' | |
bec39cab AC |
8546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8547 | (eval $ac_try) 2>&5 | |
8548 | ac_status=$? | |
8549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8550 | (exit $ac_status); }; } && | |
8551 | { ac_try='test -s conftest.$ac_objext' | |
8552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8553 | (eval $ac_try) 2>&5 | |
8554 | ac_status=$? | |
8555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8556 | (exit $ac_status); }; }; then | |
8557 | ac_header_compiler=yes | |
8558 | else | |
8559 | echo "$as_me: failed program was:" >&5 | |
8560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8561 | ||
b4e70030 | 8562 | ac_header_compiler=no |
bec39cab AC |
8563 | fi |
8564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8565 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8566 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8567 | |
8568 | # Is the header present? | |
b4e70030 JB |
8569 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8570 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8571 | cat >conftest.$ac_ext <<_ACEOF |
8572 | /* confdefs.h. */ | |
8573 | _ACEOF | |
8574 | cat confdefs.h >>conftest.$ac_ext | |
8575 | cat >>conftest.$ac_ext <<_ACEOF | |
8576 | /* end confdefs.h. */ | |
8577 | #include <$ac_header> | |
8578 | _ACEOF | |
8579 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8580 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8581 | ac_status=$? | |
8582 | grep -v '^ *+' conftest.er1 >conftest.err | |
8583 | rm -f conftest.er1 | |
8584 | cat conftest.err >&5 | |
8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8586 | (exit $ac_status); } >/dev/null; then | |
8587 | if test -s conftest.err; then | |
8588 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8589 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8590 | else | |
8591 | ac_cpp_err= | |
8592 | fi | |
5ee754fc | 8593 | else |
bec39cab | 8594 | ac_cpp_err=yes |
5ee754fc | 8595 | fi |
bec39cab AC |
8596 | if test -z "$ac_cpp_err"; then |
8597 | ac_header_preproc=yes | |
8598 | else | |
8599 | echo "$as_me: failed program was:" >&5 | |
8600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8601 | |
bec39cab | 8602 | ac_header_preproc=no |
5ee754fc | 8603 | fi |
bec39cab | 8604 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8605 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8606 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8607 | |
8608 | # So? What about this header? | |
8609 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8610 | yes:no: ) | |
8611 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8612 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8613 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8614 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8615 | ac_header_preproc=yes | |
8616 | ;; | |
8617 | no:yes:* ) | |
8618 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8619 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8620 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8621 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8622 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8623 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8624 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8625 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8627 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8628 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8629 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8630 | ( |
8631 | cat <<\_ASBOX | |
8632 | ## ------------------------------------------ ## | |
8633 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8634 | ## ------------------------------------------ ## | |
8635 | _ASBOX | |
8636 | ) | | |
8637 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8638 | ;; |
8639 | esac | |
b4e70030 JB |
8640 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8644 | else |
bec39cab | 8645 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 8646 | fi |
b4e70030 JB |
8647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 8649 | |
5ee754fc | 8650 | fi |
bec39cab AC |
8651 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8652 | cat >>confdefs.h <<_ACEOF | |
8653 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8654 | _ACEOF | |
c906108c | 8655 | |
5ee754fc | 8656 | fi |
bec39cab AC |
8657 | |
8658 | done | |
8659 | ||
8660 | ||
8661 | for ac_header in sys/file.h | |
8662 | do | |
8663 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8665 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8666 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8667 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8669 | fi | |
b4e70030 JB |
8670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8671 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8672 | else |
8673 | # Is the header compilable? | |
b4e70030 JB |
8674 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8675 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8676 | cat >conftest.$ac_ext <<_ACEOF |
8677 | /* confdefs.h. */ | |
8678 | _ACEOF | |
8679 | cat confdefs.h >>conftest.$ac_ext | |
8680 | cat >>conftest.$ac_ext <<_ACEOF | |
8681 | /* end confdefs.h. */ | |
8682 | $ac_includes_default | |
8683 | #include <$ac_header> | |
8684 | _ACEOF | |
8685 | rm -f conftest.$ac_objext | |
8686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8687 | (eval $ac_compile) 2>conftest.er1 | |
8688 | ac_status=$? | |
8689 | grep -v '^ *+' conftest.er1 >conftest.err | |
8690 | rm -f conftest.er1 | |
8691 | cat conftest.err >&5 | |
8692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8693 | (exit $ac_status); } && | |
b4e70030 JB |
8694 | { ac_try='test -z "$ac_c_werror_flag" |
8695 | || test ! -s conftest.err' | |
bec39cab AC |
8696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8697 | (eval $ac_try) 2>&5 | |
8698 | ac_status=$? | |
8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8700 | (exit $ac_status); }; } && | |
8701 | { ac_try='test -s conftest.$ac_objext' | |
8702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8703 | (eval $ac_try) 2>&5 | |
8704 | ac_status=$? | |
8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8706 | (exit $ac_status); }; }; then | |
8707 | ac_header_compiler=yes | |
8708 | else | |
8709 | echo "$as_me: failed program was:" >&5 | |
8710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8711 | ||
b4e70030 | 8712 | ac_header_compiler=no |
bec39cab AC |
8713 | fi |
8714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8715 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8716 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8717 | |
8718 | # Is the header present? | |
b4e70030 JB |
8719 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8720 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8721 | cat >conftest.$ac_ext <<_ACEOF |
8722 | /* confdefs.h. */ | |
8723 | _ACEOF | |
8724 | cat confdefs.h >>conftest.$ac_ext | |
8725 | cat >>conftest.$ac_ext <<_ACEOF | |
8726 | /* end confdefs.h. */ | |
8727 | #include <$ac_header> | |
8728 | _ACEOF | |
8729 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8730 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8731 | ac_status=$? | |
8732 | grep -v '^ *+' conftest.er1 >conftest.err | |
8733 | rm -f conftest.er1 | |
8734 | cat conftest.err >&5 | |
8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8736 | (exit $ac_status); } >/dev/null; then | |
8737 | if test -s conftest.err; then | |
8738 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8739 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8740 | else | |
8741 | ac_cpp_err= | |
8742 | fi | |
5ee754fc | 8743 | else |
bec39cab | 8744 | ac_cpp_err=yes |
5ee754fc | 8745 | fi |
bec39cab AC |
8746 | if test -z "$ac_cpp_err"; then |
8747 | ac_header_preproc=yes | |
8748 | else | |
8749 | echo "$as_me: failed program was:" >&5 | |
8750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8751 | |
bec39cab | 8752 | ac_header_preproc=no |
5ee754fc | 8753 | fi |
bec39cab | 8754 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8755 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8756 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 8757 | |
bec39cab AC |
8758 | # So? What about this header? |
8759 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8760 | yes:no: ) | |
8761 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8762 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8763 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8764 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8765 | ac_header_preproc=yes | |
8766 | ;; | |
8767 | no:yes:* ) | |
8768 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8769 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8770 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8771 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8772 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8773 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8774 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8775 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8776 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8777 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8778 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8779 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8780 | ( |
8781 | cat <<\_ASBOX | |
8782 | ## ------------------------------------------ ## | |
8783 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8784 | ## ------------------------------------------ ## | |
8785 | _ASBOX | |
8786 | ) | | |
8787 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8788 | ;; |
8789 | esac | |
b4e70030 JB |
8790 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8792 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 8794 | else |
bec39cab AC |
8795 | eval "$as_ac_Header=\$ac_header_preproc" |
8796 | fi | |
b4e70030 JB |
8797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8799 | |
bec39cab AC |
8800 | fi |
8801 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8802 | cat >>confdefs.h <<_ACEOF | |
8803 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8804 | _ACEOF | |
5ee754fc | 8805 | |
bec39cab | 8806 | fi |
5ee754fc | 8807 | |
bec39cab | 8808 | done |
5ee754fc | 8809 | |
5ee754fc | 8810 | |
bec39cab AC |
8811 | for ac_header in sys/filio.h |
8812 | do | |
8813 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8814 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8815 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8816 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8817 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8819 | fi | |
b4e70030 JB |
8820 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8821 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8822 | else |
8823 | # Is the header compilable? | |
b4e70030 JB |
8824 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8825 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8826 | cat >conftest.$ac_ext <<_ACEOF |
8827 | /* confdefs.h. */ | |
8828 | _ACEOF | |
8829 | cat confdefs.h >>conftest.$ac_ext | |
8830 | cat >>conftest.$ac_ext <<_ACEOF | |
8831 | /* end confdefs.h. */ | |
8832 | $ac_includes_default | |
8833 | #include <$ac_header> | |
8834 | _ACEOF | |
8835 | rm -f conftest.$ac_objext | |
8836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8837 | (eval $ac_compile) 2>conftest.er1 | |
8838 | ac_status=$? | |
8839 | grep -v '^ *+' conftest.er1 >conftest.err | |
8840 | rm -f conftest.er1 | |
8841 | cat conftest.err >&5 | |
8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8843 | (exit $ac_status); } && | |
b4e70030 JB |
8844 | { ac_try='test -z "$ac_c_werror_flag" |
8845 | || test ! -s conftest.err' | |
bec39cab AC |
8846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8847 | (eval $ac_try) 2>&5 | |
8848 | ac_status=$? | |
8849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8850 | (exit $ac_status); }; } && | |
8851 | { ac_try='test -s conftest.$ac_objext' | |
8852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8853 | (eval $ac_try) 2>&5 | |
8854 | ac_status=$? | |
8855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8856 | (exit $ac_status); }; }; then | |
8857 | ac_header_compiler=yes | |
8858 | else | |
8859 | echo "$as_me: failed program was:" >&5 | |
8860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8861 | ||
b4e70030 | 8862 | ac_header_compiler=no |
bec39cab AC |
8863 | fi |
8864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8865 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8866 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8867 | |
8868 | # Is the header present? | |
b4e70030 JB |
8869 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8870 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8871 | cat >conftest.$ac_ext <<_ACEOF |
8872 | /* confdefs.h. */ | |
8873 | _ACEOF | |
8874 | cat confdefs.h >>conftest.$ac_ext | |
8875 | cat >>conftest.$ac_ext <<_ACEOF | |
8876 | /* end confdefs.h. */ | |
8877 | #include <$ac_header> | |
8878 | _ACEOF | |
8879 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8880 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8881 | ac_status=$? | |
8882 | grep -v '^ *+' conftest.er1 >conftest.err | |
8883 | rm -f conftest.er1 | |
8884 | cat conftest.err >&5 | |
8885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8886 | (exit $ac_status); } >/dev/null; then | |
8887 | if test -s conftest.err; then | |
8888 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8889 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8890 | else | |
8891 | ac_cpp_err= | |
8892 | fi | |
5ee754fc | 8893 | else |
bec39cab | 8894 | ac_cpp_err=yes |
5ee754fc | 8895 | fi |
bec39cab AC |
8896 | if test -z "$ac_cpp_err"; then |
8897 | ac_header_preproc=yes | |
8898 | else | |
8899 | echo "$as_me: failed program was:" >&5 | |
8900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8901 | |
bec39cab | 8902 | ac_header_preproc=no |
5ee754fc | 8903 | fi |
bec39cab | 8904 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8905 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8906 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 8907 | |
bec39cab AC |
8908 | # So? What about this header? |
8909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8910 | yes:no: ) | |
8911 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8912 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8914 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8915 | ac_header_preproc=yes | |
8916 | ;; | |
8917 | no:yes:* ) | |
8918 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8919 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8920 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8921 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8922 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8923 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8924 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8925 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8926 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8927 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8928 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8929 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8930 | ( |
8931 | cat <<\_ASBOX | |
8932 | ## ------------------------------------------ ## | |
8933 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8934 | ## ------------------------------------------ ## | |
8935 | _ASBOX | |
8936 | ) | | |
8937 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8938 | ;; |
8939 | esac | |
b4e70030 JB |
8940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8944 | else |
bec39cab | 8945 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 8946 | fi |
b4e70030 JB |
8947 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8948 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8949 | |
5ee754fc | 8950 | fi |
bec39cab AC |
8951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8952 | cat >>confdefs.h <<_ACEOF | |
8953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8954 | _ACEOF | |
5ee754fc MK |
8955 | |
8956 | fi | |
8957 | ||
bec39cab AC |
8958 | done |
8959 | ||
8960 | ||
8961 | for ac_header in sys/ioctl.h | |
8962 | do | |
8963 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8965 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8966 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8967 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8969 | fi | |
b4e70030 JB |
8970 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8971 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8972 | else |
8973 | # Is the header compilable? | |
b4e70030 JB |
8974 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8975 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8976 | cat >conftest.$ac_ext <<_ACEOF |
8977 | /* confdefs.h. */ | |
8978 | _ACEOF | |
8979 | cat confdefs.h >>conftest.$ac_ext | |
8980 | cat >>conftest.$ac_ext <<_ACEOF | |
8981 | /* end confdefs.h. */ | |
8982 | $ac_includes_default | |
8983 | #include <$ac_header> | |
8984 | _ACEOF | |
8985 | rm -f conftest.$ac_objext | |
8986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8987 | (eval $ac_compile) 2>conftest.er1 | |
8988 | ac_status=$? | |
8989 | grep -v '^ *+' conftest.er1 >conftest.err | |
8990 | rm -f conftest.er1 | |
8991 | cat conftest.err >&5 | |
8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8993 | (exit $ac_status); } && | |
b4e70030 JB |
8994 | { ac_try='test -z "$ac_c_werror_flag" |
8995 | || test ! -s conftest.err' | |
bec39cab AC |
8996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8997 | (eval $ac_try) 2>&5 | |
8998 | ac_status=$? | |
8999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9000 | (exit $ac_status); }; } && | |
9001 | { ac_try='test -s conftest.$ac_objext' | |
9002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9003 | (eval $ac_try) 2>&5 | |
9004 | ac_status=$? | |
9005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9006 | (exit $ac_status); }; }; then | |
9007 | ac_header_compiler=yes | |
9008 | else | |
9009 | echo "$as_me: failed program was:" >&5 | |
9010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9011 | ||
b4e70030 | 9012 | ac_header_compiler=no |
bec39cab AC |
9013 | fi |
9014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9015 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9016 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9017 | |
9018 | # Is the header present? | |
b4e70030 JB |
9019 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9020 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9021 | cat >conftest.$ac_ext <<_ACEOF |
9022 | /* confdefs.h. */ | |
9023 | _ACEOF | |
9024 | cat confdefs.h >>conftest.$ac_ext | |
9025 | cat >>conftest.$ac_ext <<_ACEOF | |
9026 | /* end confdefs.h. */ | |
9027 | #include <$ac_header> | |
9028 | _ACEOF | |
9029 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9030 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9031 | ac_status=$? | |
9032 | grep -v '^ *+' conftest.er1 >conftest.err | |
9033 | rm -f conftest.er1 | |
9034 | cat conftest.err >&5 | |
9035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9036 | (exit $ac_status); } >/dev/null; then | |
9037 | if test -s conftest.err; then | |
9038 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9039 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9040 | else | |
9041 | ac_cpp_err= | |
9042 | fi | |
5ee754fc | 9043 | else |
bec39cab | 9044 | ac_cpp_err=yes |
5ee754fc | 9045 | fi |
bec39cab AC |
9046 | if test -z "$ac_cpp_err"; then |
9047 | ac_header_preproc=yes | |
9048 | else | |
9049 | echo "$as_me: failed program was:" >&5 | |
9050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 9051 | |
bec39cab | 9052 | ac_header_preproc=no |
5ee754fc | 9053 | fi |
bec39cab | 9054 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9055 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9056 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9057 | |
bec39cab AC |
9058 | # So? What about this header? |
9059 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9060 | yes:no: ) | |
9061 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9062 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9063 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9064 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9065 | ac_header_preproc=yes | |
9066 | ;; | |
9067 | no:yes:* ) | |
9068 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9069 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9070 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9071 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9072 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9073 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9074 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9075 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9076 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9077 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9078 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9079 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9080 | ( |
9081 | cat <<\_ASBOX | |
9082 | ## ------------------------------------------ ## | |
9083 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9084 | ## ------------------------------------------ ## | |
9085 | _ASBOX | |
9086 | ) | | |
9087 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9088 | ;; |
9089 | esac | |
b4e70030 JB |
9090 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9091 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 9094 | else |
bec39cab | 9095 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9096 | fi |
b4e70030 JB |
9097 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9098 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
9099 | |
9100 | fi | |
bec39cab AC |
9101 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9102 | cat >>confdefs.h <<_ACEOF | |
9103 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9104 | _ACEOF | |
9105 | ||
5ee754fc MK |
9106 | fi |
9107 | ||
bec39cab | 9108 | done |
5ee754fc | 9109 | |
5ee754fc | 9110 | |
bec39cab | 9111 | for ac_header in sys/param.h |
5ee754fc | 9112 | do |
bec39cab | 9113 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9114 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9115 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9116 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9117 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9119 | fi | |
b4e70030 JB |
9120 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9121 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9122 | else |
9123 | # Is the header compilable? | |
b4e70030 JB |
9124 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9125 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9126 | cat >conftest.$ac_ext <<_ACEOF |
9127 | /* confdefs.h. */ | |
9128 | _ACEOF | |
9129 | cat confdefs.h >>conftest.$ac_ext | |
9130 | cat >>conftest.$ac_ext <<_ACEOF | |
9131 | /* end confdefs.h. */ | |
9132 | $ac_includes_default | |
9133 | #include <$ac_header> | |
9134 | _ACEOF | |
9135 | rm -f conftest.$ac_objext | |
9136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9137 | (eval $ac_compile) 2>conftest.er1 | |
9138 | ac_status=$? | |
9139 | grep -v '^ *+' conftest.er1 >conftest.err | |
9140 | rm -f conftest.er1 | |
9141 | cat conftest.err >&5 | |
9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9143 | (exit $ac_status); } && | |
b4e70030 JB |
9144 | { ac_try='test -z "$ac_c_werror_flag" |
9145 | || test ! -s conftest.err' | |
bec39cab AC |
9146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9147 | (eval $ac_try) 2>&5 | |
9148 | ac_status=$? | |
9149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9150 | (exit $ac_status); }; } && | |
9151 | { ac_try='test -s conftest.$ac_objext' | |
9152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9153 | (eval $ac_try) 2>&5 | |
9154 | ac_status=$? | |
9155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9156 | (exit $ac_status); }; }; then | |
9157 | ac_header_compiler=yes | |
9158 | else | |
9159 | echo "$as_me: failed program was:" >&5 | |
9160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9161 | ||
b4e70030 | 9162 | ac_header_compiler=no |
bec39cab AC |
9163 | fi |
9164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9165 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9166 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9167 | |
9168 | # Is the header present? | |
b4e70030 JB |
9169 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9170 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9171 | cat >conftest.$ac_ext <<_ACEOF |
9172 | /* confdefs.h. */ | |
9173 | _ACEOF | |
9174 | cat confdefs.h >>conftest.$ac_ext | |
9175 | cat >>conftest.$ac_ext <<_ACEOF | |
9176 | /* end confdefs.h. */ | |
9177 | #include <$ac_header> | |
9178 | _ACEOF | |
9179 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9180 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9181 | ac_status=$? | |
9182 | grep -v '^ *+' conftest.er1 >conftest.err | |
9183 | rm -f conftest.er1 | |
9184 | cat conftest.err >&5 | |
9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9186 | (exit $ac_status); } >/dev/null; then | |
9187 | if test -s conftest.err; then | |
9188 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9189 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9190 | else | |
9191 | ac_cpp_err= | |
9192 | fi | |
5ee754fc | 9193 | else |
bec39cab | 9194 | ac_cpp_err=yes |
5ee754fc | 9195 | fi |
bec39cab AC |
9196 | if test -z "$ac_cpp_err"; then |
9197 | ac_header_preproc=yes | |
9198 | else | |
9199 | echo "$as_me: failed program was:" >&5 | |
9200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 9201 | |
bec39cab | 9202 | ac_header_preproc=no |
5ee754fc | 9203 | fi |
bec39cab | 9204 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9205 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9206 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
9207 | |
9208 | # So? What about this header? | |
9209 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9210 | yes:no: ) | |
9211 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9212 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9214 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9215 | ac_header_preproc=yes | |
9216 | ;; | |
9217 | no:yes:* ) | |
9218 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9219 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9220 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9221 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9222 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9223 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9224 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9225 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9227 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9228 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9229 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9230 | ( |
9231 | cat <<\_ASBOX | |
9232 | ## ------------------------------------------ ## | |
9233 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9234 | ## ------------------------------------------ ## | |
9235 | _ASBOX | |
9236 | ) | | |
9237 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9238 | ;; |
9239 | esac | |
b4e70030 JB |
9240 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9242 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 9244 | else |
bec39cab | 9245 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9246 | fi |
b4e70030 JB |
9247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 9249 | |
5ee754fc | 9250 | fi |
bec39cab AC |
9251 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9252 | cat >>confdefs.h <<_ACEOF | |
9253 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9254 | _ACEOF | |
9255 | ||
5ee754fc | 9256 | fi |
bec39cab | 9257 | |
5ee754fc MK |
9258 | done |
9259 | ||
bec39cab | 9260 | |
7eb368b3 NR |
9261 | for ac_header in sys/resource.h |
9262 | do | |
9263 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9265 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9269 | fi | |
9270 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9271 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9272 | else | |
9273 | # Is the header compilable? | |
9274 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9275 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9276 | cat >conftest.$ac_ext <<_ACEOF | |
9277 | /* confdefs.h. */ | |
9278 | _ACEOF | |
9279 | cat confdefs.h >>conftest.$ac_ext | |
9280 | cat >>conftest.$ac_ext <<_ACEOF | |
9281 | /* end confdefs.h. */ | |
9282 | $ac_includes_default | |
9283 | #include <$ac_header> | |
9284 | _ACEOF | |
9285 | rm -f conftest.$ac_objext | |
9286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9287 | (eval $ac_compile) 2>conftest.er1 | |
9288 | ac_status=$? | |
9289 | grep -v '^ *+' conftest.er1 >conftest.err | |
9290 | rm -f conftest.er1 | |
9291 | cat conftest.err >&5 | |
9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9293 | (exit $ac_status); } && | |
9294 | { ac_try='test -z "$ac_c_werror_flag" | |
9295 | || test ! -s conftest.err' | |
9296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9297 | (eval $ac_try) 2>&5 | |
9298 | ac_status=$? | |
9299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9300 | (exit $ac_status); }; } && | |
9301 | { ac_try='test -s conftest.$ac_objext' | |
9302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9303 | (eval $ac_try) 2>&5 | |
9304 | ac_status=$? | |
9305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9306 | (exit $ac_status); }; }; then | |
9307 | ac_header_compiler=yes | |
9308 | else | |
9309 | echo "$as_me: failed program was:" >&5 | |
9310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9311 | ||
9312 | ac_header_compiler=no | |
9313 | fi | |
9314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9315 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9316 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9317 | ||
9318 | # Is the header present? | |
9319 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9320 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9321 | cat >conftest.$ac_ext <<_ACEOF | |
9322 | /* confdefs.h. */ | |
9323 | _ACEOF | |
9324 | cat confdefs.h >>conftest.$ac_ext | |
9325 | cat >>conftest.$ac_ext <<_ACEOF | |
9326 | /* end confdefs.h. */ | |
9327 | #include <$ac_header> | |
9328 | _ACEOF | |
9329 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9330 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9331 | ac_status=$? | |
9332 | grep -v '^ *+' conftest.er1 >conftest.err | |
9333 | rm -f conftest.er1 | |
9334 | cat conftest.err >&5 | |
9335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9336 | (exit $ac_status); } >/dev/null; then | |
9337 | if test -s conftest.err; then | |
9338 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9339 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9340 | else | |
9341 | ac_cpp_err= | |
9342 | fi | |
9343 | else | |
9344 | ac_cpp_err=yes | |
9345 | fi | |
9346 | if test -z "$ac_cpp_err"; then | |
9347 | ac_header_preproc=yes | |
9348 | else | |
9349 | echo "$as_me: failed program was:" >&5 | |
9350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9351 | ||
9352 | ac_header_preproc=no | |
9353 | fi | |
9354 | rm -f conftest.err conftest.$ac_ext | |
9355 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9356 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9357 | ||
9358 | # So? What about this header? | |
9359 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9360 | yes:no: ) | |
9361 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9362 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9363 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9364 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9365 | ac_header_preproc=yes | |
9366 | ;; | |
9367 | no:yes:* ) | |
9368 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9369 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9370 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9371 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9372 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9373 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9374 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9375 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9376 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9377 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9378 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9379 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9380 | ( | |
9381 | cat <<\_ASBOX | |
9382 | ## ------------------------------------------ ## | |
9383 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9384 | ## ------------------------------------------ ## | |
9385 | _ASBOX | |
9386 | ) | | |
9387 | sed "s/^/$as_me: WARNING: /" >&2 | |
9388 | ;; | |
9389 | esac | |
9390 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9392 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9394 | else | |
9395 | eval "$as_ac_Header=\$ac_header_preproc" | |
9396 | fi | |
9397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9398 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9399 | ||
9400 | fi | |
9401 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9402 | cat >>confdefs.h <<_ACEOF | |
9403 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9404 | _ACEOF | |
9405 | ||
9406 | fi | |
9407 | ||
9408 | done | |
9409 | ||
9410 | ||
bec39cab | 9411 | for ac_header in sys/proc.h |
5ee754fc | 9412 | do |
bec39cab | 9413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 9418 | else |
7cb9022a | 9419 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9420 | /* confdefs.h. */ |
9421 | _ACEOF | |
9422 | cat confdefs.h >>conftest.$ac_ext | |
9423 | cat >>conftest.$ac_ext <<_ACEOF | |
9424 | /* end confdefs.h. */ | |
7cb9022a MK |
9425 | #if HAVE_SYS_PARAM_H |
9426 | # include <sys/param.h> | |
9427 | #endif | |
9428 | ||
9429 | ||
bec39cab AC |
9430 | #include <$ac_header> |
9431 | _ACEOF | |
9432 | rm -f conftest.$ac_objext | |
9433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9434 | (eval $ac_compile) 2>conftest.er1 | |
9435 | ac_status=$? | |
9436 | grep -v '^ *+' conftest.er1 >conftest.err | |
9437 | rm -f conftest.er1 | |
9438 | cat conftest.err >&5 | |
9439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9440 | (exit $ac_status); } && | |
b4e70030 JB |
9441 | { ac_try='test -z "$ac_c_werror_flag" |
9442 | || test ! -s conftest.err' | |
bec39cab AC |
9443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9444 | (eval $ac_try) 2>&5 | |
9445 | ac_status=$? | |
9446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9447 | (exit $ac_status); }; } && | |
9448 | { ac_try='test -s conftest.$ac_objext' | |
9449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9450 | (eval $ac_try) 2>&5 | |
9451 | ac_status=$? | |
9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9453 | (exit $ac_status); }; }; then | |
7cb9022a | 9454 | eval "$as_ac_Header=yes" |
bec39cab AC |
9455 | else |
9456 | echo "$as_me: failed program was:" >&5 | |
9457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9458 | ||
b4e70030 | 9459 | eval "$as_ac_Header=no" |
bec39cab AC |
9460 | fi |
9461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 9462 | fi |
b4e70030 JB |
9463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9465 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9466 | cat >>confdefs.h <<_ACEOF | |
9467 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9468 | _ACEOF | |
9469 | ||
5ee754fc | 9470 | fi |
bec39cab | 9471 | |
5ee754fc MK |
9472 | done |
9473 | ||
bec39cab AC |
9474 | |
9475 | for ac_header in sys/procfs.h | |
5ee754fc | 9476 | do |
bec39cab | 9477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9483 | fi | |
b4e70030 JB |
9484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9486 | else |
9487 | # Is the header compilable? | |
b4e70030 JB |
9488 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9489 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9490 | cat >conftest.$ac_ext <<_ACEOF |
9491 | /* confdefs.h. */ | |
9492 | _ACEOF | |
9493 | cat confdefs.h >>conftest.$ac_ext | |
9494 | cat >>conftest.$ac_ext <<_ACEOF | |
9495 | /* end confdefs.h. */ | |
9496 | $ac_includes_default | |
9497 | #include <$ac_header> | |
9498 | _ACEOF | |
9499 | rm -f conftest.$ac_objext | |
9500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9501 | (eval $ac_compile) 2>conftest.er1 | |
9502 | ac_status=$? | |
9503 | grep -v '^ *+' conftest.er1 >conftest.err | |
9504 | rm -f conftest.er1 | |
9505 | cat conftest.err >&5 | |
9506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9507 | (exit $ac_status); } && | |
b4e70030 JB |
9508 | { ac_try='test -z "$ac_c_werror_flag" |
9509 | || test ! -s conftest.err' | |
bec39cab AC |
9510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9511 | (eval $ac_try) 2>&5 | |
9512 | ac_status=$? | |
9513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9514 | (exit $ac_status); }; } && | |
9515 | { ac_try='test -s conftest.$ac_objext' | |
9516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9517 | (eval $ac_try) 2>&5 | |
9518 | ac_status=$? | |
9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9520 | (exit $ac_status); }; }; then | |
9521 | ac_header_compiler=yes | |
9522 | else | |
9523 | echo "$as_me: failed program was:" >&5 | |
9524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9525 | ||
b4e70030 | 9526 | ac_header_compiler=no |
bec39cab AC |
9527 | fi |
9528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9529 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9530 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9531 | |
9532 | # Is the header present? | |
b4e70030 JB |
9533 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9534 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9535 | cat >conftest.$ac_ext <<_ACEOF |
9536 | /* confdefs.h. */ | |
9537 | _ACEOF | |
9538 | cat confdefs.h >>conftest.$ac_ext | |
9539 | cat >>conftest.$ac_ext <<_ACEOF | |
9540 | /* end confdefs.h. */ | |
9541 | #include <$ac_header> | |
9542 | _ACEOF | |
9543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9545 | ac_status=$? | |
9546 | grep -v '^ *+' conftest.er1 >conftest.err | |
9547 | rm -f conftest.er1 | |
9548 | cat conftest.err >&5 | |
9549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9550 | (exit $ac_status); } >/dev/null; then | |
9551 | if test -s conftest.err; then | |
9552 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9553 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9554 | else | |
9555 | ac_cpp_err= | |
9556 | fi | |
9557 | else | |
9558 | ac_cpp_err=yes | |
5ee754fc | 9559 | fi |
bec39cab AC |
9560 | if test -z "$ac_cpp_err"; then |
9561 | ac_header_preproc=yes | |
5ee754fc | 9562 | else |
bec39cab AC |
9563 | echo "$as_me: failed program was:" >&5 |
9564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9565 | ||
9566 | ac_header_preproc=no | |
5ee754fc | 9567 | fi |
bec39cab | 9568 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9569 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9570 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9571 | |
bec39cab AC |
9572 | # So? What about this header? |
9573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9574 | yes:no: ) | |
9575 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9576 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9578 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9579 | ac_header_preproc=yes | |
9580 | ;; | |
9581 | no:yes:* ) | |
9582 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9583 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9584 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9585 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9586 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9587 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9588 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9589 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9591 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9592 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9593 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9594 | ( |
9595 | cat <<\_ASBOX | |
9596 | ## ------------------------------------------ ## | |
9597 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9598 | ## ------------------------------------------ ## | |
9599 | _ASBOX | |
9600 | ) | | |
9601 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9602 | ;; |
9603 | esac | |
b4e70030 JB |
9604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608 | else | |
9609 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9610 | fi |
b4e70030 JB |
9611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9612 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9613 | |
5ee754fc | 9614 | fi |
bec39cab AC |
9615 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9616 | cat >>confdefs.h <<_ACEOF | |
9617 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9618 | _ACEOF | |
9619 | ||
5ee754fc | 9620 | fi |
bec39cab | 9621 | |
5ee754fc MK |
9622 | done |
9623 | ||
bec39cab AC |
9624 | |
9625 | ||
9626 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 9627 | do |
bec39cab | 9628 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9629 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9630 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9631 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9634 | fi | |
b4e70030 JB |
9635 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9636 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9637 | else |
9638 | # Is the header compilable? | |
b4e70030 JB |
9639 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9640 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9641 | cat >conftest.$ac_ext <<_ACEOF |
9642 | /* confdefs.h. */ | |
9643 | _ACEOF | |
9644 | cat confdefs.h >>conftest.$ac_ext | |
9645 | cat >>conftest.$ac_ext <<_ACEOF | |
9646 | /* end confdefs.h. */ | |
9647 | $ac_includes_default | |
9648 | #include <$ac_header> | |
9649 | _ACEOF | |
9650 | rm -f conftest.$ac_objext | |
9651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9652 | (eval $ac_compile) 2>conftest.er1 | |
9653 | ac_status=$? | |
9654 | grep -v '^ *+' conftest.er1 >conftest.err | |
9655 | rm -f conftest.er1 | |
9656 | cat conftest.err >&5 | |
9657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9658 | (exit $ac_status); } && | |
b4e70030 JB |
9659 | { ac_try='test -z "$ac_c_werror_flag" |
9660 | || test ! -s conftest.err' | |
bec39cab AC |
9661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9662 | (eval $ac_try) 2>&5 | |
9663 | ac_status=$? | |
9664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9665 | (exit $ac_status); }; } && | |
9666 | { ac_try='test -s conftest.$ac_objext' | |
9667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9668 | (eval $ac_try) 2>&5 | |
9669 | ac_status=$? | |
9670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9671 | (exit $ac_status); }; }; then | |
9672 | ac_header_compiler=yes | |
9673 | else | |
9674 | echo "$as_me: failed program was:" >&5 | |
9675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9676 | ||
b4e70030 | 9677 | ac_header_compiler=no |
bec39cab AC |
9678 | fi |
9679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9680 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9681 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9682 | |
9683 | # Is the header present? | |
b4e70030 JB |
9684 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9685 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9686 | cat >conftest.$ac_ext <<_ACEOF |
9687 | /* confdefs.h. */ | |
9688 | _ACEOF | |
9689 | cat confdefs.h >>conftest.$ac_ext | |
9690 | cat >>conftest.$ac_ext <<_ACEOF | |
9691 | /* end confdefs.h. */ | |
9692 | #include <$ac_header> | |
9693 | _ACEOF | |
9694 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9695 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9696 | ac_status=$? | |
9697 | grep -v '^ *+' conftest.er1 >conftest.err | |
9698 | rm -f conftest.er1 | |
9699 | cat conftest.err >&5 | |
9700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9701 | (exit $ac_status); } >/dev/null; then | |
9702 | if test -s conftest.err; then | |
9703 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9704 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9705 | else | |
9706 | ac_cpp_err= | |
9707 | fi | |
9708 | else | |
9709 | ac_cpp_err=yes | |
5ee754fc | 9710 | fi |
bec39cab AC |
9711 | if test -z "$ac_cpp_err"; then |
9712 | ac_header_preproc=yes | |
5ee754fc | 9713 | else |
bec39cab AC |
9714 | echo "$as_me: failed program was:" >&5 |
9715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9716 | ||
9717 | ac_header_preproc=no | |
5ee754fc | 9718 | fi |
bec39cab | 9719 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9720 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9721 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9722 | |
bec39cab AC |
9723 | # So? What about this header? |
9724 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9725 | yes:no: ) | |
9726 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9727 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9729 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9730 | ac_header_preproc=yes | |
9731 | ;; | |
9732 | no:yes:* ) | |
9733 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9734 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9735 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9736 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9737 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9738 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9739 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9740 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9741 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9742 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9743 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9744 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9745 | ( |
9746 | cat <<\_ASBOX | |
9747 | ## ------------------------------------------ ## | |
9748 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9749 | ## ------------------------------------------ ## | |
9750 | _ASBOX | |
9751 | ) | | |
9752 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9753 | ;; |
9754 | esac | |
b4e70030 JB |
9755 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9756 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9757 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9759 | else | |
9760 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9761 | fi |
b4e70030 JB |
9762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9764 | |
5ee754fc | 9765 | fi |
bec39cab AC |
9766 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9767 | cat >>confdefs.h <<_ACEOF | |
9768 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9769 | _ACEOF | |
9770 | ||
5ee754fc | 9771 | fi |
bec39cab | 9772 | |
5ee754fc MK |
9773 | done |
9774 | ||
bec39cab AC |
9775 | |
9776 | ||
9777 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 9778 | do |
bec39cab | 9779 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9781 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9785 | fi | |
b4e70030 JB |
9786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9787 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9788 | else |
9789 | # Is the header compilable? | |
b4e70030 JB |
9790 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9791 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9792 | cat >conftest.$ac_ext <<_ACEOF |
9793 | /* confdefs.h. */ | |
9794 | _ACEOF | |
9795 | cat confdefs.h >>conftest.$ac_ext | |
9796 | cat >>conftest.$ac_ext <<_ACEOF | |
9797 | /* end confdefs.h. */ | |
9798 | $ac_includes_default | |
9799 | #include <$ac_header> | |
9800 | _ACEOF | |
9801 | rm -f conftest.$ac_objext | |
9802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9803 | (eval $ac_compile) 2>conftest.er1 | |
9804 | ac_status=$? | |
9805 | grep -v '^ *+' conftest.er1 >conftest.err | |
9806 | rm -f conftest.er1 | |
9807 | cat conftest.err >&5 | |
9808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9809 | (exit $ac_status); } && | |
b4e70030 JB |
9810 | { ac_try='test -z "$ac_c_werror_flag" |
9811 | || test ! -s conftest.err' | |
bec39cab AC |
9812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9813 | (eval $ac_try) 2>&5 | |
9814 | ac_status=$? | |
9815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9816 | (exit $ac_status); }; } && | |
9817 | { ac_try='test -s conftest.$ac_objext' | |
9818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9819 | (eval $ac_try) 2>&5 | |
9820 | ac_status=$? | |
9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9822 | (exit $ac_status); }; }; then | |
9823 | ac_header_compiler=yes | |
9824 | else | |
9825 | echo "$as_me: failed program was:" >&5 | |
9826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9827 | ||
b4e70030 | 9828 | ac_header_compiler=no |
bec39cab AC |
9829 | fi |
9830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9831 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9832 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9833 | |
9834 | # Is the header present? | |
b4e70030 JB |
9835 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9836 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9837 | cat >conftest.$ac_ext <<_ACEOF |
9838 | /* confdefs.h. */ | |
9839 | _ACEOF | |
9840 | cat confdefs.h >>conftest.$ac_ext | |
9841 | cat >>conftest.$ac_ext <<_ACEOF | |
9842 | /* end confdefs.h. */ | |
9843 | #include <$ac_header> | |
9844 | _ACEOF | |
9845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9847 | ac_status=$? | |
9848 | grep -v '^ *+' conftest.er1 >conftest.err | |
9849 | rm -f conftest.er1 | |
9850 | cat conftest.err >&5 | |
9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9852 | (exit $ac_status); } >/dev/null; then | |
9853 | if test -s conftest.err; then | |
9854 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9855 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9856 | else | |
9857 | ac_cpp_err= | |
9858 | fi | |
9859 | else | |
9860 | ac_cpp_err=yes | |
5ee754fc | 9861 | fi |
bec39cab AC |
9862 | if test -z "$ac_cpp_err"; then |
9863 | ac_header_preproc=yes | |
5ee754fc | 9864 | else |
bec39cab AC |
9865 | echo "$as_me: failed program was:" >&5 |
9866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9867 | ||
9868 | ac_header_preproc=no | |
5ee754fc | 9869 | fi |
bec39cab | 9870 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9871 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9872 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9873 | |
bec39cab AC |
9874 | # So? What about this header? |
9875 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9876 | yes:no: ) | |
9877 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9878 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9879 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9880 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9881 | ac_header_preproc=yes | |
9882 | ;; | |
9883 | no:yes:* ) | |
9884 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9885 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9886 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9887 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9888 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9889 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9890 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9891 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9893 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9894 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9895 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9896 | ( |
9897 | cat <<\_ASBOX | |
9898 | ## ------------------------------------------ ## | |
9899 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9900 | ## ------------------------------------------ ## | |
9901 | _ASBOX | |
9902 | ) | | |
9903 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9904 | ;; |
9905 | esac | |
b4e70030 JB |
9906 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9910 | else | |
9911 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9912 | fi |
b4e70030 JB |
9913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9914 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9915 | |
5ee754fc | 9916 | fi |
bec39cab AC |
9917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9918 | cat >>confdefs.h <<_ACEOF | |
9919 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9920 | _ACEOF | |
9921 | ||
5ee754fc | 9922 | fi |
bec39cab | 9923 | |
5ee754fc MK |
9924 | done |
9925 | ||
bec39cab AC |
9926 | |
9927 | for ac_header in sys/select.h | |
5ee754fc | 9928 | do |
bec39cab | 9929 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9931 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9935 | fi | |
b4e70030 JB |
9936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9937 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9938 | else |
9939 | # Is the header compilable? | |
b4e70030 JB |
9940 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9941 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9942 | cat >conftest.$ac_ext <<_ACEOF |
9943 | /* confdefs.h. */ | |
9944 | _ACEOF | |
9945 | cat confdefs.h >>conftest.$ac_ext | |
9946 | cat >>conftest.$ac_ext <<_ACEOF | |
9947 | /* end confdefs.h. */ | |
9948 | $ac_includes_default | |
9949 | #include <$ac_header> | |
9950 | _ACEOF | |
9951 | rm -f conftest.$ac_objext | |
9952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9953 | (eval $ac_compile) 2>conftest.er1 | |
9954 | ac_status=$? | |
9955 | grep -v '^ *+' conftest.er1 >conftest.err | |
9956 | rm -f conftest.er1 | |
9957 | cat conftest.err >&5 | |
9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9959 | (exit $ac_status); } && | |
b4e70030 JB |
9960 | { ac_try='test -z "$ac_c_werror_flag" |
9961 | || test ! -s conftest.err' | |
bec39cab AC |
9962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9963 | (eval $ac_try) 2>&5 | |
9964 | ac_status=$? | |
9965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9966 | (exit $ac_status); }; } && | |
9967 | { ac_try='test -s conftest.$ac_objext' | |
9968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9969 | (eval $ac_try) 2>&5 | |
9970 | ac_status=$? | |
9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9972 | (exit $ac_status); }; }; then | |
9973 | ac_header_compiler=yes | |
9974 | else | |
9975 | echo "$as_me: failed program was:" >&5 | |
9976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9977 | ||
b4e70030 | 9978 | ac_header_compiler=no |
bec39cab AC |
9979 | fi |
9980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9981 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9982 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9983 | |
9984 | # Is the header present? | |
b4e70030 JB |
9985 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9986 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9987 | cat >conftest.$ac_ext <<_ACEOF |
9988 | /* confdefs.h. */ | |
9989 | _ACEOF | |
9990 | cat confdefs.h >>conftest.$ac_ext | |
9991 | cat >>conftest.$ac_ext <<_ACEOF | |
9992 | /* end confdefs.h. */ | |
9993 | #include <$ac_header> | |
9994 | _ACEOF | |
9995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9997 | ac_status=$? | |
9998 | grep -v '^ *+' conftest.er1 >conftest.err | |
9999 | rm -f conftest.er1 | |
10000 | cat conftest.err >&5 | |
10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10002 | (exit $ac_status); } >/dev/null; then | |
10003 | if test -s conftest.err; then | |
10004 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10005 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10006 | else | |
10007 | ac_cpp_err= | |
10008 | fi | |
10009 | else | |
10010 | ac_cpp_err=yes | |
5ee754fc | 10011 | fi |
bec39cab AC |
10012 | if test -z "$ac_cpp_err"; then |
10013 | ac_header_preproc=yes | |
5ee754fc | 10014 | else |
bec39cab AC |
10015 | echo "$as_me: failed program was:" >&5 |
10016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10017 | ||
10018 | ac_header_preproc=no | |
5ee754fc | 10019 | fi |
bec39cab | 10020 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10021 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10022 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10023 | |
bec39cab AC |
10024 | # So? What about this header? |
10025 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10026 | yes:no: ) | |
10027 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10028 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10030 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10031 | ac_header_preproc=yes | |
10032 | ;; | |
10033 | no:yes:* ) | |
10034 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10035 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10036 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10037 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10038 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10039 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10040 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10041 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10043 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10044 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10045 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10046 | ( |
10047 | cat <<\_ASBOX | |
10048 | ## ------------------------------------------ ## | |
10049 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10050 | ## ------------------------------------------ ## | |
10051 | _ASBOX | |
10052 | ) | | |
10053 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10054 | ;; |
10055 | esac | |
b4e70030 JB |
10056 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10060 | else | |
10061 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10062 | fi |
b4e70030 JB |
10063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10064 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10065 | |
5ee754fc | 10066 | fi |
bec39cab AC |
10067 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10068 | cat >>confdefs.h <<_ACEOF | |
10069 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10070 | _ACEOF | |
10071 | ||
5ee754fc | 10072 | fi |
bec39cab | 10073 | |
5ee754fc MK |
10074 | done |
10075 | ||
bec39cab AC |
10076 | |
10077 | for ac_header in sys/syscall.h | |
5ee754fc | 10078 | do |
bec39cab | 10079 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10080 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10081 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10082 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10083 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10085 | fi | |
b4e70030 JB |
10086 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10087 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10088 | else |
10089 | # Is the header compilable? | |
b4e70030 JB |
10090 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10091 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10092 | cat >conftest.$ac_ext <<_ACEOF |
10093 | /* confdefs.h. */ | |
10094 | _ACEOF | |
10095 | cat confdefs.h >>conftest.$ac_ext | |
10096 | cat >>conftest.$ac_ext <<_ACEOF | |
10097 | /* end confdefs.h. */ | |
10098 | $ac_includes_default | |
10099 | #include <$ac_header> | |
10100 | _ACEOF | |
10101 | rm -f conftest.$ac_objext | |
10102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10103 | (eval $ac_compile) 2>conftest.er1 | |
10104 | ac_status=$? | |
10105 | grep -v '^ *+' conftest.er1 >conftest.err | |
10106 | rm -f conftest.er1 | |
10107 | cat conftest.err >&5 | |
10108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10109 | (exit $ac_status); } && | |
b4e70030 JB |
10110 | { ac_try='test -z "$ac_c_werror_flag" |
10111 | || test ! -s conftest.err' | |
bec39cab AC |
10112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10113 | (eval $ac_try) 2>&5 | |
10114 | ac_status=$? | |
10115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10116 | (exit $ac_status); }; } && | |
10117 | { ac_try='test -s conftest.$ac_objext' | |
10118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10119 | (eval $ac_try) 2>&5 | |
10120 | ac_status=$? | |
10121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10122 | (exit $ac_status); }; }; then | |
10123 | ac_header_compiler=yes | |
10124 | else | |
10125 | echo "$as_me: failed program was:" >&5 | |
10126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10127 | ||
b4e70030 | 10128 | ac_header_compiler=no |
bec39cab AC |
10129 | fi |
10130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10131 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10132 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10133 | |
10134 | # Is the header present? | |
b4e70030 JB |
10135 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10136 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10137 | cat >conftest.$ac_ext <<_ACEOF |
10138 | /* confdefs.h. */ | |
10139 | _ACEOF | |
10140 | cat confdefs.h >>conftest.$ac_ext | |
10141 | cat >>conftest.$ac_ext <<_ACEOF | |
10142 | /* end confdefs.h. */ | |
10143 | #include <$ac_header> | |
10144 | _ACEOF | |
10145 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10146 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10147 | ac_status=$? | |
10148 | grep -v '^ *+' conftest.er1 >conftest.err | |
10149 | rm -f conftest.er1 | |
10150 | cat conftest.err >&5 | |
10151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10152 | (exit $ac_status); } >/dev/null; then | |
10153 | if test -s conftest.err; then | |
10154 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10155 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10156 | else | |
10157 | ac_cpp_err= | |
10158 | fi | |
10159 | else | |
10160 | ac_cpp_err=yes | |
5ee754fc | 10161 | fi |
bec39cab AC |
10162 | if test -z "$ac_cpp_err"; then |
10163 | ac_header_preproc=yes | |
5ee754fc | 10164 | else |
bec39cab AC |
10165 | echo "$as_me: failed program was:" >&5 |
10166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10167 | ||
10168 | ac_header_preproc=no | |
5ee754fc | 10169 | fi |
bec39cab | 10170 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10171 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10172 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10173 | |
bec39cab AC |
10174 | # So? What about this header? |
10175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10176 | yes:no: ) | |
10177 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10178 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10180 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10181 | ac_header_preproc=yes | |
10182 | ;; | |
10183 | no:yes:* ) | |
10184 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10185 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10186 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10187 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10188 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10189 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10190 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10191 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10193 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10194 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10195 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10196 | ( |
10197 | cat <<\_ASBOX | |
10198 | ## ------------------------------------------ ## | |
10199 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10200 | ## ------------------------------------------ ## | |
10201 | _ASBOX | |
10202 | ) | | |
10203 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10204 | ;; |
10205 | esac | |
b4e70030 JB |
10206 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10207 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10210 | else | |
10211 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10212 | fi |
b4e70030 JB |
10213 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10214 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10215 | |
5ee754fc | 10216 | fi |
bec39cab AC |
10217 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10218 | cat >>confdefs.h <<_ACEOF | |
10219 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10220 | _ACEOF | |
10221 | ||
5ee754fc | 10222 | fi |
bec39cab | 10223 | |
5ee754fc MK |
10224 | done |
10225 | ||
bec39cab AC |
10226 | |
10227 | for ac_header in sys/types.h | |
5ee754fc | 10228 | do |
bec39cab | 10229 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10231 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10233 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10235 | fi | |
b4e70030 JB |
10236 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10237 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10238 | else |
10239 | # Is the header compilable? | |
b4e70030 JB |
10240 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10241 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10242 | cat >conftest.$ac_ext <<_ACEOF |
10243 | /* confdefs.h. */ | |
10244 | _ACEOF | |
10245 | cat confdefs.h >>conftest.$ac_ext | |
10246 | cat >>conftest.$ac_ext <<_ACEOF | |
10247 | /* end confdefs.h. */ | |
10248 | $ac_includes_default | |
10249 | #include <$ac_header> | |
10250 | _ACEOF | |
10251 | rm -f conftest.$ac_objext | |
10252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10253 | (eval $ac_compile) 2>conftest.er1 | |
10254 | ac_status=$? | |
10255 | grep -v '^ *+' conftest.er1 >conftest.err | |
10256 | rm -f conftest.er1 | |
10257 | cat conftest.err >&5 | |
10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10259 | (exit $ac_status); } && | |
b4e70030 JB |
10260 | { ac_try='test -z "$ac_c_werror_flag" |
10261 | || test ! -s conftest.err' | |
bec39cab AC |
10262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10263 | (eval $ac_try) 2>&5 | |
10264 | ac_status=$? | |
10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10266 | (exit $ac_status); }; } && | |
10267 | { ac_try='test -s conftest.$ac_objext' | |
10268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10269 | (eval $ac_try) 2>&5 | |
10270 | ac_status=$? | |
10271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10272 | (exit $ac_status); }; }; then | |
10273 | ac_header_compiler=yes | |
10274 | else | |
10275 | echo "$as_me: failed program was:" >&5 | |
10276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10277 | ||
b4e70030 | 10278 | ac_header_compiler=no |
bec39cab AC |
10279 | fi |
10280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10281 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10282 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10283 | |
10284 | # Is the header present? | |
b4e70030 JB |
10285 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10286 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10287 | cat >conftest.$ac_ext <<_ACEOF |
10288 | /* confdefs.h. */ | |
10289 | _ACEOF | |
10290 | cat confdefs.h >>conftest.$ac_ext | |
10291 | cat >>conftest.$ac_ext <<_ACEOF | |
10292 | /* end confdefs.h. */ | |
10293 | #include <$ac_header> | |
10294 | _ACEOF | |
10295 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10296 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10297 | ac_status=$? | |
10298 | grep -v '^ *+' conftest.er1 >conftest.err | |
10299 | rm -f conftest.er1 | |
10300 | cat conftest.err >&5 | |
10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10302 | (exit $ac_status); } >/dev/null; then | |
10303 | if test -s conftest.err; then | |
10304 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10305 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10306 | else | |
10307 | ac_cpp_err= | |
10308 | fi | |
10309 | else | |
10310 | ac_cpp_err=yes | |
5ee754fc | 10311 | fi |
bec39cab AC |
10312 | if test -z "$ac_cpp_err"; then |
10313 | ac_header_preproc=yes | |
5ee754fc | 10314 | else |
bec39cab AC |
10315 | echo "$as_me: failed program was:" >&5 |
10316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10317 | ||
10318 | ac_header_preproc=no | |
5ee754fc | 10319 | fi |
bec39cab | 10320 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10321 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10322 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10323 | |
bec39cab AC |
10324 | # So? What about this header? |
10325 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10326 | yes:no: ) | |
10327 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10328 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10329 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10330 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10331 | ac_header_preproc=yes | |
10332 | ;; | |
10333 | no:yes:* ) | |
10334 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10335 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10336 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10337 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10338 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10339 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10340 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10341 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10343 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10344 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10345 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10346 | ( |
10347 | cat <<\_ASBOX | |
10348 | ## ------------------------------------------ ## | |
10349 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10350 | ## ------------------------------------------ ## | |
10351 | _ASBOX | |
10352 | ) | | |
10353 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10354 | ;; |
10355 | esac | |
b4e70030 JB |
10356 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10358 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10360 | else | |
10361 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10362 | fi |
b4e70030 JB |
10363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10364 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10365 | |
5ee754fc | 10366 | fi |
bec39cab AC |
10367 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10368 | cat >>confdefs.h <<_ACEOF | |
10369 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10370 | _ACEOF | |
10371 | ||
5ee754fc | 10372 | fi |
bec39cab | 10373 | |
5ee754fc MK |
10374 | done |
10375 | ||
bec39cab AC |
10376 | |
10377 | for ac_header in sys/user.h | |
5ee754fc | 10378 | do |
bec39cab | 10379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 10384 | else |
7cb9022a | 10385 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
10386 | /* confdefs.h. */ |
10387 | _ACEOF | |
10388 | cat confdefs.h >>conftest.$ac_ext | |
10389 | cat >>conftest.$ac_ext <<_ACEOF | |
10390 | /* end confdefs.h. */ | |
7cb9022a MK |
10391 | #if HAVE_SYS_PARAM_H |
10392 | # include <sys/param.h> | |
10393 | #endif | |
10394 | ||
10395 | ||
bec39cab AC |
10396 | #include <$ac_header> |
10397 | _ACEOF | |
10398 | rm -f conftest.$ac_objext | |
10399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10400 | (eval $ac_compile) 2>conftest.er1 | |
10401 | ac_status=$? | |
10402 | grep -v '^ *+' conftest.er1 >conftest.err | |
10403 | rm -f conftest.er1 | |
10404 | cat conftest.err >&5 | |
10405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10406 | (exit $ac_status); } && | |
b4e70030 JB |
10407 | { ac_try='test -z "$ac_c_werror_flag" |
10408 | || test ! -s conftest.err' | |
bec39cab AC |
10409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10410 | (eval $ac_try) 2>&5 | |
10411 | ac_status=$? | |
10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10413 | (exit $ac_status); }; } && | |
10414 | { ac_try='test -s conftest.$ac_objext' | |
10415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10416 | (eval $ac_try) 2>&5 | |
10417 | ac_status=$? | |
10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10419 | (exit $ac_status); }; }; then | |
7cb9022a | 10420 | eval "$as_ac_Header=yes" |
bec39cab AC |
10421 | else |
10422 | echo "$as_me: failed program was:" >&5 | |
10423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10424 | ||
b4e70030 | 10425 | eval "$as_ac_Header=no" |
bec39cab AC |
10426 | fi |
10427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 10428 | fi |
b4e70030 JB |
10429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10430 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10431 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10432 | cat >>confdefs.h <<_ACEOF | |
10433 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10434 | _ACEOF | |
10435 | ||
5ee754fc | 10436 | fi |
bec39cab | 10437 | |
5ee754fc MK |
10438 | done |
10439 | ||
bec39cab AC |
10440 | |
10441 | ||
10442 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 10443 | do |
bec39cab | 10444 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10446 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10450 | fi | |
b4e70030 JB |
10451 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10452 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10453 | else |
10454 | # Is the header compilable? | |
b4e70030 JB |
10455 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10456 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10457 | cat >conftest.$ac_ext <<_ACEOF |
10458 | /* confdefs.h. */ | |
10459 | _ACEOF | |
10460 | cat confdefs.h >>conftest.$ac_ext | |
10461 | cat >>conftest.$ac_ext <<_ACEOF | |
10462 | /* end confdefs.h. */ | |
10463 | $ac_includes_default | |
10464 | #include <$ac_header> | |
10465 | _ACEOF | |
10466 | rm -f conftest.$ac_objext | |
10467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10468 | (eval $ac_compile) 2>conftest.er1 | |
10469 | ac_status=$? | |
10470 | grep -v '^ *+' conftest.er1 >conftest.err | |
10471 | rm -f conftest.er1 | |
10472 | cat conftest.err >&5 | |
10473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10474 | (exit $ac_status); } && | |
b4e70030 JB |
10475 | { ac_try='test -z "$ac_c_werror_flag" |
10476 | || test ! -s conftest.err' | |
bec39cab AC |
10477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10478 | (eval $ac_try) 2>&5 | |
10479 | ac_status=$? | |
10480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10481 | (exit $ac_status); }; } && | |
10482 | { ac_try='test -s conftest.$ac_objext' | |
10483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10484 | (eval $ac_try) 2>&5 | |
10485 | ac_status=$? | |
10486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10487 | (exit $ac_status); }; }; then | |
10488 | ac_header_compiler=yes | |
10489 | else | |
10490 | echo "$as_me: failed program was:" >&5 | |
10491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10492 | ||
b4e70030 | 10493 | ac_header_compiler=no |
bec39cab AC |
10494 | fi |
10495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10496 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10497 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10498 | |
10499 | # Is the header present? | |
b4e70030 JB |
10500 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10501 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10502 | cat >conftest.$ac_ext <<_ACEOF |
10503 | /* confdefs.h. */ | |
10504 | _ACEOF | |
10505 | cat confdefs.h >>conftest.$ac_ext | |
10506 | cat >>conftest.$ac_ext <<_ACEOF | |
10507 | /* end confdefs.h. */ | |
10508 | #include <$ac_header> | |
10509 | _ACEOF | |
10510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10512 | ac_status=$? | |
10513 | grep -v '^ *+' conftest.er1 >conftest.err | |
10514 | rm -f conftest.er1 | |
10515 | cat conftest.err >&5 | |
10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10517 | (exit $ac_status); } >/dev/null; then | |
10518 | if test -s conftest.err; then | |
10519 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10520 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10521 | else | |
10522 | ac_cpp_err= | |
10523 | fi | |
10524 | else | |
10525 | ac_cpp_err=yes | |
5ee754fc | 10526 | fi |
bec39cab AC |
10527 | if test -z "$ac_cpp_err"; then |
10528 | ac_header_preproc=yes | |
5ee754fc | 10529 | else |
bec39cab AC |
10530 | echo "$as_me: failed program was:" >&5 |
10531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10532 | ||
10533 | ac_header_preproc=no | |
5ee754fc | 10534 | fi |
bec39cab | 10535 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10536 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10537 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10538 | |
bec39cab AC |
10539 | # So? What about this header? |
10540 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10541 | yes:no: ) | |
10542 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10543 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10545 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10546 | ac_header_preproc=yes | |
10547 | ;; | |
10548 | no:yes:* ) | |
10549 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10550 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10551 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10552 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10553 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10554 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10555 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10556 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10558 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10559 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10560 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10561 | ( |
10562 | cat <<\_ASBOX | |
10563 | ## ------------------------------------------ ## | |
10564 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10565 | ## ------------------------------------------ ## | |
10566 | _ASBOX | |
10567 | ) | | |
10568 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10569 | ;; |
10570 | esac | |
b4e70030 JB |
10571 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10572 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10575 | else | |
10576 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10577 | fi |
b4e70030 JB |
10578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10579 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10580 | |
9608ab8b | 10581 | fi |
bec39cab AC |
10582 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10583 | cat >>confdefs.h <<_ACEOF | |
10584 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10585 | _ACEOF | |
10586 | ||
9608ab8b | 10587 | fi |
bec39cab | 10588 | |
9608ab8b | 10589 | done |
5ee754fc | 10590 | |
bec39cab AC |
10591 | |
10592 | ||
10593 | ||
10594 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 10595 | do |
bec39cab | 10596 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10598 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10602 | fi | |
b4e70030 JB |
10603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10604 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10605 | else |
10606 | # Is the header compilable? | |
b4e70030 JB |
10607 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10608 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10609 | cat >conftest.$ac_ext <<_ACEOF |
10610 | /* confdefs.h. */ | |
10611 | _ACEOF | |
10612 | cat confdefs.h >>conftest.$ac_ext | |
10613 | cat >>conftest.$ac_ext <<_ACEOF | |
10614 | /* end confdefs.h. */ | |
10615 | $ac_includes_default | |
10616 | #include <$ac_header> | |
10617 | _ACEOF | |
10618 | rm -f conftest.$ac_objext | |
10619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10620 | (eval $ac_compile) 2>conftest.er1 | |
10621 | ac_status=$? | |
10622 | grep -v '^ *+' conftest.er1 >conftest.err | |
10623 | rm -f conftest.er1 | |
10624 | cat conftest.err >&5 | |
10625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10626 | (exit $ac_status); } && | |
b4e70030 JB |
10627 | { ac_try='test -z "$ac_c_werror_flag" |
10628 | || test ! -s conftest.err' | |
bec39cab AC |
10629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10630 | (eval $ac_try) 2>&5 | |
10631 | ac_status=$? | |
10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10633 | (exit $ac_status); }; } && | |
10634 | { ac_try='test -s conftest.$ac_objext' | |
10635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10636 | (eval $ac_try) 2>&5 | |
10637 | ac_status=$? | |
10638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10639 | (exit $ac_status); }; }; then | |
10640 | ac_header_compiler=yes | |
10641 | else | |
10642 | echo "$as_me: failed program was:" >&5 | |
10643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10644 | ||
b4e70030 | 10645 | ac_header_compiler=no |
bec39cab AC |
10646 | fi |
10647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10648 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10649 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10650 | |
10651 | # Is the header present? | |
b4e70030 JB |
10652 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10653 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10654 | cat >conftest.$ac_ext <<_ACEOF |
10655 | /* confdefs.h. */ | |
10656 | _ACEOF | |
10657 | cat confdefs.h >>conftest.$ac_ext | |
10658 | cat >>conftest.$ac_ext <<_ACEOF | |
10659 | /* end confdefs.h. */ | |
10660 | #include <$ac_header> | |
10661 | _ACEOF | |
10662 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10663 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10664 | ac_status=$? | |
10665 | grep -v '^ *+' conftest.er1 >conftest.err | |
10666 | rm -f conftest.er1 | |
10667 | cat conftest.err >&5 | |
10668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10669 | (exit $ac_status); } >/dev/null; then | |
10670 | if test -s conftest.err; then | |
10671 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10672 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10673 | else | |
10674 | ac_cpp_err= | |
10675 | fi | |
10676 | else | |
10677 | ac_cpp_err=yes | |
9608ab8b | 10678 | fi |
bec39cab AC |
10679 | if test -z "$ac_cpp_err"; then |
10680 | ac_header_preproc=yes | |
9608ab8b | 10681 | else |
bec39cab AC |
10682 | echo "$as_me: failed program was:" >&5 |
10683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10684 | ||
10685 | ac_header_preproc=no | |
9608ab8b | 10686 | fi |
bec39cab | 10687 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10688 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10689 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 10690 | |
bec39cab AC |
10691 | # So? What about this header? |
10692 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10693 | yes:no: ) | |
10694 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10695 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10697 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10698 | ac_header_preproc=yes | |
10699 | ;; | |
10700 | no:yes:* ) | |
10701 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10702 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10703 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10704 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10705 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10706 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10707 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10708 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10709 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10710 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10711 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10712 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10713 | ( |
10714 | cat <<\_ASBOX | |
10715 | ## ------------------------------------------ ## | |
10716 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10717 | ## ------------------------------------------ ## | |
10718 | _ASBOX | |
10719 | ) | | |
10720 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10721 | ;; |
10722 | esac | |
b4e70030 JB |
10723 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10727 | else | |
10728 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10729 | fi |
b4e70030 JB |
10730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10732 | |
9608ab8b | 10733 | fi |
bec39cab AC |
10734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10735 | cat >>confdefs.h <<_ACEOF | |
10736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10737 | _ACEOF | |
10738 | ||
9608ab8b | 10739 | fi |
bec39cab | 10740 | |
5ee754fc | 10741 | done |
9608ab8b | 10742 | |
bec39cab AC |
10743 | |
10744 | for ac_header in unistd.h | |
78434e59 | 10745 | do |
bec39cab | 10746 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10752 | fi | |
b4e70030 JB |
10753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10755 | else |
10756 | # Is the header compilable? | |
b4e70030 JB |
10757 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10758 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10759 | cat >conftest.$ac_ext <<_ACEOF |
10760 | /* confdefs.h. */ | |
10761 | _ACEOF | |
10762 | cat confdefs.h >>conftest.$ac_ext | |
10763 | cat >>conftest.$ac_ext <<_ACEOF | |
10764 | /* end confdefs.h. */ | |
10765 | $ac_includes_default | |
10766 | #include <$ac_header> | |
10767 | _ACEOF | |
10768 | rm -f conftest.$ac_objext | |
10769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10770 | (eval $ac_compile) 2>conftest.er1 | |
10771 | ac_status=$? | |
10772 | grep -v '^ *+' conftest.er1 >conftest.err | |
10773 | rm -f conftest.er1 | |
10774 | cat conftest.err >&5 | |
10775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10776 | (exit $ac_status); } && | |
b4e70030 JB |
10777 | { ac_try='test -z "$ac_c_werror_flag" |
10778 | || test ! -s conftest.err' | |
bec39cab AC |
10779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10780 | (eval $ac_try) 2>&5 | |
10781 | ac_status=$? | |
10782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10783 | (exit $ac_status); }; } && | |
10784 | { ac_try='test -s conftest.$ac_objext' | |
10785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10786 | (eval $ac_try) 2>&5 | |
10787 | ac_status=$? | |
10788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10789 | (exit $ac_status); }; }; then | |
10790 | ac_header_compiler=yes | |
10791 | else | |
10792 | echo "$as_me: failed program was:" >&5 | |
10793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10794 | ||
b4e70030 | 10795 | ac_header_compiler=no |
bec39cab AC |
10796 | fi |
10797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10798 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10799 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10800 | |
10801 | # Is the header present? | |
b4e70030 JB |
10802 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10803 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10804 | cat >conftest.$ac_ext <<_ACEOF |
10805 | /* confdefs.h. */ | |
10806 | _ACEOF | |
10807 | cat confdefs.h >>conftest.$ac_ext | |
10808 | cat >>conftest.$ac_ext <<_ACEOF | |
10809 | /* end confdefs.h. */ | |
10810 | #include <$ac_header> | |
10811 | _ACEOF | |
10812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10814 | ac_status=$? | |
10815 | grep -v '^ *+' conftest.er1 >conftest.err | |
10816 | rm -f conftest.er1 | |
10817 | cat conftest.err >&5 | |
10818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10819 | (exit $ac_status); } >/dev/null; then | |
10820 | if test -s conftest.err; then | |
10821 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10823 | else | |
10824 | ac_cpp_err= | |
10825 | fi | |
10826 | else | |
10827 | ac_cpp_err=yes | |
78434e59 | 10828 | fi |
bec39cab AC |
10829 | if test -z "$ac_cpp_err"; then |
10830 | ac_header_preproc=yes | |
78434e59 | 10831 | else |
bec39cab AC |
10832 | echo "$as_me: failed program was:" >&5 |
10833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10834 | ||
10835 | ac_header_preproc=no | |
78434e59 | 10836 | fi |
bec39cab | 10837 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10838 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10839 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 10840 | |
bec39cab AC |
10841 | # So? What about this header? |
10842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10843 | yes:no: ) | |
10844 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10845 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10847 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10848 | ac_header_preproc=yes | |
10849 | ;; | |
10850 | no:yes:* ) | |
10851 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10852 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10853 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10854 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10855 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10856 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10857 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10858 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10860 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10861 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10862 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10863 | ( |
10864 | cat <<\_ASBOX | |
10865 | ## ------------------------------------------ ## | |
10866 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10867 | ## ------------------------------------------ ## | |
10868 | _ASBOX | |
10869 | ) | | |
10870 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10871 | ;; |
10872 | esac | |
b4e70030 JB |
10873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10877 | else | |
10878 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 10879 | fi |
b4e70030 JB |
10880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10882 | |
086ec9eb | 10883 | fi |
bec39cab AC |
10884 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10885 | cat >>confdefs.h <<_ACEOF | |
10886 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10887 | _ACEOF | |
10888 | ||
086ec9eb | 10889 | fi |
bec39cab | 10890 | |
086ec9eb MK |
10891 | done |
10892 | ||
9608ab8b | 10893 | |
b1d19a62 | 10894 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
10895 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
10896 | # think that we don't have <curses.h> if we're using GCC. | |
10897 | case $host_os in | |
b1d19a62 | 10898 | solaris2.[789]) |
5ee754fc | 10899 | if test "$GCC" = yes; then |
bec39cab AC |
10900 | |
10901 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 10902 | #define _MSE_INT_H 1 |
bec39cab | 10903 | _ACEOF |
5ee754fc MK |
10904 | |
10905 | fi ;; | |
10906 | esac | |
bec39cab AC |
10907 | |
10908 | ||
10909 | ||
10910 | ||
10911 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 10912 | do |
bec39cab | 10913 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10915 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10919 | fi | |
b4e70030 JB |
10920 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10921 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10922 | else |
10923 | # Is the header compilable? | |
b4e70030 JB |
10924 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10925 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10926 | cat >conftest.$ac_ext <<_ACEOF |
10927 | /* confdefs.h. */ | |
10928 | _ACEOF | |
10929 | cat confdefs.h >>conftest.$ac_ext | |
10930 | cat >>conftest.$ac_ext <<_ACEOF | |
10931 | /* end confdefs.h. */ | |
10932 | $ac_includes_default | |
10933 | #include <$ac_header> | |
10934 | _ACEOF | |
10935 | rm -f conftest.$ac_objext | |
10936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10937 | (eval $ac_compile) 2>conftest.er1 | |
10938 | ac_status=$? | |
10939 | grep -v '^ *+' conftest.er1 >conftest.err | |
10940 | rm -f conftest.er1 | |
10941 | cat conftest.err >&5 | |
10942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10943 | (exit $ac_status); } && | |
b4e70030 JB |
10944 | { ac_try='test -z "$ac_c_werror_flag" |
10945 | || test ! -s conftest.err' | |
bec39cab AC |
10946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10947 | (eval $ac_try) 2>&5 | |
10948 | ac_status=$? | |
10949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10950 | (exit $ac_status); }; } && | |
10951 | { ac_try='test -s conftest.$ac_objext' | |
10952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10953 | (eval $ac_try) 2>&5 | |
10954 | ac_status=$? | |
10955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10956 | (exit $ac_status); }; }; then | |
10957 | ac_header_compiler=yes | |
10958 | else | |
10959 | echo "$as_me: failed program was:" >&5 | |
10960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10961 | ||
b4e70030 | 10962 | ac_header_compiler=no |
bec39cab AC |
10963 | fi |
10964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10965 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10966 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10967 | |
10968 | # Is the header present? | |
b4e70030 JB |
10969 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10970 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10971 | cat >conftest.$ac_ext <<_ACEOF |
10972 | /* confdefs.h. */ | |
10973 | _ACEOF | |
10974 | cat confdefs.h >>conftest.$ac_ext | |
10975 | cat >>conftest.$ac_ext <<_ACEOF | |
10976 | /* end confdefs.h. */ | |
10977 | #include <$ac_header> | |
10978 | _ACEOF | |
10979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10981 | ac_status=$? | |
10982 | grep -v '^ *+' conftest.er1 >conftest.err | |
10983 | rm -f conftest.er1 | |
10984 | cat conftest.err >&5 | |
10985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10986 | (exit $ac_status); } >/dev/null; then | |
10987 | if test -s conftest.err; then | |
10988 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10989 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10990 | else | |
10991 | ac_cpp_err= | |
10992 | fi | |
10993 | else | |
10994 | ac_cpp_err=yes | |
c906108c | 10995 | fi |
bec39cab AC |
10996 | if test -z "$ac_cpp_err"; then |
10997 | ac_header_preproc=yes | |
10998 | else | |
10999 | echo "$as_me: failed program was:" >&5 | |
11000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11001 | ||
11002 | ac_header_preproc=no | |
c906108c | 11003 | fi |
bec39cab | 11004 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11005 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11006 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11007 | |
11008 | # So? What about this header? | |
11009 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11010 | yes:no: ) | |
11011 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11012 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11014 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11015 | ac_header_preproc=yes | |
11016 | ;; | |
11017 | no:yes:* ) | |
11018 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11019 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11020 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11021 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11022 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11023 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11024 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11025 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11026 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11027 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11028 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11029 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11030 | ( |
11031 | cat <<\_ASBOX | |
11032 | ## ------------------------------------------ ## | |
11033 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11034 | ## ------------------------------------------ ## | |
11035 | _ASBOX | |
11036 | ) | | |
11037 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11038 | ;; |
11039 | esac | |
b4e70030 JB |
11040 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11041 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11042 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 11044 | else |
bec39cab | 11045 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 11046 | fi |
b4e70030 JB |
11047 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11048 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11049 | |
11050 | fi | |
11051 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11052 | cat >>confdefs.h <<_ACEOF | |
11053 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11054 | _ACEOF | |
11055 | ||
11056 | fi | |
11057 | ||
5ee754fc | 11058 | done |
c906108c | 11059 | |
bec39cab | 11060 | |
065a1afc | 11061 | for ac_header in ncurses/term.h |
3b78cdbb | 11062 | do |
bec39cab | 11063 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
11064 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11065 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11069 | fi | |
b4e70030 JB |
11070 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11071 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11072 | else |
11073 | # Is the header compilable? | |
b4e70030 JB |
11074 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11075 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11076 | cat >conftest.$ac_ext <<_ACEOF |
11077 | /* confdefs.h. */ | |
11078 | _ACEOF | |
11079 | cat confdefs.h >>conftest.$ac_ext | |
11080 | cat >>conftest.$ac_ext <<_ACEOF | |
11081 | /* end confdefs.h. */ | |
11082 | $ac_includes_default | |
11083 | #include <$ac_header> | |
11084 | _ACEOF | |
11085 | rm -f conftest.$ac_objext | |
11086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11087 | (eval $ac_compile) 2>conftest.er1 | |
11088 | ac_status=$? | |
11089 | grep -v '^ *+' conftest.er1 >conftest.err | |
11090 | rm -f conftest.er1 | |
11091 | cat conftest.err >&5 | |
11092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11093 | (exit $ac_status); } && | |
b4e70030 JB |
11094 | { ac_try='test -z "$ac_c_werror_flag" |
11095 | || test ! -s conftest.err' | |
bec39cab AC |
11096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11097 | (eval $ac_try) 2>&5 | |
11098 | ac_status=$? | |
11099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11100 | (exit $ac_status); }; } && | |
11101 | { ac_try='test -s conftest.$ac_objext' | |
11102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11103 | (eval $ac_try) 2>&5 | |
11104 | ac_status=$? | |
11105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11106 | (exit $ac_status); }; }; then | |
11107 | ac_header_compiler=yes | |
11108 | else | |
11109 | echo "$as_me: failed program was:" >&5 | |
11110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11111 | ||
b4e70030 | 11112 | ac_header_compiler=no |
bec39cab AC |
11113 | fi |
11114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11115 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11116 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11117 | |
11118 | # Is the header present? | |
b4e70030 JB |
11119 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11120 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11121 | cat >conftest.$ac_ext <<_ACEOF |
11122 | /* confdefs.h. */ | |
11123 | _ACEOF | |
11124 | cat confdefs.h >>conftest.$ac_ext | |
11125 | cat >>conftest.$ac_ext <<_ACEOF | |
11126 | /* end confdefs.h. */ | |
11127 | #include <$ac_header> | |
11128 | _ACEOF | |
11129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11130 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11131 | ac_status=$? | |
11132 | grep -v '^ *+' conftest.er1 >conftest.err | |
11133 | rm -f conftest.er1 | |
11134 | cat conftest.err >&5 | |
11135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11136 | (exit $ac_status); } >/dev/null; then | |
11137 | if test -s conftest.err; then | |
11138 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11139 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11140 | else | |
11141 | ac_cpp_err= | |
11142 | fi | |
11143 | else | |
11144 | ac_cpp_err=yes | |
3b78cdbb | 11145 | fi |
bec39cab AC |
11146 | if test -z "$ac_cpp_err"; then |
11147 | ac_header_preproc=yes | |
11148 | else | |
11149 | echo "$as_me: failed program was:" >&5 | |
11150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11151 | ||
11152 | ac_header_preproc=no | |
3b78cdbb | 11153 | fi |
bec39cab | 11154 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11155 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11156 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11157 | |
11158 | # So? What about this header? | |
11159 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11160 | yes:no: ) | |
11161 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11162 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11163 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11164 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11165 | ac_header_preproc=yes | |
11166 | ;; | |
11167 | no:yes:* ) | |
11168 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11169 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11170 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11171 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11172 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11173 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11174 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11175 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11176 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11177 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11178 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11179 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11180 | ( |
11181 | cat <<\_ASBOX | |
11182 | ## ------------------------------------------ ## | |
11183 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11184 | ## ------------------------------------------ ## | |
11185 | _ASBOX | |
11186 | ) | | |
11187 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11188 | ;; |
11189 | esac | |
b4e70030 JB |
11190 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11192 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3b78cdbb | 11194 | else |
bec39cab AC |
11195 | eval "$as_ac_Header=\$ac_header_preproc" |
11196 | fi | |
b4e70030 JB |
11197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 11199 | |
3b78cdbb | 11200 | fi |
bec39cab AC |
11201 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11202 | cat >>confdefs.h <<_ACEOF | |
11203 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11204 | _ACEOF | |
11205 | ||
11206 | fi | |
11207 | ||
3b78cdbb DA |
11208 | done |
11209 | ||
c906108c | 11210 | |
065a1afc JB |
11211 | for ac_header in term.h |
11212 | do | |
11213 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11214 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11215 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
065a1afc JB |
11217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11218 | else | |
11219 | cat >conftest.$ac_ext <<_ACEOF | |
11220 | /* confdefs.h. */ | |
11221 | _ACEOF | |
11222 | cat confdefs.h >>conftest.$ac_ext | |
11223 | cat >>conftest.$ac_ext <<_ACEOF | |
11224 | /* end confdefs.h. */ | |
11225 | #if HAVE_CURSES_H | |
11226 | # include <curses.h> | |
11227 | #endif | |
11228 | ||
11229 | ||
11230 | #include <$ac_header> | |
11231 | _ACEOF | |
11232 | rm -f conftest.$ac_objext | |
11233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11234 | (eval $ac_compile) 2>conftest.er1 | |
11235 | ac_status=$? | |
11236 | grep -v '^ *+' conftest.er1 >conftest.err | |
11237 | rm -f conftest.er1 | |
11238 | cat conftest.err >&5 | |
11239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11240 | (exit $ac_status); } && | |
b4e70030 JB |
11241 | { ac_try='test -z "$ac_c_werror_flag" |
11242 | || test ! -s conftest.err' | |
065a1afc JB |
11243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11244 | (eval $ac_try) 2>&5 | |
11245 | ac_status=$? | |
11246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11247 | (exit $ac_status); }; } && | |
11248 | { ac_try='test -s conftest.$ac_objext' | |
11249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11250 | (eval $ac_try) 2>&5 | |
11251 | ac_status=$? | |
11252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11253 | (exit $ac_status); }; }; then | |
11254 | eval "$as_ac_Header=yes" | |
11255 | else | |
11256 | echo "$as_me: failed program was:" >&5 | |
11257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11258 | ||
b4e70030 | 11259 | eval "$as_ac_Header=no" |
065a1afc JB |
11260 | fi |
11261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11262 | fi | |
b4e70030 JB |
11263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11264 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
065a1afc JB |
11265 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11266 | cat >>confdefs.h <<_ACEOF | |
11267 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11268 | _ACEOF | |
11269 | ||
11270 | fi | |
11271 | ||
11272 | done | |
11273 | ||
11274 | ||
5ee754fc MK |
11275 | # FIXME: kettenis/20030102: In most cases we include these |
11276 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
11277 | |
11278 | ||
11279 | for ac_header in ctype.h time.h | |
c906108c | 11280 | do |
bec39cab | 11281 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
11282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11287 | fi | |
b4e70030 JB |
11288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11290 | else |
11291 | # Is the header compilable? | |
b4e70030 JB |
11292 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11293 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11294 | cat >conftest.$ac_ext <<_ACEOF |
11295 | /* confdefs.h. */ | |
11296 | _ACEOF | |
11297 | cat confdefs.h >>conftest.$ac_ext | |
11298 | cat >>conftest.$ac_ext <<_ACEOF | |
11299 | /* end confdefs.h. */ | |
11300 | $ac_includes_default | |
11301 | #include <$ac_header> | |
11302 | _ACEOF | |
11303 | rm -f conftest.$ac_objext | |
11304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11305 | (eval $ac_compile) 2>conftest.er1 | |
11306 | ac_status=$? | |
11307 | grep -v '^ *+' conftest.er1 >conftest.err | |
11308 | rm -f conftest.er1 | |
11309 | cat conftest.err >&5 | |
11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11311 | (exit $ac_status); } && | |
b4e70030 JB |
11312 | { ac_try='test -z "$ac_c_werror_flag" |
11313 | || test ! -s conftest.err' | |
bec39cab AC |
11314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11315 | (eval $ac_try) 2>&5 | |
11316 | ac_status=$? | |
11317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11318 | (exit $ac_status); }; } && | |
11319 | { ac_try='test -s conftest.$ac_objext' | |
11320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11321 | (eval $ac_try) 2>&5 | |
11322 | ac_status=$? | |
11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11324 | (exit $ac_status); }; }; then | |
11325 | ac_header_compiler=yes | |
11326 | else | |
11327 | echo "$as_me: failed program was:" >&5 | |
11328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11329 | ||
b4e70030 | 11330 | ac_header_compiler=no |
bec39cab AC |
11331 | fi |
11332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11334 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11335 | |
11336 | # Is the header present? | |
b4e70030 JB |
11337 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11339 | cat >conftest.$ac_ext <<_ACEOF |
11340 | /* confdefs.h. */ | |
11341 | _ACEOF | |
11342 | cat confdefs.h >>conftest.$ac_ext | |
11343 | cat >>conftest.$ac_ext <<_ACEOF | |
11344 | /* end confdefs.h. */ | |
11345 | #include <$ac_header> | |
11346 | _ACEOF | |
11347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11349 | ac_status=$? | |
11350 | grep -v '^ *+' conftest.er1 >conftest.err | |
11351 | rm -f conftest.er1 | |
11352 | cat conftest.err >&5 | |
11353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11354 | (exit $ac_status); } >/dev/null; then | |
11355 | if test -s conftest.err; then | |
11356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11358 | else | |
11359 | ac_cpp_err= | |
11360 | fi | |
11361 | else | |
11362 | ac_cpp_err=yes | |
c906108c | 11363 | fi |
bec39cab AC |
11364 | if test -z "$ac_cpp_err"; then |
11365 | ac_header_preproc=yes | |
11366 | else | |
11367 | echo "$as_me: failed program was:" >&5 | |
11368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11369 | ||
11370 | ac_header_preproc=no | |
c906108c | 11371 | fi |
bec39cab | 11372 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11374 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11375 | |
11376 | # So? What about this header? | |
11377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11378 | yes:no: ) | |
11379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11383 | ac_header_preproc=yes | |
11384 | ;; | |
11385 | no:yes:* ) | |
11386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11398 | ( |
11399 | cat <<\_ASBOX | |
11400 | ## ------------------------------------------ ## | |
11401 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11402 | ## ------------------------------------------ ## | |
11403 | _ASBOX | |
11404 | ) | | |
11405 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11406 | ;; |
11407 | esac | |
b4e70030 JB |
11408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 11412 | else |
bec39cab AC |
11413 | eval "$as_ac_Header=\$ac_header_preproc" |
11414 | fi | |
b4e70030 JB |
11415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11417 | |
11418 | fi | |
11419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11420 | cat >>confdefs.h <<_ACEOF | |
11421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11422 | _ACEOF | |
11423 | ||
c906108c | 11424 | fi |
bec39cab | 11425 | |
c906108c SS |
11426 | done |
11427 | ||
5ee754fc | 11428 | |
4e8d927d | 11429 | # Create a header we can use portably to get the standard integer types. |
666ec76f | 11430 | |
4e8d927d DJ |
11431 | |
11432 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
11433 | ||
11434 | acx_cv_header_stdint=stddef.h | |
11435 | acx_cv_header_stdint_kind="(already complete)" | |
11436 | for i in stdint.h $inttype_headers; do | |
11437 | unset ac_cv_type_uintptr_t | |
11438 | unset ac_cv_type_uintmax_t | |
11439 | unset ac_cv_type_int_least32_t | |
11440 | unset ac_cv_type_int_fast32_t | |
11441 | unset ac_cv_type_uint64_t | |
11442 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11443 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
11444 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
4e8d927d | 11445 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
bec39cab | 11446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 11447 | else |
bec39cab AC |
11448 | cat >conftest.$ac_ext <<_ACEOF |
11449 | /* confdefs.h. */ | |
11450 | _ACEOF | |
11451 | cat confdefs.h >>conftest.$ac_ext | |
11452 | cat >>conftest.$ac_ext <<_ACEOF | |
11453 | /* end confdefs.h. */ | |
4e8d927d DJ |
11454 | #include <sys/types.h> |
11455 | #include <$i> | |
11456 | ||
bec39cab AC |
11457 | int |
11458 | main () | |
11459 | { | |
b4e70030 | 11460 | if ((uintmax_t *) 0) |
4e8d927d | 11461 | return 0; |
b4e70030 | 11462 | if (sizeof (uintmax_t)) |
4e8d927d DJ |
11463 | return 0; |
11464 | ; | |
bec39cab AC |
11465 | return 0; |
11466 | } | |
11467 | _ACEOF | |
11468 | rm -f conftest.$ac_objext | |
11469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11470 | (eval $ac_compile) 2>conftest.er1 | |
11471 | ac_status=$? | |
11472 | grep -v '^ *+' conftest.er1 >conftest.err | |
11473 | rm -f conftest.er1 | |
11474 | cat conftest.err >&5 | |
11475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11476 | (exit $ac_status); } && | |
b4e70030 JB |
11477 | { ac_try='test -z "$ac_c_werror_flag" |
11478 | || test ! -s conftest.err' | |
bec39cab AC |
11479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11480 | (eval $ac_try) 2>&5 | |
11481 | ac_status=$? | |
11482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11483 | (exit $ac_status); }; } && | |
11484 | { ac_try='test -s conftest.$ac_objext' | |
11485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11486 | (eval $ac_try) 2>&5 | |
11487 | ac_status=$? | |
11488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11489 | (exit $ac_status); }; }; then | |
4e8d927d | 11490 | ac_cv_type_uintmax_t=yes |
40a7debc | 11491 | else |
bec39cab AC |
11492 | echo "$as_me: failed program was:" >&5 |
11493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11494 | ||
b4e70030 | 11495 | ac_cv_type_uintmax_t=no |
40a7debc | 11496 | fi |
bec39cab | 11497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 11498 | fi |
b4e70030 JB |
11499 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
11500 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
4e8d927d DJ |
11501 | if test $ac_cv_type_uintmax_t = yes; then |
11502 | acx_cv_header_stdint=$i | |
666ec76f | 11503 | else |
4e8d927d | 11504 | continue |
666ec76f | 11505 | fi |
4e8d927d | 11506 | |
b4e70030 JB |
11507 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
11508 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d | 11509 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
bec39cab AC |
11510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11511 | else | |
11512 | cat >conftest.$ac_ext <<_ACEOF | |
11513 | /* confdefs.h. */ | |
11514 | _ACEOF | |
11515 | cat confdefs.h >>conftest.$ac_ext | |
11516 | cat >>conftest.$ac_ext <<_ACEOF | |
11517 | /* end confdefs.h. */ | |
4e8d927d DJ |
11518 | #include <sys/types.h> |
11519 | #include <$i> | |
11520 | ||
666ec76f MK |
11521 | int |
11522 | main () | |
11523 | { | |
b4e70030 | 11524 | if ((uintptr_t *) 0) |
4e8d927d | 11525 | return 0; |
b4e70030 | 11526 | if (sizeof (uintptr_t)) |
4e8d927d | 11527 | return 0; |
666ec76f MK |
11528 | ; |
11529 | return 0; | |
11530 | } | |
11531 | _ACEOF | |
11532 | rm -f conftest.$ac_objext | |
11533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11534 | (eval $ac_compile) 2>conftest.er1 | |
11535 | ac_status=$? | |
11536 | grep -v '^ *+' conftest.er1 >conftest.err | |
11537 | rm -f conftest.er1 | |
11538 | cat conftest.err >&5 | |
11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11540 | (exit $ac_status); } && | |
b4e70030 JB |
11541 | { ac_try='test -z "$ac_c_werror_flag" |
11542 | || test ! -s conftest.err' | |
666ec76f MK |
11543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11544 | (eval $ac_try) 2>&5 | |
11545 | ac_status=$? | |
11546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11547 | (exit $ac_status); }; } && | |
11548 | { ac_try='test -s conftest.$ac_objext' | |
11549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11550 | (eval $ac_try) 2>&5 | |
11551 | ac_status=$? | |
11552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11553 | (exit $ac_status); }; }; then | |
4e8d927d | 11554 | ac_cv_type_uintptr_t=yes |
666ec76f MK |
11555 | else |
11556 | echo "$as_me: failed program was:" >&5 | |
11557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 11558 | |
b4e70030 | 11559 | ac_cv_type_uintptr_t=no |
a3828db0 MK |
11560 | fi |
11561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11562 | fi | |
b4e70030 JB |
11563 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
11564 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
11565 | if test $ac_cv_type_uintptr_t = yes; then |
11566 | : | |
a3828db0 | 11567 | else |
4e8d927d | 11568 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11569 | fi |
4e8d927d | 11570 | |
b4e70030 JB |
11571 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
11572 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
4e8d927d | 11573 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
a3828db0 MK |
11574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11575 | else | |
11576 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
11577 | /* confdefs.h. */ |
11578 | _ACEOF | |
11579 | cat confdefs.h >>conftest.$ac_ext | |
11580 | cat >>conftest.$ac_ext <<_ACEOF | |
11581 | /* end confdefs.h. */ | |
4e8d927d DJ |
11582 | #include <sys/types.h> |
11583 | #include <$i> | |
11584 | ||
bec39cab AC |
11585 | int |
11586 | main () | |
11587 | { | |
b4e70030 | 11588 | if ((int_least32_t *) 0) |
4e8d927d | 11589 | return 0; |
b4e70030 | 11590 | if (sizeof (int_least32_t)) |
4e8d927d | 11591 | return 0; |
bec39cab AC |
11592 | ; |
11593 | return 0; | |
11594 | } | |
11595 | _ACEOF | |
11596 | rm -f conftest.$ac_objext | |
11597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11598 | (eval $ac_compile) 2>conftest.er1 | |
11599 | ac_status=$? | |
11600 | grep -v '^ *+' conftest.er1 >conftest.err | |
11601 | rm -f conftest.er1 | |
11602 | cat conftest.err >&5 | |
11603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11604 | (exit $ac_status); } && | |
b4e70030 JB |
11605 | { ac_try='test -z "$ac_c_werror_flag" |
11606 | || test ! -s conftest.err' | |
bec39cab AC |
11607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11608 | (eval $ac_try) 2>&5 | |
11609 | ac_status=$? | |
11610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11611 | (exit $ac_status); }; } && | |
11612 | { ac_try='test -s conftest.$ac_objext' | |
11613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11614 | (eval $ac_try) 2>&5 | |
11615 | ac_status=$? | |
11616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11617 | (exit $ac_status); }; }; then | |
4e8d927d | 11618 | ac_cv_type_int_least32_t=yes |
b9362cc7 | 11619 | else |
bec39cab AC |
11620 | echo "$as_me: failed program was:" >&5 |
11621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11622 | ||
b4e70030 | 11623 | ac_cv_type_int_least32_t=no |
b9362cc7 | 11624 | fi |
bec39cab | 11625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 11626 | fi |
b4e70030 JB |
11627 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
11628 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
4e8d927d DJ |
11629 | if test $ac_cv_type_int_least32_t = yes; then |
11630 | : | |
a3828db0 | 11631 | else |
4e8d927d | 11632 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11633 | fi |
5ee754fc | 11634 | |
b4e70030 JB |
11635 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
11636 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
4e8d927d | 11637 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
bec39cab AC |
11638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11639 | else | |
11640 | cat >conftest.$ac_ext <<_ACEOF | |
11641 | /* confdefs.h. */ | |
11642 | _ACEOF | |
11643 | cat confdefs.h >>conftest.$ac_ext | |
11644 | cat >>conftest.$ac_ext <<_ACEOF | |
11645 | /* end confdefs.h. */ | |
4e8d927d DJ |
11646 | #include <sys/types.h> |
11647 | #include <$i> | |
11648 | ||
bec39cab AC |
11649 | int |
11650 | main () | |
11651 | { | |
b4e70030 | 11652 | if ((int_fast32_t *) 0) |
4e8d927d | 11653 | return 0; |
b4e70030 | 11654 | if (sizeof (int_fast32_t)) |
4e8d927d | 11655 | return 0; |
bec39cab AC |
11656 | ; |
11657 | return 0; | |
11658 | } | |
11659 | _ACEOF | |
11660 | rm -f conftest.$ac_objext | |
11661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11662 | (eval $ac_compile) 2>conftest.er1 | |
11663 | ac_status=$? | |
11664 | grep -v '^ *+' conftest.er1 >conftest.err | |
11665 | rm -f conftest.er1 | |
11666 | cat conftest.err >&5 | |
11667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11668 | (exit $ac_status); } && | |
b4e70030 JB |
11669 | { ac_try='test -z "$ac_c_werror_flag" |
11670 | || test ! -s conftest.err' | |
bec39cab AC |
11671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11672 | (eval $ac_try) 2>&5 | |
11673 | ac_status=$? | |
11674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11675 | (exit $ac_status); }; } && | |
11676 | { ac_try='test -s conftest.$ac_objext' | |
11677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11678 | (eval $ac_try) 2>&5 | |
11679 | ac_status=$? | |
11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11681 | (exit $ac_status); }; }; then | |
4e8d927d | 11682 | ac_cv_type_int_fast32_t=yes |
c906108c | 11683 | else |
bec39cab AC |
11684 | echo "$as_me: failed program was:" >&5 |
11685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11686 | ||
b4e70030 | 11687 | ac_cv_type_int_fast32_t=no |
c906108c | 11688 | fi |
bec39cab | 11689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11690 | fi |
b4e70030 JB |
11691 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
11692 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
4e8d927d DJ |
11693 | if test $ac_cv_type_int_fast32_t = yes; then |
11694 | : | |
a3828db0 | 11695 | else |
4e8d927d | 11696 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11697 | fi |
4e8d927d | 11698 | |
b4e70030 JB |
11699 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11700 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11701 | if test "${ac_cv_type_uint64_t+set}" = set; then |
bec39cab AC |
11702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11703 | else | |
11704 | cat >conftest.$ac_ext <<_ACEOF | |
11705 | /* confdefs.h. */ | |
11706 | _ACEOF | |
11707 | cat confdefs.h >>conftest.$ac_ext | |
11708 | cat >>conftest.$ac_ext <<_ACEOF | |
11709 | /* end confdefs.h. */ | |
4e8d927d DJ |
11710 | #include <sys/types.h> |
11711 | #include <$i> | |
11712 | ||
bec39cab AC |
11713 | int |
11714 | main () | |
11715 | { | |
b4e70030 | 11716 | if ((uint64_t *) 0) |
4e8d927d | 11717 | return 0; |
b4e70030 | 11718 | if (sizeof (uint64_t)) |
4e8d927d | 11719 | return 0; |
bec39cab AC |
11720 | ; |
11721 | return 0; | |
11722 | } | |
11723 | _ACEOF | |
11724 | rm -f conftest.$ac_objext | |
11725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11726 | (eval $ac_compile) 2>conftest.er1 | |
11727 | ac_status=$? | |
11728 | grep -v '^ *+' conftest.er1 >conftest.err | |
11729 | rm -f conftest.er1 | |
11730 | cat conftest.err >&5 | |
11731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11732 | (exit $ac_status); } && | |
b4e70030 JB |
11733 | { ac_try='test -z "$ac_c_werror_flag" |
11734 | || test ! -s conftest.err' | |
bec39cab AC |
11735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11736 | (eval $ac_try) 2>&5 | |
11737 | ac_status=$? | |
11738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11739 | (exit $ac_status); }; } && | |
11740 | { ac_try='test -s conftest.$ac_objext' | |
11741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11742 | (eval $ac_try) 2>&5 | |
11743 | ac_status=$? | |
11744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11745 | (exit $ac_status); }; }; then | |
4e8d927d | 11746 | ac_cv_type_uint64_t=yes |
c906108c | 11747 | else |
bec39cab AC |
11748 | echo "$as_me: failed program was:" >&5 |
11749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11750 | ||
b4e70030 | 11751 | ac_cv_type_uint64_t=no |
c906108c | 11752 | fi |
bec39cab | 11753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11754 | fi |
b4e70030 JB |
11755 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11756 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
4e8d927d DJ |
11757 | if test $ac_cv_type_uint64_t = yes; then |
11758 | : | |
a3828db0 | 11759 | else |
4e8d927d | 11760 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
c906108c SS |
11761 | fi |
11762 | ||
4e8d927d DJ |
11763 | break |
11764 | done | |
11765 | if test "$acx_cv_header_stdint" = stddef.h; then | |
3841debe | 11766 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
4e8d927d | 11767 | for i in stdint.h $inttype_headers; do |
3841debe | 11768 | unset ac_cv_type_uintptr_t |
4e8d927d DJ |
11769 | unset ac_cv_type_uint32_t |
11770 | unset ac_cv_type_uint64_t | |
11771 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11772 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
11773 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
4e8d927d | 11774 | if test "${ac_cv_type_uint32_t+set}" = set; then |
bec39cab | 11775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 11776 | else |
bec39cab AC |
11777 | cat >conftest.$ac_ext <<_ACEOF |
11778 | /* confdefs.h. */ | |
11779 | _ACEOF | |
11780 | cat confdefs.h >>conftest.$ac_ext | |
11781 | cat >>conftest.$ac_ext <<_ACEOF | |
11782 | /* end confdefs.h. */ | |
4e8d927d DJ |
11783 | #include <sys/types.h> |
11784 | #include <$i> | |
11785 | ||
a3828db0 MK |
11786 | int |
11787 | main () | |
11788 | { | |
b4e70030 | 11789 | if ((uint32_t *) 0) |
4e8d927d | 11790 | return 0; |
b4e70030 | 11791 | if (sizeof (uint32_t)) |
4e8d927d | 11792 | return 0; |
a3828db0 MK |
11793 | ; |
11794 | return 0; | |
11795 | } | |
bec39cab AC |
11796 | _ACEOF |
11797 | rm -f conftest.$ac_objext | |
11798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11799 | (eval $ac_compile) 2>conftest.er1 | |
11800 | ac_status=$? | |
11801 | grep -v '^ *+' conftest.er1 >conftest.err | |
11802 | rm -f conftest.er1 | |
11803 | cat conftest.err >&5 | |
11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11805 | (exit $ac_status); } && | |
b4e70030 JB |
11806 | { ac_try='test -z "$ac_c_werror_flag" |
11807 | || test ! -s conftest.err' | |
bec39cab AC |
11808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11809 | (eval $ac_try) 2>&5 | |
11810 | ac_status=$? | |
11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11812 | (exit $ac_status); }; } && | |
11813 | { ac_try='test -s conftest.$ac_objext' | |
11814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11815 | (eval $ac_try) 2>&5 | |
11816 | ac_status=$? | |
11817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11818 | (exit $ac_status); }; }; then | |
4e8d927d | 11819 | ac_cv_type_uint32_t=yes |
bce58c09 | 11820 | else |
bec39cab AC |
11821 | echo "$as_me: failed program was:" >&5 |
11822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11823 | ||
b4e70030 | 11824 | ac_cv_type_uint32_t=no |
bce58c09 | 11825 | fi |
bec39cab | 11826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 11827 | fi |
b4e70030 JB |
11828 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
11829 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
4e8d927d DJ |
11830 | if test $ac_cv_type_uint32_t = yes; then |
11831 | acx_cv_header_stdint=$i | |
a3828db0 | 11832 | else |
4e8d927d | 11833 | continue |
e5a7de23 | 11834 | fi |
4e8d927d | 11835 | |
b4e70030 JB |
11836 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11837 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11838 | if test "${ac_cv_type_uint64_t+set}" = set; then |
e5a7de23 EZ |
11839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11840 | else | |
11841 | cat >conftest.$ac_ext <<_ACEOF | |
11842 | /* confdefs.h. */ | |
11843 | _ACEOF | |
11844 | cat confdefs.h >>conftest.$ac_ext | |
11845 | cat >>conftest.$ac_ext <<_ACEOF | |
11846 | /* end confdefs.h. */ | |
4e8d927d DJ |
11847 | #include <sys/types.h> |
11848 | #include <$i> | |
11849 | ||
e5a7de23 EZ |
11850 | int |
11851 | main () | |
11852 | { | |
b4e70030 | 11853 | if ((uint64_t *) 0) |
4e8d927d | 11854 | return 0; |
b4e70030 | 11855 | if (sizeof (uint64_t)) |
4e8d927d | 11856 | return 0; |
e5a7de23 EZ |
11857 | ; |
11858 | return 0; | |
11859 | } | |
11860 | _ACEOF | |
11861 | rm -f conftest.$ac_objext | |
11862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11863 | (eval $ac_compile) 2>conftest.er1 | |
11864 | ac_status=$? | |
11865 | grep -v '^ *+' conftest.er1 >conftest.err | |
11866 | rm -f conftest.er1 | |
11867 | cat conftest.err >&5 | |
11868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11869 | (exit $ac_status); } && | |
b4e70030 JB |
11870 | { ac_try='test -z "$ac_c_werror_flag" |
11871 | || test ! -s conftest.err' | |
e5a7de23 EZ |
11872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11873 | (eval $ac_try) 2>&5 | |
11874 | ac_status=$? | |
11875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11876 | (exit $ac_status); }; } && | |
11877 | { ac_try='test -s conftest.$ac_objext' | |
11878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11879 | (eval $ac_try) 2>&5 | |
11880 | ac_status=$? | |
11881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11882 | (exit $ac_status); }; }; then | |
4e8d927d | 11883 | ac_cv_type_uint64_t=yes |
e5a7de23 EZ |
11884 | else |
11885 | echo "$as_me: failed program was:" >&5 | |
11886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11887 | ||
b4e70030 | 11888 | ac_cv_type_uint64_t=no |
e5a7de23 EZ |
11889 | fi |
11890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11891 | fi | |
b4e70030 JB |
11892 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11893 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
3841debe DJ |
11894 | |
11895 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
11896 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
11897 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
11898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11899 | else | |
11900 | cat >conftest.$ac_ext <<_ACEOF | |
11901 | /* confdefs.h. */ | |
11902 | _ACEOF | |
11903 | cat confdefs.h >>conftest.$ac_ext | |
11904 | cat >>conftest.$ac_ext <<_ACEOF | |
11905 | /* end confdefs.h. */ | |
11906 | #include <sys/types.h> | |
11907 | #include <$i> | |
11908 | ||
11909 | int | |
11910 | main () | |
11911 | { | |
11912 | if ((uintptr_t *) 0) | |
11913 | return 0; | |
11914 | if (sizeof (uintptr_t)) | |
11915 | return 0; | |
11916 | ; | |
11917 | return 0; | |
11918 | } | |
11919 | _ACEOF | |
11920 | rm -f conftest.$ac_objext | |
11921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11922 | (eval $ac_compile) 2>conftest.er1 | |
11923 | ac_status=$? | |
11924 | grep -v '^ *+' conftest.er1 >conftest.err | |
11925 | rm -f conftest.er1 | |
11926 | cat conftest.err >&5 | |
11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11928 | (exit $ac_status); } && | |
11929 | { ac_try='test -z "$ac_c_werror_flag" | |
11930 | || test ! -s conftest.err' | |
11931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11932 | (eval $ac_try) 2>&5 | |
11933 | ac_status=$? | |
11934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11935 | (exit $ac_status); }; } && | |
11936 | { ac_try='test -s conftest.$ac_objext' | |
11937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11938 | (eval $ac_try) 2>&5 | |
11939 | ac_status=$? | |
11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11941 | (exit $ac_status); }; }; then | |
11942 | ac_cv_type_uintptr_t=yes | |
e5a7de23 | 11943 | else |
3841debe DJ |
11944 | echo "$as_me: failed program was:" >&5 |
11945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11946 | ||
11947 | ac_cv_type_uintptr_t=no | |
4e8d927d | 11948 | fi |
3841debe DJ |
11949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11950 | fi | |
11951 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
11952 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
e5a7de23 | 11953 | |
4e8d927d DJ |
11954 | break |
11955 | done | |
e5a7de23 | 11956 | fi |
4e8d927d DJ |
11957 | if test "$acx_cv_header_stdint" = stddef.h; then |
11958 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
11959 | for i in sys/types.h $inttype_headers; do | |
11960 | unset ac_cv_type_u_int32_t | |
11961 | unset ac_cv_type_u_int64_t | |
11962 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11963 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
11964 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
4e8d927d | 11965 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
e5a7de23 EZ |
11966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11967 | else | |
11968 | cat >conftest.$ac_ext <<_ACEOF | |
11969 | /* confdefs.h. */ | |
11970 | _ACEOF | |
11971 | cat confdefs.h >>conftest.$ac_ext | |
11972 | cat >>conftest.$ac_ext <<_ACEOF | |
11973 | /* end confdefs.h. */ | |
4e8d927d DJ |
11974 | #include <sys/types.h> |
11975 | #include <$i> | |
11976 | ||
e5a7de23 EZ |
11977 | int |
11978 | main () | |
11979 | { | |
b4e70030 | 11980 | if ((u_int32_t *) 0) |
4e8d927d | 11981 | return 0; |
b4e70030 | 11982 | if (sizeof (u_int32_t)) |
4e8d927d | 11983 | return 0; |
e5a7de23 EZ |
11984 | ; |
11985 | return 0; | |
11986 | } | |
11987 | _ACEOF | |
11988 | rm -f conftest.$ac_objext | |
11989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11990 | (eval $ac_compile) 2>conftest.er1 | |
11991 | ac_status=$? | |
11992 | grep -v '^ *+' conftest.er1 >conftest.err | |
11993 | rm -f conftest.er1 | |
11994 | cat conftest.err >&5 | |
11995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11996 | (exit $ac_status); } && | |
b4e70030 JB |
11997 | { ac_try='test -z "$ac_c_werror_flag" |
11998 | || test ! -s conftest.err' | |
e5a7de23 EZ |
11999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12000 | (eval $ac_try) 2>&5 | |
12001 | ac_status=$? | |
12002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12003 | (exit $ac_status); }; } && | |
12004 | { ac_try='test -s conftest.$ac_objext' | |
12005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12006 | (eval $ac_try) 2>&5 | |
12007 | ac_status=$? | |
12008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12009 | (exit $ac_status); }; }; then | |
4e8d927d | 12010 | ac_cv_type_u_int32_t=yes |
e5a7de23 EZ |
12011 | else |
12012 | echo "$as_me: failed program was:" >&5 | |
12013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12014 | ||
b4e70030 | 12015 | ac_cv_type_u_int32_t=no |
e5a7de23 EZ |
12016 | fi |
12017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12018 | fi | |
b4e70030 JB |
12019 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
12020 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
4e8d927d DJ |
12021 | if test $ac_cv_type_u_int32_t = yes; then |
12022 | acx_cv_header_stdint=$i | |
e5a7de23 | 12023 | else |
4e8d927d | 12024 | continue |
a3828db0 | 12025 | fi |
5ee754fc | 12026 | |
b4e70030 JB |
12027 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
12028 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
4e8d927d | 12029 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
bec39cab AC |
12030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12031 | else | |
12032 | cat >conftest.$ac_ext <<_ACEOF | |
12033 | /* confdefs.h. */ | |
12034 | _ACEOF | |
12035 | cat confdefs.h >>conftest.$ac_ext | |
12036 | cat >>conftest.$ac_ext <<_ACEOF | |
12037 | /* end confdefs.h. */ | |
4e8d927d DJ |
12038 | #include <sys/types.h> |
12039 | #include <$i> | |
12040 | ||
bec39cab AC |
12041 | int |
12042 | main () | |
12043 | { | |
b4e70030 | 12044 | if ((u_int64_t *) 0) |
4e8d927d | 12045 | return 0; |
b4e70030 | 12046 | if (sizeof (u_int64_t)) |
4e8d927d | 12047 | return 0; |
bec39cab AC |
12048 | ; |
12049 | return 0; | |
12050 | } | |
12051 | _ACEOF | |
a3828db0 MK |
12052 | rm -f conftest.$ac_objext |
12053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12054 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12055 | ac_status=$? |
12056 | grep -v '^ *+' conftest.er1 >conftest.err | |
12057 | rm -f conftest.er1 | |
12058 | cat conftest.err >&5 | |
12059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12060 | (exit $ac_status); } && | |
b4e70030 JB |
12061 | { ac_try='test -z "$ac_c_werror_flag" |
12062 | || test ! -s conftest.err' | |
bec39cab AC |
12063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12064 | (eval $ac_try) 2>&5 | |
12065 | ac_status=$? | |
12066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12067 | (exit $ac_status); }; } && | |
a3828db0 | 12068 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12070 | (eval $ac_try) 2>&5 | |
12071 | ac_status=$? | |
12072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12073 | (exit $ac_status); }; }; then | |
4e8d927d | 12074 | ac_cv_type_u_int64_t=yes |
bec39cab AC |
12075 | else |
12076 | echo "$as_me: failed program was:" >&5 | |
12077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12078 | ||
b4e70030 | 12079 | ac_cv_type_u_int64_t=no |
4e8d927d | 12080 | fi |
4e8d927d DJ |
12081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12082 | fi | |
b4e70030 JB |
12083 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
12084 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
4e8d927d DJ |
12085 | |
12086 | break | |
12087 | done | |
12088 | fi | |
12089 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12090 | acx_cv_header_stdint_kind="(using manual detection)" | |
12091 | fi | |
12092 | ||
12093 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
12094 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
12095 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
12096 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
12097 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
12098 | ||
12099 | # ----------------- Summarize what we found so far | |
12100 | ||
b4e70030 JB |
12101 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
12102 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 | |
4e8d927d | 12103 | |
b4e70030 | 12104 | case `$as_basename gdb_stdint.h || |
4e8d927d DJ |
12105 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
12106 | Xgdb_stdint.h : 'X\(//\)$' \| \ | |
b4e70030 JB |
12107 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
12108 | . : '\(.\)' 2>/dev/null || | |
4e8d927d | 12109 | echo X/gdb_stdint.h | |
b4e70030 JB |
12110 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
12111 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
12112 | /^X\/\(\/\).*/{ s//\1/; q; } | |
12113 | s/.*/./; q'` in | |
4e8d927d DJ |
12114 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
12115 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12116 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
12117 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12118 | *) ;; | |
12119 | esac | |
12120 | ||
b4e70030 JB |
12121 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
12122 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
4e8d927d DJ |
12123 | |
12124 | # ----------------- done included file, check C basic types -------- | |
12125 | ||
12126 | # Lacking an uintptr_t? Test size of void * | |
12127 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
b4e70030 JB |
12128 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
12129 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
4e8d927d DJ |
12130 | if test "${ac_cv_type_void_p+set}" = set; then |
12131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12132 | else | |
12133 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 12134 | /* confdefs.h. */ |
bec39cab AC |
12135 | _ACEOF |
12136 | cat confdefs.h >>conftest.$ac_ext | |
12137 | cat >>conftest.$ac_ext <<_ACEOF | |
12138 | /* end confdefs.h. */ | |
a3828db0 | 12139 | $ac_includes_default |
bec39cab AC |
12140 | int |
12141 | main () | |
12142 | { | |
b4e70030 | 12143 | if ((void * *) 0) |
4e8d927d | 12144 | return 0; |
b4e70030 | 12145 | if (sizeof (void *)) |
4e8d927d | 12146 | return 0; |
bec39cab AC |
12147 | ; |
12148 | return 0; | |
12149 | } | |
12150 | _ACEOF | |
a3828db0 MK |
12151 | rm -f conftest.$ac_objext |
12152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12153 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12154 | ac_status=$? |
12155 | grep -v '^ *+' conftest.er1 >conftest.err | |
12156 | rm -f conftest.er1 | |
12157 | cat conftest.err >&5 | |
12158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12159 | (exit $ac_status); } && | |
b4e70030 JB |
12160 | { ac_try='test -z "$ac_c_werror_flag" |
12161 | || test ! -s conftest.err' | |
bec39cab AC |
12162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12163 | (eval $ac_try) 2>&5 | |
12164 | ac_status=$? | |
12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12166 | (exit $ac_status); }; } && | |
a3828db0 | 12167 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12169 | (eval $ac_try) 2>&5 | |
12170 | ac_status=$? | |
12171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12172 | (exit $ac_status); }; }; then | |
4e8d927d | 12173 | ac_cv_type_void_p=yes |
46711df8 | 12174 | else |
bec39cab AC |
12175 | echo "$as_me: failed program was:" >&5 |
12176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12177 | ||
b4e70030 | 12178 | ac_cv_type_void_p=no |
a3828db0 | 12179 | fi |
4e8d927d | 12180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d3ea6809 | 12181 | fi |
b4e70030 JB |
12182 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
12183 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
d3ea6809 | 12184 | |
b4e70030 JB |
12185 | echo "$as_me:$LINENO: checking size of void *" >&5 |
12186 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
4e8d927d | 12187 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
d3ea6809 MM |
12188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12189 | else | |
4e8d927d | 12190 | if test "$ac_cv_type_void_p" = yes; then |
b4e70030 | 12191 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12192 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12193 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12194 | # This bug is HP SR number 8606223364. | |
12195 | if test "$cross_compiling" = yes; then | |
12196 | # Depending upon the size, compute the lo and hi bounds. | |
12197 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
12198 | /* confdefs.h. */ |
12199 | _ACEOF | |
12200 | cat confdefs.h >>conftest.$ac_ext | |
12201 | cat >>conftest.$ac_ext <<_ACEOF | |
12202 | /* end confdefs.h. */ | |
12203 | $ac_includes_default | |
12204 | int | |
12205 | main () | |
12206 | { | |
b4e70030 | 12207 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
4e8d927d DJ |
12208 | test_array [0] = 0 |
12209 | ||
d3ea6809 MM |
12210 | ; |
12211 | return 0; | |
12212 | } | |
12213 | _ACEOF | |
12214 | rm -f conftest.$ac_objext | |
12215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12216 | (eval $ac_compile) 2>conftest.er1 | |
12217 | ac_status=$? | |
12218 | grep -v '^ *+' conftest.er1 >conftest.err | |
12219 | rm -f conftest.er1 | |
12220 | cat conftest.err >&5 | |
12221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12222 | (exit $ac_status); } && | |
b4e70030 JB |
12223 | { ac_try='test -z "$ac_c_werror_flag" |
12224 | || test ! -s conftest.err' | |
d3ea6809 MM |
12225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12226 | (eval $ac_try) 2>&5 | |
12227 | ac_status=$? | |
12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12229 | (exit $ac_status); }; } && | |
12230 | { ac_try='test -s conftest.$ac_objext' | |
12231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12232 | (eval $ac_try) 2>&5 | |
12233 | ac_status=$? | |
12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12235 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12236 | ac_lo=0 ac_mid=0 |
12237 | while :; do | |
12238 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
12239 | /* confdefs.h. */ |
12240 | _ACEOF | |
12241 | cat confdefs.h >>conftest.$ac_ext | |
12242 | cat >>conftest.$ac_ext <<_ACEOF | |
12243 | /* end confdefs.h. */ | |
12244 | $ac_includes_default | |
12245 | int | |
12246 | main () | |
12247 | { | |
b4e70030 | 12248 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
12249 | test_array [0] = 0 |
12250 | ||
d3ea6809 MM |
12251 | ; |
12252 | return 0; | |
12253 | } | |
12254 | _ACEOF | |
12255 | rm -f conftest.$ac_objext | |
12256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12257 | (eval $ac_compile) 2>conftest.er1 | |
12258 | ac_status=$? | |
12259 | grep -v '^ *+' conftest.er1 >conftest.err | |
12260 | rm -f conftest.er1 | |
12261 | cat conftest.err >&5 | |
12262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12263 | (exit $ac_status); } && | |
b4e70030 JB |
12264 | { ac_try='test -z "$ac_c_werror_flag" |
12265 | || test ! -s conftest.err' | |
d3ea6809 MM |
12266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12267 | (eval $ac_try) 2>&5 | |
12268 | ac_status=$? | |
12269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12270 | (exit $ac_status); }; } && | |
12271 | { ac_try='test -s conftest.$ac_objext' | |
12272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12273 | (eval $ac_try) 2>&5 | |
12274 | ac_status=$? | |
12275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12276 | (exit $ac_status); }; }; then | |
4e8d927d | 12277 | ac_hi=$ac_mid; break |
d3ea6809 MM |
12278 | else |
12279 | echo "$as_me: failed program was:" >&5 | |
12280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12281 | ||
b4e70030 JB |
12282 | ac_lo=`expr $ac_mid + 1` |
12283 | if test $ac_lo -le $ac_mid; then | |
12284 | ac_lo= ac_hi= | |
12285 | break | |
12286 | fi | |
12287 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a3828db0 | 12288 | fi |
4e8d927d DJ |
12289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12290 | done | |
bec39cab | 12291 | else |
4e8d927d DJ |
12292 | echo "$as_me: failed program was:" >&5 |
12293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12294 | ||
b4e70030 | 12295 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
12296 | /* confdefs.h. */ |
12297 | _ACEOF | |
12298 | cat confdefs.h >>conftest.$ac_ext | |
12299 | cat >>conftest.$ac_ext <<_ACEOF | |
12300 | /* end confdefs.h. */ | |
4e8d927d | 12301 | $ac_includes_default |
bec39cab AC |
12302 | int |
12303 | main () | |
12304 | { | |
b4e70030 | 12305 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
4e8d927d DJ |
12306 | test_array [0] = 0 |
12307 | ||
bec39cab AC |
12308 | ; |
12309 | return 0; | |
12310 | } | |
12311 | _ACEOF | |
a3828db0 MK |
12312 | rm -f conftest.$ac_objext |
12313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12314 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12315 | ac_status=$? |
12316 | grep -v '^ *+' conftest.er1 >conftest.err | |
12317 | rm -f conftest.er1 | |
12318 | cat conftest.err >&5 | |
12319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12320 | (exit $ac_status); } && | |
b4e70030 JB |
12321 | { ac_try='test -z "$ac_c_werror_flag" |
12322 | || test ! -s conftest.err' | |
bec39cab AC |
12323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12324 | (eval $ac_try) 2>&5 | |
12325 | ac_status=$? | |
12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12327 | (exit $ac_status); }; } && | |
a3828db0 | 12328 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12330 | (eval $ac_try) 2>&5 | |
12331 | ac_status=$? | |
12332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12333 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12334 | ac_hi=-1 ac_mid=-1 |
12335 | while :; do | |
12336 | cat >conftest.$ac_ext <<_ACEOF | |
f9f87d2c MK |
12337 | /* confdefs.h. */ |
12338 | _ACEOF | |
12339 | cat confdefs.h >>conftest.$ac_ext | |
12340 | cat >>conftest.$ac_ext <<_ACEOF | |
12341 | /* end confdefs.h. */ | |
4e8d927d | 12342 | $ac_includes_default |
f9f87d2c MK |
12343 | int |
12344 | main () | |
12345 | { | |
b4e70030 | 12346 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
4e8d927d DJ |
12347 | test_array [0] = 0 |
12348 | ||
f9f87d2c MK |
12349 | ; |
12350 | return 0; | |
12351 | } | |
12352 | _ACEOF | |
12353 | rm -f conftest.$ac_objext | |
12354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12355 | (eval $ac_compile) 2>conftest.er1 | |
12356 | ac_status=$? | |
12357 | grep -v '^ *+' conftest.er1 >conftest.err | |
12358 | rm -f conftest.er1 | |
12359 | cat conftest.err >&5 | |
12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12361 | (exit $ac_status); } && | |
b4e70030 JB |
12362 | { ac_try='test -z "$ac_c_werror_flag" |
12363 | || test ! -s conftest.err' | |
f9f87d2c MK |
12364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12365 | (eval $ac_try) 2>&5 | |
12366 | ac_status=$? | |
12367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12368 | (exit $ac_status); }; } && | |
12369 | { ac_try='test -s conftest.$ac_objext' | |
12370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12371 | (eval $ac_try) 2>&5 | |
12372 | ac_status=$? | |
12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12374 | (exit $ac_status); }; }; then | |
4e8d927d | 12375 | ac_lo=$ac_mid; break |
f9f87d2c MK |
12376 | else |
12377 | echo "$as_me: failed program was:" >&5 | |
12378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12379 | ||
b4e70030 JB |
12380 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12381 | if test $ac_mid -le $ac_hi; then | |
12382 | ac_lo= ac_hi= | |
12383 | break | |
12384 | fi | |
12385 | ac_mid=`expr 2 '*' $ac_mid` | |
f9f87d2c | 12386 | fi |
4e8d927d DJ |
12387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12388 | done | |
12389 | else | |
12390 | echo "$as_me: failed program was:" >&5 | |
12391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f9f87d2c | 12392 | |
b4e70030 | 12393 | ac_lo= ac_hi= |
4e8d927d | 12394 | fi |
4e8d927d | 12395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3be60c3d | 12396 | fi |
4e8d927d DJ |
12397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12398 | # Binary search between lo and hi bounds. | |
12399 | while test "x$ac_lo" != "x$ac_hi"; do | |
12400 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
3be60c3d MK |
12401 | cat >conftest.$ac_ext <<_ACEOF |
12402 | /* confdefs.h. */ | |
12403 | _ACEOF | |
12404 | cat confdefs.h >>conftest.$ac_ext | |
12405 | cat >>conftest.$ac_ext <<_ACEOF | |
12406 | /* end confdefs.h. */ | |
4e8d927d | 12407 | $ac_includes_default |
3be60c3d MK |
12408 | int |
12409 | main () | |
12410 | { | |
b4e70030 | 12411 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
12412 | test_array [0] = 0 |
12413 | ||
3be60c3d MK |
12414 | ; |
12415 | return 0; | |
12416 | } | |
12417 | _ACEOF | |
12418 | rm -f conftest.$ac_objext | |
12419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12420 | (eval $ac_compile) 2>conftest.er1 | |
12421 | ac_status=$? | |
12422 | grep -v '^ *+' conftest.er1 >conftest.err | |
12423 | rm -f conftest.er1 | |
12424 | cat conftest.err >&5 | |
12425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12426 | (exit $ac_status); } && | |
b4e70030 JB |
12427 | { ac_try='test -z "$ac_c_werror_flag" |
12428 | || test ! -s conftest.err' | |
3be60c3d MK |
12429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12430 | (eval $ac_try) 2>&5 | |
12431 | ac_status=$? | |
12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12433 | (exit $ac_status); }; } && | |
12434 | { ac_try='test -s conftest.$ac_objext' | |
12435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12436 | (eval $ac_try) 2>&5 | |
12437 | ac_status=$? | |
12438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12439 | (exit $ac_status); }; }; then | |
4e8d927d | 12440 | ac_hi=$ac_mid |
3be60c3d MK |
12441 | else |
12442 | echo "$as_me: failed program was:" >&5 | |
12443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12444 | ||
b4e70030 | 12445 | ac_lo=`expr '(' $ac_mid ')' + 1` |
3be60c3d | 12446 | fi |
4e8d927d DJ |
12447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12448 | done | |
12449 | case $ac_lo in | |
12450 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
b4e70030 | 12451 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12452 | See \`config.log' for more details." >&5 |
b4e70030 | 12453 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12454 | See \`config.log' for more details." >&2;} |
b4e70030 | 12455 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12456 | esac |
b4e70030 JB |
12457 | else |
12458 | if test "$cross_compiling" = yes; then | |
12459 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12460 | See \`config.log' for more details." >&5 | |
12461 | echo "$as_me: error: cannot run test program while cross compiling | |
12462 | See \`config.log' for more details." >&2;} | |
12463 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12464 | else |
12465 | cat >conftest.$ac_ext <<_ACEOF | |
12466 | /* confdefs.h. */ | |
3be60c3d | 12467 | _ACEOF |
4e8d927d DJ |
12468 | cat confdefs.h >>conftest.$ac_ext |
12469 | cat >>conftest.$ac_ext <<_ACEOF | |
12470 | /* end confdefs.h. */ | |
12471 | $ac_includes_default | |
b4e70030 JB |
12472 | long longval () { return (long) (sizeof (void *)); } |
12473 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
4e8d927d DJ |
12474 | #include <stdio.h> |
12475 | #include <stdlib.h> | |
12476 | int | |
12477 | main () | |
12478 | { | |
12479 | ||
12480 | FILE *f = fopen ("conftest.val", "w"); | |
12481 | if (! f) | |
b4e70030 JB |
12482 | exit (1); |
12483 | if (((long) (sizeof (void *))) < 0) | |
4e8d927d | 12484 | { |
b4e70030 JB |
12485 | long i = longval (); |
12486 | if (i != ((long) (sizeof (void *)))) | |
12487 | exit (1); | |
4e8d927d DJ |
12488 | fprintf (f, "%ld\n", i); |
12489 | } | |
12490 | else | |
12491 | { | |
b4e70030 JB |
12492 | unsigned long i = ulongval (); |
12493 | if (i != ((long) (sizeof (void *)))) | |
12494 | exit (1); | |
4e8d927d DJ |
12495 | fprintf (f, "%lu\n", i); |
12496 | } | |
b4e70030 | 12497 | exit (ferror (f) || fclose (f) != 0); |
3be60c3d | 12498 | |
4e8d927d DJ |
12499 | ; |
12500 | return 0; | |
12501 | } | |
12502 | _ACEOF | |
12503 | rm -f conftest$ac_exeext | |
12504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12505 | (eval $ac_link) 2>&5 | |
12506 | ac_status=$? | |
12507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12508 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12510 | (eval $ac_try) 2>&5 | |
12511 | ac_status=$? | |
12512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12513 | (exit $ac_status); }; }; then | |
12514 | ac_cv_sizeof_void_p=`cat conftest.val` | |
12515 | else | |
12516 | echo "$as_me: program exited with status $ac_status" >&5 | |
12517 | echo "$as_me: failed program was:" >&5 | |
12518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3be60c3d | 12519 | |
4e8d927d | 12520 | ( exit $ac_status ) |
b4e70030 | 12521 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12522 | See \`config.log' for more details." >&5 |
b4e70030 | 12523 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12524 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12525 | { (exit 1); exit 1; }; } |
12526 | fi | |
12527 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f9f87d2c | 12528 | fi |
4e8d927d DJ |
12529 | fi |
12530 | rm -f conftest.val | |
12531 | else | |
12532 | ac_cv_sizeof_void_p=0 | |
12533 | fi | |
12534 | fi | |
b4e70030 JB |
12535 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
12536 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
4e8d927d DJ |
12537 | cat >>confdefs.h <<_ACEOF |
12538 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12539 | _ACEOF | |
f9f87d2c | 12540 | |
4e8d927d DJ |
12541 | ;; |
12542 | esac | |
46711df8 | 12543 | |
4e8d927d DJ |
12544 | # Lacking an uint64_t? Test size of long |
12545 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
b4e70030 JB |
12546 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
12547 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
4e8d927d | 12548 | if test "${ac_cv_type_long+set}" = set; then |
bec39cab | 12549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 12550 | else |
bec39cab AC |
12551 | cat >conftest.$ac_ext <<_ACEOF |
12552 | /* confdefs.h. */ | |
12553 | _ACEOF | |
12554 | cat confdefs.h >>conftest.$ac_ext | |
12555 | cat >>conftest.$ac_ext <<_ACEOF | |
12556 | /* end confdefs.h. */ | |
4e8d927d | 12557 | $ac_includes_default |
bec39cab | 12558 | int |
46711df8 MK |
12559 | main () |
12560 | { | |
b4e70030 | 12561 | if ((long *) 0) |
4e8d927d | 12562 | return 0; |
b4e70030 | 12563 | if (sizeof (long)) |
4e8d927d | 12564 | return 0; |
a3828db0 MK |
12565 | ; |
12566 | return 0; | |
46711df8 | 12567 | } |
bec39cab | 12568 | _ACEOF |
a3828db0 MK |
12569 | rm -f conftest.$ac_objext |
12570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12571 | (eval $ac_compile) 2>conftest.er1 | |
12572 | ac_status=$? | |
12573 | grep -v '^ *+' conftest.er1 >conftest.err | |
12574 | rm -f conftest.er1 | |
12575 | cat conftest.err >&5 | |
12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12577 | (exit $ac_status); } && | |
b4e70030 JB |
12578 | { ac_try='test -z "$ac_c_werror_flag" |
12579 | || test ! -s conftest.err' | |
a3828db0 MK |
12580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12581 | (eval $ac_try) 2>&5 | |
bec39cab AC |
12582 | ac_status=$? |
12583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
12584 | (exit $ac_status); }; } && |
12585 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
12586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12587 | (eval $ac_try) 2>&5 | |
12588 | ac_status=$? | |
12589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12590 | (exit $ac_status); }; }; then | |
4e8d927d | 12591 | ac_cv_type_long=yes |
46711df8 | 12592 | else |
a3828db0 | 12593 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
12594 | sed 's/^/| /' conftest.$ac_ext >&5 |
12595 | ||
b4e70030 | 12596 | ac_cv_type_long=no |
46711df8 | 12597 | fi |
4e8d927d | 12598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 12599 | fi |
b4e70030 JB |
12600 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
12601 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
46711df8 | 12602 | |
b4e70030 JB |
12603 | echo "$as_me:$LINENO: checking size of long" >&5 |
12604 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
4e8d927d | 12605 | if test "${ac_cv_sizeof_long+set}" = set; then |
bec39cab | 12606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12607 | else |
4e8d927d | 12608 | if test "$ac_cv_type_long" = yes; then |
b4e70030 | 12609 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12610 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12611 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12612 | # This bug is HP SR number 8606223364. | |
12613 | if test "$cross_compiling" = yes; then | |
12614 | # Depending upon the size, compute the lo and hi bounds. | |
12615 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
12616 | /* confdefs.h. */ |
12617 | _ACEOF | |
12618 | cat confdefs.h >>conftest.$ac_ext | |
12619 | cat >>conftest.$ac_ext <<_ACEOF | |
12620 | /* end confdefs.h. */ | |
4e8d927d | 12621 | $ac_includes_default |
4e8d927d DJ |
12622 | int |
12623 | main () | |
12624 | { | |
b4e70030 | 12625 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
4e8d927d | 12626 | test_array [0] = 0 |
a3828db0 | 12627 | |
4e8d927d DJ |
12628 | ; |
12629 | return 0; | |
12630 | } | |
bec39cab AC |
12631 | _ACEOF |
12632 | rm -f conftest.$ac_objext | |
12633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12634 | (eval $ac_compile) 2>conftest.er1 | |
12635 | ac_status=$? | |
12636 | grep -v '^ *+' conftest.er1 >conftest.err | |
12637 | rm -f conftest.er1 | |
12638 | cat conftest.err >&5 | |
12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12640 | (exit $ac_status); } && | |
b4e70030 JB |
12641 | { ac_try='test -z "$ac_c_werror_flag" |
12642 | || test ! -s conftest.err' | |
bec39cab AC |
12643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12644 | (eval $ac_try) 2>&5 | |
12645 | ac_status=$? | |
12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12647 | (exit $ac_status); }; } && | |
12648 | { ac_try='test -s conftest.$ac_objext' | |
12649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12650 | (eval $ac_try) 2>&5 | |
12651 | ac_status=$? | |
12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12653 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12654 | ac_lo=0 ac_mid=0 |
12655 | while :; do | |
12656 | cat >conftest.$ac_ext <<_ACEOF | |
12657 | /* confdefs.h. */ | |
12658 | _ACEOF | |
12659 | cat confdefs.h >>conftest.$ac_ext | |
12660 | cat >>conftest.$ac_ext <<_ACEOF | |
12661 | /* end confdefs.h. */ | |
12662 | $ac_includes_default | |
4e8d927d DJ |
12663 | int |
12664 | main () | |
12665 | { | |
b4e70030 | 12666 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
12667 | test_array [0] = 0 |
12668 | ||
12669 | ; | |
12670 | return 0; | |
12671 | } | |
12672 | _ACEOF | |
12673 | rm -f conftest.$ac_objext | |
12674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12675 | (eval $ac_compile) 2>conftest.er1 | |
12676 | ac_status=$? | |
12677 | grep -v '^ *+' conftest.er1 >conftest.err | |
12678 | rm -f conftest.er1 | |
12679 | cat conftest.err >&5 | |
12680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12681 | (exit $ac_status); } && | |
b4e70030 JB |
12682 | { ac_try='test -z "$ac_c_werror_flag" |
12683 | || test ! -s conftest.err' | |
4e8d927d DJ |
12684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12685 | (eval $ac_try) 2>&5 | |
12686 | ac_status=$? | |
12687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12688 | (exit $ac_status); }; } && | |
12689 | { ac_try='test -s conftest.$ac_objext' | |
12690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12691 | (eval $ac_try) 2>&5 | |
12692 | ac_status=$? | |
12693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12694 | (exit $ac_status); }; }; then | |
12695 | ac_hi=$ac_mid; break | |
12696 | else | |
12697 | echo "$as_me: failed program was:" >&5 | |
12698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12699 | ||
b4e70030 JB |
12700 | ac_lo=`expr $ac_mid + 1` |
12701 | if test $ac_lo -le $ac_mid; then | |
12702 | ac_lo= ac_hi= | |
12703 | break | |
12704 | fi | |
12705 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 12706 | fi |
4e8d927d DJ |
12707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12708 | done | |
12709 | else | |
12710 | echo "$as_me: failed program was:" >&5 | |
12711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12712 | ||
b4e70030 | 12713 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
12714 | /* confdefs.h. */ |
12715 | _ACEOF | |
12716 | cat confdefs.h >>conftest.$ac_ext | |
12717 | cat >>conftest.$ac_ext <<_ACEOF | |
12718 | /* end confdefs.h. */ | |
12719 | $ac_includes_default | |
4e8d927d DJ |
12720 | int |
12721 | main () | |
12722 | { | |
b4e70030 | 12723 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
4e8d927d DJ |
12724 | test_array [0] = 0 |
12725 | ||
12726 | ; | |
12727 | return 0; | |
12728 | } | |
12729 | _ACEOF | |
12730 | rm -f conftest.$ac_objext | |
12731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12732 | (eval $ac_compile) 2>conftest.er1 | |
12733 | ac_status=$? | |
12734 | grep -v '^ *+' conftest.er1 >conftest.err | |
12735 | rm -f conftest.er1 | |
12736 | cat conftest.err >&5 | |
12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12738 | (exit $ac_status); } && | |
b4e70030 JB |
12739 | { ac_try='test -z "$ac_c_werror_flag" |
12740 | || test ! -s conftest.err' | |
4e8d927d DJ |
12741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12742 | (eval $ac_try) 2>&5 | |
12743 | ac_status=$? | |
12744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12745 | (exit $ac_status); }; } && | |
12746 | { ac_try='test -s conftest.$ac_objext' | |
12747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12748 | (eval $ac_try) 2>&5 | |
12749 | ac_status=$? | |
12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12751 | (exit $ac_status); }; }; then | |
12752 | ac_hi=-1 ac_mid=-1 | |
12753 | while :; do | |
12754 | cat >conftest.$ac_ext <<_ACEOF | |
12755 | /* confdefs.h. */ | |
12756 | _ACEOF | |
12757 | cat confdefs.h >>conftest.$ac_ext | |
12758 | cat >>conftest.$ac_ext <<_ACEOF | |
12759 | /* end confdefs.h. */ | |
12760 | $ac_includes_default | |
4e8d927d DJ |
12761 | int |
12762 | main () | |
12763 | { | |
b4e70030 | 12764 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
4e8d927d DJ |
12765 | test_array [0] = 0 |
12766 | ||
12767 | ; | |
12768 | return 0; | |
12769 | } | |
12770 | _ACEOF | |
12771 | rm -f conftest.$ac_objext | |
12772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12773 | (eval $ac_compile) 2>conftest.er1 | |
12774 | ac_status=$? | |
12775 | grep -v '^ *+' conftest.er1 >conftest.err | |
12776 | rm -f conftest.er1 | |
12777 | cat conftest.err >&5 | |
12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12779 | (exit $ac_status); } && | |
b4e70030 JB |
12780 | { ac_try='test -z "$ac_c_werror_flag" |
12781 | || test ! -s conftest.err' | |
4e8d927d DJ |
12782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12783 | (eval $ac_try) 2>&5 | |
12784 | ac_status=$? | |
12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12786 | (exit $ac_status); }; } && | |
12787 | { ac_try='test -s conftest.$ac_objext' | |
12788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12789 | (eval $ac_try) 2>&5 | |
12790 | ac_status=$? | |
12791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12792 | (exit $ac_status); }; }; then | |
12793 | ac_lo=$ac_mid; break | |
12794 | else | |
12795 | echo "$as_me: failed program was:" >&5 | |
12796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12797 | ||
b4e70030 JB |
12798 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12799 | if test $ac_mid -le $ac_hi; then | |
12800 | ac_lo= ac_hi= | |
12801 | break | |
12802 | fi | |
12803 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 12804 | fi |
4e8d927d DJ |
12805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12806 | done | |
12807 | else | |
12808 | echo "$as_me: failed program was:" >&5 | |
12809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12810 | ||
b4e70030 | 12811 | ac_lo= ac_hi= |
4e8d927d | 12812 | fi |
4e8d927d DJ |
12813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12814 | fi | |
4e8d927d DJ |
12815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12816 | # Binary search between lo and hi bounds. | |
12817 | while test "x$ac_lo" != "x$ac_hi"; do | |
12818 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12819 | cat >conftest.$ac_ext <<_ACEOF | |
12820 | /* confdefs.h. */ | |
12821 | _ACEOF | |
12822 | cat confdefs.h >>conftest.$ac_ext | |
12823 | cat >>conftest.$ac_ext <<_ACEOF | |
12824 | /* end confdefs.h. */ | |
12825 | $ac_includes_default | |
4e8d927d DJ |
12826 | int |
12827 | main () | |
12828 | { | |
b4e70030 | 12829 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
12830 | test_array [0] = 0 |
12831 | ||
12832 | ; | |
12833 | return 0; | |
12834 | } | |
12835 | _ACEOF | |
12836 | rm -f conftest.$ac_objext | |
12837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12838 | (eval $ac_compile) 2>conftest.er1 | |
12839 | ac_status=$? | |
12840 | grep -v '^ *+' conftest.er1 >conftest.err | |
12841 | rm -f conftest.er1 | |
12842 | cat conftest.err >&5 | |
12843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12844 | (exit $ac_status); } && | |
b4e70030 JB |
12845 | { ac_try='test -z "$ac_c_werror_flag" |
12846 | || test ! -s conftest.err' | |
4e8d927d DJ |
12847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12848 | (eval $ac_try) 2>&5 | |
12849 | ac_status=$? | |
12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12851 | (exit $ac_status); }; } && | |
12852 | { ac_try='test -s conftest.$ac_objext' | |
12853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12854 | (eval $ac_try) 2>&5 | |
12855 | ac_status=$? | |
12856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12857 | (exit $ac_status); }; }; then | |
12858 | ac_hi=$ac_mid | |
12859 | else | |
12860 | echo "$as_me: failed program was:" >&5 | |
12861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12862 | ||
b4e70030 | 12863 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 12864 | fi |
4e8d927d DJ |
12865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12866 | done | |
12867 | case $ac_lo in | |
12868 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
b4e70030 | 12869 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 12870 | See \`config.log' for more details." >&5 |
b4e70030 | 12871 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 12872 | See \`config.log' for more details." >&2;} |
b4e70030 | 12873 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12874 | esac |
b4e70030 JB |
12875 | else |
12876 | if test "$cross_compiling" = yes; then | |
12877 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12878 | See \`config.log' for more details." >&5 | |
12879 | echo "$as_me: error: cannot run test program while cross compiling | |
12880 | See \`config.log' for more details." >&2;} | |
12881 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12882 | else |
12883 | cat >conftest.$ac_ext <<_ACEOF | |
12884 | /* confdefs.h. */ | |
12885 | _ACEOF | |
12886 | cat confdefs.h >>conftest.$ac_ext | |
12887 | cat >>conftest.$ac_ext <<_ACEOF | |
12888 | /* end confdefs.h. */ | |
12889 | $ac_includes_default | |
b4e70030 JB |
12890 | long longval () { return (long) (sizeof (long)); } |
12891 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
4e8d927d DJ |
12892 | #include <stdio.h> |
12893 | #include <stdlib.h> | |
12894 | int | |
12895 | main () | |
12896 | { | |
12897 | ||
12898 | FILE *f = fopen ("conftest.val", "w"); | |
12899 | if (! f) | |
b4e70030 JB |
12900 | exit (1); |
12901 | if (((long) (sizeof (long))) < 0) | |
4e8d927d | 12902 | { |
b4e70030 JB |
12903 | long i = longval (); |
12904 | if (i != ((long) (sizeof (long)))) | |
12905 | exit (1); | |
4e8d927d DJ |
12906 | fprintf (f, "%ld\n", i); |
12907 | } | |
12908 | else | |
12909 | { | |
b4e70030 JB |
12910 | unsigned long i = ulongval (); |
12911 | if (i != ((long) (sizeof (long)))) | |
12912 | exit (1); | |
4e8d927d DJ |
12913 | fprintf (f, "%lu\n", i); |
12914 | } | |
b4e70030 | 12915 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
12916 | |
12917 | ; | |
12918 | return 0; | |
12919 | } | |
12920 | _ACEOF | |
12921 | rm -f conftest$ac_exeext | |
12922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12923 | (eval $ac_link) 2>&5 | |
12924 | ac_status=$? | |
12925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12928 | (eval $ac_try) 2>&5 | |
12929 | ac_status=$? | |
12930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12931 | (exit $ac_status); }; }; then | |
12932 | ac_cv_sizeof_long=`cat conftest.val` | |
12933 | else | |
12934 | echo "$as_me: program exited with status $ac_status" >&5 | |
12935 | echo "$as_me: failed program was:" >&5 | |
12936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12937 | ||
12938 | ( exit $ac_status ) | |
b4e70030 | 12939 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 12940 | See \`config.log' for more details." >&5 |
b4e70030 | 12941 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 12942 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12943 | { (exit 1); exit 1; }; } |
12944 | fi | |
12945 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 12946 | fi |
4e8d927d DJ |
12947 | fi |
12948 | rm -f conftest.val | |
12949 | else | |
12950 | ac_cv_sizeof_long=0 | |
12951 | fi | |
12952 | fi | |
b4e70030 JB |
12953 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
12954 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
4e8d927d DJ |
12955 | cat >>confdefs.h <<_ACEOF |
12956 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12957 | _ACEOF | |
12958 | ||
12959 | ;; | |
12960 | esac | |
12961 | ||
12962 | if test $acx_cv_header_stdint = stddef.h; then | |
12963 | # Lacking a good header? Test size of everything and deduce all types. | |
b4e70030 JB |
12964 | echo "$as_me:$LINENO: checking for int" >&5 |
12965 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
4e8d927d DJ |
12966 | if test "${ac_cv_type_int+set}" = set; then |
12967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12968 | else | |
12969 | cat >conftest.$ac_ext <<_ACEOF | |
12970 | /* confdefs.h. */ | |
12971 | _ACEOF | |
12972 | cat confdefs.h >>conftest.$ac_ext | |
12973 | cat >>conftest.$ac_ext <<_ACEOF | |
12974 | /* end confdefs.h. */ | |
12975 | $ac_includes_default | |
4e8d927d DJ |
12976 | int |
12977 | main () | |
12978 | { | |
b4e70030 | 12979 | if ((int *) 0) |
4e8d927d | 12980 | return 0; |
b4e70030 | 12981 | if (sizeof (int)) |
4e8d927d DJ |
12982 | return 0; |
12983 | ; | |
12984 | return 0; | |
12985 | } | |
12986 | _ACEOF | |
12987 | rm -f conftest.$ac_objext | |
12988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12989 | (eval $ac_compile) 2>conftest.er1 | |
12990 | ac_status=$? | |
12991 | grep -v '^ *+' conftest.er1 >conftest.err | |
12992 | rm -f conftest.er1 | |
12993 | cat conftest.err >&5 | |
12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12995 | (exit $ac_status); } && | |
b4e70030 JB |
12996 | { ac_try='test -z "$ac_c_werror_flag" |
12997 | || test ! -s conftest.err' | |
4e8d927d DJ |
12998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12999 | (eval $ac_try) 2>&5 | |
13000 | ac_status=$? | |
13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13002 | (exit $ac_status); }; } && | |
13003 | { ac_try='test -s conftest.$ac_objext' | |
13004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13005 | (eval $ac_try) 2>&5 | |
13006 | ac_status=$? | |
13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13008 | (exit $ac_status); }; }; then | |
13009 | ac_cv_type_int=yes | |
13010 | else | |
13011 | echo "$as_me: failed program was:" >&5 | |
13012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13013 | ||
b4e70030 | 13014 | ac_cv_type_int=no |
4e8d927d | 13015 | fi |
4e8d927d DJ |
13016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13017 | fi | |
b4e70030 JB |
13018 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
13019 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
4e8d927d | 13020 | |
b4e70030 JB |
13021 | echo "$as_me:$LINENO: checking size of int" >&5 |
13022 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
4e8d927d DJ |
13023 | if test "${ac_cv_sizeof_int+set}" = set; then |
13024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13025 | else | |
13026 | if test "$ac_cv_type_int" = yes; then | |
b4e70030 | 13027 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13028 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13029 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13030 | # This bug is HP SR number 8606223364. | |
13031 | if test "$cross_compiling" = yes; then | |
13032 | # Depending upon the size, compute the lo and hi bounds. | |
13033 | cat >conftest.$ac_ext <<_ACEOF | |
13034 | /* confdefs.h. */ | |
13035 | _ACEOF | |
13036 | cat confdefs.h >>conftest.$ac_ext | |
13037 | cat >>conftest.$ac_ext <<_ACEOF | |
13038 | /* end confdefs.h. */ | |
13039 | $ac_includes_default | |
4e8d927d DJ |
13040 | int |
13041 | main () | |
13042 | { | |
b4e70030 | 13043 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
4e8d927d DJ |
13044 | test_array [0] = 0 |
13045 | ||
13046 | ; | |
13047 | return 0; | |
13048 | } | |
13049 | _ACEOF | |
13050 | rm -f conftest.$ac_objext | |
13051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13052 | (eval $ac_compile) 2>conftest.er1 | |
13053 | ac_status=$? | |
13054 | grep -v '^ *+' conftest.er1 >conftest.err | |
13055 | rm -f conftest.er1 | |
13056 | cat conftest.err >&5 | |
13057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13058 | (exit $ac_status); } && | |
b4e70030 JB |
13059 | { ac_try='test -z "$ac_c_werror_flag" |
13060 | || test ! -s conftest.err' | |
4e8d927d DJ |
13061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13062 | (eval $ac_try) 2>&5 | |
13063 | ac_status=$? | |
13064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13065 | (exit $ac_status); }; } && | |
13066 | { ac_try='test -s conftest.$ac_objext' | |
13067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13068 | (eval $ac_try) 2>&5 | |
13069 | ac_status=$? | |
13070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13071 | (exit $ac_status); }; }; then | |
13072 | ac_lo=0 ac_mid=0 | |
13073 | while :; do | |
13074 | cat >conftest.$ac_ext <<_ACEOF | |
13075 | /* confdefs.h. */ | |
13076 | _ACEOF | |
13077 | cat confdefs.h >>conftest.$ac_ext | |
13078 | cat >>conftest.$ac_ext <<_ACEOF | |
13079 | /* end confdefs.h. */ | |
13080 | $ac_includes_default | |
4e8d927d DJ |
13081 | int |
13082 | main () | |
13083 | { | |
b4e70030 | 13084 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
13085 | test_array [0] = 0 |
13086 | ||
13087 | ; | |
13088 | return 0; | |
13089 | } | |
13090 | _ACEOF | |
13091 | rm -f conftest.$ac_objext | |
13092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13093 | (eval $ac_compile) 2>conftest.er1 | |
13094 | ac_status=$? | |
13095 | grep -v '^ *+' conftest.er1 >conftest.err | |
13096 | rm -f conftest.er1 | |
13097 | cat conftest.err >&5 | |
13098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13099 | (exit $ac_status); } && | |
b4e70030 JB |
13100 | { ac_try='test -z "$ac_c_werror_flag" |
13101 | || test ! -s conftest.err' | |
4e8d927d DJ |
13102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13103 | (eval $ac_try) 2>&5 | |
13104 | ac_status=$? | |
13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13106 | (exit $ac_status); }; } && | |
13107 | { ac_try='test -s conftest.$ac_objext' | |
13108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13109 | (eval $ac_try) 2>&5 | |
13110 | ac_status=$? | |
13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13112 | (exit $ac_status); }; }; then | |
13113 | ac_hi=$ac_mid; break | |
13114 | else | |
13115 | echo "$as_me: failed program was:" >&5 | |
13116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13117 | ||
b4e70030 JB |
13118 | ac_lo=`expr $ac_mid + 1` |
13119 | if test $ac_lo -le $ac_mid; then | |
13120 | ac_lo= ac_hi= | |
13121 | break | |
13122 | fi | |
13123 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13124 | fi |
4e8d927d DJ |
13125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13126 | done | |
13127 | else | |
13128 | echo "$as_me: failed program was:" >&5 | |
13129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13130 | ||
b4e70030 | 13131 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13132 | /* confdefs.h. */ |
13133 | _ACEOF | |
13134 | cat confdefs.h >>conftest.$ac_ext | |
13135 | cat >>conftest.$ac_ext <<_ACEOF | |
13136 | /* end confdefs.h. */ | |
13137 | $ac_includes_default | |
4e8d927d DJ |
13138 | int |
13139 | main () | |
13140 | { | |
b4e70030 | 13141 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
4e8d927d DJ |
13142 | test_array [0] = 0 |
13143 | ||
13144 | ; | |
13145 | return 0; | |
13146 | } | |
13147 | _ACEOF | |
13148 | rm -f conftest.$ac_objext | |
13149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13150 | (eval $ac_compile) 2>conftest.er1 | |
13151 | ac_status=$? | |
13152 | grep -v '^ *+' conftest.er1 >conftest.err | |
13153 | rm -f conftest.er1 | |
13154 | cat conftest.err >&5 | |
13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13156 | (exit $ac_status); } && | |
b4e70030 JB |
13157 | { ac_try='test -z "$ac_c_werror_flag" |
13158 | || test ! -s conftest.err' | |
4e8d927d DJ |
13159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13160 | (eval $ac_try) 2>&5 | |
13161 | ac_status=$? | |
13162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13163 | (exit $ac_status); }; } && | |
13164 | { ac_try='test -s conftest.$ac_objext' | |
13165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13166 | (eval $ac_try) 2>&5 | |
13167 | ac_status=$? | |
13168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13169 | (exit $ac_status); }; }; then | |
13170 | ac_hi=-1 ac_mid=-1 | |
13171 | while :; do | |
13172 | cat >conftest.$ac_ext <<_ACEOF | |
13173 | /* confdefs.h. */ | |
13174 | _ACEOF | |
13175 | cat confdefs.h >>conftest.$ac_ext | |
13176 | cat >>conftest.$ac_ext <<_ACEOF | |
13177 | /* end confdefs.h. */ | |
13178 | $ac_includes_default | |
4e8d927d DJ |
13179 | int |
13180 | main () | |
13181 | { | |
b4e70030 | 13182 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
4e8d927d DJ |
13183 | test_array [0] = 0 |
13184 | ||
13185 | ; | |
13186 | return 0; | |
13187 | } | |
13188 | _ACEOF | |
13189 | rm -f conftest.$ac_objext | |
13190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13191 | (eval $ac_compile) 2>conftest.er1 | |
13192 | ac_status=$? | |
13193 | grep -v '^ *+' conftest.er1 >conftest.err | |
13194 | rm -f conftest.er1 | |
13195 | cat conftest.err >&5 | |
13196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13197 | (exit $ac_status); } && | |
b4e70030 JB |
13198 | { ac_try='test -z "$ac_c_werror_flag" |
13199 | || test ! -s conftest.err' | |
4e8d927d DJ |
13200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13201 | (eval $ac_try) 2>&5 | |
13202 | ac_status=$? | |
13203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13204 | (exit $ac_status); }; } && | |
13205 | { ac_try='test -s conftest.$ac_objext' | |
13206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13207 | (eval $ac_try) 2>&5 | |
13208 | ac_status=$? | |
13209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13210 | (exit $ac_status); }; }; then | |
13211 | ac_lo=$ac_mid; break | |
13212 | else | |
13213 | echo "$as_me: failed program was:" >&5 | |
13214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13215 | ||
b4e70030 JB |
13216 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13217 | if test $ac_mid -le $ac_hi; then | |
13218 | ac_lo= ac_hi= | |
13219 | break | |
13220 | fi | |
13221 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13222 | fi |
4e8d927d DJ |
13223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13224 | done | |
13225 | else | |
13226 | echo "$as_me: failed program was:" >&5 | |
13227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13228 | ||
b4e70030 | 13229 | ac_lo= ac_hi= |
4e8d927d | 13230 | fi |
4e8d927d DJ |
13231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13232 | fi | |
4e8d927d DJ |
13233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13234 | # Binary search between lo and hi bounds. | |
13235 | while test "x$ac_lo" != "x$ac_hi"; do | |
13236 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13237 | cat >conftest.$ac_ext <<_ACEOF | |
13238 | /* confdefs.h. */ | |
13239 | _ACEOF | |
13240 | cat confdefs.h >>conftest.$ac_ext | |
13241 | cat >>conftest.$ac_ext <<_ACEOF | |
13242 | /* end confdefs.h. */ | |
13243 | $ac_includes_default | |
4e8d927d DJ |
13244 | int |
13245 | main () | |
13246 | { | |
b4e70030 | 13247 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
13248 | test_array [0] = 0 |
13249 | ||
13250 | ; | |
13251 | return 0; | |
13252 | } | |
13253 | _ACEOF | |
13254 | rm -f conftest.$ac_objext | |
13255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13256 | (eval $ac_compile) 2>conftest.er1 | |
13257 | ac_status=$? | |
13258 | grep -v '^ *+' conftest.er1 >conftest.err | |
13259 | rm -f conftest.er1 | |
13260 | cat conftest.err >&5 | |
13261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13262 | (exit $ac_status); } && | |
b4e70030 JB |
13263 | { ac_try='test -z "$ac_c_werror_flag" |
13264 | || test ! -s conftest.err' | |
4e8d927d DJ |
13265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13266 | (eval $ac_try) 2>&5 | |
13267 | ac_status=$? | |
13268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13269 | (exit $ac_status); }; } && | |
13270 | { ac_try='test -s conftest.$ac_objext' | |
13271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13272 | (eval $ac_try) 2>&5 | |
13273 | ac_status=$? | |
13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13275 | (exit $ac_status); }; }; then | |
13276 | ac_hi=$ac_mid | |
13277 | else | |
13278 | echo "$as_me: failed program was:" >&5 | |
13279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13280 | ||
b4e70030 | 13281 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13282 | fi |
4e8d927d DJ |
13283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13284 | done | |
13285 | case $ac_lo in | |
13286 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
b4e70030 | 13287 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 13288 | See \`config.log' for more details." >&5 |
b4e70030 | 13289 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 13290 | See \`config.log' for more details." >&2;} |
b4e70030 | 13291 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13292 | esac |
b4e70030 JB |
13293 | else |
13294 | if test "$cross_compiling" = yes; then | |
13295 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13296 | See \`config.log' for more details." >&5 | |
13297 | echo "$as_me: error: cannot run test program while cross compiling | |
13298 | See \`config.log' for more details." >&2;} | |
13299 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13300 | else |
13301 | cat >conftest.$ac_ext <<_ACEOF | |
13302 | /* confdefs.h. */ | |
13303 | _ACEOF | |
13304 | cat confdefs.h >>conftest.$ac_ext | |
13305 | cat >>conftest.$ac_ext <<_ACEOF | |
13306 | /* end confdefs.h. */ | |
13307 | $ac_includes_default | |
b4e70030 JB |
13308 | long longval () { return (long) (sizeof (int)); } |
13309 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
4e8d927d DJ |
13310 | #include <stdio.h> |
13311 | #include <stdlib.h> | |
13312 | int | |
13313 | main () | |
13314 | { | |
13315 | ||
13316 | FILE *f = fopen ("conftest.val", "w"); | |
13317 | if (! f) | |
b4e70030 JB |
13318 | exit (1); |
13319 | if (((long) (sizeof (int))) < 0) | |
4e8d927d | 13320 | { |
b4e70030 JB |
13321 | long i = longval (); |
13322 | if (i != ((long) (sizeof (int)))) | |
13323 | exit (1); | |
4e8d927d DJ |
13324 | fprintf (f, "%ld\n", i); |
13325 | } | |
13326 | else | |
13327 | { | |
b4e70030 JB |
13328 | unsigned long i = ulongval (); |
13329 | if (i != ((long) (sizeof (int)))) | |
13330 | exit (1); | |
4e8d927d DJ |
13331 | fprintf (f, "%lu\n", i); |
13332 | } | |
b4e70030 | 13333 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13334 | |
13335 | ; | |
13336 | return 0; | |
13337 | } | |
13338 | _ACEOF | |
13339 | rm -f conftest$ac_exeext | |
13340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13341 | (eval $ac_link) 2>&5 | |
13342 | ac_status=$? | |
13343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13344 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13346 | (eval $ac_try) 2>&5 | |
13347 | ac_status=$? | |
13348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13349 | (exit $ac_status); }; }; then | |
13350 | ac_cv_sizeof_int=`cat conftest.val` | |
13351 | else | |
13352 | echo "$as_me: program exited with status $ac_status" >&5 | |
13353 | echo "$as_me: failed program was:" >&5 | |
13354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13355 | ||
13356 | ( exit $ac_status ) | |
b4e70030 | 13357 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 13358 | See \`config.log' for more details." >&5 |
b4e70030 | 13359 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 13360 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13361 | { (exit 1); exit 1; }; } |
13362 | fi | |
13363 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13364 | fi |
4e8d927d DJ |
13365 | fi |
13366 | rm -f conftest.val | |
13367 | else | |
13368 | ac_cv_sizeof_int=0 | |
13369 | fi | |
13370 | fi | |
b4e70030 JB |
13371 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
13372 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
4e8d927d DJ |
13373 | cat >>confdefs.h <<_ACEOF |
13374 | #define SIZEOF_INT $ac_cv_sizeof_int | |
13375 | _ACEOF | |
13376 | ||
13377 | ||
b4e70030 JB |
13378 | echo "$as_me:$LINENO: checking for short" >&5 |
13379 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
4e8d927d DJ |
13380 | if test "${ac_cv_type_short+set}" = set; then |
13381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13382 | else | |
13383 | cat >conftest.$ac_ext <<_ACEOF | |
13384 | /* confdefs.h. */ | |
13385 | _ACEOF | |
13386 | cat confdefs.h >>conftest.$ac_ext | |
13387 | cat >>conftest.$ac_ext <<_ACEOF | |
13388 | /* end confdefs.h. */ | |
13389 | $ac_includes_default | |
4e8d927d DJ |
13390 | int |
13391 | main () | |
13392 | { | |
b4e70030 | 13393 | if ((short *) 0) |
4e8d927d | 13394 | return 0; |
b4e70030 | 13395 | if (sizeof (short)) |
4e8d927d DJ |
13396 | return 0; |
13397 | ; | |
13398 | return 0; | |
13399 | } | |
13400 | _ACEOF | |
13401 | rm -f conftest.$ac_objext | |
13402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13403 | (eval $ac_compile) 2>conftest.er1 | |
13404 | ac_status=$? | |
13405 | grep -v '^ *+' conftest.er1 >conftest.err | |
13406 | rm -f conftest.er1 | |
13407 | cat conftest.err >&5 | |
13408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13409 | (exit $ac_status); } && | |
b4e70030 JB |
13410 | { ac_try='test -z "$ac_c_werror_flag" |
13411 | || test ! -s conftest.err' | |
4e8d927d DJ |
13412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13413 | (eval $ac_try) 2>&5 | |
13414 | ac_status=$? | |
13415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13416 | (exit $ac_status); }; } && | |
13417 | { ac_try='test -s conftest.$ac_objext' | |
13418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13419 | (eval $ac_try) 2>&5 | |
13420 | ac_status=$? | |
13421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13422 | (exit $ac_status); }; }; then | |
13423 | ac_cv_type_short=yes | |
13424 | else | |
13425 | echo "$as_me: failed program was:" >&5 | |
13426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13427 | ||
b4e70030 | 13428 | ac_cv_type_short=no |
4e8d927d | 13429 | fi |
4e8d927d DJ |
13430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13431 | fi | |
b4e70030 JB |
13432 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
13433 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
4e8d927d | 13434 | |
b4e70030 JB |
13435 | echo "$as_me:$LINENO: checking size of short" >&5 |
13436 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
4e8d927d DJ |
13437 | if test "${ac_cv_sizeof_short+set}" = set; then |
13438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13439 | else | |
13440 | if test "$ac_cv_type_short" = yes; then | |
b4e70030 | 13441 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13442 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13443 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13444 | # This bug is HP SR number 8606223364. | |
13445 | if test "$cross_compiling" = yes; then | |
13446 | # Depending upon the size, compute the lo and hi bounds. | |
13447 | cat >conftest.$ac_ext <<_ACEOF | |
13448 | /* confdefs.h. */ | |
13449 | _ACEOF | |
13450 | cat confdefs.h >>conftest.$ac_ext | |
13451 | cat >>conftest.$ac_ext <<_ACEOF | |
13452 | /* end confdefs.h. */ | |
13453 | $ac_includes_default | |
4e8d927d DJ |
13454 | int |
13455 | main () | |
13456 | { | |
b4e70030 | 13457 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
4e8d927d DJ |
13458 | test_array [0] = 0 |
13459 | ||
13460 | ; | |
13461 | return 0; | |
13462 | } | |
13463 | _ACEOF | |
13464 | rm -f conftest.$ac_objext | |
13465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13466 | (eval $ac_compile) 2>conftest.er1 | |
13467 | ac_status=$? | |
13468 | grep -v '^ *+' conftest.er1 >conftest.err | |
13469 | rm -f conftest.er1 | |
13470 | cat conftest.err >&5 | |
13471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13472 | (exit $ac_status); } && | |
b4e70030 JB |
13473 | { ac_try='test -z "$ac_c_werror_flag" |
13474 | || test ! -s conftest.err' | |
4e8d927d DJ |
13475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13476 | (eval $ac_try) 2>&5 | |
13477 | ac_status=$? | |
13478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13479 | (exit $ac_status); }; } && | |
13480 | { ac_try='test -s conftest.$ac_objext' | |
13481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13482 | (eval $ac_try) 2>&5 | |
13483 | ac_status=$? | |
13484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13485 | (exit $ac_status); }; }; then | |
13486 | ac_lo=0 ac_mid=0 | |
13487 | while :; do | |
13488 | cat >conftest.$ac_ext <<_ACEOF | |
13489 | /* confdefs.h. */ | |
13490 | _ACEOF | |
13491 | cat confdefs.h >>conftest.$ac_ext | |
13492 | cat >>conftest.$ac_ext <<_ACEOF | |
13493 | /* end confdefs.h. */ | |
13494 | $ac_includes_default | |
4e8d927d DJ |
13495 | int |
13496 | main () | |
13497 | { | |
b4e70030 | 13498 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13499 | test_array [0] = 0 |
13500 | ||
13501 | ; | |
13502 | return 0; | |
13503 | } | |
13504 | _ACEOF | |
13505 | rm -f conftest.$ac_objext | |
13506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13507 | (eval $ac_compile) 2>conftest.er1 | |
13508 | ac_status=$? | |
13509 | grep -v '^ *+' conftest.er1 >conftest.err | |
13510 | rm -f conftest.er1 | |
13511 | cat conftest.err >&5 | |
13512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13513 | (exit $ac_status); } && | |
b4e70030 JB |
13514 | { ac_try='test -z "$ac_c_werror_flag" |
13515 | || test ! -s conftest.err' | |
4e8d927d DJ |
13516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13517 | (eval $ac_try) 2>&5 | |
13518 | ac_status=$? | |
13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13520 | (exit $ac_status); }; } && | |
13521 | { ac_try='test -s conftest.$ac_objext' | |
13522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13523 | (eval $ac_try) 2>&5 | |
13524 | ac_status=$? | |
13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13526 | (exit $ac_status); }; }; then | |
13527 | ac_hi=$ac_mid; break | |
13528 | else | |
13529 | echo "$as_me: failed program was:" >&5 | |
13530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13531 | ||
b4e70030 JB |
13532 | ac_lo=`expr $ac_mid + 1` |
13533 | if test $ac_lo -le $ac_mid; then | |
13534 | ac_lo= ac_hi= | |
13535 | break | |
13536 | fi | |
13537 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13538 | fi |
4e8d927d DJ |
13539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13540 | done | |
13541 | else | |
13542 | echo "$as_me: failed program was:" >&5 | |
13543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13544 | ||
b4e70030 | 13545 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13546 | /* confdefs.h. */ |
13547 | _ACEOF | |
13548 | cat confdefs.h >>conftest.$ac_ext | |
13549 | cat >>conftest.$ac_ext <<_ACEOF | |
13550 | /* end confdefs.h. */ | |
13551 | $ac_includes_default | |
4e8d927d DJ |
13552 | int |
13553 | main () | |
13554 | { | |
b4e70030 | 13555 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
4e8d927d DJ |
13556 | test_array [0] = 0 |
13557 | ||
13558 | ; | |
13559 | return 0; | |
13560 | } | |
13561 | _ACEOF | |
13562 | rm -f conftest.$ac_objext | |
13563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13564 | (eval $ac_compile) 2>conftest.er1 | |
13565 | ac_status=$? | |
13566 | grep -v '^ *+' conftest.er1 >conftest.err | |
13567 | rm -f conftest.er1 | |
13568 | cat conftest.err >&5 | |
13569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13570 | (exit $ac_status); } && | |
b4e70030 JB |
13571 | { ac_try='test -z "$ac_c_werror_flag" |
13572 | || test ! -s conftest.err' | |
4e8d927d DJ |
13573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13574 | (eval $ac_try) 2>&5 | |
13575 | ac_status=$? | |
13576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13577 | (exit $ac_status); }; } && | |
13578 | { ac_try='test -s conftest.$ac_objext' | |
13579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13580 | (eval $ac_try) 2>&5 | |
13581 | ac_status=$? | |
13582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13583 | (exit $ac_status); }; }; then | |
13584 | ac_hi=-1 ac_mid=-1 | |
13585 | while :; do | |
13586 | cat >conftest.$ac_ext <<_ACEOF | |
13587 | /* confdefs.h. */ | |
13588 | _ACEOF | |
13589 | cat confdefs.h >>conftest.$ac_ext | |
13590 | cat >>conftest.$ac_ext <<_ACEOF | |
13591 | /* end confdefs.h. */ | |
13592 | $ac_includes_default | |
4e8d927d DJ |
13593 | int |
13594 | main () | |
13595 | { | |
b4e70030 | 13596 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
4e8d927d DJ |
13597 | test_array [0] = 0 |
13598 | ||
13599 | ; | |
13600 | return 0; | |
13601 | } | |
13602 | _ACEOF | |
13603 | rm -f conftest.$ac_objext | |
13604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13605 | (eval $ac_compile) 2>conftest.er1 | |
13606 | ac_status=$? | |
13607 | grep -v '^ *+' conftest.er1 >conftest.err | |
13608 | rm -f conftest.er1 | |
13609 | cat conftest.err >&5 | |
13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13611 | (exit $ac_status); } && | |
b4e70030 JB |
13612 | { ac_try='test -z "$ac_c_werror_flag" |
13613 | || test ! -s conftest.err' | |
4e8d927d DJ |
13614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13615 | (eval $ac_try) 2>&5 | |
13616 | ac_status=$? | |
13617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13618 | (exit $ac_status); }; } && | |
13619 | { ac_try='test -s conftest.$ac_objext' | |
13620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13621 | (eval $ac_try) 2>&5 | |
13622 | ac_status=$? | |
13623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13624 | (exit $ac_status); }; }; then | |
13625 | ac_lo=$ac_mid; break | |
13626 | else | |
13627 | echo "$as_me: failed program was:" >&5 | |
13628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13629 | ||
b4e70030 JB |
13630 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13631 | if test $ac_mid -le $ac_hi; then | |
13632 | ac_lo= ac_hi= | |
13633 | break | |
13634 | fi | |
13635 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13636 | fi |
4e8d927d DJ |
13637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13638 | done | |
13639 | else | |
13640 | echo "$as_me: failed program was:" >&5 | |
13641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13642 | ||
b4e70030 | 13643 | ac_lo= ac_hi= |
4e8d927d | 13644 | fi |
4e8d927d DJ |
13645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13646 | fi | |
4e8d927d DJ |
13647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13648 | # Binary search between lo and hi bounds. | |
13649 | while test "x$ac_lo" != "x$ac_hi"; do | |
13650 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13651 | cat >conftest.$ac_ext <<_ACEOF | |
13652 | /* confdefs.h. */ | |
13653 | _ACEOF | |
13654 | cat confdefs.h >>conftest.$ac_ext | |
13655 | cat >>conftest.$ac_ext <<_ACEOF | |
13656 | /* end confdefs.h. */ | |
13657 | $ac_includes_default | |
4e8d927d DJ |
13658 | int |
13659 | main () | |
13660 | { | |
b4e70030 | 13661 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13662 | test_array [0] = 0 |
13663 | ||
13664 | ; | |
13665 | return 0; | |
13666 | } | |
13667 | _ACEOF | |
13668 | rm -f conftest.$ac_objext | |
13669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13670 | (eval $ac_compile) 2>conftest.er1 | |
13671 | ac_status=$? | |
13672 | grep -v '^ *+' conftest.er1 >conftest.err | |
13673 | rm -f conftest.er1 | |
13674 | cat conftest.err >&5 | |
13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13676 | (exit $ac_status); } && | |
b4e70030 JB |
13677 | { ac_try='test -z "$ac_c_werror_flag" |
13678 | || test ! -s conftest.err' | |
4e8d927d DJ |
13679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13680 | (eval $ac_try) 2>&5 | |
13681 | ac_status=$? | |
13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13683 | (exit $ac_status); }; } && | |
13684 | { ac_try='test -s conftest.$ac_objext' | |
13685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13686 | (eval $ac_try) 2>&5 | |
13687 | ac_status=$? | |
13688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13689 | (exit $ac_status); }; }; then | |
13690 | ac_hi=$ac_mid | |
13691 | else | |
13692 | echo "$as_me: failed program was:" >&5 | |
13693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13694 | ||
b4e70030 | 13695 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13696 | fi |
4e8d927d DJ |
13697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13698 | done | |
13699 | case $ac_lo in | |
13700 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
b4e70030 | 13701 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13702 | See \`config.log' for more details." >&5 |
b4e70030 | 13703 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13704 | See \`config.log' for more details." >&2;} |
b4e70030 | 13705 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13706 | esac |
b4e70030 JB |
13707 | else |
13708 | if test "$cross_compiling" = yes; then | |
13709 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13710 | See \`config.log' for more details." >&5 | |
13711 | echo "$as_me: error: cannot run test program while cross compiling | |
13712 | See \`config.log' for more details." >&2;} | |
13713 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13714 | else |
13715 | cat >conftest.$ac_ext <<_ACEOF | |
13716 | /* confdefs.h. */ | |
13717 | _ACEOF | |
13718 | cat confdefs.h >>conftest.$ac_ext | |
13719 | cat >>conftest.$ac_ext <<_ACEOF | |
13720 | /* end confdefs.h. */ | |
13721 | $ac_includes_default | |
b4e70030 JB |
13722 | long longval () { return (long) (sizeof (short)); } |
13723 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
4e8d927d DJ |
13724 | #include <stdio.h> |
13725 | #include <stdlib.h> | |
13726 | int | |
13727 | main () | |
13728 | { | |
13729 | ||
13730 | FILE *f = fopen ("conftest.val", "w"); | |
13731 | if (! f) | |
b4e70030 JB |
13732 | exit (1); |
13733 | if (((long) (sizeof (short))) < 0) | |
4e8d927d | 13734 | { |
b4e70030 JB |
13735 | long i = longval (); |
13736 | if (i != ((long) (sizeof (short)))) | |
13737 | exit (1); | |
4e8d927d DJ |
13738 | fprintf (f, "%ld\n", i); |
13739 | } | |
13740 | else | |
13741 | { | |
b4e70030 JB |
13742 | unsigned long i = ulongval (); |
13743 | if (i != ((long) (sizeof (short)))) | |
13744 | exit (1); | |
4e8d927d DJ |
13745 | fprintf (f, "%lu\n", i); |
13746 | } | |
b4e70030 | 13747 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13748 | |
13749 | ; | |
13750 | return 0; | |
13751 | } | |
13752 | _ACEOF | |
13753 | rm -f conftest$ac_exeext | |
13754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13755 | (eval $ac_link) 2>&5 | |
13756 | ac_status=$? | |
13757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13758 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13760 | (eval $ac_try) 2>&5 | |
13761 | ac_status=$? | |
13762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13763 | (exit $ac_status); }; }; then | |
13764 | ac_cv_sizeof_short=`cat conftest.val` | |
13765 | else | |
13766 | echo "$as_me: program exited with status $ac_status" >&5 | |
13767 | echo "$as_me: failed program was:" >&5 | |
13768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13769 | ||
13770 | ( exit $ac_status ) | |
b4e70030 | 13771 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13772 | See \`config.log' for more details." >&5 |
b4e70030 | 13773 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13774 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13775 | { (exit 1); exit 1; }; } |
13776 | fi | |
13777 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13778 | fi |
4e8d927d DJ |
13779 | fi |
13780 | rm -f conftest.val | |
13781 | else | |
13782 | ac_cv_sizeof_short=0 | |
13783 | fi | |
13784 | fi | |
b4e70030 JB |
13785 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
13786 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
4e8d927d DJ |
13787 | cat >>confdefs.h <<_ACEOF |
13788 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13789 | _ACEOF | |
13790 | ||
13791 | ||
b4e70030 JB |
13792 | echo "$as_me:$LINENO: checking for char" >&5 |
13793 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
4e8d927d DJ |
13794 | if test "${ac_cv_type_char+set}" = set; then |
13795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13796 | else | |
13797 | cat >conftest.$ac_ext <<_ACEOF | |
13798 | /* confdefs.h. */ | |
13799 | _ACEOF | |
13800 | cat confdefs.h >>conftest.$ac_ext | |
13801 | cat >>conftest.$ac_ext <<_ACEOF | |
13802 | /* end confdefs.h. */ | |
13803 | $ac_includes_default | |
4e8d927d DJ |
13804 | int |
13805 | main () | |
13806 | { | |
b4e70030 | 13807 | if ((char *) 0) |
4e8d927d | 13808 | return 0; |
b4e70030 | 13809 | if (sizeof (char)) |
4e8d927d DJ |
13810 | return 0; |
13811 | ; | |
13812 | return 0; | |
13813 | } | |
13814 | _ACEOF | |
13815 | rm -f conftest.$ac_objext | |
13816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13817 | (eval $ac_compile) 2>conftest.er1 | |
13818 | ac_status=$? | |
13819 | grep -v '^ *+' conftest.er1 >conftest.err | |
13820 | rm -f conftest.er1 | |
13821 | cat conftest.err >&5 | |
13822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13823 | (exit $ac_status); } && | |
b4e70030 JB |
13824 | { ac_try='test -z "$ac_c_werror_flag" |
13825 | || test ! -s conftest.err' | |
4e8d927d DJ |
13826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13827 | (eval $ac_try) 2>&5 | |
13828 | ac_status=$? | |
13829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13830 | (exit $ac_status); }; } && | |
13831 | { ac_try='test -s conftest.$ac_objext' | |
13832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13833 | (eval $ac_try) 2>&5 | |
13834 | ac_status=$? | |
13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13836 | (exit $ac_status); }; }; then | |
13837 | ac_cv_type_char=yes | |
13838 | else | |
13839 | echo "$as_me: failed program was:" >&5 | |
13840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13841 | ||
b4e70030 | 13842 | ac_cv_type_char=no |
4e8d927d | 13843 | fi |
4e8d927d DJ |
13844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13845 | fi | |
b4e70030 JB |
13846 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
13847 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
4e8d927d | 13848 | |
b4e70030 JB |
13849 | echo "$as_me:$LINENO: checking size of char" >&5 |
13850 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
4e8d927d DJ |
13851 | if test "${ac_cv_sizeof_char+set}" = set; then |
13852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13853 | else | |
13854 | if test "$ac_cv_type_char" = yes; then | |
b4e70030 | 13855 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13856 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13857 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13858 | # This bug is HP SR number 8606223364. | |
13859 | if test "$cross_compiling" = yes; then | |
13860 | # Depending upon the size, compute the lo and hi bounds. | |
13861 | cat >conftest.$ac_ext <<_ACEOF | |
13862 | /* confdefs.h. */ | |
13863 | _ACEOF | |
13864 | cat confdefs.h >>conftest.$ac_ext | |
13865 | cat >>conftest.$ac_ext <<_ACEOF | |
13866 | /* end confdefs.h. */ | |
13867 | $ac_includes_default | |
4e8d927d DJ |
13868 | int |
13869 | main () | |
13870 | { | |
b4e70030 | 13871 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
4e8d927d DJ |
13872 | test_array [0] = 0 |
13873 | ||
13874 | ; | |
13875 | return 0; | |
13876 | } | |
13877 | _ACEOF | |
13878 | rm -f conftest.$ac_objext | |
13879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13880 | (eval $ac_compile) 2>conftest.er1 | |
13881 | ac_status=$? | |
13882 | grep -v '^ *+' conftest.er1 >conftest.err | |
13883 | rm -f conftest.er1 | |
13884 | cat conftest.err >&5 | |
13885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13886 | (exit $ac_status); } && | |
b4e70030 JB |
13887 | { ac_try='test -z "$ac_c_werror_flag" |
13888 | || test ! -s conftest.err' | |
4e8d927d DJ |
13889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13890 | (eval $ac_try) 2>&5 | |
13891 | ac_status=$? | |
13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13893 | (exit $ac_status); }; } && | |
13894 | { ac_try='test -s conftest.$ac_objext' | |
13895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13896 | (eval $ac_try) 2>&5 | |
13897 | ac_status=$? | |
13898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13899 | (exit $ac_status); }; }; then | |
13900 | ac_lo=0 ac_mid=0 | |
13901 | while :; do | |
13902 | cat >conftest.$ac_ext <<_ACEOF | |
13903 | /* confdefs.h. */ | |
13904 | _ACEOF | |
13905 | cat confdefs.h >>conftest.$ac_ext | |
13906 | cat >>conftest.$ac_ext <<_ACEOF | |
13907 | /* end confdefs.h. */ | |
13908 | $ac_includes_default | |
4e8d927d DJ |
13909 | int |
13910 | main () | |
13911 | { | |
b4e70030 | 13912 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
13913 | test_array [0] = 0 |
13914 | ||
13915 | ; | |
13916 | return 0; | |
13917 | } | |
13918 | _ACEOF | |
13919 | rm -f conftest.$ac_objext | |
13920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13921 | (eval $ac_compile) 2>conftest.er1 | |
13922 | ac_status=$? | |
13923 | grep -v '^ *+' conftest.er1 >conftest.err | |
13924 | rm -f conftest.er1 | |
13925 | cat conftest.err >&5 | |
13926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13927 | (exit $ac_status); } && | |
b4e70030 JB |
13928 | { ac_try='test -z "$ac_c_werror_flag" |
13929 | || test ! -s conftest.err' | |
4e8d927d DJ |
13930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13931 | (eval $ac_try) 2>&5 | |
13932 | ac_status=$? | |
13933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13934 | (exit $ac_status); }; } && | |
13935 | { ac_try='test -s conftest.$ac_objext' | |
13936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13937 | (eval $ac_try) 2>&5 | |
13938 | ac_status=$? | |
13939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13940 | (exit $ac_status); }; }; then | |
13941 | ac_hi=$ac_mid; break | |
13942 | else | |
13943 | echo "$as_me: failed program was:" >&5 | |
13944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13945 | ||
b4e70030 JB |
13946 | ac_lo=`expr $ac_mid + 1` |
13947 | if test $ac_lo -le $ac_mid; then | |
13948 | ac_lo= ac_hi= | |
13949 | break | |
13950 | fi | |
13951 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13952 | fi |
4e8d927d DJ |
13953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13954 | done | |
13955 | else | |
13956 | echo "$as_me: failed program was:" >&5 | |
13957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13958 | ||
b4e70030 | 13959 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13960 | /* confdefs.h. */ |
13961 | _ACEOF | |
13962 | cat confdefs.h >>conftest.$ac_ext | |
13963 | cat >>conftest.$ac_ext <<_ACEOF | |
13964 | /* end confdefs.h. */ | |
13965 | $ac_includes_default | |
4e8d927d DJ |
13966 | int |
13967 | main () | |
13968 | { | |
b4e70030 | 13969 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
4e8d927d DJ |
13970 | test_array [0] = 0 |
13971 | ||
13972 | ; | |
13973 | return 0; | |
13974 | } | |
13975 | _ACEOF | |
13976 | rm -f conftest.$ac_objext | |
13977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13978 | (eval $ac_compile) 2>conftest.er1 | |
13979 | ac_status=$? | |
13980 | grep -v '^ *+' conftest.er1 >conftest.err | |
13981 | rm -f conftest.er1 | |
13982 | cat conftest.err >&5 | |
13983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13984 | (exit $ac_status); } && | |
b4e70030 JB |
13985 | { ac_try='test -z "$ac_c_werror_flag" |
13986 | || test ! -s conftest.err' | |
4e8d927d DJ |
13987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13988 | (eval $ac_try) 2>&5 | |
13989 | ac_status=$? | |
13990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13991 | (exit $ac_status); }; } && | |
13992 | { ac_try='test -s conftest.$ac_objext' | |
13993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13994 | (eval $ac_try) 2>&5 | |
13995 | ac_status=$? | |
13996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13997 | (exit $ac_status); }; }; then | |
13998 | ac_hi=-1 ac_mid=-1 | |
13999 | while :; do | |
14000 | cat >conftest.$ac_ext <<_ACEOF | |
14001 | /* confdefs.h. */ | |
14002 | _ACEOF | |
14003 | cat confdefs.h >>conftest.$ac_ext | |
14004 | cat >>conftest.$ac_ext <<_ACEOF | |
14005 | /* end confdefs.h. */ | |
14006 | $ac_includes_default | |
4e8d927d DJ |
14007 | int |
14008 | main () | |
14009 | { | |
b4e70030 | 14010 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
4e8d927d DJ |
14011 | test_array [0] = 0 |
14012 | ||
14013 | ; | |
14014 | return 0; | |
14015 | } | |
14016 | _ACEOF | |
14017 | rm -f conftest.$ac_objext | |
14018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14019 | (eval $ac_compile) 2>conftest.er1 | |
14020 | ac_status=$? | |
14021 | grep -v '^ *+' conftest.er1 >conftest.err | |
14022 | rm -f conftest.er1 | |
14023 | cat conftest.err >&5 | |
14024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14025 | (exit $ac_status); } && | |
b4e70030 JB |
14026 | { ac_try='test -z "$ac_c_werror_flag" |
14027 | || test ! -s conftest.err' | |
4e8d927d DJ |
14028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14029 | (eval $ac_try) 2>&5 | |
14030 | ac_status=$? | |
14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14032 | (exit $ac_status); }; } && | |
14033 | { ac_try='test -s conftest.$ac_objext' | |
14034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14035 | (eval $ac_try) 2>&5 | |
14036 | ac_status=$? | |
14037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14038 | (exit $ac_status); }; }; then | |
14039 | ac_lo=$ac_mid; break | |
14040 | else | |
14041 | echo "$as_me: failed program was:" >&5 | |
14042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14043 | ||
b4e70030 JB |
14044 | ac_hi=`expr '(' $ac_mid ')' - 1` |
14045 | if test $ac_mid -le $ac_hi; then | |
14046 | ac_lo= ac_hi= | |
14047 | break | |
14048 | fi | |
14049 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 14050 | fi |
4e8d927d DJ |
14051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14052 | done | |
14053 | else | |
14054 | echo "$as_me: failed program was:" >&5 | |
14055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14056 | ||
b4e70030 | 14057 | ac_lo= ac_hi= |
4e8d927d | 14058 | fi |
4e8d927d DJ |
14059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14060 | fi | |
4e8d927d DJ |
14061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14062 | # Binary search between lo and hi bounds. | |
14063 | while test "x$ac_lo" != "x$ac_hi"; do | |
14064 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14065 | cat >conftest.$ac_ext <<_ACEOF | |
14066 | /* confdefs.h. */ | |
14067 | _ACEOF | |
14068 | cat confdefs.h >>conftest.$ac_ext | |
14069 | cat >>conftest.$ac_ext <<_ACEOF | |
14070 | /* end confdefs.h. */ | |
14071 | $ac_includes_default | |
4e8d927d DJ |
14072 | int |
14073 | main () | |
14074 | { | |
b4e70030 | 14075 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
14076 | test_array [0] = 0 |
14077 | ||
14078 | ; | |
14079 | return 0; | |
14080 | } | |
14081 | _ACEOF | |
14082 | rm -f conftest.$ac_objext | |
14083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14084 | (eval $ac_compile) 2>conftest.er1 | |
14085 | ac_status=$? | |
14086 | grep -v '^ *+' conftest.er1 >conftest.err | |
14087 | rm -f conftest.er1 | |
14088 | cat conftest.err >&5 | |
14089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14090 | (exit $ac_status); } && | |
b4e70030 JB |
14091 | { ac_try='test -z "$ac_c_werror_flag" |
14092 | || test ! -s conftest.err' | |
4e8d927d DJ |
14093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14094 | (eval $ac_try) 2>&5 | |
14095 | ac_status=$? | |
14096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14097 | (exit $ac_status); }; } && | |
14098 | { ac_try='test -s conftest.$ac_objext' | |
14099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14100 | (eval $ac_try) 2>&5 | |
14101 | ac_status=$? | |
14102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14103 | (exit $ac_status); }; }; then | |
14104 | ac_hi=$ac_mid | |
14105 | else | |
14106 | echo "$as_me: failed program was:" >&5 | |
14107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14108 | ||
b4e70030 | 14109 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 14110 | fi |
4e8d927d DJ |
14111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14112 | done | |
14113 | case $ac_lo in | |
14114 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
b4e70030 | 14115 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 14116 | See \`config.log' for more details." >&5 |
b4e70030 | 14117 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 14118 | See \`config.log' for more details." >&2;} |
b4e70030 | 14119 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 14120 | esac |
b4e70030 JB |
14121 | else |
14122 | if test "$cross_compiling" = yes; then | |
14123 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14124 | See \`config.log' for more details." >&5 | |
14125 | echo "$as_me: error: cannot run test program while cross compiling | |
14126 | See \`config.log' for more details." >&2;} | |
14127 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
14128 | else |
14129 | cat >conftest.$ac_ext <<_ACEOF | |
14130 | /* confdefs.h. */ | |
14131 | _ACEOF | |
14132 | cat confdefs.h >>conftest.$ac_ext | |
14133 | cat >>conftest.$ac_ext <<_ACEOF | |
14134 | /* end confdefs.h. */ | |
14135 | $ac_includes_default | |
b4e70030 JB |
14136 | long longval () { return (long) (sizeof (char)); } |
14137 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
4e8d927d DJ |
14138 | #include <stdio.h> |
14139 | #include <stdlib.h> | |
14140 | int | |
14141 | main () | |
14142 | { | |
14143 | ||
14144 | FILE *f = fopen ("conftest.val", "w"); | |
14145 | if (! f) | |
b4e70030 JB |
14146 | exit (1); |
14147 | if (((long) (sizeof (char))) < 0) | |
4e8d927d | 14148 | { |
b4e70030 JB |
14149 | long i = longval (); |
14150 | if (i != ((long) (sizeof (char)))) | |
14151 | exit (1); | |
4e8d927d DJ |
14152 | fprintf (f, "%ld\n", i); |
14153 | } | |
14154 | else | |
14155 | { | |
b4e70030 JB |
14156 | unsigned long i = ulongval (); |
14157 | if (i != ((long) (sizeof (char)))) | |
14158 | exit (1); | |
4e8d927d DJ |
14159 | fprintf (f, "%lu\n", i); |
14160 | } | |
b4e70030 | 14161 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
14162 | |
14163 | ; | |
14164 | return 0; | |
14165 | } | |
14166 | _ACEOF | |
14167 | rm -f conftest$ac_exeext | |
14168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14169 | (eval $ac_link) 2>&5 | |
14170 | ac_status=$? | |
14171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14172 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14174 | (eval $ac_try) 2>&5 | |
14175 | ac_status=$? | |
14176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14177 | (exit $ac_status); }; }; then | |
14178 | ac_cv_sizeof_char=`cat conftest.val` | |
14179 | else | |
14180 | echo "$as_me: program exited with status $ac_status" >&5 | |
14181 | echo "$as_me: failed program was:" >&5 | |
14182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14183 | ||
14184 | ( exit $ac_status ) | |
b4e70030 | 14185 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 14186 | See \`config.log' for more details." >&5 |
b4e70030 | 14187 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 14188 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
14189 | { (exit 1); exit 1; }; } |
14190 | fi | |
14191 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 14192 | fi |
4e8d927d DJ |
14193 | fi |
14194 | rm -f conftest.val | |
14195 | else | |
14196 | ac_cv_sizeof_char=0 | |
14197 | fi | |
14198 | fi | |
b4e70030 JB |
14199 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14200 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
4e8d927d DJ |
14201 | cat >>confdefs.h <<_ACEOF |
14202 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14203 | _ACEOF | |
14204 | ||
14205 | ||
14206 | ||
b4e70030 JB |
14207 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
14208 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14209 | case "$ac_cv_sizeof_char" in |
14210 | 1) acx_cv_type_int8_t=char ;; | |
14211 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
14212 | echo "$as_me: error: no 8-bit type" >&2;} | |
14213 | { (exit please report a bug); exit please report a bug; }; } | |
14214 | esac | |
b4e70030 JB |
14215 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
14216 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
4e8d927d | 14217 | |
b4e70030 JB |
14218 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
14219 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14220 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
14221 | 2:*) acx_cv_type_int16_t=int ;; | |
14222 | *:2) acx_cv_type_int16_t=short ;; | |
14223 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
14224 | echo "$as_me: error: no 16-bit type" >&2;} | |
14225 | { (exit please report a bug); exit please report a bug; }; } | |
14226 | esac | |
b4e70030 JB |
14227 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
14228 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
4e8d927d | 14229 | |
b4e70030 JB |
14230 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
14231 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14232 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
14233 | 4:*) acx_cv_type_int32_t=int ;; | |
14234 | *:4) acx_cv_type_int32_t=long ;; | |
14235 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
14236 | echo "$as_me: error: no 32-bit type" >&2;} | |
14237 | { (exit please report a bug); exit please report a bug; }; } | |
14238 | esac | |
b4e70030 JB |
14239 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
14240 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
4e8d927d DJ |
14241 | fi |
14242 | ||
14243 | # These tests are here to make the output prettier | |
14244 | ||
14245 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
14246 | case "$ac_cv_sizeof_long" in | |
14247 | 8) acx_cv_type_int64_t=long ;; | |
14248 | esac | |
b4e70030 JB |
14249 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
14250 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
14251 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
14252 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
4e8d927d DJ |
14253 | fi |
14254 | ||
14255 | # Now we can use the above types | |
14256 | ||
14257 | if test "$ac_cv_type_uintptr_t" != yes; then | |
b4e70030 JB |
14258 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
14259 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14260 | case $ac_cv_sizeof_void_p in |
14261 | 2) acx_cv_type_intptr_t=int16_t ;; | |
14262 | 4) acx_cv_type_intptr_t=int32_t ;; | |
14263 | 8) acx_cv_type_intptr_t=int64_t ;; | |
14264 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
14265 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
14266 | { (exit please report a bug); exit please report a bug; }; } | |
14267 | esac | |
b4e70030 JB |
14268 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
14269 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
4e8d927d DJ |
14270 | fi |
14271 | ||
14272 | # ----------------- done all checks, emit header ------------- | |
b4e70030 | 14273 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
4e8d927d DJ |
14274 | |
14275 | ||
14276 | ||
14277 | ||
14278 | # ------------------------- # | |
14279 | # Checks for declarations. # | |
14280 | # ------------------------- # | |
14281 | ||
b4e70030 JB |
14282 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
14283 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14284 | if test "${ac_cv_have_decl_free+set}" = set; then |
14285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14286 | else | |
14287 | cat >conftest.$ac_ext <<_ACEOF | |
14288 | /* confdefs.h. */ | |
14289 | _ACEOF | |
14290 | cat confdefs.h >>conftest.$ac_ext | |
14291 | cat >>conftest.$ac_ext <<_ACEOF | |
14292 | /* end confdefs.h. */ | |
14293 | $ac_includes_default | |
14294 | int | |
14295 | main () | |
14296 | { | |
14297 | #ifndef free | |
14298 | char *p = (char *) free; | |
4e8d927d DJ |
14299 | #endif |
14300 | ||
14301 | ; | |
14302 | return 0; | |
14303 | } | |
14304 | _ACEOF | |
14305 | rm -f conftest.$ac_objext | |
14306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14307 | (eval $ac_compile) 2>conftest.er1 | |
14308 | ac_status=$? | |
14309 | grep -v '^ *+' conftest.er1 >conftest.err | |
14310 | rm -f conftest.er1 | |
14311 | cat conftest.err >&5 | |
14312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14313 | (exit $ac_status); } && | |
b4e70030 JB |
14314 | { ac_try='test -z "$ac_c_werror_flag" |
14315 | || test ! -s conftest.err' | |
4e8d927d DJ |
14316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14317 | (eval $ac_try) 2>&5 | |
14318 | ac_status=$? | |
14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14320 | (exit $ac_status); }; } && | |
14321 | { ac_try='test -s conftest.$ac_objext' | |
14322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14323 | (eval $ac_try) 2>&5 | |
14324 | ac_status=$? | |
14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14326 | (exit $ac_status); }; }; then | |
14327 | ac_cv_have_decl_free=yes | |
14328 | else | |
14329 | echo "$as_me: failed program was:" >&5 | |
14330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14331 | ||
b4e70030 | 14332 | ac_cv_have_decl_free=no |
4e8d927d | 14333 | fi |
4e8d927d DJ |
14334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14335 | fi | |
b4e70030 JB |
14336 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
14337 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
4e8d927d DJ |
14338 | if test $ac_cv_have_decl_free = yes; then |
14339 | ||
14340 | cat >>confdefs.h <<_ACEOF | |
14341 | #define HAVE_DECL_FREE 1 | |
14342 | _ACEOF | |
14343 | ||
14344 | ||
14345 | else | |
14346 | cat >>confdefs.h <<_ACEOF | |
14347 | #define HAVE_DECL_FREE 0 | |
14348 | _ACEOF | |
14349 | ||
14350 | ||
14351 | fi | |
b4e70030 JB |
14352 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
14353 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14354 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
14355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14356 | else | |
14357 | cat >conftest.$ac_ext <<_ACEOF | |
14358 | /* confdefs.h. */ | |
14359 | _ACEOF | |
14360 | cat confdefs.h >>conftest.$ac_ext | |
14361 | cat >>conftest.$ac_ext <<_ACEOF | |
14362 | /* end confdefs.h. */ | |
14363 | $ac_includes_default | |
14364 | int | |
14365 | main () | |
14366 | { | |
14367 | #ifndef malloc | |
14368 | char *p = (char *) malloc; | |
4e8d927d DJ |
14369 | #endif |
14370 | ||
14371 | ; | |
14372 | return 0; | |
14373 | } | |
14374 | _ACEOF | |
14375 | rm -f conftest.$ac_objext | |
14376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14377 | (eval $ac_compile) 2>conftest.er1 | |
14378 | ac_status=$? | |
14379 | grep -v '^ *+' conftest.er1 >conftest.err | |
14380 | rm -f conftest.er1 | |
14381 | cat conftest.err >&5 | |
14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14383 | (exit $ac_status); } && | |
b4e70030 JB |
14384 | { ac_try='test -z "$ac_c_werror_flag" |
14385 | || test ! -s conftest.err' | |
4e8d927d DJ |
14386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14387 | (eval $ac_try) 2>&5 | |
14388 | ac_status=$? | |
14389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14390 | (exit $ac_status); }; } && | |
14391 | { ac_try='test -s conftest.$ac_objext' | |
14392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14393 | (eval $ac_try) 2>&5 | |
14394 | ac_status=$? | |
14395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14396 | (exit $ac_status); }; }; then | |
14397 | ac_cv_have_decl_malloc=yes | |
14398 | else | |
14399 | echo "$as_me: failed program was:" >&5 | |
14400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14401 | ||
b4e70030 | 14402 | ac_cv_have_decl_malloc=no |
4e8d927d | 14403 | fi |
4e8d927d DJ |
14404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14405 | fi | |
b4e70030 JB |
14406 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
14407 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
4e8d927d DJ |
14408 | if test $ac_cv_have_decl_malloc = yes; then |
14409 | ||
14410 | cat >>confdefs.h <<_ACEOF | |
14411 | #define HAVE_DECL_MALLOC 1 | |
14412 | _ACEOF | |
14413 | ||
14414 | ||
14415 | else | |
14416 | cat >>confdefs.h <<_ACEOF | |
14417 | #define HAVE_DECL_MALLOC 0 | |
14418 | _ACEOF | |
14419 | ||
14420 | ||
14421 | fi | |
b4e70030 JB |
14422 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
14423 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14424 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
14425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14426 | else | |
14427 | cat >conftest.$ac_ext <<_ACEOF | |
14428 | /* confdefs.h. */ | |
14429 | _ACEOF | |
14430 | cat confdefs.h >>conftest.$ac_ext | |
14431 | cat >>conftest.$ac_ext <<_ACEOF | |
14432 | /* end confdefs.h. */ | |
14433 | $ac_includes_default | |
14434 | int | |
14435 | main () | |
14436 | { | |
14437 | #ifndef realloc | |
14438 | char *p = (char *) realloc; | |
4e8d927d DJ |
14439 | #endif |
14440 | ||
14441 | ; | |
14442 | return 0; | |
14443 | } | |
14444 | _ACEOF | |
14445 | rm -f conftest.$ac_objext | |
14446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14447 | (eval $ac_compile) 2>conftest.er1 | |
14448 | ac_status=$? | |
14449 | grep -v '^ *+' conftest.er1 >conftest.err | |
14450 | rm -f conftest.er1 | |
14451 | cat conftest.err >&5 | |
14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14453 | (exit $ac_status); } && | |
b4e70030 JB |
14454 | { ac_try='test -z "$ac_c_werror_flag" |
14455 | || test ! -s conftest.err' | |
4e8d927d DJ |
14456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14457 | (eval $ac_try) 2>&5 | |
14458 | ac_status=$? | |
14459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14460 | (exit $ac_status); }; } && | |
14461 | { ac_try='test -s conftest.$ac_objext' | |
14462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14463 | (eval $ac_try) 2>&5 | |
14464 | ac_status=$? | |
14465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14466 | (exit $ac_status); }; }; then | |
14467 | ac_cv_have_decl_realloc=yes | |
14468 | else | |
14469 | echo "$as_me: failed program was:" >&5 | |
14470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14471 | ||
b4e70030 | 14472 | ac_cv_have_decl_realloc=no |
4e8d927d | 14473 | fi |
4e8d927d DJ |
14474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14475 | fi | |
b4e70030 JB |
14476 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
14477 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
4e8d927d DJ |
14478 | if test $ac_cv_have_decl_realloc = yes; then |
14479 | ||
14480 | cat >>confdefs.h <<_ACEOF | |
14481 | #define HAVE_DECL_REALLOC 1 | |
14482 | _ACEOF | |
14483 | ||
14484 | ||
14485 | else | |
14486 | cat >>confdefs.h <<_ACEOF | |
14487 | #define HAVE_DECL_REALLOC 0 | |
14488 | _ACEOF | |
14489 | ||
14490 | ||
14491 | fi | |
14492 | ||
14493 | ||
b4e70030 JB |
14494 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
14495 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14496 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
14497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14498 | else | |
14499 | cat >conftest.$ac_ext <<_ACEOF | |
14500 | /* confdefs.h. */ | |
14501 | _ACEOF | |
14502 | cat confdefs.h >>conftest.$ac_ext | |
14503 | cat >>conftest.$ac_ext <<_ACEOF | |
14504 | /* end confdefs.h. */ | |
14505 | $ac_includes_default | |
14506 | int | |
14507 | main () | |
14508 | { | |
14509 | #ifndef strerror | |
14510 | char *p = (char *) strerror; | |
4e8d927d DJ |
14511 | #endif |
14512 | ||
14513 | ; | |
14514 | return 0; | |
14515 | } | |
14516 | _ACEOF | |
14517 | rm -f conftest.$ac_objext | |
14518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14519 | (eval $ac_compile) 2>conftest.er1 | |
14520 | ac_status=$? | |
14521 | grep -v '^ *+' conftest.er1 >conftest.err | |
14522 | rm -f conftest.er1 | |
14523 | cat conftest.err >&5 | |
14524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14525 | (exit $ac_status); } && | |
b4e70030 JB |
14526 | { ac_try='test -z "$ac_c_werror_flag" |
14527 | || test ! -s conftest.err' | |
4e8d927d DJ |
14528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14529 | (eval $ac_try) 2>&5 | |
14530 | ac_status=$? | |
14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14532 | (exit $ac_status); }; } && | |
14533 | { ac_try='test -s conftest.$ac_objext' | |
14534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14535 | (eval $ac_try) 2>&5 | |
14536 | ac_status=$? | |
14537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14538 | (exit $ac_status); }; }; then | |
14539 | ac_cv_have_decl_strerror=yes | |
14540 | else | |
14541 | echo "$as_me: failed program was:" >&5 | |
14542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14543 | ||
b4e70030 | 14544 | ac_cv_have_decl_strerror=no |
4e8d927d | 14545 | fi |
4e8d927d DJ |
14546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14547 | fi | |
b4e70030 JB |
14548 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
14549 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
4e8d927d DJ |
14550 | if test $ac_cv_have_decl_strerror = yes; then |
14551 | ||
14552 | cat >>confdefs.h <<_ACEOF | |
14553 | #define HAVE_DECL_STRERROR 1 | |
14554 | _ACEOF | |
14555 | ||
14556 | ||
14557 | else | |
14558 | cat >>confdefs.h <<_ACEOF | |
14559 | #define HAVE_DECL_STRERROR 0 | |
14560 | _ACEOF | |
14561 | ||
14562 | ||
14563 | fi | |
b4e70030 JB |
14564 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
14565 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14566 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
14567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14568 | else | |
14569 | cat >conftest.$ac_ext <<_ACEOF | |
14570 | /* confdefs.h. */ | |
14571 | _ACEOF | |
14572 | cat confdefs.h >>conftest.$ac_ext | |
14573 | cat >>conftest.$ac_ext <<_ACEOF | |
14574 | /* end confdefs.h. */ | |
14575 | $ac_includes_default | |
14576 | int | |
14577 | main () | |
14578 | { | |
14579 | #ifndef strstr | |
14580 | char *p = (char *) strstr; | |
4e8d927d DJ |
14581 | #endif |
14582 | ||
14583 | ; | |
14584 | return 0; | |
14585 | } | |
14586 | _ACEOF | |
14587 | rm -f conftest.$ac_objext | |
14588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14589 | (eval $ac_compile) 2>conftest.er1 | |
14590 | ac_status=$? | |
14591 | grep -v '^ *+' conftest.er1 >conftest.err | |
14592 | rm -f conftest.er1 | |
14593 | cat conftest.err >&5 | |
14594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14595 | (exit $ac_status); } && | |
b4e70030 JB |
14596 | { ac_try='test -z "$ac_c_werror_flag" |
14597 | || test ! -s conftest.err' | |
4e8d927d DJ |
14598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14599 | (eval $ac_try) 2>&5 | |
14600 | ac_status=$? | |
14601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14602 | (exit $ac_status); }; } && | |
14603 | { ac_try='test -s conftest.$ac_objext' | |
14604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14605 | (eval $ac_try) 2>&5 | |
14606 | ac_status=$? | |
14607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14608 | (exit $ac_status); }; }; then | |
14609 | ac_cv_have_decl_strstr=yes | |
14610 | else | |
14611 | echo "$as_me: failed program was:" >&5 | |
14612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14613 | ||
b4e70030 | 14614 | ac_cv_have_decl_strstr=no |
4e8d927d | 14615 | fi |
4e8d927d DJ |
14616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14617 | fi | |
b4e70030 JB |
14618 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
14619 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
4e8d927d DJ |
14620 | if test $ac_cv_have_decl_strstr = yes; then |
14621 | ||
14622 | cat >>confdefs.h <<_ACEOF | |
14623 | #define HAVE_DECL_STRSTR 1 | |
14624 | _ACEOF | |
14625 | ||
14626 | ||
14627 | else | |
14628 | cat >>confdefs.h <<_ACEOF | |
14629 | #define HAVE_DECL_STRSTR 0 | |
14630 | _ACEOF | |
14631 | ||
14632 | ||
14633 | fi | |
14634 | ||
14635 | ||
b4e70030 JB |
14636 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
14637 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14638 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
14639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14640 | else | |
14641 | cat >conftest.$ac_ext <<_ACEOF | |
14642 | /* confdefs.h. */ | |
14643 | _ACEOF | |
14644 | cat confdefs.h >>conftest.$ac_ext | |
14645 | cat >>conftest.$ac_ext <<_ACEOF | |
14646 | /* end confdefs.h. */ | |
14647 | $ac_includes_default | |
14648 | int | |
14649 | main () | |
14650 | { | |
14651 | #ifndef getopt | |
14652 | char *p = (char *) getopt; | |
4e8d927d DJ |
14653 | #endif |
14654 | ||
14655 | ; | |
14656 | return 0; | |
14657 | } | |
14658 | _ACEOF | |
14659 | rm -f conftest.$ac_objext | |
14660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14661 | (eval $ac_compile) 2>conftest.er1 | |
14662 | ac_status=$? | |
14663 | grep -v '^ *+' conftest.er1 >conftest.err | |
14664 | rm -f conftest.er1 | |
14665 | cat conftest.err >&5 | |
14666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14667 | (exit $ac_status); } && | |
b4e70030 JB |
14668 | { ac_try='test -z "$ac_c_werror_flag" |
14669 | || test ! -s conftest.err' | |
4e8d927d DJ |
14670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14671 | (eval $ac_try) 2>&5 | |
14672 | ac_status=$? | |
14673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14674 | (exit $ac_status); }; } && | |
14675 | { ac_try='test -s conftest.$ac_objext' | |
14676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14677 | (eval $ac_try) 2>&5 | |
14678 | ac_status=$? | |
14679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14680 | (exit $ac_status); }; }; then | |
14681 | ac_cv_have_decl_getopt=yes | |
14682 | else | |
14683 | echo "$as_me: failed program was:" >&5 | |
14684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14685 | ||
b4e70030 | 14686 | ac_cv_have_decl_getopt=no |
4e8d927d | 14687 | fi |
4e8d927d DJ |
14688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14689 | fi | |
b4e70030 JB |
14690 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
14691 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
4e8d927d DJ |
14692 | if test $ac_cv_have_decl_getopt = yes; then |
14693 | ||
14694 | cat >>confdefs.h <<_ACEOF | |
14695 | #define HAVE_DECL_GETOPT 1 | |
14696 | _ACEOF | |
14697 | ||
14698 | ||
14699 | else | |
14700 | cat >>confdefs.h <<_ACEOF | |
14701 | #define HAVE_DECL_GETOPT 0 | |
14702 | _ACEOF | |
14703 | ||
14704 | ||
14705 | fi | |
b4e70030 JB |
14706 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
14707 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14708 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
14709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14710 | else | |
14711 | cat >conftest.$ac_ext <<_ACEOF | |
14712 | /* confdefs.h. */ | |
14713 | _ACEOF | |
14714 | cat confdefs.h >>conftest.$ac_ext | |
14715 | cat >>conftest.$ac_ext <<_ACEOF | |
14716 | /* end confdefs.h. */ | |
14717 | $ac_includes_default | |
14718 | int | |
14719 | main () | |
14720 | { | |
14721 | #ifndef snprintf | |
14722 | char *p = (char *) snprintf; | |
4e8d927d DJ |
14723 | #endif |
14724 | ||
14725 | ; | |
14726 | return 0; | |
14727 | } | |
14728 | _ACEOF | |
14729 | rm -f conftest.$ac_objext | |
14730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14731 | (eval $ac_compile) 2>conftest.er1 | |
14732 | ac_status=$? | |
14733 | grep -v '^ *+' conftest.er1 >conftest.err | |
14734 | rm -f conftest.er1 | |
14735 | cat conftest.err >&5 | |
14736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14737 | (exit $ac_status); } && | |
b4e70030 JB |
14738 | { ac_try='test -z "$ac_c_werror_flag" |
14739 | || test ! -s conftest.err' | |
4e8d927d DJ |
14740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14741 | (eval $ac_try) 2>&5 | |
14742 | ac_status=$? | |
14743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14744 | (exit $ac_status); }; } && | |
14745 | { ac_try='test -s conftest.$ac_objext' | |
14746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14747 | (eval $ac_try) 2>&5 | |
14748 | ac_status=$? | |
14749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14750 | (exit $ac_status); }; }; then | |
14751 | ac_cv_have_decl_snprintf=yes | |
14752 | else | |
14753 | echo "$as_me: failed program was:" >&5 | |
14754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14755 | ||
b4e70030 | 14756 | ac_cv_have_decl_snprintf=no |
4e8d927d | 14757 | fi |
4e8d927d DJ |
14758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14759 | fi | |
b4e70030 JB |
14760 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
14761 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
4e8d927d DJ |
14762 | if test $ac_cv_have_decl_snprintf = yes; then |
14763 | ||
14764 | cat >>confdefs.h <<_ACEOF | |
14765 | #define HAVE_DECL_SNPRINTF 1 | |
14766 | _ACEOF | |
14767 | ||
14768 | ||
14769 | else | |
14770 | cat >>confdefs.h <<_ACEOF | |
14771 | #define HAVE_DECL_SNPRINTF 0 | |
14772 | _ACEOF | |
14773 | ||
14774 | ||
14775 | fi | |
b4e70030 JB |
14776 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
14777 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14778 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
14779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14780 | else | |
14781 | cat >conftest.$ac_ext <<_ACEOF | |
14782 | /* confdefs.h. */ | |
14783 | _ACEOF | |
14784 | cat confdefs.h >>conftest.$ac_ext | |
14785 | cat >>conftest.$ac_ext <<_ACEOF | |
14786 | /* end confdefs.h. */ | |
14787 | $ac_includes_default | |
14788 | int | |
14789 | main () | |
14790 | { | |
14791 | #ifndef vsnprintf | |
14792 | char *p = (char *) vsnprintf; | |
4e8d927d DJ |
14793 | #endif |
14794 | ||
14795 | ; | |
14796 | return 0; | |
14797 | } | |
14798 | _ACEOF | |
14799 | rm -f conftest.$ac_objext | |
14800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14801 | (eval $ac_compile) 2>conftest.er1 | |
14802 | ac_status=$? | |
14803 | grep -v '^ *+' conftest.er1 >conftest.err | |
14804 | rm -f conftest.er1 | |
14805 | cat conftest.err >&5 | |
14806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14807 | (exit $ac_status); } && | |
b4e70030 JB |
14808 | { ac_try='test -z "$ac_c_werror_flag" |
14809 | || test ! -s conftest.err' | |
4e8d927d DJ |
14810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14811 | (eval $ac_try) 2>&5 | |
14812 | ac_status=$? | |
14813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14814 | (exit $ac_status); }; } && | |
14815 | { ac_try='test -s conftest.$ac_objext' | |
14816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14817 | (eval $ac_try) 2>&5 | |
14818 | ac_status=$? | |
14819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14820 | (exit $ac_status); }; }; then | |
14821 | ac_cv_have_decl_vsnprintf=yes | |
14822 | else | |
14823 | echo "$as_me: failed program was:" >&5 | |
14824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14825 | ||
b4e70030 | 14826 | ac_cv_have_decl_vsnprintf=no |
4e8d927d | 14827 | fi |
4e8d927d DJ |
14828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14829 | fi | |
b4e70030 JB |
14830 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
14831 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
4e8d927d DJ |
14832 | if test $ac_cv_have_decl_vsnprintf = yes; then |
14833 | ||
14834 | cat >>confdefs.h <<_ACEOF | |
14835 | #define HAVE_DECL_VSNPRINTF 1 | |
14836 | _ACEOF | |
14837 | ||
14838 | ||
14839 | else | |
14840 | cat >>confdefs.h <<_ACEOF | |
14841 | #define HAVE_DECL_VSNPRINTF 0 | |
14842 | _ACEOF | |
14843 | ||
14844 | ||
14845 | fi | |
14846 | ||
14847 | ||
14848 | ||
14849 | # ----------------------- # | |
14850 | # Checks for structures. # | |
14851 | # ----------------------- # | |
14852 | ||
b4e70030 JB |
14853 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
14854 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
4e8d927d DJ |
14855 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
14856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14857 | else | |
14858 | cat >conftest.$ac_ext <<_ACEOF | |
14859 | /* confdefs.h. */ | |
14860 | _ACEOF | |
14861 | cat confdefs.h >>conftest.$ac_ext | |
14862 | cat >>conftest.$ac_ext <<_ACEOF | |
14863 | /* end confdefs.h. */ | |
14864 | $ac_includes_default | |
14865 | int | |
14866 | main () | |
14867 | { | |
14868 | static struct stat ac_aggr; | |
14869 | if (ac_aggr.st_blocks) | |
14870 | return 0; | |
14871 | ; | |
14872 | return 0; | |
14873 | } | |
14874 | _ACEOF | |
14875 | rm -f conftest.$ac_objext | |
14876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14877 | (eval $ac_compile) 2>conftest.er1 | |
14878 | ac_status=$? | |
14879 | grep -v '^ *+' conftest.er1 >conftest.err | |
14880 | rm -f conftest.er1 | |
14881 | cat conftest.err >&5 | |
14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14883 | (exit $ac_status); } && | |
b4e70030 JB |
14884 | { ac_try='test -z "$ac_c_werror_flag" |
14885 | || test ! -s conftest.err' | |
4e8d927d DJ |
14886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14887 | (eval $ac_try) 2>&5 | |
14888 | ac_status=$? | |
14889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14890 | (exit $ac_status); }; } && | |
14891 | { ac_try='test -s conftest.$ac_objext' | |
14892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14893 | (eval $ac_try) 2>&5 | |
14894 | ac_status=$? | |
14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14896 | (exit $ac_status); }; }; then | |
14897 | ac_cv_member_struct_stat_st_blocks=yes | |
14898 | else | |
14899 | echo "$as_me: failed program was:" >&5 | |
14900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14901 | ||
b4e70030 | 14902 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14903 | /* confdefs.h. */ |
14904 | _ACEOF | |
14905 | cat confdefs.h >>conftest.$ac_ext | |
14906 | cat >>conftest.$ac_ext <<_ACEOF | |
14907 | /* end confdefs.h. */ | |
14908 | $ac_includes_default | |
14909 | int | |
14910 | main () | |
14911 | { | |
14912 | static struct stat ac_aggr; | |
14913 | if (sizeof ac_aggr.st_blocks) | |
14914 | return 0; | |
14915 | ; | |
14916 | return 0; | |
14917 | } | |
14918 | _ACEOF | |
14919 | rm -f conftest.$ac_objext | |
14920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14921 | (eval $ac_compile) 2>conftest.er1 | |
14922 | ac_status=$? | |
14923 | grep -v '^ *+' conftest.er1 >conftest.err | |
14924 | rm -f conftest.er1 | |
14925 | cat conftest.err >&5 | |
14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14927 | (exit $ac_status); } && | |
b4e70030 JB |
14928 | { ac_try='test -z "$ac_c_werror_flag" |
14929 | || test ! -s conftest.err' | |
4e8d927d DJ |
14930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14931 | (eval $ac_try) 2>&5 | |
14932 | ac_status=$? | |
14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14934 | (exit $ac_status); }; } && | |
14935 | { ac_try='test -s conftest.$ac_objext' | |
14936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14937 | (eval $ac_try) 2>&5 | |
14938 | ac_status=$? | |
14939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14940 | (exit $ac_status); }; }; then | |
14941 | ac_cv_member_struct_stat_st_blocks=yes | |
14942 | else | |
14943 | echo "$as_me: failed program was:" >&5 | |
14944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14945 | ||
b4e70030 | 14946 | ac_cv_member_struct_stat_st_blocks=no |
4e8d927d | 14947 | fi |
4e8d927d DJ |
14948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14949 | fi | |
4e8d927d DJ |
14950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14951 | fi | |
b4e70030 JB |
14952 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
14953 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
4e8d927d DJ |
14954 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
14955 | ||
14956 | cat >>confdefs.h <<_ACEOF | |
14957 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
14958 | _ACEOF | |
14959 | ||
14960 | ||
14961 | fi | |
14962 | ||
b4e70030 JB |
14963 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
14964 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
4e8d927d DJ |
14965 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
14966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14967 | else | |
14968 | cat >conftest.$ac_ext <<_ACEOF | |
14969 | /* confdefs.h. */ | |
14970 | _ACEOF | |
14971 | cat confdefs.h >>conftest.$ac_ext | |
14972 | cat >>conftest.$ac_ext <<_ACEOF | |
14973 | /* end confdefs.h. */ | |
14974 | $ac_includes_default | |
14975 | int | |
14976 | main () | |
14977 | { | |
14978 | static struct stat ac_aggr; | |
14979 | if (ac_aggr.st_blksize) | |
14980 | return 0; | |
14981 | ; | |
14982 | return 0; | |
14983 | } | |
14984 | _ACEOF | |
14985 | rm -f conftest.$ac_objext | |
14986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14987 | (eval $ac_compile) 2>conftest.er1 | |
14988 | ac_status=$? | |
14989 | grep -v '^ *+' conftest.er1 >conftest.err | |
14990 | rm -f conftest.er1 | |
14991 | cat conftest.err >&5 | |
14992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14993 | (exit $ac_status); } && | |
b4e70030 JB |
14994 | { ac_try='test -z "$ac_c_werror_flag" |
14995 | || test ! -s conftest.err' | |
4e8d927d DJ |
14996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14997 | (eval $ac_try) 2>&5 | |
14998 | ac_status=$? | |
14999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15000 | (exit $ac_status); }; } && | |
15001 | { ac_try='test -s conftest.$ac_objext' | |
15002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15003 | (eval $ac_try) 2>&5 | |
15004 | ac_status=$? | |
15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15006 | (exit $ac_status); }; }; then | |
15007 | ac_cv_member_struct_stat_st_blksize=yes | |
15008 | else | |
15009 | echo "$as_me: failed program was:" >&5 | |
15010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15011 | ||
b4e70030 | 15012 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
15013 | /* confdefs.h. */ |
15014 | _ACEOF | |
15015 | cat confdefs.h >>conftest.$ac_ext | |
15016 | cat >>conftest.$ac_ext <<_ACEOF | |
15017 | /* end confdefs.h. */ | |
15018 | $ac_includes_default | |
15019 | int | |
15020 | main () | |
15021 | { | |
15022 | static struct stat ac_aggr; | |
15023 | if (sizeof ac_aggr.st_blksize) | |
15024 | return 0; | |
15025 | ; | |
15026 | return 0; | |
15027 | } | |
15028 | _ACEOF | |
15029 | rm -f conftest.$ac_objext | |
15030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15031 | (eval $ac_compile) 2>conftest.er1 | |
15032 | ac_status=$? | |
15033 | grep -v '^ *+' conftest.er1 >conftest.err | |
15034 | rm -f conftest.er1 | |
15035 | cat conftest.err >&5 | |
15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15037 | (exit $ac_status); } && | |
b4e70030 JB |
15038 | { ac_try='test -z "$ac_c_werror_flag" |
15039 | || test ! -s conftest.err' | |
4e8d927d DJ |
15040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15041 | (eval $ac_try) 2>&5 | |
15042 | ac_status=$? | |
15043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15044 | (exit $ac_status); }; } && | |
15045 | { ac_try='test -s conftest.$ac_objext' | |
15046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15047 | (eval $ac_try) 2>&5 | |
15048 | ac_status=$? | |
15049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15050 | (exit $ac_status); }; }; then | |
15051 | ac_cv_member_struct_stat_st_blksize=yes | |
15052 | else | |
15053 | echo "$as_me: failed program was:" >&5 | |
15054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15055 | ||
b4e70030 | 15056 | ac_cv_member_struct_stat_st_blksize=no |
4e8d927d | 15057 | fi |
4e8d927d DJ |
15058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15059 | fi | |
4e8d927d DJ |
15060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15061 | fi | |
b4e70030 JB |
15062 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
15063 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
4e8d927d DJ |
15064 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
15065 | ||
15066 | cat >>confdefs.h <<_ACEOF | |
15067 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
15068 | _ACEOF | |
15069 | ||
15070 | ||
15071 | fi | |
15072 | ||
15073 | ||
15074 | # ------------------ # | |
15075 | # Checks for types. # | |
15076 | # ------------------ # | |
15077 | ||
b4e70030 JB |
15078 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
15079 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4e8d927d DJ |
15080 | if test "${ac_cv_type_signal+set}" = set; then |
15081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15082 | else | |
15083 | cat >conftest.$ac_ext <<_ACEOF | |
15084 | /* confdefs.h. */ | |
15085 | _ACEOF | |
15086 | cat confdefs.h >>conftest.$ac_ext | |
15087 | cat >>conftest.$ac_ext <<_ACEOF | |
15088 | /* end confdefs.h. */ | |
15089 | #include <sys/types.h> | |
15090 | #include <signal.h> | |
b4e70030 JB |
15091 | #ifdef signal |
15092 | # undef signal | |
15093 | #endif | |
15094 | #ifdef __cplusplus | |
15095 | extern "C" void (*signal (int, void (*)(int)))(int); | |
15096 | #else | |
15097 | void (*signal ()) (); | |
15098 | #endif | |
4e8d927d DJ |
15099 | |
15100 | int | |
15101 | main () | |
15102 | { | |
b4e70030 | 15103 | int i; |
4e8d927d DJ |
15104 | ; |
15105 | return 0; | |
15106 | } | |
15107 | _ACEOF | |
15108 | rm -f conftest.$ac_objext | |
15109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15110 | (eval $ac_compile) 2>conftest.er1 | |
15111 | ac_status=$? | |
15112 | grep -v '^ *+' conftest.er1 >conftest.err | |
15113 | rm -f conftest.er1 | |
15114 | cat conftest.err >&5 | |
15115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15116 | (exit $ac_status); } && | |
b4e70030 JB |
15117 | { ac_try='test -z "$ac_c_werror_flag" |
15118 | || test ! -s conftest.err' | |
4e8d927d DJ |
15119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15120 | (eval $ac_try) 2>&5 | |
15121 | ac_status=$? | |
15122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15123 | (exit $ac_status); }; } && | |
15124 | { ac_try='test -s conftest.$ac_objext' | |
15125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15126 | (eval $ac_try) 2>&5 | |
15127 | ac_status=$? | |
15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15129 | (exit $ac_status); }; }; then | |
b4e70030 | 15130 | ac_cv_type_signal=void |
4e8d927d DJ |
15131 | else |
15132 | echo "$as_me: failed program was:" >&5 | |
15133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15134 | ||
b4e70030 | 15135 | ac_cv_type_signal=int |
4e8d927d | 15136 | fi |
4e8d927d DJ |
15137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15138 | fi | |
b4e70030 JB |
15139 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
15140 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
4e8d927d DJ |
15141 | |
15142 | cat >>confdefs.h <<_ACEOF | |
15143 | #define RETSIGTYPE $ac_cv_type_signal | |
15144 | _ACEOF | |
15145 | ||
15146 | ||
b4e70030 JB |
15147 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
15148 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
4e8d927d DJ |
15149 | if test "${ac_cv_type_socklen_t+set}" = set; then |
15150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15151 | else | |
15152 | cat >conftest.$ac_ext <<_ACEOF | |
15153 | /* confdefs.h. */ | |
15154 | _ACEOF | |
15155 | cat confdefs.h >>conftest.$ac_ext | |
15156 | cat >>conftest.$ac_ext <<_ACEOF | |
15157 | /* end confdefs.h. */ | |
15158 | #include <sys/types.h> | |
15159 | #include <sys/socket.h> | |
15160 | ||
15161 | ||
4e8d927d DJ |
15162 | int |
15163 | main () | |
15164 | { | |
b4e70030 | 15165 | if ((socklen_t *) 0) |
4e8d927d | 15166 | return 0; |
b4e70030 | 15167 | if (sizeof (socklen_t)) |
4e8d927d DJ |
15168 | return 0; |
15169 | ; | |
15170 | return 0; | |
15171 | } | |
15172 | _ACEOF | |
15173 | rm -f conftest.$ac_objext | |
15174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15175 | (eval $ac_compile) 2>conftest.er1 | |
15176 | ac_status=$? | |
15177 | grep -v '^ *+' conftest.er1 >conftest.err | |
15178 | rm -f conftest.er1 | |
15179 | cat conftest.err >&5 | |
15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15181 | (exit $ac_status); } && | |
b4e70030 JB |
15182 | { ac_try='test -z "$ac_c_werror_flag" |
15183 | || test ! -s conftest.err' | |
4e8d927d DJ |
15184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15185 | (eval $ac_try) 2>&5 | |
15186 | ac_status=$? | |
15187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15188 | (exit $ac_status); }; } && | |
15189 | { ac_try='test -s conftest.$ac_objext' | |
15190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15191 | (eval $ac_try) 2>&5 | |
15192 | ac_status=$? | |
15193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15194 | (exit $ac_status); }; }; then | |
15195 | ac_cv_type_socklen_t=yes | |
15196 | else | |
15197 | echo "$as_me: failed program was:" >&5 | |
15198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15199 | ||
b4e70030 | 15200 | ac_cv_type_socklen_t=no |
4e8d927d | 15201 | fi |
4e8d927d DJ |
15202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15203 | fi | |
b4e70030 JB |
15204 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
15205 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
4e8d927d DJ |
15206 | if test $ac_cv_type_socklen_t = yes; then |
15207 | ||
15208 | cat >>confdefs.h <<_ACEOF | |
15209 | #define HAVE_SOCKLEN_T 1 | |
15210 | _ACEOF | |
15211 | ||
15212 | ||
15213 | fi | |
15214 | ||
b4e70030 JB |
15215 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
15216 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
15217 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
15218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15219 | else | |
15220 | cat >conftest.$ac_ext <<_ACEOF | |
15221 | /* confdefs.h. */ | |
15222 | _ACEOF | |
15223 | cat confdefs.h >>conftest.$ac_ext | |
15224 | cat >>conftest.$ac_ext <<_ACEOF | |
15225 | /* end confdefs.h. */ | |
15226 | #include <stdint.h> | |
15227 | ||
4e8d927d DJ |
15228 | int |
15229 | main () | |
15230 | { | |
b4e70030 | 15231 | if ((uintptr_t *) 0) |
4e8d927d | 15232 | return 0; |
b4e70030 | 15233 | if (sizeof (uintptr_t)) |
4e8d927d DJ |
15234 | return 0; |
15235 | ; | |
15236 | return 0; | |
15237 | } | |
15238 | _ACEOF | |
15239 | rm -f conftest.$ac_objext | |
15240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15241 | (eval $ac_compile) 2>conftest.er1 | |
15242 | ac_status=$? | |
15243 | grep -v '^ *+' conftest.er1 >conftest.err | |
15244 | rm -f conftest.er1 | |
15245 | cat conftest.err >&5 | |
15246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15247 | (exit $ac_status); } && | |
b4e70030 JB |
15248 | { ac_try='test -z "$ac_c_werror_flag" |
15249 | || test ! -s conftest.err' | |
4e8d927d DJ |
15250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15251 | (eval $ac_try) 2>&5 | |
15252 | ac_status=$? | |
15253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15254 | (exit $ac_status); }; } && | |
15255 | { ac_try='test -s conftest.$ac_objext' | |
15256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15257 | (eval $ac_try) 2>&5 | |
15258 | ac_status=$? | |
15259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15260 | (exit $ac_status); }; }; then | |
15261 | ac_cv_type_uintptr_t=yes | |
15262 | else | |
15263 | echo "$as_me: failed program was:" >&5 | |
15264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15265 | ||
b4e70030 | 15266 | ac_cv_type_uintptr_t=no |
4e8d927d | 15267 | fi |
4e8d927d DJ |
15268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15269 | fi | |
b4e70030 JB |
15270 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
15271 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
15272 | if test $ac_cv_type_uintptr_t = yes; then |
15273 | ||
15274 | cat >>confdefs.h <<_ACEOF | |
15275 | #define HAVE_UINTPTR_T 1 | |
15276 | _ACEOF | |
15277 | ||
15278 | ||
15279 | fi | |
15280 | ||
15281 | ||
15282 | # ------------------------------------- # | |
15283 | # Checks for compiler characteristics. # | |
15284 | # ------------------------------------- # | |
15285 | ||
b4e70030 JB |
15286 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
15287 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4e8d927d DJ |
15288 | if test "${ac_cv_c_const+set}" = set; then |
15289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15290 | else | |
15291 | cat >conftest.$ac_ext <<_ACEOF | |
15292 | /* confdefs.h. */ | |
15293 | _ACEOF | |
15294 | cat confdefs.h >>conftest.$ac_ext | |
15295 | cat >>conftest.$ac_ext <<_ACEOF | |
15296 | /* end confdefs.h. */ | |
15297 | ||
15298 | int | |
15299 | main () | |
15300 | { | |
15301 | /* FIXME: Include the comments suggested by Paul. */ | |
15302 | #ifndef __cplusplus | |
15303 | /* Ultrix mips cc rejects this. */ | |
15304 | typedef int charset[2]; | |
15305 | const charset x; | |
15306 | /* SunOS 4.1.1 cc rejects this. */ | |
15307 | char const *const *ccp; | |
15308 | char **p; | |
15309 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15310 | struct point {int x, y;}; | |
15311 | static struct point const zero = {0,0}; | |
15312 | /* AIX XL C 1.02.0.0 rejects this. | |
15313 | It does not let you subtract one const X* pointer from another in | |
15314 | an arm of an if-expression whose if-part is not a constant | |
15315 | expression */ | |
15316 | const char *g = "string"; | |
15317 | ccp = &g + (g ? g-g : 0); | |
15318 | /* HPUX 7.0 cc rejects these. */ | |
15319 | ++ccp; | |
15320 | p = (char**) ccp; | |
15321 | ccp = (char const *const *) p; | |
15322 | { /* SCO 3.2v4 cc rejects this. */ | |
15323 | char *t; | |
15324 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15325 | ||
15326 | *t++ = 0; | |
4e8d927d DJ |
15327 | } |
15328 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15329 | int x[] = {25, 17}; | |
15330 | const int *foo = &x[0]; | |
15331 | ++foo; | |
15332 | } | |
15333 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15334 | typedef const int *iptr; | |
15335 | iptr p = 0; | |
15336 | ++p; | |
15337 | } | |
15338 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15339 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15340 | struct s { int j; const int *ap[3]; }; | |
15341 | struct s *b; b->j = 5; | |
15342 | } | |
15343 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15344 | const int foo = 10; | |
4e8d927d | 15345 | } |
4e8d927d DJ |
15346 | #endif |
15347 | ||
15348 | ; | |
15349 | return 0; | |
15350 | } | |
15351 | _ACEOF | |
15352 | rm -f conftest.$ac_objext | |
15353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15354 | (eval $ac_compile) 2>conftest.er1 | |
15355 | ac_status=$? | |
15356 | grep -v '^ *+' conftest.er1 >conftest.err | |
15357 | rm -f conftest.er1 | |
15358 | cat conftest.err >&5 | |
15359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15360 | (exit $ac_status); } && | |
b4e70030 JB |
15361 | { ac_try='test -z "$ac_c_werror_flag" |
15362 | || test ! -s conftest.err' | |
4e8d927d DJ |
15363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15364 | (eval $ac_try) 2>&5 | |
15365 | ac_status=$? | |
15366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15367 | (exit $ac_status); }; } && | |
15368 | { ac_try='test -s conftest.$ac_objext' | |
15369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15370 | (eval $ac_try) 2>&5 | |
15371 | ac_status=$? | |
15372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15373 | (exit $ac_status); }; }; then | |
15374 | ac_cv_c_const=yes | |
15375 | else | |
15376 | echo "$as_me: failed program was:" >&5 | |
15377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15378 | ||
b4e70030 | 15379 | ac_cv_c_const=no |
4e8d927d | 15380 | fi |
4e8d927d DJ |
15381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15382 | fi | |
b4e70030 JB |
15383 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
15384 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4e8d927d DJ |
15385 | if test $ac_cv_c_const = no; then |
15386 | ||
15387 | cat >>confdefs.h <<\_ACEOF | |
15388 | #define const | |
15389 | _ACEOF | |
15390 | ||
15391 | fi | |
15392 | ||
b4e70030 JB |
15393 | echo "$as_me:$LINENO: checking for inline" >&5 |
15394 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4e8d927d DJ |
15395 | if test "${ac_cv_c_inline+set}" = set; then |
15396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15397 | else | |
15398 | ac_cv_c_inline=no | |
15399 | for ac_kw in inline __inline__ __inline; do | |
15400 | cat >conftest.$ac_ext <<_ACEOF | |
15401 | /* confdefs.h. */ | |
15402 | _ACEOF | |
15403 | cat confdefs.h >>conftest.$ac_ext | |
15404 | cat >>conftest.$ac_ext <<_ACEOF | |
15405 | /* end confdefs.h. */ | |
15406 | #ifndef __cplusplus | |
15407 | typedef int foo_t; | |
15408 | static $ac_kw foo_t static_foo () {return 0; } | |
15409 | $ac_kw foo_t foo () {return 0; } | |
15410 | #endif | |
15411 | ||
15412 | _ACEOF | |
15413 | rm -f conftest.$ac_objext | |
15414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15415 | (eval $ac_compile) 2>conftest.er1 | |
15416 | ac_status=$? | |
15417 | grep -v '^ *+' conftest.er1 >conftest.err | |
15418 | rm -f conftest.er1 | |
15419 | cat conftest.err >&5 | |
15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15421 | (exit $ac_status); } && | |
b4e70030 JB |
15422 | { ac_try='test -z "$ac_c_werror_flag" |
15423 | || test ! -s conftest.err' | |
4e8d927d DJ |
15424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15425 | (eval $ac_try) 2>&5 | |
15426 | ac_status=$? | |
15427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15428 | (exit $ac_status); }; } && | |
15429 | { ac_try='test -s conftest.$ac_objext' | |
15430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15431 | (eval $ac_try) 2>&5 | |
15432 | ac_status=$? | |
15433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15434 | (exit $ac_status); }; }; then | |
b4e70030 | 15435 | ac_cv_c_inline=$ac_kw; break |
4e8d927d DJ |
15436 | else |
15437 | echo "$as_me: failed program was:" >&5 | |
15438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15439 | ||
4e8d927d | 15440 | fi |
4e8d927d | 15441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
15442 | done |
15443 | ||
15444 | fi | |
b4e70030 JB |
15445 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
15446 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 15447 | |
bec39cab | 15448 | |
a3828db0 MK |
15449 | case $ac_cv_c_inline in |
15450 | inline | yes) ;; | |
15451 | *) | |
15452 | case $ac_cv_c_inline in | |
15453 | no) ac_val=;; | |
15454 | *) ac_val=$ac_cv_c_inline;; | |
15455 | esac | |
15456 | cat >>confdefs.h <<_ACEOF | |
15457 | #ifndef __cplusplus | |
15458 | #define inline $ac_val | |
15459 | #endif | |
15460 | _ACEOF | |
bec39cab AC |
15461 | ;; |
15462 | esac | |
bec39cab | 15463 | |
74c1b268 | 15464 | |
a3828db0 MK |
15465 | # ------------------------------ # |
15466 | # Checks for library functions. # | |
15467 | # ------------------------------ # | |
bec39cab | 15468 | |
a3828db0 MK |
15469 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
15470 | # for constant arguments. Useless! | |
b4e70030 JB |
15471 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
15472 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
a3828db0 | 15473 | if test "${ac_cv_working_alloca_h+set}" = set; then |
bec39cab AC |
15474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15475 | else | |
15476 | cat >conftest.$ac_ext <<_ACEOF | |
15477 | /* confdefs.h. */ | |
15478 | _ACEOF | |
15479 | cat confdefs.h >>conftest.$ac_ext | |
15480 | cat >>conftest.$ac_ext <<_ACEOF | |
15481 | /* end confdefs.h. */ | |
a3828db0 | 15482 | #include <alloca.h> |
bec39cab AC |
15483 | int |
15484 | main () | |
15485 | { | |
a3828db0 | 15486 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
15487 | ; |
15488 | return 0; | |
15489 | } | |
15490 | _ACEOF | |
15491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15493 | (eval $ac_link) 2>conftest.er1 | |
15494 | ac_status=$? | |
15495 | grep -v '^ *+' conftest.er1 >conftest.err | |
15496 | rm -f conftest.er1 | |
15497 | cat conftest.err >&5 | |
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15499 | (exit $ac_status); } && | |
b4e70030 JB |
15500 | { ac_try='test -z "$ac_c_werror_flag" |
15501 | || test ! -s conftest.err' | |
bec39cab AC |
15502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15503 | (eval $ac_try) 2>&5 | |
15504 | ac_status=$? | |
15505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15506 | (exit $ac_status); }; } && | |
15507 | { ac_try='test -s conftest$ac_exeext' | |
15508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15509 | (eval $ac_try) 2>&5 | |
15510 | ac_status=$? | |
15511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15512 | (exit $ac_status); }; }; then | |
a3828db0 | 15513 | ac_cv_working_alloca_h=yes |
bec39cab AC |
15514 | else |
15515 | echo "$as_me: failed program was:" >&5 | |
15516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15517 | ||
b4e70030 | 15518 | ac_cv_working_alloca_h=no |
bec39cab AC |
15519 | fi |
15520 | rm -f conftest.err conftest.$ac_objext \ | |
15521 | conftest$ac_exeext conftest.$ac_ext | |
15522 | fi | |
b4e70030 JB |
15523 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
15524 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
a3828db0 MK |
15525 | if test $ac_cv_working_alloca_h = yes; then |
15526 | ||
15527 | cat >>confdefs.h <<\_ACEOF | |
15528 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 15529 | _ACEOF |
74c1b268 | 15530 | |
74c1b268 AC |
15531 | fi |
15532 | ||
b4e70030 JB |
15533 | echo "$as_me:$LINENO: checking for alloca" >&5 |
15534 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
a3828db0 | 15535 | if test "${ac_cv_func_alloca_works+set}" = set; then |
bec39cab | 15536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 15537 | else |
bec39cab AC |
15538 | cat >conftest.$ac_ext <<_ACEOF |
15539 | /* confdefs.h. */ | |
15540 | _ACEOF | |
15541 | cat confdefs.h >>conftest.$ac_ext | |
15542 | cat >>conftest.$ac_ext <<_ACEOF | |
15543 | /* end confdefs.h. */ | |
a3828db0 MK |
15544 | #ifdef __GNUC__ |
15545 | # define alloca __builtin_alloca | |
15546 | #else | |
15547 | # ifdef _MSC_VER | |
15548 | # include <malloc.h> | |
15549 | # define alloca _alloca | |
15550 | # else | |
15551 | # if HAVE_ALLOCA_H | |
15552 | # include <alloca.h> | |
15553 | # else | |
15554 | # ifdef _AIX | |
15555 | #pragma alloca | |
15556 | # else | |
15557 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
15558 | char *alloca (); | |
15559 | # endif | |
15560 | # endif | |
15561 | # endif | |
97bf5e38 | 15562 | # endif |
a3828db0 | 15563 | #endif |
97bf5e38 | 15564 | |
bec39cab AC |
15565 | int |
15566 | main () | |
15567 | { | |
a3828db0 | 15568 | char *p = (char *) alloca (1); |
bec39cab AC |
15569 | ; |
15570 | return 0; | |
15571 | } | |
15572 | _ACEOF | |
a3828db0 MK |
15573 | rm -f conftest.$ac_objext conftest$ac_exeext |
15574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15575 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
15576 | ac_status=$? |
15577 | grep -v '^ *+' conftest.er1 >conftest.err | |
15578 | rm -f conftest.er1 | |
15579 | cat conftest.err >&5 | |
15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15581 | (exit $ac_status); } && | |
b4e70030 JB |
15582 | { ac_try='test -z "$ac_c_werror_flag" |
15583 | || test ! -s conftest.err' | |
bec39cab AC |
15584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15585 | (eval $ac_try) 2>&5 | |
15586 | ac_status=$? | |
15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15588 | (exit $ac_status); }; } && | |
a3828db0 | 15589 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15591 | (eval $ac_try) 2>&5 | |
15592 | ac_status=$? | |
15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15594 | (exit $ac_status); }; }; then | |
a3828db0 | 15595 | ac_cv_func_alloca_works=yes |
0200359f | 15596 | else |
bec39cab AC |
15597 | echo "$as_me: failed program was:" >&5 |
15598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 15599 | |
b4e70030 | 15600 | ac_cv_func_alloca_works=no |
0200359f | 15601 | fi |
a3828db0 MK |
15602 | rm -f conftest.err conftest.$ac_objext \ |
15603 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 15604 | fi |
b4e70030 JB |
15605 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
15606 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 15607 | |
a3828db0 MK |
15608 | if test $ac_cv_func_alloca_works = yes; then |
15609 | ||
15610 | cat >>confdefs.h <<\_ACEOF | |
15611 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
15612 | _ACEOF |
15613 | ||
a3828db0 MK |
15614 | else |
15615 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15616 | # that cause trouble. Some versions do not even contain alloca or | |
15617 | # contain a buggy version. If you still want to use their alloca, | |
15618 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 15619 | |
b4e70030 | 15620 | ALLOCA=alloca.$ac_objext |
bec39cab | 15621 | |
a3828db0 MK |
15622 | cat >>confdefs.h <<\_ACEOF |
15623 | #define C_ALLOCA 1 | |
15624 | _ACEOF | |
bec39cab | 15625 | |
a3828db0 | 15626 | |
b4e70030 JB |
15627 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
15628 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
a3828db0 | 15629 | if test "${ac_cv_os_cray+set}" = set; then |
bec39cab | 15630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 15631 | else |
a3828db0 | 15632 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
15633 | /* confdefs.h. */ |
15634 | _ACEOF | |
15635 | cat confdefs.h >>conftest.$ac_ext | |
15636 | cat >>conftest.$ac_ext <<_ACEOF | |
15637 | /* end confdefs.h. */ | |
b4e70030 | 15638 | #if defined(CRAY) && ! defined(CRAY2) |
a3828db0 MK |
15639 | webecray |
15640 | #else | |
15641 | wenotbecray | |
15642 | #endif | |
15643 | ||
15644 | _ACEOF | |
15645 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15646 | $EGREP "webecray" >/dev/null 2>&1; then | |
15647 | ac_cv_os_cray=yes | |
15648 | else | |
15649 | ac_cv_os_cray=no | |
15650 | fi | |
15651 | rm -f conftest* | |
15652 | ||
15653 | fi | |
b4e70030 JB |
15654 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
15655 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
a3828db0 MK |
15656 | if test $ac_cv_os_cray = yes; then |
15657 | for ac_func in _getb67 GETB67 getb67; do | |
15658 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15659 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15660 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15661 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
15662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15663 | else | |
15664 | cat >conftest.$ac_ext <<_ACEOF | |
15665 | /* confdefs.h. */ | |
15666 | _ACEOF | |
15667 | cat confdefs.h >>conftest.$ac_ext | |
15668 | cat >>conftest.$ac_ext <<_ACEOF | |
15669 | /* end confdefs.h. */ | |
15670 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15671 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15672 | #define $ac_func innocuous_$ac_func | |
15673 | ||
15674 | /* System header to define __stub macros and hopefully few prototypes, | |
15675 | which can conflict with char $ac_func (); below. | |
15676 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15677 | <limits.h> exists even on freestanding compilers. */ | |
15678 | ||
15679 | #ifdef __STDC__ | |
15680 | # include <limits.h> | |
15681 | #else | |
15682 | # include <assert.h> | |
15683 | #endif | |
15684 | ||
15685 | #undef $ac_func | |
15686 | ||
b4e70030 | 15687 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
15688 | #ifdef __cplusplus |
15689 | extern "C" | |
b4e70030 | 15690 | { |
a3828db0 | 15691 | #endif |
b4e70030 JB |
15692 | /* We use char because int might match the return type of a gcc2 |
15693 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
15694 | char $ac_func (); |
15695 | /* The GNU C library defines this for functions which it implements | |
15696 | to always fail with ENOSYS. Some functions are actually named | |
15697 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15698 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 15699 | choke me |
b4e70030 JB |
15700 | #else |
15701 | char (*f) () = $ac_func; | |
15702 | #endif | |
15703 | #ifdef __cplusplus | |
15704 | } | |
a3828db0 MK |
15705 | #endif |
15706 | ||
15707 | int | |
15708 | main () | |
15709 | { | |
b4e70030 | 15710 | return f != $ac_func; |
a3828db0 MK |
15711 | ; |
15712 | return 0; | |
15713 | } | |
15714 | _ACEOF | |
15715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15717 | (eval $ac_link) 2>conftest.er1 | |
15718 | ac_status=$? | |
15719 | grep -v '^ *+' conftest.er1 >conftest.err | |
15720 | rm -f conftest.er1 | |
15721 | cat conftest.err >&5 | |
15722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15723 | (exit $ac_status); } && | |
b4e70030 JB |
15724 | { ac_try='test -z "$ac_c_werror_flag" |
15725 | || test ! -s conftest.err' | |
a3828db0 MK |
15726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15727 | (eval $ac_try) 2>&5 | |
15728 | ac_status=$? | |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15730 | (exit $ac_status); }; } && | |
15731 | { ac_try='test -s conftest$ac_exeext' | |
15732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15733 | (eval $ac_try) 2>&5 | |
15734 | ac_status=$? | |
15735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15736 | (exit $ac_status); }; }; then | |
15737 | eval "$as_ac_var=yes" | |
15738 | else | |
15739 | echo "$as_me: failed program was:" >&5 | |
15740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15741 | ||
b4e70030 | 15742 | eval "$as_ac_var=no" |
a3828db0 MK |
15743 | fi |
15744 | rm -f conftest.err conftest.$ac_objext \ | |
15745 | conftest$ac_exeext conftest.$ac_ext | |
15746 | fi | |
b4e70030 JB |
15747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
15748 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
15749 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
15750 | ||
15751 | cat >>confdefs.h <<_ACEOF | |
15752 | #define CRAY_STACKSEG_END $ac_func | |
15753 | _ACEOF | |
15754 | ||
15755 | break | |
15756 | fi | |
15757 | ||
15758 | done | |
15759 | fi | |
15760 | ||
b4e70030 JB |
15761 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
15762 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
a3828db0 MK |
15763 | if test "${ac_cv_c_stack_direction+set}" = set; then |
15764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15765 | else | |
15766 | if test "$cross_compiling" = yes; then | |
15767 | ac_cv_c_stack_direction=0 | |
15768 | else | |
15769 | cat >conftest.$ac_ext <<_ACEOF | |
15770 | /* confdefs.h. */ | |
15771 | _ACEOF | |
15772 | cat confdefs.h >>conftest.$ac_ext | |
15773 | cat >>conftest.$ac_ext <<_ACEOF | |
15774 | /* end confdefs.h. */ | |
15775 | int | |
15776 | find_stack_direction () | |
15777 | { | |
15778 | static char *addr = 0; | |
15779 | auto char dummy; | |
15780 | if (addr == 0) | |
15781 | { | |
15782 | addr = &dummy; | |
15783 | return find_stack_direction (); | |
15784 | } | |
15785 | else | |
15786 | return (&dummy > addr) ? 1 : -1; | |
15787 | } | |
15788 | ||
15789 | int | |
15790 | main () | |
15791 | { | |
b4e70030 | 15792 | exit (find_stack_direction () < 0); |
a3828db0 MK |
15793 | } |
15794 | _ACEOF | |
15795 | rm -f conftest$ac_exeext | |
15796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15797 | (eval $ac_link) 2>&5 | |
15798 | ac_status=$? | |
15799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15800 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15802 | (eval $ac_try) 2>&5 | |
15803 | ac_status=$? | |
15804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15805 | (exit $ac_status); }; }; then | |
15806 | ac_cv_c_stack_direction=1 | |
15807 | else | |
15808 | echo "$as_me: program exited with status $ac_status" >&5 | |
15809 | echo "$as_me: failed program was:" >&5 | |
15810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15811 | ||
15812 | ( exit $ac_status ) | |
15813 | ac_cv_c_stack_direction=-1 | |
15814 | fi | |
b4e70030 | 15815 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
15816 | fi |
15817 | fi | |
b4e70030 JB |
15818 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
15819 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
a3828db0 MK |
15820 | |
15821 | cat >>confdefs.h <<_ACEOF | |
15822 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15823 | _ACEOF | |
15824 | ||
15825 | ||
15826 | fi | |
15827 | ||
15828 | ||
15829 | ||
15830 | for ac_header in stdlib.h unistd.h | |
15831 | do | |
15832 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
15833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15834 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
15837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15838 | fi | |
b4e70030 JB |
15839 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15840 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 MK |
15841 | else |
15842 | # Is the header compilable? | |
b4e70030 JB |
15843 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15844 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 MK |
15845 | cat >conftest.$ac_ext <<_ACEOF |
15846 | /* confdefs.h. */ | |
15847 | _ACEOF | |
15848 | cat confdefs.h >>conftest.$ac_ext | |
15849 | cat >>conftest.$ac_ext <<_ACEOF | |
15850 | /* end confdefs.h. */ | |
15851 | $ac_includes_default | |
15852 | #include <$ac_header> | |
15853 | _ACEOF | |
15854 | rm -f conftest.$ac_objext | |
15855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15856 | (eval $ac_compile) 2>conftest.er1 | |
15857 | ac_status=$? | |
bec39cab AC |
15858 | grep -v '^ *+' conftest.er1 >conftest.err |
15859 | rm -f conftest.er1 | |
15860 | cat conftest.err >&5 | |
15861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15862 | (exit $ac_status); } && | |
b4e70030 JB |
15863 | { ac_try='test -z "$ac_c_werror_flag" |
15864 | || test ! -s conftest.err' | |
bec39cab AC |
15865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15866 | (eval $ac_try) 2>&5 | |
15867 | ac_status=$? | |
15868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15869 | (exit $ac_status); }; } && | |
15870 | { ac_try='test -s conftest.$ac_objext' | |
15871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15872 | (eval $ac_try) 2>&5 | |
15873 | ac_status=$? | |
15874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15875 | (exit $ac_status); }; }; then | |
15876 | ac_header_compiler=yes | |
15877 | else | |
15878 | echo "$as_me: failed program was:" >&5 | |
15879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15880 | ||
b4e70030 | 15881 | ac_header_compiler=no |
bec39cab AC |
15882 | fi |
15883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15884 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15885 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15886 | |
15887 | # Is the header present? | |
b4e70030 JB |
15888 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15889 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15890 | cat >conftest.$ac_ext <<_ACEOF |
15891 | /* confdefs.h. */ | |
15892 | _ACEOF | |
15893 | cat confdefs.h >>conftest.$ac_ext | |
15894 | cat >>conftest.$ac_ext <<_ACEOF | |
15895 | /* end confdefs.h. */ | |
15896 | #include <$ac_header> | |
15897 | _ACEOF | |
15898 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15899 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15900 | ac_status=$? | |
15901 | grep -v '^ *+' conftest.er1 >conftest.err | |
15902 | rm -f conftest.er1 | |
15903 | cat conftest.err >&5 | |
15904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15905 | (exit $ac_status); } >/dev/null; then | |
15906 | if test -s conftest.err; then | |
15907 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15908 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15909 | else | |
15910 | ac_cpp_err= | |
15911 | fi | |
15912 | else | |
15913 | ac_cpp_err=yes | |
15914 | fi | |
15915 | if test -z "$ac_cpp_err"; then | |
15916 | ac_header_preproc=yes | |
97bf5e38 | 15917 | else |
bec39cab AC |
15918 | echo "$as_me: failed program was:" >&5 |
15919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15920 | ||
15921 | ac_header_preproc=no | |
72473524 | 15922 | fi |
bec39cab | 15923 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15924 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15925 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 15926 | |
bec39cab AC |
15927 | # So? What about this header? |
15928 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15929 | yes:no: ) | |
15930 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15931 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15932 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15933 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15934 | ac_header_preproc=yes | |
15935 | ;; | |
15936 | no:yes:* ) | |
15937 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15938 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15939 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15940 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15941 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15942 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15943 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15944 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15946 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15947 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15948 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15949 | ( |
15950 | cat <<\_ASBOX | |
15951 | ## ------------------------------------------ ## | |
15952 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15953 | ## ------------------------------------------ ## | |
15954 | _ASBOX | |
15955 | ) | | |
15956 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15957 | ;; |
15958 | esac | |
b4e70030 JB |
15959 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 15963 | else |
bec39cab AC |
15964 | eval "$as_ac_Header=\$ac_header_preproc" |
15965 | fi | |
b4e70030 JB |
15966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15967 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15968 | |
15969 | fi | |
15970 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15971 | cat >>confdefs.h <<_ACEOF | |
15972 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15973 | _ACEOF | |
15974 | ||
15975 | fi | |
15976 | ||
15977 | done | |
15978 | ||
15979 | ||
a3828db0 | 15980 | for ac_func in getpagesize |
bec39cab AC |
15981 | do |
15982 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15983 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15984 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15985 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
15986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15987 | else | |
15988 | cat >conftest.$ac_ext <<_ACEOF | |
15989 | /* confdefs.h. */ | |
15990 | _ACEOF | |
15991 | cat confdefs.h >>conftest.$ac_ext | |
15992 | cat >>conftest.$ac_ext <<_ACEOF | |
15993 | /* end confdefs.h. */ | |
15994 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15995 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15996 | #define $ac_func innocuous_$ac_func | |
15997 | ||
97bf5e38 | 15998 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15999 | which can conflict with char $ac_func (); below. |
16000 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16001 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 16002 | |
bec39cab AC |
16003 | #ifdef __STDC__ |
16004 | # include <limits.h> | |
16005 | #else | |
16006 | # include <assert.h> | |
16007 | #endif | |
97bf5e38 | 16008 | |
bec39cab AC |
16009 | #undef $ac_func |
16010 | ||
b4e70030 | 16011 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16012 | #ifdef __cplusplus |
16013 | extern "C" | |
b4e70030 | 16014 | { |
bec39cab | 16015 | #endif |
b4e70030 JB |
16016 | /* We use char because int might match the return type of a gcc2 |
16017 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16018 | char $ac_func (); |
97bf5e38 MK |
16019 | /* The GNU C library defines this for functions which it implements |
16020 | to always fail with ENOSYS. Some functions are actually named | |
16021 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16022 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 16023 | choke me |
b4e70030 JB |
16024 | #else |
16025 | char (*f) () = $ac_func; | |
16026 | #endif | |
16027 | #ifdef __cplusplus | |
16028 | } | |
97bf5e38 MK |
16029 | #endif |
16030 | ||
bec39cab AC |
16031 | int |
16032 | main () | |
16033 | { | |
b4e70030 | 16034 | return f != $ac_func; |
bec39cab AC |
16035 | ; |
16036 | return 0; | |
16037 | } | |
16038 | _ACEOF | |
16039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16041 | (eval $ac_link) 2>conftest.er1 | |
16042 | ac_status=$? | |
16043 | grep -v '^ *+' conftest.er1 >conftest.err | |
16044 | rm -f conftest.er1 | |
16045 | cat conftest.err >&5 | |
16046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16047 | (exit $ac_status); } && | |
b4e70030 JB |
16048 | { ac_try='test -z "$ac_c_werror_flag" |
16049 | || test ! -s conftest.err' | |
bec39cab AC |
16050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16051 | (eval $ac_try) 2>&5 | |
16052 | ac_status=$? | |
16053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16054 | (exit $ac_status); }; } && | |
16055 | { ac_try='test -s conftest$ac_exeext' | |
16056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16057 | (eval $ac_try) 2>&5 | |
16058 | ac_status=$? | |
16059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16060 | (exit $ac_status); }; }; then | |
16061 | eval "$as_ac_var=yes" | |
16062 | else | |
16063 | echo "$as_me: failed program was:" >&5 | |
16064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16065 | ||
b4e70030 | 16066 | eval "$as_ac_var=no" |
bec39cab AC |
16067 | fi |
16068 | rm -f conftest.err conftest.$ac_objext \ | |
16069 | conftest$ac_exeext conftest.$ac_ext | |
16070 | fi | |
b4e70030 JB |
16071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16072 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16073 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16074 | cat >>confdefs.h <<_ACEOF | |
16075 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16076 | _ACEOF | |
16077 | ||
2b2d558c | 16078 | fi |
bec39cab | 16079 | done |
2b2d558c | 16080 | |
b4e70030 JB |
16081 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
16082 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
a3828db0 | 16083 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
bec39cab | 16084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 16085 | else |
bec39cab | 16086 | if test "$cross_compiling" = yes; then |
a3828db0 | 16087 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
16088 | else |
16089 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 16090 | /* confdefs.h. */ |
bec39cab AC |
16091 | _ACEOF |
16092 | cat confdefs.h >>conftest.$ac_ext | |
16093 | cat >>conftest.$ac_ext <<_ACEOF | |
16094 | /* end confdefs.h. */ | |
a3828db0 MK |
16095 | $ac_includes_default |
16096 | /* malloc might have been renamed as rpl_malloc. */ | |
16097 | #undef malloc | |
bec39cab | 16098 | |
a3828db0 MK |
16099 | /* Thanks to Mike Haertel and Jim Avera for this test. |
16100 | Here is a matrix of mmap possibilities: | |
16101 | mmap private not fixed | |
16102 | mmap private fixed at somewhere currently unmapped | |
16103 | mmap private fixed at somewhere already mapped | |
16104 | mmap shared not fixed | |
16105 | mmap shared fixed at somewhere currently unmapped | |
16106 | mmap shared fixed at somewhere already mapped | |
16107 | For private mappings, we should verify that changes cannot be read() | |
16108 | back from the file, nor mmap's back from the file at a different | |
16109 | address. (There have been systems where private was not correctly | |
16110 | implemented like the infamous i386 svr4.0, and systems where the | |
16111 | VM page cache was not coherent with the file system buffer cache | |
16112 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16113 | For shared mappings, we should conversely verify that changes get | |
16114 | propagated back to all the places they're supposed to be. | |
7dfa765c | 16115 | |
a3828db0 MK |
16116 | Grep wants private fixed already mapped. |
16117 | The main things grep needs to know about mmap are: | |
16118 | * does it exist and is it safe to write into the mmap'd area | |
16119 | * how to use it (BSD variants) */ | |
7dfa765c | 16120 | |
a3828db0 MK |
16121 | #include <fcntl.h> |
16122 | #include <sys/mman.h> | |
7dfa765c | 16123 | |
a3828db0 MK |
16124 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
16125 | char *malloc (); | |
16126 | #endif | |
7dfa765c | 16127 | |
a3828db0 MK |
16128 | /* This mess was copied from the GNU getpagesize.h. */ |
16129 | #if !HAVE_GETPAGESIZE | |
16130 | /* Assume that all systems that can run configure have sys/param.h. */ | |
16131 | # if !HAVE_SYS_PARAM_H | |
16132 | # define HAVE_SYS_PARAM_H 1 | |
16133 | # endif | |
64bb1671 | 16134 | |
a3828db0 MK |
16135 | # ifdef _SC_PAGESIZE |
16136 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16137 | # else /* no _SC_PAGESIZE */ | |
16138 | # if HAVE_SYS_PARAM_H | |
16139 | # include <sys/param.h> | |
16140 | # ifdef EXEC_PAGESIZE | |
16141 | # define getpagesize() EXEC_PAGESIZE | |
16142 | # else /* no EXEC_PAGESIZE */ | |
16143 | # ifdef NBPG | |
16144 | # define getpagesize() NBPG * CLSIZE | |
16145 | # ifndef CLSIZE | |
16146 | # define CLSIZE 1 | |
16147 | # endif /* no CLSIZE */ | |
16148 | # else /* no NBPG */ | |
16149 | # ifdef NBPC | |
16150 | # define getpagesize() NBPC | |
16151 | # else /* no NBPC */ | |
16152 | # ifdef PAGESIZE | |
16153 | # define getpagesize() PAGESIZE | |
16154 | # endif /* PAGESIZE */ | |
16155 | # endif /* no NBPC */ | |
16156 | # endif /* no NBPG */ | |
16157 | # endif /* no EXEC_PAGESIZE */ | |
16158 | # else /* no HAVE_SYS_PARAM_H */ | |
16159 | # define getpagesize() 8192 /* punt totally */ | |
16160 | # endif /* no HAVE_SYS_PARAM_H */ | |
16161 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 16162 | |
a3828db0 | 16163 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 16164 | |
a3828db0 MK |
16165 | int |
16166 | main () | |
16167 | { | |
16168 | char *data, *data2, *data3; | |
16169 | int i, pagesize; | |
16170 | int fd; | |
97bf5e38 | 16171 | |
a3828db0 MK |
16172 | pagesize = getpagesize (); |
16173 | ||
16174 | /* First, make a file with some known garbage in it. */ | |
16175 | data = (char *) malloc (pagesize); | |
16176 | if (!data) | |
b4e70030 | 16177 | exit (1); |
a3828db0 MK |
16178 | for (i = 0; i < pagesize; ++i) |
16179 | *(data + i) = rand (); | |
16180 | umask (0); | |
16181 | fd = creat ("conftest.mmap", 0600); | |
16182 | if (fd < 0) | |
b4e70030 | 16183 | exit (1); |
a3828db0 | 16184 | if (write (fd, data, pagesize) != pagesize) |
b4e70030 | 16185 | exit (1); |
a3828db0 MK |
16186 | close (fd); |
16187 | ||
16188 | /* Next, try to mmap the file at a fixed address which already has | |
16189 | something else allocated at it. If we can, also make sure that | |
16190 | we see the same garbage. */ | |
16191 | fd = open ("conftest.mmap", O_RDWR); | |
16192 | if (fd < 0) | |
b4e70030 | 16193 | exit (1); |
a3828db0 MK |
16194 | data2 = (char *) malloc (2 * pagesize); |
16195 | if (!data2) | |
b4e70030 JB |
16196 | exit (1); |
16197 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
a3828db0 MK |
16198 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
16199 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
b4e70030 | 16200 | exit (1); |
a3828db0 MK |
16201 | for (i = 0; i < pagesize; ++i) |
16202 | if (*(data + i) != *(data2 + i)) | |
b4e70030 | 16203 | exit (1); |
a3828db0 MK |
16204 | |
16205 | /* Finally, make sure that changes to the mapped area do not | |
16206 | percolate back to the file as seen by read(). (This is a bug on | |
16207 | some variants of i386 svr4.0.) */ | |
16208 | for (i = 0; i < pagesize; ++i) | |
16209 | *(data2 + i) = *(data2 + i) + 1; | |
16210 | data3 = (char *) malloc (pagesize); | |
16211 | if (!data3) | |
b4e70030 | 16212 | exit (1); |
a3828db0 | 16213 | if (read (fd, data3, pagesize) != pagesize) |
b4e70030 | 16214 | exit (1); |
a3828db0 MK |
16215 | for (i = 0; i < pagesize; ++i) |
16216 | if (*(data + i) != *(data3 + i)) | |
b4e70030 | 16217 | exit (1); |
a3828db0 | 16218 | close (fd); |
b4e70030 | 16219 | exit (0); |
97bf5e38 | 16220 | } |
bec39cab AC |
16221 | _ACEOF |
16222 | rm -f conftest$ac_exeext | |
16223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16224 | (eval $ac_link) 2>&5 | |
16225 | ac_status=$? | |
16226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16227 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16229 | (eval $ac_try) 2>&5 | |
16230 | ac_status=$? | |
16231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16232 | (exit $ac_status); }; }; then | |
a3828db0 | 16233 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 16234 | else |
bec39cab AC |
16235 | echo "$as_me: program exited with status $ac_status" >&5 |
16236 | echo "$as_me: failed program was:" >&5 | |
16237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16238 | ||
16239 | ( exit $ac_status ) | |
a3828db0 | 16240 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 16241 | fi |
b4e70030 | 16242 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 16243 | fi |
a3828db0 | 16244 | fi |
b4e70030 JB |
16245 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
16246 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
a3828db0 | 16247 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
16248 | |
16249 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 16250 | #define HAVE_MMAP 1 |
bec39cab | 16251 | _ACEOF |
0afdd437 MK |
16252 | |
16253 | fi | |
a3828db0 | 16254 | rm -f conftest.mmap |
0afdd437 | 16255 | |
b4e70030 JB |
16256 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
16257 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
a3828db0 | 16258 | if test "${ac_cv_type_pid_t+set}" = set; then |
bec39cab AC |
16259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16260 | else | |
16261 | cat >conftest.$ac_ext <<_ACEOF | |
16262 | /* confdefs.h. */ | |
16263 | _ACEOF | |
16264 | cat confdefs.h >>conftest.$ac_ext | |
16265 | cat >>conftest.$ac_ext <<_ACEOF | |
16266 | /* end confdefs.h. */ | |
a3828db0 | 16267 | $ac_includes_default |
bec39cab AC |
16268 | int |
16269 | main () | |
16270 | { | |
b4e70030 | 16271 | if ((pid_t *) 0) |
a3828db0 | 16272 | return 0; |
b4e70030 | 16273 | if (sizeof (pid_t)) |
a3828db0 | 16274 | return 0; |
bec39cab AC |
16275 | ; |
16276 | return 0; | |
16277 | } | |
16278 | _ACEOF | |
a3828db0 MK |
16279 | rm -f conftest.$ac_objext |
16280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16281 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16282 | ac_status=$? |
16283 | grep -v '^ *+' conftest.er1 >conftest.err | |
16284 | rm -f conftest.er1 | |
16285 | cat conftest.err >&5 | |
16286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16287 | (exit $ac_status); } && | |
b4e70030 JB |
16288 | { ac_try='test -z "$ac_c_werror_flag" |
16289 | || test ! -s conftest.err' | |
bec39cab AC |
16290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16291 | (eval $ac_try) 2>&5 | |
16292 | ac_status=$? | |
16293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16294 | (exit $ac_status); }; } && | |
a3828db0 | 16295 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16297 | (eval $ac_try) 2>&5 | |
16298 | ac_status=$? | |
16299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16300 | (exit $ac_status); }; }; then | |
a3828db0 | 16301 | ac_cv_type_pid_t=yes |
bec39cab AC |
16302 | else |
16303 | echo "$as_me: failed program was:" >&5 | |
16304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16305 | ||
b4e70030 | 16306 | ac_cv_type_pid_t=no |
bec39cab | 16307 | fi |
a3828db0 | 16308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 16309 | fi |
b4e70030 JB |
16310 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
16311 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
a3828db0 MK |
16312 | if test $ac_cv_type_pid_t = yes; then |
16313 | : | |
16314 | else | |
16315 | ||
16316 | cat >>confdefs.h <<_ACEOF | |
16317 | #define pid_t int | |
bec39cab | 16318 | _ACEOF |
7e89e357 | 16319 | |
7e89e357 JT |
16320 | fi |
16321 | ||
bec39cab | 16322 | |
b4e70030 JB |
16323 | |
16324 | for ac_header in unistd.h vfork.h | |
7be570e7 | 16325 | do |
a3828db0 | 16326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
16327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 16331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 | 16332 | fi |
b4e70030 JB |
16333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 16335 | else |
a3828db0 | 16336 | # Is the header compilable? |
b4e70030 JB |
16337 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16338 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 | 16339 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
16340 | /* confdefs.h. */ |
16341 | _ACEOF | |
16342 | cat confdefs.h >>conftest.$ac_ext | |
16343 | cat >>conftest.$ac_ext <<_ACEOF | |
16344 | /* end confdefs.h. */ | |
a3828db0 MK |
16345 | $ac_includes_default |
16346 | #include <$ac_header> | |
bec39cab | 16347 | _ACEOF |
a3828db0 MK |
16348 | rm -f conftest.$ac_objext |
16349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16350 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16351 | ac_status=$? |
16352 | grep -v '^ *+' conftest.er1 >conftest.err | |
16353 | rm -f conftest.er1 | |
16354 | cat conftest.err >&5 | |
16355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16356 | (exit $ac_status); } && | |
b4e70030 JB |
16357 | { ac_try='test -z "$ac_c_werror_flag" |
16358 | || test ! -s conftest.err' | |
bec39cab AC |
16359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16360 | (eval $ac_try) 2>&5 | |
16361 | ac_status=$? | |
16362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16363 | (exit $ac_status); }; } && | |
a3828db0 | 16364 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16366 | (eval $ac_try) 2>&5 | |
16367 | ac_status=$? | |
16368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16369 | (exit $ac_status); }; }; then | |
a3828db0 | 16370 | ac_header_compiler=yes |
bec39cab AC |
16371 | else |
16372 | echo "$as_me: failed program was:" >&5 | |
16373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16374 | ||
b4e70030 | 16375 | ac_header_compiler=no |
bec39cab | 16376 | fi |
a3828db0 | 16377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b4e70030 JB |
16378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16379 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
a3828db0 MK |
16380 | |
16381 | # Is the header present? | |
b4e70030 JB |
16382 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
a3828db0 MK |
16384 | cat >conftest.$ac_ext <<_ACEOF |
16385 | /* confdefs.h. */ | |
16386 | _ACEOF | |
16387 | cat confdefs.h >>conftest.$ac_ext | |
16388 | cat >>conftest.$ac_ext <<_ACEOF | |
16389 | /* end confdefs.h. */ | |
16390 | #include <$ac_header> | |
16391 | _ACEOF | |
16392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16394 | ac_status=$? | |
16395 | grep -v '^ *+' conftest.er1 >conftest.err | |
16396 | rm -f conftest.er1 | |
16397 | cat conftest.err >&5 | |
16398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16399 | (exit $ac_status); } >/dev/null; then | |
16400 | if test -s conftest.err; then | |
16401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16403 | else | |
16404 | ac_cpp_err= | |
16405 | fi | |
16406 | else | |
16407 | ac_cpp_err=yes | |
16408 | fi | |
16409 | if test -z "$ac_cpp_err"; then | |
16410 | ac_header_preproc=yes | |
16411 | else | |
16412 | echo "$as_me: failed program was:" >&5 | |
16413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16414 | ||
16415 | ac_header_preproc=no | |
16416 | fi | |
16417 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
16418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16419 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
a3828db0 MK |
16420 | |
16421 | # So? What about this header? | |
16422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16423 | yes:no: ) | |
16424 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16425 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16427 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16428 | ac_header_preproc=yes | |
16429 | ;; | |
16430 | no:yes:* ) | |
16431 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16432 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16433 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16434 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16435 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16436 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16437 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16438 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16440 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16441 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16442 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
16443 | ( |
16444 | cat <<\_ASBOX | |
16445 | ## ------------------------------------------ ## | |
16446 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
16447 | ## ------------------------------------------ ## | |
16448 | _ASBOX | |
16449 | ) | | |
16450 | sed "s/^/$as_me: WARNING: /" >&2 | |
a3828db0 MK |
16451 | ;; |
16452 | esac | |
b4e70030 JB |
16453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
16456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16457 | else | |
16458 | eval "$as_ac_Header=\$ac_header_preproc" | |
16459 | fi | |
b4e70030 JB |
16460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 | 16462 | |
bec39cab | 16463 | fi |
a3828db0 | 16464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 16465 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 16466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 16467 | _ACEOF |
14abd0fb | 16468 | |
14abd0fb | 16469 | fi |
a3828db0 | 16470 | |
14abd0fb MK |
16471 | done |
16472 | ||
bec39cab | 16473 | |
a3828db0 MK |
16474 | |
16475 | for ac_func in fork vfork | |
14abd0fb | 16476 | do |
bec39cab | 16477 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16478 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16479 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16480 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16482 | else | |
16483 | cat >conftest.$ac_ext <<_ACEOF | |
16484 | /* confdefs.h. */ | |
16485 | _ACEOF | |
16486 | cat confdefs.h >>conftest.$ac_ext | |
16487 | cat >>conftest.$ac_ext <<_ACEOF | |
16488 | /* end confdefs.h. */ | |
16489 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16490 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16491 | #define $ac_func innocuous_$ac_func | |
16492 | ||
14abd0fb | 16493 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16494 | which can conflict with char $ac_func (); below. |
16495 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16496 | <limits.h> exists even on freestanding compilers. */ | |
16497 | ||
16498 | #ifdef __STDC__ | |
16499 | # include <limits.h> | |
16500 | #else | |
16501 | # include <assert.h> | |
16502 | #endif | |
14abd0fb | 16503 | |
bec39cab | 16504 | #undef $ac_func |
14abd0fb | 16505 | |
b4e70030 | 16506 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16507 | #ifdef __cplusplus |
16508 | extern "C" | |
b4e70030 | 16509 | { |
bec39cab | 16510 | #endif |
b4e70030 JB |
16511 | /* We use char because int might match the return type of a gcc2 |
16512 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16513 | char $ac_func (); |
14abd0fb MK |
16514 | /* The GNU C library defines this for functions which it implements |
16515 | to always fail with ENOSYS. Some functions are actually named | |
16516 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16517 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14abd0fb | 16518 | choke me |
b4e70030 JB |
16519 | #else |
16520 | char (*f) () = $ac_func; | |
16521 | #endif | |
16522 | #ifdef __cplusplus | |
16523 | } | |
14abd0fb MK |
16524 | #endif |
16525 | ||
bec39cab AC |
16526 | int |
16527 | main () | |
16528 | { | |
b4e70030 | 16529 | return f != $ac_func; |
bec39cab AC |
16530 | ; |
16531 | return 0; | |
16532 | } | |
16533 | _ACEOF | |
16534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16536 | (eval $ac_link) 2>conftest.er1 | |
16537 | ac_status=$? | |
16538 | grep -v '^ *+' conftest.er1 >conftest.err | |
16539 | rm -f conftest.er1 | |
16540 | cat conftest.err >&5 | |
16541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16542 | (exit $ac_status); } && | |
b4e70030 JB |
16543 | { ac_try='test -z "$ac_c_werror_flag" |
16544 | || test ! -s conftest.err' | |
bec39cab AC |
16545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16546 | (eval $ac_try) 2>&5 | |
16547 | ac_status=$? | |
16548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16549 | (exit $ac_status); }; } && | |
16550 | { ac_try='test -s conftest$ac_exeext' | |
16551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16552 | (eval $ac_try) 2>&5 | |
16553 | ac_status=$? | |
16554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16555 | (exit $ac_status); }; }; then | |
16556 | eval "$as_ac_var=yes" | |
16557 | else | |
16558 | echo "$as_me: failed program was:" >&5 | |
16559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16560 | ||
b4e70030 | 16561 | eval "$as_ac_var=no" |
bec39cab AC |
16562 | fi |
16563 | rm -f conftest.err conftest.$ac_objext \ | |
16564 | conftest$ac_exeext conftest.$ac_ext | |
16565 | fi | |
b4e70030 JB |
16566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16567 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16568 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16569 | cat >>confdefs.h <<_ACEOF | |
16570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16571 | _ACEOF | |
7be570e7 | 16572 | |
7be570e7 JM |
16573 | fi |
16574 | done | |
16575 | ||
a3828db0 | 16576 | if test "x$ac_cv_func_fork" = xyes; then |
b4e70030 JB |
16577 | echo "$as_me:$LINENO: checking for working fork" >&5 |
16578 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
a3828db0 MK |
16579 | if test "${ac_cv_func_fork_works+set}" = set; then |
16580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16581 | else | |
16582 | if test "$cross_compiling" = yes; then | |
16583 | ac_cv_func_fork_works=cross | |
16584 | else | |
16585 | cat >conftest.$ac_ext <<_ACEOF | |
b4e70030 JB |
16586 | /* By Ruediger Kuhlmann. */ |
16587 | #include <sys/types.h> | |
16588 | #if HAVE_UNISTD_H | |
16589 | # include <unistd.h> | |
16590 | #endif | |
16591 | /* Some systems only have a dummy stub for fork() */ | |
16592 | int main () | |
16593 | { | |
16594 | if (fork() < 0) | |
16595 | exit (1); | |
16596 | exit (0); | |
16597 | } | |
a3828db0 MK |
16598 | _ACEOF |
16599 | rm -f conftest$ac_exeext | |
16600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16601 | (eval $ac_link) 2>&5 | |
16602 | ac_status=$? | |
16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16606 | (eval $ac_try) 2>&5 | |
16607 | ac_status=$? | |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16609 | (exit $ac_status); }; }; then | |
16610 | ac_cv_func_fork_works=yes | |
16611 | else | |
16612 | echo "$as_me: program exited with status $ac_status" >&5 | |
16613 | echo "$as_me: failed program was:" >&5 | |
16614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 16615 | |
a3828db0 MK |
16616 | ( exit $ac_status ) |
16617 | ac_cv_func_fork_works=no | |
16618 | fi | |
b4e70030 | 16619 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16620 | fi |
16621 | fi | |
b4e70030 JB |
16622 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
16623 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
a3828db0 MK |
16624 | |
16625 | else | |
16626 | ac_cv_func_fork_works=$ac_cv_func_fork | |
16627 | fi | |
16628 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16629 | case $host in | |
16630 | *-*-amigaos* | *-*-msdosdjgpp*) | |
16631 | # Override, as these systems have only a dummy fork() stub | |
16632 | ac_cv_func_fork_works=no | |
16633 | ;; | |
16634 | *) | |
16635 | ac_cv_func_fork_works=yes | |
16636 | ;; | |
16637 | esac | |
16638 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
16639 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
16640 | fi | |
16641 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16642 | if test "x$ac_cv_func_vfork" = xyes; then | |
b4e70030 JB |
16643 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
16644 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
a3828db0 | 16645 | if test "${ac_cv_func_vfork_works+set}" = set; then |
bec39cab | 16646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
16647 | else |
16648 | if test "$cross_compiling" = yes; then | |
16649 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
16650 | else |
16651 | cat >conftest.$ac_ext <<_ACEOF | |
16652 | /* confdefs.h. */ | |
16653 | _ACEOF | |
16654 | cat confdefs.h >>conftest.$ac_ext | |
16655 | cat >>conftest.$ac_ext <<_ACEOF | |
16656 | /* end confdefs.h. */ | |
a3828db0 | 16657 | /* Thanks to Paul Eggert for this test. */ |
b4e70030 JB |
16658 | #include <stdio.h> |
16659 | #include <stdlib.h> | |
16660 | #include <sys/types.h> | |
16661 | #include <sys/stat.h> | |
a3828db0 | 16662 | #include <sys/wait.h> |
b4e70030 JB |
16663 | #if HAVE_UNISTD_H |
16664 | # include <unistd.h> | |
16665 | #endif | |
a3828db0 MK |
16666 | #if HAVE_VFORK_H |
16667 | # include <vfork.h> | |
bec39cab | 16668 | #endif |
a3828db0 MK |
16669 | /* On some sparc systems, changes by the child to local and incoming |
16670 | argument registers are propagated back to the parent. The compiler | |
16671 | is told about this with #include <vfork.h>, but some compilers | |
16672 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
16673 | static variable whose address is put into a register that is | |
16674 | clobbered by the vfork. */ | |
16675 | static void | |
bec39cab | 16676 | #ifdef __cplusplus |
a3828db0 MK |
16677 | sparc_address_test (int arg) |
16678 | # else | |
16679 | sparc_address_test (arg) int arg; | |
c906108c | 16680 | #endif |
a3828db0 MK |
16681 | { |
16682 | static pid_t child; | |
16683 | if (!child) { | |
16684 | child = vfork (); | |
16685 | if (child < 0) { | |
16686 | perror ("vfork"); | |
16687 | _exit(2); | |
16688 | } | |
16689 | if (!child) { | |
16690 | arg = getpid(); | |
16691 | write(-1, "", 0); | |
16692 | _exit (arg); | |
16693 | } | |
16694 | } | |
16695 | } | |
97bf5e38 | 16696 | |
bec39cab AC |
16697 | int |
16698 | main () | |
16699 | { | |
a3828db0 MK |
16700 | pid_t parent = getpid (); |
16701 | pid_t child; | |
16702 | ||
16703 | sparc_address_test (0); | |
16704 | ||
16705 | child = vfork (); | |
16706 | ||
16707 | if (child == 0) { | |
16708 | /* Here is another test for sparc vfork register problems. This | |
16709 | test uses lots of local variables, at least as many local | |
16710 | variables as main has allocated so far including compiler | |
16711 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
16712 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
16713 | reuse the register of parent for one of the local variables, | |
16714 | since it will think that parent can't possibly be used any more | |
16715 | in this routine. Assigning to the local variable will thus | |
16716 | munge parent in the parent process. */ | |
16717 | pid_t | |
16718 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
16719 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
16720 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
16721 | use the same hardware register for all 8 local variables. */ | |
16722 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
16723 | || p != p5 || p != p6 || p != p7) | |
16724 | _exit(1); | |
16725 | ||
16726 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
16727 | from child file descriptors. If the child closes a descriptor | |
16728 | before it execs or exits, this munges the parent's descriptor | |
16729 | as well. Test for this by closing stdout in the child. */ | |
16730 | _exit(close(fileno(stdout)) != 0); | |
16731 | } else { | |
16732 | int status; | |
16733 | struct stat st; | |
16734 | ||
16735 | while (wait(&status) != child) | |
16736 | ; | |
b4e70030 | 16737 | exit( |
a3828db0 MK |
16738 | /* Was there some problem with vforking? */ |
16739 | child < 0 | |
16740 | ||
16741 | /* Did the child fail? (This shouldn't happen.) */ | |
16742 | || status | |
16743 | ||
16744 | /* Did the vfork/compiler bug occur? */ | |
16745 | || parent != getpid() | |
16746 | ||
16747 | /* Did the file descriptor bug occur? */ | |
16748 | || fstat(fileno(stdout), &st) != 0 | |
16749 | ); | |
16750 | } | |
bec39cab AC |
16751 | } |
16752 | _ACEOF | |
a3828db0 | 16753 | rm -f conftest$ac_exeext |
bec39cab | 16754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 16755 | (eval $ac_link) 2>&5 |
bec39cab AC |
16756 | ac_status=$? |
16757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 16758 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
16759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16760 | (eval $ac_try) 2>&5 | |
16761 | ac_status=$? | |
16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16763 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16764 | ac_cv_func_vfork_works=yes |
16765 | else | |
16766 | echo "$as_me: program exited with status $ac_status" >&5 | |
16767 | echo "$as_me: failed program was:" >&5 | |
16768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16769 | ||
16770 | ( exit $ac_status ) | |
16771 | ac_cv_func_vfork_works=no | |
16772 | fi | |
b4e70030 | 16773 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16774 | fi |
16775 | fi | |
b4e70030 JB |
16776 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
16777 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
a3828db0 MK |
16778 | |
16779 | fi; | |
16780 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16781 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16782 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
16783 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
16784 | fi | |
16785 | ||
16786 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
16787 | ||
16788 | cat >>confdefs.h <<\_ACEOF | |
16789 | #define HAVE_WORKING_VFORK 1 | |
16790 | _ACEOF | |
16791 | ||
bec39cab | 16792 | else |
bec39cab | 16793 | |
a3828db0 MK |
16794 | cat >>confdefs.h <<\_ACEOF |
16795 | #define vfork fork | |
16796 | _ACEOF | |
16797 | ||
bec39cab | 16798 | fi |
a3828db0 MK |
16799 | if test "x$ac_cv_func_fork_works" = xyes; then |
16800 | ||
16801 | cat >>confdefs.h <<\_ACEOF | |
16802 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 16803 | _ACEOF |
c906108c | 16804 | |
c906108c SS |
16805 | fi |
16806 | ||
bec39cab AC |
16807 | |
16808 | ||
a3828db0 | 16809 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 16810 | do |
bec39cab | 16811 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 | 16812 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7eb368b3 NR |
16813 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16814 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16816 | else | |
16817 | cat >conftest.$ac_ext <<_ACEOF | |
16818 | /* confdefs.h. */ | |
16819 | _ACEOF | |
16820 | cat confdefs.h >>conftest.$ac_ext | |
16821 | cat >>conftest.$ac_ext <<_ACEOF | |
16822 | /* end confdefs.h. */ | |
16823 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16824 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16825 | #define $ac_func innocuous_$ac_func | |
16826 | ||
16827 | /* System header to define __stub macros and hopefully few prototypes, | |
16828 | which can conflict with char $ac_func (); below. | |
16829 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16830 | <limits.h> exists even on freestanding compilers. */ | |
16831 | ||
16832 | #ifdef __STDC__ | |
16833 | # include <limits.h> | |
16834 | #else | |
16835 | # include <assert.h> | |
16836 | #endif | |
16837 | ||
16838 | #undef $ac_func | |
16839 | ||
16840 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16841 | #ifdef __cplusplus | |
16842 | extern "C" | |
16843 | { | |
16844 | #endif | |
16845 | /* We use char because int might match the return type of a gcc2 | |
16846 | builtin and then its argument prototype would still apply. */ | |
16847 | char $ac_func (); | |
16848 | /* The GNU C library defines this for functions which it implements | |
16849 | to always fail with ENOSYS. Some functions are actually named | |
16850 | something starting with __ and the normal name is an alias. */ | |
16851 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16852 | choke me | |
16853 | #else | |
16854 | char (*f) () = $ac_func; | |
16855 | #endif | |
16856 | #ifdef __cplusplus | |
16857 | } | |
16858 | #endif | |
16859 | ||
16860 | int | |
16861 | main () | |
16862 | { | |
16863 | return f != $ac_func; | |
16864 | ; | |
16865 | return 0; | |
16866 | } | |
16867 | _ACEOF | |
16868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16870 | (eval $ac_link) 2>conftest.er1 | |
16871 | ac_status=$? | |
16872 | grep -v '^ *+' conftest.er1 >conftest.err | |
16873 | rm -f conftest.er1 | |
16874 | cat conftest.err >&5 | |
16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16876 | (exit $ac_status); } && | |
16877 | { ac_try='test -z "$ac_c_werror_flag" | |
16878 | || test ! -s conftest.err' | |
16879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16880 | (eval $ac_try) 2>&5 | |
16881 | ac_status=$? | |
16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16883 | (exit $ac_status); }; } && | |
16884 | { ac_try='test -s conftest$ac_exeext' | |
16885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16886 | (eval $ac_try) 2>&5 | |
16887 | ac_status=$? | |
16888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16889 | (exit $ac_status); }; }; then | |
16890 | eval "$as_ac_var=yes" | |
16891 | else | |
16892 | echo "$as_me: failed program was:" >&5 | |
16893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16894 | ||
16895 | eval "$as_ac_var=no" | |
16896 | fi | |
16897 | rm -f conftest.err conftest.$ac_objext \ | |
16898 | conftest$ac_exeext conftest.$ac_ext | |
16899 | fi | |
16900 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16901 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16902 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16903 | cat >>confdefs.h <<_ACEOF | |
16904 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16905 | _ACEOF | |
16906 | ||
16907 | fi | |
16908 | done | |
16909 | ||
16910 | ||
16911 | for ac_func in getrusage | |
16912 | do | |
16913 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16914 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
b4e70030 JB |
16915 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16916 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16918 | else | |
16919 | cat >conftest.$ac_ext <<_ACEOF | |
16920 | /* confdefs.h. */ | |
16921 | _ACEOF | |
16922 | cat confdefs.h >>conftest.$ac_ext | |
16923 | cat >>conftest.$ac_ext <<_ACEOF | |
16924 | /* end confdefs.h. */ | |
16925 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16927 | #define $ac_func innocuous_$ac_func | |
16928 | ||
d3ea6809 MM |
16929 | /* System header to define __stub macros and hopefully few prototypes, |
16930 | which can conflict with char $ac_func (); below. | |
16931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16932 | <limits.h> exists even on freestanding compilers. */ | |
16933 | ||
16934 | #ifdef __STDC__ | |
16935 | # include <limits.h> | |
16936 | #else | |
16937 | # include <assert.h> | |
16938 | #endif | |
16939 | ||
16940 | #undef $ac_func | |
16941 | ||
b4e70030 | 16942 | /* Override any gcc2 internal prototype to avoid an error. */ |
d3ea6809 MM |
16943 | #ifdef __cplusplus |
16944 | extern "C" | |
b4e70030 | 16945 | { |
d3ea6809 | 16946 | #endif |
b4e70030 JB |
16947 | /* We use char because int might match the return type of a gcc2 |
16948 | builtin and then its argument prototype would still apply. */ | |
d3ea6809 MM |
16949 | char $ac_func (); |
16950 | /* The GNU C library defines this for functions which it implements | |
16951 | to always fail with ENOSYS. Some functions are actually named | |
16952 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16953 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d3ea6809 | 16954 | choke me |
b4e70030 JB |
16955 | #else |
16956 | char (*f) () = $ac_func; | |
16957 | #endif | |
16958 | #ifdef __cplusplus | |
16959 | } | |
d3ea6809 MM |
16960 | #endif |
16961 | ||
16962 | int | |
16963 | main () | |
16964 | { | |
b4e70030 | 16965 | return f != $ac_func; |
d3ea6809 MM |
16966 | ; |
16967 | return 0; | |
16968 | } | |
16969 | _ACEOF | |
16970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16972 | (eval $ac_link) 2>conftest.er1 | |
16973 | ac_status=$? | |
16974 | grep -v '^ *+' conftest.er1 >conftest.err | |
16975 | rm -f conftest.er1 | |
16976 | cat conftest.err >&5 | |
16977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16978 | (exit $ac_status); } && | |
b4e70030 JB |
16979 | { ac_try='test -z "$ac_c_werror_flag" |
16980 | || test ! -s conftest.err' | |
d3ea6809 MM |
16981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16982 | (eval $ac_try) 2>&5 | |
16983 | ac_status=$? | |
16984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16985 | (exit $ac_status); }; } && | |
16986 | { ac_try='test -s conftest$ac_exeext' | |
16987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16988 | (eval $ac_try) 2>&5 | |
16989 | ac_status=$? | |
16990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16991 | (exit $ac_status); }; }; then | |
16992 | eval "$as_ac_var=yes" | |
16993 | else | |
16994 | echo "$as_me: failed program was:" >&5 | |
16995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16996 | ||
b4e70030 | 16997 | eval "$as_ac_var=no" |
d3ea6809 MM |
16998 | fi |
16999 | rm -f conftest.err conftest.$ac_objext \ | |
17000 | conftest$ac_exeext conftest.$ac_ext | |
17001 | fi | |
b4e70030 JB |
17002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17003 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d3ea6809 MM |
17004 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17005 | cat >>confdefs.h <<_ACEOF | |
17006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17007 | _ACEOF | |
17008 | ||
17009 | fi | |
17010 | done | |
17011 | ||
17012 | ||
17013 | ||
17014 | for ac_func in getuid getgid | |
17015 | do | |
17016 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17017 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17018 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17019 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d3ea6809 MM |
17020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17021 | else | |
17022 | cat >conftest.$ac_ext <<_ACEOF | |
17023 | /* confdefs.h. */ | |
17024 | _ACEOF | |
17025 | cat confdefs.h >>conftest.$ac_ext | |
17026 | cat >>conftest.$ac_ext <<_ACEOF | |
17027 | /* end confdefs.h. */ | |
17028 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17029 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17030 | #define $ac_func innocuous_$ac_func | |
17031 | ||
97bf5e38 | 17032 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17033 | which can conflict with char $ac_func (); below. |
17034 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17035 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 17036 | |
bec39cab AC |
17037 | #ifdef __STDC__ |
17038 | # include <limits.h> | |
17039 | #else | |
17040 | # include <assert.h> | |
17041 | #endif | |
97bf5e38 | 17042 | |
bec39cab AC |
17043 | #undef $ac_func |
17044 | ||
b4e70030 | 17045 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17046 | #ifdef __cplusplus |
17047 | extern "C" | |
b4e70030 | 17048 | { |
bec39cab | 17049 | #endif |
b4e70030 JB |
17050 | /* We use char because int might match the return type of a gcc2 |
17051 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17052 | char $ac_func (); |
97bf5e38 MK |
17053 | /* The GNU C library defines this for functions which it implements |
17054 | to always fail with ENOSYS. Some functions are actually named | |
17055 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17056 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17057 | choke me |
b4e70030 JB |
17058 | #else |
17059 | char (*f) () = $ac_func; | |
17060 | #endif | |
17061 | #ifdef __cplusplus | |
17062 | } | |
c906108c | 17063 | #endif |
97bf5e38 | 17064 | |
bec39cab AC |
17065 | int |
17066 | main () | |
17067 | { | |
b4e70030 | 17068 | return f != $ac_func; |
bec39cab AC |
17069 | ; |
17070 | return 0; | |
17071 | } | |
17072 | _ACEOF | |
17073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17075 | (eval $ac_link) 2>conftest.er1 | |
17076 | ac_status=$? | |
17077 | grep -v '^ *+' conftest.er1 >conftest.err | |
17078 | rm -f conftest.er1 | |
17079 | cat conftest.err >&5 | |
17080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17081 | (exit $ac_status); } && | |
b4e70030 JB |
17082 | { ac_try='test -z "$ac_c_werror_flag" |
17083 | || test ! -s conftest.err' | |
bec39cab AC |
17084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17085 | (eval $ac_try) 2>&5 | |
17086 | ac_status=$? | |
17087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17088 | (exit $ac_status); }; } && | |
17089 | { ac_try='test -s conftest$ac_exeext' | |
17090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17091 | (eval $ac_try) 2>&5 | |
17092 | ac_status=$? | |
17093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17094 | (exit $ac_status); }; }; then | |
17095 | eval "$as_ac_var=yes" | |
17096 | else | |
17097 | echo "$as_me: failed program was:" >&5 | |
17098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17099 | ||
b4e70030 | 17100 | eval "$as_ac_var=no" |
bec39cab AC |
17101 | fi |
17102 | rm -f conftest.err conftest.$ac_objext \ | |
17103 | conftest$ac_exeext conftest.$ac_ext | |
17104 | fi | |
b4e70030 JB |
17105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17106 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17107 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17108 | cat >>confdefs.h <<_ACEOF | |
17109 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17110 | _ACEOF | |
c906108c | 17111 | |
c906108c | 17112 | fi |
97bf5e38 | 17113 | done |
c906108c | 17114 | |
bec39cab | 17115 | |
a3828db0 | 17116 | for ac_func in poll |
97bf5e38 | 17117 | do |
bec39cab | 17118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17119 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17121 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17123 | else | |
17124 | cat >conftest.$ac_ext <<_ACEOF | |
17125 | /* confdefs.h. */ | |
17126 | _ACEOF | |
17127 | cat confdefs.h >>conftest.$ac_ext | |
17128 | cat >>conftest.$ac_ext <<_ACEOF | |
17129 | /* end confdefs.h. */ | |
17130 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17132 | #define $ac_func innocuous_$ac_func | |
17133 | ||
97bf5e38 | 17134 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17135 | which can conflict with char $ac_func (); below. |
17136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17137 | <limits.h> exists even on freestanding compilers. */ | |
17138 | ||
17139 | #ifdef __STDC__ | |
17140 | # include <limits.h> | |
17141 | #else | |
17142 | # include <assert.h> | |
17143 | #endif | |
c906108c | 17144 | |
bec39cab | 17145 | #undef $ac_func |
97bf5e38 | 17146 | |
b4e70030 | 17147 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17148 | #ifdef __cplusplus |
17149 | extern "C" | |
b4e70030 | 17150 | { |
bec39cab | 17151 | #endif |
b4e70030 JB |
17152 | /* We use char because int might match the return type of a gcc2 |
17153 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17154 | char $ac_func (); |
97bf5e38 MK |
17155 | /* The GNU C library defines this for functions which it implements |
17156 | to always fail with ENOSYS. Some functions are actually named | |
17157 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17159 | choke me |
b4e70030 JB |
17160 | #else |
17161 | char (*f) () = $ac_func; | |
17162 | #endif | |
17163 | #ifdef __cplusplus | |
17164 | } | |
c906108c | 17165 | #endif |
97bf5e38 | 17166 | |
bec39cab AC |
17167 | int |
17168 | main () | |
17169 | { | |
b4e70030 | 17170 | return f != $ac_func; |
bec39cab AC |
17171 | ; |
17172 | return 0; | |
17173 | } | |
17174 | _ACEOF | |
17175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17177 | (eval $ac_link) 2>conftest.er1 | |
17178 | ac_status=$? | |
17179 | grep -v '^ *+' conftest.er1 >conftest.err | |
17180 | rm -f conftest.er1 | |
17181 | cat conftest.err >&5 | |
17182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17183 | (exit $ac_status); } && | |
b4e70030 JB |
17184 | { ac_try='test -z "$ac_c_werror_flag" |
17185 | || test ! -s conftest.err' | |
bec39cab AC |
17186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17187 | (eval $ac_try) 2>&5 | |
17188 | ac_status=$? | |
17189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17190 | (exit $ac_status); }; } && | |
17191 | { ac_try='test -s conftest$ac_exeext' | |
17192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17193 | (eval $ac_try) 2>&5 | |
17194 | ac_status=$? | |
17195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17196 | (exit $ac_status); }; }; then | |
17197 | eval "$as_ac_var=yes" | |
17198 | else | |
17199 | echo "$as_me: failed program was:" >&5 | |
17200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17201 | ||
b4e70030 | 17202 | eval "$as_ac_var=no" |
bec39cab AC |
17203 | fi |
17204 | rm -f conftest.err conftest.$ac_objext \ | |
17205 | conftest$ac_exeext conftest.$ac_ext | |
17206 | fi | |
b4e70030 JB |
17207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17208 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17209 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17210 | cat >>confdefs.h <<_ACEOF | |
17211 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17212 | _ACEOF | |
c906108c | 17213 | |
c906108c | 17214 | fi |
97bf5e38 | 17215 | done |
c906108c | 17216 | |
bec39cab | 17217 | |
a3828db0 | 17218 | for ac_func in pread64 |
97bf5e38 | 17219 | do |
bec39cab | 17220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17221 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17223 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17225 | else | |
17226 | cat >conftest.$ac_ext <<_ACEOF | |
17227 | /* confdefs.h. */ | |
17228 | _ACEOF | |
17229 | cat confdefs.h >>conftest.$ac_ext | |
17230 | cat >>conftest.$ac_ext <<_ACEOF | |
17231 | /* end confdefs.h. */ | |
17232 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17234 | #define $ac_func innocuous_$ac_func | |
17235 | ||
97bf5e38 | 17236 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17237 | which can conflict with char $ac_func (); below. |
17238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17239 | <limits.h> exists even on freestanding compilers. */ | |
17240 | ||
17241 | #ifdef __STDC__ | |
17242 | # include <limits.h> | |
17243 | #else | |
17244 | # include <assert.h> | |
17245 | #endif | |
c906108c | 17246 | |
bec39cab | 17247 | #undef $ac_func |
97bf5e38 | 17248 | |
b4e70030 | 17249 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17250 | #ifdef __cplusplus |
17251 | extern "C" | |
b4e70030 | 17252 | { |
bec39cab | 17253 | #endif |
b4e70030 JB |
17254 | /* We use char because int might match the return type of a gcc2 |
17255 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17256 | char $ac_func (); |
97bf5e38 MK |
17257 | /* The GNU C library defines this for functions which it implements |
17258 | to always fail with ENOSYS. Some functions are actually named | |
17259 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17261 | choke me |
b4e70030 JB |
17262 | #else |
17263 | char (*f) () = $ac_func; | |
17264 | #endif | |
17265 | #ifdef __cplusplus | |
17266 | } | |
c906108c | 17267 | #endif |
97bf5e38 | 17268 | |
bec39cab AC |
17269 | int |
17270 | main () | |
17271 | { | |
b4e70030 | 17272 | return f != $ac_func; |
bec39cab AC |
17273 | ; |
17274 | return 0; | |
17275 | } | |
17276 | _ACEOF | |
17277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17279 | (eval $ac_link) 2>conftest.er1 | |
17280 | ac_status=$? | |
17281 | grep -v '^ *+' conftest.er1 >conftest.err | |
17282 | rm -f conftest.er1 | |
17283 | cat conftest.err >&5 | |
17284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17285 | (exit $ac_status); } && | |
b4e70030 JB |
17286 | { ac_try='test -z "$ac_c_werror_flag" |
17287 | || test ! -s conftest.err' | |
bec39cab AC |
17288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17289 | (eval $ac_try) 2>&5 | |
17290 | ac_status=$? | |
17291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17292 | (exit $ac_status); }; } && | |
17293 | { ac_try='test -s conftest$ac_exeext' | |
17294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17295 | (eval $ac_try) 2>&5 | |
17296 | ac_status=$? | |
17297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17298 | (exit $ac_status); }; }; then | |
17299 | eval "$as_ac_var=yes" | |
17300 | else | |
17301 | echo "$as_me: failed program was:" >&5 | |
17302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17303 | ||
b4e70030 | 17304 | eval "$as_ac_var=no" |
bec39cab AC |
17305 | fi |
17306 | rm -f conftest.err conftest.$ac_objext \ | |
17307 | conftest$ac_exeext conftest.$ac_ext | |
17308 | fi | |
b4e70030 JB |
17309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17310 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17311 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17312 | cat >>confdefs.h <<_ACEOF | |
17313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17314 | _ACEOF | |
c906108c | 17315 | |
c906108c | 17316 | fi |
97bf5e38 | 17317 | done |
c906108c | 17318 | |
bec39cab | 17319 | |
a3828db0 | 17320 | for ac_func in sbrk |
b757528f | 17321 | do |
bec39cab | 17322 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17323 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17324 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17325 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17327 | else | |
17328 | cat >conftest.$ac_ext <<_ACEOF | |
17329 | /* confdefs.h. */ | |
17330 | _ACEOF | |
17331 | cat confdefs.h >>conftest.$ac_ext | |
17332 | cat >>conftest.$ac_ext <<_ACEOF | |
17333 | /* end confdefs.h. */ | |
17334 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17335 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17336 | #define $ac_func innocuous_$ac_func | |
17337 | ||
b757528f | 17338 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17339 | which can conflict with char $ac_func (); below. |
17340 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17341 | <limits.h> exists even on freestanding compilers. */ | |
17342 | ||
17343 | #ifdef __STDC__ | |
17344 | # include <limits.h> | |
17345 | #else | |
17346 | # include <assert.h> | |
17347 | #endif | |
b757528f | 17348 | |
bec39cab | 17349 | #undef $ac_func |
b757528f | 17350 | |
b4e70030 | 17351 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17352 | #ifdef __cplusplus |
17353 | extern "C" | |
b4e70030 | 17354 | { |
bec39cab | 17355 | #endif |
b4e70030 JB |
17356 | /* We use char because int might match the return type of a gcc2 |
17357 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17358 | char $ac_func (); |
b757528f JJ |
17359 | /* The GNU C library defines this for functions which it implements |
17360 | to always fail with ENOSYS. Some functions are actually named | |
17361 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b757528f | 17363 | choke me |
b4e70030 JB |
17364 | #else |
17365 | char (*f) () = $ac_func; | |
17366 | #endif | |
17367 | #ifdef __cplusplus | |
17368 | } | |
b757528f JJ |
17369 | #endif |
17370 | ||
bec39cab AC |
17371 | int |
17372 | main () | |
17373 | { | |
b4e70030 | 17374 | return f != $ac_func; |
bec39cab AC |
17375 | ; |
17376 | return 0; | |
17377 | } | |
17378 | _ACEOF | |
17379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17381 | (eval $ac_link) 2>conftest.er1 | |
17382 | ac_status=$? | |
17383 | grep -v '^ *+' conftest.er1 >conftest.err | |
17384 | rm -f conftest.er1 | |
17385 | cat conftest.err >&5 | |
17386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17387 | (exit $ac_status); } && | |
b4e70030 JB |
17388 | { ac_try='test -z "$ac_c_werror_flag" |
17389 | || test ! -s conftest.err' | |
bec39cab AC |
17390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17391 | (eval $ac_try) 2>&5 | |
17392 | ac_status=$? | |
17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17394 | (exit $ac_status); }; } && | |
17395 | { ac_try='test -s conftest$ac_exeext' | |
17396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17397 | (eval $ac_try) 2>&5 | |
17398 | ac_status=$? | |
17399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17400 | (exit $ac_status); }; }; then | |
17401 | eval "$as_ac_var=yes" | |
17402 | else | |
17403 | echo "$as_me: failed program was:" >&5 | |
17404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17405 | ||
b4e70030 | 17406 | eval "$as_ac_var=no" |
bec39cab AC |
17407 | fi |
17408 | rm -f conftest.err conftest.$ac_objext \ | |
17409 | conftest$ac_exeext conftest.$ac_ext | |
17410 | fi | |
b4e70030 JB |
17411 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17412 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17413 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17414 | cat >>confdefs.h <<_ACEOF | |
17415 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17416 | _ACEOF | |
b757528f | 17417 | |
b757528f JJ |
17418 | fi |
17419 | done | |
17420 | ||
bec39cab | 17421 | |
a3828db0 MK |
17422 | |
17423 | for ac_func in setpgid setpgrp | |
bcb3dc3d | 17424 | do |
bec39cab | 17425 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17426 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17427 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17428 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17430 | else | |
17431 | cat >conftest.$ac_ext <<_ACEOF | |
17432 | /* confdefs.h. */ | |
17433 | _ACEOF | |
17434 | cat confdefs.h >>conftest.$ac_ext | |
17435 | cat >>conftest.$ac_ext <<_ACEOF | |
17436 | /* end confdefs.h. */ | |
17437 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17438 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17439 | #define $ac_func innocuous_$ac_func | |
17440 | ||
bcb3dc3d | 17441 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17442 | which can conflict with char $ac_func (); below. |
17443 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17444 | <limits.h> exists even on freestanding compilers. */ | |
17445 | ||
17446 | #ifdef __STDC__ | |
17447 | # include <limits.h> | |
17448 | #else | |
17449 | # include <assert.h> | |
17450 | #endif | |
bcb3dc3d | 17451 | |
bec39cab | 17452 | #undef $ac_func |
bcb3dc3d | 17453 | |
b4e70030 | 17454 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17455 | #ifdef __cplusplus |
17456 | extern "C" | |
b4e70030 | 17457 | { |
bec39cab | 17458 | #endif |
b4e70030 JB |
17459 | /* We use char because int might match the return type of a gcc2 |
17460 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17461 | char $ac_func (); |
bcb3dc3d MK |
17462 | /* The GNU C library defines this for functions which it implements |
17463 | to always fail with ENOSYS. Some functions are actually named | |
17464 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17465 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bcb3dc3d | 17466 | choke me |
b4e70030 JB |
17467 | #else |
17468 | char (*f) () = $ac_func; | |
17469 | #endif | |
17470 | #ifdef __cplusplus | |
17471 | } | |
bcb3dc3d MK |
17472 | #endif |
17473 | ||
bec39cab AC |
17474 | int |
17475 | main () | |
17476 | { | |
b4e70030 | 17477 | return f != $ac_func; |
bec39cab AC |
17478 | ; |
17479 | return 0; | |
17480 | } | |
17481 | _ACEOF | |
17482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17484 | (eval $ac_link) 2>conftest.er1 | |
17485 | ac_status=$? | |
17486 | grep -v '^ *+' conftest.er1 >conftest.err | |
17487 | rm -f conftest.er1 | |
17488 | cat conftest.err >&5 | |
17489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17490 | (exit $ac_status); } && | |
b4e70030 JB |
17491 | { ac_try='test -z "$ac_c_werror_flag" |
17492 | || test ! -s conftest.err' | |
bec39cab AC |
17493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17494 | (eval $ac_try) 2>&5 | |
17495 | ac_status=$? | |
17496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17497 | (exit $ac_status); }; } && | |
17498 | { ac_try='test -s conftest$ac_exeext' | |
17499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17500 | (eval $ac_try) 2>&5 | |
17501 | ac_status=$? | |
17502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17503 | (exit $ac_status); }; }; then | |
17504 | eval "$as_ac_var=yes" | |
17505 | else | |
17506 | echo "$as_me: failed program was:" >&5 | |
17507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17508 | ||
b4e70030 | 17509 | eval "$as_ac_var=no" |
bec39cab AC |
17510 | fi |
17511 | rm -f conftest.err conftest.$ac_objext \ | |
17512 | conftest$ac_exeext conftest.$ac_ext | |
17513 | fi | |
b4e70030 JB |
17514 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17515 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17516 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17517 | cat >>confdefs.h <<_ACEOF | |
17518 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17519 | _ACEOF | |
bcb3dc3d | 17520 | |
bcb3dc3d MK |
17521 | fi |
17522 | done | |
17523 | ||
bec39cab | 17524 | |
a3828db0 MK |
17525 | |
17526 | ||
17527 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 17528 | do |
bec39cab | 17529 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17530 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17531 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17532 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17534 | else | |
17535 | cat >conftest.$ac_ext <<_ACEOF | |
17536 | /* confdefs.h. */ | |
17537 | _ACEOF | |
17538 | cat confdefs.h >>conftest.$ac_ext | |
17539 | cat >>conftest.$ac_ext <<_ACEOF | |
17540 | /* end confdefs.h. */ | |
17541 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17542 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17543 | #define $ac_func innocuous_$ac_func | |
17544 | ||
8b9cf735 | 17545 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17546 | which can conflict with char $ac_func (); below. |
17547 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17548 | <limits.h> exists even on freestanding compilers. */ | |
17549 | ||
17550 | #ifdef __STDC__ | |
17551 | # include <limits.h> | |
17552 | #else | |
17553 | # include <assert.h> | |
17554 | #endif | |
8b9cf735 | 17555 | |
bec39cab | 17556 | #undef $ac_func |
8b9cf735 | 17557 | |
b4e70030 | 17558 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17559 | #ifdef __cplusplus |
17560 | extern "C" | |
b4e70030 | 17561 | { |
a3828db0 | 17562 | #endif |
b4e70030 JB |
17563 | /* We use char because int might match the return type of a gcc2 |
17564 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17565 | char $ac_func (); |
17566 | /* The GNU C library defines this for functions which it implements | |
17567 | to always fail with ENOSYS. Some functions are actually named | |
17568 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17569 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17570 | choke me |
b4e70030 JB |
17571 | #else |
17572 | char (*f) () = $ac_func; | |
17573 | #endif | |
17574 | #ifdef __cplusplus | |
17575 | } | |
a3828db0 MK |
17576 | #endif |
17577 | ||
bec39cab AC |
17578 | int |
17579 | main () | |
17580 | { | |
b4e70030 | 17581 | return f != $ac_func; |
bec39cab AC |
17582 | ; |
17583 | return 0; | |
17584 | } | |
17585 | _ACEOF | |
a3828db0 MK |
17586 | rm -f conftest.$ac_objext conftest$ac_exeext |
17587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17588 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17589 | ac_status=$? |
17590 | grep -v '^ *+' conftest.er1 >conftest.err | |
17591 | rm -f conftest.er1 | |
17592 | cat conftest.err >&5 | |
17593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17594 | (exit $ac_status); } && | |
b4e70030 JB |
17595 | { ac_try='test -z "$ac_c_werror_flag" |
17596 | || test ! -s conftest.err' | |
bec39cab AC |
17597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17598 | (eval $ac_try) 2>&5 | |
17599 | ac_status=$? | |
17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17601 | (exit $ac_status); }; } && | |
a3828db0 | 17602 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17604 | (eval $ac_try) 2>&5 | |
17605 | ac_status=$? | |
17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17607 | (exit $ac_status); }; }; then | |
a3828db0 | 17608 | eval "$as_ac_var=yes" |
086ec9eb | 17609 | else |
bec39cab AC |
17610 | echo "$as_me: failed program was:" >&5 |
17611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17612 | ||
b4e70030 | 17613 | eval "$as_ac_var=no" |
a3828db0 MK |
17614 | fi |
17615 | rm -f conftest.err conftest.$ac_objext \ | |
17616 | conftest$ac_exeext conftest.$ac_ext | |
17617 | fi | |
b4e70030 JB |
17618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17619 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17620 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17621 | cat >>confdefs.h <<_ACEOF | |
17622 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17623 | _ACEOF | |
17624 | ||
086ec9eb | 17625 | fi |
a3828db0 MK |
17626 | done |
17627 | ||
17628 | ||
17629 | for ac_func in socketpair | |
17630 | do | |
17631 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17632 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17633 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17634 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
17635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17636 | else | |
17637 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17638 | /* confdefs.h. */ |
17639 | _ACEOF | |
17640 | cat confdefs.h >>conftest.$ac_ext | |
17641 | cat >>conftest.$ac_ext <<_ACEOF | |
17642 | /* end confdefs.h. */ | |
a3828db0 MK |
17643 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17644 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17645 | #define $ac_func innocuous_$ac_func | |
17646 | ||
17647 | /* System header to define __stub macros and hopefully few prototypes, | |
17648 | which can conflict with char $ac_func (); below. | |
17649 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17650 | <limits.h> exists even on freestanding compilers. */ | |
17651 | ||
17652 | #ifdef __STDC__ | |
17653 | # include <limits.h> | |
17654 | #else | |
17655 | # include <assert.h> | |
17656 | #endif | |
17657 | ||
17658 | #undef $ac_func | |
17659 | ||
b4e70030 | 17660 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17661 | #ifdef __cplusplus |
17662 | extern "C" | |
b4e70030 | 17663 | { |
a3828db0 | 17664 | #endif |
b4e70030 JB |
17665 | /* We use char because int might match the return type of a gcc2 |
17666 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17667 | char $ac_func (); |
17668 | /* The GNU C library defines this for functions which it implements | |
17669 | to always fail with ENOSYS. Some functions are actually named | |
17670 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17671 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17672 | choke me |
b4e70030 JB |
17673 | #else |
17674 | char (*f) () = $ac_func; | |
17675 | #endif | |
17676 | #ifdef __cplusplus | |
17677 | } | |
a3828db0 MK |
17678 | #endif |
17679 | ||
bec39cab AC |
17680 | int |
17681 | main () | |
17682 | { | |
b4e70030 | 17683 | return f != $ac_func; |
bec39cab AC |
17684 | ; |
17685 | return 0; | |
17686 | } | |
17687 | _ACEOF | |
a3828db0 MK |
17688 | rm -f conftest.$ac_objext conftest$ac_exeext |
17689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17690 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17691 | ac_status=$? |
17692 | grep -v '^ *+' conftest.er1 >conftest.err | |
17693 | rm -f conftest.er1 | |
17694 | cat conftest.err >&5 | |
17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17696 | (exit $ac_status); } && | |
b4e70030 JB |
17697 | { ac_try='test -z "$ac_c_werror_flag" |
17698 | || test ! -s conftest.err' | |
bec39cab AC |
17699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17700 | (eval $ac_try) 2>&5 | |
17701 | ac_status=$? | |
17702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17703 | (exit $ac_status); }; } && | |
a3828db0 | 17704 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17706 | (eval $ac_try) 2>&5 | |
17707 | ac_status=$? | |
17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17709 | (exit $ac_status); }; }; then | |
a3828db0 | 17710 | eval "$as_ac_var=yes" |
086ec9eb | 17711 | else |
bec39cab AC |
17712 | echo "$as_me: failed program was:" >&5 |
17713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17714 | ||
b4e70030 | 17715 | eval "$as_ac_var=no" |
086ec9eb | 17716 | fi |
a3828db0 MK |
17717 | rm -f conftest.err conftest.$ac_objext \ |
17718 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 17719 | fi |
b4e70030 JB |
17720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17721 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17722 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17723 | cat >>confdefs.h <<_ACEOF | |
17724 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17725 | _ACEOF |
086ec9eb MK |
17726 | |
17727 | fi | |
a3828db0 | 17728 | done |
086ec9eb | 17729 | |
a3828db0 MK |
17730 | |
17731 | for ac_func in syscall | |
17732 | do | |
17733 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17734 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17735 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17736 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
17738 | else |
17739 | cat >conftest.$ac_ext <<_ACEOF | |
17740 | /* confdefs.h. */ | |
17741 | _ACEOF | |
17742 | cat confdefs.h >>conftest.$ac_ext | |
17743 | cat >>conftest.$ac_ext <<_ACEOF | |
17744 | /* end confdefs.h. */ | |
a3828db0 MK |
17745 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17746 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17747 | #define $ac_func innocuous_$ac_func | |
17748 | ||
17749 | /* System header to define __stub macros and hopefully few prototypes, | |
17750 | which can conflict with char $ac_func (); below. | |
17751 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17752 | <limits.h> exists even on freestanding compilers. */ | |
17753 | ||
17754 | #ifdef __STDC__ | |
17755 | # include <limits.h> | |
17756 | #else | |
17757 | # include <assert.h> | |
17758 | #endif | |
17759 | ||
17760 | #undef $ac_func | |
17761 | ||
b4e70030 | 17762 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17763 | #ifdef __cplusplus |
17764 | extern "C" | |
b4e70030 | 17765 | { |
a3828db0 | 17766 | #endif |
b4e70030 JB |
17767 | /* We use char because int might match the return type of a gcc2 |
17768 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17769 | char $ac_func (); |
17770 | /* The GNU C library defines this for functions which it implements | |
17771 | to always fail with ENOSYS. Some functions are actually named | |
17772 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17773 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17774 | choke me |
b4e70030 JB |
17775 | #else |
17776 | char (*f) () = $ac_func; | |
17777 | #endif | |
17778 | #ifdef __cplusplus | |
17779 | } | |
c906108c | 17780 | #endif |
97bf5e38 | 17781 | |
bec39cab AC |
17782 | int |
17783 | main () | |
97bf5e38 | 17784 | { |
b4e70030 | 17785 | return f != $ac_func; |
bec39cab AC |
17786 | ; |
17787 | return 0; | |
97bf5e38 | 17788 | } |
bec39cab | 17789 | _ACEOF |
a3828db0 | 17790 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 17791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 17792 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 17793 | ac_status=$? |
a3828db0 MK |
17794 | grep -v '^ *+' conftest.er1 >conftest.err |
17795 | rm -f conftest.er1 | |
17796 | cat conftest.err >&5 | |
bec39cab | 17797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 17798 | (exit $ac_status); } && |
b4e70030 JB |
17799 | { ac_try='test -z "$ac_c_werror_flag" |
17800 | || test ! -s conftest.err' | |
a3828db0 MK |
17801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17802 | (eval $ac_try) 2>&5 | |
17803 | ac_status=$? | |
17804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17805 | (exit $ac_status); }; } && | |
17806 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
17807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17808 | (eval $ac_try) 2>&5 | |
17809 | ac_status=$? | |
17810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17811 | (exit $ac_status); }; }; then | |
a3828db0 | 17812 | eval "$as_ac_var=yes" |
c906108c | 17813 | else |
a3828db0 | 17814 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
17815 | sed 's/^/| /' conftest.$ac_ext >&5 |
17816 | ||
b4e70030 | 17817 | eval "$as_ac_var=no" |
97bf5e38 | 17818 | fi |
a3828db0 MK |
17819 | rm -f conftest.err conftest.$ac_objext \ |
17820 | conftest$ac_exeext conftest.$ac_ext | |
17821 | fi | |
b4e70030 JB |
17822 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17823 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17824 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17825 | cat >>confdefs.h <<_ACEOF | |
17826 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17827 | _ACEOF |
c906108c SS |
17828 | |
17829 | fi | |
a3828db0 | 17830 | done |
c906108c | 17831 | |
a3828db0 MK |
17832 | |
17833 | for ac_func in ttrace | |
17834 | do | |
17835 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17836 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17837 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17838 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 17840 | else |
bec39cab AC |
17841 | cat >conftest.$ac_ext <<_ACEOF |
17842 | /* confdefs.h. */ | |
17843 | _ACEOF | |
17844 | cat confdefs.h >>conftest.$ac_ext | |
17845 | cat >>conftest.$ac_ext <<_ACEOF | |
17846 | /* end confdefs.h. */ | |
a3828db0 MK |
17847 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17848 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17849 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 17850 | |
a3828db0 MK |
17851 | /* System header to define __stub macros and hopefully few prototypes, |
17852 | which can conflict with char $ac_func (); below. | |
17853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17854 | <limits.h> exists even on freestanding compilers. */ | |
17855 | ||
17856 | #ifdef __STDC__ | |
17857 | # include <limits.h> | |
17858 | #else | |
17859 | # include <assert.h> | |
17860 | #endif | |
17861 | ||
17862 | #undef $ac_func | |
17863 | ||
b4e70030 | 17864 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17865 | #ifdef __cplusplus |
17866 | extern "C" | |
b4e70030 | 17867 | { |
a3828db0 | 17868 | #endif |
b4e70030 JB |
17869 | /* We use char because int might match the return type of a gcc2 |
17870 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17871 | char $ac_func (); |
17872 | /* The GNU C library defines this for functions which it implements | |
17873 | to always fail with ENOSYS. Some functions are actually named | |
17874 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17875 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17876 | choke me |
b4e70030 JB |
17877 | #else |
17878 | char (*f) () = $ac_func; | |
17879 | #endif | |
17880 | #ifdef __cplusplus | |
17881 | } | |
a3828db0 | 17882 | #endif |
97bf5e38 | 17883 | |
bec39cab AC |
17884 | int |
17885 | main () | |
17886 | { | |
b4e70030 | 17887 | return f != $ac_func; |
bec39cab AC |
17888 | ; |
17889 | return 0; | |
17890 | } | |
17891 | _ACEOF | |
a3828db0 MK |
17892 | rm -f conftest.$ac_objext conftest$ac_exeext |
17893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17894 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17895 | ac_status=$? |
17896 | grep -v '^ *+' conftest.er1 >conftest.err | |
17897 | rm -f conftest.er1 | |
17898 | cat conftest.err >&5 | |
17899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17900 | (exit $ac_status); } && | |
b4e70030 JB |
17901 | { ac_try='test -z "$ac_c_werror_flag" |
17902 | || test ! -s conftest.err' | |
bec39cab AC |
17903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17904 | (eval $ac_try) 2>&5 | |
17905 | ac_status=$? | |
17906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17907 | (exit $ac_status); }; } && | |
a3828db0 | 17908 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17910 | (eval $ac_try) 2>&5 | |
17911 | ac_status=$? | |
17912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17913 | (exit $ac_status); }; }; then | |
a3828db0 | 17914 | eval "$as_ac_var=yes" |
b83266a0 | 17915 | else |
bec39cab AC |
17916 | echo "$as_me: failed program was:" >&5 |
17917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17918 | ||
b4e70030 | 17919 | eval "$as_ac_var=no" |
b83266a0 | 17920 | fi |
a3828db0 MK |
17921 | rm -f conftest.err conftest.$ac_objext \ |
17922 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 17923 | fi |
b4e70030 JB |
17924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17925 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17926 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17927 | cat >>confdefs.h <<_ACEOF | |
17928 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17929 | _ACEOF |
b83266a0 | 17930 | |
97bf5e38 | 17931 | fi |
a3828db0 | 17932 | done |
b83266a0 | 17933 | |
a3828db0 MK |
17934 | |
17935 | for ac_func in wborder | |
17936 | do | |
17937 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17938 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17939 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17940 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17942 | else | |
17943 | cat >conftest.$ac_ext <<_ACEOF | |
17944 | /* confdefs.h. */ | |
17945 | _ACEOF | |
17946 | cat confdefs.h >>conftest.$ac_ext | |
17947 | cat >>conftest.$ac_ext <<_ACEOF | |
17948 | /* end confdefs.h. */ | |
a3828db0 MK |
17949 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17950 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17951 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 17952 | |
a3828db0 MK |
17953 | /* System header to define __stub macros and hopefully few prototypes, |
17954 | which can conflict with char $ac_func (); below. | |
17955 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17956 | <limits.h> exists even on freestanding compilers. */ | |
17957 | ||
17958 | #ifdef __STDC__ | |
17959 | # include <limits.h> | |
17960 | #else | |
17961 | # include <assert.h> | |
17962 | #endif | |
17963 | ||
17964 | #undef $ac_func | |
17965 | ||
b4e70030 | 17966 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17967 | #ifdef __cplusplus |
17968 | extern "C" | |
b4e70030 | 17969 | { |
a3828db0 | 17970 | #endif |
b4e70030 JB |
17971 | /* We use char because int might match the return type of a gcc2 |
17972 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17973 | char $ac_func (); |
17974 | /* The GNU C library defines this for functions which it implements | |
17975 | to always fail with ENOSYS. Some functions are actually named | |
17976 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17977 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17978 | choke me |
b4e70030 JB |
17979 | #else |
17980 | char (*f) () = $ac_func; | |
17981 | #endif | |
17982 | #ifdef __cplusplus | |
17983 | } | |
a3828db0 | 17984 | #endif |
97bf5e38 | 17985 | |
bec39cab AC |
17986 | int |
17987 | main () | |
17988 | { | |
b4e70030 | 17989 | return f != $ac_func; |
bec39cab AC |
17990 | ; |
17991 | return 0; | |
17992 | } | |
17993 | _ACEOF | |
a3828db0 MK |
17994 | rm -f conftest.$ac_objext conftest$ac_exeext |
17995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17996 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17997 | ac_status=$? |
17998 | grep -v '^ *+' conftest.er1 >conftest.err | |
17999 | rm -f conftest.er1 | |
18000 | cat conftest.err >&5 | |
18001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18002 | (exit $ac_status); } && | |
b4e70030 JB |
18003 | { ac_try='test -z "$ac_c_werror_flag" |
18004 | || test ! -s conftest.err' | |
bec39cab AC |
18005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18006 | (eval $ac_try) 2>&5 | |
18007 | ac_status=$? | |
18008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18009 | (exit $ac_status); }; } && | |
a3828db0 | 18010 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
18011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18012 | (eval $ac_try) 2>&5 | |
18013 | ac_status=$? | |
18014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18015 | (exit $ac_status); }; }; then | |
a3828db0 | 18016 | eval "$as_ac_var=yes" |
a4db0f07 | 18017 | else |
bec39cab AC |
18018 | echo "$as_me: failed program was:" >&5 |
18019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18020 | ||
b4e70030 | 18021 | eval "$as_ac_var=no" |
a4db0f07 | 18022 | fi |
a3828db0 MK |
18023 | rm -f conftest.err conftest.$ac_objext \ |
18024 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 18025 | fi |
b4e70030 JB |
18026 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18027 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
18028 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18029 | cat >>confdefs.h <<_ACEOF | |
18030 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 18031 | _ACEOF |
a4db0f07 RH |
18032 | |
18033 | fi | |
a3828db0 | 18034 | done |
c906108c | 18035 | |
06825bd1 | 18036 | |
a3828db0 MK |
18037 | # Check the return and argument types of ptrace. No canned test for |
18038 | # this, so roll our own. | |
18039 | gdb_ptrace_headers=' | |
18040 | #if HAVE_SYS_TYPES_H | |
18041 | # include <sys/types.h> | |
18042 | #endif | |
18043 | #if HAVE_SYS_PTRACE_H | |
18044 | # include <sys/ptrace.h> | |
18045 | #endif | |
18046 | #if HAVE_UNISTD_H | |
18047 | # include <unistd.h> | |
18048 | #endif | |
18049 | ' | |
18050 | # There is no point in checking if we don't have a prototype. | |
b4e70030 JB |
18051 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
18052 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
a3828db0 | 18053 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
18054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18055 | else | |
18056 | cat >conftest.$ac_ext <<_ACEOF | |
18057 | /* confdefs.h. */ | |
18058 | _ACEOF | |
18059 | cat confdefs.h >>conftest.$ac_ext | |
18060 | cat >>conftest.$ac_ext <<_ACEOF | |
18061 | /* end confdefs.h. */ | |
a3828db0 MK |
18062 | $gdb_ptrace_headers |
18063 | ||
bec39cab AC |
18064 | int |
18065 | main () | |
18066 | { | |
a3828db0 MK |
18067 | #ifndef ptrace |
18068 | char *p = (char *) ptrace; | |
06825bd1 | 18069 | #endif |
a3828db0 | 18070 | |
bec39cab AC |
18071 | ; |
18072 | return 0; | |
18073 | } | |
18074 | _ACEOF | |
18075 | rm -f conftest.$ac_objext | |
18076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18077 | (eval $ac_compile) 2>conftest.er1 | |
18078 | ac_status=$? | |
18079 | grep -v '^ *+' conftest.er1 >conftest.err | |
18080 | rm -f conftest.er1 | |
18081 | cat conftest.err >&5 | |
18082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18083 | (exit $ac_status); } && | |
b4e70030 JB |
18084 | { ac_try='test -z "$ac_c_werror_flag" |
18085 | || test ! -s conftest.err' | |
bec39cab AC |
18086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18087 | (eval $ac_try) 2>&5 | |
18088 | ac_status=$? | |
18089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18090 | (exit $ac_status); }; } && | |
18091 | { ac_try='test -s conftest.$ac_objext' | |
18092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18093 | (eval $ac_try) 2>&5 | |
18094 | ac_status=$? | |
18095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18096 | (exit $ac_status); }; }; then | |
a3828db0 | 18097 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 18098 | else |
bec39cab AC |
18099 | echo "$as_me: failed program was:" >&5 |
18100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18101 | ||
b4e70030 | 18102 | ac_cv_have_decl_ptrace=no |
06825bd1 | 18103 | fi |
bec39cab | 18104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 18105 | fi |
b4e70030 JB |
18106 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
18107 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
a3828db0 | 18108 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 18109 | |
a3828db0 MK |
18110 | cat >>confdefs.h <<_ACEOF |
18111 | #define HAVE_DECL_PTRACE 1 | |
18112 | _ACEOF | |
bec39cab | 18113 | |
bec39cab | 18114 | |
a3828db0 MK |
18115 | else |
18116 | cat >>confdefs.h <<_ACEOF | |
18117 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 18118 | _ACEOF |
06825bd1 | 18119 | |
a3828db0 MK |
18120 | |
18121 | : ${gdb_cv_func_ptrace_ret='int'} | |
18122 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
18123 | ||
06825bd1 MK |
18124 | fi |
18125 | ||
a3828db0 MK |
18126 | |
18127 | # Check return type. | |
b4e70030 JB |
18128 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
18129 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
a3828db0 | 18130 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
18131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18132 | else | |
18133 | cat >conftest.$ac_ext <<_ACEOF | |
18134 | /* confdefs.h. */ | |
18135 | _ACEOF | |
18136 | cat confdefs.h >>conftest.$ac_ext | |
18137 | cat >>conftest.$ac_ext <<_ACEOF | |
18138 | /* end confdefs.h. */ | |
a3828db0 | 18139 | $gdb_ptrace_headers |
bec39cab AC |
18140 | int |
18141 | main () | |
18142 | { | |
a3828db0 | 18143 | extern int ptrace (); |
bec39cab AC |
18144 | ; |
18145 | return 0; | |
18146 | } | |
18147 | _ACEOF | |
18148 | rm -f conftest.$ac_objext | |
18149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18150 | (eval $ac_compile) 2>conftest.er1 | |
18151 | ac_status=$? | |
18152 | grep -v '^ *+' conftest.er1 >conftest.err | |
18153 | rm -f conftest.er1 | |
18154 | cat conftest.err >&5 | |
18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18156 | (exit $ac_status); } && | |
b4e70030 JB |
18157 | { ac_try='test -z "$ac_c_werror_flag" |
18158 | || test ! -s conftest.err' | |
bec39cab AC |
18159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18160 | (eval $ac_try) 2>&5 | |
18161 | ac_status=$? | |
18162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18163 | (exit $ac_status); }; } && | |
18164 | { ac_try='test -s conftest.$ac_objext' | |
18165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18166 | (eval $ac_try) 2>&5 | |
18167 | ac_status=$? | |
18168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18169 | (exit $ac_status); }; }; then | |
a3828db0 | 18170 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 18171 | else |
bec39cab AC |
18172 | echo "$as_me: failed program was:" >&5 |
18173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18174 | ||
b4e70030 | 18175 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 18176 | fi |
bec39cab | 18177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 18178 | fi |
b4e70030 JB |
18179 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
18180 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 18181 | |
a3828db0 MK |
18182 | cat >>confdefs.h <<_ACEOF |
18183 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 18184 | _ACEOF |
70f9f479 | 18185 | |
a3828db0 | 18186 | # Check argument types. |
b4e70030 JB |
18187 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
18188 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
a3828db0 | 18189 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
18190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18191 | else | |
a3828db0 MK |
18192 | |
18193 | for gdb_arg1 in 'int' 'long'; do | |
18194 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
18195 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
18196 | for gdb_arg4 in 'int' 'long'; do | |
18197 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
18198 | /* confdefs.h. */ |
18199 | _ACEOF | |
18200 | cat confdefs.h >>conftest.$ac_ext | |
18201 | cat >>conftest.$ac_ext <<_ACEOF | |
18202 | /* end confdefs.h. */ | |
a3828db0 | 18203 | $gdb_ptrace_headers |
bec39cab AC |
18204 | int |
18205 | main () | |
18206 | { | |
a3828db0 MK |
18207 | |
18208 | extern $gdb_cv_func_ptrace_ret | |
18209 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
18210 | ||
bec39cab AC |
18211 | ; |
18212 | return 0; | |
18213 | } | |
18214 | _ACEOF | |
18215 | rm -f conftest.$ac_objext | |
18216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18217 | (eval $ac_compile) 2>conftest.er1 | |
18218 | ac_status=$? | |
18219 | grep -v '^ *+' conftest.er1 >conftest.err | |
18220 | rm -f conftest.er1 | |
18221 | cat conftest.err >&5 | |
18222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18223 | (exit $ac_status); } && | |
b4e70030 JB |
18224 | { ac_try='test -z "$ac_c_werror_flag" |
18225 | || test ! -s conftest.err' | |
bec39cab AC |
18226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18227 | (eval $ac_try) 2>&5 | |
18228 | ac_status=$? | |
18229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18230 | (exit $ac_status); }; } && | |
18231 | { ac_try='test -s conftest.$ac_objext' | |
18232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18233 | (eval $ac_try) 2>&5 | |
18234 | ac_status=$? | |
18235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18236 | (exit $ac_status); }; }; then | |
a3828db0 MK |
18237 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
18238 | break 4; | |
5c7f2947 | 18239 | else |
bec39cab AC |
18240 | echo "$as_me: failed program was:" >&5 |
18241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18242 | ||
5c7f2947 | 18243 | fi |
bec39cab | 18244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18245 | for gdb_arg5 in 'int *' 'int' 'long'; do |
18246 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
18247 | /* confdefs.h. */ |
18248 | _ACEOF | |
18249 | cat confdefs.h >>conftest.$ac_ext | |
18250 | cat >>conftest.$ac_ext <<_ACEOF | |
18251 | /* end confdefs.h. */ | |
a3828db0 | 18252 | $gdb_ptrace_headers |
bec39cab AC |
18253 | int |
18254 | main () | |
18255 | { | |
a3828db0 MK |
18256 | |
18257 | extern $gdb_cv_func_ptrace_ret | |
18258 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
18259 | ||
bec39cab AC |
18260 | ; |
18261 | return 0; | |
18262 | } | |
18263 | _ACEOF | |
18264 | rm -f conftest.$ac_objext | |
18265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18266 | (eval $ac_compile) 2>conftest.er1 | |
18267 | ac_status=$? | |
18268 | grep -v '^ *+' conftest.er1 >conftest.err | |
18269 | rm -f conftest.er1 | |
18270 | cat conftest.err >&5 | |
18271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18272 | (exit $ac_status); } && | |
b4e70030 JB |
18273 | { ac_try='test -z "$ac_c_werror_flag" |
18274 | || test ! -s conftest.err' | |
bec39cab AC |
18275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18276 | (eval $ac_try) 2>&5 | |
18277 | ac_status=$? | |
18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18279 | (exit $ac_status); }; } && | |
18280 | { ac_try='test -s conftest.$ac_objext' | |
18281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18282 | (eval $ac_try) 2>&5 | |
18283 | ac_status=$? | |
18284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18285 | (exit $ac_status); }; }; then | |
a3828db0 MK |
18286 | |
18287 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
18288 | break 5; | |
78434e59 | 18289 | else |
bec39cab AC |
18290 | echo "$as_me: failed program was:" >&5 |
18291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18292 | ||
78434e59 | 18293 | fi |
bec39cab | 18294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18295 | done |
18296 | done | |
18297 | done | |
18298 | done | |
18299 | done | |
18300 | # Provide a safe default value. | |
18301 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
18302 | ||
78434e59 | 18303 | fi |
b4e70030 JB |
18304 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
18305 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
a3828db0 MK |
18306 | ac_save_IFS=$IFS; IFS=',' |
18307 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
18308 | IFS=$ac_save_IFS | |
18309 | shift | |
bec39cab | 18310 | |
a3828db0 MK |
18311 | cat >>confdefs.h <<_ACEOF |
18312 | #define PTRACE_TYPE_ARG3 $3 | |
18313 | _ACEOF | |
18314 | ||
18315 | if test -n "$5"; then | |
18316 | ||
18317 | cat >>confdefs.h <<_ACEOF | |
18318 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 18319 | _ACEOF |
78434e59 MK |
18320 | |
18321 | fi | |
18322 | ||
a3828db0 | 18323 | if test "$cross_compiling" = no; then |
b4e70030 JB |
18324 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
18325 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 18326 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 18327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
18328 | else |
18329 | if test "$cross_compiling" = yes; then | |
18330 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
18331 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
18332 | { (exit 1); exit 1; }; } | |
bec39cab AC |
18333 | else |
18334 | cat >conftest.$ac_ext <<_ACEOF | |
18335 | /* confdefs.h. */ | |
18336 | _ACEOF | |
18337 | cat confdefs.h >>conftest.$ac_ext | |
18338 | cat >>conftest.$ac_ext <<_ACEOF | |
18339 | /* end confdefs.h. */ | |
b4e70030 JB |
18340 | #if HAVE_UNISTD_H |
18341 | # include <unistd.h> | |
18342 | #endif | |
18343 | ||
bec39cab AC |
18344 | int |
18345 | main () | |
18346 | { | |
a3828db0 MK |
18347 | /* If this system has a BSD-style setpgrp which takes arguments, |
18348 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
18349 | exit successfully. */ | |
b4e70030 | 18350 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
bec39cab AC |
18351 | ; |
18352 | return 0; | |
18353 | } | |
18354 | _ACEOF | |
a3828db0 MK |
18355 | rm -f conftest$ac_exeext |
18356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18357 | (eval $ac_link) 2>&5 | |
bec39cab AC |
18358 | ac_status=$? |
18359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 18360 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
18361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18362 | (eval $ac_try) 2>&5 | |
18363 | ac_status=$? | |
18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18365 | (exit $ac_status); }; }; then | |
a3828db0 | 18366 | ac_cv_func_setpgrp_void=no |
c906108c | 18367 | else |
a3828db0 MK |
18368 | echo "$as_me: program exited with status $ac_status" >&5 |
18369 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
18370 | sed 's/^/| /' conftest.$ac_ext >&5 |
18371 | ||
a3828db0 MK |
18372 | ( exit $ac_status ) |
18373 | ac_cv_func_setpgrp_void=yes | |
c906108c | 18374 | fi |
b4e70030 | 18375 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18376 | fi |
a3828db0 | 18377 | fi |
b4e70030 JB |
18378 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
18379 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 MK |
18380 | if test $ac_cv_func_setpgrp_void = yes; then |
18381 | ||
18382 | cat >>confdefs.h <<\_ACEOF | |
18383 | #define SETPGRP_VOID 1 | |
bec39cab | 18384 | _ACEOF |
97bf5e38 MK |
18385 | |
18386 | fi | |
a3828db0 MK |
18387 | |
18388 | else | |
b4e70030 JB |
18389 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
18390 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 18391 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 18392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 18393 | else |
bec39cab AC |
18394 | cat >conftest.$ac_ext <<_ACEOF |
18395 | /* confdefs.h. */ | |
18396 | _ACEOF | |
18397 | cat confdefs.h >>conftest.$ac_ext | |
18398 | cat >>conftest.$ac_ext <<_ACEOF | |
18399 | /* end confdefs.h. */ | |
a3828db0 MK |
18400 | |
18401 | #include <unistd.h> | |
18402 | ||
bec39cab AC |
18403 | int |
18404 | main () | |
18405 | { | |
a3828db0 MK |
18406 | |
18407 | if (setpgrp(1,1) == -1) | |
18408 | exit (0); | |
18409 | else | |
18410 | exit (1); | |
18411 | ||
bec39cab AC |
18412 | ; |
18413 | return 0; | |
18414 | } | |
18415 | _ACEOF | |
18416 | rm -f conftest.$ac_objext | |
18417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18418 | (eval $ac_compile) 2>conftest.er1 | |
18419 | ac_status=$? | |
18420 | grep -v '^ *+' conftest.er1 >conftest.err | |
18421 | rm -f conftest.er1 | |
18422 | cat conftest.err >&5 | |
18423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18424 | (exit $ac_status); } && | |
b4e70030 JB |
18425 | { ac_try='test -z "$ac_c_werror_flag" |
18426 | || test ! -s conftest.err' | |
bec39cab AC |
18427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18428 | (eval $ac_try) 2>&5 | |
18429 | ac_status=$? | |
18430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18431 | (exit $ac_status); }; } && | |
18432 | { ac_try='test -s conftest.$ac_objext' | |
18433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18434 | (eval $ac_try) 2>&5 | |
18435 | ac_status=$? | |
18436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18437 | (exit $ac_status); }; }; then | |
a3828db0 | 18438 | ac_cv_func_setpgrp_void=no |
c906108c | 18439 | else |
bec39cab AC |
18440 | echo "$as_me: failed program was:" >&5 |
18441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18442 | ||
b4e70030 | 18443 | ac_cv_func_setpgrp_void=yes |
c906108c | 18444 | fi |
bec39cab | 18445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18446 | fi |
b4e70030 JB |
18447 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
18448 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 | 18449 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 18450 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 18451 | #define SETPGRP_VOID 1 |
bec39cab | 18452 | _ACEOF |
c3f6f71d | 18453 | |
a3828db0 | 18454 | fi |
c906108c SS |
18455 | fi |
18456 | ||
a3828db0 MK |
18457 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
18458 | # since sigsetjmp might only be defined as a macro. | |
b4e70030 JB |
18459 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
18460 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
a3828db0 | 18461 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
18462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18463 | else | |
18464 | cat >conftest.$ac_ext <<_ACEOF | |
18465 | /* confdefs.h. */ | |
18466 | _ACEOF | |
18467 | cat confdefs.h >>conftest.$ac_ext | |
18468 | cat >>conftest.$ac_ext <<_ACEOF | |
18469 | /* end confdefs.h. */ | |
a3828db0 MK |
18470 | |
18471 | #include <setjmp.h> | |
18472 | ||
bec39cab AC |
18473 | int |
18474 | main () | |
18475 | { | |
a3828db0 | 18476 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
18477 | ; |
18478 | return 0; | |
18479 | } | |
18480 | _ACEOF | |
18481 | rm -f conftest.$ac_objext | |
18482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18483 | (eval $ac_compile) 2>conftest.er1 | |
18484 | ac_status=$? | |
18485 | grep -v '^ *+' conftest.er1 >conftest.err | |
18486 | rm -f conftest.er1 | |
18487 | cat conftest.err >&5 | |
18488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18489 | (exit $ac_status); } && | |
b4e70030 JB |
18490 | { ac_try='test -z "$ac_c_werror_flag" |
18491 | || test ! -s conftest.err' | |
bec39cab AC |
18492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18493 | (eval $ac_try) 2>&5 | |
18494 | ac_status=$? | |
18495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18496 | (exit $ac_status); }; } && | |
18497 | { ac_try='test -s conftest.$ac_objext' | |
18498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18499 | (eval $ac_try) 2>&5 | |
18500 | ac_status=$? | |
18501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18502 | (exit $ac_status); }; }; then | |
a3828db0 | 18503 | gdb_cv_func_sigsetjmp=yes |
c906108c | 18504 | else |
bec39cab AC |
18505 | echo "$as_me: failed program was:" >&5 |
18506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18507 | ||
b4e70030 | 18508 | gdb_cv_func_sigsetjmp=no |
c906108c | 18509 | fi |
bec39cab | 18510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18511 | fi |
b4e70030 JB |
18512 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
18513 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
a3828db0 | 18514 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 18515 | |
a3828db0 MK |
18516 | cat >>confdefs.h <<\_ACEOF |
18517 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 18518 | _ACEOF |
c906108c | 18519 | |
97bf5e38 | 18520 | fi |
c906108c | 18521 | |
a3828db0 MK |
18522 | # Assume we'll default to using the included libiberty regex. |
18523 | gdb_use_included_regex=yes | |
18524 | ||
18525 | # However, if the system regex is GNU regex, then default to *not* | |
18526 | # using the included regex. | |
b4e70030 JB |
18527 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
18528 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
a3828db0 | 18529 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
18530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18531 | else | |
18532 | cat >conftest.$ac_ext <<_ACEOF | |
18533 | /* confdefs.h. */ | |
18534 | _ACEOF | |
18535 | cat confdefs.h >>conftest.$ac_ext | |
18536 | cat >>conftest.$ac_ext <<_ACEOF | |
18537 | /* end confdefs.h. */ | |
a3828db0 | 18538 | #include <gnu-versions.h> |
bec39cab AC |
18539 | int |
18540 | main () | |
18541 | { | |
a3828db0 MK |
18542 | #define REGEX_INTERFACE_VERSION 1 |
18543 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
18544 | # error "Version mismatch" | |
18545 | #endif | |
bec39cab AC |
18546 | ; |
18547 | return 0; | |
18548 | } | |
18549 | _ACEOF | |
18550 | rm -f conftest.$ac_objext | |
18551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18552 | (eval $ac_compile) 2>conftest.er1 | |
18553 | ac_status=$? | |
18554 | grep -v '^ *+' conftest.er1 >conftest.err | |
18555 | rm -f conftest.er1 | |
18556 | cat conftest.err >&5 | |
18557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18558 | (exit $ac_status); } && | |
b4e70030 JB |
18559 | { ac_try='test -z "$ac_c_werror_flag" |
18560 | || test ! -s conftest.err' | |
bec39cab AC |
18561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18562 | (eval $ac_try) 2>&5 | |
18563 | ac_status=$? | |
18564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18565 | (exit $ac_status); }; } && | |
18566 | { ac_try='test -s conftest.$ac_objext' | |
18567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18568 | (eval $ac_try) 2>&5 | |
18569 | ac_status=$? | |
18570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18571 | (exit $ac_status); }; }; then | |
a3828db0 | 18572 | gdb_cv_have_gnu_regex=yes |
c906108c | 18573 | else |
bec39cab AC |
18574 | echo "$as_me: failed program was:" >&5 |
18575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18576 | ||
b4e70030 | 18577 | gdb_cv_have_gnu_regex=no |
c906108c | 18578 | fi |
bec39cab | 18579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18580 | fi |
b4e70030 JB |
18581 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
18582 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
a3828db0 MK |
18583 | if test $gdb_cv_have_gnu_regex = yes; then |
18584 | gdb_use_included_regex=no | |
18585 | fi | |
c906108c | 18586 | |
a3828db0 | 18587 | |
b4e70030 | 18588 | # Check whether --with-included-regex or --without-included-regex was given. |
a3828db0 | 18589 | if test "${with_included_regex+set}" = set; then |
b4e70030 JB |
18590 | withval="$with_included_regex" |
18591 | gdb_with_regex=$withval | |
a3828db0 MK |
18592 | else |
18593 | gdb_with_regex=$gdb_use_included_regex | |
b4e70030 | 18594 | fi; |
a3828db0 MK |
18595 | if test "$gdb_with_regex" = yes; then |
18596 | ||
18597 | cat >>confdefs.h <<\_ACEOF | |
18598 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 18599 | _ACEOF |
c906108c | 18600 | |
97bf5e38 | 18601 | fi |
c906108c | 18602 | |
5c45e068 | 18603 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
b4e70030 JB |
18604 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
18605 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
5c45e068 | 18606 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
18607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18608 | else | |
18609 | cat >conftest.$ac_ext <<_ACEOF | |
18610 | /* confdefs.h. */ | |
18611 | _ACEOF | |
18612 | cat confdefs.h >>conftest.$ac_ext | |
18613 | cat >>conftest.$ac_ext <<_ACEOF | |
18614 | /* end confdefs.h. */ | |
a3828db0 MK |
18615 | #include <sys/param.h> |
18616 | #include <sys/proc.h> | |
5c45e068 MK |
18617 | |
18618 | ||
bec39cab AC |
18619 | int |
18620 | main () | |
18621 | { | |
5c45e068 MK |
18622 | static struct thread ac_aggr; |
18623 | if (ac_aggr.td_pcb) | |
18624 | return 0; | |
bec39cab AC |
18625 | ; |
18626 | return 0; | |
18627 | } | |
18628 | _ACEOF | |
18629 | rm -f conftest.$ac_objext | |
18630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18631 | (eval $ac_compile) 2>conftest.er1 | |
18632 | ac_status=$? | |
18633 | grep -v '^ *+' conftest.er1 >conftest.err | |
18634 | rm -f conftest.er1 | |
18635 | cat conftest.err >&5 | |
18636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18637 | (exit $ac_status); } && | |
b4e70030 JB |
18638 | { ac_try='test -z "$ac_c_werror_flag" |
18639 | || test ! -s conftest.err' | |
bec39cab AC |
18640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18641 | (eval $ac_try) 2>&5 | |
18642 | ac_status=$? | |
18643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18644 | (exit $ac_status); }; } && | |
18645 | { ac_try='test -s conftest.$ac_objext' | |
18646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18647 | (eval $ac_try) 2>&5 | |
18648 | ac_status=$? | |
18649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18650 | (exit $ac_status); }; }; then | |
5c45e068 | 18651 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 18652 | else |
bec39cab AC |
18653 | echo "$as_me: failed program was:" >&5 |
18654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18655 | ||
b4e70030 | 18656 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18657 | /* confdefs.h. */ |
18658 | _ACEOF | |
18659 | cat confdefs.h >>conftest.$ac_ext | |
18660 | cat >>conftest.$ac_ext <<_ACEOF | |
18661 | /* end confdefs.h. */ | |
18662 | #include <sys/param.h> | |
18663 | #include <sys/proc.h> | |
18664 | ||
18665 | ||
18666 | int | |
18667 | main () | |
18668 | { | |
18669 | static struct thread ac_aggr; | |
18670 | if (sizeof ac_aggr.td_pcb) | |
18671 | return 0; | |
18672 | ; | |
18673 | return 0; | |
18674 | } | |
18675 | _ACEOF | |
18676 | rm -f conftest.$ac_objext | |
18677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18678 | (eval $ac_compile) 2>conftest.er1 | |
18679 | ac_status=$? | |
18680 | grep -v '^ *+' conftest.er1 >conftest.err | |
18681 | rm -f conftest.er1 | |
18682 | cat conftest.err >&5 | |
18683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18684 | (exit $ac_status); } && | |
b4e70030 JB |
18685 | { ac_try='test -z "$ac_c_werror_flag" |
18686 | || test ! -s conftest.err' | |
5c45e068 MK |
18687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18688 | (eval $ac_try) 2>&5 | |
18689 | ac_status=$? | |
18690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18691 | (exit $ac_status); }; } && | |
18692 | { ac_try='test -s conftest.$ac_objext' | |
18693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18694 | (eval $ac_try) 2>&5 | |
18695 | ac_status=$? | |
18696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18697 | (exit $ac_status); }; }; then | |
18698 | ac_cv_member_struct_thread_td_pcb=yes | |
18699 | else | |
18700 | echo "$as_me: failed program was:" >&5 | |
18701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18702 | ||
b4e70030 | 18703 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 MK |
18704 | fi |
18705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 18706 | fi |
bec39cab | 18707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18708 | fi |
b4e70030 JB |
18709 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
18710 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
5c45e068 | 18711 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 18712 | |
5c45e068 | 18713 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 18714 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 18715 | _ACEOF |
c906108c | 18716 | |
5c45e068 | 18717 | |
97bf5e38 | 18718 | fi |
c906108c | 18719 | |
5c45e068 | 18720 | |
a3828db0 | 18721 | # See if <sys/lwp.h> defines `struct lwp`. |
b4e70030 JB |
18722 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
18723 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
a3828db0 | 18724 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
18725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18726 | else | |
18727 | cat >conftest.$ac_ext <<_ACEOF | |
18728 | /* confdefs.h. */ | |
18729 | _ACEOF | |
18730 | cat confdefs.h >>conftest.$ac_ext | |
18731 | cat >>conftest.$ac_ext <<_ACEOF | |
18732 | /* end confdefs.h. */ | |
a3828db0 MK |
18733 | #include <sys/param.h> |
18734 | #include <sys/lwp.h> | |
bec39cab AC |
18735 | int |
18736 | main () | |
18737 | { | |
a3828db0 | 18738 | struct lwp l; |
bec39cab AC |
18739 | ; |
18740 | return 0; | |
18741 | } | |
18742 | _ACEOF | |
18743 | rm -f conftest.$ac_objext | |
18744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18745 | (eval $ac_compile) 2>conftest.er1 | |
18746 | ac_status=$? | |
18747 | grep -v '^ *+' conftest.er1 >conftest.err | |
18748 | rm -f conftest.er1 | |
18749 | cat conftest.err >&5 | |
18750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18751 | (exit $ac_status); } && | |
b4e70030 JB |
18752 | { ac_try='test -z "$ac_c_werror_flag" |
18753 | || test ! -s conftest.err' | |
bec39cab AC |
18754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18755 | (eval $ac_try) 2>&5 | |
18756 | ac_status=$? | |
18757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18758 | (exit $ac_status); }; } && | |
18759 | { ac_try='test -s conftest.$ac_objext' | |
18760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18761 | (eval $ac_try) 2>&5 | |
18762 | ac_status=$? | |
18763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18764 | (exit $ac_status); }; }; then | |
a3828db0 | 18765 | gdb_cv_struct_lwp=yes |
c906108c | 18766 | else |
bec39cab AC |
18767 | echo "$as_me: failed program was:" >&5 |
18768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18769 | ||
b4e70030 | 18770 | gdb_cv_struct_lwp=no |
c906108c | 18771 | fi |
bec39cab | 18772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18773 | fi |
b4e70030 JB |
18774 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
18775 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
a3828db0 | 18776 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 18777 | |
a3828db0 MK |
18778 | cat >>confdefs.h <<\_ACEOF |
18779 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 18780 | _ACEOF |
c906108c | 18781 | |
97bf5e38 | 18782 | fi |
c906108c | 18783 | |
a3828db0 | 18784 | # See if <machine/reg.h> degines `struct reg'. |
b4e70030 JB |
18785 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
18786 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
a3828db0 | 18787 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
18788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18789 | else | |
18790 | cat >conftest.$ac_ext <<_ACEOF | |
18791 | /* confdefs.h. */ | |
18792 | _ACEOF | |
18793 | cat confdefs.h >>conftest.$ac_ext | |
18794 | cat >>conftest.$ac_ext <<_ACEOF | |
18795 | /* end confdefs.h. */ | |
a3828db0 MK |
18796 | #include <sys/types.h> |
18797 | #include <machine/reg.h> | |
bec39cab AC |
18798 | int |
18799 | main () | |
18800 | { | |
a3828db0 | 18801 | struct reg r; |
bec39cab AC |
18802 | ; |
18803 | return 0; | |
18804 | } | |
18805 | _ACEOF | |
18806 | rm -f conftest.$ac_objext | |
18807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18808 | (eval $ac_compile) 2>conftest.er1 | |
18809 | ac_status=$? | |
18810 | grep -v '^ *+' conftest.er1 >conftest.err | |
18811 | rm -f conftest.er1 | |
18812 | cat conftest.err >&5 | |
18813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18814 | (exit $ac_status); } && | |
b4e70030 JB |
18815 | { ac_try='test -z "$ac_c_werror_flag" |
18816 | || test ! -s conftest.err' | |
bec39cab AC |
18817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18818 | (eval $ac_try) 2>&5 | |
18819 | ac_status=$? | |
18820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18821 | (exit $ac_status); }; } && | |
18822 | { ac_try='test -s conftest.$ac_objext' | |
18823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18824 | (eval $ac_try) 2>&5 | |
18825 | ac_status=$? | |
18826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18827 | (exit $ac_status); }; }; then | |
a3828db0 | 18828 | gdb_cv_struct_reg=yes |
27ca5dad | 18829 | else |
bec39cab AC |
18830 | echo "$as_me: failed program was:" >&5 |
18831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18832 | ||
b4e70030 | 18833 | gdb_cv_struct_reg=no |
27ca5dad | 18834 | fi |
bec39cab | 18835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 18836 | fi |
b4e70030 JB |
18837 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
18838 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
a3828db0 | 18839 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
18840 | |
18841 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18842 | #define HAVE_STRUCT_REG 1 |
bec39cab | 18843 | _ACEOF |
27ca5dad MC |
18844 | |
18845 | fi | |
97bf5e38 | 18846 | |
a3828db0 MK |
18847 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
18848 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
b4e70030 JB |
18849 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
18850 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
5c45e068 | 18851 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 18852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18853 | else |
bec39cab AC |
18854 | cat >conftest.$ac_ext <<_ACEOF |
18855 | /* confdefs.h. */ | |
18856 | _ACEOF | |
18857 | cat confdefs.h >>conftest.$ac_ext | |
18858 | cat >>conftest.$ac_ext <<_ACEOF | |
18859 | /* end confdefs.h. */ | |
a3828db0 | 18860 | #include <machine/reg.h> |
5c45e068 MK |
18861 | |
18862 | int | |
18863 | main () | |
18864 | { | |
18865 | static struct reg ac_aggr; | |
18866 | if (ac_aggr.r_fs) | |
18867 | return 0; | |
18868 | ; | |
18869 | return 0; | |
18870 | } | |
18871 | _ACEOF | |
18872 | rm -f conftest.$ac_objext | |
18873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18874 | (eval $ac_compile) 2>conftest.er1 | |
18875 | ac_status=$? | |
18876 | grep -v '^ *+' conftest.er1 >conftest.err | |
18877 | rm -f conftest.er1 | |
18878 | cat conftest.err >&5 | |
18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18880 | (exit $ac_status); } && | |
b4e70030 JB |
18881 | { ac_try='test -z "$ac_c_werror_flag" |
18882 | || test ! -s conftest.err' | |
5c45e068 MK |
18883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18884 | (eval $ac_try) 2>&5 | |
18885 | ac_status=$? | |
18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18887 | (exit $ac_status); }; } && | |
18888 | { ac_try='test -s conftest.$ac_objext' | |
18889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18890 | (eval $ac_try) 2>&5 | |
18891 | ac_status=$? | |
18892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18893 | (exit $ac_status); }; }; then | |
18894 | ac_cv_member_struct_reg_r_fs=yes | |
18895 | else | |
18896 | echo "$as_me: failed program was:" >&5 | |
18897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18898 | ||
b4e70030 | 18899 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18900 | /* confdefs.h. */ |
18901 | _ACEOF | |
18902 | cat confdefs.h >>conftest.$ac_ext | |
18903 | cat >>conftest.$ac_ext <<_ACEOF | |
18904 | /* end confdefs.h. */ | |
18905 | #include <machine/reg.h> | |
18906 | ||
bec39cab AC |
18907 | int |
18908 | main () | |
18909 | { | |
5c45e068 MK |
18910 | static struct reg ac_aggr; |
18911 | if (sizeof ac_aggr.r_fs) | |
18912 | return 0; | |
bec39cab AC |
18913 | ; |
18914 | return 0; | |
18915 | } | |
18916 | _ACEOF | |
18917 | rm -f conftest.$ac_objext | |
18918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18919 | (eval $ac_compile) 2>conftest.er1 | |
18920 | ac_status=$? | |
18921 | grep -v '^ *+' conftest.er1 >conftest.err | |
18922 | rm -f conftest.er1 | |
18923 | cat conftest.err >&5 | |
18924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18925 | (exit $ac_status); } && | |
b4e70030 JB |
18926 | { ac_try='test -z "$ac_c_werror_flag" |
18927 | || test ! -s conftest.err' | |
bec39cab AC |
18928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18929 | (eval $ac_try) 2>&5 | |
18930 | ac_status=$? | |
18931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18932 | (exit $ac_status); }; } && | |
18933 | { ac_try='test -s conftest.$ac_objext' | |
18934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18935 | (eval $ac_try) 2>&5 | |
18936 | ac_status=$? | |
18937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18938 | (exit $ac_status); }; }; then | |
5c45e068 | 18939 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 18940 | else |
bec39cab AC |
18941 | echo "$as_me: failed program was:" >&5 |
18942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18943 | ||
b4e70030 | 18944 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 18945 | fi |
bec39cab | 18946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 18947 | fi |
5c45e068 MK |
18948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18949 | fi | |
b4e70030 JB |
18950 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
18951 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
5c45e068 MK |
18952 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
18953 | ||
18954 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 18955 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 18956 | _ACEOF |
3862412b | 18957 | |
5c45e068 | 18958 | |
97bf5e38 | 18959 | fi |
b4e70030 JB |
18960 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
18961 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
5c45e068 | 18962 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 18963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18964 | else |
bec39cab AC |
18965 | cat >conftest.$ac_ext <<_ACEOF |
18966 | /* confdefs.h. */ | |
18967 | _ACEOF | |
18968 | cat confdefs.h >>conftest.$ac_ext | |
18969 | cat >>conftest.$ac_ext <<_ACEOF | |
18970 | /* end confdefs.h. */ | |
a3828db0 | 18971 | #include <machine/reg.h> |
5c45e068 | 18972 | |
bec39cab AC |
18973 | int |
18974 | main () | |
18975 | { | |
5c45e068 MK |
18976 | static struct reg ac_aggr; |
18977 | if (ac_aggr.r_gs) | |
18978 | return 0; | |
bec39cab AC |
18979 | ; |
18980 | return 0; | |
18981 | } | |
18982 | _ACEOF | |
18983 | rm -f conftest.$ac_objext | |
18984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18985 | (eval $ac_compile) 2>conftest.er1 | |
18986 | ac_status=$? | |
18987 | grep -v '^ *+' conftest.er1 >conftest.err | |
18988 | rm -f conftest.er1 | |
18989 | cat conftest.err >&5 | |
18990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18991 | (exit $ac_status); } && | |
b4e70030 JB |
18992 | { ac_try='test -z "$ac_c_werror_flag" |
18993 | || test ! -s conftest.err' | |
bec39cab AC |
18994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18995 | (eval $ac_try) 2>&5 | |
18996 | ac_status=$? | |
18997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18998 | (exit $ac_status); }; } && | |
18999 | { ac_try='test -s conftest.$ac_objext' | |
19000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19001 | (eval $ac_try) 2>&5 | |
19002 | ac_status=$? | |
19003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19004 | (exit $ac_status); }; }; then | |
5c45e068 | 19005 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 19006 | else |
bec39cab AC |
19007 | echo "$as_me: failed program was:" >&5 |
19008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19009 | ||
b4e70030 | 19010 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
19011 | /* confdefs.h. */ |
19012 | _ACEOF | |
19013 | cat confdefs.h >>conftest.$ac_ext | |
19014 | cat >>conftest.$ac_ext <<_ACEOF | |
19015 | /* end confdefs.h. */ | |
19016 | #include <machine/reg.h> | |
19017 | ||
19018 | int | |
19019 | main () | |
19020 | { | |
19021 | static struct reg ac_aggr; | |
19022 | if (sizeof ac_aggr.r_gs) | |
19023 | return 0; | |
19024 | ; | |
19025 | return 0; | |
19026 | } | |
19027 | _ACEOF | |
19028 | rm -f conftest.$ac_objext | |
19029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19030 | (eval $ac_compile) 2>conftest.er1 | |
19031 | ac_status=$? | |
19032 | grep -v '^ *+' conftest.er1 >conftest.err | |
19033 | rm -f conftest.er1 | |
19034 | cat conftest.err >&5 | |
19035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19036 | (exit $ac_status); } && | |
b4e70030 JB |
19037 | { ac_try='test -z "$ac_c_werror_flag" |
19038 | || test ! -s conftest.err' | |
5c45e068 MK |
19039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19040 | (eval $ac_try) 2>&5 | |
19041 | ac_status=$? | |
19042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19043 | (exit $ac_status); }; } && | |
19044 | { ac_try='test -s conftest.$ac_objext' | |
19045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19046 | (eval $ac_try) 2>&5 | |
19047 | ac_status=$? | |
19048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19049 | (exit $ac_status); }; }; then | |
19050 | ac_cv_member_struct_reg_r_gs=yes | |
19051 | else | |
19052 | echo "$as_me: failed program was:" >&5 | |
19053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19054 | ||
b4e70030 | 19055 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 19056 | fi |
bec39cab | 19057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 19058 | fi |
5c45e068 MK |
19059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19060 | fi | |
b4e70030 JB |
19061 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
19062 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
5c45e068 MK |
19063 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
19064 | ||
19065 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 19066 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 19067 | _ACEOF |
3862412b | 19068 | |
5c45e068 | 19069 | |
97bf5e38 | 19070 | fi |
3862412b | 19071 | |
5c45e068 | 19072 | |
a3828db0 | 19073 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
b4e70030 JB |
19074 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
19075 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
a3828db0 | 19076 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 19077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 19078 | else |
bec39cab AC |
19079 | cat >conftest.$ac_ext <<_ACEOF |
19080 | /* confdefs.h. */ | |
19081 | _ACEOF | |
19082 | cat confdefs.h >>conftest.$ac_ext | |
19083 | cat >>conftest.$ac_ext <<_ACEOF | |
19084 | /* end confdefs.h. */ | |
a3828db0 | 19085 | #include <sys/ptrace.h> |
bec39cab AC |
19086 | int |
19087 | main () | |
19088 | { | |
a3828db0 | 19089 | PTRACE_GETREGS; |
bec39cab AC |
19090 | ; |
19091 | return 0; | |
19092 | } | |
19093 | _ACEOF | |
19094 | rm -f conftest.$ac_objext | |
19095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19096 | (eval $ac_compile) 2>conftest.er1 | |
19097 | ac_status=$? | |
19098 | grep -v '^ *+' conftest.er1 >conftest.err | |
19099 | rm -f conftest.er1 | |
19100 | cat conftest.err >&5 | |
19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19102 | (exit $ac_status); } && | |
b4e70030 JB |
19103 | { ac_try='test -z "$ac_c_werror_flag" |
19104 | || test ! -s conftest.err' | |
bec39cab AC |
19105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19106 | (eval $ac_try) 2>&5 | |
19107 | ac_status=$? | |
19108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19109 | (exit $ac_status); }; } && | |
19110 | { ac_try='test -s conftest.$ac_objext' | |
19111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19112 | (eval $ac_try) 2>&5 | |
19113 | ac_status=$? | |
19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19115 | (exit $ac_status); }; }; then | |
a3828db0 | 19116 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 19117 | else |
bec39cab AC |
19118 | echo "$as_me: failed program was:" >&5 |
19119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19120 | ||
b4e70030 | 19121 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 19122 | fi |
bec39cab | 19123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
19124 | fi |
19125 | ||
b4e70030 JB |
19126 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
19127 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
a3828db0 | 19128 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
19129 | |
19130 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19131 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 19132 | _ACEOF |
451928c5 | 19133 | |
97bf5e38 | 19134 | fi |
451928c5 | 19135 | |
a3828db0 | 19136 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
b4e70030 JB |
19137 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
19138 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
a3828db0 | 19139 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 19140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 19141 | else |
bec39cab AC |
19142 | cat >conftest.$ac_ext <<_ACEOF |
19143 | /* confdefs.h. */ | |
19144 | _ACEOF | |
19145 | cat confdefs.h >>conftest.$ac_ext | |
19146 | cat >>conftest.$ac_ext <<_ACEOF | |
19147 | /* end confdefs.h. */ | |
a3828db0 | 19148 | #include <sys/ptrace.h> |
bec39cab AC |
19149 | int |
19150 | main () | |
19151 | { | |
a3828db0 | 19152 | PTRACE_GETFPXREGS; |
bec39cab AC |
19153 | ; |
19154 | return 0; | |
19155 | } | |
19156 | _ACEOF | |
19157 | rm -f conftest.$ac_objext | |
19158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19159 | (eval $ac_compile) 2>conftest.er1 | |
19160 | ac_status=$? | |
19161 | grep -v '^ *+' conftest.er1 >conftest.err | |
19162 | rm -f conftest.er1 | |
19163 | cat conftest.err >&5 | |
19164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19165 | (exit $ac_status); } && | |
b4e70030 JB |
19166 | { ac_try='test -z "$ac_c_werror_flag" |
19167 | || test ! -s conftest.err' | |
bec39cab AC |
19168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19169 | (eval $ac_try) 2>&5 | |
19170 | ac_status=$? | |
19171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19172 | (exit $ac_status); }; } && | |
19173 | { ac_try='test -s conftest.$ac_objext' | |
19174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19175 | (eval $ac_try) 2>&5 | |
19176 | ac_status=$? | |
19177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19178 | (exit $ac_status); }; }; then | |
a3828db0 | 19179 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 19180 | else |
bec39cab AC |
19181 | echo "$as_me: failed program was:" >&5 |
19182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19183 | ||
b4e70030 | 19184 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 19185 | fi |
bec39cab | 19186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
19187 | fi |
19188 | ||
b4e70030 JB |
19189 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
19190 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
a3828db0 | 19191 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
19192 | |
19193 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19194 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 19195 | _ACEOF |
451928c5 | 19196 | |
97bf5e38 | 19197 | fi |
451928c5 | 19198 | |
a3828db0 | 19199 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
b4e70030 JB |
19200 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
19201 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
a3828db0 | 19202 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 19203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19204 | else |
bec39cab AC |
19205 | cat >conftest.$ac_ext <<_ACEOF |
19206 | /* confdefs.h. */ | |
19207 | _ACEOF | |
19208 | cat confdefs.h >>conftest.$ac_ext | |
19209 | cat >>conftest.$ac_ext <<_ACEOF | |
19210 | /* end confdefs.h. */ | |
a3828db0 MK |
19211 | #include <sys/types.h> |
19212 | #include <sys/ptrace.h> | |
bec39cab AC |
19213 | int |
19214 | main () | |
19215 | { | |
a3828db0 | 19216 | PT_GETDBREGS; |
bec39cab AC |
19217 | ; |
19218 | return 0; | |
19219 | } | |
19220 | _ACEOF | |
19221 | rm -f conftest.$ac_objext | |
19222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19223 | (eval $ac_compile) 2>conftest.er1 | |
19224 | ac_status=$? | |
19225 | grep -v '^ *+' conftest.er1 >conftest.err | |
19226 | rm -f conftest.er1 | |
19227 | cat conftest.err >&5 | |
19228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19229 | (exit $ac_status); } && | |
b4e70030 JB |
19230 | { ac_try='test -z "$ac_c_werror_flag" |
19231 | || test ! -s conftest.err' | |
bec39cab AC |
19232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19233 | (eval $ac_try) 2>&5 | |
19234 | ac_status=$? | |
19235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19236 | (exit $ac_status); }; } && | |
19237 | { ac_try='test -s conftest.$ac_objext' | |
19238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19239 | (eval $ac_try) 2>&5 | |
19240 | ac_status=$? | |
19241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19242 | (exit $ac_status); }; }; then | |
a3828db0 | 19243 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 19244 | else |
bec39cab AC |
19245 | echo "$as_me: failed program was:" >&5 |
19246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19247 | ||
b4e70030 | 19248 | gdb_cv_have_pt_getdbregs=no |
3862412b | 19249 | fi |
bec39cab | 19250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
19251 | fi |
19252 | ||
b4e70030 JB |
19253 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
19254 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
a3828db0 | 19255 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
19256 | |
19257 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19258 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 19259 | _ACEOF |
3862412b | 19260 | |
97bf5e38 | 19261 | fi |
3862412b | 19262 | |
a3828db0 | 19263 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
b4e70030 JB |
19264 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
19265 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
a3828db0 | 19266 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 19267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19268 | else |
bec39cab AC |
19269 | cat >conftest.$ac_ext <<_ACEOF |
19270 | /* confdefs.h. */ | |
19271 | _ACEOF | |
19272 | cat confdefs.h >>conftest.$ac_ext | |
19273 | cat >>conftest.$ac_ext <<_ACEOF | |
19274 | /* end confdefs.h. */ | |
a3828db0 MK |
19275 | #include <sys/types.h> |
19276 | #include <sys/ptrace.h> | |
bec39cab AC |
19277 | int |
19278 | main () | |
19279 | { | |
a3828db0 | 19280 | PT_GETXMMREGS; |
bec39cab AC |
19281 | ; |
19282 | return 0; | |
19283 | } | |
19284 | _ACEOF | |
19285 | rm -f conftest.$ac_objext | |
19286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19287 | (eval $ac_compile) 2>conftest.er1 | |
19288 | ac_status=$? | |
19289 | grep -v '^ *+' conftest.er1 >conftest.err | |
19290 | rm -f conftest.er1 | |
19291 | cat conftest.err >&5 | |
19292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19293 | (exit $ac_status); } && | |
b4e70030 JB |
19294 | { ac_try='test -z "$ac_c_werror_flag" |
19295 | || test ! -s conftest.err' | |
bec39cab AC |
19296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19297 | (eval $ac_try) 2>&5 | |
19298 | ac_status=$? | |
19299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19300 | (exit $ac_status); }; } && | |
19301 | { ac_try='test -s conftest.$ac_objext' | |
19302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19303 | (eval $ac_try) 2>&5 | |
19304 | ac_status=$? | |
19305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19306 | (exit $ac_status); }; }; then | |
a3828db0 | 19307 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 19308 | else |
bec39cab AC |
19309 | echo "$as_me: failed program was:" >&5 |
19310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19311 | ||
b4e70030 | 19312 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 19313 | fi |
bec39cab | 19314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
19315 | fi |
19316 | ||
b4e70030 JB |
19317 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
19318 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
a3828db0 | 19319 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
19320 | |
19321 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19322 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 19323 | _ACEOF |
3862412b | 19324 | |
97bf5e38 | 19325 | fi |
3862412b | 19326 | |
eb368090 | 19327 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
97bf5e38 MK |
19328 | |
19329 | if test "${target}" = "${host}"; then | |
19330 | case "${host}" in | |
97bf5e38 | 19331 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
19332 | |
19333 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19334 | #define NEW_PROC_API 1 |
bec39cab | 19335 | _ACEOF |
97bf5e38 MK |
19336 | |
19337 | ;; | |
0bbc026e | 19338 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
60ca704f SE |
19339 | |
19340 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19341 | #define NEW_PROC_API 1 |
bec39cab | 19342 | _ACEOF |
c960c18f AC |
19343 | |
19344 | ;; | |
19345 | mips-sgi-irix5*) | |
19346 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
19347 | |
19348 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 19349 | #define _KMEMUSER 1 |
bec39cab | 19350 | _ACEOF |
97bf5e38 MK |
19351 | |
19352 | ;; | |
19353 | esac | |
19354 | fi | |
19355 | ||
19356 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b4e70030 JB |
19357 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
19358 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19359 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
19360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19361 | else | |
19362 | cat >conftest.$ac_ext <<_ACEOF | |
19363 | /* confdefs.h. */ | |
19364 | _ACEOF | |
19365 | cat confdefs.h >>conftest.$ac_ext | |
19366 | cat >>conftest.$ac_ext <<_ACEOF | |
19367 | /* end confdefs.h. */ | |
596c9d4b KB |
19368 | |
19369 | #define _SYSCALL32 | |
19370 | #include <sys/procfs.h> | |
bec39cab AC |
19371 | int |
19372 | main () | |
19373 | { | |
97bf5e38 | 19374 | pstatus_t avar |
bec39cab AC |
19375 | ; |
19376 | return 0; | |
19377 | } | |
19378 | _ACEOF | |
19379 | rm -f conftest.$ac_objext | |
19380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19381 | (eval $ac_compile) 2>conftest.er1 | |
19382 | ac_status=$? | |
19383 | grep -v '^ *+' conftest.er1 >conftest.err | |
19384 | rm -f conftest.er1 | |
19385 | cat conftest.err >&5 | |
19386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19387 | (exit $ac_status); } && | |
b4e70030 JB |
19388 | { ac_try='test -z "$ac_c_werror_flag" |
19389 | || test ! -s conftest.err' | |
bec39cab AC |
19390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19391 | (eval $ac_try) 2>&5 | |
19392 | ac_status=$? | |
19393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19394 | (exit $ac_status); }; } && | |
19395 | { ac_try='test -s conftest.$ac_objext' | |
19396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19397 | (eval $ac_try) 2>&5 | |
19398 | ac_status=$? | |
19399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19400 | (exit $ac_status); }; }; then | |
97bf5e38 | 19401 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 19402 | else |
bec39cab AC |
19403 | echo "$as_me: failed program was:" >&5 |
19404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19405 | ||
b4e70030 | 19406 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 19407 | |
596c9d4b | 19408 | fi |
bec39cab | 19409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19410 | fi |
19411 | ||
97bf5e38 | 19412 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
19413 | |
19414 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19415 | #define HAVE_PSTATUS_T 1 |
bec39cab | 19416 | _ACEOF |
596c9d4b KB |
19417 | |
19418 | fi | |
b4e70030 JB |
19419 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
19420 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 19421 | |
b4e70030 JB |
19422 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
19423 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19424 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
19425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 19426 | else |
bec39cab AC |
19427 | cat >conftest.$ac_ext <<_ACEOF |
19428 | /* confdefs.h. */ | |
19429 | _ACEOF | |
19430 | cat confdefs.h >>conftest.$ac_ext | |
19431 | cat >>conftest.$ac_ext <<_ACEOF | |
19432 | /* end confdefs.h. */ | |
596c9d4b KB |
19433 | |
19434 | #define _SYSCALL32 | |
19435 | #include <sys/procfs.h> | |
bec39cab AC |
19436 | int |
19437 | main () | |
19438 | { | |
97bf5e38 | 19439 | prrun_t avar |
bec39cab AC |
19440 | ; |
19441 | return 0; | |
19442 | } | |
19443 | _ACEOF | |
19444 | rm -f conftest.$ac_objext | |
19445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19446 | (eval $ac_compile) 2>conftest.er1 | |
19447 | ac_status=$? | |
19448 | grep -v '^ *+' conftest.er1 >conftest.err | |
19449 | rm -f conftest.er1 | |
19450 | cat conftest.err >&5 | |
19451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19452 | (exit $ac_status); } && | |
b4e70030 JB |
19453 | { ac_try='test -z "$ac_c_werror_flag" |
19454 | || test ! -s conftest.err' | |
bec39cab AC |
19455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19456 | (eval $ac_try) 2>&5 | |
19457 | ac_status=$? | |
19458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19459 | (exit $ac_status); }; } && | |
19460 | { ac_try='test -s conftest.$ac_objext' | |
19461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19462 | (eval $ac_try) 2>&5 | |
19463 | ac_status=$? | |
19464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19465 | (exit $ac_status); }; }; then | |
97bf5e38 | 19466 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 19467 | else |
bec39cab AC |
19468 | echo "$as_me: failed program was:" >&5 |
19469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19470 | ||
b4e70030 | 19471 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 19472 | |
596c9d4b | 19473 | fi |
bec39cab | 19474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19475 | fi |
19476 | ||
97bf5e38 | 19477 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
19478 | |
19479 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19480 | #define HAVE_PRRUN_T 1 |
bec39cab | 19481 | _ACEOF |
596c9d4b KB |
19482 | |
19483 | fi | |
b4e70030 JB |
19484 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
19485 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 19486 | |
b4e70030 JB |
19487 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
19488 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19489 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
19490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 19491 | else |
bec39cab AC |
19492 | cat >conftest.$ac_ext <<_ACEOF |
19493 | /* confdefs.h. */ | |
19494 | _ACEOF | |
19495 | cat confdefs.h >>conftest.$ac_ext | |
19496 | cat >>conftest.$ac_ext <<_ACEOF | |
19497 | /* end confdefs.h. */ | |
596c9d4b KB |
19498 | |
19499 | #define _SYSCALL32 | |
19500 | #include <sys/procfs.h> | |
bec39cab AC |
19501 | int |
19502 | main () | |
19503 | { | |
97bf5e38 | 19504 | gregset_t avar |
bec39cab AC |
19505 | ; |
19506 | return 0; | |
19507 | } | |
19508 | _ACEOF | |
19509 | rm -f conftest.$ac_objext | |
19510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19511 | (eval $ac_compile) 2>conftest.er1 | |
19512 | ac_status=$? | |
19513 | grep -v '^ *+' conftest.er1 >conftest.err | |
19514 | rm -f conftest.er1 | |
19515 | cat conftest.err >&5 | |
19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19517 | (exit $ac_status); } && | |
b4e70030 JB |
19518 | { ac_try='test -z "$ac_c_werror_flag" |
19519 | || test ! -s conftest.err' | |
bec39cab AC |
19520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19521 | (eval $ac_try) 2>&5 | |
19522 | ac_status=$? | |
19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19524 | (exit $ac_status); }; } && | |
19525 | { ac_try='test -s conftest.$ac_objext' | |
19526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19527 | (eval $ac_try) 2>&5 | |
19528 | ac_status=$? | |
19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19530 | (exit $ac_status); }; }; then | |
97bf5e38 | 19531 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 19532 | else |
bec39cab AC |
19533 | echo "$as_me: failed program was:" >&5 |
19534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19535 | ||
b4e70030 | 19536 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 19537 | |
596c9d4b | 19538 | fi |
bec39cab | 19539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19540 | fi |
19541 | ||
97bf5e38 | 19542 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
19543 | |
19544 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19545 | #define HAVE_GREGSET_T 1 |
bec39cab | 19546 | _ACEOF |
596c9d4b KB |
19547 | |
19548 | fi | |
b4e70030 JB |
19549 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
19550 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 19551 | |
b4e70030 JB |
19552 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
19553 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19554 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
19555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 19556 | else |
bec39cab AC |
19557 | cat >conftest.$ac_ext <<_ACEOF |
19558 | /* confdefs.h. */ | |
19559 | _ACEOF | |
19560 | cat confdefs.h >>conftest.$ac_ext | |
19561 | cat >>conftest.$ac_ext <<_ACEOF | |
19562 | /* end confdefs.h. */ | |
97bf5e38 MK |
19563 | |
19564 | #define _SYSCALL32 | |
d84dd0c5 | 19565 | #include <sys/procfs.h> |
bec39cab AC |
19566 | int |
19567 | main () | |
19568 | { | |
97bf5e38 | 19569 | fpregset_t avar |
bec39cab AC |
19570 | ; |
19571 | return 0; | |
19572 | } | |
19573 | _ACEOF | |
19574 | rm -f conftest.$ac_objext | |
19575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19576 | (eval $ac_compile) 2>conftest.er1 | |
19577 | ac_status=$? | |
19578 | grep -v '^ *+' conftest.er1 >conftest.err | |
19579 | rm -f conftest.er1 | |
19580 | cat conftest.err >&5 | |
19581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19582 | (exit $ac_status); } && | |
b4e70030 JB |
19583 | { ac_try='test -z "$ac_c_werror_flag" |
19584 | || test ! -s conftest.err' | |
bec39cab AC |
19585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19586 | (eval $ac_try) 2>&5 | |
19587 | ac_status=$? | |
19588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19589 | (exit $ac_status); }; } && | |
19590 | { ac_try='test -s conftest.$ac_objext' | |
19591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19592 | (eval $ac_try) 2>&5 | |
19593 | ac_status=$? | |
19594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19595 | (exit $ac_status); }; }; then | |
97bf5e38 | 19596 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 19597 | else |
bec39cab AC |
19598 | echo "$as_me: failed program was:" >&5 |
19599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19600 | ||
b4e70030 | 19601 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 19602 | |
d84dd0c5 | 19603 | fi |
bec39cab | 19604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
19605 | fi |
19606 | ||
97bf5e38 | 19607 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
19608 | |
19609 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19610 | #define HAVE_FPREGSET_T 1 |
bec39cab | 19611 | _ACEOF |
d84dd0c5 | 19612 | |
97bf5e38 | 19613 | fi |
b4e70030 JB |
19614 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
19615 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 19616 | |
b4e70030 JB |
19617 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
19618 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19619 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
19620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19621 | else |
bec39cab AC |
19622 | cat >conftest.$ac_ext <<_ACEOF |
19623 | /* confdefs.h. */ | |
19624 | _ACEOF | |
19625 | cat confdefs.h >>conftest.$ac_ext | |
19626 | cat >>conftest.$ac_ext <<_ACEOF | |
19627 | /* end confdefs.h. */ | |
c906108c | 19628 | |
97bf5e38 MK |
19629 | #define _SYSCALL32 |
19630 | #include <sys/procfs.h> | |
bec39cab AC |
19631 | int |
19632 | main () | |
19633 | { | |
97bf5e38 | 19634 | prgregset_t avar |
bec39cab AC |
19635 | ; |
19636 | return 0; | |
19637 | } | |
19638 | _ACEOF | |
19639 | rm -f conftest.$ac_objext | |
19640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19641 | (eval $ac_compile) 2>conftest.er1 | |
19642 | ac_status=$? | |
19643 | grep -v '^ *+' conftest.er1 >conftest.err | |
19644 | rm -f conftest.er1 | |
19645 | cat conftest.err >&5 | |
19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19647 | (exit $ac_status); } && | |
b4e70030 JB |
19648 | { ac_try='test -z "$ac_c_werror_flag" |
19649 | || test ! -s conftest.err' | |
bec39cab AC |
19650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19651 | (eval $ac_try) 2>&5 | |
19652 | ac_status=$? | |
19653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19654 | (exit $ac_status); }; } && | |
19655 | { ac_try='test -s conftest.$ac_objext' | |
19656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19657 | (eval $ac_try) 2>&5 | |
19658 | ac_status=$? | |
19659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19660 | (exit $ac_status); }; }; then | |
97bf5e38 | 19661 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 19662 | else |
bec39cab AC |
19663 | echo "$as_me: failed program was:" >&5 |
19664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19665 | ||
b4e70030 | 19666 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 19667 | |
c906108c | 19668 | fi |
bec39cab | 19669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19670 | fi |
19671 | ||
97bf5e38 | 19672 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
19673 | |
19674 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19675 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 19676 | _ACEOF |
c906108c | 19677 | |
97bf5e38 | 19678 | fi |
b4e70030 JB |
19679 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
19680 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 19681 | |
b4e70030 JB |
19682 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
19683 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19684 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
19685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19686 | else |
bec39cab AC |
19687 | cat >conftest.$ac_ext <<_ACEOF |
19688 | /* confdefs.h. */ | |
19689 | _ACEOF | |
19690 | cat confdefs.h >>conftest.$ac_ext | |
19691 | cat >>conftest.$ac_ext <<_ACEOF | |
19692 | /* end confdefs.h. */ | |
97bf5e38 MK |
19693 | |
19694 | #define _SYSCALL32 | |
19695 | #include <sys/procfs.h> | |
bec39cab AC |
19696 | int |
19697 | main () | |
19698 | { | |
97bf5e38 | 19699 | prfpregset_t avar |
bec39cab AC |
19700 | ; |
19701 | return 0; | |
19702 | } | |
19703 | _ACEOF | |
19704 | rm -f conftest.$ac_objext | |
19705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19706 | (eval $ac_compile) 2>conftest.er1 | |
19707 | ac_status=$? | |
19708 | grep -v '^ *+' conftest.er1 >conftest.err | |
19709 | rm -f conftest.er1 | |
19710 | cat conftest.err >&5 | |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 | (exit $ac_status); } && | |
b4e70030 JB |
19713 | { ac_try='test -z "$ac_c_werror_flag" |
19714 | || test ! -s conftest.err' | |
bec39cab AC |
19715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19716 | (eval $ac_try) 2>&5 | |
19717 | ac_status=$? | |
19718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19719 | (exit $ac_status); }; } && | |
19720 | { ac_try='test -s conftest.$ac_objext' | |
19721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19722 | (eval $ac_try) 2>&5 | |
19723 | ac_status=$? | |
19724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19725 | (exit $ac_status); }; }; then | |
97bf5e38 | 19726 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 19727 | else |
bec39cab AC |
19728 | echo "$as_me: failed program was:" >&5 |
19729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19730 | ||
b4e70030 | 19731 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 19732 | |
d45fe813 | 19733 | fi |
bec39cab | 19734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19735 | fi |
19736 | ||
97bf5e38 | 19737 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
19738 | |
19739 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19740 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 19741 | _ACEOF |
d45fe813 | 19742 | |
97bf5e38 | 19743 | fi |
b4e70030 JB |
19744 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
19745 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 19746 | |
b4e70030 JB |
19747 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
19748 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19749 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
19750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19751 | else |
bec39cab AC |
19752 | cat >conftest.$ac_ext <<_ACEOF |
19753 | /* confdefs.h. */ | |
19754 | _ACEOF | |
19755 | cat confdefs.h >>conftest.$ac_ext | |
19756 | cat >>conftest.$ac_ext <<_ACEOF | |
19757 | /* end confdefs.h. */ | |
97bf5e38 MK |
19758 | |
19759 | #define _SYSCALL32 | |
19760 | #include <sys/procfs.h> | |
bec39cab AC |
19761 | int |
19762 | main () | |
19763 | { | |
97bf5e38 | 19764 | prgregset32_t avar |
bec39cab AC |
19765 | ; |
19766 | return 0; | |
19767 | } | |
19768 | _ACEOF | |
19769 | rm -f conftest.$ac_objext | |
19770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19771 | (eval $ac_compile) 2>conftest.er1 | |
19772 | ac_status=$? | |
19773 | grep -v '^ *+' conftest.er1 >conftest.err | |
19774 | rm -f conftest.er1 | |
19775 | cat conftest.err >&5 | |
19776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19777 | (exit $ac_status); } && | |
b4e70030 JB |
19778 | { ac_try='test -z "$ac_c_werror_flag" |
19779 | || test ! -s conftest.err' | |
bec39cab AC |
19780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19781 | (eval $ac_try) 2>&5 | |
19782 | ac_status=$? | |
19783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19784 | (exit $ac_status); }; } && | |
19785 | { ac_try='test -s conftest.$ac_objext' | |
19786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19787 | (eval $ac_try) 2>&5 | |
19788 | ac_status=$? | |
19789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19790 | (exit $ac_status); }; }; then | |
97bf5e38 | 19791 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 19792 | else |
bec39cab AC |
19793 | echo "$as_me: failed program was:" >&5 |
19794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19795 | ||
b4e70030 | 19796 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 19797 | |
d45fe813 | 19798 | fi |
bec39cab | 19799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19800 | fi |
19801 | ||
97bf5e38 | 19802 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
19803 | |
19804 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19805 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 19806 | _ACEOF |
d45fe813 | 19807 | |
97bf5e38 | 19808 | fi |
b4e70030 JB |
19809 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
19810 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 19811 | |
b4e70030 JB |
19812 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
19813 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19814 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
19815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19816 | else |
bec39cab AC |
19817 | cat >conftest.$ac_ext <<_ACEOF |
19818 | /* confdefs.h. */ | |
19819 | _ACEOF | |
19820 | cat confdefs.h >>conftest.$ac_ext | |
19821 | cat >>conftest.$ac_ext <<_ACEOF | |
19822 | /* end confdefs.h. */ | |
97bf5e38 MK |
19823 | |
19824 | #define _SYSCALL32 | |
19825 | #include <sys/procfs.h> | |
bec39cab AC |
19826 | int |
19827 | main () | |
19828 | { | |
97bf5e38 | 19829 | prfpregset32_t avar |
bec39cab AC |
19830 | ; |
19831 | return 0; | |
19832 | } | |
19833 | _ACEOF | |
19834 | rm -f conftest.$ac_objext | |
19835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19836 | (eval $ac_compile) 2>conftest.er1 | |
19837 | ac_status=$? | |
19838 | grep -v '^ *+' conftest.er1 >conftest.err | |
19839 | rm -f conftest.er1 | |
19840 | cat conftest.err >&5 | |
19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19842 | (exit $ac_status); } && | |
b4e70030 JB |
19843 | { ac_try='test -z "$ac_c_werror_flag" |
19844 | || test ! -s conftest.err' | |
bec39cab AC |
19845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19846 | (eval $ac_try) 2>&5 | |
19847 | ac_status=$? | |
19848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19849 | (exit $ac_status); }; } && | |
19850 | { ac_try='test -s conftest.$ac_objext' | |
19851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19852 | (eval $ac_try) 2>&5 | |
19853 | ac_status=$? | |
19854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19855 | (exit $ac_status); }; }; then | |
97bf5e38 | 19856 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 19857 | else |
bec39cab AC |
19858 | echo "$as_me: failed program was:" >&5 |
19859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19860 | ||
b4e70030 | 19861 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 19862 | |
d45fe813 | 19863 | fi |
bec39cab | 19864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19865 | fi |
19866 | ||
97bf5e38 | 19867 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
19868 | |
19869 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19870 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 19871 | _ACEOF |
d45fe813 | 19872 | |
97bf5e38 | 19873 | fi |
b4e70030 JB |
19874 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
19875 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 19876 | |
b4e70030 JB |
19877 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
19878 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19879 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
19880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19881 | else |
bec39cab AC |
19882 | cat >conftest.$ac_ext <<_ACEOF |
19883 | /* confdefs.h. */ | |
19884 | _ACEOF | |
19885 | cat confdefs.h >>conftest.$ac_ext | |
19886 | cat >>conftest.$ac_ext <<_ACEOF | |
19887 | /* end confdefs.h. */ | |
97bf5e38 | 19888 | |
d45fe813 | 19889 | #define _SYSCALL32 |
97bf5e38 | 19890 | #include <sys/procfs.h> |
bec39cab AC |
19891 | int |
19892 | main () | |
19893 | { | |
97bf5e38 | 19894 | lwpid_t avar |
bec39cab AC |
19895 | ; |
19896 | return 0; | |
19897 | } | |
19898 | _ACEOF | |
19899 | rm -f conftest.$ac_objext | |
19900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19901 | (eval $ac_compile) 2>conftest.er1 | |
19902 | ac_status=$? | |
19903 | grep -v '^ *+' conftest.er1 >conftest.err | |
19904 | rm -f conftest.er1 | |
19905 | cat conftest.err >&5 | |
19906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19907 | (exit $ac_status); } && | |
b4e70030 JB |
19908 | { ac_try='test -z "$ac_c_werror_flag" |
19909 | || test ! -s conftest.err' | |
bec39cab AC |
19910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19911 | (eval $ac_try) 2>&5 | |
19912 | ac_status=$? | |
19913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19914 | (exit $ac_status); }; } && | |
19915 | { ac_try='test -s conftest.$ac_objext' | |
19916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19917 | (eval $ac_try) 2>&5 | |
19918 | ac_status=$? | |
19919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19920 | (exit $ac_status); }; }; then | |
97bf5e38 | 19921 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 19922 | else |
bec39cab AC |
19923 | echo "$as_me: failed program was:" >&5 |
19924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19925 | ||
b4e70030 | 19926 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 19927 | |
d45fe813 | 19928 | fi |
bec39cab | 19929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19930 | fi |
19931 | ||
97bf5e38 | 19932 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
19933 | |
19934 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19935 | #define HAVE_LWPID_T 1 |
bec39cab | 19936 | _ACEOF |
d45fe813 | 19937 | |
97bf5e38 | 19938 | fi |
b4e70030 JB |
19939 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
19940 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 19941 | |
b4e70030 JB |
19942 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
19943 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19944 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
19945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19946 | else |
bec39cab AC |
19947 | cat >conftest.$ac_ext <<_ACEOF |
19948 | /* confdefs.h. */ | |
19949 | _ACEOF | |
19950 | cat confdefs.h >>conftest.$ac_ext | |
19951 | cat >>conftest.$ac_ext <<_ACEOF | |
19952 | /* end confdefs.h. */ | |
c906108c | 19953 | |
97bf5e38 MK |
19954 | #define _SYSCALL32 |
19955 | #include <sys/procfs.h> | |
bec39cab AC |
19956 | int |
19957 | main () | |
19958 | { | |
97bf5e38 | 19959 | psaddr_t avar |
bec39cab AC |
19960 | ; |
19961 | return 0; | |
19962 | } | |
19963 | _ACEOF | |
19964 | rm -f conftest.$ac_objext | |
19965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19966 | (eval $ac_compile) 2>conftest.er1 | |
19967 | ac_status=$? | |
19968 | grep -v '^ *+' conftest.er1 >conftest.err | |
19969 | rm -f conftest.er1 | |
19970 | cat conftest.err >&5 | |
19971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19972 | (exit $ac_status); } && | |
b4e70030 JB |
19973 | { ac_try='test -z "$ac_c_werror_flag" |
19974 | || test ! -s conftest.err' | |
bec39cab AC |
19975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19976 | (eval $ac_try) 2>&5 | |
19977 | ac_status=$? | |
19978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19979 | (exit $ac_status); }; } && | |
19980 | { ac_try='test -s conftest.$ac_objext' | |
19981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19982 | (eval $ac_try) 2>&5 | |
19983 | ac_status=$? | |
19984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19985 | (exit $ac_status); }; }; then | |
97bf5e38 | 19986 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 19987 | else |
bec39cab AC |
19988 | echo "$as_me: failed program was:" >&5 |
19989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19990 | ||
b4e70030 | 19991 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 19992 | |
c906108c | 19993 | fi |
bec39cab | 19994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19995 | fi |
19996 | ||
97bf5e38 | 19997 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
19998 | |
19999 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20000 | #define HAVE_PSADDR_T 1 |
bec39cab | 20001 | _ACEOF |
c906108c | 20002 | |
97bf5e38 | 20003 | fi |
b4e70030 JB |
20004 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
20005 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 20006 | |
b4e70030 JB |
20007 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
20008 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20009 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
20010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20011 | else |
bec39cab AC |
20012 | cat >conftest.$ac_ext <<_ACEOF |
20013 | /* confdefs.h. */ | |
20014 | _ACEOF | |
20015 | cat confdefs.h >>conftest.$ac_ext | |
20016 | cat >>conftest.$ac_ext <<_ACEOF | |
20017 | /* end confdefs.h. */ | |
c906108c | 20018 | |
97bf5e38 MK |
20019 | #define _SYSCALL32 |
20020 | #include <sys/procfs.h> | |
bec39cab AC |
20021 | int |
20022 | main () | |
20023 | { | |
97bf5e38 | 20024 | prsysent_t avar |
bec39cab AC |
20025 | ; |
20026 | return 0; | |
20027 | } | |
20028 | _ACEOF | |
20029 | rm -f conftest.$ac_objext | |
20030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20031 | (eval $ac_compile) 2>conftest.er1 | |
20032 | ac_status=$? | |
20033 | grep -v '^ *+' conftest.er1 >conftest.err | |
20034 | rm -f conftest.er1 | |
20035 | cat conftest.err >&5 | |
20036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20037 | (exit $ac_status); } && | |
b4e70030 JB |
20038 | { ac_try='test -z "$ac_c_werror_flag" |
20039 | || test ! -s conftest.err' | |
bec39cab AC |
20040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20041 | (eval $ac_try) 2>&5 | |
20042 | ac_status=$? | |
20043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20044 | (exit $ac_status); }; } && | |
20045 | { ac_try='test -s conftest.$ac_objext' | |
20046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20047 | (eval $ac_try) 2>&5 | |
20048 | ac_status=$? | |
20049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20050 | (exit $ac_status); }; }; then | |
97bf5e38 | 20051 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 20052 | else |
bec39cab AC |
20053 | echo "$as_me: failed program was:" >&5 |
20054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20055 | ||
b4e70030 | 20056 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 20057 | |
c906108c | 20058 | fi |
bec39cab | 20059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20060 | fi |
20061 | ||
97bf5e38 | 20062 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
20063 | |
20064 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20065 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 20066 | _ACEOF |
c906108c | 20067 | |
97bf5e38 | 20068 | fi |
b4e70030 JB |
20069 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
20070 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 20071 | |
b4e70030 JB |
20072 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
20073 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20074 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
20075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20076 | else |
bec39cab AC |
20077 | cat >conftest.$ac_ext <<_ACEOF |
20078 | /* confdefs.h. */ | |
20079 | _ACEOF | |
20080 | cat confdefs.h >>conftest.$ac_ext | |
20081 | cat >>conftest.$ac_ext <<_ACEOF | |
20082 | /* end confdefs.h. */ | |
c906108c | 20083 | |
97bf5e38 MK |
20084 | #define _SYSCALL32 |
20085 | #include <sys/procfs.h> | |
bec39cab AC |
20086 | int |
20087 | main () | |
20088 | { | |
97bf5e38 | 20089 | pr_sigset_t avar |
bec39cab AC |
20090 | ; |
20091 | return 0; | |
20092 | } | |
20093 | _ACEOF | |
20094 | rm -f conftest.$ac_objext | |
20095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20096 | (eval $ac_compile) 2>conftest.er1 | |
20097 | ac_status=$? | |
20098 | grep -v '^ *+' conftest.er1 >conftest.err | |
20099 | rm -f conftest.er1 | |
20100 | cat conftest.err >&5 | |
20101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20102 | (exit $ac_status); } && | |
b4e70030 JB |
20103 | { ac_try='test -z "$ac_c_werror_flag" |
20104 | || test ! -s conftest.err' | |
bec39cab AC |
20105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20106 | (eval $ac_try) 2>&5 | |
20107 | ac_status=$? | |
20108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20109 | (exit $ac_status); }; } && | |
20110 | { ac_try='test -s conftest.$ac_objext' | |
20111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20112 | (eval $ac_try) 2>&5 | |
20113 | ac_status=$? | |
20114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20115 | (exit $ac_status); }; }; then | |
97bf5e38 | 20116 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 20117 | else |
bec39cab AC |
20118 | echo "$as_me: failed program was:" >&5 |
20119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20120 | ||
b4e70030 | 20121 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 20122 | |
c906108c | 20123 | fi |
bec39cab | 20124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20125 | fi |
20126 | ||
97bf5e38 | 20127 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
20128 | |
20129 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20130 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 20131 | _ACEOF |
c906108c | 20132 | |
97bf5e38 | 20133 | fi |
b4e70030 JB |
20134 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
20135 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 20136 | |
b4e70030 JB |
20137 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
20138 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20139 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
20140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20141 | else |
bec39cab AC |
20142 | cat >conftest.$ac_ext <<_ACEOF |
20143 | /* confdefs.h. */ | |
20144 | _ACEOF | |
20145 | cat confdefs.h >>conftest.$ac_ext | |
20146 | cat >>conftest.$ac_ext <<_ACEOF | |
20147 | /* end confdefs.h. */ | |
c906108c | 20148 | |
97bf5e38 MK |
20149 | #define _SYSCALL32 |
20150 | #include <sys/procfs.h> | |
bec39cab AC |
20151 | int |
20152 | main () | |
20153 | { | |
97bf5e38 | 20154 | pr_sigaction64_t avar |
bec39cab AC |
20155 | ; |
20156 | return 0; | |
20157 | } | |
20158 | _ACEOF | |
20159 | rm -f conftest.$ac_objext | |
20160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20161 | (eval $ac_compile) 2>conftest.er1 | |
20162 | ac_status=$? | |
20163 | grep -v '^ *+' conftest.er1 >conftest.err | |
20164 | rm -f conftest.er1 | |
20165 | cat conftest.err >&5 | |
20166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20167 | (exit $ac_status); } && | |
b4e70030 JB |
20168 | { ac_try='test -z "$ac_c_werror_flag" |
20169 | || test ! -s conftest.err' | |
bec39cab AC |
20170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20171 | (eval $ac_try) 2>&5 | |
20172 | ac_status=$? | |
20173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20174 | (exit $ac_status); }; } && | |
20175 | { ac_try='test -s conftest.$ac_objext' | |
20176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20177 | (eval $ac_try) 2>&5 | |
20178 | ac_status=$? | |
20179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20180 | (exit $ac_status); }; }; then | |
97bf5e38 | 20181 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 20182 | else |
bec39cab AC |
20183 | echo "$as_me: failed program was:" >&5 |
20184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20185 | ||
b4e70030 | 20186 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 20187 | |
c906108c | 20188 | fi |
bec39cab | 20189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20190 | fi |
20191 | ||
97bf5e38 | 20192 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
20193 | |
20194 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20195 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 20196 | _ACEOF |
c906108c | 20197 | |
97bf5e38 | 20198 | fi |
b4e70030 JB |
20199 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
20200 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 20201 | |
b4e70030 JB |
20202 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
20203 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20204 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
20205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20206 | else |
bec39cab AC |
20207 | cat >conftest.$ac_ext <<_ACEOF |
20208 | /* confdefs.h. */ | |
20209 | _ACEOF | |
20210 | cat confdefs.h >>conftest.$ac_ext | |
20211 | cat >>conftest.$ac_ext <<_ACEOF | |
20212 | /* end confdefs.h. */ | |
97bf5e38 MK |
20213 | |
20214 | #define _SYSCALL32 | |
20215 | #include <sys/procfs.h> | |
bec39cab AC |
20216 | int |
20217 | main () | |
20218 | { | |
97bf5e38 | 20219 | pr_siginfo64_t avar |
bec39cab AC |
20220 | ; |
20221 | return 0; | |
20222 | } | |
20223 | _ACEOF | |
20224 | rm -f conftest.$ac_objext | |
20225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20226 | (eval $ac_compile) 2>conftest.er1 | |
20227 | ac_status=$? | |
20228 | grep -v '^ *+' conftest.er1 >conftest.err | |
20229 | rm -f conftest.er1 | |
20230 | cat conftest.err >&5 | |
20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20232 | (exit $ac_status); } && | |
b4e70030 JB |
20233 | { ac_try='test -z "$ac_c_werror_flag" |
20234 | || test ! -s conftest.err' | |
bec39cab AC |
20235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20236 | (eval $ac_try) 2>&5 | |
20237 | ac_status=$? | |
20238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20239 | (exit $ac_status); }; } && | |
20240 | { ac_try='test -s conftest.$ac_objext' | |
20241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20242 | (eval $ac_try) 2>&5 | |
20243 | ac_status=$? | |
20244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20245 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20246 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
20247 | else | |
bec39cab AC |
20248 | echo "$as_me: failed program was:" >&5 |
20249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20250 | ||
b4e70030 | 20251 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 20252 | |
97bf5e38 | 20253 | fi |
bec39cab | 20254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20255 | fi |
c906108c | 20256 | |
97bf5e38 | 20257 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
20258 | |
20259 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20260 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 20261 | _ACEOF |
c906108c | 20262 | |
97bf5e38 | 20263 | fi |
b4e70030 JB |
20264 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
20265 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
bec39cab AC |
20266 | |
20267 | ||
97bf5e38 MK |
20268 | |
20269 | ||
20270 | ||
97bf5e38 | 20271 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
b4e70030 JB |
20272 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
20273 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
bec39cab AC |
20274 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
20275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
20276 | else |
20277 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 20278 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 20279 | else |
bec39cab AC |
20280 | cat >conftest.$ac_ext <<_ACEOF |
20281 | /* confdefs.h. */ | |
20282 | _ACEOF | |
20283 | cat confdefs.h >>conftest.$ac_ext | |
20284 | cat >>conftest.$ac_ext <<_ACEOF | |
20285 | /* end confdefs.h. */ | |
97bf5e38 MK |
20286 | #include <sys/procfs.h> |
20287 | int main () | |
20288 | { | |
20289 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
20290 | return 1; | |
20291 | return 0; | |
20292 | } | |
bec39cab AC |
20293 | _ACEOF |
20294 | rm -f conftest$ac_exeext | |
20295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20296 | (eval $ac_link) 2>&5 | |
20297 | ac_status=$? | |
20298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20299 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20301 | (eval $ac_try) 2>&5 | |
20302 | ac_status=$? | |
20303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20304 | (exit $ac_status); }; }; then | |
97bf5e38 | 20305 | gdb_cv_prfpregset_t_broken=no |
c906108c | 20306 | else |
bec39cab AC |
20307 | echo "$as_me: program exited with status $ac_status" >&5 |
20308 | echo "$as_me: failed program was:" >&5 | |
20309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20310 | ||
20311 | ( exit $ac_status ) | |
20312 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 20313 | fi |
b4e70030 | 20314 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 20315 | fi |
c906108c SS |
20316 | fi |
20317 | ||
b4e70030 JB |
20318 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
20319 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 20320 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
20321 | |
20322 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20323 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 20324 | _ACEOF |
c906108c | 20325 | |
97bf5e38 MK |
20326 | fi |
20327 | fi | |
c906108c | 20328 | |
bec39cab | 20329 | |
b4e70030 JB |
20330 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
20331 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20332 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
20333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20334 | else |
bec39cab AC |
20335 | cat >conftest.$ac_ext <<_ACEOF |
20336 | /* confdefs.h. */ | |
20337 | _ACEOF | |
20338 | cat confdefs.h >>conftest.$ac_ext | |
20339 | cat >>conftest.$ac_ext <<_ACEOF | |
20340 | /* end confdefs.h. */ | |
97bf5e38 MK |
20341 | #include <unistd.h> |
20342 | #include <sys/types.h> | |
20343 | #include <sys/procfs.h> | |
20344 | ||
bec39cab AC |
20345 | int |
20346 | main () | |
20347 | { | |
97bf5e38 MK |
20348 | |
20349 | int dummy;; | |
20350 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
20351 | |
20352 | ; | |
20353 | return 0; | |
20354 | } | |
20355 | _ACEOF | |
20356 | rm -f conftest.$ac_objext | |
20357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20358 | (eval $ac_compile) 2>conftest.er1 | |
20359 | ac_status=$? | |
20360 | grep -v '^ *+' conftest.er1 >conftest.err | |
20361 | rm -f conftest.er1 | |
20362 | cat conftest.err >&5 | |
20363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20364 | (exit $ac_status); } && | |
b4e70030 JB |
20365 | { ac_try='test -z "$ac_c_werror_flag" |
20366 | || test ! -s conftest.err' | |
bec39cab AC |
20367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20368 | (eval $ac_try) 2>&5 | |
20369 | ac_status=$? | |
20370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20371 | (exit $ac_status); }; } && | |
20372 | { ac_try='test -s conftest.$ac_objext' | |
20373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20374 | (eval $ac_try) 2>&5 | |
20375 | ac_status=$? | |
20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20377 | (exit $ac_status); }; }; then | |
97bf5e38 | 20378 | gdb_cv_have_procfs_piocset=yes |
c906108c | 20379 | else |
bec39cab AC |
20380 | echo "$as_me: failed program was:" >&5 |
20381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20382 | ||
b4e70030 | 20383 | gdb_cv_have_procfs_piocset=no |
c906108c | 20384 | fi |
bec39cab | 20385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20386 | fi |
97bf5e38 | 20387 | |
b4e70030 JB |
20388 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
20389 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 20390 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
20391 | |
20392 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20393 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 20394 | _ACEOF |
97bf5e38 MK |
20395 | |
20396 | fi | |
c906108c | 20397 | fi |
c906108c | 20398 | |
97bf5e38 | 20399 | if test ${host} = ${target} ; then |
bec39cab | 20400 | |
b4e70030 JB |
20401 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
20402 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
20403 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
20404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20405 | else | |
20406 | cat >conftest.$ac_ext <<_ACEOF | |
20407 | /* confdefs.h. */ | |
20408 | _ACEOF | |
20409 | cat confdefs.h >>conftest.$ac_ext | |
20410 | cat >>conftest.$ac_ext <<_ACEOF | |
20411 | /* end confdefs.h. */ | |
97bf5e38 | 20412 | #include <link.h> |
bec39cab AC |
20413 | int |
20414 | main () | |
20415 | { | |
97bf5e38 | 20416 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
20417 | ; |
20418 | return 0; | |
20419 | } | |
20420 | _ACEOF | |
20421 | rm -f conftest.$ac_objext | |
20422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20423 | (eval $ac_compile) 2>conftest.er1 | |
20424 | ac_status=$? | |
20425 | grep -v '^ *+' conftest.er1 >conftest.err | |
20426 | rm -f conftest.er1 | |
20427 | cat conftest.err >&5 | |
20428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20429 | (exit $ac_status); } && | |
b4e70030 JB |
20430 | { ac_try='test -z "$ac_c_werror_flag" |
20431 | || test ! -s conftest.err' | |
bec39cab AC |
20432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20433 | (eval $ac_try) 2>&5 | |
20434 | ac_status=$? | |
20435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20436 | (exit $ac_status); }; } && | |
20437 | { ac_try='test -s conftest.$ac_objext' | |
20438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20439 | (eval $ac_try) 2>&5 | |
20440 | ac_status=$? | |
20441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20442 | (exit $ac_status); }; }; then | |
97bf5e38 | 20443 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 20444 | else |
bec39cab AC |
20445 | echo "$as_me: failed program was:" >&5 |
20446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20447 | ||
b4e70030 | 20448 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 20449 | fi |
bec39cab | 20450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20451 | fi |
20452 | ||
b4e70030 JB |
20453 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
20454 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 20455 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
20456 | |
20457 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20458 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 20459 | _ACEOF |
97bf5e38 MK |
20460 | |
20461 | fi | |
20462 | ||
bec39cab | 20463 | |
b4e70030 JB |
20464 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
20465 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
20466 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
20467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20468 | else |
bec39cab AC |
20469 | cat >conftest.$ac_ext <<_ACEOF |
20470 | /* confdefs.h. */ | |
20471 | _ACEOF | |
20472 | cat confdefs.h >>conftest.$ac_ext | |
20473 | cat >>conftest.$ac_ext <<_ACEOF | |
20474 | /* end confdefs.h. */ | |
97bf5e38 MK |
20475 | #include <sys/types.h> |
20476 | #include <link.h> | |
bec39cab AC |
20477 | int |
20478 | main () | |
20479 | { | |
97bf5e38 | 20480 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
20481 | ; |
20482 | return 0; | |
20483 | } | |
20484 | _ACEOF | |
20485 | rm -f conftest.$ac_objext | |
20486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20487 | (eval $ac_compile) 2>conftest.er1 | |
20488 | ac_status=$? | |
20489 | grep -v '^ *+' conftest.er1 >conftest.err | |
20490 | rm -f conftest.er1 | |
20491 | cat conftest.err >&5 | |
20492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20493 | (exit $ac_status); } && | |
b4e70030 JB |
20494 | { ac_try='test -z "$ac_c_werror_flag" |
20495 | || test ! -s conftest.err' | |
bec39cab AC |
20496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20497 | (eval $ac_try) 2>&5 | |
20498 | ac_status=$? | |
20499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20500 | (exit $ac_status); }; } && | |
20501 | { ac_try='test -s conftest.$ac_objext' | |
20502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20503 | (eval $ac_try) 2>&5 | |
20504 | ac_status=$? | |
20505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20506 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20507 | gdb_cv_have_struct_link_map_with_lm_members=yes |
20508 | else | |
bec39cab AC |
20509 | echo "$as_me: failed program was:" >&5 |
20510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20511 | ||
b4e70030 | 20512 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 20513 | fi |
bec39cab | 20514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20515 | fi |
c906108c | 20516 | |
b4e70030 JB |
20517 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
20518 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 20519 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
20520 | |
20521 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20522 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 20523 | _ACEOF |
97bf5e38 MK |
20524 | |
20525 | fi | |
20526 | ||
bec39cab | 20527 | |
b4e70030 JB |
20528 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
20529 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
bec39cab AC |
20530 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
20531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20532 | else |
bec39cab AC |
20533 | cat >conftest.$ac_ext <<_ACEOF |
20534 | /* confdefs.h. */ | |
20535 | _ACEOF | |
20536 | cat confdefs.h >>conftest.$ac_ext | |
20537 | cat >>conftest.$ac_ext <<_ACEOF | |
20538 | /* end confdefs.h. */ | |
97bf5e38 MK |
20539 | #include <sys/types.h> |
20540 | #ifdef HAVE_NLIST_H | |
20541 | #include <nlist.h> | |
20542 | #endif | |
20543 | #include <link.h> | |
bec39cab AC |
20544 | int |
20545 | main () | |
20546 | { | |
97bf5e38 | 20547 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
20548 | ; |
20549 | return 0; | |
20550 | } | |
20551 | _ACEOF | |
20552 | rm -f conftest.$ac_objext | |
20553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20554 | (eval $ac_compile) 2>conftest.er1 | |
20555 | ac_status=$? | |
20556 | grep -v '^ *+' conftest.er1 >conftest.err | |
20557 | rm -f conftest.er1 | |
20558 | cat conftest.err >&5 | |
20559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20560 | (exit $ac_status); } && | |
b4e70030 JB |
20561 | { ac_try='test -z "$ac_c_werror_flag" |
20562 | || test ! -s conftest.err' | |
bec39cab AC |
20563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20564 | (eval $ac_try) 2>&5 | |
20565 | ac_status=$? | |
20566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20567 | (exit $ac_status); }; } && | |
20568 | { ac_try='test -s conftest.$ac_objext' | |
20569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20570 | (eval $ac_try) 2>&5 | |
20571 | ac_status=$? | |
20572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20573 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20574 | gdb_cv_have_struct_so_map_with_som_members=yes |
20575 | else | |
bec39cab AC |
20576 | echo "$as_me: failed program was:" >&5 |
20577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20578 | ||
b4e70030 | 20579 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 20580 | fi |
bec39cab | 20581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20582 | fi |
c906108c | 20583 | |
b4e70030 JB |
20584 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
20585 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 20586 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
20587 | |
20588 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20589 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 20590 | _ACEOF |
c906108c | 20591 | |
97bf5e38 | 20592 | fi |
c906108c | 20593 | |
bec39cab | 20594 | |
b4e70030 JB |
20595 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
20596 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
bec39cab AC |
20597 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
20598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20599 | else |
bec39cab AC |
20600 | cat >conftest.$ac_ext <<_ACEOF |
20601 | /* confdefs.h. */ | |
20602 | _ACEOF | |
20603 | cat confdefs.h >>conftest.$ac_ext | |
20604 | cat >>conftest.$ac_ext <<_ACEOF | |
20605 | /* end confdefs.h. */ | |
97bf5e38 MK |
20606 | #define _SYSCALL32 |
20607 | #include <sys/link.h> | |
bec39cab AC |
20608 | int |
20609 | main () | |
20610 | { | |
97bf5e38 | 20611 | struct link_map32 l; |
bec39cab AC |
20612 | ; |
20613 | return 0; | |
20614 | } | |
20615 | _ACEOF | |
20616 | rm -f conftest.$ac_objext | |
20617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20618 | (eval $ac_compile) 2>conftest.er1 | |
20619 | ac_status=$? | |
20620 | grep -v '^ *+' conftest.er1 >conftest.err | |
20621 | rm -f conftest.er1 | |
20622 | cat conftest.err >&5 | |
20623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20624 | (exit $ac_status); } && | |
b4e70030 JB |
20625 | { ac_try='test -z "$ac_c_werror_flag" |
20626 | || test ! -s conftest.err' | |
bec39cab AC |
20627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20628 | (eval $ac_try) 2>&5 | |
20629 | ac_status=$? | |
20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20631 | (exit $ac_status); }; } && | |
20632 | { ac_try='test -s conftest.$ac_objext' | |
20633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20634 | (eval $ac_try) 2>&5 | |
20635 | ac_status=$? | |
20636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20637 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20638 | gdb_cv_have_struct_link_map32=yes |
20639 | else | |
bec39cab AC |
20640 | echo "$as_me: failed program was:" >&5 |
20641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20642 | ||
b4e70030 | 20643 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 20644 | fi |
bec39cab | 20645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20646 | fi |
c906108c | 20647 | |
b4e70030 JB |
20648 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
20649 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 20650 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
20651 | |
20652 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20653 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 20654 | _ACEOF |
c906108c | 20655 | |
60ca704f SE |
20656 | |
20657 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20658 | #define _SYSCALL32 1 |
bec39cab | 20659 | _ACEOF |
c906108c | 20660 | |
97bf5e38 MK |
20661 | fi |
20662 | fi | |
c906108c | 20663 | |
bc8bcb4b | 20664 | # Check if the compiler supports the `long long' type. |
c906108c | 20665 | |
b4e70030 JB |
20666 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
20667 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
bec39cab AC |
20668 | if test "${gdb_cv_c_long_long+set}" = set; then |
20669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20670 | else |
bec39cab AC |
20671 | cat >conftest.$ac_ext <<_ACEOF |
20672 | /* confdefs.h. */ | |
20673 | _ACEOF | |
20674 | cat confdefs.h >>conftest.$ac_ext | |
20675 | cat >>conftest.$ac_ext <<_ACEOF | |
20676 | /* end confdefs.h. */ | |
bc8bcb4b | 20677 | extern long long foo; |
bec39cab AC |
20678 | int |
20679 | main () | |
20680 | { | |
bc8bcb4b | 20681 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
20682 | ; |
20683 | return 0; | |
20684 | } | |
20685 | _ACEOF | |
20686 | rm -f conftest.$ac_objext | |
20687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20688 | (eval $ac_compile) 2>conftest.er1 | |
20689 | ac_status=$? | |
20690 | grep -v '^ *+' conftest.er1 >conftest.err | |
20691 | rm -f conftest.er1 | |
20692 | cat conftest.err >&5 | |
20693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20694 | (exit $ac_status); } && | |
b4e70030 JB |
20695 | { ac_try='test -z "$ac_c_werror_flag" |
20696 | || test ! -s conftest.err' | |
bec39cab AC |
20697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20698 | (eval $ac_try) 2>&5 | |
20699 | ac_status=$? | |
20700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20701 | (exit $ac_status); }; } && | |
20702 | { ac_try='test -s conftest.$ac_objext' | |
20703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20704 | (eval $ac_try) 2>&5 | |
20705 | ac_status=$? | |
20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20707 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20708 | gdb_cv_c_long_long=yes |
20709 | else | |
bec39cab AC |
20710 | echo "$as_me: failed program was:" >&5 |
20711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20712 | ||
b4e70030 | 20713 | gdb_cv_c_long_long=no |
97bf5e38 | 20714 | fi |
bec39cab | 20715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20716 | fi |
b4e70030 JB |
20717 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
20718 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 20719 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
20720 | |
20721 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20722 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 20723 | _ACEOF |
97bf5e38 MK |
20724 | |
20725 | fi | |
20726 | ||
bc8bcb4b | 20727 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 20728 | |
b4e70030 JB |
20729 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
20730 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20731 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
20732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20733 | else |
20734 | if test "$cross_compiling" = yes; then | |
20735 | gdb_cv_printf_has_long_long=no | |
20736 | else | |
bec39cab AC |
20737 | cat >conftest.$ac_ext <<_ACEOF |
20738 | /* confdefs.h. */ | |
20739 | _ACEOF | |
20740 | cat confdefs.h >>conftest.$ac_ext | |
20741 | cat >>conftest.$ac_ext <<_ACEOF | |
20742 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20743 | $ac_includes_default |
20744 | int | |
20745 | main () | |
20746 | { | |
20747 | char buf[32]; | |
97bf5e38 MK |
20748 | long long l = 0; |
20749 | l = (l << 16) + 0x0123; | |
20750 | l = (l << 16) + 0x4567; | |
20751 | l = (l << 16) + 0x89ab; | |
20752 | l = (l << 16) + 0xcdef; | |
20753 | sprintf (buf, "0x%016llx", l); | |
20754 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
20755 | ; |
20756 | return 0; | |
c906108c | 20757 | } |
bec39cab AC |
20758 | _ACEOF |
20759 | rm -f conftest$ac_exeext | |
20760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20761 | (eval $ac_link) 2>&5 | |
20762 | ac_status=$? | |
20763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20764 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20766 | (eval $ac_try) 2>&5 | |
20767 | ac_status=$? | |
20768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20769 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20770 | gdb_cv_printf_has_long_long=yes |
20771 | else | |
bec39cab AC |
20772 | echo "$as_me: program exited with status $ac_status" >&5 |
20773 | echo "$as_me: failed program was:" >&5 | |
20774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20775 | ||
20776 | ( exit $ac_status ) | |
20777 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 20778 | fi |
b4e70030 | 20779 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20780 | fi |
97bf5e38 | 20781 | fi |
b4e70030 JB |
20782 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
20783 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 20784 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
20785 | |
20786 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20787 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 20788 | _ACEOF |
97bf5e38 MK |
20789 | |
20790 | fi | |
97bf5e38 | 20791 | |
bc8bcb4b MK |
20792 | # Check if the compiler supports the `long double' type. We can't use |
20793 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
20794 | # constants defined in <float.h> that fail on some systems, | |
20795 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 20796 | |
b4e70030 JB |
20797 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
20798 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 20799 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 20800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 20801 | else |
bec39cab AC |
20802 | cat >conftest.$ac_ext <<_ACEOF |
20803 | /* confdefs.h. */ | |
20804 | _ACEOF | |
20805 | cat confdefs.h >>conftest.$ac_ext | |
20806 | cat >>conftest.$ac_ext <<_ACEOF | |
20807 | /* end confdefs.h. */ | |
97bf5e38 | 20808 | long double foo; |
bec39cab AC |
20809 | _ACEOF |
20810 | rm -f conftest.$ac_objext | |
20811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20812 | (eval $ac_compile) 2>conftest.er1 | |
20813 | ac_status=$? | |
20814 | grep -v '^ *+' conftest.er1 >conftest.err | |
20815 | rm -f conftest.er1 | |
20816 | cat conftest.err >&5 | |
20817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20818 | (exit $ac_status); } && | |
b4e70030 JB |
20819 | { ac_try='test -z "$ac_c_werror_flag" |
20820 | || test ! -s conftest.err' | |
bec39cab AC |
20821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20822 | (eval $ac_try) 2>&5 | |
20823 | ac_status=$? | |
20824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20825 | (exit $ac_status); }; } && | |
20826 | { ac_try='test -s conftest.$ac_objext' | |
20827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20828 | (eval $ac_try) 2>&5 | |
20829 | ac_status=$? | |
20830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20831 | (exit $ac_status); }; }; then | |
bc8bcb4b | 20832 | gdb_cv_c_long_double=yes |
97bf5e38 | 20833 | else |
bec39cab AC |
20834 | echo "$as_me: failed program was:" >&5 |
20835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20836 | ||
b4e70030 | 20837 | gdb_cv_c_long_double=no |
97bf5e38 | 20838 | fi |
bec39cab | 20839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20840 | fi |
b4e70030 JB |
20841 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
20842 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
bc8bcb4b | 20843 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 20844 | |
bc8bcb4b | 20845 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 20846 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 20847 | _ACEOF |
97bf5e38 MK |
20848 | |
20849 | fi | |
20850 | ||
bc8bcb4b | 20851 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 20852 | |
b4e70030 JB |
20853 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
20854 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20855 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
20856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20857 | else |
20858 | if test "$cross_compiling" = yes; then | |
20859 | gdb_cv_printf_has_long_double=no | |
20860 | else | |
bec39cab AC |
20861 | cat >conftest.$ac_ext <<_ACEOF |
20862 | /* confdefs.h. */ | |
20863 | _ACEOF | |
20864 | cat confdefs.h >>conftest.$ac_ext | |
20865 | cat >>conftest.$ac_ext <<_ACEOF | |
20866 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20867 | $ac_includes_default |
20868 | int | |
20869 | main () | |
20870 | { | |
20871 | char buf[16]; | |
97bf5e38 MK |
20872 | long double f = 3.141592653; |
20873 | sprintf (buf, "%Lg", f); | |
20874 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
20875 | ; |
20876 | return 0; | |
97bf5e38 | 20877 | } |
bec39cab AC |
20878 | _ACEOF |
20879 | rm -f conftest$ac_exeext | |
20880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20881 | (eval $ac_link) 2>&5 | |
20882 | ac_status=$? | |
20883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20884 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20886 | (eval $ac_try) 2>&5 | |
20887 | ac_status=$? | |
20888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20889 | (exit $ac_status); }; }; then | |
97bf5e38 | 20890 | gdb_cv_printf_has_long_double=yes |
c906108c | 20891 | else |
bec39cab AC |
20892 | echo "$as_me: program exited with status $ac_status" >&5 |
20893 | echo "$as_me: failed program was:" >&5 | |
20894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20895 | ||
20896 | ( exit $ac_status ) | |
20897 | gdb_cv_printf_has_long_double=no | |
c906108c | 20898 | fi |
b4e70030 | 20899 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 20900 | fi |
c906108c | 20901 | fi |
b4e70030 JB |
20902 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
20903 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 20904 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
20905 | |
20906 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20907 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 20908 | _ACEOF |
97bf5e38 MK |
20909 | |
20910 | fi | |
97bf5e38 | 20911 | |
bc8bcb4b | 20912 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 20913 | |
b4e70030 JB |
20914 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
20915 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
bec39cab AC |
20916 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
20917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20918 | else |
20919 | if test "$cross_compiling" = yes; then | |
20920 | gdb_cv_scanf_has_long_double=no | |
20921 | else | |
bec39cab AC |
20922 | cat >conftest.$ac_ext <<_ACEOF |
20923 | /* confdefs.h. */ | |
20924 | _ACEOF | |
20925 | cat confdefs.h >>conftest.$ac_ext | |
20926 | cat >>conftest.$ac_ext <<_ACEOF | |
20927 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20928 | #include <stdio.h> |
20929 | int | |
20930 | main () | |
20931 | { | |
20932 | char *buf = "3.141592653"; | |
97bf5e38 MK |
20933 | long double f = 0; |
20934 | sscanf (buf, "%Lg", &f); | |
20935 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
20936 | ; |
20937 | return 0; | |
97bf5e38 | 20938 | } |
bec39cab AC |
20939 | _ACEOF |
20940 | rm -f conftest$ac_exeext | |
20941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20942 | (eval $ac_link) 2>&5 | |
20943 | ac_status=$? | |
20944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20945 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20947 | (eval $ac_try) 2>&5 | |
20948 | ac_status=$? | |
20949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20950 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20951 | gdb_cv_scanf_has_long_double=yes |
20952 | else | |
bec39cab AC |
20953 | echo "$as_me: program exited with status $ac_status" >&5 |
20954 | echo "$as_me: failed program was:" >&5 | |
20955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20956 | ||
20957 | ( exit $ac_status ) | |
20958 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 20959 | fi |
b4e70030 | 20960 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20961 | fi |
c906108c | 20962 | fi |
b4e70030 JB |
20963 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
20964 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 20965 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
20966 | |
20967 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20968 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 20969 | _ACEOF |
97bf5e38 MK |
20970 | |
20971 | fi | |
c906108c | 20972 | |
438013df AO |
20973 | case ${host_os} in |
20974 | aix*) | |
b4e70030 JB |
20975 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
20976 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
bec39cab AC |
20977 | if test "${gdb_cv_bigtoc+set}" = set; then |
20978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 20979 | else |
bec39cab | 20980 | |
438013df AO |
20981 | SAVE_LDFLAGS=$LDFLAGS |
20982 | ||
20983 | case $GCC in | |
20984 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
20985 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
20986 | esac | |
20987 | ||
20988 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
20989 | cat >conftest.$ac_ext <<_ACEOF |
20990 | /* confdefs.h. */ | |
20991 | _ACEOF | |
20992 | cat confdefs.h >>conftest.$ac_ext | |
20993 | cat >>conftest.$ac_ext <<_ACEOF | |
20994 | /* end confdefs.h. */ | |
438013df | 20995 | |
bec39cab AC |
20996 | int |
20997 | main () | |
20998 | { | |
438013df | 20999 | int i; |
bec39cab AC |
21000 | ; |
21001 | return 0; | |
21002 | } | |
21003 | _ACEOF | |
21004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21006 | (eval $ac_link) 2>conftest.er1 | |
21007 | ac_status=$? | |
21008 | grep -v '^ *+' conftest.er1 >conftest.err | |
21009 | rm -f conftest.er1 | |
21010 | cat conftest.err >&5 | |
21011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21012 | (exit $ac_status); } && | |
b4e70030 JB |
21013 | { ac_try='test -z "$ac_c_werror_flag" |
21014 | || test ! -s conftest.err' | |
bec39cab AC |
21015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21016 | (eval $ac_try) 2>&5 | |
21017 | ac_status=$? | |
21018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21019 | (exit $ac_status); }; } && | |
21020 | { ac_try='test -s conftest$ac_exeext' | |
21021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21022 | (eval $ac_try) 2>&5 | |
21023 | ac_status=$? | |
21024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21025 | (exit $ac_status); }; }; then | |
438013df AO |
21026 | : |
21027 | else | |
bec39cab AC |
21028 | echo "$as_me: failed program was:" >&5 |
21029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21030 | ||
b4e70030 | 21031 | gdb_cv_bigtoc= |
438013df | 21032 | fi |
bec39cab AC |
21033 | rm -f conftest.err conftest.$ac_objext \ |
21034 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 21035 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 21036 | |
bec39cab | 21037 | fi |
b4e70030 JB |
21038 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
21039 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
21040 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
21041 | ;; | |
21042 | esac | |
21043 | ||
c906108c SS |
21044 | |
21045 | ||
21046 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
21047 | case ${host_os} in | |
21048 | hpux*) | |
b4e70030 JB |
21049 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
21050 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
21051 | if test -f /usr/include/dce/cma_config.h ; then |
21052 | if test "$GCC" = "yes" ; then | |
b4e70030 JB |
21053 | echo "$as_me:$LINENO: result: yes" >&5 |
21054 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
21055 | |
21056 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21057 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 21058 | _ACEOF |
c906108c | 21059 | |
3483b318 | 21060 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
21061 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
21062 | else | |
b4e70030 JB |
21063 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
21064 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
21065 | fi |
21066 | else | |
b4e70030 JB |
21067 | echo "$as_me:$LINENO: result: no" >&5 |
21068 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
21069 | fi |
21070 | ;; | |
21071 | solaris*) | |
d92419e5 JB |
21072 | # See if thread_db library is around for Solaris thread debugging. |
21073 | # Note that we must explicitly test for version 1 of the library | |
21074 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
21075 | # the same API. | |
b4e70030 JB |
21076 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
21077 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 21078 | if test -f /usr/lib/libthread_db.so.1 ; then |
b4e70030 JB |
21079 | echo "$as_me:$LINENO: result: yes" >&5 |
21080 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
21081 | |
21082 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21083 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 21084 | _ACEOF |
c906108c | 21085 | |
3483b318 | 21086 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 21087 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 21088 | |
b4e70030 JB |
21089 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
21090 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
bec39cab AC |
21091 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
21092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21093 | else |
bec39cab | 21094 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 21095 | LIBS="-ldl $LIBS" |
bec39cab AC |
21096 | cat >conftest.$ac_ext <<_ACEOF |
21097 | /* confdefs.h. */ | |
21098 | _ACEOF | |
21099 | cat confdefs.h >>conftest.$ac_ext | |
21100 | cat >>conftest.$ac_ext <<_ACEOF | |
21101 | /* end confdefs.h. */ | |
21102 | ||
b4e70030 | 21103 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
21104 | #ifdef __cplusplus |
21105 | extern "C" | |
21106 | #endif | |
b4e70030 JB |
21107 | /* We use char because int might match the return type of a gcc2 |
21108 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
21109 | char dlopen (); |
21110 | int | |
21111 | main () | |
21112 | { | |
b4e70030 | 21113 | dlopen (); |
bec39cab AC |
21114 | ; |
21115 | return 0; | |
21116 | } | |
21117 | _ACEOF | |
21118 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21120 | (eval $ac_link) 2>conftest.er1 | |
21121 | ac_status=$? | |
21122 | grep -v '^ *+' conftest.er1 >conftest.err | |
21123 | rm -f conftest.er1 | |
21124 | cat conftest.err >&5 | |
21125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21126 | (exit $ac_status); } && | |
b4e70030 JB |
21127 | { ac_try='test -z "$ac_c_werror_flag" |
21128 | || test ! -s conftest.err' | |
bec39cab AC |
21129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21130 | (eval $ac_try) 2>&5 | |
21131 | ac_status=$? | |
21132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21133 | (exit $ac_status); }; } && | |
21134 | { ac_try='test -s conftest$ac_exeext' | |
21135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21136 | (eval $ac_try) 2>&5 | |
21137 | ac_status=$? | |
21138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21139 | (exit $ac_status); }; }; then | |
21140 | ac_cv_lib_dl_dlopen=yes | |
21141 | else | |
21142 | echo "$as_me: failed program was:" >&5 | |
21143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21144 | ||
b4e70030 | 21145 | ac_cv_lib_dl_dlopen=no |
bec39cab AC |
21146 | fi |
21147 | rm -f conftest.err conftest.$ac_objext \ | |
21148 | conftest$ac_exeext conftest.$ac_ext | |
21149 | LIBS=$ac_check_lib_save_LIBS | |
21150 | fi | |
b4e70030 JB |
21151 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
21152 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
bec39cab AC |
21153 | if test $ac_cv_lib_dl_dlopen = yes; then |
21154 | cat >>confdefs.h <<_ACEOF | |
21155 | #define HAVE_LIBDL 1 | |
21156 | _ACEOF | |
c906108c SS |
21157 | |
21158 | LIBS="-ldl $LIBS" | |
21159 | ||
c906108c SS |
21160 | fi |
21161 | ||
21162 | if test "$GCC" = "yes" ; then | |
21163 | # The GNU linker requires the -export-dynamic option to make | |
21164 | # all symbols visible in the dynamic symbol table. | |
21165 | hold_ldflags=$LDFLAGS | |
b4e70030 JB |
21166 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
21167 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 21168 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
21169 | cat >conftest.$ac_ext <<_ACEOF |
21170 | /* confdefs.h. */ | |
21171 | _ACEOF | |
21172 | cat confdefs.h >>conftest.$ac_ext | |
21173 | cat >>conftest.$ac_ext <<_ACEOF | |
21174 | /* end confdefs.h. */ | |
c906108c | 21175 | |
bec39cab AC |
21176 | int |
21177 | main () | |
21178 | { | |
c906108c | 21179 | int i; |
bec39cab AC |
21180 | ; |
21181 | return 0; | |
21182 | } | |
21183 | _ACEOF | |
21184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21186 | (eval $ac_link) 2>conftest.er1 | |
21187 | ac_status=$? | |
21188 | grep -v '^ *+' conftest.er1 >conftest.err | |
21189 | rm -f conftest.er1 | |
21190 | cat conftest.err >&5 | |
21191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21192 | (exit $ac_status); } && | |
b4e70030 JB |
21193 | { ac_try='test -z "$ac_c_werror_flag" |
21194 | || test ! -s conftest.err' | |
bec39cab AC |
21195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21196 | (eval $ac_try) 2>&5 | |
21197 | ac_status=$? | |
21198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21199 | (exit $ac_status); }; } && | |
21200 | { ac_try='test -s conftest$ac_exeext' | |
21201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21202 | (eval $ac_try) 2>&5 | |
21203 | ac_status=$? | |
21204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21205 | (exit $ac_status); }; }; then | |
c906108c SS |
21206 | found=yes |
21207 | else | |
bec39cab AC |
21208 | echo "$as_me: failed program was:" >&5 |
21209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21210 | ||
b4e70030 | 21211 | found=no |
c906108c | 21212 | fi |
bec39cab AC |
21213 | rm -f conftest.err conftest.$ac_objext \ |
21214 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 21215 | LDFLAGS=$hold_ldflags |
b4e70030 JB |
21216 | echo "$as_me:$LINENO: result: $found" >&5 |
21217 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
21218 | if test $found = yes; then |
21219 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
21220 | fi | |
21221 | fi | |
21222 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
21223 | # at one point. | |
b4e70030 JB |
21224 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
21225 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
bec39cab AC |
21226 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
21227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21228 | else |
bec39cab AC |
21229 | |
21230 | cat >conftest.$ac_ext <<_ACEOF | |
21231 | /* confdefs.h. */ | |
21232 | _ACEOF | |
21233 | cat confdefs.h >>conftest.$ac_ext | |
21234 | cat >>conftest.$ac_ext <<_ACEOF | |
21235 | /* end confdefs.h. */ | |
c906108c SS |
21236 | |
21237 | #include <proc_service.h> | |
21238 | ps_err_e ps_pdwrite | |
21239 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 21240 | |
bec39cab AC |
21241 | int |
21242 | main () | |
21243 | { | |
21244 | ||
21245 | ; | |
21246 | return 0; | |
21247 | } | |
21248 | _ACEOF | |
21249 | rm -f conftest.$ac_objext | |
21250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21251 | (eval $ac_compile) 2>conftest.er1 | |
21252 | ac_status=$? | |
21253 | grep -v '^ *+' conftest.er1 >conftest.err | |
21254 | rm -f conftest.er1 | |
21255 | cat conftest.err >&5 | |
21256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21257 | (exit $ac_status); } && | |
b4e70030 JB |
21258 | { ac_try='test -z "$ac_c_werror_flag" |
21259 | || test ! -s conftest.err' | |
bec39cab AC |
21260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21261 | (eval $ac_try) 2>&5 | |
21262 | ac_status=$? | |
21263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21264 | (exit $ac_status); }; } && | |
21265 | { ac_try='test -s conftest.$ac_objext' | |
21266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21267 | (eval $ac_try) 2>&5 | |
21268 | ac_status=$? | |
21269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21270 | (exit $ac_status); }; }; then | |
c906108c SS |
21271 | gdb_cv_proc_service_is_old=no |
21272 | else | |
bec39cab AC |
21273 | echo "$as_me: failed program was:" >&5 |
21274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21275 | ||
b4e70030 | 21276 | gdb_cv_proc_service_is_old=yes |
c906108c | 21277 | fi |
bec39cab AC |
21278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21279 | ||
c906108c SS |
21280 | fi |
21281 | ||
b4e70030 JB |
21282 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
21283 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 21284 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
21285 | |
21286 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21287 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 21288 | _ACEOF |
c906108c SS |
21289 | |
21290 | fi | |
21291 | else | |
b4e70030 JB |
21292 | echo "$as_me:$LINENO: result: no" >&5 |
21293 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
21294 | fi |
21295 | ;; | |
d92419e5 | 21296 | aix*) |
b4e70030 JB |
21297 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
21298 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
bec39cab AC |
21299 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
21300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21301 | else | |
21302 | cat >conftest.$ac_ext <<_ACEOF | |
21303 | /* confdefs.h. */ | |
21304 | _ACEOF | |
21305 | cat confdefs.h >>conftest.$ac_ext | |
21306 | cat >>conftest.$ac_ext <<_ACEOF | |
21307 | /* end confdefs.h. */ | |
d92419e5 | 21308 | #include <sys/pthdebug.h> |
bec39cab AC |
21309 | int |
21310 | main () | |
21311 | { | |
d92419e5 JB |
21312 | #ifndef PTHDB_VERSION_3 |
21313 | #error | |
21314 | #endif | |
bec39cab AC |
21315 | ; |
21316 | return 0; | |
21317 | } | |
21318 | _ACEOF | |
21319 | rm -f conftest.$ac_objext | |
21320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21321 | (eval $ac_compile) 2>conftest.er1 | |
21322 | ac_status=$? | |
21323 | grep -v '^ *+' conftest.er1 >conftest.err | |
21324 | rm -f conftest.er1 | |
21325 | cat conftest.err >&5 | |
21326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21327 | (exit $ac_status); } && | |
b4e70030 JB |
21328 | { ac_try='test -z "$ac_c_werror_flag" |
21329 | || test ! -s conftest.err' | |
bec39cab AC |
21330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21331 | (eval $ac_try) 2>&5 | |
21332 | ac_status=$? | |
21333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21334 | (exit $ac_status); }; } && | |
21335 | { ac_try='test -s conftest.$ac_objext' | |
21336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21337 | (eval $ac_try) 2>&5 | |
21338 | ac_status=$? | |
21339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21340 | (exit $ac_status); }; }; then | |
d92419e5 JB |
21341 | gdb_cv_have_aix_thread_debug=yes |
21342 | else | |
bec39cab AC |
21343 | echo "$as_me: failed program was:" >&5 |
21344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21345 | ||
b4e70030 | 21346 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 21347 | fi |
bec39cab | 21348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
21349 | fi |
21350 | ||
b4e70030 JB |
21351 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
21352 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
21353 | if test $gdb_cv_have_aix_thread_debug = yes; then |
21354 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 21355 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
21356 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
21357 | fi | |
21358 | ;; | |
c906108c | 21359 | esac |
bec39cab | 21360 | |
c906108c SS |
21361 | fi |
21362 | ||
3f47be5c | 21363 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
b4e70030 JB |
21364 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
21365 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
bec39cab AC |
21366 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
21367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21368 | else | |
21369 | cat >conftest.$ac_ext <<_ACEOF | |
21370 | /* confdefs.h. */ | |
21371 | _ACEOF | |
21372 | cat confdefs.h >>conftest.$ac_ext | |
21373 | cat >>conftest.$ac_ext <<_ACEOF | |
21374 | /* end confdefs.h. */ | |
3f47be5c | 21375 | #include <thread_db.h> |
bec39cab AC |
21376 | int |
21377 | main () | |
21378 | { | |
3f47be5c | 21379 | int i = TD_NOTALLOC; |
bec39cab AC |
21380 | ; |
21381 | return 0; | |
21382 | } | |
21383 | _ACEOF | |
21384 | rm -f conftest.$ac_objext | |
21385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21386 | (eval $ac_compile) 2>conftest.er1 | |
21387 | ac_status=$? | |
21388 | grep -v '^ *+' conftest.er1 >conftest.err | |
21389 | rm -f conftest.er1 | |
21390 | cat conftest.err >&5 | |
21391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21392 | (exit $ac_status); } && | |
b4e70030 JB |
21393 | { ac_try='test -z "$ac_c_werror_flag" |
21394 | || test ! -s conftest.err' | |
bec39cab AC |
21395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21396 | (eval $ac_try) 2>&5 | |
21397 | ac_status=$? | |
21398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21399 | (exit $ac_status); }; } && | |
21400 | { ac_try='test -s conftest.$ac_objext' | |
21401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21402 | (eval $ac_try) 2>&5 | |
21403 | ac_status=$? | |
21404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21405 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
21406 | gdb_cv_thread_db_h_has_td_notalloc=yes |
21407 | else | |
bec39cab AC |
21408 | echo "$as_me: failed program was:" >&5 |
21409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21410 | ||
b4e70030 | 21411 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 21412 | |
3f47be5c | 21413 | fi |
bec39cab | 21414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 21415 | |
bec39cab | 21416 | fi |
b4e70030 JB |
21417 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
21418 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
59f80f10 DJ |
21419 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
21420 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 | |
21421 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then | |
21422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21423 | else | |
21424 | cat >conftest.$ac_ext <<_ACEOF | |
21425 | /* confdefs.h. */ | |
21426 | _ACEOF | |
21427 | cat confdefs.h >>conftest.$ac_ext | |
21428 | cat >>conftest.$ac_ext <<_ACEOF | |
21429 | /* end confdefs.h. */ | |
21430 | #include <thread_db.h> | |
21431 | int | |
21432 | main () | |
21433 | { | |
21434 | int i = TD_VERSION; | |
21435 | ; | |
21436 | return 0; | |
21437 | } | |
21438 | _ACEOF | |
21439 | rm -f conftest.$ac_objext | |
21440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21441 | (eval $ac_compile) 2>conftest.er1 | |
21442 | ac_status=$? | |
21443 | grep -v '^ *+' conftest.er1 >conftest.err | |
21444 | rm -f conftest.er1 | |
21445 | cat conftest.err >&5 | |
21446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21447 | (exit $ac_status); } && | |
21448 | { ac_try='test -z "$ac_c_werror_flag" | |
21449 | || test ! -s conftest.err' | |
21450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21451 | (eval $ac_try) 2>&5 | |
21452 | ac_status=$? | |
21453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21454 | (exit $ac_status); }; } && | |
21455 | { ac_try='test -s conftest.$ac_objext' | |
21456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21457 | (eval $ac_try) 2>&5 | |
21458 | ac_status=$? | |
21459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21460 | (exit $ac_status); }; }; then | |
21461 | gdb_cv_thread_db_h_has_td_version=yes | |
21462 | else | |
21463 | echo "$as_me: failed program was:" >&5 | |
21464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21465 | ||
21466 | gdb_cv_thread_db_h_has_td_version=no | |
21467 | ||
21468 | fi | |
21469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21470 | ||
21471 | fi | |
21472 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 | |
21473 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 | |
21474 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 | |
21475 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 | |
21476 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then | |
21477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21478 | else | |
21479 | cat >conftest.$ac_ext <<_ACEOF | |
21480 | /* confdefs.h. */ | |
21481 | _ACEOF | |
21482 | cat confdefs.h >>conftest.$ac_ext | |
21483 | cat >>conftest.$ac_ext <<_ACEOF | |
21484 | /* end confdefs.h. */ | |
21485 | #include <thread_db.h> | |
21486 | int | |
21487 | main () | |
21488 | { | |
21489 | int i = TD_NOTLS; | |
21490 | ; | |
21491 | return 0; | |
21492 | } | |
21493 | _ACEOF | |
21494 | rm -f conftest.$ac_objext | |
21495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21496 | (eval $ac_compile) 2>conftest.er1 | |
21497 | ac_status=$? | |
21498 | grep -v '^ *+' conftest.er1 >conftest.err | |
21499 | rm -f conftest.er1 | |
21500 | cat conftest.err >&5 | |
21501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21502 | (exit $ac_status); } && | |
21503 | { ac_try='test -z "$ac_c_werror_flag" | |
21504 | || test ! -s conftest.err' | |
21505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21506 | (eval $ac_try) 2>&5 | |
21507 | ac_status=$? | |
21508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21509 | (exit $ac_status); }; } && | |
21510 | { ac_try='test -s conftest.$ac_objext' | |
21511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21512 | (eval $ac_try) 2>&5 | |
21513 | ac_status=$? | |
21514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21515 | (exit $ac_status); }; }; then | |
21516 | gdb_cv_thread_db_h_has_td_notls=yes | |
21517 | else | |
21518 | echo "$as_me: failed program was:" >&5 | |
21519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21520 | ||
21521 | gdb_cv_thread_db_h_has_td_notls=no | |
21522 | ||
21523 | fi | |
21524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21525 | ||
21526 | fi | |
21527 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 | |
21528 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 | |
3f47be5c EZ |
21529 | fi |
21530 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
21531 | |
21532 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 21533 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 21534 | _ACEOF |
3f47be5c | 21535 | |
59f80f10 DJ |
21536 | fi |
21537 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then | |
21538 | ||
21539 | cat >>confdefs.h <<\_ACEOF | |
21540 | #define THREAD_DB_HAS_TD_VERSION 1 | |
21541 | _ACEOF | |
21542 | ||
21543 | fi | |
21544 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then | |
21545 | ||
21546 | cat >>confdefs.h <<\_ACEOF | |
21547 | #define THREAD_DB_HAS_TD_NOTLS 1 | |
21548 | _ACEOF | |
21549 | ||
3f47be5c EZ |
21550 | fi |
21551 | ||
b757528f | 21552 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
b4e70030 JB |
21553 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
21554 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
bec39cab AC |
21555 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
21556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21557 | else | |
21558 | cat >conftest.$ac_ext <<_ACEOF | |
21559 | /* confdefs.h. */ | |
21560 | _ACEOF | |
21561 | cat confdefs.h >>conftest.$ac_ext | |
21562 | cat >>conftest.$ac_ext <<_ACEOF | |
21563 | /* end confdefs.h. */ | |
b757528f | 21564 | #include <sys/syscall.h> |
bec39cab AC |
21565 | int |
21566 | main () | |
21567 | { | |
b757528f | 21568 | int i = __NR_tkill; |
bec39cab AC |
21569 | ; |
21570 | return 0; | |
21571 | } | |
21572 | _ACEOF | |
21573 | rm -f conftest.$ac_objext | |
21574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21575 | (eval $ac_compile) 2>conftest.er1 | |
21576 | ac_status=$? | |
21577 | grep -v '^ *+' conftest.er1 >conftest.err | |
21578 | rm -f conftest.er1 | |
21579 | cat conftest.err >&5 | |
21580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21581 | (exit $ac_status); } && | |
b4e70030 JB |
21582 | { ac_try='test -z "$ac_c_werror_flag" |
21583 | || test ! -s conftest.err' | |
bec39cab AC |
21584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21585 | (eval $ac_try) 2>&5 | |
21586 | ac_status=$? | |
21587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21588 | (exit $ac_status); }; } && | |
21589 | { ac_try='test -s conftest.$ac_objext' | |
21590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21591 | (eval $ac_try) 2>&5 | |
21592 | ac_status=$? | |
21593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21594 | (exit $ac_status); }; }; then | |
b757528f JJ |
21595 | gdb_cv_sys_syscall_h_has_tkill=yes |
21596 | else | |
bec39cab AC |
21597 | echo "$as_me: failed program was:" >&5 |
21598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21599 | ||
b4e70030 | 21600 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 21601 | |
b757528f | 21602 | fi |
bec39cab | 21603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 21604 | |
bec39cab | 21605 | fi |
b4e70030 JB |
21606 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
21607 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
21608 | fi |
21609 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
21610 | |
21611 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 21612 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 21613 | _ACEOF |
b757528f JJ |
21614 | |
21615 | fi | |
21616 | ||
fb40c209 | 21617 | |
bec39cab | 21618 | |
b4e70030 | 21619 | # Check whether --with-sysroot or --without-sysroot was given. |
030292b7 | 21620 | if test "${with_sysroot+set}" = set; then |
b4e70030 JB |
21621 | withval="$with_sysroot" |
21622 | ||
030292b7 | 21623 | case ${with_sysroot} in |
715d1656 | 21624 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
21625 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
21626 | esac | |
21627 | ||
21628 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
21629 | ||
07abfebf RS |
21630 | if test "x$prefix" = xNONE; then |
21631 | test_prefix=/usr/local | |
21632 | else | |
21633 | test_prefix=$prefix | |
21634 | fi | |
aa28a74e | 21635 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
07abfebf | 21636 | test_exec_prefix=$test_prefix |
030292b7 | 21637 | else |
07abfebf | 21638 | test_exec_prefix=$exec_prefix |
030292b7 DJ |
21639 | fi |
21640 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 | 21641 | "${test_prefix}"|"${test_prefix}/"*|\ |
07abfebf RS |
21642 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
21643 | '${prefix}'|'${prefix}/'*|\ | |
715d1656 | 21644 | '${exec_prefix}'|'${exec_prefix}/'*) |
030292b7 DJ |
21645 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
21646 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
21647 | ;; | |
21648 | esac | |
21649 | ||
21650 | else | |
bec39cab | 21651 | |
030292b7 DJ |
21652 | TARGET_SYSTEM_ROOT= |
21653 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
21654 | ||
b4e70030 | 21655 | fi; |
030292b7 DJ |
21656 | |
21657 | ||
21658 | ||
b4e70030 | 21659 | # Check whether --enable-werror or --disable-werror was given. |
094a342e | 21660 | if test "${enable_werror+set}" = set; then |
b4e70030 JB |
21661 | enableval="$enable_werror" |
21662 | case "${enableval}" in | |
094a342e MK |
21663 | yes | y) ERROR_ON_WARNING="yes" ;; |
21664 | no | n) ERROR_ON_WARNING="no" ;; | |
21665 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
21666 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
21667 | { (exit 1); exit 1; }; } ;; | |
21668 | esac | |
b4e70030 | 21669 | fi; |
094a342e MK |
21670 | |
21671 | # Enable -Werror by default when using gcc | |
21672 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
21673 | ERROR_ON_WARNING=yes | |
21674 | fi | |
21675 | ||
21676 | WERROR_CFLAGS="" | |
21677 | if test "${ERROR_ON_WARNING}" = yes ; then | |
21678 | WERROR_CFLAGS="-Werror" | |
21679 | fi | |
21680 | ||
aa79a185 DJ |
21681 | # The entries after -Wno-pointer-sign are disabled warnings which may |
21682 | # be enabled in the future, which can not currently be used to build | |
21683 | # GDB. | |
21684 | # NOTE: If you change this list, remember to update | |
3b851bce | 21685 | # gdb/doc/gdbint.texinfo. |
aa79a185 DJ |
21686 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
21687 | -Wformat-nonliteral -Wno-pointer-sign \ | |
58b38ee2 | 21688 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
a3b362c4 | 21689 | |
b4e70030 | 21690 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
c906108c | 21691 | if test "${enable_build_warnings+set}" = set; then |
b4e70030 JB |
21692 | enableval="$enable_build_warnings" |
21693 | case "${enableval}" in | |
c906108c SS |
21694 | yes) ;; |
21695 | no) build_warnings="-w";; | |
21696 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21697 | build_warnings="${build_warnings} ${t}";; | |
21698 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21699 | build_warnings="${t} ${build_warnings}";; | |
21700 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21701 | esac | |
d4f3574e | 21702 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 21703 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 21704 | fi |
b4e70030 | 21705 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce | 21706 | if test "${enable_gdb_build_warnings+set}" = set; then |
b4e70030 JB |
21707 | enableval="$enable_gdb_build_warnings" |
21708 | case "${enableval}" in | |
3b851bce AC |
21709 | yes) ;; |
21710 | no) build_warnings="-w";; | |
21711 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21712 | build_warnings="${build_warnings} ${t}";; | |
21713 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21714 | build_warnings="${t} ${build_warnings}";; | |
21715 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21716 | esac | |
21717 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
21718 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
21719 | fi | |
b4e70030 | 21720 | fi; WARN_CFLAGS="" |
c906108c SS |
21721 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
21722 | then | |
b4e70030 JB |
21723 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
21724 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
21725 | # Separate out the -Werror flag as some files just cannot be |
21726 | # compiled with it enabled. | |
21727 | for w in ${build_warnings}; do | |
21728 | case $w in | |
21729 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
21730 | *) # Check that GCC accepts it | |
4536bbc6 AC |
21731 | saved_CFLAGS="$CFLAGS" |
21732 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
21733 | cat >conftest.$ac_ext <<_ACEOF |
21734 | /* confdefs.h. */ | |
21735 | _ACEOF | |
21736 | cat confdefs.h >>conftest.$ac_ext | |
21737 | cat >>conftest.$ac_ext <<_ACEOF | |
21738 | /* end confdefs.h. */ | |
4536bbc6 | 21739 | |
bec39cab AC |
21740 | int |
21741 | main () | |
21742 | { | |
4536bbc6 | 21743 | |
bec39cab AC |
21744 | ; |
21745 | return 0; | |
21746 | } | |
21747 | _ACEOF | |
21748 | rm -f conftest.$ac_objext | |
21749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21750 | (eval $ac_compile) 2>conftest.er1 | |
21751 | ac_status=$? | |
21752 | grep -v '^ *+' conftest.er1 >conftest.err | |
21753 | rm -f conftest.er1 | |
21754 | cat conftest.err >&5 | |
21755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21756 | (exit $ac_status); } && | |
b4e70030 JB |
21757 | { ac_try='test -z "$ac_c_werror_flag" |
21758 | || test ! -s conftest.err' | |
bec39cab AC |
21759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21760 | (eval $ac_try) 2>&5 | |
21761 | ac_status=$? | |
21762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21763 | (exit $ac_status); }; } && | |
21764 | { ac_try='test -s conftest.$ac_objext' | |
21765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21766 | (eval $ac_try) 2>&5 | |
21767 | ac_status=$? | |
21768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21769 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
21770 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
21771 | else | |
bec39cab AC |
21772 | echo "$as_me: failed program was:" >&5 |
21773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21774 | ||
4536bbc6 | 21775 | fi |
bec39cab | 21776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 21777 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
21778 | esac |
21779 | done | |
aa79a185 DJ |
21780 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
21781 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 | |
c906108c SS |
21782 | fi |
21783 | ||
21784 | ||
104c1213 | 21785 | |
7a292a7a | 21786 | # In the Cygwin environment, we need some additional flags. |
b4e70030 JB |
21787 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
21788 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
bec39cab AC |
21789 | if test "${gdb_cv_os_cygwin+set}" = set; then |
21790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21791 | else | |
21792 | cat >conftest.$ac_ext <<_ACEOF | |
21793 | /* confdefs.h. */ | |
21794 | _ACEOF | |
21795 | cat confdefs.h >>conftest.$ac_ext | |
21796 | cat >>conftest.$ac_ext <<_ACEOF | |
21797 | /* end confdefs.h. */ | |
7a292a7a SS |
21798 | |
21799 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
21800 | lose | |
21801 | #endif | |
bec39cab | 21802 | _ACEOF |
7a292a7a | 21803 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 21804 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
21805 | gdb_cv_os_cygwin=yes |
21806 | else | |
7a292a7a SS |
21807 | gdb_cv_os_cygwin=no |
21808 | fi | |
21809 | rm -f conftest* | |
21810 | ||
21811 | fi | |
b4e70030 JB |
21812 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
21813 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 21814 | |
aff38e61 | 21815 | |
3eb25fda | 21816 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 21817 | case ${host} in |
95cbc983 AC |
21818 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
21819 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 21820 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
21821 | esac |
21822 | ||
21823 | ||
cd0fc7c3 SS |
21824 | # libreadline needs libuser32.a in a cygwin environment |
21825 | WIN32LIBS= | |
21826 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
21827 | WIN32LIBS="-luser32" |
21828 | case "${target}" in | |
21829 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
21830 | ;; | |
21831 | esac | |
cd0fc7c3 | 21832 | fi |
c906108c | 21833 | |
b4505029 MM |
21834 | # The ser-tcp.c module requires sockets. |
21835 | case ${host} in | |
21836 | *mingw32*) | |
21837 | ||
21838 | cat >>confdefs.h <<\_ACEOF | |
21839 | #define USE_WIN32API 1 | |
21840 | _ACEOF | |
21841 | ||
21842 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
21843 | ;; | |
21844 | esac | |
21845 | ||
7a292a7a | 21846 | |
31d99776 DJ |
21847 | # Add ELF support to GDB, but only if BFD includes ELF support. |
21848 | OLD_CFLAGS=$CFLAGS | |
21849 | OLD_LDFLAGS=$LDFLAGS | |
21850 | OLD_LIBS=$LIBS | |
cab58a69 | 21851 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
31d99776 DJ |
21852 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
21853 | LIBS="$LIBS -lbfd -liberty" | |
21854 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 | |
21855 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 | |
21856 | if test "${gdb_cv_var_elf+set}" = set; then | |
21857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21858 | else | |
21859 | cat >conftest.$ac_ext <<_ACEOF | |
21860 | /* confdefs.h. */ | |
21861 | _ACEOF | |
21862 | cat confdefs.h >>conftest.$ac_ext | |
21863 | cat >>conftest.$ac_ext <<_ACEOF | |
21864 | /* end confdefs.h. */ | |
21865 | #include <stdlib.h> | |
21866 | #include "bfd.h" | |
21867 | #include "elf-bfd.h" | |
21868 | ||
21869 | int | |
21870 | main () | |
21871 | { | |
21872 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); | |
21873 | ; | |
21874 | return 0; | |
21875 | } | |
21876 | _ACEOF | |
21877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21879 | (eval $ac_link) 2>conftest.er1 | |
21880 | ac_status=$? | |
21881 | grep -v '^ *+' conftest.er1 >conftest.err | |
21882 | rm -f conftest.er1 | |
21883 | cat conftest.err >&5 | |
21884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21885 | (exit $ac_status); } && | |
21886 | { ac_try='test -z "$ac_c_werror_flag" | |
21887 | || test ! -s conftest.err' | |
21888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21889 | (eval $ac_try) 2>&5 | |
21890 | ac_status=$? | |
21891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21892 | (exit $ac_status); }; } && | |
21893 | { ac_try='test -s conftest$ac_exeext' | |
21894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21895 | (eval $ac_try) 2>&5 | |
21896 | ac_status=$? | |
21897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21898 | (exit $ac_status); }; }; then | |
21899 | gdb_cv_var_elf=yes | |
21900 | else | |
21901 | echo "$as_me: failed program was:" >&5 | |
21902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21903 | ||
21904 | gdb_cv_var_elf=no | |
21905 | fi | |
21906 | rm -f conftest.err conftest.$ac_objext \ | |
21907 | conftest$ac_exeext conftest.$ac_ext | |
21908 | fi | |
21909 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 | |
21910 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 | |
21911 | if test $gdb_cv_var_elf = yes; then | |
21912 | CONFIG_OBS="$CONFIG_OBS elfread.o" | |
21913 | ||
21914 | cat >>confdefs.h <<\_ACEOF | |
21915 | #define HAVE_ELF 1 | |
21916 | _ACEOF | |
21917 | ||
21918 | fi | |
21919 | CFLAGS=$OLD_CFLAGS | |
21920 | LDFLAGS=$OLD_LDFLAGS | |
21921 | LIBS=$OLD_LIBS | |
21922 | ||
121ce6e5 DJ |
21923 | # Add any host-specific objects to GDB. |
21924 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
21925 | ||
3fc11d3e JM |
21926 | LIBGUI="../libgui/src/libgui.a" |
21927 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
21928 | ||
21929 | ||
7a292a7a | 21930 | |
3fc11d3e JM |
21931 | WIN32LDAPP= |
21932 | ||
21933 | ||
21934 | ||
d91670b9 CV |
21935 | case "${host}" in |
21936 | *-*-cygwin*) | |
21937 | configdir="win" | |
21938 | ;; | |
21939 | *) | |
21940 | configdir="unix" | |
21941 | ;; | |
21942 | esac | |
3fc11d3e JM |
21943 | |
21944 | GDBTKLIBS= | |
21945 | if test "${enable_gdbtk}" = "yes"; then | |
21946 | ||
d1c3b63a KS |
21947 | # Gdbtk must have an absolute path to srcdir in order to run |
21948 | # properly when not installed. | |
21949 | here=`pwd` | |
21950 | cd ${srcdir} | |
21951 | GDBTK_SRC_DIR=`pwd` | |
21952 | cd $here | |
21953 | ||
bec39cab | 21954 | |
3fc11d3e JM |
21955 | # |
21956 | # Ok, lets find the tcl configuration | |
bec39cab | 21957 | # First, look for one uninstalled. |
3fc11d3e JM |
21958 | # the alternative search directory is invoked by --with-tclconfig |
21959 | # | |
21960 | ||
21961 | if test x"${no_tcl}" = x ; then | |
21962 | # we reset no_tcl in case something fails here | |
21963 | no_tcl=true | |
bec39cab | 21964 | |
b4e70030 | 21965 | # Check whether --with-tclconfig or --without-tclconfig was given. |
3fc11d3e | 21966 | if test "${with_tclconfig+set}" = set; then |
b4e70030 JB |
21967 | withval="$with_tclconfig" |
21968 | with_tclconfig=${withval} | |
21969 | fi; | |
21970 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
21971 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
21972 | if test "${ac_cv_c_tclconfig+set}" = set; then |
21973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21974 | else |
bec39cab | 21975 | |
3fc11d3e JM |
21976 | |
21977 | # First check to see if --with-tclconfig was specified. | |
21978 | if test x"${with_tclconfig}" != x ; then | |
21979 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
21980 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
21981 | else | |
bec39cab AC |
21982 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
21983 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
21984 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21985 | fi |
21986 | fi | |
21987 | ||
21988 | # then check for a private Tcl installation | |
21989 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21990 | for i in \ | |
21991 | ../tcl \ | |
21992 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
21993 | ../../tcl \ | |
21994 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
21995 | ../../../tcl \ | |
21996 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
21997 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
21998 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
21999 | break | |
22000 | fi | |
22001 | done | |
22002 | fi | |
22003 | # check in a few common install locations | |
22004 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22005 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22006 | if test -f "$i/tclConfig.sh" ; then | |
22007 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
22008 | break | |
22009 | fi | |
22010 | done | |
22011 | fi | |
22012 | # check in a few other private locations | |
22013 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22014 | for i in \ | |
22015 | ${srcdir}/../tcl \ | |
22016 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
22017 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
22018 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
22019 | break | |
22020 | fi | |
22021 | done | |
22022 | fi | |
bec39cab | 22023 | |
3fc11d3e JM |
22024 | fi |
22025 | ||
22026 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22027 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
22028 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
22029 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
22030 | else |
22031 | no_tcl= | |
22032 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
b4e70030 JB |
22033 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
22034 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
22035 | fi |
22036 | fi | |
22037 | ||
22038 | if test -z "${no_tcl}"; then | |
bec39cab | 22039 | |
3fc11d3e JM |
22040 | . $TCLCONFIG |
22041 | ||
3fc11d3e JM |
22042 | |
22043 | ||
22044 | ||
22045 | ||
3fc11d3e JM |
22046 | |
22047 | ||
22048 | ||
bec39cab AC |
22049 | |
22050 | ||
22051 | ||
22052 | ||
22053 | ||
22054 | ||
22055 | ||
22056 | ||
22057 | ||
22058 | ||
22059 | ||
22060 | ||
22061 | ||
22062 | ||
22063 | ||
22064 | ||
22065 | ||
22066 | ||
22067 | ||
3fc11d3e JM |
22068 | # |
22069 | # Ok, lets find the tk configuration | |
bec39cab | 22070 | # First, look for one uninstalled. |
3fc11d3e JM |
22071 | # the alternative search directory is invoked by --with-tkconfig |
22072 | # | |
22073 | ||
22074 | if test x"${no_tk}" = x ; then | |
22075 | # we reset no_tk in case something fails here | |
22076 | no_tk=true | |
bec39cab | 22077 | |
b4e70030 | 22078 | # Check whether --with-tkconfig or --without-tkconfig was given. |
3fc11d3e | 22079 | if test "${with_tkconfig+set}" = set; then |
b4e70030 JB |
22080 | withval="$with_tkconfig" |
22081 | with_tkconfig=${withval} | |
22082 | fi; | |
22083 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
22084 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
bec39cab AC |
22085 | if test "${ac_cv_c_tkconfig+set}" = set; then |
22086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22087 | else |
bec39cab | 22088 | |
3fc11d3e JM |
22089 | |
22090 | # First check to see if --with-tkconfig was specified. | |
22091 | if test x"${with_tkconfig}" != x ; then | |
22092 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
22093 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
22094 | else | |
bec39cab AC |
22095 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
22096 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
22097 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22098 | fi |
22099 | fi | |
22100 | ||
22101 | # then check for a private Tk library | |
22102 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22103 | for i in \ | |
22104 | ../tk \ | |
22105 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
22106 | ../../tk \ | |
22107 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
22108 | ../../../tk \ | |
22109 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
22110 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
22111 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
22112 | break | |
22113 | fi | |
22114 | done | |
22115 | fi | |
22116 | # check in a few common install locations | |
22117 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22118 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22119 | if test -f "$i/tkConfig.sh" ; then | |
22120 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
22121 | break | |
22122 | fi | |
22123 | done | |
22124 | fi | |
22125 | # check in a few other private locations | |
22126 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22127 | for i in \ | |
22128 | ${srcdir}/../tk \ | |
22129 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
22130 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
22131 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
22132 | break | |
22133 | fi | |
22134 | done | |
22135 | fi | |
bec39cab | 22136 | |
3fc11d3e JM |
22137 | fi |
22138 | ||
22139 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22140 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
22141 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
22142 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
22143 | else |
22144 | no_tk= | |
22145 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
b4e70030 JB |
22146 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
22147 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
22148 | fi |
22149 | fi | |
22150 | ||
22151 | ||
22152 | ||
dd2504ab JM |
22153 | # now look for Tcl library stuff |
22154 | ||
d91670b9 | 22155 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
22156 | |
22157 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
22158 | ||
3fc11d3e JM |
22159 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
22160 | # point to doing Tcl. | |
22161 | if test -z "${no_tk}"; then | |
bec39cab | 22162 | |
3fc11d3e JM |
22163 | if test -f "$TKCONFIG" ; then |
22164 | . $TKCONFIG | |
22165 | fi | |
22166 | ||
3fc11d3e | 22167 | |
3fc11d3e JM |
22168 | |
22169 | ||
3fc11d3e | 22170 | |
bec39cab AC |
22171 | |
22172 | ||
22173 | ||
22174 | ||
22175 | ||
22176 | ||
22177 | ||
22178 | ||
22179 | ||
3fc11d3e JM |
22180 | # |
22181 | # Ok, lets find the tcl source trees so we can use the headers | |
22182 | # Warning: transition of version 9 to 10 will break this algorithm | |
22183 | # because 10 sorts before 9. We also look for just tcl. We have to | |
22184 | # be careful that we don't match stuff like tclX by accident. | |
22185 | # the alternative search directory is involked by --with-tclinclude | |
22186 | # | |
22187 | ||
22188 | no_tcl=true | |
b4e70030 JB |
22189 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
22190 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
bec39cab | 22191 | |
b4e70030 | 22192 | # Check whether --with-tclinclude or --without-tclinclude was given. |
3fc11d3e | 22193 | if test "${with_tclinclude+set}" = set; then |
b4e70030 JB |
22194 | withval="$with_tclinclude" |
22195 | with_tclinclude=${withval} | |
22196 | fi; | |
bec39cab AC |
22197 | if test "${ac_cv_c_tclh+set}" = set; then |
22198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22199 | else |
bec39cab | 22200 | |
3fc11d3e JM |
22201 | # first check to see if --with-tclinclude was specified |
22202 | if test x"${with_tclinclude}" != x ; then | |
22203 | if test -f ${with_tclinclude}/tclInt.h ; then | |
22204 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
22205 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
22206 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
22207 | else | |
bec39cab AC |
22208 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
22209 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
22210 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22211 | fi |
22212 | fi | |
22213 | ||
22214 | # next check if it came with Tcl configuration file | |
22215 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22216 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
22217 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
22218 | fi | |
22219 | fi | |
22220 | ||
22221 | # next check in private source directory | |
22222 | # | |
22223 | # since ls returns lowest version numbers first, reverse its output | |
22224 | if test x"${ac_cv_c_tclh}" = x ; then | |
22225 | for i in \ | |
22226 | ${srcdir}/../tcl \ | |
22227 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
22228 | ${srcdir}/../../tcl \ | |
22229 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
22230 | ${srcdir}/../../../tcl \ | |
22231 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
22232 | if test -f $i/generic/tclInt.h ; then | |
22233 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
22234 | break | |
22235 | fi | |
22236 | done | |
22237 | fi | |
22238 | # finally check in a few common install locations | |
22239 | # | |
22240 | # since ls returns lowest version numbers first, reverse its output | |
22241 | if test x"${ac_cv_c_tclh}" = x ; then | |
22242 | for i in \ | |
22243 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
22244 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
22245 | /usr/local/src/tcl \ | |
22246 | /usr/local/lib/tcl \ | |
22247 | ${prefix}/include ; do | |
22248 | if test -f $i/generic/tclInt.h ; then | |
22249 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
22250 | break | |
22251 | fi | |
22252 | done | |
22253 | fi | |
22254 | # see if one is installed | |
22255 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab | 22256 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
b4e70030 JB |
22257 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
22258 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
22259 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
22260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22261 | fi | |
b4e70030 JB |
22262 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
22263 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
22264 | else |
22265 | # Is the header compilable? | |
b4e70030 JB |
22266 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
22267 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
bec39cab AC |
22268 | cat >conftest.$ac_ext <<_ACEOF |
22269 | /* confdefs.h. */ | |
22270 | _ACEOF | |
22271 | cat confdefs.h >>conftest.$ac_ext | |
22272 | cat >>conftest.$ac_ext <<_ACEOF | |
22273 | /* end confdefs.h. */ | |
22274 | $ac_includes_default | |
22275 | #include <tclInt.h> | |
22276 | _ACEOF | |
22277 | rm -f conftest.$ac_objext | |
22278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22279 | (eval $ac_compile) 2>conftest.er1 | |
22280 | ac_status=$? | |
22281 | grep -v '^ *+' conftest.er1 >conftest.err | |
22282 | rm -f conftest.er1 | |
22283 | cat conftest.err >&5 | |
22284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22285 | (exit $ac_status); } && | |
b4e70030 JB |
22286 | { ac_try='test -z "$ac_c_werror_flag" |
22287 | || test ! -s conftest.err' | |
bec39cab AC |
22288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22289 | (eval $ac_try) 2>&5 | |
22290 | ac_status=$? | |
22291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22292 | (exit $ac_status); }; } && | |
22293 | { ac_try='test -s conftest.$ac_objext' | |
22294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22295 | (eval $ac_try) 2>&5 | |
22296 | ac_status=$? | |
22297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22298 | (exit $ac_status); }; }; then | |
22299 | ac_header_compiler=yes | |
22300 | else | |
22301 | echo "$as_me: failed program was:" >&5 | |
22302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22303 | ||
b4e70030 | 22304 | ac_header_compiler=no |
bec39cab AC |
22305 | fi |
22306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
22307 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22308 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
22309 | |
22310 | # Is the header present? | |
b4e70030 JB |
22311 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
22312 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
bec39cab AC |
22313 | cat >conftest.$ac_ext <<_ACEOF |
22314 | /* confdefs.h. */ | |
22315 | _ACEOF | |
22316 | cat confdefs.h >>conftest.$ac_ext | |
22317 | cat >>conftest.$ac_ext <<_ACEOF | |
22318 | /* end confdefs.h. */ | |
3fc11d3e | 22319 | #include <tclInt.h> |
bec39cab AC |
22320 | _ACEOF |
22321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22323 | ac_status=$? | |
22324 | grep -v '^ *+' conftest.er1 >conftest.err | |
22325 | rm -f conftest.er1 | |
22326 | cat conftest.err >&5 | |
22327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22328 | (exit $ac_status); } >/dev/null; then | |
22329 | if test -s conftest.err; then | |
22330 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22331 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22332 | else | |
22333 | ac_cpp_err= | |
22334 | fi | |
22335 | else | |
22336 | ac_cpp_err=yes | |
3fc11d3e | 22337 | fi |
bec39cab AC |
22338 | if test -z "$ac_cpp_err"; then |
22339 | ac_header_preproc=yes | |
22340 | else | |
22341 | echo "$as_me: failed program was:" >&5 | |
22342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22343 | ||
22344 | ac_header_preproc=no | |
3fc11d3e | 22345 | fi |
bec39cab | 22346 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
22347 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22348 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
22349 | |
22350 | # So? What about this header? | |
22351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22352 | yes:no: ) | |
22353 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22354 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22355 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
22356 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
22357 | ac_header_preproc=yes | |
22358 | ;; | |
22359 | no:yes:* ) | |
22360 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
22361 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
22362 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
22363 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
22364 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
22365 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
22366 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22367 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
22368 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
22369 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
22370 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
22371 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
22372 | ( |
22373 | cat <<\_ASBOX | |
22374 | ## ------------------------------------------ ## | |
22375 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
22376 | ## ------------------------------------------ ## | |
22377 | _ASBOX | |
22378 | ) | | |
22379 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
22380 | ;; |
22381 | esac | |
b4e70030 JB |
22382 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
22383 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
22384 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
22385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22386 | else | |
22387 | ac_cv_header_tclInt_h=$ac_header_preproc | |
22388 | fi | |
b4e70030 JB |
22389 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
22390 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
22391 | |
22392 | fi | |
22393 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
22394 | ac_cv_c_tclh=installed |
22395 | else | |
bec39cab | 22396 | ac_cv_c_tclh="" |
3fc11d3e JM |
22397 | fi |
22398 | ||
bec39cab | 22399 | |
3fc11d3e JM |
22400 | fi |
22401 | ||
22402 | fi | |
22403 | ||
22404 | if test x"${ac_cv_c_tclh}" = x ; then | |
22405 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
22406 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
22407 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
22408 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22409 | fi |
22410 | if test x"${ac_cv_c_tclh}" != x ; then | |
22411 | no_tcl="" | |
22412 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
b4e70030 JB |
22413 | echo "$as_me:$LINENO: result: is installed" >&5 |
22414 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
22415 | TCLHDIR="" |
22416 | else | |
b4e70030 JB |
22417 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
22418 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
22419 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
22420 | TCLHDIR="-I${ac_cv_c_tclh}" | |
22421 | fi | |
22422 | fi | |
22423 | ||
22424 | ||
22425 | ||
bec39cab | 22426 | |
3fc11d3e JM |
22427 | # |
22428 | # Ok, lets find the tk source trees so we can use the headers | |
22429 | # If the directory (presumably symlink) named "tk" exists, use that one | |
22430 | # in preference to any others. Same logic is used when choosing library | |
22431 | # and again with Tcl. The search order is the best place to look first, then in | |
22432 | # decreasing significance. The loop breaks if the trigger file is found. | |
22433 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
22434 | # directory. This converts the path from a relative to an absolute, so | |
22435 | # recursive cache variables for the path will work right. We check all | |
22436 | # the possible paths in one loop rather than many seperate loops to speed | |
22437 | # things up. | |
22438 | # the alternative search directory is involked by --with-tkinclude | |
22439 | # | |
22440 | no_tk=true | |
b4e70030 JB |
22441 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
22442 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
bec39cab | 22443 | |
b4e70030 | 22444 | # Check whether --with-tkinclude or --without-tkinclude was given. |
3fc11d3e | 22445 | if test "${with_tkinclude+set}" = set; then |
b4e70030 JB |
22446 | withval="$with_tkinclude" |
22447 | with_tkinclude=${withval} | |
22448 | fi; | |
bec39cab AC |
22449 | if test "${ac_cv_c_tkh+set}" = set; then |
22450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22451 | else |
bec39cab | 22452 | |
3fc11d3e JM |
22453 | # first check to see if --with-tkinclude was specified |
22454 | if test x"${with_tkinclude}" != x ; then | |
22455 | if test -f ${with_tkinclude}/tk.h ; then | |
22456 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
22457 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
22458 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
22459 | else | |
bec39cab AC |
22460 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
22461 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
22462 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22463 | fi |
22464 | fi | |
22465 | ||
22466 | # next check if it came with Tk configuration file | |
22467 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22468 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
22469 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
22470 | fi | |
22471 | fi | |
22472 | ||
22473 | # next check in private source directory | |
22474 | # | |
22475 | # since ls returns lowest version numbers first, reverse its output | |
22476 | if test x"${ac_cv_c_tkh}" = x ; then | |
22477 | for i in \ | |
22478 | ${srcdir}/../tk \ | |
22479 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
22480 | ${srcdir}/../../tk \ | |
22481 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
22482 | ${srcdir}/../../../tk \ | |
22483 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
22484 | if test -f $i/generic/tk.h ; then | |
22485 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
22486 | break | |
22487 | fi | |
22488 | done | |
22489 | fi | |
22490 | # finally check in a few common install locations | |
22491 | # | |
22492 | # since ls returns lowest version numbers first, reverse its output | |
22493 | if test x"${ac_cv_c_tkh}" = x ; then | |
22494 | for i in \ | |
22495 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
22496 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
22497 | /usr/local/src/tk \ | |
22498 | /usr/local/lib/tk \ | |
22499 | ${prefix}/include ; do | |
22500 | if test -f $i/generic/tk.h ; then | |
22501 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
22502 | break | |
22503 | fi | |
22504 | done | |
22505 | fi | |
22506 | # see if one is installed | |
22507 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab | 22508 | if test "${ac_cv_header_tk_h+set}" = set; then |
b4e70030 JB |
22509 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
22510 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
22511 | if test "${ac_cv_header_tk_h+set}" = set; then |
22512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22513 | fi | |
b4e70030 JB |
22514 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
22515 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab AC |
22516 | else |
22517 | # Is the header compilable? | |
b4e70030 JB |
22518 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
22519 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
bec39cab AC |
22520 | cat >conftest.$ac_ext <<_ACEOF |
22521 | /* confdefs.h. */ | |
22522 | _ACEOF | |
22523 | cat confdefs.h >>conftest.$ac_ext | |
22524 | cat >>conftest.$ac_ext <<_ACEOF | |
22525 | /* end confdefs.h. */ | |
22526 | $ac_includes_default | |
3fc11d3e | 22527 | #include <tk.h> |
bec39cab AC |
22528 | _ACEOF |
22529 | rm -f conftest.$ac_objext | |
22530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22531 | (eval $ac_compile) 2>conftest.er1 | |
22532 | ac_status=$? | |
22533 | grep -v '^ *+' conftest.er1 >conftest.err | |
22534 | rm -f conftest.er1 | |
22535 | cat conftest.err >&5 | |
22536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22537 | (exit $ac_status); } && | |
b4e70030 JB |
22538 | { ac_try='test -z "$ac_c_werror_flag" |
22539 | || test ! -s conftest.err' | |
bec39cab AC |
22540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22541 | (eval $ac_try) 2>&5 | |
22542 | ac_status=$? | |
22543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22544 | (exit $ac_status); }; } && | |
22545 | { ac_try='test -s conftest.$ac_objext' | |
22546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22547 | (eval $ac_try) 2>&5 | |
22548 | ac_status=$? | |
22549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22550 | (exit $ac_status); }; }; then | |
22551 | ac_header_compiler=yes | |
22552 | else | |
22553 | echo "$as_me: failed program was:" >&5 | |
22554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22555 | ||
b4e70030 | 22556 | ac_header_compiler=no |
bec39cab AC |
22557 | fi |
22558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
22559 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22560 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
22561 | |
22562 | # Is the header present? | |
b4e70030 JB |
22563 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
22564 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
bec39cab AC |
22565 | cat >conftest.$ac_ext <<_ACEOF |
22566 | /* confdefs.h. */ | |
22567 | _ACEOF | |
22568 | cat confdefs.h >>conftest.$ac_ext | |
22569 | cat >>conftest.$ac_ext <<_ACEOF | |
22570 | /* end confdefs.h. */ | |
22571 | #include <tk.h> | |
22572 | _ACEOF | |
22573 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22574 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22575 | ac_status=$? | |
22576 | grep -v '^ *+' conftest.er1 >conftest.err | |
22577 | rm -f conftest.er1 | |
22578 | cat conftest.err >&5 | |
22579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22580 | (exit $ac_status); } >/dev/null; then | |
22581 | if test -s conftest.err; then | |
22582 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22583 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22584 | else | |
22585 | ac_cpp_err= | |
22586 | fi | |
22587 | else | |
22588 | ac_cpp_err=yes | |
3fc11d3e | 22589 | fi |
bec39cab AC |
22590 | if test -z "$ac_cpp_err"; then |
22591 | ac_header_preproc=yes | |
22592 | else | |
22593 | echo "$as_me: failed program was:" >&5 | |
22594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22595 | ||
22596 | ac_header_preproc=no | |
22597 | fi | |
22598 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
22599 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22600 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
22601 | |
22602 | # So? What about this header? | |
22603 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22604 | yes:no: ) | |
22605 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22606 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22607 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
22608 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
22609 | ac_header_preproc=yes | |
22610 | ;; | |
22611 | no:yes:* ) | |
22612 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
22613 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
22614 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
22615 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
22616 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
22617 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
22618 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22619 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
22620 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
22621 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
22622 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
22623 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
22624 | ( |
22625 | cat <<\_ASBOX | |
22626 | ## ------------------------------------------ ## | |
22627 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
22628 | ## ------------------------------------------ ## | |
22629 | _ASBOX | |
22630 | ) | | |
22631 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
22632 | ;; |
22633 | esac | |
b4e70030 JB |
22634 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
22635 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
22636 | if test "${ac_cv_header_tk_h+set}" = set; then |
22637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22638 | else | |
22639 | ac_cv_header_tk_h=$ac_header_preproc | |
22640 | fi | |
b4e70030 JB |
22641 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
22642 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab | 22643 | |
3fc11d3e | 22644 | fi |
bec39cab | 22645 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
22646 | ac_cv_c_tkh=installed |
22647 | else | |
bec39cab | 22648 | ac_cv_c_tkh="" |
3fc11d3e JM |
22649 | fi |
22650 | ||
bec39cab | 22651 | |
3fc11d3e JM |
22652 | fi |
22653 | ||
22654 | fi | |
22655 | ||
22656 | if test x"${ac_cv_c_tkh}" != x ; then | |
22657 | no_tk="" | |
22658 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
b4e70030 JB |
22659 | echo "$as_me:$LINENO: result: is installed" >&5 |
22660 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
22661 | TKHDIR="" |
22662 | else | |
b4e70030 JB |
22663 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
22664 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
22665 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
22666 | TKHDIR="-I${ac_cv_c_tkh}" | |
22667 | fi | |
22668 | else | |
22669 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
22670 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
22671 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
22672 | no_tk=true |
22673 | fi | |
22674 | ||
22675 | ||
22676 | ||
bec39cab | 22677 | |
b4e70030 JB |
22678 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
22679 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
22680 | if test x"${ac_cv_c_itclh}" = x ; then |
22681 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
22682 | if test -f $i/generic/itcl.h ; then | |
22683 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
22684 | break | |
22685 | fi | |
22686 | done | |
22687 | fi | |
22688 | if test x"${ac_cv_c_itclh}" = x ; then | |
22689 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
22690 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
22691 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
22692 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22693 | fi |
22694 | if test x"${ac_cv_c_itclh}" != x ; then | |
22695 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
22696 | fi | |
22697 | # should always be here | |
22698 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
22699 | ||
22700 | #AC_SUBST(ITCLLIB) | |
22701 | ||
bec39cab | 22702 | |
b4e70030 JB |
22703 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
22704 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
22705 | if test x"${ac_cv_c_itkh}" = x ; then |
22706 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
22707 | if test -f $i/generic/itk.h ; then | |
22708 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
22709 | break | |
22710 | fi | |
22711 | done | |
22712 | fi | |
22713 | if test x"${ac_cv_c_itkh}" = x ; then | |
22714 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
22715 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
22716 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
22717 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22718 | fi |
22719 | if test x"${ac_cv_c_itkh}" != x ; then | |
22720 | ITKHDIR="-I${ac_cv_c_itkh}" | |
22721 | fi | |
22722 | # should always be here | |
22723 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
22724 | ||
22725 | #AC_SUBST(ITKLIB) | |
22726 | ||
3fc11d3e | 22727 | |
dd2504ab JM |
22728 | |
22729 | # now look for Tk library stuff | |
22730 | ||
d91670b9 | 22731 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
22732 | |
22733 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
22734 | ||
3fc11d3e JM |
22735 | # now look for Itcl library stuff |
22736 | ||
bec39cab | 22737 | |
3fc11d3e JM |
22738 | # |
22739 | # Ok, lets find the itcl configuration | |
bec39cab | 22740 | # First, look for one uninstalled. |
3fc11d3e JM |
22741 | # the alternative search directory is invoked by --with-itclconfig |
22742 | # | |
22743 | ||
22744 | if test x"${no_itcl}" = x ; then | |
22745 | # we reset no_itcl in case something fails here | |
22746 | no_itcl=true | |
bec39cab | 22747 | |
b4e70030 | 22748 | # Check whether --with-itclconfig or --without-itclconfig was given. |
3fc11d3e | 22749 | if test "${with_itclconfig+set}" = set; then |
b4e70030 JB |
22750 | withval="$with_itclconfig" |
22751 | with_itclconfig=${withval} | |
22752 | fi; | |
22753 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
22754 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
22755 | if test "${ac_cv_c_itclconfig+set}" = set; then |
22756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22757 | else |
bec39cab | 22758 | |
3fc11d3e JM |
22759 | |
22760 | # First check to see if --with-itclconfig was specified. | |
22761 | if test x"${with_itclconfig}" != x ; then | |
22762 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
22763 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
22764 | else | |
bec39cab AC |
22765 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
22766 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
22767 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22768 | fi |
22769 | fi | |
22770 | ||
22771 | # then check for a private Itcl library | |
22772 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22773 | for i in \ | |
22774 | ../itcl/itcl \ | |
22775 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
22776 | ../../itcl \ | |
22777 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
22778 | ../../../itcl \ | |
22779 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22780 | if test -f "$i/itclConfig.sh" ; then | |
22781 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22782 | break | |
22783 | fi | |
22784 | done | |
22785 | fi | |
22786 | # check in a few common install locations | |
22787 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22788 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22789 | if test -f "$i/itclConfig.sh" ; then | |
22790 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22791 | break | |
22792 | fi | |
22793 | done | |
22794 | fi | |
22795 | # check in a few other private locations | |
22796 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22797 | for i in \ | |
22798 | ${srcdir}/../itcl/itcl \ | |
22799 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22800 | if test -f "$i/itclConfig.sh" ; then | |
22801 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22802 | break | |
22803 | fi | |
22804 | done | |
22805 | fi | |
bec39cab | 22806 | |
3fc11d3e JM |
22807 | fi |
22808 | ||
22809 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22810 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
22811 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
22812 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
22813 | else |
22814 | no_itcl= | |
22815 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
b4e70030 JB |
22816 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
22817 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
22818 | fi |
22819 | fi | |
22820 | ||
22821 | if test -z "${no_itcl}"; then | |
bec39cab | 22822 | |
3fc11d3e JM |
22823 | if test -f "$ITCLCONFIG" ; then |
22824 | . $ITCLCONFIG | |
22825 | fi | |
22826 | ||
3fc11d3e | 22827 | |
3fc11d3e JM |
22828 | |
22829 | ||
bec39cab AC |
22830 | |
22831 | ||
22832 | ||
22833 | ||
22834 | ||
22835 | ||
22836 | ||
3fc11d3e JM |
22837 | |
22838 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 22839 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
22840 | fi |
22841 | ||
bec39cab | 22842 | |
3fc11d3e | 22843 | # now look for Itk library stuff |
bec39cab | 22844 | |
3fc11d3e JM |
22845 | # |
22846 | # Ok, lets find the itk configuration | |
bec39cab | 22847 | # First, look for one uninstalled. |
3fc11d3e JM |
22848 | # the alternative search directory is invoked by --with-itkconfig |
22849 | # | |
22850 | ||
22851 | if test x"${no_itk}" = x ; then | |
22852 | # we reset no_itk in case something fails here | |
22853 | no_itk=true | |
bec39cab | 22854 | |
b4e70030 | 22855 | # Check whether --with-itkconfig or --without-itkconfig was given. |
3fc11d3e | 22856 | if test "${with_itkconfig+set}" = set; then |
b4e70030 JB |
22857 | withval="$with_itkconfig" |
22858 | with_itkconfig=${withval} | |
22859 | fi; | |
22860 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
22861 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
bec39cab AC |
22862 | if test "${ac_cv_c_itkconfig+set}" = set; then |
22863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22864 | else |
bec39cab | 22865 | |
3fc11d3e JM |
22866 | |
22867 | # First check to see if --with-itkconfig was specified. | |
22868 | if test x"${with_itkconfig}" != x ; then | |
22869 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
22870 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
22871 | else | |
bec39cab AC |
22872 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
22873 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
22874 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22875 | fi |
22876 | fi | |
22877 | ||
22878 | # then check for a private Itk library | |
22879 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22880 | for i in \ | |
22881 | ../itcl/itk \ | |
22882 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
22883 | ../../itk \ | |
22884 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
22885 | ../../../itk \ | |
22886 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
22887 | if test -f "$i/itkConfig.sh" ; then | |
22888 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22889 | break | |
22890 | fi | |
22891 | done | |
22892 | fi | |
22893 | # check in a few common install locations | |
22894 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22895 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22896 | if test -f "$i/itkConfig.sh" ; then | |
22897 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22898 | break | |
22899 | fi | |
22900 | done | |
22901 | fi | |
22902 | # check in a few other private locations | |
22903 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22904 | for i in \ | |
22905 | ${srcdir}/../itcl/itk \ | |
22906 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
22907 | if test -f "$i/itkConfig.sh" ; then | |
22908 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22909 | break | |
22910 | fi | |
22911 | done | |
22912 | fi | |
bec39cab | 22913 | |
3fc11d3e JM |
22914 | fi |
22915 | ||
22916 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22917 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
22918 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
22919 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
22920 | else |
22921 | no_itk= | |
22922 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
b4e70030 JB |
22923 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
22924 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
22925 | fi |
22926 | fi | |
22927 | ||
22928 | ||
bec39cab AC |
22929 | if test -z "${no_itcl}"; then |
22930 | ||
22931 | if test -f "$ITKCONFIG" ; then | |
22932 | . $ITKCONFIG | |
22933 | fi | |
22934 | ||
22935 | ||
22936 | ||
22937 | ||
22938 | ||
22939 | ||
3fc11d3e | 22940 | |
3fc11d3e | 22941 | |
3fc11d3e JM |
22942 | |
22943 | ||
3fc11d3e JM |
22944 | |
22945 | ||
3fc11d3e | 22946 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 22947 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
22948 | fi |
22949 | ||
4226a5a5 | 22950 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
22951 | |
22952 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 22953 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
22954 | # Yes, the ordering seems wrong here. But it isn't. |
22955 | # TK_LIBS is the list of libraries that need to be linked | |
22956 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
22957 | # were in LIBS then any link tests after this point would | |
22958 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
22959 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
22960 | |
22961 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
22962 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
22963 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
22964 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
22965 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
22966 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
22967 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
22968 | |
22969 | if test x$gdb_cv_os_cygwin = xyes; then | |
22970 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
22971 | WIN32LDAPP="-Wl,--subsystem,console" | |
22972 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
22973 | fi | |
22974 | fi | |
22975 | fi | |
ffc6a242 | 22976 | |
b4e70030 JB |
22977 | |
22978 | ||
22979 | subdirs="$subdirs gdbtk" | |
3ace7edb | 22980 | |
3fc11d3e JM |
22981 | fi |
22982 | ||
22983 | ||
22984 | ||
22985 | ||
22986 | ||
22987 | ||
22988 | ||
22989 | ||
22990 | ||
22991 | ||
22992 | ||
22993 | ||
22994 | ||
dd2504ab | 22995 | |
b4e70030 JB |
22996 | echo "$as_me:$LINENO: checking for X" >&5 |
22997 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
bec39cab | 22998 | |
c906108c | 22999 | |
b4e70030 | 23000 | # Check whether --with-x or --without-x was given. |
c906108c | 23001 | if test "${with_x+set}" = set; then |
b4e70030 | 23002 | withval="$with_x" |
c906108c | 23003 | |
b4e70030 | 23004 | fi; |
c906108c SS |
23005 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
23006 | if test "x$with_x" = xno; then | |
23007 | # The user explicitly disabled X. | |
23008 | have_x=disabled | |
23009 | else | |
23010 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23011 | # Both variables are already set. | |
23012 | have_x=yes | |
23013 | else | |
bec39cab AC |
23014 | if test "${ac_cv_have_x+set}" = set; then |
23015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
23016 | else |
23017 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 23018 | ac_x_includes=no ac_x_libraries=no |
b4e70030 | 23019 | rm -fr conftest.dir |
bec39cab AC |
23020 | if mkdir conftest.dir; then |
23021 | cd conftest.dir | |
c906108c | 23022 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 23023 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
23024 | acfindx: |
23025 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 23026 | _ACEOF |
b4e70030 | 23027 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
23028 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
23029 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23030 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23031 | for ac_extension in a so sl; do | |
23032 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
23033 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23034 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
23035 | fi |
23036 | done | |
23037 | # Screen out bogus values from the imake configuration. They are | |
23038 | # bogus both because they are the default anyway, and because | |
23039 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 23040 | case $ac_im_incroot in |
b4e70030 | 23041 | /usr/include) ;; |
bec39cab | 23042 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 23043 | esac |
bec39cab | 23044 | case $ac_im_usrlibdir in |
c906108c | 23045 | /usr/lib | /lib) ;; |
bec39cab | 23046 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
23047 | esac |
23048 | fi | |
23049 | cd .. | |
b4e70030 | 23050 | rm -fr conftest.dir |
c906108c SS |
23051 | fi |
23052 | ||
bec39cab AC |
23053 | # Standard set of common directories for X headers. |
23054 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23055 | ac_x_header_dirs=' | |
23056 | /usr/X11/include | |
23057 | /usr/X11R6/include | |
23058 | /usr/X11R5/include | |
23059 | /usr/X11R4/include | |
23060 | ||
23061 | /usr/include/X11 | |
23062 | /usr/include/X11R6 | |
23063 | /usr/include/X11R5 | |
23064 | /usr/include/X11R4 | |
23065 | ||
23066 | /usr/local/X11/include | |
23067 | /usr/local/X11R6/include | |
23068 | /usr/local/X11R5/include | |
23069 | /usr/local/X11R4/include | |
23070 | ||
23071 | /usr/local/include/X11 | |
23072 | /usr/local/include/X11R6 | |
23073 | /usr/local/include/X11R5 | |
23074 | /usr/local/include/X11R4 | |
23075 | ||
23076 | /usr/X386/include | |
23077 | /usr/x386/include | |
23078 | /usr/XFree86/include/X11 | |
23079 | ||
23080 | /usr/include | |
23081 | /usr/local/include | |
23082 | /usr/unsupported/include | |
23083 | /usr/athena/include | |
23084 | /usr/local/x11r5/include | |
23085 | /usr/lpp/Xamples/include | |
23086 | ||
23087 | /usr/openwin/include | |
23088 | /usr/openwin/share/include' | |
23089 | ||
23090 | if test "$ac_x_includes" = no; then | |
59f80f10 | 23091 | # Guess where to find include files, by looking for Intrinsic.h. |
c906108c | 23092 | # First, try using that file with no special directory specified. |
bec39cab AC |
23093 | cat >conftest.$ac_ext <<_ACEOF |
23094 | /* confdefs.h. */ | |
23095 | _ACEOF | |
23096 | cat confdefs.h >>conftest.$ac_ext | |
23097 | cat >>conftest.$ac_ext <<_ACEOF | |
23098 | /* end confdefs.h. */ | |
59f80f10 | 23099 | #include <X11/Intrinsic.h> |
bec39cab AC |
23100 | _ACEOF |
23101 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23102 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23103 | ac_status=$? | |
23104 | grep -v '^ *+' conftest.er1 >conftest.err | |
23105 | rm -f conftest.er1 | |
23106 | cat conftest.err >&5 | |
23107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23108 | (exit $ac_status); } >/dev/null; then | |
23109 | if test -s conftest.err; then | |
23110 | ac_cpp_err=$ac_c_preproc_warn_flag | |
23111 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
23112 | else | |
23113 | ac_cpp_err= | |
23114 | fi | |
23115 | else | |
23116 | ac_cpp_err=yes | |
23117 | fi | |
23118 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
23119 | # We can compile using X headers with no special include directory. |
23120 | ac_x_includes= | |
23121 | else | |
bec39cab AC |
23122 | echo "$as_me: failed program was:" >&5 |
23123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23124 | ||
23125 | for ac_dir in $ac_x_header_dirs; do | |
59f80f10 | 23126 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
bec39cab AC |
23127 | ac_x_includes=$ac_dir |
23128 | break | |
23129 | fi | |
23130 | done | |
c906108c | 23131 | fi |
bec39cab AC |
23132 | rm -f conftest.err conftest.$ac_ext |
23133 | fi # $ac_x_includes = no | |
c906108c | 23134 | |
bec39cab | 23135 | if test "$ac_x_libraries" = no; then |
c906108c | 23136 | # Check for the libraries. |
c906108c SS |
23137 | # See if we find them without any special options. |
23138 | # Don't add to $LIBS permanently. | |
bec39cab | 23139 | ac_save_LIBS=$LIBS |
4e8d927d | 23140 | LIBS="-lXt $LIBS" |
bec39cab AC |
23141 | cat >conftest.$ac_ext <<_ACEOF |
23142 | /* confdefs.h. */ | |
23143 | _ACEOF | |
23144 | cat confdefs.h >>conftest.$ac_ext | |
23145 | cat >>conftest.$ac_ext <<_ACEOF | |
23146 | /* end confdefs.h. */ | |
59f80f10 | 23147 | #include <X11/Intrinsic.h> |
bec39cab AC |
23148 | int |
23149 | main () | |
23150 | { | |
59f80f10 | 23151 | XtMalloc (0) |
bec39cab AC |
23152 | ; |
23153 | return 0; | |
23154 | } | |
23155 | _ACEOF | |
23156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23158 | (eval $ac_link) 2>conftest.er1 | |
23159 | ac_status=$? | |
23160 | grep -v '^ *+' conftest.er1 >conftest.err | |
23161 | rm -f conftest.er1 | |
23162 | cat conftest.err >&5 | |
23163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23164 | (exit $ac_status); } && | |
b4e70030 JB |
23165 | { ac_try='test -z "$ac_c_werror_flag" |
23166 | || test ! -s conftest.err' | |
bec39cab AC |
23167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23168 | (eval $ac_try) 2>&5 | |
23169 | ac_status=$? | |
23170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23171 | (exit $ac_status); }; } && | |
23172 | { ac_try='test -s conftest$ac_exeext' | |
23173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23174 | (eval $ac_try) 2>&5 | |
23175 | ac_status=$? | |
23176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23177 | (exit $ac_status); }; }; then | |
23178 | LIBS=$ac_save_LIBS | |
c906108c SS |
23179 | # We can link X programs with no special library path. |
23180 | ac_x_libraries= | |
23181 | else | |
bec39cab AC |
23182 | echo "$as_me: failed program was:" >&5 |
23183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23184 | ||
b4e70030 | 23185 | LIBS=$ac_save_LIBS |
bec39cab | 23186 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 23187 | do |
bec39cab | 23188 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 23189 | for ac_extension in a so sl; do |
b4e70030 | 23190 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
23191 | ac_x_libraries=$ac_dir |
23192 | break 2 | |
23193 | fi | |
23194 | done | |
23195 | done | |
23196 | fi | |
bec39cab AC |
23197 | rm -f conftest.err conftest.$ac_objext \ |
23198 | conftest$ac_exeext conftest.$ac_ext | |
23199 | fi # $ac_x_libraries = no | |
c906108c | 23200 | |
bec39cab | 23201 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
23202 | # Didn't find X anywhere. Cache the known absence of X. |
23203 | ac_cv_have_x="have_x=no" | |
23204 | else | |
23205 | # Record where we found X for the cache. | |
23206 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 23207 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
23208 | fi |
23209 | fi | |
bec39cab | 23210 | |
c906108c SS |
23211 | fi |
23212 | eval "$ac_cv_have_x" | |
23213 | fi # $with_x != no | |
23214 | ||
23215 | if test "$have_x" != yes; then | |
b4e70030 JB |
23216 | echo "$as_me:$LINENO: result: $have_x" >&5 |
23217 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
23218 | no_x=yes |
23219 | else | |
23220 | # If each of the values was on the command line, it overrides each guess. | |
23221 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
23222 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
23223 | # Update the cache value to reflect the command line values. | |
23224 | ac_cv_have_x="have_x=yes \ | |
23225 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
b4e70030 JB |
23226 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
23227 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
23228 | fi |
23229 | ||
23230 | ||
9cc52bde MK |
23231 | # Check whether we should enable the TUI, but only do so if we really |
23232 | # can. | |
23233 | if test x"$enable_tui" = xyes; then | |
23234 | if test -d $srcdir/tui; then | |
23235 | if test "$ac_cv_search_waddstr" != no; then | |
23236 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
23237 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
23238 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
23239 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
23240 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
23241 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
23242 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
23243 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
23244 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
23245 | else | |
bec39cab AC |
23246 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
23247 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
23248 | fi |
23249 | fi | |
23250 | fi | |
23251 | ||
bec39cab AC |
23252 | # Unlike the sim directory, whether a simulator is linked is controlled by |
23253 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
23254 | # This code just checks for a few cases where we'd like to ignore those |
23255 | # definitions, even when they're present in the '.mt' file. These cases | |
23256 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 23257 | # not part of the source tree. |
7a292a7a | 23258 | # |
b4e70030 | 23259 | # Check whether --enable-sim or --disable-sim was given. |
7a292a7a | 23260 | if test "${enable_sim+set}" = set; then |
b4e70030 JB |
23261 | enableval="$enable_sim" |
23262 | echo "enable_sim = $enable_sim"; | |
7a292a7a SS |
23263 | echo "enableval = ${enableval}"; |
23264 | case "${enableval}" in | |
23265 | yes) ignore_sim=false ;; | |
23266 | no) ignore_sim=true ;; | |
23267 | *) ignore_sim=false ;; | |
23268 | esac | |
23269 | else | |
23270 | ignore_sim=false | |
b4e70030 | 23271 | fi; |
7a292a7a SS |
23272 | |
23273 | if test ! -d "${srcdir}/../sim"; then | |
23274 | ignore_sim=true | |
23275 | fi | |
23276 | ||
23277 | if test "${ignore_sim}" = "true"; then | |
23278 | IGNORE_SIM="SIM=" | |
23279 | IGNORE_SIM_OBS="SIM_OBS=" | |
23280 | else | |
23281 | IGNORE_SIM="" | |
23282 | IGNORE_SIM_OBS="" | |
60ca704f SE |
23283 | |
23284 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 23285 | #define WITH_SIM 1 |
bec39cab | 23286 | _ACEOF |
7a292a7a SS |
23287 | |
23288 | fi | |
23289 | ||
23290 | ||
23291 | ||
c906108c SS |
23292 | |
23293 | ||
23294 | ||
23295 | ||
23296 | ||
23297 | ||
dfcd3bfb | 23298 | |
e56ac5c3 AC |
23299 | |
23300 | ||
b3a90332 AC |
23301 | |
23302 | ||
c35f4ffc | 23303 | # List of host floatformats. |
bec39cab AC |
23304 | |
23305 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 23306 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 23307 | _ACEOF |
c35f4ffc | 23308 | |
bec39cab AC |
23309 | |
23310 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 23311 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
23312 | _ACEOF |
23313 | ||
c35f4ffc | 23314 | |
bec39cab | 23315 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 23316 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 23317 | _ACEOF |
c35f4ffc AC |
23318 | |
23319 | ||
c906108c SS |
23320 | # target_subdir is used by the testsuite to find the target libraries. |
23321 | target_subdir= | |
23322 | if test "${host}" != "${target}"; then | |
23323 | target_subdir="${target_alias}/" | |
23324 | fi | |
23325 | ||
23326 | ||
23327 | frags= | |
771b4502 | 23328 | if test "${gdb_native}" = "yes"; then |
0dad8a66 MK |
23329 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
23330 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
23331 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
23332 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
23333 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
23334 | fi |
23335 | frags="$frags $host_makefile_frag" | |
23336 | else | |
23337 | host_makefile_frag=/dev/null | |
c906108c | 23338 | fi |
c906108c SS |
23339 | |
23340 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
23341 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
23342 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
23343 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
23344 | { (exit 1); exit 1; }; } | |
c906108c SS |
23345 | fi |
23346 | frags="$frags $target_makefile_frag" | |
23347 | ||
23348 | ||
23349 | ||
23350 | ||
23351 | ||
23352 | hostfile=`sed -n ' | |
23353 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
23354 | ' ${host_makefile_frag}` | |
23355 | ||
23356 | targetfile=`sed -n ' | |
b523a1fd | 23357 | s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
23358 | ' ${target_makefile_frag}` |
23359 | ||
771b4502 | 23360 | if test "${gdb_native}" = "yes"; then |
a85f51e7 DJ |
23361 | # We pick this up from the host configuration file (.mh) because we |
23362 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
23363 | nativefile=`sed -n ' |
23364 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
23365 | ' ${host_makefile_frag}` | |
c906108c SS |
23366 | fi |
23367 | ||
23368 | ||
b00a8037 | 23369 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
23370 | |
23371 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 23372 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 23373 | _ACEOF |
b00a8037 DJ |
23374 | |
23375 | fi | |
23376 | ||
8dcde887 | 23377 | # Enable multi-ice-gdb-server. |
b4e70030 | 23378 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
8dcde887 | 23379 | if test "${enable_multi_ice+set}" = set; then |
b4e70030 JB |
23380 | enableval="$enable_multi_ice" |
23381 | case $enableval in | |
8dcde887 MK |
23382 | yes | no) |
23383 | ;; | |
bec39cab AC |
23384 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
23385 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
23386 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 23387 | esac |
b4e70030 | 23388 | fi; |
4e8d927d | 23389 | if test "x$enable_multi_ice" = xyes; then |
b4e70030 JB |
23390 | |
23391 | ||
23392 | subdirs="$subdirs multi-ice" | |
3ace7edb | 23393 | |
a85f51e7 DJ |
23394 | fi |
23395 | ||
a13e2c95 UW |
23396 | # We only build gdbserver automatically in a native configuration. |
23397 | if test "$gdb_native" = "yes"; then | |
b4e70030 JB |
23398 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
23399 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 23400 | if test "x$build_gdbserver" = xyes; then |
b4e70030 JB |
23401 | echo "$as_me:$LINENO: result: yes" >&5 |
23402 | echo "${ECHO_T}yes" >&6 | |
23403 | ||
23404 | ||
23405 | subdirs="$subdirs gdbserver" | |
3ace7edb | 23406 | |
8dcde887 | 23407 | else |
b4e70030 JB |
23408 | echo "$as_me:$LINENO: result: no" >&5 |
23409 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
23410 | fi |
23411 | fi | |
23412 | ||
2c0fc042 AC |
23413 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
23414 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
23415 | # to an empty version. | |
c906108c SS |
23416 | |
23417 | files= | |
23418 | links= | |
5a2402b8 | 23419 | |
c906108c | 23420 | rm -f xm.h |
5a2402b8 | 23421 | xm_h="" |
c906108c | 23422 | if test "${hostfile}" != ""; then |
5a2402b8 | 23423 | xm_h=xm.h |
0f475e27 AC |
23424 | case "${hostfile}" in |
23425 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
23426 | * ) GDB_XM_FILE="${hostfile}" | |
23427 | esac | |
5a2402b8 AC |
23428 | files="${files} ${GDB_XM_FILE}" |
23429 | links="${links} xm.h" | |
60ca704f SE |
23430 | |
23431 | cat >>confdefs.h <<_ACEOF | |
b78960be | 23432 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 23433 | _ACEOF |
5a2402b8 | 23434 | |
c906108c | 23435 | fi |
5a2402b8 AC |
23436 | |
23437 | ||
c906108c | 23438 | rm -f tm.h |
5a2402b8 | 23439 | tm_h="" |
c906108c | 23440 | if test "${targetfile}" != ""; then |
5a2402b8 | 23441 | tm_h=tm.h |
0f475e27 | 23442 | case "${targetfile}" in |
b8c4aece | 23443 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
23444 | * ) GDB_TM_FILE="${targetfile}" |
23445 | esac | |
5a2402b8 AC |
23446 | files="${files} ${GDB_TM_FILE}" |
23447 | links="${links} tm.h" | |
60ca704f SE |
23448 | |
23449 | cat >>confdefs.h <<_ACEOF | |
b78960be | 23450 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 23451 | _ACEOF |
5a2402b8 | 23452 | |
c906108c | 23453 | fi |
5a2402b8 AC |
23454 | |
23455 | ||
c906108c | 23456 | rm -f nm.h |
5a2402b8 | 23457 | nm_h="" |
c906108c | 23458 | if test "${nativefile}" != ""; then |
5a2402b8 | 23459 | nm_h=nm.h |
0f475e27 AC |
23460 | case "${nativefile}" in |
23461 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
23462 | * ) GDB_NM_FILE="${nativefile}" | |
23463 | esac | |
5a2402b8 AC |
23464 | files="${files} ${GDB_NM_FILE}" |
23465 | links="${links} nm.h" | |
60ca704f SE |
23466 | |
23467 | cat >>confdefs.h <<_ACEOF | |
b78960be | 23468 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 23469 | _ACEOF |
5a2402b8 | 23470 | |
c906108c | 23471 | fi |
5a2402b8 AC |
23472 | |
23473 | ||
bec39cab AC |
23474 | ac_sources="$files" |
23475 | ac_dests="$links" | |
23476 | while test -n "$ac_sources"; do | |
23477 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
23478 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
23479 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
23480 | done | |
b4e70030 | 23481 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
23482 | |
23483 | ||
c906108c SS |
23484 | |
23485 | ||
c906108c | 23486 | |
c906108c | 23487 | |
bec39cab AC |
23488 | cat >>confdefs.h <<\_ACEOF |
23489 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
23490 | _ACEOF | |
c906108c | 23491 | |
234b45d4 | 23492 | |
234b45d4 KB |
23493 | |
23494 | ||
23495 | ||
b4e70030 | 23496 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 | 23497 | if test "${with_libiconv_prefix+set}" = set; then |
b4e70030 JB |
23498 | withval="$with_libiconv_prefix" |
23499 | ||
234b45d4 KB |
23500 | for dir in `echo "$withval" | tr : ' '`; do |
23501 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
23502 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
23503 | done | |
234b45d4 | 23504 | |
b4e70030 | 23505 | fi; |
234b45d4 | 23506 | |
b4e70030 JB |
23507 | echo "$as_me:$LINENO: checking for iconv" >&5 |
23508 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
bec39cab AC |
23509 | if test "${am_cv_func_iconv+set}" = set; then |
23510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 23511 | else |
bec39cab | 23512 | |
234b45d4 KB |
23513 | am_cv_func_iconv="no, consider installing GNU libiconv" |
23514 | am_cv_lib_iconv=no | |
bec39cab AC |
23515 | cat >conftest.$ac_ext <<_ACEOF |
23516 | /* confdefs.h. */ | |
23517 | _ACEOF | |
23518 | cat confdefs.h >>conftest.$ac_ext | |
23519 | cat >>conftest.$ac_ext <<_ACEOF | |
23520 | /* end confdefs.h. */ | |
234b45d4 KB |
23521 | #include <stdlib.h> |
23522 | #include <iconv.h> | |
bec39cab AC |
23523 | int |
23524 | main () | |
23525 | { | |
234b45d4 KB |
23526 | iconv_t cd = iconv_open("",""); |
23527 | iconv(cd,NULL,NULL,NULL,NULL); | |
23528 | iconv_close(cd); | |
bec39cab AC |
23529 | ; |
23530 | return 0; | |
23531 | } | |
23532 | _ACEOF | |
23533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23535 | (eval $ac_link) 2>conftest.er1 | |
23536 | ac_status=$? | |
23537 | grep -v '^ *+' conftest.er1 >conftest.err | |
23538 | rm -f conftest.er1 | |
23539 | cat conftest.err >&5 | |
23540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23541 | (exit $ac_status); } && | |
b4e70030 JB |
23542 | { ac_try='test -z "$ac_c_werror_flag" |
23543 | || test ! -s conftest.err' | |
bec39cab AC |
23544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23545 | (eval $ac_try) 2>&5 | |
23546 | ac_status=$? | |
23547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23548 | (exit $ac_status); }; } && | |
23549 | { ac_try='test -s conftest$ac_exeext' | |
23550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23551 | (eval $ac_try) 2>&5 | |
23552 | ac_status=$? | |
23553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23554 | (exit $ac_status); }; }; then | |
234b45d4 KB |
23555 | am_cv_func_iconv=yes |
23556 | else | |
bec39cab AC |
23557 | echo "$as_me: failed program was:" >&5 |
23558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23559 | ||
234b45d4 | 23560 | fi |
bec39cab AC |
23561 | rm -f conftest.err conftest.$ac_objext \ |
23562 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
23563 | if test "$am_cv_func_iconv" != yes; then |
23564 | am_save_LIBS="$LIBS" | |
23565 | LIBS="$LIBS -liconv" | |
bec39cab AC |
23566 | cat >conftest.$ac_ext <<_ACEOF |
23567 | /* confdefs.h. */ | |
23568 | _ACEOF | |
23569 | cat confdefs.h >>conftest.$ac_ext | |
23570 | cat >>conftest.$ac_ext <<_ACEOF | |
23571 | /* end confdefs.h. */ | |
234b45d4 KB |
23572 | #include <stdlib.h> |
23573 | #include <iconv.h> | |
bec39cab AC |
23574 | int |
23575 | main () | |
23576 | { | |
234b45d4 KB |
23577 | iconv_t cd = iconv_open("",""); |
23578 | iconv(cd,NULL,NULL,NULL,NULL); | |
23579 | iconv_close(cd); | |
bec39cab AC |
23580 | ; |
23581 | return 0; | |
23582 | } | |
23583 | _ACEOF | |
23584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23586 | (eval $ac_link) 2>conftest.er1 | |
23587 | ac_status=$? | |
23588 | grep -v '^ *+' conftest.er1 >conftest.err | |
23589 | rm -f conftest.er1 | |
23590 | cat conftest.err >&5 | |
23591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23592 | (exit $ac_status); } && | |
b4e70030 JB |
23593 | { ac_try='test -z "$ac_c_werror_flag" |
23594 | || test ! -s conftest.err' | |
bec39cab AC |
23595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23596 | (eval $ac_try) 2>&5 | |
23597 | ac_status=$? | |
23598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23599 | (exit $ac_status); }; } && | |
23600 | { ac_try='test -s conftest$ac_exeext' | |
23601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23602 | (eval $ac_try) 2>&5 | |
23603 | ac_status=$? | |
23604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23605 | (exit $ac_status); }; }; then | |
234b45d4 KB |
23606 | am_cv_lib_iconv=yes |
23607 | am_cv_func_iconv=yes | |
23608 | else | |
bec39cab AC |
23609 | echo "$as_me: failed program was:" >&5 |
23610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23611 | ||
234b45d4 | 23612 | fi |
bec39cab AC |
23613 | rm -f conftest.err conftest.$ac_objext \ |
23614 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
23615 | LIBS="$am_save_LIBS" |
23616 | fi | |
bec39cab AC |
23617 | |
23618 | fi | |
b4e70030 JB |
23619 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
23620 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
bec39cab AC |
23621 | if test "$am_cv_func_iconv" = yes; then |
23622 | ||
23623 | cat >>confdefs.h <<\_ACEOF | |
23624 | #define HAVE_ICONV 1 | |
23625 | _ACEOF | |
23626 | ||
b4e70030 JB |
23627 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
23628 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
bec39cab AC |
23629 | if test "${am_cv_proto_iconv+set}" = set; then |
23630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23631 | else | |
23632 | ||
23633 | cat >conftest.$ac_ext <<_ACEOF | |
23634 | /* confdefs.h. */ | |
23635 | _ACEOF | |
23636 | cat confdefs.h >>conftest.$ac_ext | |
23637 | cat >>conftest.$ac_ext <<_ACEOF | |
23638 | /* end confdefs.h. */ | |
23639 | ||
23640 | #include <stdlib.h> | |
23641 | #include <iconv.h> | |
23642 | extern | |
23643 | #ifdef __cplusplus | |
23644 | "C" | |
23645 | #endif | |
23646 | #if defined(__STDC__) || defined(__cplusplus) | |
23647 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
23648 | #else | |
23649 | size_t iconv(); | |
23650 | #endif | |
23651 | ||
23652 | int | |
23653 | main () | |
23654 | { | |
23655 | ||
23656 | ; | |
23657 | return 0; | |
23658 | } | |
23659 | _ACEOF | |
23660 | rm -f conftest.$ac_objext | |
23661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23662 | (eval $ac_compile) 2>conftest.er1 | |
23663 | ac_status=$? | |
23664 | grep -v '^ *+' conftest.er1 >conftest.err | |
23665 | rm -f conftest.er1 | |
23666 | cat conftest.err >&5 | |
23667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23668 | (exit $ac_status); } && | |
b4e70030 JB |
23669 | { ac_try='test -z "$ac_c_werror_flag" |
23670 | || test ! -s conftest.err' | |
bec39cab AC |
23671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23672 | (eval $ac_try) 2>&5 | |
23673 | ac_status=$? | |
23674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23675 | (exit $ac_status); }; } && | |
23676 | { ac_try='test -s conftest.$ac_objext' | |
23677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23678 | (eval $ac_try) 2>&5 | |
23679 | ac_status=$? | |
23680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23681 | (exit $ac_status); }; }; then | |
23682 | am_cv_proto_iconv_arg1="" | |
23683 | else | |
23684 | echo "$as_me: failed program was:" >&5 | |
23685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23686 | ||
b4e70030 | 23687 | am_cv_proto_iconv_arg1="const" |
bec39cab AC |
23688 | fi |
23689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23690 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
23691 | fi | |
23692 | ||
23693 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
b4e70030 | 23694 | echo "$as_me:$LINENO: result: ${ac_t:- |
bec39cab AC |
23695 | }$am_cv_proto_iconv" >&5 |
23696 | echo "${ECHO_T}${ac_t:- | |
b4e70030 | 23697 | }$am_cv_proto_iconv" >&6 |
bec39cab AC |
23698 | |
23699 | cat >>confdefs.h <<_ACEOF | |
23700 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
23701 | _ACEOF | |
23702 | ||
23703 | fi | |
23704 | LIBICONV= | |
23705 | if test "$am_cv_lib_iconv" = yes; then | |
23706 | LIBICONV="-liconv" | |
23707 | fi | |
23708 | ||
23709 | ||
23710 | ||
b4e70030 JB |
23711 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
23712 | ac_config_commands="$ac_config_commands default" | |
bec39cab AC |
23713 | cat >confcache <<\_ACEOF |
23714 | # This file is a shell script that caches the results of configure | |
23715 | # tests run on this system so they can be shared between configure | |
23716 | # scripts and configure runs, see configure's option --config-cache. | |
23717 | # It is not useful on other systems. If it contains results you don't | |
23718 | # want to keep, you may remove or edit it. | |
23719 | # | |
23720 | # config.status only pays attention to the cache file if you give it | |
23721 | # the --recheck option to rerun configure. | |
23722 | # | |
23723 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23724 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23725 | # following values. | |
23726 | ||
23727 | _ACEOF | |
23728 | ||
23729 | # The following way of writing the cache mishandles newlines in values, | |
23730 | # but we know of no workaround that is simple, portable, and efficient. | |
b4e70030 | 23731 | # So, don't put newlines in cache variables' values. |
bec39cab AC |
23732 | # Ultrix sh set writes to stderr and can't be redirected directly, |
23733 | # and sets the high bit in the cache file unless we assign to the vars. | |
b4e70030 | 23734 | { |
bec39cab | 23735 | (set) 2>&1 | |
b4e70030 JB |
23736 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
23737 | *ac_space=\ *) | |
bec39cab AC |
23738 | # `set' does not quote correctly, so add quotes (double-quote |
23739 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23740 | sed -n \ | |
23741 | "s/'/'\\\\''/g; | |
23742 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
b4e70030 | 23743 | ;; |
bec39cab AC |
23744 | *) |
23745 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
b4e70030 JB |
23746 | sed -n \ |
23747 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 23748 | ;; |
b4e70030 JB |
23749 | esac; |
23750 | } | | |
bec39cab AC |
23751 | sed ' |
23752 | t clear | |
b4e70030 | 23753 | : clear |
bec39cab AC |
23754 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
23755 | t end | |
b4e70030 JB |
23756 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
23757 | : end' >>confcache | |
bec39cab AC |
23758 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
23759 | if test -w $cache_file; then | |
b4e70030 | 23760 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
bec39cab AC |
23761 | cat confcache >$cache_file |
23762 | else | |
b4e70030 | 23763 | echo "not updating unwritable cache $cache_file" |
bec39cab AC |
23764 | fi |
23765 | fi | |
23766 | rm -f confcache | |
23767 | ||
23768 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23769 | # Let make expand exec_prefix. | |
23770 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23771 | ||
b4e70030 JB |
23772 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
23773 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
23774 | # trailing colons and then remove the whole line if VPATH becomes empty | |
23775 | # (actually we leave an empty line to preserve line numbers). | |
23776 | if test "x$srcdir" = x.; then | |
23777 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
23778 | s/:*\$(srcdir):*/:/; | |
23779 | s/:*\${srcdir}:*/:/; | |
23780 | s/:*@srcdir@:*/:/; | |
23781 | s/^\([^=]*=[ ]*\):*/\1/; | |
23782 | s/:*$//; | |
23783 | s/^[^=]*=[ ]*$//; | |
23784 | }' | |
23785 | fi | |
23786 | ||
bec39cab AC |
23787 | DEFS=-DHAVE_CONFIG_H |
23788 | ||
23789 | ac_libobjs= | |
23790 | ac_ltlibobjs= | |
23791 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23792 | # 1. Remove the extension, and $U if already installed. | |
b4e70030 JB |
23793 | ac_i=`echo "$ac_i" | |
23794 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
23795 | # 2. Add them. | |
23796 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
23797 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
23798 | done |
23799 | LIBOBJS=$ac_libobjs | |
23800 | ||
23801 | LTLIBOBJS=$ac_ltlibobjs | |
23802 | ||
23803 | ||
85981d60 AC |
23804 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
23805 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23806 | Usually this means the macro was only invoked conditionally." >&5 | |
23807 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23808 | Usually this means the macro was only invoked conditionally." >&2;} | |
23809 | { (exit 1); exit 1; }; } | |
23810 | fi | |
bec39cab AC |
23811 | |
23812 | : ${CONFIG_STATUS=./config.status} | |
23813 | ac_clean_files_save=$ac_clean_files | |
23814 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
23815 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
23816 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
23817 | cat >$CONFIG_STATUS <<_ACEOF | |
23818 | #! $SHELL | |
23819 | # Generated by $as_me. | |
23820 | # Run this file to recreate the current configuration. | |
23821 | # Compiler output produced by configure, useful for debugging | |
23822 | # configure, is in config.log if it exists. | |
23823 | ||
23824 | debug=false | |
23825 | ac_cs_recheck=false | |
23826 | ac_cs_silent=false | |
23827 | SHELL=\${CONFIG_SHELL-$SHELL} | |
23828 | _ACEOF | |
23829 | ||
23830 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23831 | ## --------------------- ## | |
23832 | ## M4sh Initialization. ## | |
23833 | ## --------------------- ## | |
23834 | ||
23835 | # Be Bourne compatible | |
23836 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23837 | emulate sh | |
23838 | NULLCMD=: | |
23839 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
23840 | # is contrary to our usage. Disable this feature. | |
23841 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
23842 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
23843 | set -o posix | |
bec39cab AC |
23844 | fi |
23845 | DUALCASE=1; export DUALCASE # for MKS sh | |
23846 | ||
23847 | # Support unset when possible. | |
23848 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
23849 | as_unset=unset | |
23850 | else | |
23851 | as_unset=false | |
23852 | fi | |
23853 | ||
23854 | ||
23855 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 23856 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
23857 | PS1='$ ' |
23858 | PS2='> ' | |
23859 | PS4='+ ' | |
23860 | ||
23861 | # NLS nuisances. | |
23862 | for as_var in \ | |
23863 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23864 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23865 | LC_TELEPHONE LC_TIME | |
23866 | do | |
23867 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
23868 | eval $as_var=C; export $as_var | |
23869 | else | |
b4e70030 | 23870 | $as_unset $as_var |
bec39cab AC |
23871 | fi |
23872 | done | |
23873 | ||
23874 | # Required to use basename. | |
b4e70030 | 23875 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
23876 | as_expr=expr |
23877 | else | |
23878 | as_expr=false | |
23879 | fi | |
23880 | ||
b4e70030 | 23881 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
23882 | as_basename=basename |
23883 | else | |
23884 | as_basename=false | |
23885 | fi | |
23886 | ||
23887 | ||
23888 | # Name of the executable. | |
b4e70030 | 23889 | as_me=`$as_basename "$0" || |
bec39cab AC |
23890 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
23891 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
23892 | X"$0" : 'X\(/\)$' \| \ |
23893 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 23894 | echo X/"$0" | |
b4e70030 JB |
23895 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
23896 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
23897 | /^X\/\(\/\).*/{ s//\1/; q; } | |
23898 | s/.*/./; q'` | |
bec39cab | 23899 | |
b4e70030 JB |
23900 | |
23901 | # PATH needs CR, and LINENO needs CR and PATH. | |
23902 | # Avoid depending upon Character Ranges. | |
23903 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23904 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23905 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23906 | as_cr_digits='0123456789' | |
23907 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23908 | ||
23909 | # The user is always right. | |
23910 | if test "${PATH_SEPARATOR+set}" != set; then | |
23911 | echo "#! /bin/sh" >conf$$.sh | |
23912 | echo "exit 0" >>conf$$.sh | |
23913 | chmod +x conf$$.sh | |
23914 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23915 | PATH_SEPARATOR=';' | |
23916 | else | |
23917 | PATH_SEPARATOR=: | |
23918 | fi | |
23919 | rm -f conf$$.sh | |
23920 | fi | |
bec39cab AC |
23921 | |
23922 | ||
b4e70030 JB |
23923 | as_lineno_1=$LINENO |
23924 | as_lineno_2=$LINENO | |
23925 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
23926 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
23927 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
23928 | # Find who we are. Look in the path if we contain no path at all | |
23929 | # relative or not. | |
23930 | case $0 in | |
23931 | *[\\/]* ) as_myself=$0 ;; | |
23932 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23933 | for as_dir in $PATH | |
23934 | do | |
23935 | IFS=$as_save_IFS | |
23936 | test -z "$as_dir" && as_dir=. | |
23937 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23938 | done | |
bec39cab | 23939 | |
b4e70030 JB |
23940 | ;; |
23941 | esac | |
23942 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23943 | # in which case we are not to be found in the path. | |
23944 | if test "x$as_myself" = x; then | |
23945 | as_myself=$0 | |
23946 | fi | |
23947 | if test ! -f "$as_myself"; then | |
23948 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
23949 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
23950 | { (exit 1); exit 1; }; } | |
23951 | fi | |
23952 | case $CONFIG_SHELL in | |
23953 | '') | |
23954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23955 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
23956 | do | |
23957 | IFS=$as_save_IFS | |
23958 | test -z "$as_dir" && as_dir=. | |
23959 | for as_base in sh bash ksh sh5; do | |
23960 | case $as_dir in | |
23961 | /*) | |
23962 | if ("$as_dir/$as_base" -c ' | |
bec39cab AC |
23963 | as_lineno_1=$LINENO |
23964 | as_lineno_2=$LINENO | |
b4e70030 | 23965 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
bec39cab | 23966 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
23967 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
23968 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
23969 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
23970 | CONFIG_SHELL=$as_dir/$as_base | |
23971 | export CONFIG_SHELL | |
23972 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
23973 | fi;; | |
23974 | esac | |
23975 | done | |
23976 | done | |
23977 | ;; | |
23978 | esac | |
bec39cab AC |
23979 | |
23980 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
23981 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
23982 | # line-number line before each line; the second 'sed' does the real |
23983 | # work. The second script uses 'N' to pair each line-number line | |
23984 | # with the numbered line, and appends trailing '-' during | |
23985 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 23986 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
23987 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
23988 | sed '=' <$as_myself | | |
bec39cab AC |
23989 | sed ' |
23990 | N | |
b4e70030 JB |
23991 | s,$,-, |
23992 | : loop | |
23993 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 23994 | t loop |
b4e70030 JB |
23995 | s,-$,, |
23996 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 23997 | ' >$as_me.lineno && |
b4e70030 JB |
23998 | chmod +x $as_me.lineno || |
23999 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
24000 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
24001 | { (exit 1); exit 1; }; } |
24002 | ||
24003 | # Don't try to exec as it changes $[0], causing all sort of problems | |
24004 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
24005 | # original and so on. Autoconf is especially sensible to this). |
24006 | . ./$as_me.lineno | |
bec39cab AC |
24007 | # Exit status is that of the last command. |
24008 | exit | |
24009 | } | |
24010 | ||
24011 | ||
b4e70030 JB |
24012 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
24013 | *c*,-n*) ECHO_N= ECHO_C=' | |
24014 | ' ECHO_T=' ' ;; | |
24015 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
24016 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
24017 | esac |
24018 | ||
b4e70030 | 24019 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
24020 | as_expr=expr |
24021 | else | |
24022 | as_expr=false | |
24023 | fi | |
24024 | ||
24025 | rm -f conf$$ conf$$.exe conf$$.file | |
24026 | echo >conf$$.file | |
24027 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
24028 | # We could just check for DJGPP; but this test a) works b) is more generic |
24029 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
24030 | if test -f conf$$.exe; then | |
24031 | # Don't use ln at all; we don't have any links | |
bec39cab | 24032 | as_ln_s='cp -p' |
b4e70030 JB |
24033 | else |
24034 | as_ln_s='ln -s' | |
24035 | fi | |
bec39cab AC |
24036 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24037 | as_ln_s=ln | |
24038 | else | |
24039 | as_ln_s='cp -p' | |
24040 | fi | |
b4e70030 | 24041 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
24042 | |
24043 | if mkdir -p . 2>/dev/null; then | |
24044 | as_mkdir_p=: | |
24045 | else | |
24046 | test -d ./-p && rmdir ./-p | |
24047 | as_mkdir_p=false | |
24048 | fi | |
24049 | ||
b4e70030 | 24050 | as_executable_p="test -f" |
bec39cab AC |
24051 | |
24052 | # Sed expression to map a string onto a valid CPP name. | |
24053 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
24054 | ||
24055 | # Sed expression to map a string onto a valid variable name. | |
24056 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
24057 | ||
24058 | ||
b4e70030 JB |
24059 | # IFS |
24060 | # We need space, tab and new line, in precisely that order. | |
24061 | as_nl=' | |
24062 | ' | |
24063 | IFS=" $as_nl" | |
24064 | ||
24065 | # CDPATH. | |
24066 | $as_unset CDPATH | |
24067 | ||
bec39cab AC |
24068 | exec 6>&1 |
24069 | ||
b4e70030 | 24070 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 24071 | # report actual input values of CONFIG_FILES etc. instead of their |
b4e70030 JB |
24072 | # values after options handling. Logging --version etc. is OK. |
24073 | exec 5>>config.log | |
24074 | { | |
24075 | echo | |
24076 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24077 | ## Running $as_me. ## | |
24078 | _ASBOX | |
24079 | } >&5 | |
24080 | cat >&5 <<_CSEOF | |
24081 | ||
bec39cab | 24082 | This file was extended by $as_me, which was |
b4e70030 | 24083 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
24084 | |
24085 | CONFIG_FILES = $CONFIG_FILES | |
24086 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24087 | CONFIG_LINKS = $CONFIG_LINKS | |
24088 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24089 | $ $0 $@ | |
24090 | ||
b4e70030 JB |
24091 | _CSEOF |
24092 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
24093 | echo >&5 | |
bec39cab AC |
24094 | _ACEOF |
24095 | ||
24096 | # Files that config.status was made for. | |
b4e70030 JB |
24097 | if test -n "$ac_config_files"; then |
24098 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
24099 | fi | |
234b45d4 | 24100 | |
b4e70030 JB |
24101 | if test -n "$ac_config_headers"; then |
24102 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
24103 | fi | |
24104 | ||
24105 | if test -n "$ac_config_links"; then | |
24106 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
24107 | fi | |
24108 | ||
24109 | if test -n "$ac_config_commands"; then | |
24110 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
24111 | fi | |
234b45d4 | 24112 | |
bec39cab | 24113 | cat >>$CONFIG_STATUS <<\_ACEOF |
b4e70030 | 24114 | |
bec39cab AC |
24115 | ac_cs_usage="\ |
24116 | \`$as_me' instantiates files from templates according to the | |
24117 | current configuration. | |
234b45d4 | 24118 | |
bec39cab | 24119 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 24120 | |
bec39cab AC |
24121 | -h, --help print this help, then exit |
24122 | -V, --version print version number, then exit | |
24123 | -q, --quiet do not print progress messages | |
24124 | -d, --debug don't remove temporary files | |
24125 | --recheck update $as_me by reconfiguring in the same conditions | |
24126 | --file=FILE[:TEMPLATE] | |
24127 | instantiate the configuration file FILE | |
24128 | --header=FILE[:TEMPLATE] | |
24129 | instantiate the configuration header FILE | |
234b45d4 | 24130 | |
bec39cab AC |
24131 | Configuration files: |
24132 | $config_files | |
234b45d4 | 24133 | |
bec39cab AC |
24134 | Configuration headers: |
24135 | $config_headers | |
234b45d4 | 24136 | |
bec39cab AC |
24137 | Configuration links: |
24138 | $config_links | |
234b45d4 | 24139 | |
bec39cab AC |
24140 | Configuration commands: |
24141 | $config_commands | |
24142 | ||
24143 | Report bugs to <bug-autoconf@gnu.org>." | |
4e8d927d | 24144 | _ACEOF |
b4e70030 | 24145 | |
bec39cab AC |
24146 | cat >>$CONFIG_STATUS <<_ACEOF |
24147 | ac_cs_version="\\ | |
24148 | config.status | |
b4e70030 | 24149 | configured by $0, generated by GNU Autoconf 2.59, |
bec39cab AC |
24150 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
24151 | ||
b4e70030 | 24152 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
24153 | This config.status script is free software; the Free Software Foundation |
24154 | gives unlimited permission to copy, distribute and modify it." | |
b4e70030 JB |
24155 | srcdir=$srcdir |
24156 | INSTALL="$INSTALL" | |
bec39cab AC |
24157 | _ACEOF |
24158 | ||
24159 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24160 | # If no file are specified by the user, then we need to provide default | |
24161 | # value. By we need to know if files were specified by the user. | |
24162 | ac_need_defaults=: | |
24163 | while test $# != 0 | |
24164 | do | |
24165 | case $1 in | |
24166 | --*=*) | |
b4e70030 JB |
24167 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
24168 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab | 24169 | ac_shift=: |
c906108c | 24170 | ;; |
b4e70030 | 24171 | -*) |
bec39cab AC |
24172 | ac_option=$1 |
24173 | ac_optarg=$2 | |
24174 | ac_shift=shift | |
c906108c | 24175 | ;; |
b4e70030 JB |
24176 | *) # This is not an option, so the user has probably given explicit |
24177 | # arguments. | |
24178 | ac_option=$1 | |
24179 | ac_need_defaults=false;; | |
bec39cab | 24180 | esac |
c906108c | 24181 | |
bec39cab AC |
24182 | case $ac_option in |
24183 | # Handling of the options. | |
b4e70030 JB |
24184 | _ACEOF |
24185 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
24186 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24187 | ac_cs_recheck=: ;; | |
b4e70030 JB |
24188 | --version | --vers* | -V ) |
24189 | echo "$ac_cs_version"; exit 0 ;; | |
24190 | --he | --h) | |
24191 | # Conflict between --help and --header | |
24192 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
24193 | Try \`$0 --help' for more information." >&5 | |
24194 | echo "$as_me: error: ambiguous option: $1 | |
24195 | Try \`$0 --help' for more information." >&2;} | |
24196 | { (exit 1); exit 1; }; };; | |
24197 | --help | --hel | -h ) | |
24198 | echo "$ac_cs_usage"; exit 0 ;; | |
24199 | --debug | --d* | -d ) | |
bec39cab AC |
24200 | debug=: ;; |
24201 | --file | --fil | --fi | --f ) | |
24202 | $ac_shift | |
24203 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
24204 | ac_need_defaults=false;; | |
24205 | --header | --heade | --head | --hea ) | |
24206 | $ac_shift | |
24207 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
24208 | ac_need_defaults=false;; | |
24209 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24210 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24211 | ac_cs_silent=: ;; | |
c906108c | 24212 | |
bec39cab | 24213 | # This is an error. |
b4e70030 JB |
24214 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
24215 | Try \`$0 --help' for more information." >&5 | |
24216 | echo "$as_me: error: unrecognized option: $1 | |
24217 | Try \`$0 --help' for more information." >&2;} | |
bec39cab | 24218 | { (exit 1); exit 1; }; } ;; |
c906108c | 24219 | |
b4e70030 | 24220 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 24221 | |
bec39cab AC |
24222 | esac |
24223 | shift | |
24224 | done | |
c906108c | 24225 | |
bec39cab | 24226 | ac_configure_extra_args= |
c906108c | 24227 | |
bec39cab AC |
24228 | if $ac_cs_silent; then |
24229 | exec 6>/dev/null | |
24230 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24231 | fi | |
c906108c | 24232 | |
bec39cab AC |
24233 | _ACEOF |
24234 | cat >>$CONFIG_STATUS <<_ACEOF | |
24235 | if \$ac_cs_recheck; then | |
b4e70030 JB |
24236 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
24237 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
24238 | fi |
24239 | ||
24240 | _ACEOF | |
24241 | ||
24242 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 24243 | # |
b4e70030 | 24244 | # INIT-COMMANDS section. |
c906108c | 24245 | # |
c906108c | 24246 | |
b4e70030 | 24247 | |
4e8d927d DJ |
24248 | GCC="$GCC" |
24249 | CC="$CC" | |
24250 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
24251 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
24252 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
24253 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
24254 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
24255 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
24256 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
24257 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
24258 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
24259 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
24260 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
24261 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
24262 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
24263 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
24264 | ||
bec39cab AC |
24265 | |
24266 | gdb_host_cpu=$gdb_host_cpu | |
24267 | gdb_target_cpu=$gdb_target_cpu | |
24268 | nativefile=$nativefile | |
24269 | ||
24270 | ||
24271 | _ACEOF | |
24272 | ||
4e8d927d | 24273 | |
b4e70030 JB |
24274 | |
24275 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 24276 | for ac_config_target in $ac_config_targets |
c906108c | 24277 | do |
b4e70030 JB |
24278 | case "$ac_config_target" in |
24279 | # Handling of arguments. | |
24280 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24281 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
24282 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
24283 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; | |
24284 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
24285 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
24286 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
24287 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
24288 | { (exit 1); exit 1; }; };; | |
c906108c SS |
24289 | esac |
24290 | done | |
24291 | ||
bec39cab AC |
24292 | # If the user did not use the arguments to specify the items to instantiate, |
24293 | # then the envvar interface is used. Set only those that are not. | |
24294 | # We use the long form for the default assignment because of an extremely | |
24295 | # bizarre bug on SunOS 4.1.3. | |
24296 | if $ac_need_defaults; then | |
24297 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24298 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24299 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
24300 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
24301 | fi | |
24302 | ||
b4e70030 JB |
24303 | # Have a temporary directory for convenience. Make it in the build tree |
24304 | # simply because there is no reason to put it here, and in addition, | |
24305 | # creating and moving files from /tmp can sometimes cause problems. | |
24306 | # Create a temporary directory, and hook for its removal unless debugging. | |
24307 | $debug || | |
24308 | { | |
24309 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
24310 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
24311 | } | |
4e8d927d | 24312 | |
b4e70030 | 24313 | # Create a (secure) tmp directory for tmp files. |
4e8d927d | 24314 | |
b4e70030 JB |
24315 | { |
24316 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
24317 | test -n "$tmp" && test -d "$tmp" | |
24318 | } || | |
24319 | { | |
24320 | tmp=./confstat$$-$RANDOM | |
24321 | (umask 077 && mkdir $tmp) | |
24322 | } || | |
24323 | { | |
24324 | echo "$me: cannot create a temporary directory in ." >&2 | |
24325 | { (exit 1); exit 1; } | |
24326 | } | |
4e8d927d | 24327 | |
b4e70030 | 24328 | _ACEOF |
4e8d927d | 24329 | |
b4e70030 | 24330 | cat >>$CONFIG_STATUS <<_ACEOF |
4e8d927d | 24331 | |
b4e70030 JB |
24332 | # |
24333 | # CONFIG_FILES section. | |
24334 | # | |
4e8d927d | 24335 | |
b4e70030 JB |
24336 | # No need to generate the scripts if there are no CONFIG_FILES. |
24337 | # This happens for instance when ./config.status config.h | |
24338 | if test -n "\$CONFIG_FILES"; then | |
24339 | # Protect against being on the right side of a sed subst in config.status. | |
24340 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
24341 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
24342 | s,@SHELL@,$SHELL,;t t | |
24343 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
24344 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
24345 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
24346 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
24347 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
24348 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
24349 | s,@exec_prefix@,$exec_prefix,;t t | |
24350 | s,@prefix@,$prefix,;t t | |
24351 | s,@program_transform_name@,$program_transform_name,;t t | |
24352 | s,@bindir@,$bindir,;t t | |
24353 | s,@sbindir@,$sbindir,;t t | |
24354 | s,@libexecdir@,$libexecdir,;t t | |
24355 | s,@datadir@,$datadir,;t t | |
24356 | s,@sysconfdir@,$sysconfdir,;t t | |
24357 | s,@sharedstatedir@,$sharedstatedir,;t t | |
24358 | s,@localstatedir@,$localstatedir,;t t | |
24359 | s,@libdir@,$libdir,;t t | |
24360 | s,@includedir@,$includedir,;t t | |
24361 | s,@oldincludedir@,$oldincludedir,;t t | |
24362 | s,@infodir@,$infodir,;t t | |
24363 | s,@mandir@,$mandir,;t t | |
24364 | s,@build_alias@,$build_alias,;t t | |
24365 | s,@host_alias@,$host_alias,;t t | |
24366 | s,@target_alias@,$target_alias,;t t | |
24367 | s,@DEFS@,$DEFS,;t t | |
24368 | s,@ECHO_C@,$ECHO_C,;t t | |
24369 | s,@ECHO_N@,$ECHO_N,;t t | |
24370 | s,@ECHO_T@,$ECHO_T,;t t | |
24371 | s,@LIBS@,$LIBS,;t t | |
24372 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
24373 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
24374 | s,@MAINT@,$MAINT,;t t | |
24375 | s,@CC@,$CC,;t t | |
24376 | s,@CFLAGS@,$CFLAGS,;t t | |
24377 | s,@LDFLAGS@,$LDFLAGS,;t t | |
24378 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
24379 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
24380 | s,@EXEEXT@,$EXEEXT,;t t | |
24381 | s,@OBJEXT@,$OBJEXT,;t t | |
24382 | s,@CPP@,$CPP,;t t | |
24383 | s,@EGREP@,$EGREP,;t t | |
24384 | s,@build@,$build,;t t | |
24385 | s,@build_cpu@,$build_cpu,;t t | |
24386 | s,@build_vendor@,$build_vendor,;t t | |
24387 | s,@build_os@,$build_os,;t t | |
24388 | s,@host@,$host,;t t | |
24389 | s,@host_cpu@,$host_cpu,;t t | |
24390 | s,@host_vendor@,$host_vendor,;t t | |
24391 | s,@host_os@,$host_os,;t t | |
24392 | s,@target@,$target,;t t | |
24393 | s,@target_cpu@,$target_cpu,;t t | |
24394 | s,@target_vendor@,$target_vendor,;t t | |
24395 | s,@target_os@,$target_os,;t t | |
b4e70030 | 24396 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
24397 | s,@LIBINTL@,$LIBINTL,;t t |
24398 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
24399 | s,@INCINTL@,$INCINTL,;t t | |
b4e70030 | 24400 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
24401 | s,@GMSGFMT@,$GMSGFMT,;t t |
24402 | s,@POSUB@,$POSUB,;t t | |
b4e70030 | 24403 | s,@CATALOGS@,$CATALOGS,;t t |
b4e70030 | 24404 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
b4e70030 | 24405 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
24406 | s,@GENCAT@,$GENCAT,;t t |
24407 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b4e70030 JB |
24408 | s,@localedir@,$localedir,;t t |
24409 | s,@PACKAGE@,$PACKAGE,;t t | |
24410 | s,@subdirs@,$subdirs,;t t | |
24411 | s,@AWK@,$AWK,;t t | |
24412 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
24413 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
24414 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
24415 | s,@LN_S@,$LN_S,;t t | |
20e95c23 DJ |
24416 | s,@RANLIB@,$RANLIB,;t t |
24417 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
b4e70030 JB |
24418 | s,@YACC@,$YACC,;t t |
24419 | s,@AR@,$AR,;t t | |
24420 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
24421 | s,@DLLTOOL@,$DLLTOOL,;t t | |
24422 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
24423 | s,@WINDRES@,$WINDRES,;t t | |
24424 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
24425 | s,@MIG@,$MIG,;t t | |
24426 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
6a30b0a5 AS |
24427 | s,@READLINE@,$READLINE,;t t |
24428 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t | |
24429 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t | |
3841debe DJ |
24430 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
24431 | s,@LIBEXPAT@,$LIBEXPAT,;t t | |
24432 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t | |
20e95c23 | 24433 | s,@ALLOCA@,$ALLOCA,;t t |
b4e70030 JB |
24434 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
24435 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
24436 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
24437 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
24438 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
24439 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
24440 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
24441 | s,@LIBGUI@,$LIBGUI,;t t | |
24442 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
24443 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
24444 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
24445 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
24446 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
24447 | s,@TCL_CC@,$TCL_CC,;t t | |
24448 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
24449 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
24450 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
24451 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
24452 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
24453 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
24454 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
24455 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
24456 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
24457 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
24458 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
24459 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
24460 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
24461 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
24462 | s,@TK_VERSION@,$TK_VERSION,;t t | |
24463 | s,@TK_DEFS@,$TK_DEFS,;t t | |
24464 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
24465 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
24466 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
24467 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
24468 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
24469 | s,@TCLHDIR@,$TCLHDIR,;t t | |
24470 | s,@TKHDIR@,$TKHDIR,;t t | |
24471 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
24472 | s,@ITKHDIR@,$ITKHDIR,;t t | |
24473 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
24474 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
24475 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
24476 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
24477 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
24478 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
24479 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
24480 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
24481 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
24482 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
24483 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
24484 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
24485 | s,@X_LIBS@,$X_LIBS,;t t | |
24486 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
24487 | s,@TK_DEPS@,$TK_DEPS,;t t | |
24488 | s,@ITCLLIB@,$ITCLLIB,;t t | |
24489 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
24490 | s,@ITKLIB@,$ITKLIB,;t t | |
24491 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
24492 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
24493 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
24494 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
24495 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t | |
24496 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t | |
24497 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t | |
24498 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
24499 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
24500 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
24501 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
24502 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
24503 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
24504 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
24505 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
24506 | s,@target_subdir@,$target_subdir,;t t | |
24507 | s,@frags@,$frags,;t t | |
24508 | s,@xm_h@,$xm_h,;t t | |
24509 | s,@tm_h@,$tm_h,;t t | |
24510 | s,@nm_h@,$nm_h,;t t | |
24511 | s,@LIBICONV@,$LIBICONV,;t t | |
24512 | s,@LIBOBJS@,$LIBOBJS,;t t | |
24513 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
24514 | /@host_makefile_frag@/r $host_makefile_frag | |
24515 | s,@host_makefile_frag@,,;t t | |
24516 | /@target_makefile_frag@/r $target_makefile_frag | |
24517 | s,@target_makefile_frag@,,;t t | |
24518 | CEOF | |
24519 | ||
24520 | _ACEOF | |
24521 | ||
24522 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24523 | # Split the substitutions into bite-sized pieces for seds with | |
24524 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
24525 | ac_max_sed_lines=48 | |
24526 | ac_sed_frag=1 # Number of current file. | |
24527 | ac_beg=1 # First line for current file. | |
24528 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
24529 | ac_more_lines=: | |
24530 | ac_sed_cmds= | |
24531 | while $ac_more_lines; do | |
24532 | if test $ac_beg -gt 1; then | |
24533 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
24534 | else | |
24535 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4e8d927d | 24536 | fi |
b4e70030 JB |
24537 | if test ! -s $tmp/subs.frag; then |
24538 | ac_more_lines=false | |
24539 | else | |
24540 | # The purpose of the label and of the branching condition is to | |
24541 | # speed up the sed processing (if there are no `@' at all, there | |
24542 | # is no need to browse any of the substitutions). | |
24543 | # These are the two extra sed commands mentioned above. | |
24544 | (echo ':t | |
24545 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
24546 | if test -z "$ac_sed_cmds"; then | |
24547 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
24548 | else | |
24549 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
24550 | fi | |
24551 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
24552 | ac_beg=$ac_end | |
24553 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
24554 | fi | |
24555 | done | |
24556 | if test -z "$ac_sed_cmds"; then | |
24557 | ac_sed_cmds=cat | |
24558 | fi | |
24559 | fi # test -n "$CONFIG_FILES" | |
4e8d927d | 24560 | |
b4e70030 JB |
24561 | _ACEOF |
24562 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24563 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
24564 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
24565 | case $ac_file in | |
24566 | - | *:- | *:-:* ) # input from stdin | |
24567 | cat >$tmp/stdin | |
24568 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24569 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24570 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24571 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24572 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
24573 | esac |
24574 | ||
b4e70030 JB |
24575 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
24576 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
24577 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24578 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24579 | X"$ac_file" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24580 | X"$ac_file" : 'X\(/\)' \| \ |
24581 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24582 | echo X"$ac_file" | |
b4e70030 JB |
24583 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
24584 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24585 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24586 | /^X\(\/\).*/{ s//\1/; q; } | |
24587 | s/.*/./; q'` | |
24588 | { if $as_mkdir_p; then | |
24589 | mkdir -p "$ac_dir" | |
24590 | else | |
24591 | as_dir="$ac_dir" | |
bec39cab | 24592 | as_dirs= |
b4e70030 JB |
24593 | while test ! -d "$as_dir"; do |
24594 | as_dirs="$as_dir $as_dirs" | |
24595 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
24596 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24597 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24598 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24599 | X"$as_dir" : 'X\(/\)' \| \ |
24600 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24601 | echo X"$as_dir" | |
b4e70030 JB |
24602 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
24603 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24604 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24605 | /^X\(\/\).*/{ s//\1/; q; } | |
24606 | s/.*/./; q'` | |
bec39cab | 24607 | done |
b4e70030 JB |
24608 | test ! -n "$as_dirs" || mkdir $as_dirs |
24609 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24610 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 24611 | { (exit 1); exit 1; }; }; } |
b4e70030 | 24612 | |
bec39cab AC |
24613 | ac_builddir=. |
24614 | ||
b4e70030 | 24615 | if test "$ac_dir" != .; then |
bec39cab | 24616 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
24617 | # A "../" for each directory in $ac_dir_suffix. |
24618 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24619 | else | |
24620 | ac_dir_suffix= ac_top_builddir= | |
24621 | fi | |
bec39cab AC |
24622 | |
24623 | case $srcdir in | |
b4e70030 | 24624 | .) # No --srcdir option. We are building in place. |
bec39cab | 24625 | ac_srcdir=. |
b4e70030 JB |
24626 | if test -z "$ac_top_builddir"; then |
24627 | ac_top_srcdir=. | |
24628 | else | |
24629 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24630 | fi ;; | |
24631 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 24632 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
24633 | ac_top_srcdir=$srcdir ;; |
24634 | *) # Relative path. | |
24635 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24636 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
24637 | esac |
24638 | ||
b4e70030 JB |
24639 | # Do not use `cd foo && pwd` to compute absolute paths, because |
24640 | # the directories may not exist. | |
24641 | case `pwd` in | |
24642 | .) ac_abs_builddir="$ac_dir";; | |
24643 | *) | |
24644 | case "$ac_dir" in | |
24645 | .) ac_abs_builddir=`pwd`;; | |
24646 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
24647 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
24648 | esac;; | |
24649 | esac | |
24650 | case $ac_abs_builddir in | |
24651 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24652 | *) | |
24653 | case ${ac_top_builddir}. in | |
24654 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24655 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24656 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24657 | esac;; | |
24658 | esac | |
24659 | case $ac_abs_builddir in | |
24660 | .) ac_abs_srcdir=$ac_srcdir;; | |
24661 | *) | |
24662 | case $ac_srcdir in | |
24663 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24664 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24665 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24666 | esac;; | |
24667 | esac | |
24668 | case $ac_abs_builddir in | |
24669 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24670 | *) | |
24671 | case $ac_top_srcdir in | |
24672 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24673 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24674 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24675 | esac;; | |
24676 | esac | |
c906108c | 24677 | |
c906108c | 24678 | |
bec39cab AC |
24679 | case $INSTALL in |
24680 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
b4e70030 | 24681 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c | 24682 | esac |
121ce6e5 | 24683 | |
b4e70030 JB |
24684 | if test x"$ac_file" != x-; then |
24685 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24686 | echo "$as_me: creating $ac_file" >&6;} | |
24687 | rm -f "$ac_file" | |
24688 | fi | |
24689 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24690 | # use $as_me), people would be surprised to read: | |
24691 | # /* config.h. Generated by config.status. */ | |
24692 | if test x"$ac_file" = x-; then | |
24693 | configure_input= | |
24694 | else | |
24695 | configure_input="$ac_file. " | |
24696 | fi | |
24697 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
24698 | sed 's,.*/,,'` by configure." | |
24699 | ||
24700 | # First look for the input files in the build tree, otherwise in the | |
24701 | # src tree. | |
24702 | ac_file_inputs=`IFS=: | |
24703 | for f in $ac_file_in; do | |
24704 | case $f in | |
24705 | -) echo $tmp/stdin ;; | |
24706 | [\\/$]*) | |
24707 | # Absolute (can't be DOS-style, as IFS=:) | |
24708 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24709 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24710 | { (exit 1); exit 1; }; } | |
24711 | echo "$f";; | |
24712 | *) # Relative | |
24713 | if test -f "$f"; then | |
24714 | # Build tree | |
24715 | echo "$f" | |
24716 | elif test -f "$srcdir/$f"; then | |
24717 | # Source tree | |
24718 | echo "$srcdir/$f" | |
24719 | else | |
24720 | # /dev/null tree | |
24721 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24722 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24723 | { (exit 1); exit 1; }; } | |
24724 | fi;; | |
24725 | esac | |
24726 | done` || { (exit 1); exit 1; } | |
4e8d927d | 24727 | _ACEOF |
bec39cab AC |
24728 | cat >>$CONFIG_STATUS <<_ACEOF |
24729 | sed "$ac_vpsub | |
24730 | $extrasub | |
24731 | _ACEOF | |
24732 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24733 | :t | |
24734 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b4e70030 JB |
24735 | s,@configure_input@,$configure_input,;t t |
24736 | s,@srcdir@,$ac_srcdir,;t t | |
24737 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
24738 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
24739 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
24740 | s,@builddir@,$ac_builddir,;t t | |
24741 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
24742 | s,@top_builddir@,$ac_top_builddir,;t t | |
24743 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
24744 | s,@INSTALL@,$ac_INSTALL,;t t | |
24745 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
24746 | rm -f $tmp/stdin | |
24747 | if test x"$ac_file" != x-; then | |
24748 | mv $tmp/out $ac_file | |
24749 | else | |
24750 | cat $tmp/out | |
24751 | rm -f $tmp/out | |
24752 | fi | |
24753 | ||
24754 | done | |
24755 | _ACEOF | |
24756 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24757 | ||
24758 | # | |
24759 | # CONFIG_HEADER section. | |
24760 | # | |
24761 | ||
24762 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
24763 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
24764 | # | |
24765 | # ac_d sets the value in "#define NAME VALUE" lines. | |
24766 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
24767 | ac_dB='[ ].*$,\1#\2' | |
24768 | ac_dC=' ' | |
24769 | ac_dD=',;t' | |
24770 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
24771 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
24772 | ac_uB='$,\1#\2define\3' | |
24773 | ac_uC=' ' | |
24774 | ac_uD=',;t' | |
24775 | ||
24776 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
24777 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 24778 | case $ac_file in |
b4e70030 JB |
24779 | - | *:- | *:-:* ) # input from stdin |
24780 | cat >$tmp/stdin | |
24781 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24782 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24783 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24784 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24785 | * ) ac_file_in=$ac_file.in ;; | |
c906108c | 24786 | esac |
b4e70030 JB |
24787 | |
24788 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24789 | echo "$as_me: creating $ac_file" >&6;} | |
24790 | ||
24791 | # First look for the input files in the build tree, otherwise in the | |
24792 | # src tree. | |
24793 | ac_file_inputs=`IFS=: | |
24794 | for f in $ac_file_in; do | |
24795 | case $f in | |
24796 | -) echo $tmp/stdin ;; | |
24797 | [\\/$]*) | |
24798 | # Absolute (can't be DOS-style, as IFS=:) | |
24799 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24800 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24801 | { (exit 1); exit 1; }; } | |
24802 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
24803 | echo "$f";; | |
24804 | *) # Relative | |
24805 | if test -f "$f"; then | |
24806 | # Build tree | |
24807 | echo "$f" | |
24808 | elif test -f "$srcdir/$f"; then | |
24809 | # Source tree | |
24810 | echo "$srcdir/$f" | |
24811 | else | |
24812 | # /dev/null tree | |
24813 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24814 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24815 | { (exit 1); exit 1; }; } | |
24816 | fi;; | |
24817 | esac | |
24818 | done` || { (exit 1); exit 1; } | |
24819 | # Remove the trailing spaces. | |
24820 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
24821 | ||
24822 | _ACEOF | |
24823 | ||
24824 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
24825 | # `conftest.undefs', that substitutes the proper values into | |
24826 | # config.h.in to produce config.h. The first handles `#define' | |
24827 | # templates, and the second `#undef' templates. | |
24828 | # And first: Protect against being on the right side of a sed subst in | |
24829 | # config.status. Protect against being in an unquoted here document | |
24830 | # in config.status. | |
24831 | rm -f conftest.defines conftest.undefs | |
24832 | # Using a here document instead of a string reduces the quoting nightmare. | |
24833 | # Putting comments in sed scripts is not portable. | |
24834 | # | |
24835 | # `end' is used to avoid that the second main sed command (meant for | |
24836 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
24837 | # See the Autoconf documentation for `clear'. | |
24838 | cat >confdef2sed.sed <<\_ACEOF | |
24839 | s/[\\&,]/\\&/g | |
24840 | s,[\\$`],\\&,g | |
24841 | t clear | |
24842 | : clear | |
24843 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
24844 | t end | |
24845 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
24846 | : end | |
24847 | _ACEOF | |
24848 | # If some macros were called several times there might be several times | |
24849 | # the same #defines, which is useless. Nevertheless, we may not want to | |
24850 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
24851 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
24852 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
24853 | rm -f confdef2sed.sed | |
24854 | ||
24855 | # This sed command replaces #undef with comments. This is necessary, for | |
c906108c SS |
24856 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
24857 | # on some systems where configure will not decide to define it. | |
b4e70030 JB |
24858 | cat >>conftest.undefs <<\_ACEOF |
24859 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
24860 | _ACEOF | |
24861 | ||
24862 | # Break up conftest.defines because some shells have a limit on the size | |
24863 | # of here documents, and old seds have small limits too (100 cmds). | |
24864 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
24865 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
24866 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
24867 | echo ' :' >>$CONFIG_STATUS | |
24868 | rm -f conftest.tail | |
24869 | while grep . conftest.defines >/dev/null | |
bec39cab | 24870 | do |
b4e70030 JB |
24871 | # Write a limited-size here document to $tmp/defines.sed. |
24872 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
24873 | # Speed up: don't consider the non `#define' lines. | |
24874 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
24875 | # Work around the forget-to-reset-the-flag bug. | |
24876 | echo 't clr' >>$CONFIG_STATUS | |
24877 | echo ': clr' >>$CONFIG_STATUS | |
24878 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 24879 | echo 'CEOF |
b4e70030 JB |
24880 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
24881 | rm -f $tmp/in | |
24882 | mv $tmp/out $tmp/in | |
24883 | ' >>$CONFIG_STATUS | |
24884 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
24885 | rm -f conftest.defines |
24886 | mv conftest.tail conftest.defines | |
24887 | done | |
b4e70030 JB |
24888 | rm -f conftest.defines |
24889 | echo ' fi # grep' >>$CONFIG_STATUS | |
24890 | echo >>$CONFIG_STATUS | |
24891 | ||
24892 | # Break up conftest.undefs because some shells have a limit on the size | |
24893 | # of here documents, and old seds have small limits too (100 cmds). | |
24894 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
24895 | rm -f conftest.tail | |
24896 | while grep . conftest.undefs >/dev/null | |
24897 | do | |
24898 | # Write a limited-size here document to $tmp/undefs.sed. | |
24899 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
24900 | # Speed up: don't consider the non `#undef' | |
24901 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
24902 | # Work around the forget-to-reset-the-flag bug. | |
24903 | echo 't clr' >>$CONFIG_STATUS | |
24904 | echo ': clr' >>$CONFIG_STATUS | |
24905 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
24906 | echo 'CEOF | |
24907 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
24908 | rm -f $tmp/in | |
24909 | mv $tmp/out $tmp/in | |
24910 | ' >>$CONFIG_STATUS | |
24911 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
24912 | rm -f conftest.undefs | |
24913 | mv conftest.tail conftest.undefs | |
24914 | done | |
24915 | rm -f conftest.undefs | |
bec39cab AC |
24916 | |
24917 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b4e70030 JB |
24918 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
24919 | # use $as_me), people would be surprised to read: | |
24920 | # /* config.h. Generated by config.status. */ | |
24921 | if test x"$ac_file" = x-; then | |
24922 | echo "/* Generated by configure. */" >$tmp/config.h | |
24923 | else | |
24924 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
24925 | fi | |
24926 | cat $tmp/in >>$tmp/config.h | |
24927 | rm -f $tmp/in | |
bec39cab | 24928 | if test x"$ac_file" != x-; then |
b4e70030 | 24929 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
24930 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
24931 | echo "$as_me: $ac_file is unchanged" >&6;} | |
24932 | else | |
b4e70030 JB |
24933 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
24934 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24935 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24936 | X"$ac_file" : 'X\(//\)$' \| \ | |
24937 | X"$ac_file" : 'X\(/\)' \| \ | |
24938 | . : '\(.\)' 2>/dev/null || | |
24939 | echo X"$ac_file" | | |
24940 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24941 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24942 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24943 | /^X\(\/\).*/{ s//\1/; q; } | |
24944 | s/.*/./; q'` | |
24945 | { if $as_mkdir_p; then | |
24946 | mkdir -p "$ac_dir" | |
24947 | else | |
24948 | as_dir="$ac_dir" | |
24949 | as_dirs= | |
24950 | while test ! -d "$as_dir"; do | |
24951 | as_dirs="$as_dir $as_dirs" | |
24952 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24953 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24954 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24955 | X"$as_dir" : 'X\(//\)$' \| \ | |
24956 | X"$as_dir" : 'X\(/\)' \| \ | |
24957 | . : '\(.\)' 2>/dev/null || | |
24958 | echo X"$as_dir" | | |
24959 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24960 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24961 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24962 | /^X\(\/\).*/{ s//\1/; q; } | |
24963 | s/.*/./; q'` | |
24964 | done | |
24965 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24966 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24967 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
24968 | { (exit 1); exit 1; }; }; } | |
24969 | ||
bec39cab | 24970 | rm -f $ac_file |
b4e70030 | 24971 | mv $tmp/config.h $ac_file |
bec39cab AC |
24972 | fi |
24973 | else | |
b4e70030 JB |
24974 | cat $tmp/config.h |
24975 | rm -f $tmp/config.h | |
bec39cab | 24976 | fi |
b4e70030 JB |
24977 | done |
24978 | _ACEOF | |
24979 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24980 | ||
24981 | # | |
24982 | # CONFIG_LINKS section. | |
24983 | # | |
24984 | ||
24985 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
24986 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
24987 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 24988 | |
b4e70030 JB |
24989 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
24990 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
24991 | |
24992 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
24993 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
24994 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
24995 | { (exit 1); exit 1; }; } | |
c906108c | 24996 | fi |
b4e70030 JB |
24997 | rm -f $ac_dest |
24998 | ||
24999 | # Make relative symlinks. | |
25000 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25001 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25002 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25003 | X"$ac_dest" : 'X\(//\)$' \| \ | |
25004 | X"$ac_dest" : 'X\(/\)' \| \ | |
25005 | . : '\(.\)' 2>/dev/null || | |
25006 | echo X"$ac_dest" | | |
25007 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25008 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25009 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25010 | /^X\(\/\).*/{ s//\1/; q; } | |
25011 | s/.*/./; q'` | |
25012 | { if $as_mkdir_p; then | |
25013 | mkdir -p "$ac_dest_dir" | |
25014 | else | |
25015 | as_dir="$ac_dest_dir" | |
25016 | as_dirs= | |
25017 | while test ! -d "$as_dir"; do | |
25018 | as_dirs="$as_dir $as_dirs" | |
25019 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25020 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25021 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25022 | X"$as_dir" : 'X\(//\)$' \| \ | |
25023 | X"$as_dir" : 'X\(/\)' \| \ | |
25024 | . : '\(.\)' 2>/dev/null || | |
25025 | echo X"$as_dir" | | |
25026 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25027 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25028 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25029 | /^X\(\/\).*/{ s//\1/; q; } | |
25030 | s/.*/./; q'` | |
25031 | done | |
25032 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25033 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
25034 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
25035 | { (exit 1); exit 1; }; }; } | |
25036 | ||
25037 | ac_builddir=. | |
25038 | ||
25039 | if test "$ac_dest_dir" != .; then | |
25040 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
25041 | # A "../" for each directory in $ac_dir_suffix. | |
25042 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25043 | else | |
25044 | ac_dir_suffix= ac_top_builddir= | |
25045 | fi | |
25046 | ||
25047 | case $srcdir in | |
25048 | .) # No --srcdir option. We are building in place. | |
25049 | ac_srcdir=. | |
25050 | if test -z "$ac_top_builddir"; then | |
25051 | ac_top_srcdir=. | |
25052 | else | |
25053 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25054 | fi ;; | |
25055 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25056 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25057 | ac_top_srcdir=$srcdir ;; | |
25058 | *) # Relative path. | |
25059 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25060 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25061 | esac | |
25062 | ||
25063 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25064 | # the directories may not exist. | |
25065 | case `pwd` in | |
25066 | .) ac_abs_builddir="$ac_dest_dir";; | |
25067 | *) | |
25068 | case "$ac_dest_dir" in | |
25069 | .) ac_abs_builddir=`pwd`;; | |
25070 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
25071 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
25072 | esac;; | |
25073 | esac | |
25074 | case $ac_abs_builddir in | |
25075 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25076 | *) | |
25077 | case ${ac_top_builddir}. in | |
25078 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25079 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25080 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25081 | esac;; | |
25082 | esac | |
25083 | case $ac_abs_builddir in | |
25084 | .) ac_abs_srcdir=$ac_srcdir;; | |
25085 | *) | |
25086 | case $ac_srcdir in | |
25087 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25088 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25089 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25090 | esac;; | |
25091 | esac | |
25092 | case $ac_abs_builddir in | |
25093 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25094 | *) | |
25095 | case $ac_top_srcdir in | |
25096 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25097 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25098 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25099 | esac;; | |
25100 | esac | |
25101 | ||
bec39cab AC |
25102 | |
25103 | case $srcdir in | |
25104 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
b4e70030 | 25105 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
c906108c | 25106 | esac |
b4e70030 JB |
25107 | |
25108 | # Try a symlink, then a hard link, then a copy. | |
25109 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
25110 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
25111 | cp -p $srcdir/$ac_source $ac_dest || | |
25112 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
25113 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
bec39cab | 25114 | { (exit 1); exit 1; }; } |
b4e70030 JB |
25115 | done |
25116 | _ACEOF | |
25117 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25118 | ||
25119 | # | |
25120 | # CONFIG_COMMANDS section. | |
25121 | # | |
25122 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
25123 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
25124 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25125 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25126 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25127 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25128 | X"$ac_dest" : 'X\(//\)$' \| \ | |
25129 | X"$ac_dest" : 'X\(/\)' \| \ | |
25130 | . : '\(.\)' 2>/dev/null || | |
25131 | echo X"$ac_dest" | | |
25132 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25133 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25134 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25135 | /^X\(\/\).*/{ s//\1/; q; } | |
25136 | s/.*/./; q'` | |
25137 | { if $as_mkdir_p; then | |
25138 | mkdir -p "$ac_dir" | |
25139 | else | |
25140 | as_dir="$ac_dir" | |
25141 | as_dirs= | |
25142 | while test ! -d "$as_dir"; do | |
25143 | as_dirs="$as_dir $as_dirs" | |
25144 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25145 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25146 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25147 | X"$as_dir" : 'X\(//\)$' \| \ | |
25148 | X"$as_dir" : 'X\(/\)' \| \ | |
25149 | . : '\(.\)' 2>/dev/null || | |
25150 | echo X"$as_dir" | | |
25151 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25152 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25153 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25154 | /^X\(\/\).*/{ s//\1/; q; } | |
25155 | s/.*/./; q'` | |
25156 | done | |
25157 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25158 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25159 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25160 | { (exit 1); exit 1; }; }; } | |
25161 | ||
25162 | ac_builddir=. | |
25163 | ||
25164 | if test "$ac_dir" != .; then | |
25165 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25166 | # A "../" for each directory in $ac_dir_suffix. | |
25167 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25168 | else | |
25169 | ac_dir_suffix= ac_top_builddir= | |
25170 | fi | |
25171 | ||
25172 | case $srcdir in | |
25173 | .) # No --srcdir option. We are building in place. | |
25174 | ac_srcdir=. | |
25175 | if test -z "$ac_top_builddir"; then | |
25176 | ac_top_srcdir=. | |
25177 | else | |
25178 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25179 | fi ;; | |
25180 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25181 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25182 | ac_top_srcdir=$srcdir ;; | |
25183 | *) # Relative path. | |
25184 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25185 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25186 | esac | |
25187 | ||
25188 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25189 | # the directories may not exist. | |
25190 | case `pwd` in | |
25191 | .) ac_abs_builddir="$ac_dir";; | |
25192 | *) | |
25193 | case "$ac_dir" in | |
25194 | .) ac_abs_builddir=`pwd`;; | |
25195 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25196 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25197 | esac;; | |
25198 | esac | |
25199 | case $ac_abs_builddir in | |
25200 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25201 | *) | |
25202 | case ${ac_top_builddir}. in | |
25203 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25204 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25205 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25206 | esac;; | |
25207 | esac | |
25208 | case $ac_abs_builddir in | |
25209 | .) ac_abs_srcdir=$ac_srcdir;; | |
25210 | *) | |
25211 | case $ac_srcdir in | |
25212 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25213 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25214 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25215 | esac;; | |
25216 | esac | |
25217 | case $ac_abs_builddir in | |
25218 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25219 | *) | |
25220 | case $ac_top_srcdir in | |
25221 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25222 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25223 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25224 | esac;; | |
25225 | esac | |
bec39cab | 25226 | |
bec39cab | 25227 | |
b4e70030 JB |
25228 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
25229 | echo "$as_me: executing $ac_dest commands" >&6;} | |
25230 | case $ac_dest in | |
25231 | gdb_stdint.h ) | |
4e8d927d DJ |
25232 | if test "$GCC" = yes; then |
25233 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
25234 | else | |
25235 | echo "/* generated for $CC */" > tmp-stdint.h | |
25236 | fi | |
25237 | ||
25238 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25239 | ||
25240 | #ifndef GCC_GENERATED_STDINT_H | |
25241 | #define GCC_GENERATED_STDINT_H 1 | |
25242 | ||
25243 | #include <sys/types.h> | |
25244 | EOF | |
25245 | ||
25246 | if test "$acx_cv_header_stdint" != stdint.h; then | |
25247 | echo "#include <stddef.h>" >> tmp-stdint.h | |
25248 | fi | |
25249 | if test "$acx_cv_header_stdint" != stddef.h; then | |
25250 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
25251 | fi | |
25252 | ||
25253 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25254 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
25255 | #ifdef __int8_t_defined | |
25256 | #define _INT8_T | |
25257 | #define _INT16_T | |
25258 | #define _INT32_T | |
25259 | #endif | |
25260 | #ifdef __uint32_t_defined | |
25261 | #define _UINT32_T | |
25262 | #endif | |
25263 | ||
25264 | EOF | |
25265 | ||
25266 | # ----------------- done header, emit basic int types ------------- | |
25267 | if test "$acx_cv_header_stdint" = stddef.h; then | |
25268 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25269 | ||
25270 | #ifndef _UINT8_T | |
25271 | #define _UINT8_T | |
07abfebf RS |
25272 | #ifndef __uint8_t_defined |
25273 | #define __uint8_t_defined | |
4e8d927d DJ |
25274 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
25275 | #endif | |
07abfebf | 25276 | #endif |
4e8d927d DJ |
25277 | |
25278 | #ifndef _UINT16_T | |
25279 | #define _UINT16_T | |
07abfebf RS |
25280 | #ifndef __uint16_t_defined |
25281 | #define __uint16_t_defined | |
4e8d927d DJ |
25282 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
25283 | #endif | |
07abfebf | 25284 | #endif |
4e8d927d DJ |
25285 | |
25286 | #ifndef _UINT32_T | |
25287 | #define _UINT32_T | |
07abfebf RS |
25288 | #ifndef __uint32_t_defined |
25289 | #define __uint32_t_defined | |
4e8d927d DJ |
25290 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
25291 | #endif | |
07abfebf | 25292 | #endif |
4e8d927d DJ |
25293 | |
25294 | #ifndef _INT8_T | |
25295 | #define _INT8_T | |
07abfebf RS |
25296 | #ifndef __int8_t_defined |
25297 | #define __int8_t_defined | |
4e8d927d DJ |
25298 | typedef $acx_cv_type_int8_t int8_t; |
25299 | #endif | |
07abfebf | 25300 | #endif |
4e8d927d DJ |
25301 | |
25302 | #ifndef _INT16_T | |
25303 | #define _INT16_T | |
07abfebf RS |
25304 | #ifndef __int16_t_defined |
25305 | #define __int16_t_defined | |
4e8d927d DJ |
25306 | typedef $acx_cv_type_int16_t int16_t; |
25307 | #endif | |
07abfebf | 25308 | #endif |
4e8d927d DJ |
25309 | |
25310 | #ifndef _INT32_T | |
25311 | #define _INT32_T | |
07abfebf RS |
25312 | #ifndef __int32_t_defined |
25313 | #define __int32_t_defined | |
4e8d927d DJ |
25314 | typedef $acx_cv_type_int32_t int32_t; |
25315 | #endif | |
07abfebf | 25316 | #endif |
4e8d927d DJ |
25317 | EOF |
25318 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
25319 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25320 | ||
25321 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
25322 | #ifndef _INT8_T | |
25323 | #define _INT8_T | |
25324 | #endif | |
25325 | #ifndef _INT16_T | |
25326 | #define _INT16_T | |
25327 | #endif | |
25328 | #ifndef _INT32_T | |
25329 | #define _INT32_T | |
25330 | #endif | |
25331 | ||
25332 | #ifndef _UINT8_T | |
25333 | #define _UINT8_T | |
07abfebf RS |
25334 | #ifndef __uint8_t_defined |
25335 | #define __uint8_t_defined | |
4e8d927d DJ |
25336 | typedef u_int8_t uint8_t; |
25337 | #endif | |
07abfebf | 25338 | #endif |
4e8d927d DJ |
25339 | |
25340 | #ifndef _UINT16_T | |
25341 | #define _UINT16_T | |
07abfebf RS |
25342 | #ifndef __uint16_t_defined |
25343 | #define __uint16_t_defined | |
4e8d927d DJ |
25344 | typedef u_int16_t uint16_t; |
25345 | #endif | |
07abfebf | 25346 | #endif |
4e8d927d DJ |
25347 | |
25348 | #ifndef _UINT32_T | |
25349 | #define _UINT32_T | |
07abfebf RS |
25350 | #ifndef __uint32_t_defined |
25351 | #define __uint32_t_defined | |
4e8d927d DJ |
25352 | typedef u_int32_t uint32_t; |
25353 | #endif | |
07abfebf | 25354 | #endif |
4e8d927d DJ |
25355 | EOF |
25356 | else | |
25357 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25358 | ||
25359 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
25360 | #ifndef _INT8_T | |
25361 | #define _INT8_T | |
25362 | #endif | |
25363 | #ifndef _INT16_T | |
25364 | #define _INT16_T | |
25365 | #endif | |
25366 | #ifndef _INT32_T | |
25367 | #define _INT32_T | |
25368 | #endif | |
25369 | #ifndef _UINT8_T | |
25370 | #define _UINT8_T | |
25371 | #endif | |
25372 | #ifndef _UINT16_T | |
25373 | #define _UINT16_T | |
25374 | #endif | |
25375 | #ifndef _UINT32_T | |
25376 | #define _UINT32_T | |
25377 | #endif | |
25378 | EOF | |
25379 | fi | |
25380 | ||
25381 | # ------------- done basic int types, emit int64_t types ------------ | |
25382 | if test "$ac_cv_type_uint64_t" = yes; then | |
25383 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25384 | ||
25385 | /* system headers have good uint64_t and int64_t */ | |
25386 | #ifndef _INT64_T | |
25387 | #define _INT64_T | |
25388 | #endif | |
25389 | #ifndef _UINT64_T | |
25390 | #define _UINT64_T | |
25391 | #endif | |
25392 | EOF | |
25393 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
25394 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25395 | ||
25396 | /* system headers have an u_int64_t (and int64_t) */ | |
25397 | #ifndef _INT64_T | |
25398 | #define _INT64_T | |
25399 | #endif | |
25400 | #ifndef _UINT64_T | |
25401 | #define _UINT64_T | |
07abfebf RS |
25402 | #ifndef __uint64_t_defined |
25403 | #define __uint64_t_defined | |
4e8d927d DJ |
25404 | typedef u_int64_t uint64_t; |
25405 | #endif | |
07abfebf | 25406 | #endif |
4e8d927d DJ |
25407 | EOF |
25408 | elif test -n "$acx_cv_type_int64_t"; then | |
25409 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25410 | ||
25411 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
25412 | #ifndef _INT64_T | |
25413 | #define _INT64_T | |
25414 | typedef $acx_cv_type_int64_t int64_t; | |
25415 | #endif | |
25416 | #ifndef _UINT64_T | |
25417 | #define _UINT64_T | |
07abfebf RS |
25418 | #ifndef __uint64_t_defined |
25419 | #define __uint64_t_defined | |
4e8d927d DJ |
25420 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
25421 | #endif | |
07abfebf | 25422 | #endif |
4e8d927d DJ |
25423 | EOF |
25424 | else | |
25425 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25426 | ||
25427 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
25428 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
25429 | #ifndef _INT64_T | |
25430 | #define _INT64_T | |
07abfebf | 25431 | #ifndef __int64_t_defined |
4e8d927d DJ |
25432 | typedef long long int64_t; |
25433 | #endif | |
07abfebf | 25434 | #endif |
4e8d927d DJ |
25435 | #ifndef _UINT64_T |
25436 | #define _UINT64_T | |
25437 | typedef unsigned long long uint64_t; | |
25438 | #endif | |
25439 | ||
25440 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
25441 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
25442 | does not implement __extension__. But that compiler doesn't define | |
25443 | __GNUC_MINOR__. */ | |
25444 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
25445 | # define __extension__ | |
25446 | # endif | |
25447 | ||
25448 | # ifndef _INT64_T | |
25449 | # define _INT64_T | |
25450 | __extension__ typedef long long int64_t; | |
25451 | # endif | |
25452 | # ifndef _UINT64_T | |
25453 | # define _UINT64_T | |
25454 | __extension__ typedef unsigned long long uint64_t; | |
25455 | # endif | |
25456 | ||
25457 | #elif !defined __STRICT_ANSI__ | |
25458 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
25459 | ||
25460 | # ifndef _INT64_T | |
25461 | # define _INT64_T | |
25462 | typedef __int64 int64_t; | |
25463 | # endif | |
25464 | # ifndef _UINT64_T | |
25465 | # define _UINT64_T | |
25466 | typedef unsigned __int64 uint64_t; | |
25467 | # endif | |
25468 | # endif /* compiler */ | |
25469 | ||
25470 | #endif /* ANSI version */ | |
25471 | EOF | |
25472 | fi | |
25473 | ||
25474 | # ------------- done int64_t types, emit intptr types ------------ | |
25475 | if test "$ac_cv_type_uintptr_t" != yes; then | |
25476 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25477 | ||
25478 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
07abfebf | 25479 | #ifndef __uintptr_t_defined |
4e8d927d | 25480 | typedef u$acx_cv_type_intptr_t uintptr_t; |
07abfebf RS |
25481 | #endif |
25482 | #ifndef __intptr_t_defined | |
4e8d927d | 25483 | typedef $acx_cv_type_intptr_t intptr_t; |
07abfebf | 25484 | #endif |
4e8d927d DJ |
25485 | EOF |
25486 | fi | |
25487 | ||
25488 | # ------------- done intptr types, emit int_least types ------------ | |
25489 | if test "$ac_cv_type_int_least32_t" != yes; then | |
25490 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25491 | ||
25492 | /* Define int_least types */ | |
25493 | typedef int8_t int_least8_t; | |
25494 | typedef int16_t int_least16_t; | |
25495 | typedef int32_t int_least32_t; | |
25496 | #ifdef _INT64_T | |
25497 | typedef int64_t int_least64_t; | |
25498 | #endif | |
25499 | ||
25500 | typedef uint8_t uint_least8_t; | |
25501 | typedef uint16_t uint_least16_t; | |
25502 | typedef uint32_t uint_least32_t; | |
25503 | #ifdef _UINT64_T | |
25504 | typedef uint64_t uint_least64_t; | |
25505 | #endif | |
25506 | EOF | |
25507 | fi | |
25508 | ||
25509 | # ------------- done intptr types, emit int_fast types ------------ | |
25510 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
25511 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25512 | ||
25513 | /* Define int_fast types. short is often slow */ | |
25514 | typedef int8_t int_fast8_t; | |
25515 | typedef int int_fast16_t; | |
25516 | typedef int32_t int_fast32_t; | |
25517 | #ifdef _INT64_T | |
25518 | typedef int64_t int_fast64_t; | |
25519 | #endif | |
25520 | ||
25521 | typedef uint8_t uint_fast8_t; | |
25522 | typedef unsigned int uint_fast16_t; | |
25523 | typedef uint32_t uint_fast32_t; | |
25524 | #ifdef _UINT64_T | |
25525 | typedef uint64_t uint_fast64_t; | |
25526 | #endif | |
25527 | EOF | |
25528 | fi | |
25529 | ||
25530 | if test "$ac_cv_type_uintmax_t" != yes; then | |
25531 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25532 | ||
25533 | /* Define intmax based on what we found */ | |
25534 | #ifdef _INT64_T | |
25535 | typedef int64_t intmax_t; | |
25536 | #else | |
25537 | typedef long intmax_t; | |
25538 | #endif | |
25539 | #ifdef _UINT64_T | |
25540 | typedef uint64_t uintmax_t; | |
25541 | #else | |
25542 | typedef unsigned long uintmax_t; | |
25543 | #endif | |
25544 | EOF | |
25545 | fi | |
25546 | ||
25547 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25548 | ||
25549 | #endif /* GCC_GENERATED_STDINT_H */ | |
25550 | EOF | |
25551 | ||
25552 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then | |
25553 | rm -f tmp-stdint.h | |
25554 | else | |
25555 | mv -f tmp-stdint.h gdb_stdint.h | |
bec39cab AC |
25556 | fi |
25557 | ||
4e8d927d | 25558 | ;; |
b4e70030 | 25559 | default ) |
c906108c | 25560 | |
2c0fc042 | 25561 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
25562 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
25563 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
25564 | mv -f Makefile.tmp Makefile | |
25565 | ||
2acceee2 | 25566 | |
c906108c SS |
25567 | case x$CONFIG_HEADERS in |
25568 | xconfig.h:config.in) | |
25569 | echo > stamp-h ;; | |
25570 | esac | |
bec39cab AC |
25571 | ;; |
25572 | esac | |
b4e70030 JB |
25573 | done |
25574 | _ACEOF | |
c906108c | 25575 | |
b4e70030 | 25576 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
25577 | |
25578 | { (exit 0); exit 0; } | |
25579 | _ACEOF | |
c906108c | 25580 | chmod +x $CONFIG_STATUS |
bec39cab AC |
25581 | ac_clean_files=$ac_clean_files_save |
25582 | ||
25583 | ||
25584 | # configure is writing to config.log, and then calls config.status. | |
25585 | # config.status does its own redirection, appending to config.log. | |
25586 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
25587 | # by configure, so config.status won't be able to write to it; its | |
25588 | # output is simply discarded. So we exec the FD to /dev/null, | |
25589 | # effectively closing config.log, so it can be properly (re)opened and | |
25590 | # appended to by config.status. When coming back to configure, we | |
25591 | # need to make the FD available again. | |
25592 | if test "$no_create" != yes; then | |
25593 | ac_cs_success=: | |
25594 | ac_config_status_args= | |
25595 | test "$silent" = yes && | |
25596 | ac_config_status_args="$ac_config_status_args --quiet" | |
25597 | exec 5>/dev/null | |
25598 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
25599 | exec 5>>config.log | |
25600 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25601 | # would make configure fail if this is the last instruction. | |
25602 | $ac_cs_success || { (exit 1); exit 1; } | |
25603 | fi | |
c906108c | 25604 | |
bec39cab AC |
25605 | # |
25606 | # CONFIG_SUBDIRS section. | |
25607 | # | |
c906108c SS |
25608 | if test "$no_recursion" != yes; then |
25609 | ||
25610 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
25611 | ac_sub_configure_args= | |
25612 | ac_prev= | |
b4e70030 | 25613 | for ac_arg in $ac_configure_args; do |
c906108c SS |
25614 | if test -n "$ac_prev"; then |
25615 | ac_prev= | |
25616 | continue | |
25617 | fi | |
bec39cab | 25618 | case $ac_arg in |
c906108c SS |
25619 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
25620 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
25621 | ac_prev=cache_file ;; | |
25622 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
25623 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
25624 | | --c=*) | |
25625 | ;; | |
25626 | --config-cache | -C) | |
c906108c SS |
25627 | ;; |
25628 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
25629 | ac_prev=srcdir ;; | |
25630 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
25631 | ;; | |
bec39cab AC |
25632 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
25633 | ac_prev=prefix ;; | |
25634 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
25635 | ;; | |
b4e70030 | 25636 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
c906108c SS |
25637 | esac |
25638 | done | |
25639 | ||
bec39cab AC |
25640 | # Always prepend --prefix to ensure using the same prefix |
25641 | # in subdir configurations. | |
25642 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
25643 | ||
b4e70030 | 25644 | ac_popdir=`pwd` |
bec39cab | 25645 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
25646 | |
25647 | # Do not complain, so a configure script can configure whichever | |
25648 | # parts of a large source tree are present. | |
bec39cab | 25649 | test -d $srcdir/$ac_dir || continue |
c906108c | 25650 | |
b4e70030 JB |
25651 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
25652 | echo "$as_me: configuring in $ac_dir" >&6;} | |
25653 | { if $as_mkdir_p; then | |
25654 | mkdir -p "$ac_dir" | |
25655 | else | |
25656 | as_dir="$ac_dir" | |
bec39cab | 25657 | as_dirs= |
b4e70030 JB |
25658 | while test ! -d "$as_dir"; do |
25659 | as_dirs="$as_dir $as_dirs" | |
25660 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
25661 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25662 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25663 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
25664 | X"$as_dir" : 'X\(/\)' \| \ |
25665 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 25666 | echo X"$as_dir" | |
b4e70030 JB |
25667 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
25668 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25669 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25670 | /^X\(\/\).*/{ s//\1/; q; } | |
25671 | s/.*/./; q'` | |
bec39cab | 25672 | done |
b4e70030 JB |
25673 | test ! -n "$as_dirs" || mkdir $as_dirs |
25674 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25675 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 25676 | { (exit 1); exit 1; }; }; } |
b4e70030 | 25677 | |
bec39cab AC |
25678 | ac_builddir=. |
25679 | ||
b4e70030 | 25680 | if test "$ac_dir" != .; then |
bec39cab | 25681 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
25682 | # A "../" for each directory in $ac_dir_suffix. |
25683 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25684 | else | |
25685 | ac_dir_suffix= ac_top_builddir= | |
25686 | fi | |
bec39cab AC |
25687 | |
25688 | case $srcdir in | |
b4e70030 | 25689 | .) # No --srcdir option. We are building in place. |
bec39cab | 25690 | ac_srcdir=. |
b4e70030 JB |
25691 | if test -z "$ac_top_builddir"; then |
25692 | ac_top_srcdir=. | |
25693 | else | |
25694 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25695 | fi ;; | |
25696 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 25697 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
25698 | ac_top_srcdir=$srcdir ;; |
25699 | *) # Relative path. | |
25700 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25701 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25702 | esac | |
25703 | ||
25704 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25705 | # the directories may not exist. | |
25706 | case `pwd` in | |
25707 | .) ac_abs_builddir="$ac_dir";; | |
25708 | *) | |
25709 | case "$ac_dir" in | |
25710 | .) ac_abs_builddir=`pwd`;; | |
25711 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25712 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25713 | esac;; | |
25714 | esac | |
25715 | case $ac_abs_builddir in | |
25716 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25717 | *) | |
25718 | case ${ac_top_builddir}. in | |
25719 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25720 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25721 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25722 | esac;; | |
25723 | esac | |
25724 | case $ac_abs_builddir in | |
25725 | .) ac_abs_srcdir=$ac_srcdir;; | |
25726 | *) | |
25727 | case $ac_srcdir in | |
25728 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25729 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25730 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25731 | esac;; | |
25732 | esac | |
25733 | case $ac_abs_builddir in | |
25734 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25735 | *) | |
25736 | case $ac_top_srcdir in | |
25737 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25738 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25739 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25740 | esac;; | |
bec39cab | 25741 | esac |
c906108c | 25742 | |
c906108c | 25743 | |
b4e70030 | 25744 | cd $ac_dir |
c906108c SS |
25745 | |
25746 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
25747 | if test -f $ac_srcdir/configure.gnu; then |
25748 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
25749 | elif test -f $ac_srcdir/configure; then | |
25750 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
25751 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
25752 | ac_sub_configure=$ac_configure |
25753 | else | |
bec39cab AC |
25754 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
25755 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
25756 | ac_sub_configure= |
25757 | fi | |
25758 | ||
25759 | # The recursion is here. | |
25760 | if test -n "$ac_sub_configure"; then | |
c906108c | 25761 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
25762 | case $cache_file in |
25763 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
b4e70030 JB |
25764 | *) # Relative path. |
25765 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 25766 | esac |
c906108c | 25767 | |
bec39cab AC |
25768 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
25769 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 25770 | # The eval makes quoting arguments work. |
b4e70030 JB |
25771 | eval $ac_sub_configure $ac_sub_configure_args \ |
25772 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
bec39cab AC |
25773 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
25774 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
25775 | { (exit 1); exit 1; }; } | |
c906108c SS |
25776 | fi |
25777 | ||
b4e70030 | 25778 | cd $ac_popdir |
c906108c SS |
25779 | done |
25780 | fi | |
25781 | ||
25782 | ||
25783 | exit 0 |