Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
bec39cab | 3 | # Generated by GNU Autoconf 2.59. |
c906108c | 4 | # |
bec39cab | 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+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
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. | |
33 | $as_unset ENV MAIL MAILPATH | |
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 | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
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 | |
85 | ||
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 | |
97 | fi | |
98 | ||
99 | ||
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 | |
116 | ||
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 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
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 | |
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 | |
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. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
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 | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
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= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
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 | |
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 | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
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 | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
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 | ||
225 | as_executable_p="test -f" | |
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 | ||
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 | |
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 | ||
249 | exec 6>&1 | |
250 | ||
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 | ||
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 | ||
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" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
312 | ac_subdirs_all="$ac_subdirs_all doc testsuite" | |
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" | |
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 RANLIB ac_ct_RANLIB SET_MAKE ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG 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' | |
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' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
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 | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
bec39cab | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
bec39cab | 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 SS |
392 | |
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
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'` | |
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'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
417 | *) ac_optarg=yes ;; |
418 | esac | |
bec39cab | 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 \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
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'` |
bec39cab AC |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
599 | *) ac_optarg=yes ;; |
600 | esac | |
bec39cab | 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'` | |
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; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
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 | |
bec39cab AC |
662 | # Be sure to have absolute paths. |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
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 | |
c906108c | 672 | |
bec39cab AC |
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 | |
c906108c | 676 | do |
bec39cab AC |
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 | |
712 | # Try the directory containing this script, then its parent. | |
bec39cab AC |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
715 | X"$0" : 'X\(//\)[^/]' \| \ | |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
719 | echo X"$0" | | |
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 SS |
725 | srcdir=$ac_confdir |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
bec39cab AC |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
735 | { (exit 1); exit 1; }; } | |
c906108c | 736 | else |
bec39cab AC |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
738 | { (exit 1); exit 1; }; } | |
c906108c SS |
739 | fi |
740 | fi | |
bec39cab AC |
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 | |
743 | { (exit 1); exit 1; }; } | |
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 | ||
805 | _ACEOF | |
806 | ||
807 | cat <<_ACEOF | |
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] | |
825 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
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] | |
832 | --infodir=DIR info documentation [PREFIX/info] | |
833 | --mandir=DIR man documentation [PREFIX/man] | |
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] | |
861 | --enable-maintainer-mode enable make rules and dependencies not useful | |
862 | (and sometimes confusing) to the casual installer | |
863 | --disable-nls do not use Native Language Support | |
864 | --disable-gdbcli disable command-line interface (CLI) | |
865 | --disable-gdbmi disable machine-interface (MI) | |
866 | --enable-tui enable full-screen terminal user interface (TUI) | |
867 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
868 | --enable-profiling enable profiling of GDB | |
869 | --enable-build-warnings Enable build-time compiler warnings if gcc is used | |
870 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
871 | --enable-sim Link gdb with simulator | |
872 | --enable-multi-ice build the multi-ice-gdb-server | |
873 | ||
874 | Optional Packages: | |
875 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
876 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
877 | --with-included-gettext use the GNU gettext library included here | |
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 | |
880 | --without-included-regex don't use included regex; this is the default | |
881 | on systems with version 2 of the GNU C library | |
882 | (use with caution on other system) | |
883 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
884 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
885 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
886 | --with-tclinclude=DIR Directory where tcl private headers are | |
887 | --with-tkinclude=DIR Directory where tk private headers are | |
888 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
889 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
890 | --with-x use the X Window System | |
891 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
892 | ||
893 | Some influential environment variables: | |
894 | CC C compiler command | |
895 | CFLAGS C compiler flags | |
896 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
897 | nonstandard directory <lib dir> | |
898 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
899 | headers in a nonstandard directory <include dir> | |
900 | CPP C preprocessor | |
901 | ||
902 | Use these variables to override the choices made by `configure' or to help | |
903 | it to find libraries and programs with nonstandard names/locations. | |
904 | ||
905 | _ACEOF | |
906 | fi | |
907 | ||
908 | if test "$ac_init_help" = "recursive"; then | |
909 | # If there are subdirs, report their specific --help. | |
910 | ac_popdir=`pwd` | |
911 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
912 | test -d $ac_dir || continue | |
913 | ac_builddir=. | |
914 | ||
915 | if test "$ac_dir" != .; then | |
916 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
917 | # A "../" for each directory in $ac_dir_suffix. | |
918 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
919 | else | |
920 | ac_dir_suffix= ac_top_builddir= | |
921 | fi | |
922 | ||
923 | case $srcdir in | |
924 | .) # No --srcdir option. We are building in place. | |
925 | ac_srcdir=. | |
926 | if test -z "$ac_top_builddir"; then | |
927 | ac_top_srcdir=. | |
928 | else | |
929 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
930 | fi ;; | |
931 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
932 | ac_srcdir=$srcdir$ac_dir_suffix; | |
933 | ac_top_srcdir=$srcdir ;; | |
934 | *) # Relative path. | |
935 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
936 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
937 | esac | |
938 | ||
939 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
940 | # the directories may not exist. | |
941 | case `pwd` in | |
942 | .) ac_abs_builddir="$ac_dir";; | |
943 | *) | |
944 | case "$ac_dir" in | |
945 | .) ac_abs_builddir=`pwd`;; | |
946 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
947 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
948 | esac;; | |
949 | esac | |
950 | case $ac_abs_builddir in | |
951 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
952 | *) | |
953 | case ${ac_top_builddir}. in | |
954 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
955 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
956 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
957 | esac;; | |
958 | esac | |
959 | case $ac_abs_builddir in | |
960 | .) ac_abs_srcdir=$ac_srcdir;; | |
961 | *) | |
962 | case $ac_srcdir in | |
963 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
964 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
965 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
966 | esac;; | |
967 | esac | |
968 | case $ac_abs_builddir in | |
969 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
970 | *) | |
971 | case $ac_top_srcdir in | |
972 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
973 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
974 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
975 | esac;; | |
976 | esac | |
977 | ||
978 | cd $ac_dir | |
979 | # Check for guested configure; otherwise get Cygnus style configure. | |
980 | if test -f $ac_srcdir/configure.gnu; then | |
981 | echo | |
982 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
983 | elif test -f $ac_srcdir/configure; then | |
984 | echo | |
985 | $SHELL $ac_srcdir/configure --help=recursive | |
986 | elif test -f $ac_srcdir/configure.ac || | |
987 | test -f $ac_srcdir/configure.in; then | |
988 | echo | |
989 | $ac_configure --help | |
3ace7edb | 990 | else |
bec39cab AC |
991 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
992 | fi | |
993 | cd $ac_popdir | |
994 | done | |
995 | fi | |
996 | ||
997 | test -n "$ac_init_help" && exit 0 | |
998 | if $ac_init_version; then | |
999 | cat <<\_ACEOF | |
1000 | ||
1001 | Copyright (C) 2003 Free Software Foundation, Inc. | |
1002 | This configure script is free software; the Free Software Foundation | |
1003 | gives unlimited permission to copy, distribute and modify it. | |
1004 | _ACEOF | |
1005 | exit 0 | |
1006 | fi | |
1007 | exec 5>config.log | |
1008 | cat >&5 <<_ACEOF | |
1009 | This file contains any messages produced by compilers while | |
1010 | running configure, to aid debugging if configure makes a mistake. | |
1011 | ||
1012 | It was created by $as_me, which was | |
1013 | generated by GNU Autoconf 2.59. Invocation command line was | |
1014 | ||
1015 | $ $0 $@ | |
1016 | ||
1017 | _ACEOF | |
1018 | { | |
1019 | cat <<_ASUNAME | |
1020 | ## --------- ## | |
1021 | ## Platform. ## | |
1022 | ## --------- ## | |
1023 | ||
1024 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1025 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1026 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1027 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1028 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1029 | ||
1030 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1031 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1032 | ||
1033 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1034 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1035 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1036 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1037 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1038 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1039 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1040 | ||
1041 | _ASUNAME | |
1042 | ||
1043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1044 | for as_dir in $PATH | |
1045 | do | |
1046 | IFS=$as_save_IFS | |
1047 | test -z "$as_dir" && as_dir=. | |
1048 | echo "PATH: $as_dir" | |
1049 | done | |
1050 | ||
1051 | } >&5 | |
1052 | ||
1053 | cat >&5 <<_ACEOF | |
1054 | ||
1055 | ||
1056 | ## ----------- ## | |
1057 | ## Core tests. ## | |
1058 | ## ----------- ## | |
1059 | ||
1060 | _ACEOF | |
1061 | ||
1062 | ||
1063 | # Keep a trace of the command line. | |
1064 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1065 | # Strip out --silent because we don't want to record it for future runs. | |
1066 | # Also quote any args containing shell meta-characters. | |
1067 | # Make two passes to allow for proper duplicate-argument suppression. | |
1068 | ac_configure_args= | |
1069 | ac_configure_args0= | |
1070 | ac_configure_args1= | |
1071 | ac_sep= | |
1072 | ac_must_keep_next=false | |
1073 | for ac_pass in 1 2 | |
1074 | do | |
1075 | for ac_arg | |
1076 | do | |
1077 | case $ac_arg in | |
1078 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1079 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1080 | | -silent | --silent | --silen | --sile | --sil) | |
1081 | continue ;; | |
1082 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1083 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1084 | esac | |
1085 | case $ac_pass in | |
1086 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1087 | 2) | |
1088 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1089 | if test $ac_must_keep_next = true; then | |
1090 | ac_must_keep_next=false # Got value, back to normal. | |
1091 | else | |
1092 | case $ac_arg in | |
1093 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1094 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1095 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1096 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1097 | case "$ac_configure_args0 " in | |
1098 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1099 | esac | |
1100 | ;; | |
1101 | -* ) ac_must_keep_next=true ;; | |
1102 | esac | |
1103 | fi | |
1104 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1105 | # Get rid of the leading space. | |
1106 | ac_sep=" " | |
1107 | ;; | |
1108 | esac | |
1109 | done | |
1110 | done | |
1111 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1112 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1113 | ||
1114 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1115 | # config.log. We remove comments because anyway the quotes in there | |
1116 | # would cause problems or look ugly. | |
1117 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1118 | # such as our DU 5.0 friend, will then `close' the trap. | |
1119 | trap 'exit_status=$? | |
1120 | # Save into config.log some information that might help in debugging. | |
1121 | { | |
1122 | echo | |
1123 | ||
1124 | cat <<\_ASBOX | |
1125 | ## ---------------- ## | |
1126 | ## Cache variables. ## | |
1127 | ## ---------------- ## | |
1128 | _ASBOX | |
1129 | echo | |
1130 | # The following way of writing the cache mishandles newlines in values, | |
1131 | { | |
1132 | (set) 2>&1 | | |
1133 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1134 | *ac_space=\ *) | |
1135 | sed -n \ | |
1136 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1137 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1138 | ;; | |
1139 | *) | |
1140 | sed -n \ | |
1141 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1142 | ;; | |
1143 | esac; | |
1144 | } | |
1145 | echo | |
1146 | ||
1147 | cat <<\_ASBOX | |
1148 | ## ----------------- ## | |
1149 | ## Output variables. ## | |
1150 | ## ----------------- ## | |
1151 | _ASBOX | |
1152 | echo | |
1153 | for ac_var in $ac_subst_vars | |
1154 | do | |
1155 | eval ac_val=$`echo $ac_var` | |
1156 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1157 | done | sort | |
1158 | echo | |
1159 | ||
1160 | if test -n "$ac_subst_files"; then | |
1161 | cat <<\_ASBOX | |
1162 | ## ------------- ## | |
1163 | ## Output files. ## | |
1164 | ## ------------- ## | |
1165 | _ASBOX | |
1166 | echo | |
1167 | for ac_var in $ac_subst_files | |
1168 | do | |
1169 | eval ac_val=$`echo $ac_var` | |
1170 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1171 | done | sort | |
1172 | echo | |
1173 | fi | |
1174 | ||
1175 | if test -s confdefs.h; then | |
1176 | cat <<\_ASBOX | |
1177 | ## ----------- ## | |
1178 | ## confdefs.h. ## | |
1179 | ## ----------- ## | |
1180 | _ASBOX | |
1181 | echo | |
1182 | sed "/^$/d" confdefs.h | sort | |
1183 | echo | |
3ace7edb | 1184 | fi |
bec39cab AC |
1185 | test "$ac_signal" != 0 && |
1186 | echo "$as_me: caught signal $ac_signal" | |
1187 | echo "$as_me: exit $exit_status" | |
1188 | } >&5 | |
1189 | rm -f core *.core && | |
1190 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1191 | exit $exit_status | |
1192 | ' 0 | |
1193 | for ac_signal in 1 2 13 15; do | |
1194 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1195 | done | |
1196 | ac_signal=0 | |
1197 | ||
1198 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1199 | rm -rf conftest* confdefs.h | |
1200 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1201 | echo >confdefs.h | |
1202 | ||
1203 | # Predefined preprocessor variables. | |
1204 | ||
1205 | cat >>confdefs.h <<_ACEOF | |
1206 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1207 | _ACEOF | |
1208 | ||
1209 | ||
1210 | cat >>confdefs.h <<_ACEOF | |
1211 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1212 | _ACEOF | |
1213 | ||
1214 | ||
1215 | cat >>confdefs.h <<_ACEOF | |
1216 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1217 | _ACEOF | |
1218 | ||
1219 | ||
1220 | cat >>confdefs.h <<_ACEOF | |
1221 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1222 | _ACEOF | |
1223 | ||
1224 | ||
1225 | cat >>confdefs.h <<_ACEOF | |
1226 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1227 | _ACEOF | |
1228 | ||
1229 | ||
1230 | # Let the site file select an alternate cache file if it wants to. | |
1231 | # Prefer explicitly selected file to automatically selected ones. | |
1232 | if test -z "$CONFIG_SITE"; then | |
1233 | if test "x$prefix" != xNONE; then | |
1234 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1235 | else | |
1236 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
c906108c SS |
1237 | fi |
1238 | fi | |
1239 | for ac_site_file in $CONFIG_SITE; do | |
1240 | if test -r "$ac_site_file"; then | |
bec39cab AC |
1241 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1242 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1243 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1244 | . "$ac_site_file" |
1245 | fi | |
1246 | done | |
1247 | ||
1248 | if test -r "$cache_file"; then | |
bec39cab AC |
1249 | # Some versions of bash will fail to source /dev/null (special |
1250 | # files actually), so we avoid doing that. | |
1251 | if test -f "$cache_file"; then | |
1252 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1253 | echo "$as_me: loading cache $cache_file" >&6;} | |
1254 | case $cache_file in | |
1255 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1256 | *) . ./$cache_file;; | |
1257 | esac | |
1258 | fi | |
c906108c | 1259 | else |
bec39cab AC |
1260 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1261 | echo "$as_me: creating cache $cache_file" >&6;} | |
1262 | >$cache_file | |
1263 | fi | |
1264 | ||
1265 | # Check that the precious variables saved in the cache have kept the same | |
1266 | # value. | |
1267 | ac_cache_corrupted=false | |
1268 | for ac_var in `(set) 2>&1 | | |
1269 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1270 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1271 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1272 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1273 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1274 | case $ac_old_set,$ac_new_set in | |
1275 | set,) | |
1276 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1277 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1278 | ac_cache_corrupted=: ;; | |
1279 | ,set) | |
1280 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1281 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1282 | ac_cache_corrupted=: ;; | |
1283 | ,);; | |
1284 | *) | |
1285 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1286 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1287 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1288 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1289 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1290 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1291 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1292 | ac_cache_corrupted=: | |
1293 | fi;; | |
1294 | esac | |
1295 | # Pass precious variables to config.status. | |
1296 | if test "$ac_new_set" = set; then | |
1297 | case $ac_new_val in | |
1298 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1299 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1300 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1301 | esac | |
1302 | case " $ac_configure_args " in | |
1303 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1304 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1305 | esac | |
1306 | fi | |
1307 | done | |
1308 | if $ac_cache_corrupted; then | |
1309 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1310 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1311 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1312 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1313 | { (exit 1); exit 1; }; } | |
c906108c SS |
1314 | fi |
1315 | ||
1316 | ac_ext=c | |
c906108c | 1317 | ac_cpp='$CPP $CPPFLAGS' |
bec39cab AC |
1318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1321 | |
1322 | ||
1323 | ||
bec39cab AC |
1324 | |
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ac_config_headers="$ac_config_headers config.h:config.in" | |
1341 | ||
1342 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1343 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
413ccac7 AC |
1344 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1345 | if test "${enable_maintainer_mode+set}" = set; then | |
1346 | enableval="$enable_maintainer_mode" | |
1347 | USE_MAINTAINER_MODE=$enableval | |
1348 | else | |
1349 | USE_MAINTAINER_MODE=no | |
bec39cab AC |
1350 | fi; |
1351 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1352 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1353 | |
413ccac7 AC |
1354 | |
1355 | if test $USE_MAINTAINER_MODE = yes; then | |
1356 | MAINTAINER_MODE_TRUE= | |
1357 | MAINTAINER_MODE_FALSE='#' | |
1358 | else | |
1359 | MAINTAINER_MODE_TRUE='#' | |
1360 | MAINTAINER_MODE_FALSE= | |
1361 | fi | |
1362 | MAINT=$MAINTAINER_MODE_TRUE | |
413ccac7 | 1363 | |
c906108c | 1364 | |
bec39cab AC |
1365 | |
1366 | ac_ext=c | |
1367 | ac_cpp='$CPP $CPPFLAGS' | |
1368 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1369 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1370 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1371 | if test -n "$ac_tool_prefix"; then | |
1372 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1373 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1374 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1376 | if test "${ac_cv_prog_CC+set}" = set; then | |
1377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1378 | else | |
1379 | if test -n "$CC"; then | |
1380 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1381 | else | |
1382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1383 | for as_dir in $PATH | |
1384 | do | |
1385 | IFS=$as_save_IFS | |
1386 | test -z "$as_dir" && as_dir=. | |
1387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1389 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1391 | break 2 | |
1392 | fi | |
1393 | done | |
1394 | done | |
1395 | ||
1396 | fi | |
1397 | fi | |
1398 | CC=$ac_cv_prog_CC | |
1399 | if test -n "$CC"; then | |
1400 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1401 | echo "${ECHO_T}$CC" >&6 | |
1402 | else | |
1403 | echo "$as_me:$LINENO: result: no" >&5 | |
1404 | echo "${ECHO_T}no" >&6 | |
1405 | fi | |
1406 | ||
1407 | fi | |
1408 | if test -z "$ac_cv_prog_CC"; then | |
1409 | ac_ct_CC=$CC | |
1410 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1411 | set dummy gcc; ac_word=$2 |
bec39cab AC |
1412 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1414 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1416 | else | |
1417 | if test -n "$ac_ct_CC"; then | |
1418 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1419 | else | |
1420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1421 | for as_dir in $PATH | |
1422 | do | |
1423 | IFS=$as_save_IFS | |
1424 | test -z "$as_dir" && as_dir=. | |
1425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1426 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1427 | ac_cv_prog_ac_ct_CC="gcc" | |
1428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1429 | break 2 | |
1430 | fi | |
1431 | done | |
1432 | done | |
1433 | ||
1434 | fi | |
1435 | fi | |
1436 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1437 | if test -n "$ac_ct_CC"; then | |
1438 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1439 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1440 | else | |
1441 | echo "$as_me:$LINENO: result: no" >&5 | |
1442 | echo "${ECHO_T}no" >&6 | |
1443 | fi | |
1444 | ||
1445 | CC=$ac_ct_CC | |
1446 | else | |
1447 | CC="$ac_cv_prog_CC" | |
1448 | fi | |
1449 | ||
1450 | if test -z "$CC"; then | |
1451 | if test -n "$ac_tool_prefix"; then | |
1452 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1453 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1454 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1456 | if test "${ac_cv_prog_CC+set}" = set; then | |
1457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1458 | else |
1459 | if test -n "$CC"; then | |
1460 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1461 | else | |
bec39cab AC |
1462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1463 | for as_dir in $PATH | |
1464 | do | |
1465 | IFS=$as_save_IFS | |
1466 | test -z "$as_dir" && as_dir=. | |
1467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1468 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1469 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1470 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1471 | break 2 | |
1472 | fi | |
1473 | done | |
1474 | done | |
1475 | ||
c906108c SS |
1476 | fi |
1477 | fi | |
bec39cab | 1478 | CC=$ac_cv_prog_CC |
c906108c | 1479 | if test -n "$CC"; then |
bec39cab AC |
1480 | echo "$as_me:$LINENO: result: $CC" >&5 |
1481 | echo "${ECHO_T}$CC" >&6 | |
1482 | else | |
1483 | echo "$as_me:$LINENO: result: no" >&5 | |
1484 | echo "${ECHO_T}no" >&6 | |
1485 | fi | |
1486 | ||
1487 | fi | |
1488 | if test -z "$ac_cv_prog_CC"; then | |
1489 | ac_ct_CC=$CC | |
1490 | # Extract the first word of "cc", so it can be a program name with args. | |
1491 | set dummy cc; ac_word=$2 | |
1492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1494 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1496 | else | |
1497 | if test -n "$ac_ct_CC"; then | |
1498 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1499 | else | |
1500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1501 | for as_dir in $PATH | |
1502 | do | |
1503 | IFS=$as_save_IFS | |
1504 | test -z "$as_dir" && as_dir=. | |
1505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1507 | ac_cv_prog_ac_ct_CC="cc" | |
1508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1509 | break 2 | |
1510 | fi | |
1511 | done | |
1512 | done | |
1513 | ||
1514 | fi | |
1515 | fi | |
1516 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1517 | if test -n "$ac_ct_CC"; then | |
1518 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1519 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
c906108c | 1520 | else |
bec39cab AC |
1521 | echo "$as_me:$LINENO: result: no" >&5 |
1522 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1523 | fi |
1524 | ||
bec39cab AC |
1525 | CC=$ac_ct_CC |
1526 | else | |
1527 | CC="$ac_cv_prog_CC" | |
1528 | fi | |
1529 | ||
1530 | fi | |
c906108c SS |
1531 | if test -z "$CC"; then |
1532 | # Extract the first word of "cc", so it can be a program name with args. | |
1533 | set dummy cc; ac_word=$2 | |
bec39cab AC |
1534 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1536 | if test "${ac_cv_prog_CC+set}" = set; then | |
1537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1538 | else |
1539 | if test -n "$CC"; then | |
1540 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1541 | else | |
c906108c | 1542 | ac_prog_rejected=no |
bec39cab AC |
1543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1544 | for as_dir in $PATH | |
1545 | do | |
1546 | IFS=$as_save_IFS | |
1547 | test -z "$as_dir" && as_dir=. | |
1548 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1550 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1551 | ac_prog_rejected=yes | |
1552 | continue | |
1553 | fi | |
1554 | ac_cv_prog_CC="cc" | |
1555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1556 | break 2 | |
1557 | fi | |
1558 | done | |
1559 | done | |
1560 | ||
c906108c SS |
1561 | if test $ac_prog_rejected = yes; then |
1562 | # We found a bogon in the path, so make sure we never use it. | |
1563 | set dummy $ac_cv_prog_CC | |
1564 | shift | |
bec39cab | 1565 | if test $# != 0; then |
c906108c SS |
1566 | # We chose a different compiler from the bogus one. |
1567 | # However, it has the same basename, so the bogon will be chosen | |
1568 | # first if we set CC to just the basename; use the full file name. | |
1569 | shift | |
bec39cab | 1570 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1571 | fi |
1572 | fi | |
1573 | fi | |
1574 | fi | |
bec39cab | 1575 | CC=$ac_cv_prog_CC |
c906108c | 1576 | if test -n "$CC"; then |
bec39cab AC |
1577 | echo "$as_me:$LINENO: result: $CC" >&5 |
1578 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1579 | else |
bec39cab AC |
1580 | echo "$as_me:$LINENO: result: no" >&5 |
1581 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1582 | fi |
1583 | ||
bec39cab AC |
1584 | fi |
1585 | if test -z "$CC"; then | |
1586 | if test -n "$ac_tool_prefix"; then | |
1587 | for ac_prog in cl | |
1588 | do | |
1589 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1590 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1593 | if test "${ac_cv_prog_CC+set}" = set; then | |
1594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1595 | else |
1596 | if test -n "$CC"; then | |
1597 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1598 | else | |
bec39cab AC |
1599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1600 | for as_dir in $PATH | |
1601 | do | |
1602 | IFS=$as_save_IFS | |
1603 | test -z "$as_dir" && as_dir=. | |
1604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1606 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1608 | break 2 | |
1609 | fi | |
1610 | done | |
1611 | done | |
1612 | ||
c906108c SS |
1613 | fi |
1614 | fi | |
bec39cab | 1615 | CC=$ac_cv_prog_CC |
c906108c | 1616 | if test -n "$CC"; then |
bec39cab AC |
1617 | echo "$as_me:$LINENO: result: $CC" >&5 |
1618 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1619 | else |
bec39cab AC |
1620 | echo "$as_me:$LINENO: result: no" >&5 |
1621 | echo "${ECHO_T}no" >&6 | |
c906108c | 1622 | fi |
bec39cab AC |
1623 | |
1624 | test -n "$CC" && break | |
1625 | done | |
1626 | fi | |
1627 | if test -z "$CC"; then | |
1628 | ac_ct_CC=$CC | |
1629 | for ac_prog in cl | |
1630 | do | |
1631 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1632 | set dummy $ac_prog; ac_word=$2 | |
1633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1635 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1637 | else | |
1638 | if test -n "$ac_ct_CC"; then | |
1639 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1640 | else | |
1641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1642 | for as_dir in $PATH | |
1643 | do | |
1644 | IFS=$as_save_IFS | |
1645 | test -z "$as_dir" && as_dir=. | |
1646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1648 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1650 | break 2 | |
c906108c | 1651 | fi |
bec39cab AC |
1652 | done |
1653 | done | |
1654 | ||
1655 | fi | |
1656 | fi | |
1657 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1658 | if test -n "$ac_ct_CC"; then | |
1659 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1660 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1661 | else | |
1662 | echo "$as_me:$LINENO: result: no" >&5 | |
1663 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1664 | fi |
1665 | ||
bec39cab AC |
1666 | test -n "$ac_ct_CC" && break |
1667 | done | |
c906108c | 1668 | |
bec39cab AC |
1669 | CC=$ac_ct_CC |
1670 | fi | |
1671 | ||
1672 | fi | |
1673 | ||
1674 | ||
1675 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1676 | See \`config.log' for more details." >&5 | |
1677 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1678 | See \`config.log' for more details." >&2;} | |
1679 | { (exit 1); exit 1; }; } | |
1680 | ||
1681 | # Provide some information about the compiler. | |
1682 | echo "$as_me:$LINENO:" \ | |
1683 | "checking for C compiler version" >&5 | |
1684 | ac_compiler=`set X $ac_compile; echo $2` | |
1685 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1686 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1687 | ac_status=$? | |
1688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1689 | (exit $ac_status); } | |
1690 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1691 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1692 | ac_status=$? | |
1693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1694 | (exit $ac_status); } | |
1695 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1696 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1697 | ac_status=$? | |
1698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1699 | (exit $ac_status); } | |
1700 | ||
1701 | cat >conftest.$ac_ext <<_ACEOF | |
1702 | /* confdefs.h. */ | |
1703 | _ACEOF | |
1704 | cat confdefs.h >>conftest.$ac_ext | |
1705 | cat >>conftest.$ac_ext <<_ACEOF | |
1706 | /* end confdefs.h. */ | |
1707 | ||
1708 | int | |
1709 | main () | |
1710 | { | |
1711 | ||
1712 | ; | |
1713 | return 0; | |
1714 | } | |
1715 | _ACEOF | |
1716 | ac_clean_files_save=$ac_clean_files | |
1717 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1718 | # Try to create an executable without -o first, disregard a.out. | |
1719 | # It will help us diagnose broken compilers, and finding out an intuition | |
1720 | # of exeext. | |
1721 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1722 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1723 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1724 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1725 | (eval $ac_link_default) 2>&5 | |
1726 | ac_status=$? | |
1727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1728 | (exit $ac_status); }; then | |
1729 | # Find the output, starting from the most likely. This scheme is | |
1730 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1731 | # resort. | |
1732 | ||
1733 | # Be careful to initialize this variable, since it used to be cached. | |
1734 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1735 | ac_cv_exeext= | |
1736 | # b.out is created by i960 compilers. | |
1737 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1738 | do | |
1739 | test -f "$ac_file" || continue | |
1740 | case $ac_file in | |
1741 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1742 | ;; | |
1743 | conftest.$ac_ext ) | |
1744 | # This is the source file. | |
1745 | ;; | |
1746 | [ab].out ) | |
1747 | # We found the default executable, but exeext='' is most | |
1748 | # certainly right. | |
1749 | break;; | |
1750 | *.* ) | |
1751 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1752 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1753 | # but it would be cool to find out if it's true. Does anybody | |
1754 | # maintain Libtool? --akim. | |
1755 | export ac_cv_exeext | |
1756 | break;; | |
1757 | * ) | |
1758 | break;; | |
1759 | esac | |
1760 | done | |
1761 | else | |
1762 | echo "$as_me: failed program was:" >&5 | |
1763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1764 | ||
1765 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1766 | See \`config.log' for more details." >&5 | |
1767 | echo "$as_me: error: C compiler cannot create executables | |
1768 | See \`config.log' for more details." >&2;} | |
1769 | { (exit 77); exit 77; }; } | |
1770 | fi | |
1771 | ||
1772 | ac_exeext=$ac_cv_exeext | |
1773 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1774 | echo "${ECHO_T}$ac_file" >&6 | |
1775 | ||
1776 | # Check the compiler produces executables we can run. If not, either | |
1777 | # the compiler is broken, or we cross compile. | |
1778 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1779 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1780 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1781 | # If not cross compiling, check that we can run a simple program. | |
1782 | if test "$cross_compiling" != yes; then | |
1783 | if { ac_try='./$ac_file' | |
1784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1785 | (eval $ac_try) 2>&5 | |
1786 | ac_status=$? | |
1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1788 | (exit $ac_status); }; }; then | |
1789 | cross_compiling=no | |
c906108c | 1790 | else |
bec39cab AC |
1791 | if test "$cross_compiling" = maybe; then |
1792 | cross_compiling=yes | |
1793 | else | |
1794 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1795 | If you meant to cross compile, use \`--host'. | |
1796 | See \`config.log' for more details." >&5 | |
1797 | echo "$as_me: error: cannot run C compiled programs. | |
1798 | If you meant to cross compile, use \`--host'. | |
1799 | See \`config.log' for more details." >&2;} | |
1800 | { (exit 1); exit 1; }; } | |
1801 | fi | |
c906108c | 1802 | fi |
bec39cab AC |
1803 | fi |
1804 | echo "$as_me:$LINENO: result: yes" >&5 | |
1805 | echo "${ECHO_T}yes" >&6 | |
1806 | ||
1807 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1808 | ac_clean_files=$ac_clean_files_save | |
1809 | # Check the compiler produces executables we can run. If not, either | |
1810 | # the compiler is broken, or we cross compile. | |
1811 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1812 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1813 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1814 | echo "${ECHO_T}$cross_compiling" >&6 | |
1815 | ||
1816 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1817 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1819 | (eval $ac_link) 2>&5 | |
1820 | ac_status=$? | |
1821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1822 | (exit $ac_status); }; then | |
1823 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1824 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1825 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1826 | # `rm'. | |
1827 | for ac_file in conftest.exe conftest conftest.*; do | |
1828 | test -f "$ac_file" || continue | |
1829 | case $ac_file in | |
1830 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1831 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1832 | export ac_cv_exeext | |
1833 | break;; | |
1834 | * ) break;; | |
1835 | esac | |
1836 | done | |
c906108c | 1837 | else |
bec39cab AC |
1838 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1839 | See \`config.log' for more details." >&5 | |
1840 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1841 | See \`config.log' for more details." >&2;} | |
1842 | { (exit 1); exit 1; }; } | |
c906108c | 1843 | fi |
c906108c | 1844 | |
bec39cab AC |
1845 | rm -f conftest$ac_cv_exeext |
1846 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1847 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1848 | |
bec39cab AC |
1849 | rm -f conftest.$ac_ext |
1850 | EXEEXT=$ac_cv_exeext | |
1851 | ac_exeext=$EXEEXT | |
1852 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1853 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1854 | if test "${ac_cv_objext+set}" = set; then | |
1855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1856 | else | |
1857 | cat >conftest.$ac_ext <<_ACEOF | |
1858 | /* confdefs.h. */ | |
1859 | _ACEOF | |
1860 | cat confdefs.h >>conftest.$ac_ext | |
1861 | cat >>conftest.$ac_ext <<_ACEOF | |
1862 | /* end confdefs.h. */ | |
c906108c | 1863 | |
bec39cab AC |
1864 | int |
1865 | main () | |
1866 | { | |
c906108c | 1867 | |
bec39cab AC |
1868 | ; |
1869 | return 0; | |
1870 | } | |
1871 | _ACEOF | |
1872 | rm -f conftest.o conftest.obj | |
1873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1874 | (eval $ac_compile) 2>&5 | |
1875 | ac_status=$? | |
1876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1877 | (exit $ac_status); }; then | |
1878 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1879 | case $ac_file in | |
1880 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1881 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1882 | break;; | |
1883 | esac | |
1884 | done | |
c906108c | 1885 | else |
bec39cab AC |
1886 | echo "$as_me: failed program was:" >&5 |
1887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1888 | ||
1889 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1890 | See \`config.log' for more details." >&5 | |
1891 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1892 | See \`config.log' for more details." >&2;} | |
1893 | { (exit 1); exit 1; }; } | |
c906108c SS |
1894 | fi |
1895 | ||
bec39cab AC |
1896 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1897 | fi | |
1898 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1899 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1900 | OBJEXT=$ac_cv_objext | |
1901 | ac_objext=$OBJEXT | |
1902 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1903 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1904 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1906 | else |
bec39cab AC |
1907 | cat >conftest.$ac_ext <<_ACEOF |
1908 | /* confdefs.h. */ | |
1909 | _ACEOF | |
1910 | cat confdefs.h >>conftest.$ac_ext | |
1911 | cat >>conftest.$ac_ext <<_ACEOF | |
1912 | /* end confdefs.h. */ | |
1913 | ||
1914 | int | |
1915 | main () | |
1916 | { | |
1917 | #ifndef __GNUC__ | |
1918 | choke me | |
1919 | #endif | |
1920 | ||
1921 | ; | |
1922 | return 0; | |
1923 | } | |
1924 | _ACEOF | |
1925 | rm -f conftest.$ac_objext | |
1926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1927 | (eval $ac_compile) 2>conftest.er1 | |
1928 | ac_status=$? | |
1929 | grep -v '^ *+' conftest.er1 >conftest.err | |
1930 | rm -f conftest.er1 | |
1931 | cat conftest.err >&5 | |
1932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1933 | (exit $ac_status); } && | |
1934 | { ac_try='test -z "$ac_c_werror_flag" | |
1935 | || test ! -s conftest.err' | |
1936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1937 | (eval $ac_try) 2>&5 | |
1938 | ac_status=$? | |
1939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1940 | (exit $ac_status); }; } && | |
1941 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
1947 | ac_compiler_gnu=yes | |
1948 | else | |
1949 | echo "$as_me: failed program was:" >&5 | |
1950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1951 | ||
1952 | ac_compiler_gnu=no | |
1953 | fi | |
1954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1955 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1956 | ||
1957 | fi | |
1958 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
1959 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1960 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1961 | ac_test_CFLAGS=${CFLAGS+set} | |
1962 | ac_save_CFLAGS=$CFLAGS | |
1963 | CFLAGS="-g" | |
1964 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1965 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1966 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1968 | else | |
1969 | cat >conftest.$ac_ext <<_ACEOF | |
1970 | /* confdefs.h. */ | |
1971 | _ACEOF | |
1972 | cat confdefs.h >>conftest.$ac_ext | |
1973 | cat >>conftest.$ac_ext <<_ACEOF | |
1974 | /* end confdefs.h. */ | |
1975 | ||
1976 | int | |
1977 | main () | |
1978 | { | |
1979 | ||
1980 | ; | |
1981 | return 0; | |
1982 | } | |
1983 | _ACEOF | |
1984 | rm -f conftest.$ac_objext | |
1985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1986 | (eval $ac_compile) 2>conftest.er1 | |
1987 | ac_status=$? | |
1988 | grep -v '^ *+' conftest.er1 >conftest.err | |
1989 | rm -f conftest.er1 | |
1990 | cat conftest.err >&5 | |
1991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1992 | (exit $ac_status); } && | |
1993 | { ac_try='test -z "$ac_c_werror_flag" | |
1994 | || test ! -s conftest.err' | |
1995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1996 | (eval $ac_try) 2>&5 | |
1997 | ac_status=$? | |
1998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1999 | (exit $ac_status); }; } && | |
2000 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
c906108c SS |
2006 | ac_cv_prog_cc_g=yes |
2007 | else | |
bec39cab AC |
2008 | echo "$as_me: failed program was:" >&5 |
2009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2010 | |
bec39cab | 2011 | ac_cv_prog_cc_g=no |
c906108c | 2012 | fi |
bec39cab AC |
2013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2014 | fi | |
2015 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2016 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2017 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2018 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2019 | elif test $ac_cv_prog_cc_g = yes; then |
2020 | if test "$GCC" = yes; then | |
2021 | CFLAGS="-g -O2" | |
2022 | else | |
2023 | CFLAGS="-g" | |
2024 | fi | |
2025 | else | |
2026 | if test "$GCC" = yes; then | |
2027 | CFLAGS="-O2" | |
2028 | else | |
2029 | CFLAGS= | |
2030 | fi | |
2031 | fi | |
bec39cab AC |
2032 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2033 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2034 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2036 | else | |
2037 | ac_cv_prog_cc_stdc=no | |
2038 | ac_save_CC=$CC | |
2039 | cat >conftest.$ac_ext <<_ACEOF | |
2040 | /* confdefs.h. */ | |
2041 | _ACEOF | |
2042 | cat confdefs.h >>conftest.$ac_ext | |
2043 | cat >>conftest.$ac_ext <<_ACEOF | |
2044 | /* end confdefs.h. */ | |
c906108c SS |
2045 | #include <stdarg.h> |
2046 | #include <stdio.h> | |
2047 | #include <sys/types.h> | |
2048 | #include <sys/stat.h> | |
2049 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2050 | struct buf { int x; }; | |
2051 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2052 | static char *e (p, i) | |
2053 | char **p; | |
2054 | int i; | |
2055 | { | |
2056 | return p[i]; | |
2057 | } | |
2058 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2059 | { | |
2060 | char *s; | |
2061 | va_list v; | |
2062 | va_start (v,p); | |
2063 | s = g (p, va_arg (v,int)); | |
2064 | va_end (v); | |
2065 | return s; | |
2066 | } | |
bec39cab AC |
2067 | |
2068 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2069 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2070 | These don't provoke an error unfortunately, instead are silently treated | |
2071 | as 'x'. The following induces an error, until -std1 is added to get | |
2072 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2073 | array size at least. It's necessary to write '\x00'==0 to get something | |
2074 | that's true only with -std1. */ | |
2075 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2076 | ||
c906108c SS |
2077 | int test (int i, double x); |
2078 | struct s1 {int (*f) (int a);}; | |
2079 | struct s2 {int (*f) (double a);}; | |
2080 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2081 | int argc; | |
2082 | char **argv; | |
bec39cab AC |
2083 | int |
2084 | main () | |
2085 | { | |
c906108c | 2086 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2087 | ; |
2088 | return 0; | |
2089 | } | |
2090 | _ACEOF | |
2091 | # Don't try gcc -ansi; that turns off useful extensions and | |
2092 | # breaks some systems' header files. | |
2093 | # AIX -qlanglvl=ansi | |
2094 | # Ultrix and OSF/1 -std1 | |
2095 | # HP-UX 10.20 and later -Ae | |
2096 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2097 | # SVR4 -Xc -D__EXTENSIONS__ | |
2098 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2099 | do | |
2100 | CC="$ac_save_CC $ac_arg" | |
2101 | rm -f conftest.$ac_objext | |
2102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2103 | (eval $ac_compile) 2>conftest.er1 | |
2104 | ac_status=$? | |
2105 | grep -v '^ *+' conftest.er1 >conftest.err | |
2106 | rm -f conftest.er1 | |
2107 | cat conftest.err >&5 | |
2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2109 | (exit $ac_status); } && | |
2110 | { ac_try='test -z "$ac_c_werror_flag" | |
2111 | || test ! -s conftest.err' | |
2112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2113 | (eval $ac_try) 2>&5 | |
2114 | ac_status=$? | |
2115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2116 | (exit $ac_status); }; } && | |
2117 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2123 | ac_cv_prog_cc_stdc=$ac_arg | |
2124 | break | |
c906108c | 2125 | else |
bec39cab AC |
2126 | echo "$as_me: failed program was:" >&5 |
2127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2128 | ||
c906108c | 2129 | fi |
bec39cab | 2130 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2131 | done |
bec39cab AC |
2132 | rm -f conftest.$ac_ext conftest.$ac_objext |
2133 | CC=$ac_save_CC | |
c906108c SS |
2134 | |
2135 | fi | |
2136 | ||
bec39cab AC |
2137 | case "x$ac_cv_prog_cc_stdc" in |
2138 | x|xno) | |
2139 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2140 | echo "${ECHO_T}none needed" >&6 ;; | |
2141 | *) | |
2142 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2143 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2144 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2145 | esac |
2146 | ||
bec39cab AC |
2147 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2148 | # in C++ we need to declare it. In case someone uses the same compiler | |
2149 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2150 | # the declaration of exit, since it's the most demanding environment. | |
2151 | cat >conftest.$ac_ext <<_ACEOF | |
2152 | #ifndef __cplusplus | |
2153 | choke me | |
2154 | #endif | |
2155 | _ACEOF | |
2156 | rm -f conftest.$ac_objext | |
2157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2158 | (eval $ac_compile) 2>conftest.er1 | |
2159 | ac_status=$? | |
2160 | grep -v '^ *+' conftest.er1 >conftest.err | |
2161 | rm -f conftest.er1 | |
2162 | cat conftest.err >&5 | |
2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2164 | (exit $ac_status); } && | |
2165 | { ac_try='test -z "$ac_c_werror_flag" | |
2166 | || test ! -s conftest.err' | |
2167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2168 | (eval $ac_try) 2>&5 | |
2169 | ac_status=$? | |
2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2171 | (exit $ac_status); }; } && | |
2172 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2178 | for ac_declaration in \ | |
2179 | '' \ | |
2180 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2181 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2182 | 'extern "C" void exit (int) throw ();' \ | |
2183 | 'extern "C" void exit (int);' \ | |
2184 | 'void exit (int);' | |
2185 | do | |
2186 | cat >conftest.$ac_ext <<_ACEOF | |
2187 | /* confdefs.h. */ | |
2188 | _ACEOF | |
2189 | cat confdefs.h >>conftest.$ac_ext | |
2190 | cat >>conftest.$ac_ext <<_ACEOF | |
2191 | /* end confdefs.h. */ | |
2192 | $ac_declaration | |
2193 | #include <stdlib.h> | |
2194 | int | |
2195 | main () | |
2196 | { | |
2197 | exit (42); | |
2198 | ; | |
2199 | return 0; | |
2200 | } | |
2201 | _ACEOF | |
2202 | rm -f conftest.$ac_objext | |
2203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2204 | (eval $ac_compile) 2>conftest.er1 | |
2205 | ac_status=$? | |
2206 | grep -v '^ *+' conftest.er1 >conftest.err | |
2207 | rm -f conftest.er1 | |
2208 | cat conftest.err >&5 | |
2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2210 | (exit $ac_status); } && | |
2211 | { ac_try='test -z "$ac_c_werror_flag" | |
2212 | || test ! -s conftest.err' | |
2213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2214 | (eval $ac_try) 2>&5 | |
2215 | ac_status=$? | |
2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2217 | (exit $ac_status); }; } && | |
2218 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2224 | : | |
2225 | else | |
2226 | echo "$as_me: failed program was:" >&5 | |
2227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2228 | |
bec39cab | 2229 | continue |
c906108c | 2230 | fi |
bec39cab AC |
2231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2232 | cat >conftest.$ac_ext <<_ACEOF | |
2233 | /* confdefs.h. */ | |
2234 | _ACEOF | |
2235 | cat confdefs.h >>conftest.$ac_ext | |
2236 | cat >>conftest.$ac_ext <<_ACEOF | |
2237 | /* end confdefs.h. */ | |
2238 | $ac_declaration | |
2239 | int | |
2240 | main () | |
2241 | { | |
2242 | exit (42); | |
2243 | ; | |
2244 | return 0; | |
2245 | } | |
2246 | _ACEOF | |
2247 | rm -f conftest.$ac_objext | |
2248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2249 | (eval $ac_compile) 2>conftest.er1 | |
2250 | ac_status=$? | |
2251 | grep -v '^ *+' conftest.er1 >conftest.err | |
2252 | rm -f conftest.er1 | |
2253 | cat conftest.err >&5 | |
2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2255 | (exit $ac_status); } && | |
2256 | { ac_try='test -z "$ac_c_werror_flag" | |
2257 | || test ! -s conftest.err' | |
2258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2259 | (eval $ac_try) 2>&5 | |
2260 | ac_status=$? | |
2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2262 | (exit $ac_status); }; } && | |
2263 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2269 | break | |
2270 | else | |
2271 | echo "$as_me: failed program was:" >&5 | |
2272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2273 | |
bec39cab AC |
2274 | fi |
2275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2276 | done | |
2277 | rm -f conftest* | |
2278 | if test -n "$ac_declaration"; then | |
2279 | echo '#ifdef __cplusplus' >>confdefs.h | |
2280 | echo $ac_declaration >>confdefs.h | |
2281 | echo '#endif' >>confdefs.h | |
c906108c SS |
2282 | fi |
2283 | ||
bec39cab AC |
2284 | else |
2285 | echo "$as_me: failed program was:" >&5 | |
2286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2287 | |
bec39cab AC |
2288 | fi |
2289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2290 | ac_ext=c | |
2291 | ac_cpp='$CPP $CPPFLAGS' | |
2292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2295 | |
bec39cab AC |
2296 | cat >>confdefs.h <<\_ACEOF |
2297 | #define _GNU_SOURCE 1 | |
2298 | _ACEOF | |
c906108c SS |
2299 | |
2300 | ||
8bb2c122 | 2301 | |
bec39cab AC |
2302 | ac_ext=c |
2303 | ac_cpp='$CPP $CPPFLAGS' | |
2304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2307 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2308 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2309 | # On Suns, sometimes $CPP names a directory. | |
2310 | if test -n "$CPP" && test -d "$CPP"; then | |
2311 | CPP= | |
8bb2c122 | 2312 | fi |
bec39cab AC |
2313 | if test -z "$CPP"; then |
2314 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2316 | else | |
2317 | # Double quotes because CPP needs to be expanded | |
2318 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2319 | do | |
2320 | ac_preproc_ok=false | |
2321 | for ac_c_preproc_warn_flag in '' yes | |
2322 | do | |
2323 | # Use a header file that comes with gcc, so configuring glibc | |
2324 | # with a fresh cross-compiler works. | |
2325 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2326 | # <limits.h> exists even on freestanding compilers. | |
2327 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2328 | # not just through cpp. "Syntax error" is here to catch this case. | |
2329 | cat >conftest.$ac_ext <<_ACEOF | |
2330 | /* confdefs.h. */ | |
2331 | _ACEOF | |
2332 | cat confdefs.h >>conftest.$ac_ext | |
2333 | cat >>conftest.$ac_ext <<_ACEOF | |
2334 | /* end confdefs.h. */ | |
2335 | #ifdef __STDC__ | |
2336 | # include <limits.h> | |
2337 | #else | |
2338 | # include <assert.h> | |
2339 | #endif | |
2340 | Syntax error | |
2341 | _ACEOF | |
2342 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2343 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2344 | ac_status=$? | |
2345 | grep -v '^ *+' conftest.er1 >conftest.err | |
2346 | rm -f conftest.er1 | |
2347 | cat conftest.err >&5 | |
2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2349 | (exit $ac_status); } >/dev/null; then | |
2350 | if test -s conftest.err; then | |
2351 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2352 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2353 | else | |
2354 | ac_cpp_err= | |
2355 | fi | |
8bb2c122 | 2356 | else |
bec39cab | 2357 | ac_cpp_err=yes |
8bb2c122 | 2358 | fi |
bec39cab AC |
2359 | if test -z "$ac_cpp_err"; then |
2360 | : | |
8bb2c122 | 2361 | else |
bec39cab AC |
2362 | echo "$as_me: failed program was:" >&5 |
2363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2364 | ||
2365 | # Broken: fails on valid input. | |
2366 | continue | |
2367 | fi | |
2368 | rm -f conftest.err conftest.$ac_ext | |
2369 | ||
2370 | # OK, works on sane cases. Now check whether non-existent headers | |
2371 | # can be detected and how. | |
2372 | cat >conftest.$ac_ext <<_ACEOF | |
2373 | /* confdefs.h. */ | |
2374 | _ACEOF | |
2375 | cat confdefs.h >>conftest.$ac_ext | |
2376 | cat >>conftest.$ac_ext <<_ACEOF | |
2377 | /* end confdefs.h. */ | |
2378 | #include <ac_nonexistent.h> | |
2379 | _ACEOF | |
2380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2382 | ac_status=$? | |
2383 | grep -v '^ *+' conftest.er1 >conftest.err | |
2384 | rm -f conftest.er1 | |
2385 | cat conftest.err >&5 | |
2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2387 | (exit $ac_status); } >/dev/null; then | |
2388 | if test -s conftest.err; then | |
2389 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2390 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2391 | else | |
2392 | ac_cpp_err= | |
2393 | fi | |
8bb2c122 | 2394 | else |
bec39cab | 2395 | ac_cpp_err=yes |
8bb2c122 | 2396 | fi |
bec39cab AC |
2397 | if test -z "$ac_cpp_err"; then |
2398 | # Broken: success on invalid input. | |
2399 | continue | |
8bb2c122 | 2400 | else |
bec39cab AC |
2401 | echo "$as_me: failed program was:" >&5 |
2402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2403 | |
bec39cab AC |
2404 | # Passes both tests. |
2405 | ac_preproc_ok=: | |
2406 | break | |
8bb2c122 | 2407 | fi |
bec39cab | 2408 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2409 | |
bec39cab AC |
2410 | done |
2411 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2412 | rm -f conftest.err conftest.$ac_ext | |
2413 | if $ac_preproc_ok; then | |
2414 | break | |
2415 | fi | |
8bb2c122 | 2416 | |
bec39cab AC |
2417 | done |
2418 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2419 | |
c906108c | 2420 | fi |
bec39cab AC |
2421 | CPP=$ac_cv_prog_CPP |
2422 | else | |
2423 | ac_cv_prog_CPP=$CPP | |
c906108c | 2424 | fi |
bec39cab AC |
2425 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2426 | echo "${ECHO_T}$CPP" >&6 | |
2427 | ac_preproc_ok=false | |
2428 | for ac_c_preproc_warn_flag in '' yes | |
2429 | do | |
2430 | # Use a header file that comes with gcc, so configuring glibc | |
2431 | # with a fresh cross-compiler works. | |
2432 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2433 | # <limits.h> exists even on freestanding compilers. | |
2434 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2435 | # not just through cpp. "Syntax error" is here to catch this case. | |
2436 | cat >conftest.$ac_ext <<_ACEOF | |
2437 | /* confdefs.h. */ | |
2438 | _ACEOF | |
2439 | cat confdefs.h >>conftest.$ac_ext | |
2440 | cat >>conftest.$ac_ext <<_ACEOF | |
2441 | /* end confdefs.h. */ | |
2442 | #ifdef __STDC__ | |
2443 | # include <limits.h> | |
2444 | #else | |
2445 | # include <assert.h> | |
2446 | #endif | |
2447 | Syntax error | |
2448 | _ACEOF | |
2449 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2450 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2451 | ac_status=$? | |
2452 | grep -v '^ *+' conftest.er1 >conftest.err | |
2453 | rm -f conftest.er1 | |
2454 | cat conftest.err >&5 | |
2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2456 | (exit $ac_status); } >/dev/null; then | |
2457 | if test -s conftest.err; then | |
2458 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2459 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2460 | else | |
2461 | ac_cpp_err= | |
2462 | fi | |
c906108c | 2463 | else |
bec39cab | 2464 | ac_cpp_err=yes |
c906108c | 2465 | fi |
bec39cab AC |
2466 | if test -z "$ac_cpp_err"; then |
2467 | : | |
c906108c | 2468 | else |
bec39cab AC |
2469 | echo "$as_me: failed program was:" >&5 |
2470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2471 | ||
2472 | # Broken: fails on valid input. | |
2473 | continue | |
2474 | fi | |
2475 | rm -f conftest.err conftest.$ac_ext | |
2476 | ||
2477 | # OK, works on sane cases. Now check whether non-existent headers | |
2478 | # can be detected and how. | |
2479 | cat >conftest.$ac_ext <<_ACEOF | |
2480 | /* confdefs.h. */ | |
2481 | _ACEOF | |
2482 | cat confdefs.h >>conftest.$ac_ext | |
2483 | cat >>conftest.$ac_ext <<_ACEOF | |
2484 | /* end confdefs.h. */ | |
2485 | #include <ac_nonexistent.h> | |
2486 | _ACEOF | |
2487 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2488 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2489 | ac_status=$? | |
2490 | grep -v '^ *+' conftest.er1 >conftest.err | |
2491 | rm -f conftest.er1 | |
2492 | cat conftest.err >&5 | |
2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2494 | (exit $ac_status); } >/dev/null; then | |
2495 | if test -s conftest.err; then | |
2496 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2497 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2498 | else | |
2499 | ac_cpp_err= | |
2500 | fi | |
c906108c | 2501 | else |
bec39cab | 2502 | ac_cpp_err=yes |
c906108c | 2503 | fi |
bec39cab AC |
2504 | if test -z "$ac_cpp_err"; then |
2505 | # Broken: success on invalid input. | |
2506 | continue | |
c906108c | 2507 | else |
bec39cab AC |
2508 | echo "$as_me: failed program was:" >&5 |
2509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2510 | |
bec39cab AC |
2511 | # Passes both tests. |
2512 | ac_preproc_ok=: | |
2513 | break | |
c906108c | 2514 | fi |
bec39cab | 2515 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2516 | |
bec39cab AC |
2517 | done |
2518 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2519 | rm -f conftest.err conftest.$ac_ext | |
2520 | if $ac_preproc_ok; then | |
c906108c SS |
2521 | : |
2522 | else | |
bec39cab AC |
2523 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2524 | See \`config.log' for more details." >&5 | |
2525 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2526 | See \`config.log' for more details." >&2;} | |
2527 | { (exit 1); exit 1; }; } | |
c906108c | 2528 | fi |
c906108c | 2529 | |
bec39cab AC |
2530 | ac_ext=c |
2531 | ac_cpp='$CPP $CPPFLAGS' | |
2532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2535 | ||
2536 | ||
2537 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2538 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2539 | if test "${ac_cv_prog_egrep+set}" = set; then | |
2540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2541 | else | |
2542 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2543 | then ac_cv_prog_egrep='grep -E' | |
2544 | else ac_cv_prog_egrep='egrep' | |
2545 | fi | |
c906108c | 2546 | fi |
bec39cab AC |
2547 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2548 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2549 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2550 | |
bec39cab AC |
2551 | |
2552 | ||
2553 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
2554 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
2555 | cat >conftest.$ac_ext <<_ACEOF | |
2556 | /* confdefs.h. */ | |
2557 | _ACEOF | |
2558 | cat confdefs.h >>conftest.$ac_ext | |
2559 | cat >>conftest.$ac_ext <<_ACEOF | |
2560 | /* end confdefs.h. */ | |
2561 | #ifdef _AIX | |
2562 | yes | |
2563 | #endif | |
2564 | ||
2565 | _ACEOF | |
c906108c | 2566 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab AC |
2567 | $EGREP "yes" >/dev/null 2>&1; then |
2568 | echo "$as_me:$LINENO: result: yes" >&5 | |
2569 | echo "${ECHO_T}yes" >&6 | |
2570 | cat >>confdefs.h <<\_ACEOF | |
2571 | #define _ALL_SOURCE 1 | |
2572 | _ACEOF | |
2573 | ||
c906108c | 2574 | else |
bec39cab AC |
2575 | echo "$as_me:$LINENO: result: no" >&5 |
2576 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2577 | fi |
2578 | rm -f conftest* | |
2579 | ||
c906108c | 2580 | |
bec39cab AC |
2581 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2582 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2583 | if test "${ac_cv_search_strerror+set}" = set; then | |
2584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2585 | else |
bec39cab AC |
2586 | ac_func_search_save_LIBS=$LIBS |
2587 | ac_cv_search_strerror=no | |
2588 | cat >conftest.$ac_ext <<_ACEOF | |
2589 | /* confdefs.h. */ | |
2590 | _ACEOF | |
2591 | cat confdefs.h >>conftest.$ac_ext | |
2592 | cat >>conftest.$ac_ext <<_ACEOF | |
2593 | /* end confdefs.h. */ | |
c906108c | 2594 | |
bec39cab AC |
2595 | /* Override any gcc2 internal prototype to avoid an error. */ |
2596 | #ifdef __cplusplus | |
2597 | extern "C" | |
2598 | #endif | |
2599 | /* We use char because int might match the return type of a gcc2 | |
2600 | builtin and then its argument prototype would still apply. */ | |
2601 | char strerror (); | |
2602 | int | |
2603 | main () | |
2604 | { | |
2605 | strerror (); | |
2606 | ; | |
2607 | return 0; | |
2608 | } | |
2609 | _ACEOF | |
2610 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2612 | (eval $ac_link) 2>conftest.er1 | |
2613 | ac_status=$? | |
2614 | grep -v '^ *+' conftest.er1 >conftest.err | |
2615 | rm -f conftest.er1 | |
2616 | cat conftest.err >&5 | |
2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2618 | (exit $ac_status); } && | |
2619 | { ac_try='test -z "$ac_c_werror_flag" | |
2620 | || test ! -s conftest.err' | |
2621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2622 | (eval $ac_try) 2>&5 | |
2623 | ac_status=$? | |
2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2625 | (exit $ac_status); }; } && | |
2626 | { ac_try='test -s conftest$ac_exeext' | |
2627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2628 | (eval $ac_try) 2>&5 | |
2629 | ac_status=$? | |
2630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2631 | (exit $ac_status); }; }; then | |
2632 | ac_cv_search_strerror="none required" | |
2633 | else | |
2634 | echo "$as_me: failed program was:" >&5 | |
2635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2636 | ||
2637 | fi | |
2638 | rm -f conftest.err conftest.$ac_objext \ | |
2639 | conftest$ac_exeext conftest.$ac_ext | |
2640 | if test "$ac_cv_search_strerror" = no; then | |
2641 | for ac_lib in cposix; do | |
2642 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2643 | cat >conftest.$ac_ext <<_ACEOF | |
2644 | /* confdefs.h. */ | |
2645 | _ACEOF | |
2646 | cat confdefs.h >>conftest.$ac_ext | |
2647 | cat >>conftest.$ac_ext <<_ACEOF | |
2648 | /* end confdefs.h. */ | |
2649 | ||
2650 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2651 | #ifdef __cplusplus | |
2652 | extern "C" | |
2653 | #endif | |
2654 | /* We use char because int might match the return type of a gcc2 | |
2655 | builtin and then its argument prototype would still apply. */ | |
2656 | char strerror (); | |
2657 | int | |
2658 | main () | |
2659 | { | |
2660 | strerror (); | |
2661 | ; | |
2662 | return 0; | |
2663 | } | |
2664 | _ACEOF | |
2665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2667 | (eval $ac_link) 2>conftest.er1 | |
2668 | ac_status=$? | |
2669 | grep -v '^ *+' conftest.er1 >conftest.err | |
2670 | rm -f conftest.er1 | |
2671 | cat conftest.err >&5 | |
2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2673 | (exit $ac_status); } && | |
2674 | { ac_try='test -z "$ac_c_werror_flag" | |
2675 | || test ! -s conftest.err' | |
2676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2677 | (eval $ac_try) 2>&5 | |
2678 | ac_status=$? | |
2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2680 | (exit $ac_status); }; } && | |
2681 | { ac_try='test -s conftest$ac_exeext' | |
2682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2683 | (eval $ac_try) 2>&5 | |
2684 | ac_status=$? | |
2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2686 | (exit $ac_status); }; }; then | |
2687 | ac_cv_search_strerror="-l$ac_lib" | |
2688 | break | |
c906108c | 2689 | else |
bec39cab AC |
2690 | echo "$as_me: failed program was:" >&5 |
2691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2692 | |
2693 | fi | |
bec39cab AC |
2694 | rm -f conftest.err conftest.$ac_objext \ |
2695 | conftest$ac_exeext conftest.$ac_ext | |
2696 | done | |
c906108c | 2697 | fi |
bec39cab | 2698 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2699 | fi |
bec39cab AC |
2700 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2701 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2702 | if test "$ac_cv_search_strerror" != no; then | |
2703 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2704 | ||
c906108c SS |
2705 | fi |
2706 | ||
c906108c | 2707 | |
c906108c | 2708 | |
bec39cab AC |
2709 | |
2710 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 | |
2711 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
2712 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
2713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2714 | else |
bec39cab AC |
2715 | am_cv_prog_cc_stdc=no |
2716 | ac_save_CC="$CC" | |
2717 | # Don't try gcc -ansi; that turns off useful extensions and | |
2718 | # breaks some systems' header files. | |
2719 | # AIX -qlanglvl=ansi | |
2720 | # Ultrix and OSF/1 -std1 | |
2721 | # HP-UX 10.20 and later -Ae | |
2722 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2723 | # SVR4 -Xc -D__EXTENSIONS__ | |
2724 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2725 | do | |
2726 | CC="$ac_save_CC $ac_arg" | |
2727 | cat >conftest.$ac_ext <<_ACEOF | |
2728 | /* confdefs.h. */ | |
2729 | _ACEOF | |
2730 | cat confdefs.h >>conftest.$ac_ext | |
2731 | cat >>conftest.$ac_ext <<_ACEOF | |
2732 | /* end confdefs.h. */ | |
2733 | #include <stdarg.h> | |
2734 | #include <stdio.h> | |
2735 | #include <sys/types.h> | |
2736 | #include <sys/stat.h> | |
2737 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2738 | struct buf { int x; }; | |
2739 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2740 | static char *e (p, i) | |
2741 | char **p; | |
2742 | int i; | |
2743 | { | |
2744 | return p[i]; | |
2745 | } | |
2746 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2747 | { | |
2748 | char *s; | |
2749 | va_list v; | |
2750 | va_start (v,p); | |
2751 | s = g (p, va_arg (v,int)); | |
2752 | va_end (v); | |
2753 | return s; | |
2754 | } | |
2755 | int test (int i, double x); | |
2756 | struct s1 {int (*f) (int a);}; | |
2757 | struct s2 {int (*f) (double a);}; | |
2758 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2759 | int argc; | |
2760 | char **argv; | |
c906108c | 2761 | |
bec39cab AC |
2762 | int |
2763 | main () | |
2764 | { | |
c906108c | 2765 | |
bec39cab | 2766 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 2767 | |
bec39cab AC |
2768 | ; |
2769 | return 0; | |
2770 | } | |
2771 | _ACEOF | |
2772 | rm -f conftest.$ac_objext | |
2773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2774 | (eval $ac_compile) 2>conftest.er1 | |
2775 | ac_status=$? | |
2776 | grep -v '^ *+' conftest.er1 >conftest.err | |
2777 | rm -f conftest.er1 | |
2778 | cat conftest.err >&5 | |
2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2780 | (exit $ac_status); } && | |
2781 | { ac_try='test -z "$ac_c_werror_flag" | |
2782 | || test ! -s conftest.err' | |
2783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2784 | (eval $ac_try) 2>&5 | |
2785 | ac_status=$? | |
2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2787 | (exit $ac_status); }; } && | |
2788 | { ac_try='test -s conftest.$ac_objext' | |
2789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2790 | (eval $ac_try) 2>&5 | |
2791 | ac_status=$? | |
2792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2793 | (exit $ac_status); }; }; then | |
2794 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 2795 | else |
bec39cab AC |
2796 | echo "$as_me: failed program was:" >&5 |
2797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2798 | |
2799 | fi | |
bec39cab AC |
2800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2801 | done | |
2802 | CC="$ac_save_CC" | |
c906108c SS |
2803 | |
2804 | fi | |
2805 | ||
bec39cab AC |
2806 | if test -z "$am_cv_prog_cc_stdc"; then |
2807 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2808 | echo "${ECHO_T}none needed" >&6 | |
c906108c | 2809 | else |
bec39cab AC |
2810 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
2811 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
c906108c | 2812 | fi |
bec39cab AC |
2813 | case "x$am_cv_prog_cc_stdc" in |
2814 | x|xno) ;; | |
2815 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2816 | esac | |
c906108c | 2817 | |
c906108c | 2818 | |
bec39cab AC |
2819 | ac_aux_dir= |
2820 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
2821 | if test -f $ac_dir/install-sh; then | |
2822 | ac_aux_dir=$ac_dir | |
2823 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2824 | break | |
2825 | elif test -f $ac_dir/install.sh; then | |
2826 | ac_aux_dir=$ac_dir | |
2827 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2828 | break | |
2829 | elif test -f $ac_dir/shtool; then | |
2830 | ac_aux_dir=$ac_dir | |
2831 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2832 | break | |
2833 | fi | |
2834 | done | |
2835 | if test -z "$ac_aux_dir"; then | |
2836 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
2837 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
2838 | { (exit 1); exit 1; }; } | |
c906108c | 2839 | fi |
bec39cab AC |
2840 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2841 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2842 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 2843 | |
bec39cab AC |
2844 | # Make sure we can run config.sub. |
2845 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2846 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2847 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2848 | { (exit 1); exit 1; }; } | |
2849 | ||
2850 | echo "$as_me:$LINENO: checking build system type" >&5 | |
2851 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
2852 | if test "${ac_cv_build+set}" = set; then | |
2853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2854 | else | |
2855 | ac_cv_build_alias=$build_alias | |
2856 | test -z "$ac_cv_build_alias" && | |
2857 | ac_cv_build_alias=`$ac_config_guess` | |
2858 | test -z "$ac_cv_build_alias" && | |
2859 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2860 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2861 | { (exit 1); exit 1; }; } | |
2862 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
2863 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2864 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
2865 | { (exit 1); exit 1; }; } | |
2866 | ||
2867 | fi | |
2868 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2869 | echo "${ECHO_T}$ac_cv_build" >&6 | |
2870 | build=$ac_cv_build | |
2871 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2872 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2873 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2874 | ||
2875 | ||
2876 | echo "$as_me:$LINENO: checking host system type" >&5 | |
2877 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
2878 | if test "${ac_cv_host+set}" = set; then | |
2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2880 | else | |
2881 | ac_cv_host_alias=$host_alias | |
2882 | test -z "$ac_cv_host_alias" && | |
2883 | ac_cv_host_alias=$ac_cv_build_alias | |
2884 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2885 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2886 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
2887 | { (exit 1); exit 1; }; } | |
2888 | ||
2889 | fi | |
2890 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2891 | echo "${ECHO_T}$ac_cv_host" >&6 | |
2892 | host=$ac_cv_host | |
2893 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2894 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2895 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2896 | ||
2897 | ||
2898 | echo "$as_me:$LINENO: checking target system type" >&5 | |
2899 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
2900 | if test "${ac_cv_target+set}" = set; then | |
2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2902 | else | |
2903 | ac_cv_target_alias=$target_alias | |
2904 | test "x$ac_cv_target_alias" = "x" && | |
2905 | ac_cv_target_alias=$ac_cv_host_alias | |
2906 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2907 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2908 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
2909 | { (exit 1); exit 1; }; } | |
2910 | ||
2911 | fi | |
2912 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
2913 | echo "${ECHO_T}$ac_cv_target" >&6 | |
2914 | target=$ac_cv_target | |
2915 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2916 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2917 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2918 | |
c906108c | 2919 | |
bec39cab AC |
2920 | # The aliases save the names the user supplied, while $host etc. |
2921 | # will get canonicalized. | |
2922 | test -n "$target_alias" && | |
2923 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2924 | NONENONEs,x,x, && | |
2925 | program_prefix=${target_alias}- | |
c906108c | 2926 | |
bec39cab AC |
2927 | # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13 |
2928 | # doesn't support cross-compilation, but the one from Autoconf 2.5x | |
2929 | # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to | |
2930 | # deal with the lossage. Note that CY_GNU_GETTEXT currently calls | |
2931 | # AC_PROG_RANLIB. This can be removed when we switch to Autoconf | |
2932 | # 2.5x. | |
2933 | if test -n "$ac_tool_prefix"; then | |
2934 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2935 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2936 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2938 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2940 | else |
bec39cab AC |
2941 | if test -n "$RANLIB"; then |
2942 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 2943 | else |
bec39cab AC |
2944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2945 | for as_dir in $PATH | |
2946 | do | |
2947 | IFS=$as_save_IFS | |
2948 | test -z "$as_dir" && as_dir=. | |
2949 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2951 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2953 | break 2 | |
2954 | fi | |
2955 | done | |
2956 | done | |
2957 | ||
c906108c | 2958 | fi |
c906108c | 2959 | fi |
bec39cab AC |
2960 | RANLIB=$ac_cv_prog_RANLIB |
2961 | if test -n "$RANLIB"; then | |
2962 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2963 | echo "${ECHO_T}$RANLIB" >&6 | |
2964 | else | |
2965 | echo "$as_me:$LINENO: result: no" >&5 | |
2966 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2967 | fi |
2968 | ||
bec39cab AC |
2969 | fi |
2970 | if test -z "$ac_cv_prog_RANLIB"; then | |
2971 | ac_ct_RANLIB=$RANLIB | |
2972 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2973 | set dummy ranlib; ac_word=$2 | |
2974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2976 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2978 | else |
bec39cab AC |
2979 | if test -n "$ac_ct_RANLIB"; then |
2980 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2981 | else | |
2982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2983 | for as_dir in $PATH | |
2984 | do | |
2985 | IFS=$as_save_IFS | |
2986 | test -z "$as_dir" && as_dir=. | |
2987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2989 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2991 | break 2 | |
2992 | fi | |
2993 | done | |
2994 | done | |
c906108c | 2995 | |
bec39cab AC |
2996 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
2997 | fi | |
2998 | fi | |
2999 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3000 | if test -n "$ac_ct_RANLIB"; then | |
3001 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3002 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
c906108c | 3003 | else |
bec39cab AC |
3004 | echo "$as_me:$LINENO: result: no" >&5 |
3005 | echo "${ECHO_T}no" >&6 | |
c906108c | 3006 | fi |
c906108c | 3007 | |
bec39cab AC |
3008 | RANLIB=$ac_ct_RANLIB |
3009 | else | |
3010 | RANLIB="$ac_cv_prog_RANLIB" | |
c906108c SS |
3011 | fi |
3012 | ||
c906108c | 3013 | |
c906108c | 3014 | |
bec39cab AC |
3015 | CONFIG_OBS= |
3016 | CONFIG_DEPS= | |
3017 | CONFIG_SRCS= | |
3018 | ENABLE_CFLAGS= | |
c906108c | 3019 | |
bec39cab AC |
3020 | CONFIG_ALL= |
3021 | CONFIG_CLEAN= | |
3022 | CONFIG_INSTALL= | |
3023 | CONFIG_UNINSTALL= | |
3024 | ||
3025 | ||
3026 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3027 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3028 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3029 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3031 | else | |
3032 | cat >conftest.make <<\_ACEOF | |
3033 | all: | |
3034 | @echo 'ac_maketemp="$(MAKE)"' | |
3035 | _ACEOF | |
3036 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3037 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3038 | if test -n "$ac_maketemp"; then | |
3039 | eval ac_cv_prog_make_${ac_make}_set=yes | |
c906108c | 3040 | else |
bec39cab | 3041 | eval ac_cv_prog_make_${ac_make}_set=no |
c906108c | 3042 | fi |
bec39cab AC |
3043 | rm -f conftest.make |
3044 | fi | |
3045 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3046 | echo "$as_me:$LINENO: result: yes" >&5 | |
3047 | echo "${ECHO_T}yes" >&6 | |
3048 | SET_MAKE= | |
3049 | else | |
3050 | echo "$as_me:$LINENO: result: no" >&5 | |
3051 | echo "${ECHO_T}no" >&6 | |
3052 | SET_MAKE="MAKE=${MAKE-make}" | |
c906108c SS |
3053 | fi |
3054 | ||
bec39cab AC |
3055 | if test -n "$ac_tool_prefix"; then |
3056 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3057 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3060 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3062 | else | |
3063 | if test -n "$RANLIB"; then | |
3064 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3065 | else | |
3066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3067 | for as_dir in $PATH | |
3068 | do | |
3069 | IFS=$as_save_IFS | |
3070 | test -z "$as_dir" && as_dir=. | |
3071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3072 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3073 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3075 | break 2 | |
3076 | fi | |
3077 | done | |
3078 | done | |
c906108c | 3079 | |
bec39cab AC |
3080 | fi |
3081 | fi | |
3082 | RANLIB=$ac_cv_prog_RANLIB | |
3083 | if test -n "$RANLIB"; then | |
3084 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3085 | echo "${ECHO_T}$RANLIB" >&6 | |
c906108c | 3086 | else |
bec39cab AC |
3087 | echo "$as_me:$LINENO: result: no" >&5 |
3088 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3089 | fi |
3090 | ||
bec39cab AC |
3091 | fi |
3092 | if test -z "$ac_cv_prog_RANLIB"; then | |
3093 | ac_ct_RANLIB=$RANLIB | |
3094 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3095 | set dummy ranlib; ac_word=$2 | |
3096 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3097 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3098 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3100 | else | |
3101 | if test -n "$ac_ct_RANLIB"; then | |
3102 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3103 | else | |
3104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3105 | for as_dir in $PATH | |
3106 | do | |
3107 | IFS=$as_save_IFS | |
3108 | test -z "$as_dir" && as_dir=. | |
3109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3110 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3111 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3112 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3113 | break 2 | |
3114 | fi | |
3115 | done | |
c906108c | 3116 | done |
bec39cab AC |
3117 | |
3118 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3119 | fi | |
3120 | fi | |
3121 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3122 | if test -n "$ac_ct_RANLIB"; then | |
3123 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3124 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3125 | else | |
3126 | echo "$as_me:$LINENO: result: no" >&5 | |
3127 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3128 | fi |
3129 | ||
bec39cab | 3130 | RANLIB=$ac_ct_RANLIB |
c906108c | 3131 | else |
bec39cab AC |
3132 | RANLIB="$ac_cv_prog_RANLIB" |
3133 | fi | |
3134 | ||
3135 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3136 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3137 | if test "${ac_cv_header_stdc+set}" = set; then | |
3138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3139 | else |
bec39cab AC |
3140 | cat >conftest.$ac_ext <<_ACEOF |
3141 | /* confdefs.h. */ | |
3142 | _ACEOF | |
3143 | cat confdefs.h >>conftest.$ac_ext | |
3144 | cat >>conftest.$ac_ext <<_ACEOF | |
3145 | /* end confdefs.h. */ | |
3146 | #include <stdlib.h> | |
3147 | #include <stdarg.h> | |
3148 | #include <string.h> | |
3149 | #include <float.h> | |
3150 | ||
3151 | int | |
c906108c SS |
3152 | main () |
3153 | { | |
bec39cab AC |
3154 | |
3155 | ; | |
3156 | return 0; | |
c906108c | 3157 | } |
bec39cab AC |
3158 | _ACEOF |
3159 | rm -f conftest.$ac_objext | |
3160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3161 | (eval $ac_compile) 2>conftest.er1 | |
3162 | ac_status=$? | |
3163 | grep -v '^ *+' conftest.er1 >conftest.err | |
3164 | rm -f conftest.er1 | |
3165 | cat conftest.err >&5 | |
3166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3167 | (exit $ac_status); } && | |
3168 | { ac_try='test -z "$ac_c_werror_flag" | |
3169 | || test ! -s conftest.err' | |
3170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3171 | (eval $ac_try) 2>&5 | |
3172 | ac_status=$? | |
3173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3174 | (exit $ac_status); }; } && | |
3175 | { ac_try='test -s conftest.$ac_objext' | |
3176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3177 | (eval $ac_try) 2>&5 | |
3178 | ac_status=$? | |
3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3180 | (exit $ac_status); }; }; then | |
3181 | ac_cv_header_stdc=yes | |
c906108c | 3182 | else |
bec39cab AC |
3183 | echo "$as_me: failed program was:" >&5 |
3184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3185 | |
bec39cab | 3186 | ac_cv_header_stdc=no |
c906108c | 3187 | fi |
bec39cab | 3188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3189 | |
bec39cab AC |
3190 | if test $ac_cv_header_stdc = yes; then |
3191 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3192 | cat >conftest.$ac_ext <<_ACEOF | |
3193 | /* confdefs.h. */ | |
3194 | _ACEOF | |
3195 | cat confdefs.h >>conftest.$ac_ext | |
3196 | cat >>conftest.$ac_ext <<_ACEOF | |
3197 | /* end confdefs.h. */ | |
3198 | #include <string.h> | |
c906108c | 3199 | |
bec39cab AC |
3200 | _ACEOF |
3201 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3202 | $EGREP "memchr" >/dev/null 2>&1; then | |
3203 | : | |
c906108c | 3204 | else |
bec39cab | 3205 | ac_cv_header_stdc=no |
c906108c | 3206 | fi |
bec39cab | 3207 | rm -f conftest* |
c906108c | 3208 | |
bec39cab | 3209 | fi |
c906108c | 3210 | |
bec39cab AC |
3211 | if test $ac_cv_header_stdc = yes; then |
3212 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3213 | cat >conftest.$ac_ext <<_ACEOF | |
3214 | /* confdefs.h. */ | |
3215 | _ACEOF | |
3216 | cat confdefs.h >>conftest.$ac_ext | |
3217 | cat >>conftest.$ac_ext <<_ACEOF | |
3218 | /* end confdefs.h. */ | |
3219 | #include <stdlib.h> | |
c906108c | 3220 | |
bec39cab AC |
3221 | _ACEOF |
3222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3223 | $EGREP "free" >/dev/null 2>&1; then | |
3224 | : | |
c906108c | 3225 | else |
bec39cab | 3226 | ac_cv_header_stdc=no |
c906108c SS |
3227 | fi |
3228 | rm -f conftest* | |
c906108c | 3229 | |
c906108c | 3230 | fi |
c906108c | 3231 | |
bec39cab AC |
3232 | if test $ac_cv_header_stdc = yes; then |
3233 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
c906108c | 3234 | if test "$cross_compiling" = yes; then |
bec39cab | 3235 | : |
c906108c | 3236 | else |
bec39cab AC |
3237 | cat >conftest.$ac_ext <<_ACEOF |
3238 | /* confdefs.h. */ | |
3239 | _ACEOF | |
3240 | cat confdefs.h >>conftest.$ac_ext | |
3241 | cat >>conftest.$ac_ext <<_ACEOF | |
3242 | /* end confdefs.h. */ | |
3243 | #include <ctype.h> | |
3244 | #if ((' ' & 0x0FF) == 0x020) | |
3245 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3246 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3247 | #else | |
3248 | # define ISLOWER(c) \ | |
3249 | (('a' <= (c) && (c) <= 'i') \ | |
3250 | || ('j' <= (c) && (c) <= 'r') \ | |
3251 | || ('s' <= (c) && (c) <= 'z')) | |
3252 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3253 | #endif | |
c906108c | 3254 | |
bec39cab AC |
3255 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3256 | int | |
3257 | main () | |
3258 | { | |
3259 | int i; | |
3260 | for (i = 0; i < 256; i++) | |
3261 | if (XOR (islower (i), ISLOWER (i)) | |
3262 | || toupper (i) != TOUPPER (i)) | |
3263 | exit(2); | |
3264 | exit (0); | |
3265 | } | |
3266 | _ACEOF | |
3267 | rm -f conftest$ac_exeext | |
3268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3269 | (eval $ac_link) 2>&5 | |
3270 | ac_status=$? | |
3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3272 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3274 | (eval $ac_try) 2>&5 | |
3275 | ac_status=$? | |
3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3277 | (exit $ac_status); }; }; then | |
3278 | : | |
3279 | else | |
3280 | echo "$as_me: program exited with status $ac_status" >&5 | |
3281 | echo "$as_me: failed program was:" >&5 | |
3282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3283 | |
bec39cab AC |
3284 | ( exit $ac_status ) |
3285 | ac_cv_header_stdc=no | |
3286 | fi | |
3287 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3288 | fi | |
3289 | fi | |
3290 | fi | |
3291 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3292 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3293 | if test $ac_cv_header_stdc = yes; then | |
c906108c | 3294 | |
bec39cab AC |
3295 | cat >>confdefs.h <<\_ACEOF |
3296 | #define STDC_HEADERS 1 | |
3297 | _ACEOF | |
c906108c | 3298 | |
bec39cab | 3299 | fi |
c906108c | 3300 | |
bec39cab AC |
3301 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3302 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3303 | if test "${ac_cv_c_const+set}" = set; then | |
3304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3305 | else | |
3306 | cat >conftest.$ac_ext <<_ACEOF | |
3307 | /* confdefs.h. */ | |
3308 | _ACEOF | |
3309 | cat confdefs.h >>conftest.$ac_ext | |
3310 | cat >>conftest.$ac_ext <<_ACEOF | |
3311 | /* end confdefs.h. */ | |
c906108c | 3312 | |
bec39cab AC |
3313 | int |
3314 | main () | |
3315 | { | |
3316 | /* FIXME: Include the comments suggested by Paul. */ | |
3317 | #ifndef __cplusplus | |
3318 | /* Ultrix mips cc rejects this. */ | |
3319 | typedef int charset[2]; | |
3320 | const charset x; | |
3321 | /* SunOS 4.1.1 cc rejects this. */ | |
3322 | char const *const *ccp; | |
3323 | char **p; | |
3324 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3325 | struct point {int x, y;}; | |
3326 | static struct point const zero = {0,0}; | |
3327 | /* AIX XL C 1.02.0.0 rejects this. | |
3328 | It does not let you subtract one const X* pointer from another in | |
3329 | an arm of an if-expression whose if-part is not a constant | |
3330 | expression */ | |
3331 | const char *g = "string"; | |
3332 | ccp = &g + (g ? g-g : 0); | |
3333 | /* HPUX 7.0 cc rejects these. */ | |
3334 | ++ccp; | |
3335 | p = (char**) ccp; | |
3336 | ccp = (char const *const *) p; | |
3337 | { /* SCO 3.2v4 cc rejects this. */ | |
3338 | char *t; | |
3339 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3340 | ||
3341 | *t++ = 0; | |
3342 | } | |
3343 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3344 | int x[] = {25, 17}; | |
3345 | const int *foo = &x[0]; | |
3346 | ++foo; | |
3347 | } | |
3348 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3349 | typedef const int *iptr; | |
3350 | iptr p = 0; | |
3351 | ++p; | |
3352 | } | |
3353 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3354 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3355 | struct s { int j; const int *ap[3]; }; | |
3356 | struct s *b; b->j = 5; | |
3357 | } | |
3358 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3359 | const int foo = 10; | |
3360 | } | |
3361 | #endif | |
c906108c | 3362 | |
bec39cab AC |
3363 | ; |
3364 | return 0; | |
3365 | } | |
3366 | _ACEOF | |
3367 | rm -f conftest.$ac_objext | |
3368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3369 | (eval $ac_compile) 2>conftest.er1 | |
3370 | ac_status=$? | |
3371 | grep -v '^ *+' conftest.er1 >conftest.err | |
3372 | rm -f conftest.er1 | |
3373 | cat conftest.err >&5 | |
3374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3375 | (exit $ac_status); } && | |
3376 | { ac_try='test -z "$ac_c_werror_flag" | |
3377 | || test ! -s conftest.err' | |
3378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3379 | (eval $ac_try) 2>&5 | |
3380 | ac_status=$? | |
3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3382 | (exit $ac_status); }; } && | |
3383 | { ac_try='test -s conftest.$ac_objext' | |
3384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3385 | (eval $ac_try) 2>&5 | |
3386 | ac_status=$? | |
3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3388 | (exit $ac_status); }; }; then | |
3389 | ac_cv_c_const=yes | |
c906108c | 3390 | else |
bec39cab AC |
3391 | echo "$as_me: failed program was:" >&5 |
3392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3393 | |
bec39cab AC |
3394 | ac_cv_c_const=no |
3395 | fi | |
3396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3397 | fi |
bec39cab AC |
3398 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3399 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3400 | if test $ac_cv_c_const = no; then | |
c906108c | 3401 | |
bec39cab AC |
3402 | cat >>confdefs.h <<\_ACEOF |
3403 | #define const | |
3404 | _ACEOF | |
c906108c SS |
3405 | |
3406 | fi | |
3407 | ||
bec39cab AC |
3408 | echo "$as_me:$LINENO: checking for inline" >&5 |
3409 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3410 | if test "${ac_cv_c_inline+set}" = set; then | |
3411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3412 | else |
bec39cab AC |
3413 | ac_cv_c_inline=no |
3414 | for ac_kw in inline __inline__ __inline; do | |
3415 | cat >conftest.$ac_ext <<_ACEOF | |
3416 | /* confdefs.h. */ | |
3417 | _ACEOF | |
3418 | cat confdefs.h >>conftest.$ac_ext | |
3419 | cat >>conftest.$ac_ext <<_ACEOF | |
3420 | /* end confdefs.h. */ | |
3421 | #ifndef __cplusplus | |
3422 | typedef int foo_t; | |
3423 | static $ac_kw foo_t static_foo () {return 0; } | |
3424 | $ac_kw foo_t foo () {return 0; } | |
c906108c SS |
3425 | #endif |
3426 | ||
bec39cab AC |
3427 | _ACEOF |
3428 | rm -f conftest.$ac_objext | |
3429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3430 | (eval $ac_compile) 2>conftest.er1 | |
3431 | ac_status=$? | |
3432 | grep -v '^ *+' conftest.er1 >conftest.err | |
3433 | rm -f conftest.er1 | |
3434 | cat conftest.err >&5 | |
3435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3436 | (exit $ac_status); } && | |
3437 | { ac_try='test -z "$ac_c_werror_flag" | |
3438 | || test ! -s conftest.err' | |
3439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3440 | (eval $ac_try) 2>&5 | |
3441 | ac_status=$? | |
3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3443 | (exit $ac_status); }; } && | |
3444 | { ac_try='test -s conftest.$ac_objext' | |
3445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3446 | (eval $ac_try) 2>&5 | |
3447 | ac_status=$? | |
3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3449 | (exit $ac_status); }; }; then | |
3450 | ac_cv_c_inline=$ac_kw; break | |
c906108c | 3451 | else |
bec39cab AC |
3452 | echo "$as_me: failed program was:" >&5 |
3453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3454 | |
c906108c | 3455 | fi |
bec39cab | 3456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
3457 | done |
3458 | ||
bec39cab AC |
3459 | fi |
3460 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3461 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
c906108c | 3462 | |
c906108c | 3463 | |
bec39cab AC |
3464 | case $ac_cv_c_inline in |
3465 | inline | yes) ;; | |
3466 | *) | |
3467 | case $ac_cv_c_inline in | |
3468 | no) ac_val=;; | |
3469 | *) ac_val=$ac_cv_c_inline;; | |
3470 | esac | |
3471 | cat >>confdefs.h <<_ACEOF | |
3472 | #ifndef __cplusplus | |
3473 | #define inline $ac_val | |
c906108c | 3474 | #endif |
bec39cab AC |
3475 | _ACEOF |
3476 | ;; | |
3477 | esac | |
c906108c | 3478 | |
bec39cab | 3479 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
c906108c | 3480 | |
c906108c | 3481 | |
c906108c | 3482 | |
c906108c | 3483 | |
c906108c | 3484 | |
c906108c | 3485 | |
c906108c | 3486 | |
c906108c | 3487 | |
c906108c | 3488 | |
bec39cab AC |
3489 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3490 | inttypes.h stdint.h unistd.h | |
3491 | do | |
3492 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3493 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3495 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3497 | else | |
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 | ||
3506 | #include <$ac_header> | |
3507 | _ACEOF | |
3508 | rm -f conftest.$ac_objext | |
3509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3510 | (eval $ac_compile) 2>conftest.er1 | |
3511 | ac_status=$? | |
3512 | grep -v '^ *+' conftest.er1 >conftest.err | |
3513 | rm -f conftest.er1 | |
3514 | cat conftest.err >&5 | |
3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3516 | (exit $ac_status); } && | |
3517 | { ac_try='test -z "$ac_c_werror_flag" | |
3518 | || test ! -s conftest.err' | |
3519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3520 | (eval $ac_try) 2>&5 | |
3521 | ac_status=$? | |
3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3523 | (exit $ac_status); }; } && | |
3524 | { ac_try='test -s conftest.$ac_objext' | |
3525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3526 | (eval $ac_try) 2>&5 | |
3527 | ac_status=$? | |
3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3529 | (exit $ac_status); }; }; then | |
3530 | eval "$as_ac_Header=yes" | |
3531 | else | |
3532 | echo "$as_me: failed program was:" >&5 | |
3533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3534 | ||
3535 | eval "$as_ac_Header=no" | |
3536 | fi | |
3537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3538 | fi | |
3539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3540 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3541 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3542 | cat >>confdefs.h <<_ACEOF | |
3543 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3544 | _ACEOF | |
c906108c | 3545 | |
c906108c SS |
3546 | fi |
3547 | ||
bec39cab | 3548 | done |
c906108c | 3549 | |
c906108c | 3550 | |
bec39cab AC |
3551 | echo "$as_me:$LINENO: checking for off_t" >&5 |
3552 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
3553 | if test "${ac_cv_type_off_t+set}" = set; then | |
3554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3555 | else |
bec39cab AC |
3556 | cat >conftest.$ac_ext <<_ACEOF |
3557 | /* confdefs.h. */ | |
3558 | _ACEOF | |
3559 | cat confdefs.h >>conftest.$ac_ext | |
3560 | cat >>conftest.$ac_ext <<_ACEOF | |
3561 | /* end confdefs.h. */ | |
3562 | $ac_includes_default | |
3563 | int | |
3564 | main () | |
3565 | { | |
3566 | if ((off_t *) 0) | |
3567 | return 0; | |
3568 | if (sizeof (off_t)) | |
3569 | return 0; | |
3570 | ; | |
3571 | return 0; | |
3572 | } | |
3573 | _ACEOF | |
3574 | rm -f conftest.$ac_objext | |
3575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3576 | (eval $ac_compile) 2>conftest.er1 | |
3577 | ac_status=$? | |
3578 | grep -v '^ *+' conftest.er1 >conftest.err | |
3579 | rm -f conftest.er1 | |
3580 | cat conftest.err >&5 | |
3581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3582 | (exit $ac_status); } && | |
3583 | { ac_try='test -z "$ac_c_werror_flag" | |
3584 | || test ! -s conftest.err' | |
3585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3586 | (eval $ac_try) 2>&5 | |
3587 | ac_status=$? | |
3588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3589 | (exit $ac_status); }; } && | |
3590 | { ac_try='test -s conftest.$ac_objext' | |
3591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3592 | (eval $ac_try) 2>&5 | |
3593 | ac_status=$? | |
3594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3595 | (exit $ac_status); }; }; then | |
3596 | ac_cv_type_off_t=yes | |
3597 | else | |
3598 | echo "$as_me: failed program was:" >&5 | |
3599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3600 | ||
3601 | ac_cv_type_off_t=no | |
c906108c | 3602 | fi |
bec39cab | 3603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3604 | fi |
bec39cab AC |
3605 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
3606 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
3607 | if test $ac_cv_type_off_t = yes; then | |
3608 | : | |
c906108c | 3609 | else |
bec39cab AC |
3610 | |
3611 | cat >>confdefs.h <<_ACEOF | |
3612 | #define off_t long | |
3613 | _ACEOF | |
3614 | ||
3615 | fi | |
3616 | ||
3617 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
3618 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
3619 | if test "${ac_cv_type_size_t+set}" = set; then | |
3620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3621 | else | |
3622 | cat >conftest.$ac_ext <<_ACEOF | |
3623 | /* confdefs.h. */ | |
3624 | _ACEOF | |
3625 | cat confdefs.h >>conftest.$ac_ext | |
3626 | cat >>conftest.$ac_ext <<_ACEOF | |
3627 | /* end confdefs.h. */ | |
3628 | $ac_includes_default | |
3629 | int | |
3630 | main () | |
3631 | { | |
3632 | if ((size_t *) 0) | |
3633 | return 0; | |
3634 | if (sizeof (size_t)) | |
3635 | return 0; | |
3636 | ; | |
3637 | return 0; | |
3638 | } | |
3639 | _ACEOF | |
3640 | rm -f conftest.$ac_objext | |
3641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3642 | (eval $ac_compile) 2>conftest.er1 | |
3643 | ac_status=$? | |
3644 | grep -v '^ *+' conftest.er1 >conftest.err | |
3645 | rm -f conftest.er1 | |
3646 | cat conftest.err >&5 | |
3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3648 | (exit $ac_status); } && | |
3649 | { ac_try='test -z "$ac_c_werror_flag" | |
3650 | || test ! -s conftest.err' | |
3651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3652 | (eval $ac_try) 2>&5 | |
3653 | ac_status=$? | |
3654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3655 | (exit $ac_status); }; } && | |
3656 | { ac_try='test -s conftest.$ac_objext' | |
3657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3658 | (eval $ac_try) 2>&5 | |
3659 | ac_status=$? | |
3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3661 | (exit $ac_status); }; }; then | |
3662 | ac_cv_type_size_t=yes | |
c906108c | 3663 | else |
bec39cab AC |
3664 | echo "$as_me: failed program was:" >&5 |
3665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3666 | ||
3667 | ac_cv_type_size_t=no | |
c906108c | 3668 | fi |
bec39cab | 3669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3670 | fi |
bec39cab AC |
3671 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
3672 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
3673 | if test $ac_cv_type_size_t = yes; then | |
3674 | : | |
3675 | else | |
c906108c | 3676 | |
bec39cab AC |
3677 | cat >>confdefs.h <<_ACEOF |
3678 | #define size_t unsigned | |
3679 | _ACEOF | |
c906108c | 3680 | |
c906108c | 3681 | fi |
bec39cab AC |
3682 | |
3683 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3684 | # for constant arguments. Useless! | |
3685 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
3686 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
3687 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3689 | else | |
3690 | cat >conftest.$ac_ext <<_ACEOF | |
3691 | /* confdefs.h. */ | |
3692 | _ACEOF | |
3693 | cat confdefs.h >>conftest.$ac_ext | |
3694 | cat >>conftest.$ac_ext <<_ACEOF | |
3695 | /* end confdefs.h. */ | |
3696 | #include <alloca.h> | |
3697 | int | |
3698 | main () | |
3699 | { | |
3700 | char *p = (char *) alloca (2 * sizeof (int)); | |
3701 | ; | |
3702 | return 0; | |
3703 | } | |
3704 | _ACEOF | |
3705 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3707 | (eval $ac_link) 2>conftest.er1 | |
3708 | ac_status=$? | |
3709 | grep -v '^ *+' conftest.er1 >conftest.err | |
3710 | rm -f conftest.er1 | |
3711 | cat conftest.err >&5 | |
3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3713 | (exit $ac_status); } && | |
3714 | { ac_try='test -z "$ac_c_werror_flag" | |
3715 | || test ! -s conftest.err' | |
3716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3717 | (eval $ac_try) 2>&5 | |
3718 | ac_status=$? | |
3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3720 | (exit $ac_status); }; } && | |
3721 | { ac_try='test -s conftest$ac_exeext' | |
3722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3723 | (eval $ac_try) 2>&5 | |
3724 | ac_status=$? | |
3725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3726 | (exit $ac_status); }; }; then | |
3727 | ac_cv_working_alloca_h=yes | |
3728 | else | |
3729 | echo "$as_me: failed program was:" >&5 | |
3730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3731 | ||
3732 | ac_cv_working_alloca_h=no | |
3733 | fi | |
3734 | rm -f conftest.err conftest.$ac_objext \ | |
3735 | conftest$ac_exeext conftest.$ac_ext | |
3736 | fi | |
3737 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
3738 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
3739 | if test $ac_cv_working_alloca_h = yes; then | |
3740 | ||
3741 | cat >>confdefs.h <<\_ACEOF | |
3742 | #define HAVE_ALLOCA_H 1 | |
3743 | _ACEOF | |
c906108c SS |
3744 | |
3745 | fi | |
bec39cab AC |
3746 | |
3747 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
3748 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
3749 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3751 | else |
bec39cab AC |
3752 | cat >conftest.$ac_ext <<_ACEOF |
3753 | /* confdefs.h. */ | |
3754 | _ACEOF | |
3755 | cat confdefs.h >>conftest.$ac_ext | |
3756 | cat >>conftest.$ac_ext <<_ACEOF | |
3757 | /* end confdefs.h. */ | |
3758 | #ifdef __GNUC__ | |
3759 | # define alloca __builtin_alloca | |
3760 | #else | |
3761 | # ifdef _MSC_VER | |
3762 | # include <malloc.h> | |
3763 | # define alloca _alloca | |
3764 | # else | |
3765 | # if HAVE_ALLOCA_H | |
3766 | # include <alloca.h> | |
3767 | # else | |
3768 | # ifdef _AIX | |
3769 | #pragma alloca | |
3770 | # else | |
3771 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3772 | char *alloca (); | |
3773 | # endif | |
3774 | # endif | |
3775 | # endif | |
3776 | # endif | |
3777 | #endif | |
c906108c | 3778 | |
bec39cab AC |
3779 | int |
3780 | main () | |
3781 | { | |
3782 | char *p = (char *) alloca (1); | |
3783 | ; | |
3784 | return 0; | |
3785 | } | |
3786 | _ACEOF | |
3787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3789 | (eval $ac_link) 2>conftest.er1 | |
3790 | ac_status=$? | |
3791 | grep -v '^ *+' conftest.er1 >conftest.err | |
3792 | rm -f conftest.er1 | |
3793 | cat conftest.err >&5 | |
3794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3795 | (exit $ac_status); } && | |
3796 | { ac_try='test -z "$ac_c_werror_flag" | |
3797 | || test ! -s conftest.err' | |
3798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3799 | (eval $ac_try) 2>&5 | |
3800 | ac_status=$? | |
3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3802 | (exit $ac_status); }; } && | |
3803 | { ac_try='test -s conftest$ac_exeext' | |
3804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3805 | (eval $ac_try) 2>&5 | |
3806 | ac_status=$? | |
3807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3808 | (exit $ac_status); }; }; then | |
3809 | ac_cv_func_alloca_works=yes | |
c906108c | 3810 | else |
bec39cab AC |
3811 | echo "$as_me: failed program was:" >&5 |
3812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3813 | ||
3814 | ac_cv_func_alloca_works=no | |
c906108c | 3815 | fi |
bec39cab AC |
3816 | rm -f conftest.err conftest.$ac_objext \ |
3817 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 3818 | fi |
bec39cab AC |
3819 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
3820 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
3821 | ||
3822 | if test $ac_cv_func_alloca_works = yes; then | |
3823 | ||
3824 | cat >>confdefs.h <<\_ACEOF | |
3825 | #define HAVE_ALLOCA 1 | |
3826 | _ACEOF | |
c906108c | 3827 | |
c906108c | 3828 | else |
bec39cab AC |
3829 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
3830 | # that cause trouble. Some versions do not even contain alloca or | |
3831 | # contain a buggy version. If you still want to use their alloca, | |
3832 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
c906108c | 3833 | |
bec39cab | 3834 | ALLOCA=alloca.$ac_objext |
c906108c | 3835 | |
bec39cab AC |
3836 | cat >>confdefs.h <<\_ACEOF |
3837 | #define C_ALLOCA 1 | |
3838 | _ACEOF | |
c906108c | 3839 | |
bec39cab AC |
3840 | |
3841 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
3842 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
3843 | if test "${ac_cv_os_cray+set}" = set; then | |
3844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3845 | else |
bec39cab AC |
3846 | cat >conftest.$ac_ext <<_ACEOF |
3847 | /* confdefs.h. */ | |
3848 | _ACEOF | |
3849 | cat confdefs.h >>conftest.$ac_ext | |
3850 | cat >>conftest.$ac_ext <<_ACEOF | |
3851 | /* end confdefs.h. */ | |
3852 | #if defined(CRAY) && ! defined(CRAY2) | |
3853 | webecray | |
3854 | #else | |
3855 | wenotbecray | |
3856 | #endif | |
3857 | ||
3858 | _ACEOF | |
3859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3860 | $EGREP "webecray" >/dev/null 2>&1; then | |
3861 | ac_cv_os_cray=yes | |
c906108c | 3862 | else |
bec39cab | 3863 | ac_cv_os_cray=no |
c906108c | 3864 | fi |
bec39cab AC |
3865 | rm -f conftest* |
3866 | ||
3867 | fi | |
3868 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
3869 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
3870 | if test $ac_cv_os_cray = yes; then | |
3871 | for ac_func in _getb67 GETB67 getb67; do | |
3872 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3873 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3875 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3877 | else | |
3878 | cat >conftest.$ac_ext <<_ACEOF | |
3879 | /* confdefs.h. */ | |
3880 | _ACEOF | |
3881 | cat confdefs.h >>conftest.$ac_ext | |
3882 | cat >>conftest.$ac_ext <<_ACEOF | |
3883 | /* end confdefs.h. */ | |
3884 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3886 | #define $ac_func innocuous_$ac_func | |
3887 | ||
c906108c | 3888 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
3889 | which can conflict with char $ac_func (); below. |
3890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3891 | <limits.h> exists even on freestanding compilers. */ | |
3892 | ||
3893 | #ifdef __STDC__ | |
3894 | # include <limits.h> | |
3895 | #else | |
3896 | # include <assert.h> | |
3897 | #endif | |
c906108c | 3898 | |
bec39cab | 3899 | #undef $ac_func |
c906108c | 3900 | |
bec39cab AC |
3901 | /* Override any gcc2 internal prototype to avoid an error. */ |
3902 | #ifdef __cplusplus | |
3903 | extern "C" | |
3904 | { | |
3905 | #endif | |
3906 | /* We use char because int might match the return type of a gcc2 | |
3907 | builtin and then its argument prototype would still apply. */ | |
3908 | char $ac_func (); | |
c906108c SS |
3909 | /* The GNU C library defines this for functions which it implements |
3910 | to always fail with ENOSYS. Some functions are actually named | |
3911 | something starting with __ and the normal name is an alias. */ | |
3912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3913 | choke me | |
3914 | #else | |
bec39cab AC |
3915 | char (*f) () = $ac_func; |
3916 | #endif | |
3917 | #ifdef __cplusplus | |
3918 | } | |
c906108c SS |
3919 | #endif |
3920 | ||
bec39cab AC |
3921 | int |
3922 | main () | |
3923 | { | |
3924 | return f != $ac_func; | |
3925 | ; | |
3926 | return 0; | |
3927 | } | |
3928 | _ACEOF | |
3929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3931 | (eval $ac_link) 2>conftest.er1 | |
3932 | ac_status=$? | |
3933 | grep -v '^ *+' conftest.er1 >conftest.err | |
3934 | rm -f conftest.er1 | |
3935 | cat conftest.err >&5 | |
3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3937 | (exit $ac_status); } && | |
3938 | { ac_try='test -z "$ac_c_werror_flag" | |
3939 | || test ! -s conftest.err' | |
3940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3941 | (eval $ac_try) 2>&5 | |
3942 | ac_status=$? | |
3943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3944 | (exit $ac_status); }; } && | |
3945 | { ac_try='test -s conftest$ac_exeext' | |
3946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3947 | (eval $ac_try) 2>&5 | |
3948 | ac_status=$? | |
3949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3950 | (exit $ac_status); }; }; then | |
3951 | eval "$as_ac_var=yes" | |
3952 | else | |
3953 | echo "$as_me: failed program was:" >&5 | |
3954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3955 | ||
3956 | eval "$as_ac_var=no" | |
3957 | fi | |
3958 | rm -f conftest.err conftest.$ac_objext \ | |
3959 | conftest$ac_exeext conftest.$ac_ext | |
3960 | fi | |
3961 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3962 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3963 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3964 | ||
3965 | cat >>confdefs.h <<_ACEOF | |
3966 | #define CRAY_STACKSEG_END $ac_func | |
3967 | _ACEOF | |
c906108c | 3968 | |
bec39cab | 3969 | break |
c906108c | 3970 | fi |
c906108c | 3971 | |
c906108c | 3972 | done |
c906108c | 3973 | fi |
bec39cab AC |
3974 | |
3975 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
3976 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
3977 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3979 | else |
bec39cab AC |
3980 | if test "$cross_compiling" = yes; then |
3981 | ac_cv_c_stack_direction=0 | |
3982 | else | |
3983 | cat >conftest.$ac_ext <<_ACEOF | |
3984 | /* confdefs.h. */ | |
3985 | _ACEOF | |
3986 | cat confdefs.h >>conftest.$ac_ext | |
3987 | cat >>conftest.$ac_ext <<_ACEOF | |
3988 | /* end confdefs.h. */ | |
3989 | int | |
3990 | find_stack_direction () | |
3991 | { | |
3992 | static char *addr = 0; | |
3993 | auto char dummy; | |
3994 | if (addr == 0) | |
3995 | { | |
3996 | addr = &dummy; | |
3997 | return find_stack_direction (); | |
3998 | } | |
3999 | else | |
4000 | return (&dummy > addr) ? 1 : -1; | |
4001 | } | |
c906108c | 4002 | |
bec39cab AC |
4003 | int |
4004 | main () | |
4005 | { | |
4006 | exit (find_stack_direction () < 0); | |
4007 | } | |
4008 | _ACEOF | |
4009 | rm -f conftest$ac_exeext | |
4010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4011 | (eval $ac_link) 2>&5 | |
4012 | ac_status=$? | |
4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4014 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4016 | (eval $ac_try) 2>&5 | |
4017 | ac_status=$? | |
4018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4019 | (exit $ac_status); }; }; then | |
4020 | ac_cv_c_stack_direction=1 | |
c906108c | 4021 | else |
bec39cab AC |
4022 | echo "$as_me: program exited with status $ac_status" >&5 |
4023 | echo "$as_me: failed program was:" >&5 | |
4024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4025 | ||
4026 | ( exit $ac_status ) | |
4027 | ac_cv_c_stack_direction=-1 | |
4028 | fi | |
4029 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
c906108c | 4030 | fi |
c906108c | 4031 | fi |
bec39cab AC |
4032 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
4033 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
4034 | ||
4035 | cat >>confdefs.h <<_ACEOF | |
4036 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4037 | _ACEOF | |
c906108c | 4038 | |
c906108c | 4039 | |
c906108c SS |
4040 | fi |
4041 | ||
4042 | ||
c906108c | 4043 | |
bec39cab AC |
4044 | for ac_header in stdlib.h unistd.h |
4045 | do | |
4046 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4047 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4048 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4049 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4050 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4052 | fi | |
4053 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4054 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4055 | else | |
4056 | # Is the header compilable? | |
4057 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4058 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4059 | cat >conftest.$ac_ext <<_ACEOF | |
4060 | /* confdefs.h. */ | |
4061 | _ACEOF | |
4062 | cat confdefs.h >>conftest.$ac_ext | |
4063 | cat >>conftest.$ac_ext <<_ACEOF | |
4064 | /* end confdefs.h. */ | |
4065 | $ac_includes_default | |
4066 | #include <$ac_header> | |
4067 | _ACEOF | |
4068 | rm -f conftest.$ac_objext | |
4069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4070 | (eval $ac_compile) 2>conftest.er1 | |
4071 | ac_status=$? | |
4072 | grep -v '^ *+' conftest.er1 >conftest.err | |
4073 | rm -f conftest.er1 | |
4074 | cat conftest.err >&5 | |
4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4076 | (exit $ac_status); } && | |
4077 | { ac_try='test -z "$ac_c_werror_flag" | |
4078 | || test ! -s conftest.err' | |
4079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4080 | (eval $ac_try) 2>&5 | |
4081 | ac_status=$? | |
4082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4083 | (exit $ac_status); }; } && | |
4084 | { ac_try='test -s conftest.$ac_objext' | |
4085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4086 | (eval $ac_try) 2>&5 | |
4087 | ac_status=$? | |
4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4089 | (exit $ac_status); }; }; then | |
4090 | ac_header_compiler=yes | |
4091 | else | |
4092 | echo "$as_me: failed program was:" >&5 | |
4093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4094 | ||
4095 | ac_header_compiler=no | |
4096 | fi | |
4097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4098 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4099 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4100 | ||
4101 | # Is the header present? | |
4102 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4103 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4104 | cat >conftest.$ac_ext <<_ACEOF | |
4105 | /* confdefs.h. */ | |
4106 | _ACEOF | |
4107 | cat confdefs.h >>conftest.$ac_ext | |
4108 | cat >>conftest.$ac_ext <<_ACEOF | |
4109 | /* end confdefs.h. */ | |
4110 | #include <$ac_header> | |
4111 | _ACEOF | |
4112 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4113 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4114 | ac_status=$? | |
4115 | grep -v '^ *+' conftest.er1 >conftest.err | |
4116 | rm -f conftest.er1 | |
4117 | cat conftest.err >&5 | |
4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4119 | (exit $ac_status); } >/dev/null; then | |
4120 | if test -s conftest.err; then | |
4121 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4122 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4123 | else | |
4124 | ac_cpp_err= | |
4125 | fi | |
c906108c | 4126 | else |
bec39cab | 4127 | ac_cpp_err=yes |
c906108c | 4128 | fi |
bec39cab AC |
4129 | if test -z "$ac_cpp_err"; then |
4130 | ac_header_preproc=yes | |
c906108c | 4131 | else |
bec39cab AC |
4132 | echo "$as_me: failed program was:" >&5 |
4133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4134 | ||
4135 | ac_header_preproc=no | |
c906108c | 4136 | fi |
bec39cab AC |
4137 | rm -f conftest.err conftest.$ac_ext |
4138 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4139 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 4140 | |
bec39cab AC |
4141 | # So? What about this header? |
4142 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4143 | yes:no: ) | |
4144 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4145 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4147 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4148 | ac_header_preproc=yes | |
4149 | ;; | |
4150 | no:yes:* ) | |
4151 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4152 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4153 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4154 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4155 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4156 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4157 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4158 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4160 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4161 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4162 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4163 | ( | |
4164 | cat <<\_ASBOX | |
4165 | ## ------------------------------------------ ## | |
4166 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4167 | ## ------------------------------------------ ## | |
4168 | _ASBOX | |
4169 | ) | | |
4170 | sed "s/^/$as_me: WARNING: /" >&2 | |
4171 | ;; | |
4172 | esac | |
4173 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4174 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4175 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4177 | else | |
4178 | eval "$as_ac_Header=\$ac_header_preproc" | |
4179 | fi | |
4180 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4181 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4182 | ||
4183 | fi | |
4184 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4185 | cat >>confdefs.h <<_ACEOF | |
4186 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4187 | _ACEOF | |
4188 | ||
4189 | fi | |
4190 | ||
4191 | done | |
4192 | ||
4193 | ||
4194 | for ac_func in getpagesize | |
4195 | do | |
4196 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4197 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4198 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4199 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4201 | else | |
4202 | cat >conftest.$ac_ext <<_ACEOF | |
4203 | /* confdefs.h. */ | |
4204 | _ACEOF | |
4205 | cat confdefs.h >>conftest.$ac_ext | |
4206 | cat >>conftest.$ac_ext <<_ACEOF | |
4207 | /* end confdefs.h. */ | |
4208 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4209 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4210 | #define $ac_func innocuous_$ac_func | |
4211 | ||
4212 | /* System header to define __stub macros and hopefully few prototypes, | |
4213 | which can conflict with char $ac_func (); below. | |
4214 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4215 | <limits.h> exists even on freestanding compilers. */ | |
4216 | ||
4217 | #ifdef __STDC__ | |
4218 | # include <limits.h> | |
4219 | #else | |
4220 | # include <assert.h> | |
4221 | #endif | |
4222 | ||
4223 | #undef $ac_func | |
4224 | ||
4225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4226 | #ifdef __cplusplus | |
4227 | extern "C" | |
4228 | { | |
4229 | #endif | |
4230 | /* We use char because int might match the return type of a gcc2 | |
4231 | builtin and then its argument prototype would still apply. */ | |
4232 | char $ac_func (); | |
4233 | /* The GNU C library defines this for functions which it implements | |
4234 | to always fail with ENOSYS. Some functions are actually named | |
4235 | something starting with __ and the normal name is an alias. */ | |
4236 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4237 | choke me | |
4238 | #else | |
4239 | char (*f) () = $ac_func; | |
4240 | #endif | |
4241 | #ifdef __cplusplus | |
4242 | } | |
4243 | #endif | |
4244 | ||
4245 | int | |
4246 | main () | |
4247 | { | |
4248 | return f != $ac_func; | |
4249 | ; | |
4250 | return 0; | |
4251 | } | |
4252 | _ACEOF | |
4253 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4255 | (eval $ac_link) 2>conftest.er1 | |
4256 | ac_status=$? | |
4257 | grep -v '^ *+' conftest.er1 >conftest.err | |
4258 | rm -f conftest.er1 | |
4259 | cat conftest.err >&5 | |
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4261 | (exit $ac_status); } && | |
4262 | { ac_try='test -z "$ac_c_werror_flag" | |
4263 | || test ! -s conftest.err' | |
4264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4265 | (eval $ac_try) 2>&5 | |
4266 | ac_status=$? | |
4267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4268 | (exit $ac_status); }; } && | |
4269 | { ac_try='test -s conftest$ac_exeext' | |
4270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4271 | (eval $ac_try) 2>&5 | |
4272 | ac_status=$? | |
4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4274 | (exit $ac_status); }; }; then | |
4275 | eval "$as_ac_var=yes" | |
4276 | else | |
4277 | echo "$as_me: failed program was:" >&5 | |
4278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4279 | ||
4280 | eval "$as_ac_var=no" | |
4281 | fi | |
4282 | rm -f conftest.err conftest.$ac_objext \ | |
4283 | conftest$ac_exeext conftest.$ac_ext | |
4284 | fi | |
4285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4286 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4287 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4288 | cat >>confdefs.h <<_ACEOF | |
4289 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4290 | _ACEOF | |
4291 | ||
4292 | fi | |
4293 | done | |
4294 | ||
4295 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
4296 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
4297 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4299 | else | |
4300 | if test "$cross_compiling" = yes; then | |
4301 | ac_cv_func_mmap_fixed_mapped=no | |
4302 | else | |
4303 | cat >conftest.$ac_ext <<_ACEOF | |
4304 | /* confdefs.h. */ | |
4305 | _ACEOF | |
4306 | cat confdefs.h >>conftest.$ac_ext | |
4307 | cat >>conftest.$ac_ext <<_ACEOF | |
4308 | /* end confdefs.h. */ | |
4309 | $ac_includes_default | |
4310 | /* malloc might have been renamed as rpl_malloc. */ | |
4311 | #undef malloc | |
4312 | ||
4313 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4314 | Here is a matrix of mmap possibilities: | |
4315 | mmap private not fixed | |
4316 | mmap private fixed at somewhere currently unmapped | |
4317 | mmap private fixed at somewhere already mapped | |
4318 | mmap shared not fixed | |
4319 | mmap shared fixed at somewhere currently unmapped | |
4320 | mmap shared fixed at somewhere already mapped | |
4321 | For private mappings, we should verify that changes cannot be read() | |
4322 | back from the file, nor mmap's back from the file at a different | |
4323 | address. (There have been systems where private was not correctly | |
4324 | implemented like the infamous i386 svr4.0, and systems where the | |
4325 | VM page cache was not coherent with the file system buffer cache | |
4326 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
4327 | For shared mappings, we should conversely verify that changes get | |
4328 | propagated back to all the places they're supposed to be. | |
4329 | ||
4330 | Grep wants private fixed already mapped. | |
4331 | The main things grep needs to know about mmap are: | |
4332 | * does it exist and is it safe to write into the mmap'd area | |
4333 | * how to use it (BSD variants) */ | |
4334 | ||
4335 | #include <fcntl.h> | |
4336 | #include <sys/mman.h> | |
4337 | ||
4338 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
4339 | char *malloc (); | |
4340 | #endif | |
4341 | ||
4342 | /* This mess was copied from the GNU getpagesize.h. */ | |
4343 | #if !HAVE_GETPAGESIZE | |
4344 | /* Assume that all systems that can run configure have sys/param.h. */ | |
4345 | # if !HAVE_SYS_PARAM_H | |
4346 | # define HAVE_SYS_PARAM_H 1 | |
4347 | # endif | |
4348 | ||
4349 | # ifdef _SC_PAGESIZE | |
4350 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4351 | # else /* no _SC_PAGESIZE */ | |
4352 | # if HAVE_SYS_PARAM_H | |
4353 | # include <sys/param.h> | |
4354 | # ifdef EXEC_PAGESIZE | |
4355 | # define getpagesize() EXEC_PAGESIZE | |
4356 | # else /* no EXEC_PAGESIZE */ | |
4357 | # ifdef NBPG | |
4358 | # define getpagesize() NBPG * CLSIZE | |
4359 | # ifndef CLSIZE | |
4360 | # define CLSIZE 1 | |
4361 | # endif /* no CLSIZE */ | |
4362 | # else /* no NBPG */ | |
4363 | # ifdef NBPC | |
4364 | # define getpagesize() NBPC | |
4365 | # else /* no NBPC */ | |
4366 | # ifdef PAGESIZE | |
4367 | # define getpagesize() PAGESIZE | |
4368 | # endif /* PAGESIZE */ | |
4369 | # endif /* no NBPC */ | |
4370 | # endif /* no NBPG */ | |
4371 | # endif /* no EXEC_PAGESIZE */ | |
4372 | # else /* no HAVE_SYS_PARAM_H */ | |
4373 | # define getpagesize() 8192 /* punt totally */ | |
4374 | # endif /* no HAVE_SYS_PARAM_H */ | |
4375 | # endif /* no _SC_PAGESIZE */ | |
4376 | ||
4377 | #endif /* no HAVE_GETPAGESIZE */ | |
4378 | ||
4379 | int | |
4380 | main () | |
4381 | { | |
4382 | char *data, *data2, *data3; | |
4383 | int i, pagesize; | |
4384 | int fd; | |
4385 | ||
4386 | pagesize = getpagesize (); | |
4387 | ||
4388 | /* First, make a file with some known garbage in it. */ | |
4389 | data = (char *) malloc (pagesize); | |
4390 | if (!data) | |
4391 | exit (1); | |
4392 | for (i = 0; i < pagesize; ++i) | |
4393 | *(data + i) = rand (); | |
4394 | umask (0); | |
4395 | fd = creat ("conftest.mmap", 0600); | |
4396 | if (fd < 0) | |
4397 | exit (1); | |
4398 | if (write (fd, data, pagesize) != pagesize) | |
4399 | exit (1); | |
4400 | close (fd); | |
4401 | ||
4402 | /* Next, try to mmap the file at a fixed address which already has | |
4403 | something else allocated at it. If we can, also make sure that | |
4404 | we see the same garbage. */ | |
4405 | fd = open ("conftest.mmap", O_RDWR); | |
4406 | if (fd < 0) | |
4407 | exit (1); | |
4408 | data2 = (char *) malloc (2 * pagesize); | |
4409 | if (!data2) | |
4410 | exit (1); | |
4411 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
4412 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
4413 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4414 | exit (1); | |
4415 | for (i = 0; i < pagesize; ++i) | |
4416 | if (*(data + i) != *(data2 + i)) | |
4417 | exit (1); | |
4418 | ||
4419 | /* Finally, make sure that changes to the mapped area do not | |
4420 | percolate back to the file as seen by read(). (This is a bug on | |
4421 | some variants of i386 svr4.0.) */ | |
4422 | for (i = 0; i < pagesize; ++i) | |
4423 | *(data2 + i) = *(data2 + i) + 1; | |
4424 | data3 = (char *) malloc (pagesize); | |
4425 | if (!data3) | |
4426 | exit (1); | |
4427 | if (read (fd, data3, pagesize) != pagesize) | |
4428 | exit (1); | |
4429 | for (i = 0; i < pagesize; ++i) | |
4430 | if (*(data + i) != *(data3 + i)) | |
4431 | exit (1); | |
4432 | close (fd); | |
4433 | exit (0); | |
4434 | } | |
4435 | _ACEOF | |
4436 | rm -f conftest$ac_exeext | |
4437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4438 | (eval $ac_link) 2>&5 | |
4439 | ac_status=$? | |
4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4441 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4443 | (eval $ac_try) 2>&5 | |
4444 | ac_status=$? | |
4445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4446 | (exit $ac_status); }; }; then | |
4447 | ac_cv_func_mmap_fixed_mapped=yes | |
4448 | else | |
4449 | echo "$as_me: program exited with status $ac_status" >&5 | |
4450 | echo "$as_me: failed program was:" >&5 | |
4451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4452 | ||
4453 | ( exit $ac_status ) | |
4454 | ac_cv_func_mmap_fixed_mapped=no | |
4455 | fi | |
4456 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4457 | fi | |
4458 | fi | |
4459 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
4460 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
4461 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
4462 | ||
4463 | cat >>confdefs.h <<\_ACEOF | |
4464 | #define HAVE_MMAP 1 | |
4465 | _ACEOF | |
4466 | ||
4467 | fi | |
4468 | rm -f conftest.mmap | |
4469 | ||
4470 | ||
4471 | ||
4472 | ||
4473 | ||
4474 | ||
4475 | ||
4476 | ||
4477 | ||
4478 | ||
4479 | ||
4480 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
4481 | unistd.h values.h sys/param.h | |
4482 | do | |
4483 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4485 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4486 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4489 | fi | |
4490 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4491 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4492 | else | |
4493 | # Is the header compilable? | |
4494 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4495 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4496 | cat >conftest.$ac_ext <<_ACEOF | |
4497 | /* confdefs.h. */ | |
4498 | _ACEOF | |
4499 | cat confdefs.h >>conftest.$ac_ext | |
4500 | cat >>conftest.$ac_ext <<_ACEOF | |
4501 | /* end confdefs.h. */ | |
4502 | $ac_includes_default | |
4503 | #include <$ac_header> | |
4504 | _ACEOF | |
4505 | rm -f conftest.$ac_objext | |
4506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4507 | (eval $ac_compile) 2>conftest.er1 | |
4508 | ac_status=$? | |
4509 | grep -v '^ *+' conftest.er1 >conftest.err | |
4510 | rm -f conftest.er1 | |
4511 | cat conftest.err >&5 | |
4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4513 | (exit $ac_status); } && | |
4514 | { ac_try='test -z "$ac_c_werror_flag" | |
4515 | || test ! -s conftest.err' | |
4516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4517 | (eval $ac_try) 2>&5 | |
4518 | ac_status=$? | |
4519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4520 | (exit $ac_status); }; } && | |
4521 | { ac_try='test -s conftest.$ac_objext' | |
4522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4523 | (eval $ac_try) 2>&5 | |
4524 | ac_status=$? | |
4525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4526 | (exit $ac_status); }; }; then | |
4527 | ac_header_compiler=yes | |
4528 | else | |
4529 | echo "$as_me: failed program was:" >&5 | |
4530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4531 | ||
4532 | ac_header_compiler=no | |
4533 | fi | |
4534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4535 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4536 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4537 | ||
4538 | # Is the header present? | |
4539 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4540 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4541 | cat >conftest.$ac_ext <<_ACEOF | |
4542 | /* confdefs.h. */ | |
4543 | _ACEOF | |
4544 | cat confdefs.h >>conftest.$ac_ext | |
4545 | cat >>conftest.$ac_ext <<_ACEOF | |
4546 | /* end confdefs.h. */ | |
4547 | #include <$ac_header> | |
4548 | _ACEOF | |
4549 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4550 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4551 | ac_status=$? | |
4552 | grep -v '^ *+' conftest.er1 >conftest.err | |
4553 | rm -f conftest.er1 | |
4554 | cat conftest.err >&5 | |
4555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4556 | (exit $ac_status); } >/dev/null; then | |
4557 | if test -s conftest.err; then | |
4558 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4559 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4560 | else | |
4561 | ac_cpp_err= | |
4562 | fi | |
4563 | else | |
4564 | ac_cpp_err=yes | |
4565 | fi | |
4566 | if test -z "$ac_cpp_err"; then | |
4567 | ac_header_preproc=yes | |
4568 | else | |
4569 | echo "$as_me: failed program was:" >&5 | |
4570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4571 | ||
4572 | ac_header_preproc=no | |
4573 | fi | |
4574 | rm -f conftest.err conftest.$ac_ext | |
4575 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4576 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4577 | ||
4578 | # So? What about this header? | |
4579 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4580 | yes:no: ) | |
4581 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4582 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4583 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4584 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4585 | ac_header_preproc=yes | |
4586 | ;; | |
4587 | no:yes:* ) | |
4588 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4589 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4590 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4591 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4592 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4593 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4594 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4595 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4596 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4597 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4598 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4599 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4600 | ( | |
4601 | cat <<\_ASBOX | |
4602 | ## ------------------------------------------ ## | |
4603 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4604 | ## ------------------------------------------ ## | |
4605 | _ASBOX | |
4606 | ) | | |
4607 | sed "s/^/$as_me: WARNING: /" >&2 | |
4608 | ;; | |
4609 | esac | |
4610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4614 | else | |
4615 | eval "$as_ac_Header=\$ac_header_preproc" | |
4616 | fi | |
4617 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4618 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4619 | ||
4620 | fi | |
4621 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4622 | cat >>confdefs.h <<_ACEOF | |
4623 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4624 | _ACEOF | |
4625 | ||
4626 | fi | |
4627 | ||
4628 | done | |
4629 | ||
4630 | ||
4631 | ||
4632 | ||
4633 | ||
4634 | ||
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
4641 | __argz_count __argz_stringify __argz_next | |
4642 | do | |
4643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4644 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4646 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4648 | else | |
4649 | cat >conftest.$ac_ext <<_ACEOF | |
4650 | /* confdefs.h. */ | |
4651 | _ACEOF | |
4652 | cat confdefs.h >>conftest.$ac_ext | |
4653 | cat >>conftest.$ac_ext <<_ACEOF | |
4654 | /* end confdefs.h. */ | |
4655 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4656 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4657 | #define $ac_func innocuous_$ac_func | |
4658 | ||
4659 | /* System header to define __stub macros and hopefully few prototypes, | |
4660 | which can conflict with char $ac_func (); below. | |
4661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4662 | <limits.h> exists even on freestanding compilers. */ | |
4663 | ||
4664 | #ifdef __STDC__ | |
4665 | # include <limits.h> | |
4666 | #else | |
4667 | # include <assert.h> | |
4668 | #endif | |
4669 | ||
4670 | #undef $ac_func | |
4671 | ||
4672 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4673 | #ifdef __cplusplus | |
4674 | extern "C" | |
4675 | { | |
4676 | #endif | |
4677 | /* We use char because int might match the return type of a gcc2 | |
4678 | builtin and then its argument prototype would still apply. */ | |
4679 | char $ac_func (); | |
4680 | /* The GNU C library defines this for functions which it implements | |
4681 | to always fail with ENOSYS. Some functions are actually named | |
4682 | something starting with __ and the normal name is an alias. */ | |
4683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4684 | choke me | |
4685 | #else | |
4686 | char (*f) () = $ac_func; | |
4687 | #endif | |
4688 | #ifdef __cplusplus | |
4689 | } | |
4690 | #endif | |
4691 | ||
4692 | int | |
4693 | main () | |
4694 | { | |
4695 | return f != $ac_func; | |
4696 | ; | |
4697 | return 0; | |
4698 | } | |
4699 | _ACEOF | |
4700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4702 | (eval $ac_link) 2>conftest.er1 | |
4703 | ac_status=$? | |
4704 | grep -v '^ *+' conftest.er1 >conftest.err | |
4705 | rm -f conftest.er1 | |
4706 | cat conftest.err >&5 | |
4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4708 | (exit $ac_status); } && | |
4709 | { ac_try='test -z "$ac_c_werror_flag" | |
4710 | || test ! -s conftest.err' | |
4711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4712 | (eval $ac_try) 2>&5 | |
4713 | ac_status=$? | |
4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4715 | (exit $ac_status); }; } && | |
4716 | { ac_try='test -s conftest$ac_exeext' | |
4717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4718 | (eval $ac_try) 2>&5 | |
4719 | ac_status=$? | |
4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4721 | (exit $ac_status); }; }; then | |
4722 | eval "$as_ac_var=yes" | |
4723 | else | |
4724 | echo "$as_me: failed program was:" >&5 | |
4725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4726 | ||
4727 | eval "$as_ac_var=no" | |
4728 | fi | |
4729 | rm -f conftest.err conftest.$ac_objext \ | |
4730 | conftest$ac_exeext conftest.$ac_ext | |
4731 | fi | |
4732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4734 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4735 | cat >>confdefs.h <<_ACEOF | |
4736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4737 | _ACEOF | |
4738 | ||
4739 | fi | |
4740 | done | |
4741 | ||
4742 | ||
4743 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
4744 | ||
4745 | for ac_func in stpcpy | |
4746 | do | |
4747 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4748 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4749 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4750 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4752 | else | |
4753 | cat >conftest.$ac_ext <<_ACEOF | |
4754 | /* confdefs.h. */ | |
4755 | _ACEOF | |
4756 | cat confdefs.h >>conftest.$ac_ext | |
4757 | cat >>conftest.$ac_ext <<_ACEOF | |
4758 | /* end confdefs.h. */ | |
4759 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4760 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4761 | #define $ac_func innocuous_$ac_func | |
4762 | ||
4763 | /* System header to define __stub macros and hopefully few prototypes, | |
4764 | which can conflict with char $ac_func (); below. | |
4765 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4766 | <limits.h> exists even on freestanding compilers. */ | |
4767 | ||
4768 | #ifdef __STDC__ | |
4769 | # include <limits.h> | |
4770 | #else | |
4771 | # include <assert.h> | |
4772 | #endif | |
4773 | ||
4774 | #undef $ac_func | |
4775 | ||
4776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4777 | #ifdef __cplusplus | |
4778 | extern "C" | |
4779 | { | |
4780 | #endif | |
4781 | /* We use char because int might match the return type of a gcc2 | |
4782 | builtin and then its argument prototype would still apply. */ | |
4783 | char $ac_func (); | |
4784 | /* The GNU C library defines this for functions which it implements | |
4785 | to always fail with ENOSYS. Some functions are actually named | |
4786 | something starting with __ and the normal name is an alias. */ | |
4787 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4788 | choke me | |
4789 | #else | |
4790 | char (*f) () = $ac_func; | |
4791 | #endif | |
4792 | #ifdef __cplusplus | |
4793 | } | |
4794 | #endif | |
4795 | ||
4796 | int | |
4797 | main () | |
4798 | { | |
4799 | return f != $ac_func; | |
4800 | ; | |
4801 | return 0; | |
4802 | } | |
4803 | _ACEOF | |
4804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4806 | (eval $ac_link) 2>conftest.er1 | |
4807 | ac_status=$? | |
4808 | grep -v '^ *+' conftest.er1 >conftest.err | |
4809 | rm -f conftest.er1 | |
4810 | cat conftest.err >&5 | |
4811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4812 | (exit $ac_status); } && | |
4813 | { ac_try='test -z "$ac_c_werror_flag" | |
4814 | || test ! -s conftest.err' | |
4815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4816 | (eval $ac_try) 2>&5 | |
4817 | ac_status=$? | |
4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4819 | (exit $ac_status); }; } && | |
4820 | { ac_try='test -s conftest$ac_exeext' | |
4821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4822 | (eval $ac_try) 2>&5 | |
4823 | ac_status=$? | |
4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4825 | (exit $ac_status); }; }; then | |
4826 | eval "$as_ac_var=yes" | |
4827 | else | |
4828 | echo "$as_me: failed program was:" >&5 | |
4829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4830 | ||
4831 | eval "$as_ac_var=no" | |
4832 | fi | |
4833 | rm -f conftest.err conftest.$ac_objext \ | |
4834 | conftest$ac_exeext conftest.$ac_ext | |
4835 | fi | |
4836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4837 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4838 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4839 | cat >>confdefs.h <<_ACEOF | |
4840 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4841 | _ACEOF | |
4842 | ||
4843 | fi | |
4844 | done | |
4845 | ||
4846 | fi | |
4847 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
4848 | ||
4849 | cat >>confdefs.h <<\_ACEOF | |
4850 | #define HAVE_STPCPY 1 | |
4851 | _ACEOF | |
4852 | ||
4853 | fi | |
4854 | ||
4855 | if test $ac_cv_header_locale_h = yes; then | |
4856 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 | |
4857 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4858 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4860 | else | |
4861 | cat >conftest.$ac_ext <<_ACEOF | |
4862 | /* confdefs.h. */ | |
4863 | _ACEOF | |
4864 | cat confdefs.h >>conftest.$ac_ext | |
4865 | cat >>conftest.$ac_ext <<_ACEOF | |
4866 | /* end confdefs.h. */ | |
4867 | #include <locale.h> | |
4868 | int | |
4869 | main () | |
4870 | { | |
4871 | return LC_MESSAGES | |
4872 | ; | |
4873 | return 0; | |
4874 | } | |
4875 | _ACEOF | |
4876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4878 | (eval $ac_link) 2>conftest.er1 | |
4879 | ac_status=$? | |
4880 | grep -v '^ *+' conftest.er1 >conftest.err | |
4881 | rm -f conftest.er1 | |
4882 | cat conftest.err >&5 | |
4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4884 | (exit $ac_status); } && | |
4885 | { ac_try='test -z "$ac_c_werror_flag" | |
4886 | || test ! -s conftest.err' | |
4887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4888 | (eval $ac_try) 2>&5 | |
4889 | ac_status=$? | |
4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4891 | (exit $ac_status); }; } && | |
4892 | { ac_try='test -s conftest$ac_exeext' | |
4893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4894 | (eval $ac_try) 2>&5 | |
4895 | ac_status=$? | |
4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4897 | (exit $ac_status); }; }; then | |
4898 | am_cv_val_LC_MESSAGES=yes | |
4899 | else | |
4900 | echo "$as_me: failed program was:" >&5 | |
4901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4902 | ||
4903 | am_cv_val_LC_MESSAGES=no | |
4904 | fi | |
4905 | rm -f conftest.err conftest.$ac_objext \ | |
4906 | conftest$ac_exeext conftest.$ac_ext | |
4907 | fi | |
4908 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 | |
4909 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
4910 | if test $am_cv_val_LC_MESSAGES = yes; then | |
4911 | ||
4912 | cat >>confdefs.h <<\_ACEOF | |
4913 | #define HAVE_LC_MESSAGES 1 | |
4914 | _ACEOF | |
4915 | ||
4916 | fi | |
4917 | fi | |
4918 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
4919 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
4920 | # Check whether --enable-nls or --disable-nls was given. | |
4921 | if test "${enable_nls+set}" = set; then | |
4922 | enableval="$enable_nls" | |
4923 | USE_NLS=$enableval | |
4924 | else | |
4925 | USE_NLS=yes | |
4926 | fi; | |
4927 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4928 | echo "${ECHO_T}$USE_NLS" >&6 | |
4929 | ||
4930 | ||
4931 | USE_INCLUDED_LIBINTL=no | |
4932 | ||
4933 | if test "$USE_NLS" = "yes"; then | |
4934 | ||
4935 | cat >>confdefs.h <<\_ACEOF | |
4936 | #define ENABLE_NLS 1 | |
4937 | _ACEOF | |
4938 | ||
4939 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
4940 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
4941 | ||
4942 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
4943 | if test "${with_included_gettext+set}" = set; then | |
4944 | withval="$with_included_gettext" | |
4945 | nls_cv_force_use_gnu_gettext=$withval | |
4946 | else | |
4947 | nls_cv_force_use_gnu_gettext=no | |
4948 | fi; | |
4949 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4950 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
4951 | ||
4952 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4953 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4954 | nls_cv_header_intl= | |
4955 | nls_cv_header_libgt= | |
4956 | CATOBJEXT=NONE | |
4957 | ||
4958 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4959 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4960 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4961 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4963 | fi | |
4964 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4965 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4966 | else | |
4967 | # Is the header compilable? | |
4968 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4969 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4970 | cat >conftest.$ac_ext <<_ACEOF | |
4971 | /* confdefs.h. */ | |
4972 | _ACEOF | |
4973 | cat confdefs.h >>conftest.$ac_ext | |
4974 | cat >>conftest.$ac_ext <<_ACEOF | |
4975 | /* end confdefs.h. */ | |
4976 | $ac_includes_default | |
4977 | #include <libintl.h> | |
4978 | _ACEOF | |
4979 | rm -f conftest.$ac_objext | |
4980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4981 | (eval $ac_compile) 2>conftest.er1 | |
4982 | ac_status=$? | |
4983 | grep -v '^ *+' conftest.er1 >conftest.err | |
4984 | rm -f conftest.er1 | |
4985 | cat conftest.err >&5 | |
4986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4987 | (exit $ac_status); } && | |
4988 | { ac_try='test -z "$ac_c_werror_flag" | |
4989 | || test ! -s conftest.err' | |
4990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4991 | (eval $ac_try) 2>&5 | |
4992 | ac_status=$? | |
4993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4994 | (exit $ac_status); }; } && | |
4995 | { ac_try='test -s conftest.$ac_objext' | |
4996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4997 | (eval $ac_try) 2>&5 | |
4998 | ac_status=$? | |
4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5000 | (exit $ac_status); }; }; then | |
5001 | ac_header_compiler=yes | |
5002 | else | |
5003 | echo "$as_me: failed program was:" >&5 | |
5004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5005 | ||
5006 | ac_header_compiler=no | |
5007 | fi | |
5008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5009 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5010 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5011 | ||
5012 | # Is the header present? | |
5013 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
5014 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
5015 | cat >conftest.$ac_ext <<_ACEOF | |
5016 | /* confdefs.h. */ | |
5017 | _ACEOF | |
5018 | cat confdefs.h >>conftest.$ac_ext | |
5019 | cat >>conftest.$ac_ext <<_ACEOF | |
5020 | /* end confdefs.h. */ | |
5021 | #include <libintl.h> | |
5022 | _ACEOF | |
5023 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5025 | ac_status=$? | |
5026 | grep -v '^ *+' conftest.er1 >conftest.err | |
5027 | rm -f conftest.er1 | |
5028 | cat conftest.err >&5 | |
5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5030 | (exit $ac_status); } >/dev/null; then | |
5031 | if test -s conftest.err; then | |
5032 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5033 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5034 | else | |
5035 | ac_cpp_err= | |
5036 | fi | |
5037 | else | |
5038 | ac_cpp_err=yes | |
5039 | fi | |
5040 | if test -z "$ac_cpp_err"; then | |
5041 | ac_header_preproc=yes | |
5042 | else | |
5043 | echo "$as_me: failed program was:" >&5 | |
5044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5045 | ||
5046 | ac_header_preproc=no | |
5047 | fi | |
5048 | rm -f conftest.err conftest.$ac_ext | |
5049 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5050 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5051 | ||
5052 | # So? What about this header? | |
5053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5054 | yes:no: ) | |
5055 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5056 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5057 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
5058 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
5059 | ac_header_preproc=yes | |
5060 | ;; | |
5061 | no:yes:* ) | |
5062 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
5063 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
5064 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
5065 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
5066 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
5067 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
5068 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5069 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5070 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
5071 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
5072 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
5073 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
5074 | ( | |
5075 | cat <<\_ASBOX | |
5076 | ## ------------------------------------------ ## | |
5077 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5078 | ## ------------------------------------------ ## | |
5079 | _ASBOX | |
5080 | ) | | |
5081 | sed "s/^/$as_me: WARNING: /" >&2 | |
5082 | ;; | |
5083 | esac | |
5084 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
5085 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
5086 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
5087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5088 | else | |
5089 | ac_cv_header_libintl_h=$ac_header_preproc | |
5090 | fi | |
5091 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
5092 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
5093 | ||
5094 | fi | |
5095 | if test $ac_cv_header_libintl_h = yes; then | |
5096 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
5097 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
5098 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
5099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5100 | else | |
5101 | cat >conftest.$ac_ext <<_ACEOF | |
5102 | /* confdefs.h. */ | |
5103 | _ACEOF | |
5104 | cat confdefs.h >>conftest.$ac_ext | |
5105 | cat >>conftest.$ac_ext <<_ACEOF | |
5106 | /* end confdefs.h. */ | |
5107 | #include <libintl.h> | |
5108 | int | |
5109 | main () | |
5110 | { | |
5111 | return (int) gettext ("") | |
5112 | ; | |
5113 | return 0; | |
5114 | } | |
5115 | _ACEOF | |
5116 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5118 | (eval $ac_link) 2>conftest.er1 | |
5119 | ac_status=$? | |
5120 | grep -v '^ *+' conftest.er1 >conftest.err | |
5121 | rm -f conftest.er1 | |
5122 | cat conftest.err >&5 | |
5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5124 | (exit $ac_status); } && | |
5125 | { ac_try='test -z "$ac_c_werror_flag" | |
5126 | || test ! -s conftest.err' | |
5127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5128 | (eval $ac_try) 2>&5 | |
5129 | ac_status=$? | |
5130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5131 | (exit $ac_status); }; } && | |
5132 | { ac_try='test -s conftest$ac_exeext' | |
5133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5134 | (eval $ac_try) 2>&5 | |
5135 | ac_status=$? | |
5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5137 | (exit $ac_status); }; }; then | |
5138 | gt_cv_func_gettext_libc=yes | |
5139 | else | |
5140 | echo "$as_me: failed program was:" >&5 | |
5141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5142 | ||
5143 | gt_cv_func_gettext_libc=no | |
5144 | fi | |
5145 | rm -f conftest.err conftest.$ac_objext \ | |
5146 | conftest$ac_exeext conftest.$ac_ext | |
5147 | fi | |
5148 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 | |
5149 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
5150 | ||
5151 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5152 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 | |
5153 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
5154 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
5155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5156 | else | |
5157 | ac_check_lib_save_LIBS=$LIBS | |
5158 | LIBS="-lintl $LIBS" | |
5159 | cat >conftest.$ac_ext <<_ACEOF | |
5160 | /* confdefs.h. */ | |
5161 | _ACEOF | |
5162 | cat confdefs.h >>conftest.$ac_ext | |
5163 | cat >>conftest.$ac_ext <<_ACEOF | |
5164 | /* end confdefs.h. */ | |
5165 | ||
5166 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5167 | #ifdef __cplusplus | |
5168 | extern "C" | |
5169 | #endif | |
5170 | /* We use char because int might match the return type of a gcc2 | |
5171 | builtin and then its argument prototype would still apply. */ | |
5172 | char bindtextdomain (); | |
5173 | int | |
5174 | main () | |
5175 | { | |
5176 | bindtextdomain (); | |
5177 | ; | |
5178 | return 0; | |
5179 | } | |
5180 | _ACEOF | |
5181 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5183 | (eval $ac_link) 2>conftest.er1 | |
5184 | ac_status=$? | |
5185 | grep -v '^ *+' conftest.er1 >conftest.err | |
5186 | rm -f conftest.er1 | |
5187 | cat conftest.err >&5 | |
5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5189 | (exit $ac_status); } && | |
5190 | { ac_try='test -z "$ac_c_werror_flag" | |
5191 | || test ! -s conftest.err' | |
5192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5193 | (eval $ac_try) 2>&5 | |
5194 | ac_status=$? | |
5195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5196 | (exit $ac_status); }; } && | |
5197 | { ac_try='test -s conftest$ac_exeext' | |
5198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5199 | (eval $ac_try) 2>&5 | |
5200 | ac_status=$? | |
5201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5202 | (exit $ac_status); }; }; then | |
5203 | ac_cv_lib_intl_bindtextdomain=yes | |
5204 | else | |
5205 | echo "$as_me: failed program was:" >&5 | |
5206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5207 | ||
5208 | ac_cv_lib_intl_bindtextdomain=no | |
5209 | fi | |
5210 | rm -f conftest.err conftest.$ac_objext \ | |
5211 | conftest$ac_exeext conftest.$ac_ext | |
5212 | LIBS=$ac_check_lib_save_LIBS | |
5213 | fi | |
5214 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5215 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5216 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5217 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5218 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5219 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5221 | else | |
5222 | cat >conftest.$ac_ext <<_ACEOF | |
5223 | /* confdefs.h. */ | |
5224 | _ACEOF | |
5225 | cat confdefs.h >>conftest.$ac_ext | |
5226 | cat >>conftest.$ac_ext <<_ACEOF | |
5227 | /* end confdefs.h. */ | |
5228 | ||
5229 | int | |
5230 | main () | |
5231 | { | |
5232 | return (int) gettext ("") | |
5233 | ; | |
5234 | return 0; | |
5235 | } | |
5236 | _ACEOF | |
5237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5239 | (eval $ac_link) 2>conftest.er1 | |
5240 | ac_status=$? | |
5241 | grep -v '^ *+' conftest.er1 >conftest.err | |
5242 | rm -f conftest.er1 | |
5243 | cat conftest.err >&5 | |
5244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5245 | (exit $ac_status); } && | |
5246 | { ac_try='test -z "$ac_c_werror_flag" | |
5247 | || test ! -s conftest.err' | |
5248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5249 | (eval $ac_try) 2>&5 | |
5250 | ac_status=$? | |
5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5252 | (exit $ac_status); }; } && | |
5253 | { ac_try='test -s conftest$ac_exeext' | |
5254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5255 | (eval $ac_try) 2>&5 | |
5256 | ac_status=$? | |
5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5258 | (exit $ac_status); }; }; then | |
5259 | gt_cv_func_gettext_libintl=yes | |
5260 | else | |
5261 | echo "$as_me: failed program was:" >&5 | |
5262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5263 | ||
5264 | gt_cv_func_gettext_libintl=no | |
5265 | fi | |
5266 | rm -f conftest.err conftest.$ac_objext \ | |
5267 | conftest$ac_exeext conftest.$ac_ext | |
5268 | fi | |
5269 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 | |
5270 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
5271 | fi | |
5272 | ||
5273 | fi | |
5274 | ||
5275 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5276 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5277 | ||
5278 | cat >>confdefs.h <<\_ACEOF | |
5279 | #define HAVE_GETTEXT 1 | |
5280 | _ACEOF | |
5281 | ||
5282 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5283 | set dummy msgfmt; ac_word=$2 | |
5284 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5286 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5288 | else | |
5289 | case "$MSGFMT" in | |
5290 | /*) | |
5291 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5292 | ;; | |
5293 | *) | |
5294 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5295 | for ac_dir in $PATH; do | |
5296 | test -z "$ac_dir" && ac_dir=. | |
5297 | if test -f $ac_dir/$ac_word; then | |
5298 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5299 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5300 | break | |
5301 | fi | |
5302 | fi | |
5303 | done | |
5304 | IFS="$ac_save_ifs" | |
5305 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5306 | ;; | |
5307 | esac | |
5308 | fi | |
5309 | MSGFMT="$ac_cv_path_MSGFMT" | |
5310 | if test -n "$MSGFMT"; then | |
5311 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5312 | echo "${ECHO_T}$MSGFMT" >&6 | |
5313 | else | |
5314 | echo "$as_me:$LINENO: result: no" >&5 | |
5315 | echo "${ECHO_T}no" >&6 | |
5316 | fi | |
5317 | if test "$MSGFMT" != "no"; then | |
5318 | ||
5319 | for ac_func in dcgettext | |
5320 | do | |
5321 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5322 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5323 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5324 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5326 | else | |
5327 | cat >conftest.$ac_ext <<_ACEOF | |
5328 | /* confdefs.h. */ | |
5329 | _ACEOF | |
5330 | cat confdefs.h >>conftest.$ac_ext | |
5331 | cat >>conftest.$ac_ext <<_ACEOF | |
5332 | /* end confdefs.h. */ | |
5333 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5334 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5335 | #define $ac_func innocuous_$ac_func | |
5336 | ||
5337 | /* System header to define __stub macros and hopefully few prototypes, | |
5338 | which can conflict with char $ac_func (); below. | |
5339 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5340 | <limits.h> exists even on freestanding compilers. */ | |
5341 | ||
5342 | #ifdef __STDC__ | |
5343 | # include <limits.h> | |
5344 | #else | |
5345 | # include <assert.h> | |
5346 | #endif | |
5347 | ||
5348 | #undef $ac_func | |
5349 | ||
5350 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5351 | #ifdef __cplusplus | |
5352 | extern "C" | |
5353 | { | |
5354 | #endif | |
5355 | /* We use char because int might match the return type of a gcc2 | |
5356 | builtin and then its argument prototype would still apply. */ | |
5357 | char $ac_func (); | |
5358 | /* The GNU C library defines this for functions which it implements | |
5359 | to always fail with ENOSYS. Some functions are actually named | |
5360 | something starting with __ and the normal name is an alias. */ | |
5361 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5362 | choke me | |
5363 | #else | |
5364 | char (*f) () = $ac_func; | |
5365 | #endif | |
5366 | #ifdef __cplusplus | |
5367 | } | |
5368 | #endif | |
5369 | ||
5370 | int | |
5371 | main () | |
5372 | { | |
5373 | return f != $ac_func; | |
5374 | ; | |
5375 | return 0; | |
5376 | } | |
5377 | _ACEOF | |
5378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5380 | (eval $ac_link) 2>conftest.er1 | |
5381 | ac_status=$? | |
5382 | grep -v '^ *+' conftest.er1 >conftest.err | |
5383 | rm -f conftest.er1 | |
5384 | cat conftest.err >&5 | |
5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5386 | (exit $ac_status); } && | |
5387 | { ac_try='test -z "$ac_c_werror_flag" | |
5388 | || test ! -s conftest.err' | |
5389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5390 | (eval $ac_try) 2>&5 | |
5391 | ac_status=$? | |
5392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5393 | (exit $ac_status); }; } && | |
5394 | { ac_try='test -s conftest$ac_exeext' | |
5395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5396 | (eval $ac_try) 2>&5 | |
5397 | ac_status=$? | |
5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5399 | (exit $ac_status); }; }; then | |
5400 | eval "$as_ac_var=yes" | |
5401 | else | |
5402 | echo "$as_me: failed program was:" >&5 | |
5403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5404 | ||
5405 | eval "$as_ac_var=no" | |
5406 | fi | |
5407 | rm -f conftest.err conftest.$ac_objext \ | |
5408 | conftest$ac_exeext conftest.$ac_ext | |
5409 | fi | |
5410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5411 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5412 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5413 | cat >>confdefs.h <<_ACEOF | |
5414 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5415 | _ACEOF | |
5416 | ||
5417 | fi | |
5418 | done | |
5419 | ||
5420 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5421 | set dummy gmsgfmt; ac_word=$2 | |
5422 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5424 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5426 | else | |
5427 | case $GMSGFMT in | |
5428 | [\\/]* | ?:[\\/]*) | |
5429 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5430 | ;; | |
5431 | *) | |
5432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5433 | for as_dir in $PATH | |
5434 | do | |
5435 | IFS=$as_save_IFS | |
5436 | test -z "$as_dir" && as_dir=. | |
5437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5438 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5439 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5441 | break 2 | |
5442 | fi | |
5443 | done | |
5444 | done | |
5445 | ||
5446 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5447 | ;; | |
5448 | esac | |
5449 | fi | |
5450 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5451 | ||
5452 | if test -n "$GMSGFMT"; then | |
5453 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5454 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5455 | else | |
5456 | echo "$as_me:$LINENO: result: no" >&5 | |
5457 | echo "${ECHO_T}no" >&6 | |
5458 | fi | |
5459 | ||
5460 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5461 | set dummy xgettext; ac_word=$2 | |
5462 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5464 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5466 | else | |
5467 | case "$XGETTEXT" in | |
5468 | /*) | |
5469 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5470 | ;; | |
5471 | *) | |
5472 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5473 | for ac_dir in $PATH; do | |
5474 | test -z "$ac_dir" && ac_dir=. | |
5475 | if test -f $ac_dir/$ac_word; then | |
5476 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5477 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5478 | break | |
5479 | fi | |
5480 | fi | |
5481 | done | |
5482 | IFS="$ac_save_ifs" | |
5483 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5484 | ;; | |
5485 | esac | |
5486 | fi | |
5487 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5488 | if test -n "$XGETTEXT"; then | |
5489 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5490 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5491 | else | |
5492 | echo "$as_me:$LINENO: result: no" >&5 | |
5493 | echo "${ECHO_T}no" >&6 | |
5494 | fi | |
5495 | ||
5496 | cat >conftest.$ac_ext <<_ACEOF | |
5497 | /* confdefs.h. */ | |
5498 | _ACEOF | |
5499 | cat confdefs.h >>conftest.$ac_ext | |
5500 | cat >>conftest.$ac_ext <<_ACEOF | |
5501 | /* end confdefs.h. */ | |
5502 | ||
5503 | int | |
5504 | main () | |
5505 | { | |
5506 | extern int _nl_msg_cat_cntr; | |
5507 | return _nl_msg_cat_cntr | |
5508 | ; | |
5509 | return 0; | |
5510 | } | |
5511 | _ACEOF | |
5512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5514 | (eval $ac_link) 2>conftest.er1 | |
5515 | ac_status=$? | |
5516 | grep -v '^ *+' conftest.er1 >conftest.err | |
5517 | rm -f conftest.er1 | |
5518 | cat conftest.err >&5 | |
5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5520 | (exit $ac_status); } && | |
5521 | { ac_try='test -z "$ac_c_werror_flag" | |
5522 | || test ! -s conftest.err' | |
5523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5524 | (eval $ac_try) 2>&5 | |
5525 | ac_status=$? | |
5526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5527 | (exit $ac_status); }; } && | |
5528 | { ac_try='test -s conftest$ac_exeext' | |
5529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5530 | (eval $ac_try) 2>&5 | |
5531 | ac_status=$? | |
5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5533 | (exit $ac_status); }; }; then | |
5534 | CATOBJEXT=.gmo | |
5535 | DATADIRNAME=share | |
5536 | else | |
5537 | echo "$as_me: failed program was:" >&5 | |
5538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5539 | ||
5540 | CATOBJEXT=.mo | |
5541 | DATADIRNAME=lib | |
5542 | fi | |
5543 | rm -f conftest.err conftest.$ac_objext \ | |
5544 | conftest$ac_exeext conftest.$ac_ext | |
5545 | INSTOBJEXT=.mo | |
5546 | fi | |
5547 | fi | |
5548 | ||
5549 | fi | |
5550 | ||
5551 | ||
5552 | ||
5553 | ||
5554 | if test "$CATOBJEXT" = "NONE"; then | |
5555 | nls_cv_use_gnu_gettext=yes | |
5556 | fi | |
5557 | fi | |
5558 | ||
5559 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5560 | INTLOBJS="\$(GETTOBJS)" | |
5561 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5562 | set dummy msgfmt; ac_word=$2 | |
5563 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5564 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5565 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5567 | else | |
5568 | case "$MSGFMT" in | |
5569 | /*) | |
5570 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5571 | ;; | |
5572 | *) | |
5573 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5574 | for ac_dir in $PATH; do | |
5575 | test -z "$ac_dir" && ac_dir=. | |
5576 | if test -f $ac_dir/$ac_word; then | |
5577 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5578 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5579 | break | |
5580 | fi | |
5581 | fi | |
5582 | done | |
5583 | IFS="$ac_save_ifs" | |
5584 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5585 | ;; | |
5586 | esac | |
5587 | fi | |
5588 | MSGFMT="$ac_cv_path_MSGFMT" | |
5589 | if test -n "$MSGFMT"; then | |
5590 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5591 | echo "${ECHO_T}$MSGFMT" >&6 | |
5592 | else | |
5593 | echo "$as_me:$LINENO: result: no" >&5 | |
5594 | echo "${ECHO_T}no" >&6 | |
5595 | fi | |
5596 | ||
5597 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
c906108c | 5598 | set dummy gmsgfmt; ac_word=$2 |
bec39cab AC |
5599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5601 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5603 | else | |
5604 | case $GMSGFMT in | |
5605 | [\\/]* | ?:[\\/]*) | |
5606 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5607 | ;; | |
5608 | *) | |
5609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5610 | for as_dir in $PATH | |
5611 | do | |
5612 | IFS=$as_save_IFS | |
5613 | test -z "$as_dir" && as_dir=. | |
5614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5616 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5618 | break 2 | |
5619 | fi | |
5620 | done | |
5621 | done | |
5622 | ||
5623 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5624 | ;; | |
5625 | esac | |
5626 | fi | |
5627 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5628 | ||
5629 | if test -n "$GMSGFMT"; then | |
5630 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5631 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5632 | else | |
5633 | echo "$as_me:$LINENO: result: no" >&5 | |
5634 | echo "${ECHO_T}no" >&6 | |
5635 | fi | |
5636 | ||
5637 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5638 | set dummy xgettext; ac_word=$2 | |
5639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5641 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5643 | else | |
5644 | case "$XGETTEXT" in | |
5645 | /*) | |
5646 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5647 | ;; | |
5648 | *) | |
5649 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5650 | for ac_dir in $PATH; do | |
5651 | test -z "$ac_dir" && ac_dir=. | |
5652 | if test -f $ac_dir/$ac_word; then | |
5653 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5654 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5655 | break | |
5656 | fi | |
5657 | fi | |
5658 | done | |
5659 | IFS="$ac_save_ifs" | |
5660 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5661 | ;; | |
5662 | esac | |
5663 | fi | |
5664 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5665 | if test -n "$XGETTEXT"; then | |
5666 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5667 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5668 | else | |
5669 | echo "$as_me:$LINENO: result: no" >&5 | |
5670 | echo "${ECHO_T}no" >&6 | |
5671 | fi | |
5672 | ||
5673 | ||
5674 | USE_INCLUDED_LIBINTL=yes | |
5675 | CATOBJEXT=.gmo | |
5676 | INSTOBJEXT=.mo | |
5677 | DATADIRNAME=share | |
5678 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5679 | INTLLIBS=$INTLDEPS | |
5680 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5681 | nls_cv_header_intl=libintl.h | |
5682 | nls_cv_header_libgt=libgettext.h | |
5683 | fi | |
5684 | ||
5685 | if test "$XGETTEXT" != ":"; then | |
5686 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5687 | : ; | |
5688 | else | |
5689 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 | |
5690 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
5691 | XGETTEXT=":" | |
5692 | fi | |
5693 | fi | |
5694 | ||
5695 | # We need to process the po/ directory. | |
5696 | POSUB=po | |
5697 | else | |
5698 | DATADIRNAME=share | |
5699 | nls_cv_header_intl=libintl.h | |
5700 | nls_cv_header_libgt=libgettext.h | |
5701 | fi | |
5702 | ||
5703 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5704 | # because some of the sources are only built for this goal. | |
5705 | if test "$PACKAGE" = gettext; then | |
5706 | USE_NLS=yes | |
5707 | USE_INCLUDED_LIBINTL=yes | |
5708 | fi | |
5709 | ||
5710 | for lang in $ALL_LINGUAS; do | |
5711 | GMOFILES="$GMOFILES $lang.gmo" | |
5712 | POFILES="$POFILES $lang.po" | |
5713 | done | |
5714 | ||
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | if test "x$CATOBJEXT" != "x"; then | |
5729 | if test "x$ALL_LINGUAS" = "x"; then | |
5730 | LINGUAS= | |
5731 | else | |
5732 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5733 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5734 | NEW_LINGUAS= | |
5735 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5736 | case "$ALL_LINGUAS" in | |
5737 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5738 | esac | |
5739 | done | |
5740 | LINGUAS=$NEW_LINGUAS | |
5741 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5742 | echo "${ECHO_T}$LINGUAS" >&6 | |
5743 | fi | |
5744 | ||
5745 | if test -n "$LINGUAS"; then | |
5746 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5747 | fi | |
5748 | fi | |
5749 | ||
5750 | if test $ac_cv_header_locale_h = yes; then | |
5751 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5752 | else | |
5753 | INCLUDE_LOCALE_H="\ | |
5754 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5755 | fi | |
5756 | ||
5757 | ||
5758 | if test -f $srcdir/po2tbl.sed.in; then | |
5759 | if test "$CATOBJEXT" = ".cat"; then | |
5760 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5761 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5762 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5763 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5765 | fi | |
5766 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5767 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5768 | else | |
5769 | # Is the header compilable? | |
5770 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5771 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5772 | cat >conftest.$ac_ext <<_ACEOF | |
5773 | /* confdefs.h. */ | |
5774 | _ACEOF | |
5775 | cat confdefs.h >>conftest.$ac_ext | |
5776 | cat >>conftest.$ac_ext <<_ACEOF | |
5777 | /* end confdefs.h. */ | |
5778 | $ac_includes_default | |
5779 | #include <linux/version.h> | |
5780 | _ACEOF | |
5781 | rm -f conftest.$ac_objext | |
5782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5783 | (eval $ac_compile) 2>conftest.er1 | |
5784 | ac_status=$? | |
5785 | grep -v '^ *+' conftest.er1 >conftest.err | |
5786 | rm -f conftest.er1 | |
5787 | cat conftest.err >&5 | |
5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5789 | (exit $ac_status); } && | |
5790 | { ac_try='test -z "$ac_c_werror_flag" | |
5791 | || test ! -s conftest.err' | |
5792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5793 | (eval $ac_try) 2>&5 | |
5794 | ac_status=$? | |
5795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5796 | (exit $ac_status); }; } && | |
5797 | { ac_try='test -s conftest.$ac_objext' | |
5798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5799 | (eval $ac_try) 2>&5 | |
5800 | ac_status=$? | |
5801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5802 | (exit $ac_status); }; }; then | |
5803 | ac_header_compiler=yes | |
5804 | else | |
5805 | echo "$as_me: failed program was:" >&5 | |
5806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5807 | ||
5808 | ac_header_compiler=no | |
5809 | fi | |
5810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5811 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5812 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5813 | ||
5814 | # Is the header present? | |
5815 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5816 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5817 | cat >conftest.$ac_ext <<_ACEOF | |
5818 | /* confdefs.h. */ | |
5819 | _ACEOF | |
5820 | cat confdefs.h >>conftest.$ac_ext | |
5821 | cat >>conftest.$ac_ext <<_ACEOF | |
5822 | /* end confdefs.h. */ | |
5823 | #include <linux/version.h> | |
5824 | _ACEOF | |
5825 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5826 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5827 | ac_status=$? | |
5828 | grep -v '^ *+' conftest.er1 >conftest.err | |
5829 | rm -f conftest.er1 | |
5830 | cat conftest.err >&5 | |
5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5832 | (exit $ac_status); } >/dev/null; then | |
5833 | if test -s conftest.err; then | |
5834 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5835 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5836 | else | |
5837 | ac_cpp_err= | |
5838 | fi | |
5839 | else | |
5840 | ac_cpp_err=yes | |
5841 | fi | |
5842 | if test -z "$ac_cpp_err"; then | |
5843 | ac_header_preproc=yes | |
5844 | else | |
5845 | echo "$as_me: failed program was:" >&5 | |
5846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5847 | ||
5848 | ac_header_preproc=no | |
5849 | fi | |
5850 | rm -f conftest.err conftest.$ac_ext | |
5851 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5852 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5853 | ||
5854 | # So? What about this header? | |
5855 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5856 | yes:no: ) | |
5857 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5858 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5859 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5860 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5861 | ac_header_preproc=yes | |
5862 | ;; | |
5863 | no:yes:* ) | |
5864 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5865 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5866 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5867 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5868 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5869 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5870 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5871 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5872 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5873 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5874 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5875 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5876 | ( | |
5877 | cat <<\_ASBOX | |
5878 | ## ------------------------------------------ ## | |
5879 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5880 | ## ------------------------------------------ ## | |
5881 | _ASBOX | |
5882 | ) | | |
5883 | sed "s/^/$as_me: WARNING: /" >&2 | |
5884 | ;; | |
5885 | esac | |
5886 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5887 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5888 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5890 | else | |
5891 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5892 | fi | |
5893 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5894 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5895 | ||
5896 | fi | |
5897 | if test $ac_cv_header_linux_version_h = yes; then | |
5898 | msgformat=linux | |
5899 | else | |
5900 | msgformat=xopen | |
5901 | fi | |
5902 | ||
5903 | ||
5904 | ||
5905 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
5906 | fi | |
5907 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5908 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5909 | fi | |
5910 | ||
5911 | if test "$PACKAGE" = "gettext"; then | |
5912 | GT_NO="#NO#" | |
5913 | GT_YES= | |
5914 | else | |
5915 | GT_NO= | |
5916 | GT_YES="#YES#" | |
5917 | fi | |
5918 | ||
5919 | ||
5920 | ||
5921 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
5922 | ||
5923 | ||
5924 | l= | |
5925 | ||
5926 | ||
5927 | if test -f $srcdir/po/POTFILES.in; then | |
5928 | test -d po || mkdir po | |
5929 | if test "x$srcdir" != "x."; then | |
5930 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5931 | posrcprefix="$srcdir/" | |
5932 | else | |
5933 | posrcprefix="../$srcdir/" | |
5934 | fi | |
5935 | else | |
5936 | posrcprefix="../" | |
5937 | fi | |
5938 | rm -f po/POTFILES | |
5939 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5940 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5941 | fi | |
5942 | ||
5943 | ||
5944 | localedir='${datadir}/locale' | |
5945 | ||
5946 | ||
5947 | if test "x$POSUB" != x; then | |
5948 | ||
5949 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5950 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5951 | # Look for .po and .gmo files in the source directory. | |
5952 | CATALOGS= | |
5953 | XLINGUAS= | |
5954 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5955 | # If there aren't any .gmo files the shell will give us the | |
5956 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5957 | # weeded out. | |
5958 | case "$cat" in *\**) | |
5959 | continue;; | |
5960 | esac | |
5961 | # The quadruple backslash is collapsed to a double backslash | |
5962 | # by the backticks, then collapsed again by the double quotes, | |
5963 | # leaving us with one backslash in the sed expression (right | |
5964 | # before the dot that mustn't act as a wildcard). | |
5965 | cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"` | |
5966 | lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"` | |
5967 | # The user is allowed to set LINGUAS to a list of languages to | |
5968 | # install catalogs for. If it's empty that means "all of them." | |
5969 | if test "x$LINGUAS" = x; then | |
5970 | CATALOGS="$CATALOGS $cat" | |
5971 | XLINGUAS="$XLINGUAS $lang" | |
5972 | else | |
5973 | case "$LINGUAS" in *$lang*) | |
5974 | CATALOGS="$CATALOGS $cat" | |
5975 | XLINGUAS="$XLINGUAS $lang" | |
5976 | ;; | |
5977 | esac | |
5978 | fi | |
5979 | done | |
5980 | LINGUAS="$XLINGUAS" | |
5981 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5982 | echo "${ECHO_T}$LINGUAS" >&6 | |
5983 | ||
5984 | CONFIG_ALL="$CONFIG_ALL all-po" | |
5985 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
5986 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
5987 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
5988 | fi | |
5989 | ||
5990 | PACKAGE=gdb | |
5991 | ||
5992 | cat >>confdefs.h <<_ACEOF | |
5993 | #define PACKAGE "$PACKAGE" | |
5994 | _ACEOF | |
5995 | ||
5996 | ||
5997 | ||
5998 | debugdir=${libdir}/debug | |
5999 | ||
6000 | ||
6001 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. | |
6002 | if test "${with_separate_debug_dir+set}" = set; then | |
6003 | withval="$with_separate_debug_dir" | |
6004 | debugdir="${withval}" | |
6005 | fi; | |
6006 | ||
6007 | ||
6008 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
6009 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6010 | ac_define_dir=`eval echo $debugdir` | |
6011 | ac_define_dir=`eval echo $ac_define_dir` | |
6012 | ||
6013 | cat >>confdefs.h <<_ACEOF | |
6014 | #define DEBUGDIR "$ac_define_dir" | |
6015 | _ACEOF | |
6016 | ||
6017 | ||
6018 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
6019 | ||
6020 | ||
6021 | ||
6022 | subdirs="$subdirs doc testsuite" | |
6023 | ||
6024 | ||
6025 | . $srcdir/configure.host | |
6026 | ||
6027 | . $srcdir/configure.tgt | |
6028 | ||
6029 | # Fetch the default architecture and default target vector from BFD. | |
6030 | targ=$target; . $srcdir/../bfd/config.bfd | |
6031 | ||
6032 | # We only want the first architecture, so strip off the others if | |
6033 | # there is more than one. | |
6034 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
6035 | ||
6036 | if test "x$targ_archs" != x; then | |
6037 | ||
6038 | cat >>confdefs.h <<_ACEOF | |
6039 | #define DEFAULT_BFD_ARCH $targ_archs | |
6040 | _ACEOF | |
6041 | ||
6042 | fi | |
6043 | if test "x$targ_defvec" != x; then | |
6044 | ||
6045 | cat >>confdefs.h <<_ACEOF | |
6046 | #define DEFAULT_BFD_VEC $targ_defvec | |
6047 | _ACEOF | |
6048 | ||
6049 | fi | |
6050 | ||
6051 | test "$program_prefix" != NONE && | |
6052 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
6053 | # Use a double $ so make ignores it. | |
6054 | test "$program_suffix" != NONE && | |
6055 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
6056 | # Double any \ or $. echo might interpret backslashes. | |
6057 | # By default was `s,x,x', remove it if useless. | |
6058 | cat <<\_ACEOF >conftest.sed | |
6059 | s/[\\$]/&&/g;s/;s,x,x,$// | |
6060 | _ACEOF | |
6061 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
6062 | rm conftest.sed | |
6063 | ||
6064 | ||
6065 | # The CLI cannot be disabled yet, but may be in the future. | |
6066 | ||
6067 | # Enable CLI. | |
6068 | # Check whether --enable-gdbcli or --disable-gdbcli was given. | |
6069 | if test "${enable_gdbcli+set}" = set; then | |
6070 | enableval="$enable_gdbcli" | |
6071 | case $enableval in | |
6072 | yes) | |
6073 | ;; | |
6074 | no) | |
6075 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
6076 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
6077 | { (exit 1); exit 1; }; } ;; | |
6078 | *) | |
6079 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
6080 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
6081 | { (exit 1); exit 1; }; } ;; | |
6082 | esac | |
6083 | else | |
6084 | enable_gdbcli=yes | |
6085 | fi; | |
6086 | if test x"$enable_gdbcli" = xyes; then | |
6087 | if test -d $srcdir/cli; then | |
6088 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
6089 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
6090 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
6091 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
6092 | fi | |
6093 | fi | |
6094 | ||
6095 | # Enable MI. | |
6096 | # Check whether --enable-gdbmi or --disable-gdbmi was given. | |
6097 | if test "${enable_gdbmi+set}" = set; then | |
6098 | enableval="$enable_gdbmi" | |
6099 | case $enableval in | |
6100 | yes | no) | |
6101 | ;; | |
6102 | *) | |
6103 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
6104 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
6105 | { (exit 1); exit 1; }; } ;; | |
6106 | esac | |
6107 | else | |
6108 | enable_gdbmi=yes | |
6109 | fi; | |
6110 | if test x"$enable_gdbmi" = xyes; then | |
6111 | if test -d $srcdir/mi; then | |
6112 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
6113 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
6114 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
6115 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
6116 | fi | |
6117 | fi | |
6118 | ||
6119 | # Enable TUI. | |
6120 | # Check whether --enable-tui or --disable-tui was given. | |
6121 | if test "${enable_tui+set}" = set; then | |
6122 | enableval="$enable_tui" | |
6123 | case $enableval in | |
6124 | yes | no) | |
6125 | ;; | |
6126 | *) | |
6127 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
6128 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
6129 | { (exit 1); exit 1; }; } ;; | |
6130 | esac | |
6131 | else | |
6132 | enable_tui=yes | |
6133 | fi; | |
6134 | ||
6135 | # Enable gdbtk. | |
6136 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
6137 | if test "${enable_gdbtk+set}" = set; then | |
6138 | enableval="$enable_gdbtk" | |
6139 | case $enableval in | |
6140 | yes | no) | |
6141 | ;; | |
6142 | *) | |
6143 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
6144 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
6145 | { (exit 1); exit 1; }; } ;; | |
6146 | esac | |
6147 | else | |
6148 | if test -d $srcdir/gdbtk; then | |
6149 | enable_gdbtk=yes | |
6150 | else | |
6151 | enable_gdbtk=no | |
6152 | fi | |
6153 | fi; | |
6154 | # We unconditionally disable gdbtk tests on selected platforms. | |
6155 | case $host_os in | |
6156 | go32* | windows*) | |
6157 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
6158 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
6159 | enable_gdbtk=no ;; | |
6160 | esac | |
6161 | ||
6162 | # Libunwind support. | |
6163 | ||
6164 | # Check whether --with-libunwind or --without-libunwind was given. | |
6165 | if test "${with_libunwind+set}" = set; then | |
6166 | withval="$with_libunwind" | |
6167 | case "${withval}" in | |
6168 | yes) enable_libunwind=yes ;; | |
6169 | no) enable_libunwind=no ;; | |
6170 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
6171 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
6172 | { (exit 1); exit 1; }; } ;; | |
6173 | esac | |
6174 | else | |
6175 | ||
6176 | ||
6177 | for ac_header in libunwind.h | |
6178 | do | |
6179 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6181 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6182 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6185 | fi | |
6186 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6187 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6188 | else | |
6189 | # Is the header compilable? | |
6190 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6191 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6192 | cat >conftest.$ac_ext <<_ACEOF | |
6193 | /* confdefs.h. */ | |
6194 | _ACEOF | |
6195 | cat confdefs.h >>conftest.$ac_ext | |
6196 | cat >>conftest.$ac_ext <<_ACEOF | |
6197 | /* end confdefs.h. */ | |
6198 | $ac_includes_default | |
6199 | #include <$ac_header> | |
6200 | _ACEOF | |
6201 | rm -f conftest.$ac_objext | |
6202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6203 | (eval $ac_compile) 2>conftest.er1 | |
6204 | ac_status=$? | |
6205 | grep -v '^ *+' conftest.er1 >conftest.err | |
6206 | rm -f conftest.er1 | |
6207 | cat conftest.err >&5 | |
6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6209 | (exit $ac_status); } && | |
6210 | { ac_try='test -z "$ac_c_werror_flag" | |
6211 | || test ! -s conftest.err' | |
6212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6213 | (eval $ac_try) 2>&5 | |
6214 | ac_status=$? | |
6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6216 | (exit $ac_status); }; } && | |
6217 | { ac_try='test -s conftest.$ac_objext' | |
6218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6219 | (eval $ac_try) 2>&5 | |
6220 | ac_status=$? | |
6221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6222 | (exit $ac_status); }; }; then | |
6223 | ac_header_compiler=yes | |
6224 | else | |
6225 | echo "$as_me: failed program was:" >&5 | |
6226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6227 | ||
6228 | ac_header_compiler=no | |
6229 | fi | |
6230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6231 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6232 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6233 | ||
6234 | # Is the header present? | |
6235 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6236 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6237 | cat >conftest.$ac_ext <<_ACEOF | |
6238 | /* confdefs.h. */ | |
6239 | _ACEOF | |
6240 | cat confdefs.h >>conftest.$ac_ext | |
6241 | cat >>conftest.$ac_ext <<_ACEOF | |
6242 | /* end confdefs.h. */ | |
6243 | #include <$ac_header> | |
6244 | _ACEOF | |
6245 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6246 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6247 | ac_status=$? | |
6248 | grep -v '^ *+' conftest.er1 >conftest.err | |
6249 | rm -f conftest.er1 | |
6250 | cat conftest.err >&5 | |
6251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6252 | (exit $ac_status); } >/dev/null; then | |
6253 | if test -s conftest.err; then | |
6254 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6255 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6256 | else | |
6257 | ac_cpp_err= | |
6258 | fi | |
6259 | else | |
6260 | ac_cpp_err=yes | |
6261 | fi | |
6262 | if test -z "$ac_cpp_err"; then | |
6263 | ac_header_preproc=yes | |
6264 | else | |
6265 | echo "$as_me: failed program was:" >&5 | |
6266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6267 | ||
6268 | ac_header_preproc=no | |
6269 | fi | |
6270 | rm -f conftest.err conftest.$ac_ext | |
6271 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6272 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6273 | ||
6274 | # So? What about this header? | |
6275 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6276 | yes:no: ) | |
6277 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6278 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6279 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6280 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6281 | ac_header_preproc=yes | |
6282 | ;; | |
6283 | no:yes:* ) | |
6284 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6285 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6286 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6287 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6288 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6289 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6290 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6291 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6292 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6293 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6294 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6295 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6296 | ( | |
6297 | cat <<\_ASBOX | |
6298 | ## ------------------------------------------ ## | |
6299 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6300 | ## ------------------------------------------ ## | |
6301 | _ASBOX | |
6302 | ) | | |
6303 | sed "s/^/$as_me: WARNING: /" >&2 | |
6304 | ;; | |
6305 | esac | |
6306 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6310 | else | |
6311 | eval "$as_ac_Header=\$ac_header_preproc" | |
6312 | fi | |
6313 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6314 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6315 | ||
6316 | fi | |
6317 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6318 | cat >>confdefs.h <<_ACEOF | |
6319 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6320 | _ACEOF | |
6321 | ||
6322 | fi | |
6323 | ||
6324 | done | |
6325 | ||
6326 | ||
6327 | for ac_header in libunwind-ia64.h | |
6328 | do | |
6329 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6331 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6332 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6333 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6335 | fi | |
6336 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6337 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6338 | else | |
6339 | # Is the header compilable? | |
6340 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6341 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6342 | cat >conftest.$ac_ext <<_ACEOF | |
6343 | /* confdefs.h. */ | |
6344 | _ACEOF | |
6345 | cat confdefs.h >>conftest.$ac_ext | |
6346 | cat >>conftest.$ac_ext <<_ACEOF | |
6347 | /* end confdefs.h. */ | |
6348 | $ac_includes_default | |
6349 | #include <$ac_header> | |
6350 | _ACEOF | |
6351 | rm -f conftest.$ac_objext | |
6352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6353 | (eval $ac_compile) 2>conftest.er1 | |
6354 | ac_status=$? | |
6355 | grep -v '^ *+' conftest.er1 >conftest.err | |
6356 | rm -f conftest.er1 | |
6357 | cat conftest.err >&5 | |
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6359 | (exit $ac_status); } && | |
6360 | { ac_try='test -z "$ac_c_werror_flag" | |
6361 | || test ! -s conftest.err' | |
6362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6363 | (eval $ac_try) 2>&5 | |
6364 | ac_status=$? | |
6365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6366 | (exit $ac_status); }; } && | |
6367 | { ac_try='test -s conftest.$ac_objext' | |
6368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6369 | (eval $ac_try) 2>&5 | |
6370 | ac_status=$? | |
6371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6372 | (exit $ac_status); }; }; then | |
6373 | ac_header_compiler=yes | |
6374 | else | |
6375 | echo "$as_me: failed program was:" >&5 | |
6376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6377 | ||
6378 | ac_header_compiler=no | |
6379 | fi | |
6380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6381 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6382 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6383 | ||
6384 | # Is the header present? | |
6385 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6386 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6387 | cat >conftest.$ac_ext <<_ACEOF | |
6388 | /* confdefs.h. */ | |
6389 | _ACEOF | |
6390 | cat confdefs.h >>conftest.$ac_ext | |
6391 | cat >>conftest.$ac_ext <<_ACEOF | |
6392 | /* end confdefs.h. */ | |
6393 | #include <$ac_header> | |
6394 | _ACEOF | |
6395 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6396 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6397 | ac_status=$? | |
6398 | grep -v '^ *+' conftest.er1 >conftest.err | |
6399 | rm -f conftest.er1 | |
6400 | cat conftest.err >&5 | |
6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6402 | (exit $ac_status); } >/dev/null; then | |
6403 | if test -s conftest.err; then | |
6404 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6405 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6406 | else | |
6407 | ac_cpp_err= | |
6408 | fi | |
6409 | else | |
6410 | ac_cpp_err=yes | |
6411 | fi | |
6412 | if test -z "$ac_cpp_err"; then | |
6413 | ac_header_preproc=yes | |
6414 | else | |
6415 | echo "$as_me: failed program was:" >&5 | |
6416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6417 | ||
6418 | ac_header_preproc=no | |
6419 | fi | |
6420 | rm -f conftest.err conftest.$ac_ext | |
6421 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6422 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6423 | ||
6424 | # So? What about this header? | |
6425 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6426 | yes:no: ) | |
6427 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6428 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6429 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6430 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6431 | ac_header_preproc=yes | |
6432 | ;; | |
6433 | no:yes:* ) | |
6434 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6435 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6436 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6437 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6438 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6439 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6440 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6441 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6442 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6443 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6444 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6445 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6446 | ( | |
6447 | cat <<\_ASBOX | |
6448 | ## ------------------------------------------ ## | |
6449 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6450 | ## ------------------------------------------ ## | |
6451 | _ASBOX | |
6452 | ) | | |
6453 | sed "s/^/$as_me: WARNING: /" >&2 | |
6454 | ;; | |
6455 | esac | |
6456 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6460 | else | |
6461 | eval "$as_ac_Header=\$ac_header_preproc" | |
6462 | fi | |
6463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6464 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6465 | ||
6466 | fi | |
6467 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6468 | cat >>confdefs.h <<_ACEOF | |
6469 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6470 | _ACEOF | |
6471 | ||
6472 | fi | |
6473 | ||
6474 | done | |
6475 | ||
6476 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
6477 | enable_libunwind=yes; | |
6478 | fi | |
6479 | ||
6480 | fi; | |
6481 | ||
6482 | if test x"$enable_libunwind" = xyes; then | |
6483 | ||
6484 | for ac_header in libunwind.h | |
6485 | do | |
6486 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6488 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6492 | fi | |
6493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6494 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6495 | else | |
6496 | # Is the header compilable? | |
6497 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6498 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6499 | cat >conftest.$ac_ext <<_ACEOF | |
6500 | /* confdefs.h. */ | |
6501 | _ACEOF | |
6502 | cat confdefs.h >>conftest.$ac_ext | |
6503 | cat >>conftest.$ac_ext <<_ACEOF | |
6504 | /* end confdefs.h. */ | |
6505 | $ac_includes_default | |
6506 | #include <$ac_header> | |
6507 | _ACEOF | |
6508 | rm -f conftest.$ac_objext | |
6509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6510 | (eval $ac_compile) 2>conftest.er1 | |
6511 | ac_status=$? | |
6512 | grep -v '^ *+' conftest.er1 >conftest.err | |
6513 | rm -f conftest.er1 | |
6514 | cat conftest.err >&5 | |
6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6516 | (exit $ac_status); } && | |
6517 | { ac_try='test -z "$ac_c_werror_flag" | |
6518 | || test ! -s conftest.err' | |
6519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6520 | (eval $ac_try) 2>&5 | |
6521 | ac_status=$? | |
6522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6523 | (exit $ac_status); }; } && | |
6524 | { ac_try='test -s conftest.$ac_objext' | |
6525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6526 | (eval $ac_try) 2>&5 | |
6527 | ac_status=$? | |
6528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6529 | (exit $ac_status); }; }; then | |
6530 | ac_header_compiler=yes | |
6531 | else | |
6532 | echo "$as_me: failed program was:" >&5 | |
6533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6534 | ||
6535 | ac_header_compiler=no | |
6536 | fi | |
6537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6538 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6539 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6540 | ||
6541 | # Is the header present? | |
6542 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6543 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6544 | cat >conftest.$ac_ext <<_ACEOF | |
6545 | /* confdefs.h. */ | |
6546 | _ACEOF | |
6547 | cat confdefs.h >>conftest.$ac_ext | |
6548 | cat >>conftest.$ac_ext <<_ACEOF | |
6549 | /* end confdefs.h. */ | |
6550 | #include <$ac_header> | |
6551 | _ACEOF | |
6552 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6553 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6554 | ac_status=$? | |
6555 | grep -v '^ *+' conftest.er1 >conftest.err | |
6556 | rm -f conftest.er1 | |
6557 | cat conftest.err >&5 | |
6558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6559 | (exit $ac_status); } >/dev/null; then | |
6560 | if test -s conftest.err; then | |
6561 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6562 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6563 | else | |
6564 | ac_cpp_err= | |
6565 | fi | |
6566 | else | |
6567 | ac_cpp_err=yes | |
6568 | fi | |
6569 | if test -z "$ac_cpp_err"; then | |
6570 | ac_header_preproc=yes | |
6571 | else | |
6572 | echo "$as_me: failed program was:" >&5 | |
6573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6574 | ||
6575 | ac_header_preproc=no | |
6576 | fi | |
6577 | rm -f conftest.err conftest.$ac_ext | |
6578 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6579 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6580 | ||
6581 | # So? What about this header? | |
6582 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6583 | yes:no: ) | |
6584 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6585 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6587 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6588 | ac_header_preproc=yes | |
6589 | ;; | |
6590 | no:yes:* ) | |
6591 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6592 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6593 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6594 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6595 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6596 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6597 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6598 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6599 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6600 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6601 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6602 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6603 | ( | |
6604 | cat <<\_ASBOX | |
6605 | ## ------------------------------------------ ## | |
6606 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6607 | ## ------------------------------------------ ## | |
6608 | _ASBOX | |
6609 | ) | | |
6610 | sed "s/^/$as_me: WARNING: /" >&2 | |
6611 | ;; | |
6612 | esac | |
6613 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6617 | else | |
6618 | eval "$as_ac_Header=\$ac_header_preproc" | |
6619 | fi | |
6620 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6621 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6622 | ||
6623 | fi | |
6624 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6625 | cat >>confdefs.h <<_ACEOF | |
6626 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6627 | _ACEOF | |
6628 | ||
6629 | fi | |
6630 | ||
6631 | done | |
6632 | ||
6633 | ||
6634 | for ac_header in libunwind-ia64.h | |
6635 | do | |
6636 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6642 | fi | |
6643 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6644 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6645 | else | |
6646 | # Is the header compilable? | |
6647 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6648 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6649 | cat >conftest.$ac_ext <<_ACEOF | |
6650 | /* confdefs.h. */ | |
6651 | _ACEOF | |
6652 | cat confdefs.h >>conftest.$ac_ext | |
6653 | cat >>conftest.$ac_ext <<_ACEOF | |
6654 | /* end confdefs.h. */ | |
6655 | $ac_includes_default | |
6656 | #include <$ac_header> | |
6657 | _ACEOF | |
6658 | rm -f conftest.$ac_objext | |
6659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6660 | (eval $ac_compile) 2>conftest.er1 | |
6661 | ac_status=$? | |
6662 | grep -v '^ *+' conftest.er1 >conftest.err | |
6663 | rm -f conftest.er1 | |
6664 | cat conftest.err >&5 | |
6665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6666 | (exit $ac_status); } && | |
6667 | { ac_try='test -z "$ac_c_werror_flag" | |
6668 | || test ! -s conftest.err' | |
6669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6670 | (eval $ac_try) 2>&5 | |
6671 | ac_status=$? | |
6672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6673 | (exit $ac_status); }; } && | |
6674 | { ac_try='test -s conftest.$ac_objext' | |
6675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6676 | (eval $ac_try) 2>&5 | |
6677 | ac_status=$? | |
6678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6679 | (exit $ac_status); }; }; then | |
6680 | ac_header_compiler=yes | |
6681 | else | |
6682 | echo "$as_me: failed program was:" >&5 | |
6683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6684 | ||
6685 | ac_header_compiler=no | |
6686 | fi | |
6687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6688 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6689 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6690 | ||
6691 | # Is the header present? | |
6692 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6693 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6694 | cat >conftest.$ac_ext <<_ACEOF | |
6695 | /* confdefs.h. */ | |
6696 | _ACEOF | |
6697 | cat confdefs.h >>conftest.$ac_ext | |
6698 | cat >>conftest.$ac_ext <<_ACEOF | |
6699 | /* end confdefs.h. */ | |
6700 | #include <$ac_header> | |
6701 | _ACEOF | |
6702 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6703 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6704 | ac_status=$? | |
6705 | grep -v '^ *+' conftest.er1 >conftest.err | |
6706 | rm -f conftest.er1 | |
6707 | cat conftest.err >&5 | |
6708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6709 | (exit $ac_status); } >/dev/null; then | |
6710 | if test -s conftest.err; then | |
6711 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6712 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6713 | else | |
6714 | ac_cpp_err= | |
6715 | fi | |
6716 | else | |
6717 | ac_cpp_err=yes | |
6718 | fi | |
6719 | if test -z "$ac_cpp_err"; then | |
6720 | ac_header_preproc=yes | |
6721 | else | |
6722 | echo "$as_me: failed program was:" >&5 | |
6723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6724 | ||
6725 | ac_header_preproc=no | |
6726 | fi | |
6727 | rm -f conftest.err conftest.$ac_ext | |
6728 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6729 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6730 | ||
6731 | # So? What about this header? | |
6732 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6733 | yes:no: ) | |
6734 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6735 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6736 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6737 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6738 | ac_header_preproc=yes | |
6739 | ;; | |
6740 | no:yes:* ) | |
6741 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6742 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6743 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6744 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6745 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6746 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6747 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6748 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6749 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6750 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6751 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6752 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6753 | ( | |
6754 | cat <<\_ASBOX | |
6755 | ## ------------------------------------------ ## | |
6756 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6757 | ## ------------------------------------------ ## | |
6758 | _ASBOX | |
6759 | ) | | |
6760 | sed "s/^/$as_me: WARNING: /" >&2 | |
6761 | ;; | |
6762 | esac | |
6763 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6767 | else | |
6768 | eval "$as_ac_Header=\$ac_header_preproc" | |
6769 | fi | |
6770 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6771 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6772 | ||
6773 | fi | |
6774 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6775 | cat >>confdefs.h <<_ACEOF | |
6776 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6777 | _ACEOF | |
6778 | ||
6779 | fi | |
6780 | ||
6781 | done | |
6782 | ||
6783 | cat >>confdefs.h <<\_ACEOF | |
6784 | #define HAVE_LIBUNWIND 1 | |
6785 | _ACEOF | |
6786 | ||
6787 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
6788 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
6789 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
6790 | fi | |
6791 | ||
6792 | # Profiling support. | |
6793 | # Check whether --enable-profiling or --disable-profiling was given. | |
6794 | if test "${enable_profiling+set}" = set; then | |
6795 | enableval="$enable_profiling" | |
6796 | case $enableval in | |
6797 | yes | no) | |
6798 | ;; | |
6799 | *) | |
6800 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
6801 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
6802 | { (exit 1); exit 1; }; } ;; | |
6803 | esac | |
6804 | else | |
6805 | enable_profiling=no | |
6806 | fi; | |
6807 | ||
6808 | ||
6809 | ||
6810 | for ac_func in monstartup _mcleanup | |
6811 | do | |
6812 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6813 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6814 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6815 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6817 | else | |
6818 | cat >conftest.$ac_ext <<_ACEOF | |
6819 | /* confdefs.h. */ | |
6820 | _ACEOF | |
6821 | cat confdefs.h >>conftest.$ac_ext | |
6822 | cat >>conftest.$ac_ext <<_ACEOF | |
6823 | /* end confdefs.h. */ | |
6824 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6825 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6826 | #define $ac_func innocuous_$ac_func | |
6827 | ||
6828 | /* System header to define __stub macros and hopefully few prototypes, | |
6829 | which can conflict with char $ac_func (); below. | |
6830 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6831 | <limits.h> exists even on freestanding compilers. */ | |
6832 | ||
6833 | #ifdef __STDC__ | |
6834 | # include <limits.h> | |
6835 | #else | |
6836 | # include <assert.h> | |
6837 | #endif | |
6838 | ||
6839 | #undef $ac_func | |
6840 | ||
6841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6842 | #ifdef __cplusplus | |
6843 | extern "C" | |
6844 | { | |
6845 | #endif | |
6846 | /* We use char because int might match the return type of a gcc2 | |
6847 | builtin and then its argument prototype would still apply. */ | |
6848 | char $ac_func (); | |
6849 | /* The GNU C library defines this for functions which it implements | |
6850 | to always fail with ENOSYS. Some functions are actually named | |
6851 | something starting with __ and the normal name is an alias. */ | |
6852 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6853 | choke me | |
6854 | #else | |
6855 | char (*f) () = $ac_func; | |
6856 | #endif | |
6857 | #ifdef __cplusplus | |
6858 | } | |
6859 | #endif | |
6860 | ||
6861 | int | |
6862 | main () | |
6863 | { | |
6864 | return f != $ac_func; | |
6865 | ; | |
6866 | return 0; | |
6867 | } | |
6868 | _ACEOF | |
6869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6871 | (eval $ac_link) 2>conftest.er1 | |
6872 | ac_status=$? | |
6873 | grep -v '^ *+' conftest.er1 >conftest.err | |
6874 | rm -f conftest.er1 | |
6875 | cat conftest.err >&5 | |
6876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6877 | (exit $ac_status); } && | |
6878 | { ac_try='test -z "$ac_c_werror_flag" | |
6879 | || test ! -s conftest.err' | |
6880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6881 | (eval $ac_try) 2>&5 | |
6882 | ac_status=$? | |
6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6884 | (exit $ac_status); }; } && | |
6885 | { ac_try='test -s conftest$ac_exeext' | |
6886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6887 | (eval $ac_try) 2>&5 | |
6888 | ac_status=$? | |
6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6890 | (exit $ac_status); }; }; then | |
6891 | eval "$as_ac_var=yes" | |
6892 | else | |
6893 | echo "$as_me: failed program was:" >&5 | |
6894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6895 | ||
6896 | eval "$as_ac_var=no" | |
6897 | fi | |
6898 | rm -f conftest.err conftest.$ac_objext \ | |
6899 | conftest$ac_exeext conftest.$ac_ext | |
6900 | fi | |
6901 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6902 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6903 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6904 | cat >>confdefs.h <<_ACEOF | |
6905 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6906 | _ACEOF | |
6907 | ||
6908 | fi | |
6909 | done | |
6910 | ||
6911 | echo "$as_me:$LINENO: checking for _etext" >&5 | |
6912 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
6913 | if test "${ac_cv_var__etext+set}" = set; then | |
6914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6915 | else | |
6916 | cat >conftest.$ac_ext <<_ACEOF | |
6917 | /* confdefs.h. */ | |
6918 | _ACEOF | |
6919 | cat confdefs.h >>conftest.$ac_ext | |
6920 | cat >>conftest.$ac_ext <<_ACEOF | |
6921 | /* end confdefs.h. */ | |
6922 | #include <stdlib.h> | |
6923 | extern char _etext; | |
6924 | ||
6925 | int | |
6926 | main () | |
6927 | { | |
6928 | free (&_etext); | |
6929 | ; | |
6930 | return 0; | |
6931 | } | |
6932 | _ACEOF | |
6933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6935 | (eval $ac_link) 2>conftest.er1 | |
6936 | ac_status=$? | |
6937 | grep -v '^ *+' conftest.er1 >conftest.err | |
6938 | rm -f conftest.er1 | |
6939 | cat conftest.err >&5 | |
6940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6941 | (exit $ac_status); } && | |
6942 | { ac_try='test -z "$ac_c_werror_flag" | |
6943 | || test ! -s conftest.err' | |
6944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6945 | (eval $ac_try) 2>&5 | |
6946 | ac_status=$? | |
6947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6948 | (exit $ac_status); }; } && | |
6949 | { ac_try='test -s conftest$ac_exeext' | |
6950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6951 | (eval $ac_try) 2>&5 | |
6952 | ac_status=$? | |
6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6954 | (exit $ac_status); }; }; then | |
6955 | ac_cv_var__etext=yes | |
6956 | else | |
6957 | echo "$as_me: failed program was:" >&5 | |
6958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6959 | ||
6960 | ac_cv_var__etext=no | |
6961 | fi | |
6962 | rm -f conftest.err conftest.$ac_objext \ | |
6963 | conftest$ac_exeext conftest.$ac_ext | |
6964 | fi | |
6965 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 | |
6966 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
6967 | if test $ac_cv_var__etext = yes; then | |
6968 | ||
6969 | cat >>confdefs.h <<\_ACEOF | |
6970 | #define HAVE__ETEXT 1 | |
6971 | _ACEOF | |
6972 | ||
6973 | fi | |
6974 | if test "$enable_profiling" = yes ; then | |
6975 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
6976 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
6977 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
6978 | { (exit 1); exit 1; }; } | |
6979 | fi | |
6980 | PROFILE_CFLAGS=-pg | |
6981 | OLD_CFLAGS="$CFLAGS" | |
6982 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
6983 | ||
6984 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 | |
6985 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
6986 | if test "${ac_cv_cc_supports_pg+set}" = set; then | |
6987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6988 | else |
bec39cab AC |
6989 | cat >conftest.$ac_ext <<_ACEOF |
6990 | /* confdefs.h. */ | |
6991 | _ACEOF | |
6992 | cat confdefs.h >>conftest.$ac_ext | |
6993 | cat >>conftest.$ac_ext <<_ACEOF | |
6994 | /* end confdefs.h. */ | |
6995 | ||
6996 | int | |
6997 | main () | |
6998 | { | |
6999 | int x; | |
7000 | ; | |
7001 | return 0; | |
7002 | } | |
7003 | _ACEOF | |
7004 | rm -f conftest.$ac_objext | |
7005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7006 | (eval $ac_compile) 2>conftest.er1 | |
7007 | ac_status=$? | |
7008 | grep -v '^ *+' conftest.er1 >conftest.err | |
7009 | rm -f conftest.er1 | |
7010 | cat conftest.err >&5 | |
7011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7012 | (exit $ac_status); } && | |
7013 | { ac_try='test -z "$ac_c_werror_flag" | |
7014 | || test ! -s conftest.err' | |
7015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7016 | (eval $ac_try) 2>&5 | |
7017 | ac_status=$? | |
7018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7019 | (exit $ac_status); }; } && | |
7020 | { ac_try='test -s conftest.$ac_objext' | |
7021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7022 | (eval $ac_try) 2>&5 | |
7023 | ac_status=$? | |
7024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7025 | (exit $ac_status); }; }; then | |
7026 | ac_cv_cc_supports_pg=yes | |
7027 | else | |
7028 | echo "$as_me: failed program was:" >&5 | |
7029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7030 | ||
7031 | ac_cv_cc_supports_pg=no | |
7032 | fi | |
7033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7034 | fi | |
7035 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 | |
7036 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
7037 | ||
7038 | if test $ac_cv_cc_supports_pg = no; then | |
7039 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
7040 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
7041 | { (exit 1); exit 1; }; } | |
7042 | fi | |
7043 | ||
7044 | CFLAGS="$OLD_CFLAGS" | |
7045 | fi | |
7046 | ||
7047 | # --------------------- # | |
7048 | # Checks for programs. # | |
7049 | # --------------------- # | |
7050 | ||
7051 | for ac_prog in gawk mawk nawk awk | |
7052 | do | |
7053 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7054 | set dummy $ac_prog; ac_word=$2 | |
7055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7057 | if test "${ac_cv_prog_AWK+set}" = set; then | |
7058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7059 | else | |
7060 | if test -n "$AWK"; then | |
7061 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
7062 | else | |
7063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7064 | for as_dir in $PATH | |
7065 | do | |
7066 | IFS=$as_save_IFS | |
7067 | test -z "$as_dir" && as_dir=. | |
7068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7070 | ac_cv_prog_AWK="$ac_prog" | |
7071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7072 | break 2 | |
7073 | fi | |
7074 | done | |
7075 | done | |
7076 | ||
7077 | fi | |
7078 | fi | |
7079 | AWK=$ac_cv_prog_AWK | |
7080 | if test -n "$AWK"; then | |
7081 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
7082 | echo "${ECHO_T}$AWK" >&6 | |
7083 | else | |
7084 | echo "$as_me:$LINENO: result: no" >&5 | |
7085 | echo "${ECHO_T}no" >&6 | |
7086 | fi | |
7087 | ||
7088 | test -n "$AWK" && break | |
7089 | done | |
7090 | ||
7091 | # Find a good install program. We prefer a C program (faster), | |
7092 | # so one script is as good as another. But avoid the broken or | |
7093 | # incompatible versions: | |
7094 | # SysV /etc/install, /usr/sbin/install | |
7095 | # SunOS /usr/etc/install | |
7096 | # IRIX /sbin/install | |
7097 | # AIX /bin/install | |
7098 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
7099 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
7100 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
7101 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
7102 | # OS/2's system install, which has a completely different semantic | |
7103 | # ./install, which can be erroneously created by make from ./install.sh. | |
7104 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
7105 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
7106 | if test -z "$INSTALL"; then | |
7107 | if test "${ac_cv_path_install+set}" = set; then | |
7108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7109 | else | |
7110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7111 | for as_dir in $PATH | |
7112 | do | |
7113 | IFS=$as_save_IFS | |
7114 | test -z "$as_dir" && as_dir=. | |
7115 | # Account for people who put trailing slashes in PATH elements. | |
7116 | case $as_dir/ in | |
7117 | ./ | .// | /cC/* | \ | |
7118 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
7119 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
7120 | /usr/ucb/* ) ;; | |
c906108c | 7121 | *) |
bec39cab AC |
7122 | # OSF1 and SCO ODT 3.0 have their own names for install. |
7123 | # Don't use installbsd from OSF since it installs stuff as root | |
7124 | # by default. | |
7125 | for ac_prog in ginstall scoinst install; do | |
7126 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7127 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
7128 | if test $ac_prog = install && | |
7129 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7130 | # AIX install. It has an incompatible calling convention. | |
7131 | : | |
7132 | elif test $ac_prog = install && | |
7133 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7134 | # program-specific install script used by HP pwplus--don't use. | |
7135 | : | |
7136 | else | |
7137 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
7138 | break 3 | |
7139 | fi | |
7140 | fi | |
7141 | done | |
7142 | done | |
7143 | ;; | |
c906108c | 7144 | esac |
bec39cab AC |
7145 | done |
7146 | ||
7147 | ||
7148 | fi | |
7149 | if test "${ac_cv_path_install+set}" = set; then | |
7150 | INSTALL=$ac_cv_path_install | |
7151 | else | |
7152 | # As a last resort, use the slow shell script. We don't cache a | |
7153 | # path for INSTALL within a source directory, because that will | |
7154 | # break other packages using the cache if that directory is | |
7155 | # removed, or if the path is relative. | |
7156 | INSTALL=$ac_install_sh | |
7157 | fi | |
7158 | fi | |
7159 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
7160 | echo "${ECHO_T}$INSTALL" >&6 | |
7161 | ||
7162 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
7163 | # It thinks the first close brace ends the variable substitution. | |
7164 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
7165 | ||
7166 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
7167 | ||
7168 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
7169 | ||
7170 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
7171 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
7172 | LN_S=$as_ln_s | |
7173 | if test "$LN_S" = "ln -s"; then | |
7174 | echo "$as_me:$LINENO: result: yes" >&5 | |
7175 | echo "${ECHO_T}yes" >&6 | |
7176 | else | |
7177 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
7178 | echo "${ECHO_T}no, using $LN_S" >&6 | |
7179 | fi | |
7180 | ||
7181 | if test -n "$ac_tool_prefix"; then | |
7182 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7183 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7184 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7185 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7186 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
7187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7188 | else | |
7189 | if test -n "$RANLIB"; then | |
7190 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7191 | else | |
7192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7193 | for as_dir in $PATH | |
7194 | do | |
7195 | IFS=$as_save_IFS | |
7196 | test -z "$as_dir" && as_dir=. | |
7197 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7198 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7199 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7201 | break 2 | |
7202 | fi | |
7203 | done | |
7204 | done | |
7205 | ||
7206 | fi | |
7207 | fi | |
7208 | RANLIB=$ac_cv_prog_RANLIB | |
7209 | if test -n "$RANLIB"; then | |
7210 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
7211 | echo "${ECHO_T}$RANLIB" >&6 | |
7212 | else | |
7213 | echo "$as_me:$LINENO: result: no" >&5 | |
7214 | echo "${ECHO_T}no" >&6 | |
7215 | fi | |
7216 | ||
7217 | fi | |
7218 | if test -z "$ac_cv_prog_RANLIB"; then | |
7219 | ac_ct_RANLIB=$RANLIB | |
7220 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7221 | set dummy ranlib; ac_word=$2 | |
7222 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7224 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
7225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7226 | else | |
7227 | if test -n "$ac_ct_RANLIB"; then | |
7228 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7229 | else | |
7230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7231 | for as_dir in $PATH | |
7232 | do | |
7233 | IFS=$as_save_IFS | |
7234 | test -z "$as_dir" && as_dir=. | |
7235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7236 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7237 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7239 | break 2 | |
7240 | fi | |
7241 | done | |
7242 | done | |
7243 | ||
7244 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
7245 | fi | |
7246 | fi | |
7247 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7248 | if test -n "$ac_ct_RANLIB"; then | |
7249 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
7250 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
7251 | else | |
7252 | echo "$as_me:$LINENO: result: no" >&5 | |
7253 | echo "${ECHO_T}no" >&6 | |
7254 | fi | |
7255 | ||
7256 | RANLIB=$ac_ct_RANLIB | |
7257 | else | |
7258 | RANLIB="$ac_cv_prog_RANLIB" | |
7259 | fi | |
7260 | ||
7261 | for ac_prog in 'bison -y' byacc | |
7262 | do | |
7263 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7264 | set dummy $ac_prog; ac_word=$2 | |
7265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7267 | if test "${ac_cv_prog_YACC+set}" = set; then | |
7268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7269 | else | |
7270 | if test -n "$YACC"; then | |
7271 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7272 | else | |
7273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7274 | for as_dir in $PATH | |
7275 | do | |
7276 | IFS=$as_save_IFS | |
7277 | test -z "$as_dir" && as_dir=. | |
7278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7280 | ac_cv_prog_YACC="$ac_prog" | |
7281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7282 | break 2 | |
7283 | fi | |
7284 | done | |
7285 | done | |
7286 | ||
7287 | fi | |
7288 | fi | |
7289 | YACC=$ac_cv_prog_YACC | |
7290 | if test -n "$YACC"; then | |
7291 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
7292 | echo "${ECHO_T}$YACC" >&6 | |
7293 | else | |
7294 | echo "$as_me:$LINENO: result: no" >&5 | |
7295 | echo "${ECHO_T}no" >&6 | |
7296 | fi | |
7297 | ||
7298 | test -n "$YACC" && break | |
7299 | done | |
7300 | test -n "$YACC" || YACC="yacc" | |
7301 | ||
7302 | ||
7303 | if test -n "$ac_tool_prefix"; then | |
7304 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7305 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7306 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7308 | if test "${ac_cv_prog_AR+set}" = set; then | |
7309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7310 | else | |
7311 | if test -n "$AR"; then | |
7312 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7313 | else | |
7314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7315 | for as_dir in $PATH | |
7316 | do | |
7317 | IFS=$as_save_IFS | |
7318 | test -z "$as_dir" && as_dir=. | |
7319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7320 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7321 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
7322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7323 | break 2 | |
7324 | fi | |
7325 | done | |
7326 | done | |
7327 | ||
7328 | fi | |
7329 | fi | |
7330 | AR=$ac_cv_prog_AR | |
7331 | if test -n "$AR"; then | |
7332 | echo "$as_me:$LINENO: result: $AR" >&5 | |
7333 | echo "${ECHO_T}$AR" >&6 | |
7334 | else | |
7335 | echo "$as_me:$LINENO: result: no" >&5 | |
7336 | echo "${ECHO_T}no" >&6 | |
7337 | fi | |
7338 | ||
7339 | fi | |
7340 | if test -z "$ac_cv_prog_AR"; then | |
7341 | ac_ct_AR=$AR | |
7342 | # Extract the first word of "ar", so it can be a program name with args. | |
7343 | set dummy ar; ac_word=$2 | |
7344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7346 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
7347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7348 | else | |
7349 | if test -n "$ac_ct_AR"; then | |
7350 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7351 | else | |
7352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7353 | for as_dir in $PATH | |
7354 | do | |
7355 | IFS=$as_save_IFS | |
7356 | test -z "$as_dir" && as_dir=. | |
7357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7358 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7359 | ac_cv_prog_ac_ct_AR="ar" | |
7360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7361 | break 2 | |
7362 | fi | |
7363 | done | |
7364 | done | |
7365 | ||
7366 | fi | |
7367 | fi | |
7368 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7369 | if test -n "$ac_ct_AR"; then | |
7370 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
7371 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
7372 | else | |
7373 | echo "$as_me:$LINENO: result: no" >&5 | |
7374 | echo "${ECHO_T}no" >&6 | |
7375 | fi | |
7376 | ||
7377 | AR=$ac_ct_AR | |
7378 | else | |
7379 | AR="$ac_cv_prog_AR" | |
7380 | fi | |
7381 | ||
7382 | if test -n "$ac_tool_prefix"; then | |
7383 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
7384 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
7385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7387 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
7388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7389 | else | |
7390 | if test -n "$DLLTOOL"; then | |
7391 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7392 | else | |
7393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7394 | for as_dir in $PATH | |
7395 | do | |
7396 | IFS=$as_save_IFS | |
7397 | test -z "$as_dir" && as_dir=. | |
7398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7400 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
7401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7402 | break 2 | |
7403 | fi | |
7404 | done | |
7405 | done | |
7406 | ||
7407 | fi | |
7408 | fi | |
7409 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
7410 | if test -n "$DLLTOOL"; then | |
7411 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
7412 | echo "${ECHO_T}$DLLTOOL" >&6 | |
7413 | else | |
7414 | echo "$as_me:$LINENO: result: no" >&5 | |
7415 | echo "${ECHO_T}no" >&6 | |
7416 | fi | |
7417 | ||
7418 | fi | |
7419 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
7420 | ac_ct_DLLTOOL=$DLLTOOL | |
7421 | # Extract the first word of "dlltool", so it can be a program name with args. | |
7422 | set dummy dlltool; ac_word=$2 | |
7423 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7425 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
7426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7427 | else | |
7428 | if test -n "$ac_ct_DLLTOOL"; then | |
7429 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
7430 | else | |
7431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7432 | for as_dir in $PATH | |
7433 | do | |
7434 | IFS=$as_save_IFS | |
7435 | test -z "$as_dir" && as_dir=. | |
7436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7438 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
7439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7440 | break 2 | |
7441 | fi | |
7442 | done | |
7443 | done | |
7444 | ||
7445 | fi | |
7446 | fi | |
7447 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
7448 | if test -n "$ac_ct_DLLTOOL"; then | |
7449 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
7450 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
7451 | else | |
7452 | echo "$as_me:$LINENO: result: no" >&5 | |
7453 | echo "${ECHO_T}no" >&6 | |
7454 | fi | |
7455 | ||
7456 | DLLTOOL=$ac_ct_DLLTOOL | |
7457 | else | |
7458 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
7459 | fi | |
7460 | ||
7461 | if test -n "$ac_tool_prefix"; then | |
7462 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
7463 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
7464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7466 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
7467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7468 | else | |
7469 | if test -n "$WINDRES"; then | |
7470 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7471 | else | |
7472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7473 | for as_dir in $PATH | |
7474 | do | |
7475 | IFS=$as_save_IFS | |
7476 | test -z "$as_dir" && as_dir=. | |
7477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7479 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
7480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7481 | break 2 | |
7482 | fi | |
7483 | done | |
7484 | done | |
7485 | ||
7486 | fi | |
7487 | fi | |
7488 | WINDRES=$ac_cv_prog_WINDRES | |
7489 | if test -n "$WINDRES"; then | |
7490 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
7491 | echo "${ECHO_T}$WINDRES" >&6 | |
7492 | else | |
7493 | echo "$as_me:$LINENO: result: no" >&5 | |
7494 | echo "${ECHO_T}no" >&6 | |
7495 | fi | |
7496 | ||
7497 | fi | |
7498 | if test -z "$ac_cv_prog_WINDRES"; then | |
7499 | ac_ct_WINDRES=$WINDRES | |
7500 | # Extract the first word of "windres", so it can be a program name with args. | |
7501 | set dummy windres; ac_word=$2 | |
7502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7504 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
7505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7506 | else | |
7507 | if test -n "$ac_ct_WINDRES"; then | |
7508 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
7509 | else | |
7510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7511 | for as_dir in $PATH | |
7512 | do | |
7513 | IFS=$as_save_IFS | |
7514 | test -z "$as_dir" && as_dir=. | |
7515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7516 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7517 | ac_cv_prog_ac_ct_WINDRES="windres" | |
7518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7519 | break 2 | |
7520 | fi | |
7521 | done | |
7522 | done | |
7523 | ||
7524 | fi | |
7525 | fi | |
7526 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
7527 | if test -n "$ac_ct_WINDRES"; then | |
7528 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
7529 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
7530 | else | |
7531 | echo "$as_me:$LINENO: result: no" >&5 | |
7532 | echo "${ECHO_T}no" >&6 | |
c906108c | 7533 | fi |
bec39cab AC |
7534 | |
7535 | WINDRES=$ac_ct_WINDRES | |
c906108c | 7536 | else |
bec39cab | 7537 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
7538 | fi |
7539 | ||
bec39cab AC |
7540 | |
7541 | # Needed for GNU/Hurd. | |
7542 | if test -n "$ac_tool_prefix"; then | |
7543 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
7544 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
7545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7547 | if test "${ac_cv_prog_MIG+set}" = set; then | |
7548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7549 | else |
bec39cab AC |
7550 | if test -n "$MIG"; then |
7551 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
7552 | else | |
7553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7554 | for as_dir in $PATH | |
7555 | do | |
7556 | IFS=$as_save_IFS | |
7557 | test -z "$as_dir" && as_dir=. | |
7558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7560 | ac_cv_prog_MIG="${ac_tool_prefix}mig" | |
7561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7562 | break 2 | |
7563 | fi | |
7564 | done | |
7565 | done | |
7566 | ||
c906108c | 7567 | fi |
bec39cab AC |
7568 | fi |
7569 | MIG=$ac_cv_prog_MIG | |
7570 | if test -n "$MIG"; then | |
7571 | echo "$as_me:$LINENO: result: $MIG" >&5 | |
7572 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 7573 | else |
bec39cab AC |
7574 | echo "$as_me:$LINENO: result: no" >&5 |
7575 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
7576 | fi |
7577 | ||
bec39cab AC |
7578 | fi |
7579 | if test -z "$ac_cv_prog_MIG"; then | |
7580 | ac_ct_MIG=$MIG | |
7581 | # Extract the first word of "mig", so it can be a program name with args. | |
7582 | set dummy mig; ac_word=$2 | |
7583 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7585 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then | |
7586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7587 | else | |
7588 | if test -n "$ac_ct_MIG"; then | |
7589 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
7590 | else | |
7591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7592 | for as_dir in $PATH | |
7593 | do | |
7594 | IFS=$as_save_IFS | |
7595 | test -z "$as_dir" && as_dir=. | |
7596 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7598 | ac_cv_prog_ac_ct_MIG="mig" | |
7599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7600 | break 2 | |
7601 | fi | |
7602 | done | |
7603 | done | |
c906108c | 7604 | |
bec39cab AC |
7605 | fi |
7606 | fi | |
7607 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
7608 | if test -n "$ac_ct_MIG"; then | |
7609 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 | |
7610 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
7611 | else | |
7612 | echo "$as_me:$LINENO: result: no" >&5 | |
7613 | echo "${ECHO_T}no" >&6 | |
7614 | fi | |
c906108c | 7615 | |
bec39cab AC |
7616 | MIG=$ac_ct_MIG |
7617 | else | |
7618 | MIG="$ac_cv_prog_MIG" | |
7619 | fi | |
c906108c | 7620 | |
c906108c | 7621 | |
bec39cab AC |
7622 | # ---------------------- # |
7623 | # Checks for libraries. # | |
7624 | # ---------------------- # | |
c906108c | 7625 | |
bec39cab | 7626 | # We might need to link with -lm; most simulators need it. |
c906108c | 7627 | |
bec39cab AC |
7628 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
7629 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
7630 | if test "${ac_cv_lib_m_main+set}" = set; then | |
7631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7632 | else | |
7633 | ac_check_lib_save_LIBS=$LIBS | |
7634 | LIBS="-lm $LIBS" | |
7635 | cat >conftest.$ac_ext <<_ACEOF | |
7636 | /* confdefs.h. */ | |
7637 | _ACEOF | |
7638 | cat confdefs.h >>conftest.$ac_ext | |
7639 | cat >>conftest.$ac_ext <<_ACEOF | |
7640 | /* end confdefs.h. */ | |
c906108c | 7641 | |
c906108c | 7642 | |
bec39cab AC |
7643 | int |
7644 | main () | |
7645 | { | |
7646 | main (); | |
7647 | ; | |
7648 | return 0; | |
7649 | } | |
7650 | _ACEOF | |
7651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7653 | (eval $ac_link) 2>conftest.er1 | |
7654 | ac_status=$? | |
7655 | grep -v '^ *+' conftest.er1 >conftest.err | |
7656 | rm -f conftest.er1 | |
7657 | cat conftest.err >&5 | |
7658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7659 | (exit $ac_status); } && | |
7660 | { ac_try='test -z "$ac_c_werror_flag" | |
7661 | || test ! -s conftest.err' | |
7662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7663 | (eval $ac_try) 2>&5 | |
7664 | ac_status=$? | |
7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7666 | (exit $ac_status); }; } && | |
7667 | { ac_try='test -s conftest$ac_exeext' | |
7668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7669 | (eval $ac_try) 2>&5 | |
7670 | ac_status=$? | |
7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7672 | (exit $ac_status); }; }; then | |
7673 | ac_cv_lib_m_main=yes | |
7674 | else | |
7675 | echo "$as_me: failed program was:" >&5 | |
7676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7677 | ||
7678 | ac_cv_lib_m_main=no | |
7679 | fi | |
7680 | rm -f conftest.err conftest.$ac_objext \ | |
7681 | conftest$ac_exeext conftest.$ac_ext | |
7682 | LIBS=$ac_check_lib_save_LIBS | |
7683 | fi | |
7684 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | |
7685 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
7686 | if test $ac_cv_lib_m_main = yes; then | |
7687 | cat >>confdefs.h <<_ACEOF | |
7688 | #define HAVE_LIBM 1 | |
7689 | _ACEOF | |
7690 | ||
7691 | LIBS="-lm $LIBS" | |
c906108c | 7692 | |
c906108c | 7693 | fi |
bec39cab AC |
7694 | |
7695 | ||
7696 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
7697 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
7698 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
7699 | # is known to have this problem). Therefore we avoid libw if we can. | |
7700 | echo "$as_me:$LINENO: checking for wctype" >&5 | |
7701 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
7702 | if test "${ac_cv_func_wctype+set}" = set; then | |
7703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7704 | else | |
7705 | cat >conftest.$ac_ext <<_ACEOF | |
7706 | /* confdefs.h. */ | |
7707 | _ACEOF | |
7708 | cat confdefs.h >>conftest.$ac_ext | |
7709 | cat >>conftest.$ac_ext <<_ACEOF | |
7710 | /* end confdefs.h. */ | |
7711 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
7712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7713 | #define wctype innocuous_wctype | |
7714 | ||
7715 | /* System header to define __stub macros and hopefully few prototypes, | |
7716 | which can conflict with char wctype (); below. | |
7717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7718 | <limits.h> exists even on freestanding compilers. */ | |
7719 | ||
7720 | #ifdef __STDC__ | |
7721 | # include <limits.h> | |
7722 | #else | |
7723 | # include <assert.h> | |
7724 | #endif | |
7725 | ||
7726 | #undef wctype | |
7727 | ||
7728 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7729 | #ifdef __cplusplus | |
7730 | extern "C" | |
7731 | { | |
7732 | #endif | |
7733 | /* We use char because int might match the return type of a gcc2 | |
7734 | builtin and then its argument prototype would still apply. */ | |
7735 | char wctype (); | |
7736 | /* The GNU C library defines this for functions which it implements | |
7737 | to always fail with ENOSYS. Some functions are actually named | |
7738 | something starting with __ and the normal name is an alias. */ | |
7739 | #if defined (__stub_wctype) || defined (__stub___wctype) | |
7740 | choke me | |
7741 | #else | |
7742 | char (*f) () = wctype; | |
7743 | #endif | |
7744 | #ifdef __cplusplus | |
7745 | } | |
7746 | #endif | |
7747 | ||
7748 | int | |
7749 | main () | |
7750 | { | |
7751 | return f != wctype; | |
7752 | ; | |
7753 | return 0; | |
7754 | } | |
7755 | _ACEOF | |
7756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7758 | (eval $ac_link) 2>conftest.er1 | |
7759 | ac_status=$? | |
7760 | grep -v '^ *+' conftest.er1 >conftest.err | |
7761 | rm -f conftest.er1 | |
7762 | cat conftest.err >&5 | |
7763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7764 | (exit $ac_status); } && | |
7765 | { ac_try='test -z "$ac_c_werror_flag" | |
7766 | || test ! -s conftest.err' | |
7767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7768 | (eval $ac_try) 2>&5 | |
7769 | ac_status=$? | |
7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7771 | (exit $ac_status); }; } && | |
7772 | { ac_try='test -s conftest$ac_exeext' | |
7773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7774 | (eval $ac_try) 2>&5 | |
7775 | ac_status=$? | |
7776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7777 | (exit $ac_status); }; }; then | |
7778 | ac_cv_func_wctype=yes | |
7779 | else | |
7780 | echo "$as_me: failed program was:" >&5 | |
7781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7782 | ||
7783 | ac_cv_func_wctype=no | |
7784 | fi | |
7785 | rm -f conftest.err conftest.$ac_objext \ | |
7786 | conftest$ac_exeext conftest.$ac_ext | |
7787 | fi | |
7788 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 | |
7789 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
7790 | if test $ac_cv_func_wctype = yes; then | |
7791 | : | |
c906108c | 7792 | else |
c906108c | 7793 | |
bec39cab AC |
7794 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
7795 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
7796 | if test "${ac_cv_lib_w_wctype+set}" = set; then | |
7797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7798 | else | |
7799 | ac_check_lib_save_LIBS=$LIBS | |
7800 | LIBS="-lw $LIBS" | |
7801 | cat >conftest.$ac_ext <<_ACEOF | |
7802 | /* confdefs.h. */ | |
7803 | _ACEOF | |
7804 | cat confdefs.h >>conftest.$ac_ext | |
7805 | cat >>conftest.$ac_ext <<_ACEOF | |
7806 | /* end confdefs.h. */ | |
c906108c | 7807 | |
bec39cab AC |
7808 | /* Override any gcc2 internal prototype to avoid an error. */ |
7809 | #ifdef __cplusplus | |
7810 | extern "C" | |
7811 | #endif | |
7812 | /* We use char because int might match the return type of a gcc2 | |
7813 | builtin and then its argument prototype would still apply. */ | |
7814 | char wctype (); | |
7815 | int | |
7816 | main () | |
7817 | { | |
7818 | wctype (); | |
7819 | ; | |
7820 | return 0; | |
7821 | } | |
7822 | _ACEOF | |
7823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7825 | (eval $ac_link) 2>conftest.er1 | |
7826 | ac_status=$? | |
7827 | grep -v '^ *+' conftest.er1 >conftest.err | |
7828 | rm -f conftest.er1 | |
7829 | cat conftest.err >&5 | |
7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7831 | (exit $ac_status); } && | |
7832 | { ac_try='test -z "$ac_c_werror_flag" | |
7833 | || test ! -s conftest.err' | |
7834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7835 | (eval $ac_try) 2>&5 | |
7836 | ac_status=$? | |
7837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7838 | (exit $ac_status); }; } && | |
7839 | { ac_try='test -s conftest$ac_exeext' | |
7840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7841 | (eval $ac_try) 2>&5 | |
7842 | ac_status=$? | |
7843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7844 | (exit $ac_status); }; }; then | |
7845 | ac_cv_lib_w_wctype=yes | |
7846 | else | |
7847 | echo "$as_me: failed program was:" >&5 | |
7848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7849 | ||
7850 | ac_cv_lib_w_wctype=no | |
7851 | fi | |
7852 | rm -f conftest.err conftest.$ac_objext \ | |
7853 | conftest$ac_exeext conftest.$ac_ext | |
7854 | LIBS=$ac_check_lib_save_LIBS | |
7855 | fi | |
7856 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 | |
7857 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
7858 | if test $ac_cv_lib_w_wctype = yes; then | |
7859 | cat >>confdefs.h <<_ACEOF | |
7860 | #define HAVE_LIBW 1 | |
7861 | _ACEOF | |
c906108c | 7862 | |
bec39cab | 7863 | LIBS="-lw $LIBS" |
c906108c | 7864 | |
bec39cab | 7865 | fi |
c906108c | 7866 | |
bec39cab | 7867 | fi |
c906108c | 7868 | |
ddc9cd0f | 7869 | |
bec39cab AC |
7870 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
7871 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 | |
7872 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
7873 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
7874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7875 | else | |
7876 | ac_func_search_save_LIBS=$LIBS | |
7877 | ac_cv_search_gethostbyname=no | |
7878 | cat >conftest.$ac_ext <<_ACEOF | |
7879 | /* confdefs.h. */ | |
7880 | _ACEOF | |
7881 | cat confdefs.h >>conftest.$ac_ext | |
7882 | cat >>conftest.$ac_ext <<_ACEOF | |
7883 | /* end confdefs.h. */ | |
ddc9cd0f | 7884 | |
bec39cab AC |
7885 | /* Override any gcc2 internal prototype to avoid an error. */ |
7886 | #ifdef __cplusplus | |
7887 | extern "C" | |
7888 | #endif | |
7889 | /* We use char because int might match the return type of a gcc2 | |
7890 | builtin and then its argument prototype would still apply. */ | |
7891 | char gethostbyname (); | |
7892 | int | |
7893 | main () | |
7894 | { | |
7895 | gethostbyname (); | |
7896 | ; | |
7897 | return 0; | |
7898 | } | |
7899 | _ACEOF | |
7900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7902 | (eval $ac_link) 2>conftest.er1 | |
7903 | ac_status=$? | |
7904 | grep -v '^ *+' conftest.er1 >conftest.err | |
7905 | rm -f conftest.er1 | |
7906 | cat conftest.err >&5 | |
7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7908 | (exit $ac_status); } && | |
7909 | { ac_try='test -z "$ac_c_werror_flag" | |
7910 | || test ! -s conftest.err' | |
7911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7912 | (eval $ac_try) 2>&5 | |
7913 | ac_status=$? | |
7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7915 | (exit $ac_status); }; } && | |
7916 | { ac_try='test -s conftest$ac_exeext' | |
7917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7918 | (eval $ac_try) 2>&5 | |
7919 | ac_status=$? | |
7920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7921 | (exit $ac_status); }; }; then | |
7922 | ac_cv_search_gethostbyname="none required" | |
7923 | else | |
7924 | echo "$as_me: failed program was:" >&5 | |
7925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 7926 | |
bec39cab AC |
7927 | fi |
7928 | rm -f conftest.err conftest.$ac_objext \ | |
7929 | conftest$ac_exeext conftest.$ac_ext | |
7930 | if test "$ac_cv_search_gethostbyname" = no; then | |
7931 | for ac_lib in nsl; do | |
7932 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7933 | cat >conftest.$ac_ext <<_ACEOF | |
7934 | /* confdefs.h. */ | |
7935 | _ACEOF | |
7936 | cat confdefs.h >>conftest.$ac_ext | |
7937 | cat >>conftest.$ac_ext <<_ACEOF | |
7938 | /* end confdefs.h. */ | |
ddc9cd0f | 7939 | |
bec39cab AC |
7940 | /* Override any gcc2 internal prototype to avoid an error. */ |
7941 | #ifdef __cplusplus | |
7942 | extern "C" | |
7943 | #endif | |
7944 | /* We use char because int might match the return type of a gcc2 | |
7945 | builtin and then its argument prototype would still apply. */ | |
7946 | char gethostbyname (); | |
7947 | int | |
7948 | main () | |
7949 | { | |
7950 | gethostbyname (); | |
7951 | ; | |
7952 | return 0; | |
7953 | } | |
7954 | _ACEOF | |
7955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7957 | (eval $ac_link) 2>conftest.er1 | |
7958 | ac_status=$? | |
7959 | grep -v '^ *+' conftest.er1 >conftest.err | |
7960 | rm -f conftest.er1 | |
7961 | cat conftest.err >&5 | |
7962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7963 | (exit $ac_status); } && | |
7964 | { ac_try='test -z "$ac_c_werror_flag" | |
7965 | || test ! -s conftest.err' | |
7966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7967 | (eval $ac_try) 2>&5 | |
7968 | ac_status=$? | |
7969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7970 | (exit $ac_status); }; } && | |
7971 | { ac_try='test -s conftest$ac_exeext' | |
7972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7973 | (eval $ac_try) 2>&5 | |
7974 | ac_status=$? | |
7975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7976 | (exit $ac_status); }; }; then | |
7977 | ac_cv_search_gethostbyname="-l$ac_lib" | |
7978 | break | |
7979 | else | |
7980 | echo "$as_me: failed program was:" >&5 | |
7981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7982 | ||
7983 | fi | |
7984 | rm -f conftest.err conftest.$ac_objext \ | |
7985 | conftest$ac_exeext conftest.$ac_ext | |
ddc9cd0f | 7986 | done |
bec39cab AC |
7987 | fi |
7988 | LIBS=$ac_func_search_save_LIBS | |
7989 | fi | |
7990 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | |
7991 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
7992 | if test "$ac_cv_search_gethostbyname" != no; then | |
7993 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
ddc9cd0f | 7994 | |
ddc9cd0f AC |
7995 | fi |
7996 | ||
0fbb3da7 | 7997 | |
bec39cab AC |
7998 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
7999 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
8000 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
8001 | if test "${ac_cv_search_socketpair+set}" = set; then | |
8002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8003 | else | |
8004 | ac_func_search_save_LIBS=$LIBS | |
8005 | ac_cv_search_socketpair=no | |
8006 | cat >conftest.$ac_ext <<_ACEOF | |
8007 | /* confdefs.h. */ | |
8008 | _ACEOF | |
8009 | cat confdefs.h >>conftest.$ac_ext | |
8010 | cat >>conftest.$ac_ext <<_ACEOF | |
8011 | /* end confdefs.h. */ | |
0fbb3da7 | 8012 | |
bec39cab AC |
8013 | /* Override any gcc2 internal prototype to avoid an error. */ |
8014 | #ifdef __cplusplus | |
8015 | extern "C" | |
8016 | #endif | |
8017 | /* We use char because int might match the return type of a gcc2 | |
8018 | builtin and then its argument prototype would still apply. */ | |
8019 | char socketpair (); | |
8020 | int | |
8021 | main () | |
8022 | { | |
8023 | socketpair (); | |
8024 | ; | |
8025 | return 0; | |
8026 | } | |
8027 | _ACEOF | |
8028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8030 | (eval $ac_link) 2>conftest.er1 | |
8031 | ac_status=$? | |
8032 | grep -v '^ *+' conftest.er1 >conftest.err | |
8033 | rm -f conftest.er1 | |
8034 | cat conftest.err >&5 | |
8035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8036 | (exit $ac_status); } && | |
8037 | { ac_try='test -z "$ac_c_werror_flag" | |
8038 | || test ! -s conftest.err' | |
8039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8040 | (eval $ac_try) 2>&5 | |
8041 | ac_status=$? | |
8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8043 | (exit $ac_status); }; } && | |
8044 | { ac_try='test -s conftest$ac_exeext' | |
8045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8046 | (eval $ac_try) 2>&5 | |
8047 | ac_status=$? | |
8048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8049 | (exit $ac_status); }; }; then | |
8050 | ac_cv_search_socketpair="none required" | |
8051 | else | |
8052 | echo "$as_me: failed program was:" >&5 | |
8053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 8054 | |
5b5d99cf | 8055 | fi |
bec39cab AC |
8056 | rm -f conftest.err conftest.$ac_objext \ |
8057 | conftest$ac_exeext conftest.$ac_ext | |
8058 | if test "$ac_cv_search_socketpair" = no; then | |
8059 | for ac_lib in socket; do | |
8060 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8061 | cat >conftest.$ac_ext <<_ACEOF | |
8062 | /* confdefs.h. */ | |
8063 | _ACEOF | |
8064 | cat confdefs.h >>conftest.$ac_ext | |
8065 | cat >>conftest.$ac_ext <<_ACEOF | |
8066 | /* end confdefs.h. */ | |
5b5d99cf | 8067 | |
bec39cab AC |
8068 | /* Override any gcc2 internal prototype to avoid an error. */ |
8069 | #ifdef __cplusplus | |
8070 | extern "C" | |
8071 | #endif | |
8072 | /* We use char because int might match the return type of a gcc2 | |
8073 | builtin and then its argument prototype would still apply. */ | |
8074 | char socketpair (); | |
8075 | int | |
8076 | main () | |
8077 | { | |
8078 | socketpair (); | |
8079 | ; | |
8080 | return 0; | |
8081 | } | |
8082 | _ACEOF | |
8083 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8085 | (eval $ac_link) 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); } && | |
8092 | { ac_try='test -z "$ac_c_werror_flag" | |
8093 | || test ! -s conftest.err' | |
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_exeext' | |
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_cv_search_socketpair="-l$ac_lib" | |
8106 | break | |
8107 | else | |
8108 | echo "$as_me: failed program was:" >&5 | |
8109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8110 | |
bec39cab AC |
8111 | fi |
8112 | rm -f conftest.err conftest.$ac_objext \ | |
8113 | conftest$ac_exeext conftest.$ac_ext | |
8114 | done | |
8115 | fi | |
8116 | LIBS=$ac_func_search_save_LIBS | |
8117 | fi | |
8118 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
8119 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
8120 | if test "$ac_cv_search_socketpair" != no; then | |
8121 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
96baa820 | 8122 | |
bec39cab | 8123 | fi |
96baa820 | 8124 | |
c906108c | 8125 | |
bec39cab AC |
8126 | # For the TUI, we need enhanced curses functionality. |
8127 | # | |
8128 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
8129 | # curses library because the latter might not provide all the | |
8130 | # functionality we need. However, this leads to problems on systems | |
8131 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
8132 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
8133 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
8134 | # a situation. | |
8135 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 | |
8136 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
8137 | if test "${ac_cv_search_waddstr+set}" = set; then | |
8138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8139 | else | |
8140 | ac_func_search_save_LIBS=$LIBS | |
8141 | ac_cv_search_waddstr=no | |
8142 | cat >conftest.$ac_ext <<_ACEOF | |
8143 | /* confdefs.h. */ | |
8144 | _ACEOF | |
8145 | cat confdefs.h >>conftest.$ac_ext | |
8146 | cat >>conftest.$ac_ext <<_ACEOF | |
8147 | /* end confdefs.h. */ | |
c906108c | 8148 | |
bec39cab AC |
8149 | /* Override any gcc2 internal prototype to avoid an error. */ |
8150 | #ifdef __cplusplus | |
8151 | extern "C" | |
8152 | #endif | |
8153 | /* We use char because int might match the return type of a gcc2 | |
8154 | builtin and then its argument prototype would still apply. */ | |
8155 | char waddstr (); | |
8156 | int | |
8157 | main () | |
8158 | { | |
8159 | waddstr (); | |
8160 | ; | |
8161 | return 0; | |
8162 | } | |
8163 | _ACEOF | |
8164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8166 | (eval $ac_link) 2>conftest.er1 | |
8167 | ac_status=$? | |
8168 | grep -v '^ *+' conftest.er1 >conftest.err | |
8169 | rm -f conftest.er1 | |
8170 | cat conftest.err >&5 | |
8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8172 | (exit $ac_status); } && | |
8173 | { ac_try='test -z "$ac_c_werror_flag" | |
8174 | || test ! -s conftest.err' | |
8175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8176 | (eval $ac_try) 2>&5 | |
8177 | ac_status=$? | |
8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8179 | (exit $ac_status); }; } && | |
8180 | { ac_try='test -s conftest$ac_exeext' | |
8181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8182 | (eval $ac_try) 2>&5 | |
8183 | ac_status=$? | |
8184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8185 | (exit $ac_status); }; }; then | |
8186 | ac_cv_search_waddstr="none required" | |
8187 | else | |
8188 | echo "$as_me: failed program was:" >&5 | |
8189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8190 | |
bec39cab AC |
8191 | fi |
8192 | rm -f conftest.err conftest.$ac_objext \ | |
8193 | conftest$ac_exeext conftest.$ac_ext | |
8194 | if test "$ac_cv_search_waddstr" = no; then | |
8195 | for ac_lib in ncurses cursesX curses; do | |
8196 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8197 | cat >conftest.$ac_ext <<_ACEOF | |
8198 | /* confdefs.h. */ | |
8199 | _ACEOF | |
8200 | cat confdefs.h >>conftest.$ac_ext | |
8201 | cat >>conftest.$ac_ext <<_ACEOF | |
8202 | /* end confdefs.h. */ | |
1ba607ad | 8203 | |
bec39cab AC |
8204 | /* Override any gcc2 internal prototype to avoid an error. */ |
8205 | #ifdef __cplusplus | |
8206 | extern "C" | |
8207 | #endif | |
8208 | /* We use char because int might match the return type of a gcc2 | |
8209 | builtin and then its argument prototype would still apply. */ | |
8210 | char waddstr (); | |
8211 | int | |
8212 | main () | |
8213 | { | |
8214 | waddstr (); | |
8215 | ; | |
8216 | return 0; | |
8217 | } | |
8218 | _ACEOF | |
8219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8221 | (eval $ac_link) 2>conftest.er1 | |
8222 | ac_status=$? | |
8223 | grep -v '^ *+' conftest.er1 >conftest.err | |
8224 | rm -f conftest.er1 | |
8225 | cat conftest.err >&5 | |
8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8227 | (exit $ac_status); } && | |
8228 | { ac_try='test -z "$ac_c_werror_flag" | |
8229 | || test ! -s conftest.err' | |
8230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8231 | (eval $ac_try) 2>&5 | |
8232 | ac_status=$? | |
8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8234 | (exit $ac_status); }; } && | |
8235 | { ac_try='test -s conftest$ac_exeext' | |
8236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8237 | (eval $ac_try) 2>&5 | |
8238 | ac_status=$? | |
8239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8240 | (exit $ac_status); }; }; then | |
8241 | ac_cv_search_waddstr="-l$ac_lib" | |
8242 | break | |
8243 | else | |
8244 | echo "$as_me: failed program was:" >&5 | |
8245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
8246 | |
8247 | fi | |
bec39cab AC |
8248 | rm -f conftest.err conftest.$ac_objext \ |
8249 | conftest$ac_exeext conftest.$ac_ext | |
8250 | done | |
1ba607ad | 8251 | fi |
bec39cab AC |
8252 | LIBS=$ac_func_search_save_LIBS |
8253 | fi | |
8254 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 | |
8255 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
8256 | if test "$ac_cv_search_waddstr" != no; then | |
8257 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 8258 | |
8bb2c122 | 8259 | fi |
8bb2c122 | 8260 | |
8bb2c122 | 8261 | |
bec39cab AC |
8262 | # Since GDB uses Readline, we need termcap functionality. In many |
8263 | # cases this will be provided by the curses library, but some systems | |
8264 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 8265 | |
bec39cab AC |
8266 | case $host_os in |
8267 | cygwin*) | |
8268 | if test -d $srcdir/libtermcap; then | |
8269 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
8270 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
8271 | fi ;; | |
8272 | go32* | *djgpp*) | |
8273 | ac_cv_search_tgetent="none required" | |
8274 | ;; | |
8275 | esac | |
627af7ea | 8276 | |
bec39cab AC |
8277 | # These are the libraries checked by Readline. |
8278 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
8279 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
8280 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8282 | else | |
8283 | ac_func_search_save_LIBS=$LIBS | |
8284 | ac_cv_search_tgetent=no | |
8285 | cat >conftest.$ac_ext <<_ACEOF | |
8286 | /* confdefs.h. */ | |
8287 | _ACEOF | |
8288 | cat confdefs.h >>conftest.$ac_ext | |
8289 | cat >>conftest.$ac_ext <<_ACEOF | |
8290 | /* end confdefs.h. */ | |
8291 | ||
8292 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8293 | #ifdef __cplusplus | |
8294 | extern "C" | |
8295 | #endif | |
8296 | /* We use char because int might match the return type of a gcc2 | |
8297 | builtin and then its argument prototype would still apply. */ | |
8298 | char tgetent (); | |
8299 | int | |
8300 | main () | |
8301 | { | |
8302 | tgetent (); | |
8303 | ; | |
8304 | return 0; | |
8305 | } | |
8306 | _ACEOF | |
8307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8309 | (eval $ac_link) 2>conftest.er1 | |
8310 | ac_status=$? | |
8311 | grep -v '^ *+' conftest.er1 >conftest.err | |
8312 | rm -f conftest.er1 | |
8313 | cat conftest.err >&5 | |
8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8315 | (exit $ac_status); } && | |
8316 | { ac_try='test -z "$ac_c_werror_flag" | |
8317 | || test ! -s conftest.err' | |
8318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8319 | (eval $ac_try) 2>&5 | |
8320 | ac_status=$? | |
8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8322 | (exit $ac_status); }; } && | |
8323 | { ac_try='test -s conftest$ac_exeext' | |
8324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8325 | (eval $ac_try) 2>&5 | |
8326 | ac_status=$? | |
8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8328 | (exit $ac_status); }; }; then | |
8329 | ac_cv_search_tgetent="none required" | |
627af7ea | 8330 | else |
bec39cab AC |
8331 | echo "$as_me: failed program was:" >&5 |
8332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 8333 | |
627af7ea | 8334 | fi |
bec39cab AC |
8335 | rm -f conftest.err conftest.$ac_objext \ |
8336 | conftest$ac_exeext conftest.$ac_ext | |
8337 | if test "$ac_cv_search_tgetent" = no; then | |
8338 | for ac_lib in termcap tinfo curses ncurses; do | |
8339 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8340 | cat >conftest.$ac_ext <<_ACEOF | |
8341 | /* confdefs.h. */ | |
8342 | _ACEOF | |
8343 | cat confdefs.h >>conftest.$ac_ext | |
8344 | cat >>conftest.$ac_ext <<_ACEOF | |
8345 | /* end confdefs.h. */ | |
627af7ea | 8346 | |
bec39cab AC |
8347 | /* Override any gcc2 internal prototype to avoid an error. */ |
8348 | #ifdef __cplusplus | |
8349 | extern "C" | |
8350 | #endif | |
8351 | /* We use char because int might match the return type of a gcc2 | |
8352 | builtin and then its argument prototype would still apply. */ | |
8353 | char tgetent (); | |
8354 | int | |
8355 | main () | |
8356 | { | |
8357 | tgetent (); | |
8358 | ; | |
8359 | return 0; | |
8360 | } | |
8361 | _ACEOF | |
8362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8364 | (eval $ac_link) 2>conftest.er1 | |
8365 | ac_status=$? | |
8366 | grep -v '^ *+' conftest.er1 >conftest.err | |
8367 | rm -f conftest.er1 | |
8368 | cat conftest.err >&5 | |
8369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8370 | (exit $ac_status); } && | |
8371 | { ac_try='test -z "$ac_c_werror_flag" | |
8372 | || test ! -s conftest.err' | |
8373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8374 | (eval $ac_try) 2>&5 | |
8375 | ac_status=$? | |
8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8377 | (exit $ac_status); }; } && | |
8378 | { ac_try='test -s conftest$ac_exeext' | |
8379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8380 | (eval $ac_try) 2>&5 | |
8381 | ac_status=$? | |
8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8383 | (exit $ac_status); }; }; then | |
8384 | ac_cv_search_tgetent="-l$ac_lib" | |
8385 | break | |
627af7ea | 8386 | else |
bec39cab AC |
8387 | echo "$as_me: failed program was:" >&5 |
8388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 8389 | |
627af7ea | 8390 | fi |
bec39cab AC |
8391 | rm -f conftest.err conftest.$ac_objext \ |
8392 | conftest$ac_exeext conftest.$ac_ext | |
8393 | done | |
8394 | fi | |
8395 | LIBS=$ac_func_search_save_LIBS | |
8396 | fi | |
8397 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
8398 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
8399 | if test "$ac_cv_search_tgetent" != no; then | |
8400 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 8401 | |
06825bd1 MK |
8402 | fi |
8403 | ||
06825bd1 | 8404 | |
bec39cab AC |
8405 | if test "$ac_cv_search_tgetent" = no; then |
8406 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
8407 | echo "$as_me: error: no termcap library found" >&2;} | |
8408 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
8409 | fi |
8410 | ||
bec39cab AC |
8411 | # ------------------------- # |
8412 | # Checks for header files. # | |
8413 | # ------------------------- # | |
8ee53726 | 8414 | |
0e5d83e3 | 8415 | |
bec39cab AC |
8416 | |
8417 | ||
8418 | ||
8419 | ||
8420 | ac_header_dirent=no | |
8421 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
8422 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8423 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
8424 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
8425 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8427 | else | |
8428 | cat >conftest.$ac_ext <<_ACEOF | |
8429 | /* confdefs.h. */ | |
8430 | _ACEOF | |
8431 | cat confdefs.h >>conftest.$ac_ext | |
8432 | cat >>conftest.$ac_ext <<_ACEOF | |
8433 | /* end confdefs.h. */ | |
8434 | #include <sys/types.h> | |
0e5d83e3 | 8435 | #include <$ac_hdr> |
bec39cab AC |
8436 | |
8437 | int | |
8438 | main () | |
8439 | { | |
8440 | if ((DIR *) 0) | |
8441 | return 0; | |
8442 | ; | |
8443 | return 0; | |
8444 | } | |
8445 | _ACEOF | |
8446 | rm -f conftest.$ac_objext | |
8447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8448 | (eval $ac_compile) 2>conftest.er1 | |
8449 | ac_status=$? | |
8450 | grep -v '^ *+' conftest.er1 >conftest.err | |
8451 | rm -f conftest.er1 | |
8452 | cat conftest.err >&5 | |
8453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8454 | (exit $ac_status); } && | |
8455 | { ac_try='test -z "$ac_c_werror_flag" | |
8456 | || test ! -s conftest.err' | |
8457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8458 | (eval $ac_try) 2>&5 | |
8459 | ac_status=$? | |
8460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8461 | (exit $ac_status); }; } && | |
8462 | { ac_try='test -s conftest.$ac_objext' | |
8463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8464 | (eval $ac_try) 2>&5 | |
8465 | ac_status=$? | |
8466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8467 | (exit $ac_status); }; }; then | |
8468 | eval "$as_ac_Header=yes" | |
8469 | else | |
8470 | echo "$as_me: failed program was:" >&5 | |
8471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8472 | ||
8473 | eval "$as_ac_Header=no" | |
8474 | fi | |
8475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8476 | fi | |
8477 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8478 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8479 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8480 | cat >>confdefs.h <<_ACEOF | |
8481 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8482 | _ACEOF | |
8483 | ||
8484 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 8485 | fi |
0e5d83e3 | 8486 | |
bec39cab AC |
8487 | done |
8488 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8489 | if test $ac_header_dirent = dirent.h; then | |
8490 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
8491 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8492 | if test "${ac_cv_search_opendir+set}" = set; then | |
8493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8494 | else | |
8495 | ac_func_search_save_LIBS=$LIBS | |
8496 | ac_cv_search_opendir=no | |
8497 | cat >conftest.$ac_ext <<_ACEOF | |
8498 | /* confdefs.h. */ | |
8499 | _ACEOF | |
8500 | cat confdefs.h >>conftest.$ac_ext | |
8501 | cat >>conftest.$ac_ext <<_ACEOF | |
8502 | /* end confdefs.h. */ | |
0e5d83e3 | 8503 | |
bec39cab AC |
8504 | /* Override any gcc2 internal prototype to avoid an error. */ |
8505 | #ifdef __cplusplus | |
8506 | extern "C" | |
8507 | #endif | |
8508 | /* We use char because int might match the return type of a gcc2 | |
8509 | builtin and then its argument prototype would still apply. */ | |
8510 | char opendir (); | |
8511 | int | |
8512 | main () | |
8513 | { | |
8514 | opendir (); | |
8515 | ; | |
8516 | return 0; | |
8517 | } | |
8518 | _ACEOF | |
8519 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8521 | (eval $ac_link) 2>conftest.er1 | |
8522 | ac_status=$? | |
8523 | grep -v '^ *+' conftest.er1 >conftest.err | |
8524 | rm -f conftest.er1 | |
8525 | cat conftest.err >&5 | |
8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8527 | (exit $ac_status); } && | |
8528 | { ac_try='test -z "$ac_c_werror_flag" | |
8529 | || test ! -s conftest.err' | |
8530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8531 | (eval $ac_try) 2>&5 | |
8532 | ac_status=$? | |
8533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8534 | (exit $ac_status); }; } && | |
8535 | { ac_try='test -s conftest$ac_exeext' | |
8536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8537 | (eval $ac_try) 2>&5 | |
8538 | ac_status=$? | |
8539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8540 | (exit $ac_status); }; }; then | |
8541 | ac_cv_search_opendir="none required" | |
8542 | else | |
8543 | echo "$as_me: failed program was:" >&5 | |
8544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8545 | ||
8546 | fi | |
8547 | rm -f conftest.err conftest.$ac_objext \ | |
8548 | conftest$ac_exeext conftest.$ac_ext | |
8549 | if test "$ac_cv_search_opendir" = no; then | |
8550 | for ac_lib in dir; do | |
8551 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8552 | cat >conftest.$ac_ext <<_ACEOF | |
8553 | /* confdefs.h. */ | |
8554 | _ACEOF | |
8555 | cat confdefs.h >>conftest.$ac_ext | |
8556 | cat >>conftest.$ac_ext <<_ACEOF | |
8557 | /* end confdefs.h. */ | |
0e5d83e3 | 8558 | |
bec39cab AC |
8559 | /* Override any gcc2 internal prototype to avoid an error. */ |
8560 | #ifdef __cplusplus | |
8561 | extern "C" | |
8562 | #endif | |
8563 | /* We use char because int might match the return type of a gcc2 | |
8564 | builtin and then its argument prototype would still apply. */ | |
8565 | char opendir (); | |
8566 | int | |
8567 | main () | |
8568 | { | |
8569 | opendir (); | |
8570 | ; | |
8571 | return 0; | |
8572 | } | |
8573 | _ACEOF | |
8574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8576 | (eval $ac_link) 2>conftest.er1 | |
8577 | ac_status=$? | |
8578 | grep -v '^ *+' conftest.er1 >conftest.err | |
8579 | rm -f conftest.er1 | |
8580 | cat conftest.err >&5 | |
8581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8582 | (exit $ac_status); } && | |
8583 | { ac_try='test -z "$ac_c_werror_flag" | |
8584 | || test ! -s conftest.err' | |
8585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8586 | (eval $ac_try) 2>&5 | |
8587 | ac_status=$? | |
8588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8589 | (exit $ac_status); }; } && | |
8590 | { ac_try='test -s conftest$ac_exeext' | |
8591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8592 | (eval $ac_try) 2>&5 | |
8593 | ac_status=$? | |
8594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8595 | (exit $ac_status); }; }; then | |
8596 | ac_cv_search_opendir="-l$ac_lib" | |
8597 | break | |
0e5d83e3 | 8598 | else |
bec39cab AC |
8599 | echo "$as_me: failed program was:" >&5 |
8600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0e5d83e3 | 8601 | |
0e5d83e3 | 8602 | fi |
bec39cab AC |
8603 | rm -f conftest.err conftest.$ac_objext \ |
8604 | conftest$ac_exeext conftest.$ac_ext | |
8605 | done | |
0e5d83e3 | 8606 | fi |
bec39cab | 8607 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 8608 | fi |
bec39cab AC |
8609 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
8610 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8611 | if test "$ac_cv_search_opendir" != no; then | |
8612 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 8613 | |
0e5d83e3 JJ |
8614 | fi |
8615 | ||
d28f9cdf | 8616 | else |
bec39cab AC |
8617 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
8618 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8619 | if test "${ac_cv_search_opendir+set}" = set; then | |
8620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8621 | else | |
8622 | ac_func_search_save_LIBS=$LIBS | |
8623 | ac_cv_search_opendir=no | |
8624 | cat >conftest.$ac_ext <<_ACEOF | |
8625 | /* confdefs.h. */ | |
8626 | _ACEOF | |
8627 | cat confdefs.h >>conftest.$ac_ext | |
8628 | cat >>conftest.$ac_ext <<_ACEOF | |
8629 | /* end confdefs.h. */ | |
d28f9cdf | 8630 | |
d28f9cdf | 8631 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
8632 | #ifdef __cplusplus |
8633 | extern "C" | |
8634 | #endif | |
d28f9cdf | 8635 | /* We use char because int might match the return type of a gcc2 |
bec39cab AC |
8636 | builtin and then its argument prototype would still apply. */ |
8637 | char opendir (); | |
8638 | int | |
8639 | main () | |
8640 | { | |
8641 | opendir (); | |
8642 | ; | |
8643 | return 0; | |
8644 | } | |
8645 | _ACEOF | |
8646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8648 | (eval $ac_link) 2>conftest.er1 | |
8649 | ac_status=$? | |
8650 | grep -v '^ *+' conftest.er1 >conftest.err | |
8651 | rm -f conftest.er1 | |
8652 | cat conftest.err >&5 | |
8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8654 | (exit $ac_status); } && | |
8655 | { ac_try='test -z "$ac_c_werror_flag" | |
8656 | || test ! -s conftest.err' | |
8657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8658 | (eval $ac_try) 2>&5 | |
8659 | ac_status=$? | |
8660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8661 | (exit $ac_status); }; } && | |
8662 | { ac_try='test -s conftest$ac_exeext' | |
8663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8664 | (eval $ac_try) 2>&5 | |
8665 | ac_status=$? | |
8666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8667 | (exit $ac_status); }; }; then | |
8668 | ac_cv_search_opendir="none required" | |
8669 | else | |
8670 | echo "$as_me: failed program was:" >&5 | |
8671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8672 | ||
8673 | fi | |
8674 | rm -f conftest.err conftest.$ac_objext \ | |
8675 | conftest$ac_exeext conftest.$ac_ext | |
8676 | if test "$ac_cv_search_opendir" = no; then | |
8677 | for ac_lib in x; do | |
8678 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8679 | cat >conftest.$ac_ext <<_ACEOF | |
8680 | /* confdefs.h. */ | |
8681 | _ACEOF | |
8682 | cat confdefs.h >>conftest.$ac_ext | |
8683 | cat >>conftest.$ac_ext <<_ACEOF | |
8684 | /* end confdefs.h. */ | |
d28f9cdf | 8685 | |
bec39cab AC |
8686 | /* Override any gcc2 internal prototype to avoid an error. */ |
8687 | #ifdef __cplusplus | |
8688 | extern "C" | |
d28f9cdf | 8689 | #endif |
bec39cab AC |
8690 | /* We use char because int might match the return type of a gcc2 |
8691 | builtin and then its argument prototype would still apply. */ | |
8692 | char opendir (); | |
8693 | int | |
8694 | main () | |
8695 | { | |
8696 | opendir (); | |
8697 | ; | |
8698 | return 0; | |
8699 | } | |
8700 | _ACEOF | |
8701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8703 | (eval $ac_link) 2>conftest.er1 | |
8704 | ac_status=$? | |
8705 | grep -v '^ *+' conftest.er1 >conftest.err | |
8706 | rm -f conftest.er1 | |
8707 | cat conftest.err >&5 | |
8708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8709 | (exit $ac_status); } && | |
8710 | { ac_try='test -z "$ac_c_werror_flag" | |
8711 | || test ! -s conftest.err' | |
8712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8713 | (eval $ac_try) 2>&5 | |
8714 | ac_status=$? | |
8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8716 | (exit $ac_status); }; } && | |
8717 | { ac_try='test -s conftest$ac_exeext' | |
8718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8719 | (eval $ac_try) 2>&5 | |
8720 | ac_status=$? | |
8721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8722 | (exit $ac_status); }; }; then | |
8723 | ac_cv_search_opendir="-l$ac_lib" | |
8724 | break | |
d28f9cdf | 8725 | else |
bec39cab AC |
8726 | echo "$as_me: failed program was:" >&5 |
8727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8728 | ||
d28f9cdf | 8729 | fi |
bec39cab AC |
8730 | rm -f conftest.err conftest.$ac_objext \ |
8731 | conftest$ac_exeext conftest.$ac_ext | |
8732 | done | |
8733 | fi | |
8734 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 8735 | fi |
bec39cab AC |
8736 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
8737 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8738 | if test "$ac_cv_search_opendir" != no; then | |
8739 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 8740 | |
d28f9cdf DJ |
8741 | fi |
8742 | ||
bec39cab | 8743 | fi |
b0b1c2c0 | 8744 | |
bec39cab AC |
8745 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
8746 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
8747 | if test "${ac_cv_header_stat_broken+set}" = set; then | |
8748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 8749 | else |
bec39cab AC |
8750 | cat >conftest.$ac_ext <<_ACEOF |
8751 | /* confdefs.h. */ | |
8752 | _ACEOF | |
8753 | cat confdefs.h >>conftest.$ac_ext | |
8754 | cat >>conftest.$ac_ext <<_ACEOF | |
8755 | /* end confdefs.h. */ | |
8756 | #include <sys/types.h> | |
8757 | #include <sys/stat.h> | |
b0b1c2c0 | 8758 | |
bec39cab AC |
8759 | #if defined(S_ISBLK) && defined(S_IFDIR) |
8760 | # if S_ISBLK (S_IFDIR) | |
8761 | You lose. | |
8762 | # endif | |
8763 | #endif | |
b0b1c2c0 | 8764 | |
bec39cab AC |
8765 | #if defined(S_ISBLK) && defined(S_IFCHR) |
8766 | # if S_ISBLK (S_IFCHR) | |
8767 | You lose. | |
8768 | # endif | |
8769 | #endif | |
d28f9cdf | 8770 | |
bec39cab AC |
8771 | #if defined(S_ISLNK) && defined(S_IFREG) |
8772 | # if S_ISLNK (S_IFREG) | |
8773 | You lose. | |
8774 | # endif | |
8775 | #endif | |
d28f9cdf | 8776 | |
bec39cab AC |
8777 | #if defined(S_ISSOCK) && defined(S_IFREG) |
8778 | # if S_ISSOCK (S_IFREG) | |
8779 | You lose. | |
8780 | # endif | |
8781 | #endif | |
8782 | ||
8783 | _ACEOF | |
8784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8785 | $EGREP "You lose" >/dev/null 2>&1; then | |
8786 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 8787 | else |
bec39cab | 8788 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
8789 | fi |
8790 | rm -f conftest* | |
d28f9cdf | 8791 | |
d28f9cdf | 8792 | fi |
bec39cab AC |
8793 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
8794 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
8795 | if test $ac_cv_header_stat_broken = yes; then | |
d28f9cdf | 8796 | |
bec39cab AC |
8797 | cat >>confdefs.h <<\_ACEOF |
8798 | #define STAT_MACROS_BROKEN 1 | |
8799 | _ACEOF | |
8bb2c122 | 8800 | |
7a292a7a | 8801 | fi |
bec39cab AC |
8802 | |
8803 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
8804 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
8805 | if test "${ac_cv_header_stdc+set}" = set; then | |
8806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 8807 | else |
bec39cab AC |
8808 | cat >conftest.$ac_ext <<_ACEOF |
8809 | /* confdefs.h. */ | |
8810 | _ACEOF | |
8811 | cat confdefs.h >>conftest.$ac_ext | |
8812 | cat >>conftest.$ac_ext <<_ACEOF | |
8813 | /* end confdefs.h. */ | |
8814 | #include <stdlib.h> | |
8815 | #include <stdarg.h> | |
8816 | #include <string.h> | |
8817 | #include <float.h> | |
7a292a7a | 8818 | |
bec39cab AC |
8819 | int |
8820 | main () | |
8821 | { | |
7a292a7a | 8822 | |
bec39cab AC |
8823 | ; |
8824 | return 0; | |
8825 | } | |
8826 | _ACEOF | |
8827 | rm -f conftest.$ac_objext | |
8828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8829 | (eval $ac_compile) 2>conftest.er1 | |
8830 | ac_status=$? | |
8831 | grep -v '^ *+' conftest.er1 >conftest.err | |
8832 | rm -f conftest.er1 | |
8833 | cat conftest.err >&5 | |
8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8835 | (exit $ac_status); } && | |
8836 | { ac_try='test -z "$ac_c_werror_flag" | |
8837 | || test ! -s conftest.err' | |
8838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8839 | (eval $ac_try) 2>&5 | |
8840 | ac_status=$? | |
8841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8842 | (exit $ac_status); }; } && | |
8843 | { ac_try='test -s conftest.$ac_objext' | |
8844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8845 | (eval $ac_try) 2>&5 | |
8846 | ac_status=$? | |
8847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8848 | (exit $ac_status); }; }; then | |
8849 | ac_cv_header_stdc=yes | |
c906108c | 8850 | else |
bec39cab AC |
8851 | echo "$as_me: failed program was:" >&5 |
8852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8853 | |
bec39cab | 8854 | ac_cv_header_stdc=no |
c906108c | 8855 | fi |
bec39cab | 8856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 8857 | |
bec39cab AC |
8858 | if test $ac_cv_header_stdc = yes; then |
8859 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8860 | cat >conftest.$ac_ext <<_ACEOF | |
8861 | /* confdefs.h. */ | |
8862 | _ACEOF | |
8863 | cat confdefs.h >>conftest.$ac_ext | |
8864 | cat >>conftest.$ac_ext <<_ACEOF | |
8865 | /* end confdefs.h. */ | |
8866 | #include <string.h> | |
c906108c | 8867 | |
bec39cab AC |
8868 | _ACEOF |
8869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8870 | $EGREP "memchr" >/dev/null 2>&1; then | |
8871 | : | |
8bb2c122 | 8872 | else |
bec39cab | 8873 | ac_cv_header_stdc=no |
8bb2c122 | 8874 | fi |
bec39cab AC |
8875 | rm -f conftest* |
8876 | ||
c906108c SS |
8877 | fi |
8878 | ||
bec39cab AC |
8879 | if test $ac_cv_header_stdc = yes; then |
8880 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8881 | cat >conftest.$ac_ext <<_ACEOF | |
8882 | /* confdefs.h. */ | |
8883 | _ACEOF | |
8884 | cat confdefs.h >>conftest.$ac_ext | |
8885 | cat >>conftest.$ac_ext <<_ACEOF | |
8886 | /* end confdefs.h. */ | |
8887 | #include <stdlib.h> | |
8888 | ||
8889 | _ACEOF | |
8890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8891 | $EGREP "free" >/dev/null 2>&1; then | |
8892 | : | |
c906108c | 8893 | else |
bec39cab | 8894 | ac_cv_header_stdc=no |
c906108c | 8895 | fi |
bec39cab AC |
8896 | rm -f conftest* |
8897 | ||
c906108c SS |
8898 | fi |
8899 | ||
bec39cab AC |
8900 | if test $ac_cv_header_stdc = yes; then |
8901 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8902 | if test "$cross_compiling" = yes; then | |
8903 | : | |
c906108c | 8904 | else |
bec39cab AC |
8905 | cat >conftest.$ac_ext <<_ACEOF |
8906 | /* confdefs.h. */ | |
8907 | _ACEOF | |
8908 | cat confdefs.h >>conftest.$ac_ext | |
8909 | cat >>conftest.$ac_ext <<_ACEOF | |
8910 | /* end confdefs.h. */ | |
8911 | #include <ctype.h> | |
8912 | #if ((' ' & 0x0FF) == 0x020) | |
8913 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8914 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8915 | #else | |
8916 | # define ISLOWER(c) \ | |
8917 | (('a' <= (c) && (c) <= 'i') \ | |
8918 | || ('j' <= (c) && (c) <= 'r') \ | |
8919 | || ('s' <= (c) && (c) <= 'z')) | |
8920 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8921 | #endif | |
8922 | ||
8923 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8924 | int | |
8925 | main () | |
8926 | { | |
8927 | int i; | |
8928 | for (i = 0; i < 256; i++) | |
8929 | if (XOR (islower (i), ISLOWER (i)) | |
8930 | || toupper (i) != TOUPPER (i)) | |
8931 | exit(2); | |
8932 | exit (0); | |
8933 | } | |
8934 | _ACEOF | |
8935 | rm -f conftest$ac_exeext | |
8936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8937 | (eval $ac_link) 2>&5 | |
8938 | ac_status=$? | |
8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8940 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8942 | (eval $ac_try) 2>&5 | |
8943 | ac_status=$? | |
8944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8945 | (exit $ac_status); }; }; then | |
8946 | : | |
8947 | else | |
8948 | echo "$as_me: program exited with status $ac_status" >&5 | |
8949 | echo "$as_me: failed program was:" >&5 | |
8950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8951 | ||
8952 | ( exit $ac_status ) | |
8953 | ac_cv_header_stdc=no | |
c906108c | 8954 | fi |
bec39cab | 8955 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 8956 | fi |
c906108c | 8957 | fi |
bec39cab AC |
8958 | fi |
8959 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
8960 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
8961 | if test $ac_cv_header_stdc = yes; then | |
c906108c | 8962 | |
bec39cab AC |
8963 | cat >>confdefs.h <<\_ACEOF |
8964 | #define STDC_HEADERS 1 | |
8965 | _ACEOF | |
c906108c | 8966 | |
bec39cab | 8967 | fi |
8bb2c122 | 8968 | |
bec39cab AC |
8969 | |
8970 | for ac_header in link.h | |
8971 | do | |
8972 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8973 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8974 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8975 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8976 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8978 | fi | |
8979 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8980 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8981 | else | |
8982 | # Is the header compilable? | |
8983 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8984 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8985 | cat >conftest.$ac_ext <<_ACEOF | |
8986 | /* confdefs.h. */ | |
8987 | _ACEOF | |
8988 | cat confdefs.h >>conftest.$ac_ext | |
8989 | cat >>conftest.$ac_ext <<_ACEOF | |
8990 | /* end confdefs.h. */ | |
8991 | $ac_includes_default | |
8992 | #include <$ac_header> | |
8993 | _ACEOF | |
8994 | rm -f conftest.$ac_objext | |
8995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8996 | (eval $ac_compile) 2>conftest.er1 | |
8997 | ac_status=$? | |
8998 | grep -v '^ *+' conftest.er1 >conftest.err | |
8999 | rm -f conftest.er1 | |
9000 | cat conftest.err >&5 | |
9001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9002 | (exit $ac_status); } && | |
9003 | { ac_try='test -z "$ac_c_werror_flag" | |
9004 | || test ! -s conftest.err' | |
9005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9006 | (eval $ac_try) 2>&5 | |
9007 | ac_status=$? | |
9008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9009 | (exit $ac_status); }; } && | |
9010 | { ac_try='test -s conftest.$ac_objext' | |
9011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9012 | (eval $ac_try) 2>&5 | |
9013 | ac_status=$? | |
9014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9015 | (exit $ac_status); }; }; then | |
9016 | ac_header_compiler=yes | |
9017 | else | |
9018 | echo "$as_me: failed program was:" >&5 | |
9019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9020 | ||
9021 | ac_header_compiler=no | |
9022 | fi | |
9023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9024 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9025 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9026 | ||
9027 | # Is the header present? | |
9028 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9029 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9030 | cat >conftest.$ac_ext <<_ACEOF | |
9031 | /* confdefs.h. */ | |
9032 | _ACEOF | |
9033 | cat confdefs.h >>conftest.$ac_ext | |
9034 | cat >>conftest.$ac_ext <<_ACEOF | |
9035 | /* end confdefs.h. */ | |
9036 | #include <$ac_header> | |
9037 | _ACEOF | |
9038 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9039 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9040 | ac_status=$? | |
9041 | grep -v '^ *+' conftest.er1 >conftest.err | |
9042 | rm -f conftest.er1 | |
9043 | cat conftest.err >&5 | |
9044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9045 | (exit $ac_status); } >/dev/null; then | |
9046 | if test -s conftest.err; then | |
9047 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9048 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9049 | else | |
9050 | ac_cpp_err= | |
9051 | fi | |
c906108c | 9052 | else |
bec39cab | 9053 | ac_cpp_err=yes |
c906108c | 9054 | fi |
bec39cab AC |
9055 | if test -z "$ac_cpp_err"; then |
9056 | ac_header_preproc=yes | |
c906108c | 9057 | else |
bec39cab AC |
9058 | echo "$as_me: failed program was:" >&5 |
9059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 9060 | |
bec39cab AC |
9061 | ac_header_preproc=no |
9062 | fi | |
9063 | rm -f conftest.err conftest.$ac_ext | |
9064 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9065 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 9066 | |
bec39cab AC |
9067 | # So? What about this header? |
9068 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9069 | yes:no: ) | |
9070 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9071 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9072 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9073 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9074 | ac_header_preproc=yes | |
9075 | ;; | |
9076 | no:yes:* ) | |
9077 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9078 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9079 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9080 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9081 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9082 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9083 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9084 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9085 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9086 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9087 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9088 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9089 | ( | |
9090 | cat <<\_ASBOX | |
9091 | ## ------------------------------------------ ## | |
9092 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9093 | ## ------------------------------------------ ## | |
9094 | _ASBOX | |
9095 | ) | | |
9096 | sed "s/^/$as_me: WARNING: /" >&2 | |
9097 | ;; | |
9098 | esac | |
9099 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
95ca63c4 | 9103 | else |
bec39cab | 9104 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 9105 | fi |
bec39cab AC |
9106 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9107 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9108 | ||
95ca63c4 | 9109 | fi |
bec39cab AC |
9110 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9111 | cat >>confdefs.h <<_ACEOF | |
9112 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9113 | _ACEOF | |
9114 | ||
95ca63c4 CF |
9115 | fi |
9116 | ||
bec39cab | 9117 | done |
95ca63c4 CF |
9118 | |
9119 | ||
bec39cab AC |
9120 | for ac_header in machine/reg.h |
9121 | do | |
9122 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9128 | fi | |
9129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9130 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9131 | else | |
9132 | # Is the header compilable? | |
9133 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9134 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9135 | cat >conftest.$ac_ext <<_ACEOF | |
9136 | /* confdefs.h. */ | |
9137 | _ACEOF | |
9138 | cat confdefs.h >>conftest.$ac_ext | |
9139 | cat >>conftest.$ac_ext <<_ACEOF | |
9140 | /* end confdefs.h. */ | |
9141 | $ac_includes_default | |
9142 | #include <$ac_header> | |
9143 | _ACEOF | |
9144 | rm -f conftest.$ac_objext | |
9145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9146 | (eval $ac_compile) 2>conftest.er1 | |
9147 | ac_status=$? | |
9148 | grep -v '^ *+' conftest.er1 >conftest.err | |
9149 | rm -f conftest.er1 | |
9150 | cat conftest.err >&5 | |
9151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9152 | (exit $ac_status); } && | |
9153 | { ac_try='test -z "$ac_c_werror_flag" | |
9154 | || test ! -s conftest.err' | |
9155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9156 | (eval $ac_try) 2>&5 | |
9157 | ac_status=$? | |
9158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9159 | (exit $ac_status); }; } && | |
9160 | { ac_try='test -s conftest.$ac_objext' | |
9161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9162 | (eval $ac_try) 2>&5 | |
9163 | ac_status=$? | |
9164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9165 | (exit $ac_status); }; }; then | |
9166 | ac_header_compiler=yes | |
9167 | else | |
9168 | echo "$as_me: failed program was:" >&5 | |
9169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9170 | ||
9171 | ac_header_compiler=no | |
9172 | fi | |
9173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9174 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9175 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9176 | ||
9177 | # Is the header present? | |
9178 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9179 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9180 | cat >conftest.$ac_ext <<_ACEOF | |
9181 | /* confdefs.h. */ | |
9182 | _ACEOF | |
9183 | cat confdefs.h >>conftest.$ac_ext | |
9184 | cat >>conftest.$ac_ext <<_ACEOF | |
9185 | /* end confdefs.h. */ | |
9186 | #include <$ac_header> | |
9187 | _ACEOF | |
9188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9190 | ac_status=$? | |
9191 | grep -v '^ *+' conftest.er1 >conftest.err | |
9192 | rm -f conftest.er1 | |
9193 | cat conftest.err >&5 | |
9194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9195 | (exit $ac_status); } >/dev/null; then | |
9196 | if test -s conftest.err; then | |
9197 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9198 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9199 | else | |
9200 | ac_cpp_err= | |
9201 | fi | |
95ca63c4 | 9202 | else |
bec39cab | 9203 | ac_cpp_err=yes |
95ca63c4 | 9204 | fi |
bec39cab AC |
9205 | if test -z "$ac_cpp_err"; then |
9206 | ac_header_preproc=yes | |
9207 | else | |
9208 | echo "$as_me: failed program was:" >&5 | |
9209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9210 | ||
9211 | ac_header_preproc=no | |
95ca63c4 | 9212 | fi |
bec39cab AC |
9213 | rm -f conftest.err conftest.$ac_ext |
9214 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9215 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9216 | ||
9217 | # So? What about this header? | |
9218 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9219 | yes:no: ) | |
9220 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9221 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9222 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9223 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9224 | ac_header_preproc=yes | |
9225 | ;; | |
9226 | no:yes:* ) | |
9227 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9228 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9229 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9230 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9231 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9232 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9233 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9234 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9235 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9236 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9237 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9238 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9239 | ( | |
9240 | cat <<\_ASBOX | |
9241 | ## ------------------------------------------ ## | |
9242 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9243 | ## ------------------------------------------ ## | |
9244 | _ASBOX | |
9245 | ) | | |
9246 | sed "s/^/$as_me: WARNING: /" >&2 | |
9247 | ;; | |
9248 | esac | |
9249 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9251 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
95ca63c4 | 9253 | else |
bec39cab AC |
9254 | eval "$as_ac_Header=\$ac_header_preproc" |
9255 | fi | |
9256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9257 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9258 | ||
95ca63c4 | 9259 | fi |
bec39cab AC |
9260 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9261 | cat >>confdefs.h <<_ACEOF | |
9262 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9263 | _ACEOF | |
95ca63c4 | 9264 | |
bec39cab | 9265 | fi |
95ca63c4 | 9266 | |
bec39cab | 9267 | done |
95ca63c4 | 9268 | |
c906108c | 9269 | |
bec39cab AC |
9270 | for ac_header in nlist.h |
9271 | do | |
9272 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9274 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9276 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9278 | fi | |
9279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9280 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9281 | else | |
9282 | # Is the header compilable? | |
9283 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9284 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9285 | cat >conftest.$ac_ext <<_ACEOF | |
9286 | /* confdefs.h. */ | |
9287 | _ACEOF | |
9288 | cat confdefs.h >>conftest.$ac_ext | |
9289 | cat >>conftest.$ac_ext <<_ACEOF | |
9290 | /* end confdefs.h. */ | |
9291 | $ac_includes_default | |
9292 | #include <$ac_header> | |
9293 | _ACEOF | |
9294 | rm -f conftest.$ac_objext | |
9295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9296 | (eval $ac_compile) 2>conftest.er1 | |
9297 | ac_status=$? | |
9298 | grep -v '^ *+' conftest.er1 >conftest.err | |
9299 | rm -f conftest.er1 | |
9300 | cat conftest.err >&5 | |
9301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9302 | (exit $ac_status); } && | |
9303 | { ac_try='test -z "$ac_c_werror_flag" | |
9304 | || test ! -s conftest.err' | |
9305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9306 | (eval $ac_try) 2>&5 | |
9307 | ac_status=$? | |
9308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9309 | (exit $ac_status); }; } && | |
9310 | { ac_try='test -s conftest.$ac_objext' | |
9311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9312 | (eval $ac_try) 2>&5 | |
9313 | ac_status=$? | |
9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9315 | (exit $ac_status); }; }; then | |
9316 | ac_header_compiler=yes | |
9317 | else | |
9318 | echo "$as_me: failed program was:" >&5 | |
9319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9320 | ||
9321 | ac_header_compiler=no | |
9322 | fi | |
9323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9324 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9325 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9326 | ||
9327 | # Is the header present? | |
9328 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9329 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9330 | cat >conftest.$ac_ext <<_ACEOF | |
9331 | /* confdefs.h. */ | |
9332 | _ACEOF | |
9333 | cat confdefs.h >>conftest.$ac_ext | |
9334 | cat >>conftest.$ac_ext <<_ACEOF | |
9335 | /* end confdefs.h. */ | |
9336 | #include <$ac_header> | |
9337 | _ACEOF | |
9338 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9339 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9340 | ac_status=$? | |
9341 | grep -v '^ *+' conftest.er1 >conftest.err | |
9342 | rm -f conftest.er1 | |
9343 | cat conftest.err >&5 | |
9344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9345 | (exit $ac_status); } >/dev/null; then | |
9346 | if test -s conftest.err; then | |
9347 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9348 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9349 | else | |
9350 | ac_cpp_err= | |
9351 | fi | |
75c6e08a | 9352 | else |
bec39cab | 9353 | ac_cpp_err=yes |
75c6e08a | 9354 | fi |
bec39cab AC |
9355 | if test -z "$ac_cpp_err"; then |
9356 | ac_header_preproc=yes | |
9357 | else | |
9358 | echo "$as_me: failed program was:" >&5 | |
9359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9360 | ||
9361 | ac_header_preproc=no | |
75c6e08a | 9362 | fi |
bec39cab AC |
9363 | rm -f conftest.err conftest.$ac_ext |
9364 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9365 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9366 | ||
9367 | # So? What about this header? | |
9368 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9369 | yes:no: ) | |
9370 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9371 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9372 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9373 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9374 | ac_header_preproc=yes | |
9375 | ;; | |
9376 | no:yes:* ) | |
9377 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9378 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9379 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9380 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9381 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9382 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9383 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9384 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9385 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9386 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9387 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9388 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9389 | ( | |
9390 | cat <<\_ASBOX | |
9391 | ## ------------------------------------------ ## | |
9392 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9393 | ## ------------------------------------------ ## | |
9394 | _ASBOX | |
9395 | ) | | |
9396 | sed "s/^/$as_me: WARNING: /" >&2 | |
9397 | ;; | |
9398 | esac | |
9399 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9400 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9401 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
75c6e08a | 9403 | else |
bec39cab AC |
9404 | eval "$as_ac_Header=\$ac_header_preproc" |
9405 | fi | |
9406 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9407 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9408 | ||
75c6e08a | 9409 | fi |
bec39cab AC |
9410 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9411 | cat >>confdefs.h <<_ACEOF | |
9412 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9413 | _ACEOF | |
75c6e08a | 9414 | |
bec39cab | 9415 | fi |
75c6e08a | 9416 | |
bec39cab | 9417 | done |
75c6e08a MK |
9418 | |
9419 | ||
9a156167 | 9420 | |
bec39cab AC |
9421 | for ac_header in poll.h sys/poll.h |
9422 | do | |
9423 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9425 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9426 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9427 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9429 | fi | |
9430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9431 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9432 | else | |
9433 | # Is the header compilable? | |
9434 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9435 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9436 | cat >conftest.$ac_ext <<_ACEOF | |
9437 | /* confdefs.h. */ | |
9438 | _ACEOF | |
9439 | cat confdefs.h >>conftest.$ac_ext | |
9440 | cat >>conftest.$ac_ext <<_ACEOF | |
9441 | /* end confdefs.h. */ | |
9442 | $ac_includes_default | |
9443 | #include <$ac_header> | |
9444 | _ACEOF | |
9445 | rm -f conftest.$ac_objext | |
9446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9447 | (eval $ac_compile) 2>conftest.er1 | |
9448 | ac_status=$? | |
9449 | grep -v '^ *+' conftest.er1 >conftest.err | |
9450 | rm -f conftest.er1 | |
9451 | cat conftest.err >&5 | |
9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9453 | (exit $ac_status); } && | |
9454 | { ac_try='test -z "$ac_c_werror_flag" | |
9455 | || test ! -s conftest.err' | |
9456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9457 | (eval $ac_try) 2>&5 | |
9458 | ac_status=$? | |
9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9460 | (exit $ac_status); }; } && | |
9461 | { ac_try='test -s conftest.$ac_objext' | |
9462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9463 | (eval $ac_try) 2>&5 | |
9464 | ac_status=$? | |
9465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9466 | (exit $ac_status); }; }; then | |
9467 | ac_header_compiler=yes | |
9468 | else | |
9469 | echo "$as_me: failed program was:" >&5 | |
9470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9471 | ||
9472 | ac_header_compiler=no | |
9473 | fi | |
9474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9475 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9476 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9477 | ||
9478 | # Is the header present? | |
9479 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9480 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9481 | cat >conftest.$ac_ext <<_ACEOF | |
9482 | /* confdefs.h. */ | |
9483 | _ACEOF | |
9484 | cat confdefs.h >>conftest.$ac_ext | |
9485 | cat >>conftest.$ac_ext <<_ACEOF | |
9486 | /* end confdefs.h. */ | |
9487 | #include <$ac_header> | |
9488 | _ACEOF | |
9489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9491 | ac_status=$? | |
9492 | grep -v '^ *+' conftest.er1 >conftest.err | |
9493 | rm -f conftest.er1 | |
9494 | cat conftest.err >&5 | |
9495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9496 | (exit $ac_status); } >/dev/null; then | |
9497 | if test -s conftest.err; then | |
9498 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9500 | else | |
9501 | ac_cpp_err= | |
9502 | fi | |
9a156167 | 9503 | else |
bec39cab | 9504 | ac_cpp_err=yes |
9a156167 | 9505 | fi |
bec39cab AC |
9506 | if test -z "$ac_cpp_err"; then |
9507 | ac_header_preproc=yes | |
9508 | else | |
9509 | echo "$as_me: failed program was:" >&5 | |
9510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9511 | |
bec39cab | 9512 | ac_header_preproc=no |
9a156167 | 9513 | fi |
bec39cab AC |
9514 | rm -f conftest.err conftest.$ac_ext |
9515 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9516 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 9517 | |
bec39cab AC |
9518 | # So? What about this header? |
9519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9520 | yes:no: ) | |
9521 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9522 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9524 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9525 | ac_header_preproc=yes | |
9526 | ;; | |
9527 | no:yes:* ) | |
9528 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9529 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9530 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9531 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9532 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9533 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9534 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9535 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9536 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9537 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9538 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9539 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9540 | ( | |
9541 | cat <<\_ASBOX | |
9542 | ## ------------------------------------------ ## | |
9543 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9544 | ## ------------------------------------------ ## | |
9545 | _ASBOX | |
9546 | ) | | |
9547 | sed "s/^/$as_me: WARNING: /" >&2 | |
9548 | ;; | |
9549 | esac | |
9550 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9552 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9554 | else |
bec39cab | 9555 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9556 | fi |
bec39cab AC |
9557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9558 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 9559 | |
bec39cab AC |
9560 | fi |
9561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9562 | cat >>confdefs.h <<_ACEOF | |
9563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9564 | _ACEOF | |
9a156167 | 9565 | |
bec39cab | 9566 | fi |
9a156167 | 9567 | |
bec39cab | 9568 | done |
9a156167 | 9569 | |
9a156167 | 9570 | |
9a156167 | 9571 | |
bec39cab AC |
9572 | |
9573 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
9574 | do | |
9575 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9577 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9581 | fi | |
9582 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9583 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9584 | else | |
9585 | # Is the header compilable? | |
9586 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9587 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9588 | cat >conftest.$ac_ext <<_ACEOF | |
9589 | /* confdefs.h. */ | |
9590 | _ACEOF | |
9591 | cat confdefs.h >>conftest.$ac_ext | |
9592 | cat >>conftest.$ac_ext <<_ACEOF | |
9593 | /* end confdefs.h. */ | |
9594 | $ac_includes_default | |
9595 | #include <$ac_header> | |
9596 | _ACEOF | |
9597 | rm -f conftest.$ac_objext | |
9598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9599 | (eval $ac_compile) 2>conftest.er1 | |
9600 | ac_status=$? | |
9601 | grep -v '^ *+' conftest.er1 >conftest.err | |
9602 | rm -f conftest.er1 | |
9603 | cat conftest.err >&5 | |
9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9605 | (exit $ac_status); } && | |
9606 | { ac_try='test -z "$ac_c_werror_flag" | |
9607 | || test ! -s conftest.err' | |
9608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9609 | (eval $ac_try) 2>&5 | |
9610 | ac_status=$? | |
9611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9612 | (exit $ac_status); }; } && | |
9613 | { ac_try='test -s conftest.$ac_objext' | |
9614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9615 | (eval $ac_try) 2>&5 | |
9616 | ac_status=$? | |
9617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9618 | (exit $ac_status); }; }; then | |
9619 | ac_header_compiler=yes | |
9620 | else | |
9621 | echo "$as_me: failed program was:" >&5 | |
9622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9623 | ||
9624 | ac_header_compiler=no | |
9625 | fi | |
9626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9627 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9628 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9629 | ||
9630 | # Is the header present? | |
9631 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9632 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9633 | cat >conftest.$ac_ext <<_ACEOF | |
9634 | /* confdefs.h. */ | |
9635 | _ACEOF | |
9636 | cat confdefs.h >>conftest.$ac_ext | |
9637 | cat >>conftest.$ac_ext <<_ACEOF | |
9638 | /* end confdefs.h. */ | |
9639 | #include <$ac_header> | |
9640 | _ACEOF | |
9641 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9642 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9643 | ac_status=$? | |
9644 | grep -v '^ *+' conftest.er1 >conftest.err | |
9645 | rm -f conftest.er1 | |
9646 | cat conftest.err >&5 | |
9647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9648 | (exit $ac_status); } >/dev/null; then | |
9649 | if test -s conftest.err; then | |
9650 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9651 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9652 | else | |
9653 | ac_cpp_err= | |
9654 | fi | |
9a156167 | 9655 | else |
bec39cab | 9656 | ac_cpp_err=yes |
9a156167 | 9657 | fi |
bec39cab AC |
9658 | if test -z "$ac_cpp_err"; then |
9659 | ac_header_preproc=yes | |
9660 | else | |
9661 | echo "$as_me: failed program was:" >&5 | |
9662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9663 | |
bec39cab | 9664 | ac_header_preproc=no |
9a156167 | 9665 | fi |
bec39cab AC |
9666 | rm -f conftest.err conftest.$ac_ext |
9667 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9668 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 9669 | |
bec39cab AC |
9670 | # So? What about this header? |
9671 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9672 | yes:no: ) | |
9673 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9674 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9675 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9676 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9677 | ac_header_preproc=yes | |
9678 | ;; | |
9679 | no:yes:* ) | |
9680 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9681 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9682 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9683 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9684 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9685 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9686 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9687 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9690 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9691 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9692 | ( | |
9693 | cat <<\_ASBOX | |
9694 | ## ------------------------------------------ ## | |
9695 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9696 | ## ------------------------------------------ ## | |
9697 | _ASBOX | |
9698 | ) | | |
9699 | sed "s/^/$as_me: WARNING: /" >&2 | |
9700 | ;; | |
9701 | esac | |
9702 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9703 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9704 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9706 | else |
bec39cab | 9707 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9708 | fi |
bec39cab AC |
9709 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9710 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
9711 | |
9712 | fi | |
bec39cab AC |
9713 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9714 | cat >>confdefs.h <<_ACEOF | |
9715 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9716 | _ACEOF | |
9a156167 | 9717 | |
bec39cab AC |
9718 | fi |
9719 | ||
9720 | done | |
9a156167 | 9721 | |
c890192f | 9722 | |
bec39cab AC |
9723 | for ac_header in stddef.h |
9724 | do | |
9725 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9726 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9727 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9731 | fi | |
9732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9734 | else | |
9735 | # Is the header compilable? | |
9736 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9737 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9738 | cat >conftest.$ac_ext <<_ACEOF | |
9739 | /* confdefs.h. */ | |
9740 | _ACEOF | |
9741 | cat confdefs.h >>conftest.$ac_ext | |
9742 | cat >>conftest.$ac_ext <<_ACEOF | |
9743 | /* end confdefs.h. */ | |
9744 | $ac_includes_default | |
9745 | #include <$ac_header> | |
9746 | _ACEOF | |
9747 | rm -f conftest.$ac_objext | |
9748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9749 | (eval $ac_compile) 2>conftest.er1 | |
9750 | ac_status=$? | |
9751 | grep -v '^ *+' conftest.er1 >conftest.err | |
9752 | rm -f conftest.er1 | |
9753 | cat conftest.err >&5 | |
9754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9755 | (exit $ac_status); } && | |
9756 | { ac_try='test -z "$ac_c_werror_flag" | |
9757 | || test ! -s conftest.err' | |
9758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9759 | (eval $ac_try) 2>&5 | |
9760 | ac_status=$? | |
9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9762 | (exit $ac_status); }; } && | |
9763 | { ac_try='test -s conftest.$ac_objext' | |
9764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9765 | (eval $ac_try) 2>&5 | |
9766 | ac_status=$? | |
9767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9768 | (exit $ac_status); }; }; then | |
9769 | ac_header_compiler=yes | |
9770 | else | |
9771 | echo "$as_me: failed program was:" >&5 | |
9772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9773 | ||
9774 | ac_header_compiler=no | |
9775 | fi | |
9776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9777 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9778 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9779 | ||
9780 | # Is the header present? | |
9781 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9782 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9783 | cat >conftest.$ac_ext <<_ACEOF | |
9784 | /* confdefs.h. */ | |
9785 | _ACEOF | |
9786 | cat confdefs.h >>conftest.$ac_ext | |
9787 | cat >>conftest.$ac_ext <<_ACEOF | |
9788 | /* end confdefs.h. */ | |
9789 | #include <$ac_header> | |
9790 | _ACEOF | |
9791 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9792 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9793 | ac_status=$? | |
9794 | grep -v '^ *+' conftest.er1 >conftest.err | |
9795 | rm -f conftest.er1 | |
9796 | cat conftest.err >&5 | |
9797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9798 | (exit $ac_status); } >/dev/null; then | |
9799 | if test -s conftest.err; then | |
9800 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9801 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9802 | else | |
9803 | ac_cpp_err= | |
9804 | fi | |
c890192f | 9805 | else |
bec39cab AC |
9806 | ac_cpp_err=yes |
9807 | fi | |
9808 | if test -z "$ac_cpp_err"; then | |
9809 | ac_header_preproc=yes | |
c890192f | 9810 | else |
bec39cab AC |
9811 | echo "$as_me: failed program was:" >&5 |
9812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9813 | ||
9814 | ac_header_preproc=no | |
c890192f | 9815 | fi |
bec39cab AC |
9816 | rm -f conftest.err conftest.$ac_ext |
9817 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9818 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9819 | ||
9820 | # So? What about this header? | |
9821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9822 | yes:no: ) | |
9823 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9824 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9826 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9827 | ac_header_preproc=yes | |
9828 | ;; | |
9829 | no:yes:* ) | |
9830 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9831 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9832 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9833 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9834 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9835 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9836 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9837 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9839 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9840 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9841 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9842 | ( | |
9843 | cat <<\_ASBOX | |
9844 | ## ------------------------------------------ ## | |
9845 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9846 | ## ------------------------------------------ ## | |
9847 | _ASBOX | |
9848 | ) | | |
9849 | sed "s/^/$as_me: WARNING: /" >&2 | |
9850 | ;; | |
9851 | esac | |
9852 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c890192f | 9856 | else |
bec39cab | 9857 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 9858 | fi |
bec39cab AC |
9859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9860 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9861 | ||
c890192f | 9862 | fi |
bec39cab AC |
9863 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9864 | cat >>confdefs.h <<_ACEOF | |
9865 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9866 | _ACEOF | |
c890192f | 9867 | |
c890192f MK |
9868 | fi |
9869 | ||
bec39cab | 9870 | done |
9a156167 | 9871 | |
bec39cab AC |
9872 | |
9873 | for ac_header in stdlib.h | |
9874 | do | |
9875 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9877 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9881 | fi | |
9882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9884 | else | |
9885 | # Is the header compilable? | |
9886 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9887 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9888 | cat >conftest.$ac_ext <<_ACEOF | |
9889 | /* confdefs.h. */ | |
9890 | _ACEOF | |
9891 | cat confdefs.h >>conftest.$ac_ext | |
9892 | cat >>conftest.$ac_ext <<_ACEOF | |
9893 | /* end confdefs.h. */ | |
9894 | $ac_includes_default | |
9895 | #include <$ac_header> | |
9896 | _ACEOF | |
9897 | rm -f conftest.$ac_objext | |
9898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9899 | (eval $ac_compile) 2>conftest.er1 | |
9900 | ac_status=$? | |
9901 | grep -v '^ *+' conftest.er1 >conftest.err | |
9902 | rm -f conftest.er1 | |
9903 | cat conftest.err >&5 | |
9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9905 | (exit $ac_status); } && | |
9906 | { ac_try='test -z "$ac_c_werror_flag" | |
9907 | || test ! -s conftest.err' | |
9908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9909 | (eval $ac_try) 2>&5 | |
9910 | ac_status=$? | |
9911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9912 | (exit $ac_status); }; } && | |
9913 | { ac_try='test -s conftest.$ac_objext' | |
9914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9915 | (eval $ac_try) 2>&5 | |
9916 | ac_status=$? | |
9917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9918 | (exit $ac_status); }; }; then | |
9919 | ac_header_compiler=yes | |
9920 | else | |
9921 | echo "$as_me: failed program was:" >&5 | |
9922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9923 | ||
9924 | ac_header_compiler=no | |
9925 | fi | |
9926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9927 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9928 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9929 | ||
9930 | # Is the header present? | |
9931 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9933 | cat >conftest.$ac_ext <<_ACEOF | |
9934 | /* confdefs.h. */ | |
9935 | _ACEOF | |
9936 | cat confdefs.h >>conftest.$ac_ext | |
9937 | cat >>conftest.$ac_ext <<_ACEOF | |
9938 | /* end confdefs.h. */ | |
9939 | #include <$ac_header> | |
9940 | _ACEOF | |
9941 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9942 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9943 | ac_status=$? | |
9944 | grep -v '^ *+' conftest.er1 >conftest.err | |
9945 | rm -f conftest.er1 | |
9946 | cat conftest.err >&5 | |
9947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9948 | (exit $ac_status); } >/dev/null; then | |
9949 | if test -s conftest.err; then | |
9950 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9951 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9952 | else | |
9953 | ac_cpp_err= | |
9954 | fi | |
9a156167 | 9955 | else |
bec39cab AC |
9956 | ac_cpp_err=yes |
9957 | fi | |
9958 | if test -z "$ac_cpp_err"; then | |
9959 | ac_header_preproc=yes | |
9a156167 | 9960 | else |
bec39cab AC |
9961 | echo "$as_me: failed program was:" >&5 |
9962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9963 | ||
9964 | ac_header_preproc=no | |
9a156167 | 9965 | fi |
bec39cab AC |
9966 | rm -f conftest.err conftest.$ac_ext |
9967 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9968 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9969 | ||
9970 | # So? What about this header? | |
9971 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9972 | yes:no: ) | |
9973 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9974 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9975 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9976 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9977 | ac_header_preproc=yes | |
9978 | ;; | |
9979 | no:yes:* ) | |
9980 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9981 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9982 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9983 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9984 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9985 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9986 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9987 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9988 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9989 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9990 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9991 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9992 | ( | |
9993 | cat <<\_ASBOX | |
9994 | ## ------------------------------------------ ## | |
9995 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9996 | ## ------------------------------------------ ## | |
9997 | _ASBOX | |
9998 | ) | | |
9999 | sed "s/^/$as_me: WARNING: /" >&2 | |
10000 | ;; | |
10001 | esac | |
10002 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10003 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 10006 | else |
bec39cab | 10007 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 10008 | fi |
bec39cab AC |
10009 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10010 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10011 | ||
9a156167 | 10012 | fi |
bec39cab AC |
10013 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10014 | cat >>confdefs.h <<_ACEOF | |
10015 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10016 | _ACEOF | |
9a156167 | 10017 | |
9a156167 MK |
10018 | fi |
10019 | ||
bec39cab AC |
10020 | done |
10021 | ||
06825bd1 | 10022 | |
bec39cab AC |
10023 | for ac_header in stdint.h |
10024 | do | |
10025 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10027 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10031 | fi | |
10032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10033 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10034 | else | |
10035 | # Is the header compilable? | |
10036 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10037 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10038 | cat >conftest.$ac_ext <<_ACEOF | |
10039 | /* confdefs.h. */ | |
10040 | _ACEOF | |
10041 | cat confdefs.h >>conftest.$ac_ext | |
10042 | cat >>conftest.$ac_ext <<_ACEOF | |
10043 | /* end confdefs.h. */ | |
10044 | $ac_includes_default | |
10045 | #include <$ac_header> | |
10046 | _ACEOF | |
10047 | rm -f conftest.$ac_objext | |
10048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10049 | (eval $ac_compile) 2>conftest.er1 | |
10050 | ac_status=$? | |
10051 | grep -v '^ *+' conftest.er1 >conftest.err | |
10052 | rm -f conftest.er1 | |
10053 | cat conftest.err >&5 | |
10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10055 | (exit $ac_status); } && | |
10056 | { ac_try='test -z "$ac_c_werror_flag" | |
10057 | || test ! -s conftest.err' | |
10058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10059 | (eval $ac_try) 2>&5 | |
10060 | ac_status=$? | |
10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10062 | (exit $ac_status); }; } && | |
10063 | { ac_try='test -s conftest.$ac_objext' | |
10064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10065 | (eval $ac_try) 2>&5 | |
10066 | ac_status=$? | |
10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10068 | (exit $ac_status); }; }; then | |
10069 | ac_header_compiler=yes | |
10070 | else | |
10071 | echo "$as_me: failed program was:" >&5 | |
10072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10073 | ||
10074 | ac_header_compiler=no | |
10075 | fi | |
10076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10077 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10078 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10079 | ||
10080 | # Is the header present? | |
10081 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10082 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10083 | cat >conftest.$ac_ext <<_ACEOF | |
10084 | /* confdefs.h. */ | |
10085 | _ACEOF | |
10086 | cat confdefs.h >>conftest.$ac_ext | |
10087 | cat >>conftest.$ac_ext <<_ACEOF | |
10088 | /* end confdefs.h. */ | |
10089 | #include <$ac_header> | |
10090 | _ACEOF | |
10091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10092 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10093 | ac_status=$? | |
10094 | grep -v '^ *+' conftest.er1 >conftest.err | |
10095 | rm -f conftest.er1 | |
10096 | cat conftest.err >&5 | |
10097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10098 | (exit $ac_status); } >/dev/null; then | |
10099 | if test -s conftest.err; then | |
10100 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10101 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10102 | else | |
10103 | ac_cpp_err= | |
10104 | fi | |
06825bd1 | 10105 | else |
bec39cab AC |
10106 | ac_cpp_err=yes |
10107 | fi | |
10108 | if test -z "$ac_cpp_err"; then | |
10109 | ac_header_preproc=yes | |
06825bd1 | 10110 | else |
bec39cab AC |
10111 | echo "$as_me: failed program was:" >&5 |
10112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10113 | ||
10114 | ac_header_preproc=no | |
06825bd1 | 10115 | fi |
bec39cab AC |
10116 | rm -f conftest.err conftest.$ac_ext |
10117 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10118 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10119 | ||
10120 | # So? What about this header? | |
10121 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10122 | yes:no: ) | |
10123 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10124 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10125 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10126 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10127 | ac_header_preproc=yes | |
10128 | ;; | |
10129 | no:yes:* ) | |
10130 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10131 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10132 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10133 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10134 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10135 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10136 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10137 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10138 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10139 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10140 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10141 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10142 | ( | |
10143 | cat <<\_ASBOX | |
10144 | ## ------------------------------------------ ## | |
10145 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10146 | ## ------------------------------------------ ## | |
10147 | _ASBOX | |
10148 | ) | | |
10149 | sed "s/^/$as_me: WARNING: /" >&2 | |
10150 | ;; | |
10151 | esac | |
10152 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
06825bd1 | 10156 | else |
bec39cab | 10157 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 10158 | fi |
bec39cab AC |
10159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10161 | ||
06825bd1 | 10162 | fi |
bec39cab AC |
10163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10164 | cat >>confdefs.h <<_ACEOF | |
10165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10166 | _ACEOF | |
06825bd1 | 10167 | |
06825bd1 | 10168 | fi |
4f0be353 | 10169 | |
bec39cab | 10170 | done |
4f0be353 | 10171 | |
06825bd1 | 10172 | |
06825bd1 | 10173 | |
bec39cab AC |
10174 | |
10175 | for ac_header in string.h memory.h strings.h | |
10176 | do | |
10177 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10179 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10183 | fi | |
10184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10185 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10186 | else | |
10187 | # Is the header compilable? | |
10188 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10190 | cat >conftest.$ac_ext <<_ACEOF | |
10191 | /* confdefs.h. */ | |
10192 | _ACEOF | |
10193 | cat confdefs.h >>conftest.$ac_ext | |
10194 | cat >>conftest.$ac_ext <<_ACEOF | |
10195 | /* end confdefs.h. */ | |
10196 | $ac_includes_default | |
10197 | #include <$ac_header> | |
10198 | _ACEOF | |
10199 | rm -f conftest.$ac_objext | |
10200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10201 | (eval $ac_compile) 2>conftest.er1 | |
10202 | ac_status=$? | |
10203 | grep -v '^ *+' conftest.er1 >conftest.err | |
10204 | rm -f conftest.er1 | |
10205 | cat conftest.err >&5 | |
10206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10207 | (exit $ac_status); } && | |
10208 | { ac_try='test -z "$ac_c_werror_flag" | |
10209 | || test ! -s conftest.err' | |
10210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10211 | (eval $ac_try) 2>&5 | |
10212 | ac_status=$? | |
10213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10214 | (exit $ac_status); }; } && | |
10215 | { ac_try='test -s conftest.$ac_objext' | |
10216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10217 | (eval $ac_try) 2>&5 | |
10218 | ac_status=$? | |
10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10220 | (exit $ac_status); }; }; then | |
10221 | ac_header_compiler=yes | |
10222 | else | |
10223 | echo "$as_me: failed program was:" >&5 | |
10224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10225 | ||
10226 | ac_header_compiler=no | |
10227 | fi | |
10228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10229 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10230 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10231 | ||
10232 | # Is the header present? | |
10233 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10234 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10235 | cat >conftest.$ac_ext <<_ACEOF | |
10236 | /* confdefs.h. */ | |
10237 | _ACEOF | |
10238 | cat confdefs.h >>conftest.$ac_ext | |
10239 | cat >>conftest.$ac_ext <<_ACEOF | |
10240 | /* end confdefs.h. */ | |
10241 | #include <$ac_header> | |
10242 | _ACEOF | |
10243 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10244 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10245 | ac_status=$? | |
10246 | grep -v '^ *+' conftest.er1 >conftest.err | |
10247 | rm -f conftest.er1 | |
10248 | cat conftest.err >&5 | |
10249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10250 | (exit $ac_status); } >/dev/null; then | |
10251 | if test -s conftest.err; then | |
10252 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10253 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10254 | else | |
10255 | ac_cpp_err= | |
10256 | fi | |
06825bd1 | 10257 | else |
bec39cab AC |
10258 | ac_cpp_err=yes |
10259 | fi | |
10260 | if test -z "$ac_cpp_err"; then | |
10261 | ac_header_preproc=yes | |
06825bd1 | 10262 | else |
bec39cab AC |
10263 | echo "$as_me: failed program was:" >&5 |
10264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10265 | ||
10266 | ac_header_preproc=no | |
06825bd1 | 10267 | fi |
bec39cab AC |
10268 | rm -f conftest.err conftest.$ac_ext |
10269 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10270 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10271 | ||
10272 | # So? What about this header? | |
10273 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10274 | yes:no: ) | |
10275 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10276 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10278 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10279 | ac_header_preproc=yes | |
10280 | ;; | |
10281 | no:yes:* ) | |
10282 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10283 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10284 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10285 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10286 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10287 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10288 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10289 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10291 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10292 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10293 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10294 | ( | |
10295 | cat <<\_ASBOX | |
10296 | ## ------------------------------------------ ## | |
10297 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10298 | ## ------------------------------------------ ## | |
10299 | _ASBOX | |
10300 | ) | | |
10301 | sed "s/^/$as_me: WARNING: /" >&2 | |
10302 | ;; | |
10303 | esac | |
10304 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10308 | else | |
10309 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 10310 | fi |
bec39cab AC |
10311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 10313 | |
06825bd1 | 10314 | fi |
bec39cab AC |
10315 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10316 | cat >>confdefs.h <<_ACEOF | |
10317 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10318 | _ACEOF | |
06825bd1 | 10319 | |
06825bd1 MK |
10320 | fi |
10321 | ||
bec39cab | 10322 | done |
5ee754fc | 10323 | |
bec39cab AC |
10324 | |
10325 | for ac_header in sys/fault.h | |
5ee754fc | 10326 | do |
bec39cab AC |
10327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10333 | fi | |
10334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10335 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10336 | else | |
10337 | # Is the header compilable? | |
10338 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10339 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10340 | cat >conftest.$ac_ext <<_ACEOF | |
10341 | /* confdefs.h. */ | |
10342 | _ACEOF | |
10343 | cat confdefs.h >>conftest.$ac_ext | |
10344 | cat >>conftest.$ac_ext <<_ACEOF | |
10345 | /* end confdefs.h. */ | |
10346 | $ac_includes_default | |
10347 | #include <$ac_header> | |
10348 | _ACEOF | |
10349 | rm -f conftest.$ac_objext | |
10350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10351 | (eval $ac_compile) 2>conftest.er1 | |
10352 | ac_status=$? | |
10353 | grep -v '^ *+' conftest.er1 >conftest.err | |
10354 | rm -f conftest.er1 | |
10355 | cat conftest.err >&5 | |
10356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10357 | (exit $ac_status); } && | |
10358 | { ac_try='test -z "$ac_c_werror_flag" | |
10359 | || test ! -s conftest.err' | |
10360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10361 | (eval $ac_try) 2>&5 | |
10362 | ac_status=$? | |
10363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10364 | (exit $ac_status); }; } && | |
10365 | { ac_try='test -s conftest.$ac_objext' | |
10366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10367 | (eval $ac_try) 2>&5 | |
10368 | ac_status=$? | |
10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10370 | (exit $ac_status); }; }; then | |
10371 | ac_header_compiler=yes | |
10372 | else | |
10373 | echo "$as_me: failed program was:" >&5 | |
10374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10375 | ||
10376 | ac_header_compiler=no | |
10377 | fi | |
10378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10379 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10380 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10381 | ||
10382 | # Is the header present? | |
10383 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10384 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10385 | cat >conftest.$ac_ext <<_ACEOF | |
10386 | /* confdefs.h. */ | |
10387 | _ACEOF | |
10388 | cat confdefs.h >>conftest.$ac_ext | |
10389 | cat >>conftest.$ac_ext <<_ACEOF | |
10390 | /* end confdefs.h. */ | |
10391 | #include <$ac_header> | |
10392 | _ACEOF | |
10393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10395 | ac_status=$? | |
10396 | grep -v '^ *+' conftest.er1 >conftest.err | |
10397 | rm -f conftest.er1 | |
10398 | cat conftest.err >&5 | |
10399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10400 | (exit $ac_status); } >/dev/null; then | |
10401 | if test -s conftest.err; then | |
10402 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10404 | else | |
10405 | ac_cpp_err= | |
10406 | fi | |
5ee754fc | 10407 | else |
bec39cab | 10408 | ac_cpp_err=yes |
5ee754fc | 10409 | fi |
bec39cab AC |
10410 | if test -z "$ac_cpp_err"; then |
10411 | ac_header_preproc=yes | |
10412 | else | |
10413 | echo "$as_me: failed program was:" >&5 | |
10414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10415 | |
bec39cab | 10416 | ac_header_preproc=no |
5ee754fc | 10417 | fi |
bec39cab AC |
10418 | rm -f conftest.err conftest.$ac_ext |
10419 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10420 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10421 | ||
10422 | # So? What about this header? | |
10423 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10424 | yes:no: ) | |
10425 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10426 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10427 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10428 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10429 | ac_header_preproc=yes | |
10430 | ;; | |
10431 | no:yes:* ) | |
10432 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10433 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10434 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10435 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10436 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10437 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10438 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10439 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10441 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10442 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10443 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10444 | ( | |
10445 | cat <<\_ASBOX | |
10446 | ## ------------------------------------------ ## | |
10447 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10448 | ## ------------------------------------------ ## | |
10449 | _ASBOX | |
10450 | ) | | |
10451 | sed "s/^/$as_me: WARNING: /" >&2 | |
10452 | ;; | |
10453 | esac | |
10454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10458 | else |
bec39cab | 10459 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 10460 | fi |
bec39cab AC |
10461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10462 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 10463 | |
5ee754fc | 10464 | fi |
bec39cab AC |
10465 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10466 | cat >>confdefs.h <<_ACEOF | |
10467 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10468 | _ACEOF | |
c906108c | 10469 | |
5ee754fc | 10470 | fi |
bec39cab AC |
10471 | |
10472 | done | |
10473 | ||
10474 | ||
10475 | for ac_header in sys/file.h | |
10476 | do | |
10477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10483 | fi | |
10484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10486 | else | |
10487 | # Is the header compilable? | |
10488 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10489 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10490 | cat >conftest.$ac_ext <<_ACEOF | |
10491 | /* confdefs.h. */ | |
10492 | _ACEOF | |
10493 | cat confdefs.h >>conftest.$ac_ext | |
10494 | cat >>conftest.$ac_ext <<_ACEOF | |
10495 | /* end confdefs.h. */ | |
10496 | $ac_includes_default | |
10497 | #include <$ac_header> | |
10498 | _ACEOF | |
10499 | rm -f conftest.$ac_objext | |
10500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10501 | (eval $ac_compile) 2>conftest.er1 | |
10502 | ac_status=$? | |
10503 | grep -v '^ *+' conftest.er1 >conftest.err | |
10504 | rm -f conftest.er1 | |
10505 | cat conftest.err >&5 | |
10506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10507 | (exit $ac_status); } && | |
10508 | { ac_try='test -z "$ac_c_werror_flag" | |
10509 | || test ! -s conftest.err' | |
10510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10511 | (eval $ac_try) 2>&5 | |
10512 | ac_status=$? | |
10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10514 | (exit $ac_status); }; } && | |
10515 | { ac_try='test -s conftest.$ac_objext' | |
10516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10517 | (eval $ac_try) 2>&5 | |
10518 | ac_status=$? | |
10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10520 | (exit $ac_status); }; }; then | |
10521 | ac_header_compiler=yes | |
10522 | else | |
10523 | echo "$as_me: failed program was:" >&5 | |
10524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10525 | ||
10526 | ac_header_compiler=no | |
10527 | fi | |
10528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10529 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10530 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10531 | ||
10532 | # Is the header present? | |
10533 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10534 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10535 | cat >conftest.$ac_ext <<_ACEOF | |
10536 | /* confdefs.h. */ | |
10537 | _ACEOF | |
10538 | cat confdefs.h >>conftest.$ac_ext | |
10539 | cat >>conftest.$ac_ext <<_ACEOF | |
10540 | /* end confdefs.h. */ | |
10541 | #include <$ac_header> | |
10542 | _ACEOF | |
10543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10545 | ac_status=$? | |
10546 | grep -v '^ *+' conftest.er1 >conftest.err | |
10547 | rm -f conftest.er1 | |
10548 | cat conftest.err >&5 | |
10549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10550 | (exit $ac_status); } >/dev/null; then | |
10551 | if test -s conftest.err; then | |
10552 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10553 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10554 | else | |
10555 | ac_cpp_err= | |
10556 | fi | |
5ee754fc | 10557 | else |
bec39cab | 10558 | ac_cpp_err=yes |
5ee754fc | 10559 | fi |
bec39cab AC |
10560 | if test -z "$ac_cpp_err"; then |
10561 | ac_header_preproc=yes | |
10562 | else | |
10563 | echo "$as_me: failed program was:" >&5 | |
10564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 10565 | |
bec39cab | 10566 | ac_header_preproc=no |
5ee754fc | 10567 | fi |
bec39cab AC |
10568 | rm -f conftest.err conftest.$ac_ext |
10569 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10570 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 10571 | |
bec39cab AC |
10572 | # So? What about this header? |
10573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10574 | yes:no: ) | |
10575 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10576 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10578 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10579 | ac_header_preproc=yes | |
10580 | ;; | |
10581 | no:yes:* ) | |
10582 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10583 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10584 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10585 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10586 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10587 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10588 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10589 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10591 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10592 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10593 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10594 | ( | |
10595 | cat <<\_ASBOX | |
10596 | ## ------------------------------------------ ## | |
10597 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10598 | ## ------------------------------------------ ## | |
10599 | _ASBOX | |
10600 | ) | | |
10601 | sed "s/^/$as_me: WARNING: /" >&2 | |
10602 | ;; | |
10603 | esac | |
10604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9608ab8b | 10608 | else |
bec39cab AC |
10609 | eval "$as_ac_Header=\$ac_header_preproc" |
10610 | fi | |
10611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10612 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10613 | |
bec39cab AC |
10614 | fi |
10615 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10616 | cat >>confdefs.h <<_ACEOF | |
10617 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10618 | _ACEOF | |
5ee754fc | 10619 | |
bec39cab | 10620 | fi |
5ee754fc | 10621 | |
bec39cab | 10622 | done |
5ee754fc | 10623 | |
5ee754fc | 10624 | |
bec39cab AC |
10625 | for ac_header in sys/filio.h |
10626 | do | |
10627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10633 | fi | |
10634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10636 | else | |
10637 | # Is the header compilable? | |
10638 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10640 | cat >conftest.$ac_ext <<_ACEOF | |
10641 | /* confdefs.h. */ | |
10642 | _ACEOF | |
10643 | cat confdefs.h >>conftest.$ac_ext | |
10644 | cat >>conftest.$ac_ext <<_ACEOF | |
10645 | /* end confdefs.h. */ | |
10646 | $ac_includes_default | |
10647 | #include <$ac_header> | |
10648 | _ACEOF | |
10649 | rm -f conftest.$ac_objext | |
10650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10651 | (eval $ac_compile) 2>conftest.er1 | |
10652 | ac_status=$? | |
10653 | grep -v '^ *+' conftest.er1 >conftest.err | |
10654 | rm -f conftest.er1 | |
10655 | cat conftest.err >&5 | |
10656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10657 | (exit $ac_status); } && | |
10658 | { ac_try='test -z "$ac_c_werror_flag" | |
10659 | || test ! -s conftest.err' | |
10660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10661 | (eval $ac_try) 2>&5 | |
10662 | ac_status=$? | |
10663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10664 | (exit $ac_status); }; } && | |
10665 | { ac_try='test -s conftest.$ac_objext' | |
10666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10667 | (eval $ac_try) 2>&5 | |
10668 | ac_status=$? | |
10669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10670 | (exit $ac_status); }; }; then | |
10671 | ac_header_compiler=yes | |
10672 | else | |
10673 | echo "$as_me: failed program was:" >&5 | |
10674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10675 | ||
10676 | ac_header_compiler=no | |
10677 | fi | |
10678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10679 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10680 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10681 | ||
10682 | # Is the header present? | |
10683 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10685 | cat >conftest.$ac_ext <<_ACEOF | |
10686 | /* confdefs.h. */ | |
10687 | _ACEOF | |
10688 | cat confdefs.h >>conftest.$ac_ext | |
10689 | cat >>conftest.$ac_ext <<_ACEOF | |
10690 | /* end confdefs.h. */ | |
10691 | #include <$ac_header> | |
10692 | _ACEOF | |
10693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10695 | ac_status=$? | |
10696 | grep -v '^ *+' conftest.er1 >conftest.err | |
10697 | rm -f conftest.er1 | |
10698 | cat conftest.err >&5 | |
10699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10700 | (exit $ac_status); } >/dev/null; then | |
10701 | if test -s conftest.err; then | |
10702 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10703 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10704 | else | |
10705 | ac_cpp_err= | |
10706 | fi | |
5ee754fc | 10707 | else |
bec39cab | 10708 | ac_cpp_err=yes |
5ee754fc | 10709 | fi |
bec39cab AC |
10710 | if test -z "$ac_cpp_err"; then |
10711 | ac_header_preproc=yes | |
10712 | else | |
10713 | echo "$as_me: failed program was:" >&5 | |
10714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10715 | |
bec39cab | 10716 | ac_header_preproc=no |
5ee754fc | 10717 | fi |
bec39cab AC |
10718 | rm -f conftest.err conftest.$ac_ext |
10719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10720 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10721 | |
bec39cab AC |
10722 | # So? What about this header? |
10723 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10724 | yes:no: ) | |
10725 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10726 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10728 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10729 | ac_header_preproc=yes | |
10730 | ;; | |
10731 | no:yes:* ) | |
10732 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10733 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10734 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10735 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10736 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10737 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10738 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10739 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10741 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10742 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10743 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10744 | ( | |
10745 | cat <<\_ASBOX | |
10746 | ## ------------------------------------------ ## | |
10747 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10748 | ## ------------------------------------------ ## | |
10749 | _ASBOX | |
10750 | ) | | |
10751 | sed "s/^/$as_me: WARNING: /" >&2 | |
10752 | ;; | |
10753 | esac | |
10754 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10758 | else |
bec39cab | 10759 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10760 | fi |
bec39cab AC |
10761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10763 | |
5ee754fc | 10764 | fi |
bec39cab AC |
10765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10766 | cat >>confdefs.h <<_ACEOF | |
10767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10768 | _ACEOF | |
5ee754fc MK |
10769 | |
10770 | fi | |
10771 | ||
bec39cab AC |
10772 | done |
10773 | ||
10774 | ||
10775 | for ac_header in sys/ioctl.h | |
10776 | do | |
10777 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10779 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10783 | fi | |
10784 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10785 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10786 | else | |
10787 | # Is the header compilable? | |
10788 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10789 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10790 | cat >conftest.$ac_ext <<_ACEOF | |
10791 | /* confdefs.h. */ | |
10792 | _ACEOF | |
10793 | cat confdefs.h >>conftest.$ac_ext | |
10794 | cat >>conftest.$ac_ext <<_ACEOF | |
10795 | /* end confdefs.h. */ | |
10796 | $ac_includes_default | |
10797 | #include <$ac_header> | |
10798 | _ACEOF | |
10799 | rm -f conftest.$ac_objext | |
10800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10801 | (eval $ac_compile) 2>conftest.er1 | |
10802 | ac_status=$? | |
10803 | grep -v '^ *+' conftest.er1 >conftest.err | |
10804 | rm -f conftest.er1 | |
10805 | cat conftest.err >&5 | |
10806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10807 | (exit $ac_status); } && | |
10808 | { ac_try='test -z "$ac_c_werror_flag" | |
10809 | || test ! -s conftest.err' | |
10810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10811 | (eval $ac_try) 2>&5 | |
10812 | ac_status=$? | |
10813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10814 | (exit $ac_status); }; } && | |
10815 | { ac_try='test -s conftest.$ac_objext' | |
10816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10817 | (eval $ac_try) 2>&5 | |
10818 | ac_status=$? | |
10819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10820 | (exit $ac_status); }; }; then | |
10821 | ac_header_compiler=yes | |
10822 | else | |
10823 | echo "$as_me: failed program was:" >&5 | |
10824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10825 | ||
10826 | ac_header_compiler=no | |
10827 | fi | |
10828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10829 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10830 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10831 | ||
10832 | # Is the header present? | |
10833 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10834 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10835 | cat >conftest.$ac_ext <<_ACEOF | |
10836 | /* confdefs.h. */ | |
10837 | _ACEOF | |
10838 | cat confdefs.h >>conftest.$ac_ext | |
10839 | cat >>conftest.$ac_ext <<_ACEOF | |
10840 | /* end confdefs.h. */ | |
10841 | #include <$ac_header> | |
10842 | _ACEOF | |
10843 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10844 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10845 | ac_status=$? | |
10846 | grep -v '^ *+' conftest.er1 >conftest.err | |
10847 | rm -f conftest.er1 | |
10848 | cat conftest.err >&5 | |
10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10850 | (exit $ac_status); } >/dev/null; then | |
10851 | if test -s conftest.err; then | |
10852 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10853 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10854 | else | |
10855 | ac_cpp_err= | |
10856 | fi | |
5ee754fc | 10857 | else |
bec39cab | 10858 | ac_cpp_err=yes |
5ee754fc | 10859 | fi |
bec39cab AC |
10860 | if test -z "$ac_cpp_err"; then |
10861 | ac_header_preproc=yes | |
10862 | else | |
10863 | echo "$as_me: failed program was:" >&5 | |
10864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10865 | |
bec39cab | 10866 | ac_header_preproc=no |
5ee754fc | 10867 | fi |
bec39cab AC |
10868 | rm -f conftest.err conftest.$ac_ext |
10869 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10870 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10871 | |
bec39cab AC |
10872 | # So? What about this header? |
10873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10874 | yes:no: ) | |
10875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10879 | ac_header_preproc=yes | |
10880 | ;; | |
10881 | no:yes:* ) | |
10882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10894 | ( | |
10895 | cat <<\_ASBOX | |
10896 | ## ------------------------------------------ ## | |
10897 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10898 | ## ------------------------------------------ ## | |
10899 | _ASBOX | |
10900 | ) | | |
10901 | sed "s/^/$as_me: WARNING: /" >&2 | |
10902 | ;; | |
10903 | esac | |
10904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9608ab8b | 10908 | else |
bec39cab | 10909 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10910 | fi |
bec39cab AC |
10911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
10913 | |
10914 | fi | |
bec39cab AC |
10915 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10916 | cat >>confdefs.h <<_ACEOF | |
10917 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10918 | _ACEOF | |
10919 | ||
5ee754fc MK |
10920 | fi |
10921 | ||
bec39cab | 10922 | done |
5ee754fc | 10923 | |
5ee754fc | 10924 | |
bec39cab | 10925 | for ac_header in sys/param.h |
5ee754fc | 10926 | do |
bec39cab AC |
10927 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10933 | fi | |
10934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10935 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10936 | else | |
10937 | # Is the header compilable? | |
10938 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10939 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10940 | cat >conftest.$ac_ext <<_ACEOF | |
10941 | /* confdefs.h. */ | |
10942 | _ACEOF | |
10943 | cat confdefs.h >>conftest.$ac_ext | |
10944 | cat >>conftest.$ac_ext <<_ACEOF | |
10945 | /* end confdefs.h. */ | |
10946 | $ac_includes_default | |
10947 | #include <$ac_header> | |
10948 | _ACEOF | |
10949 | rm -f conftest.$ac_objext | |
10950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10951 | (eval $ac_compile) 2>conftest.er1 | |
10952 | ac_status=$? | |
10953 | grep -v '^ *+' conftest.er1 >conftest.err | |
10954 | rm -f conftest.er1 | |
10955 | cat conftest.err >&5 | |
10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10957 | (exit $ac_status); } && | |
10958 | { ac_try='test -z "$ac_c_werror_flag" | |
10959 | || test ! -s conftest.err' | |
10960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10961 | (eval $ac_try) 2>&5 | |
10962 | ac_status=$? | |
10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10964 | (exit $ac_status); }; } && | |
10965 | { ac_try='test -s conftest.$ac_objext' | |
10966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10967 | (eval $ac_try) 2>&5 | |
10968 | ac_status=$? | |
10969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10970 | (exit $ac_status); }; }; then | |
10971 | ac_header_compiler=yes | |
10972 | else | |
10973 | echo "$as_me: failed program was:" >&5 | |
10974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10975 | ||
10976 | ac_header_compiler=no | |
10977 | fi | |
10978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10979 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10980 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10981 | ||
10982 | # Is the header present? | |
10983 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10984 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10985 | cat >conftest.$ac_ext <<_ACEOF | |
10986 | /* confdefs.h. */ | |
10987 | _ACEOF | |
10988 | cat confdefs.h >>conftest.$ac_ext | |
10989 | cat >>conftest.$ac_ext <<_ACEOF | |
10990 | /* end confdefs.h. */ | |
10991 | #include <$ac_header> | |
10992 | _ACEOF | |
10993 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10994 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10995 | ac_status=$? | |
10996 | grep -v '^ *+' conftest.er1 >conftest.err | |
10997 | rm -f conftest.er1 | |
10998 | cat conftest.err >&5 | |
10999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11000 | (exit $ac_status); } >/dev/null; then | |
11001 | if test -s conftest.err; then | |
11002 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11003 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11004 | else | |
11005 | ac_cpp_err= | |
11006 | fi | |
5ee754fc | 11007 | else |
bec39cab | 11008 | ac_cpp_err=yes |
5ee754fc | 11009 | fi |
bec39cab AC |
11010 | if test -z "$ac_cpp_err"; then |
11011 | ac_header_preproc=yes | |
11012 | else | |
11013 | echo "$as_me: failed program was:" >&5 | |
11014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 11015 | |
bec39cab | 11016 | ac_header_preproc=no |
5ee754fc | 11017 | fi |
bec39cab AC |
11018 | rm -f conftest.err conftest.$ac_ext |
11019 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11020 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11021 | ||
11022 | # So? What about this header? | |
11023 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11024 | yes:no: ) | |
11025 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11026 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11027 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11028 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11029 | ac_header_preproc=yes | |
11030 | ;; | |
11031 | no:yes:* ) | |
11032 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11033 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11034 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11035 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11036 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11037 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11038 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11039 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11041 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11042 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11043 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11044 | ( | |
11045 | cat <<\_ASBOX | |
11046 | ## ------------------------------------------ ## | |
11047 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11048 | ## ------------------------------------------ ## | |
11049 | _ASBOX | |
11050 | ) | | |
11051 | sed "s/^/$as_me: WARNING: /" >&2 | |
11052 | ;; | |
11053 | esac | |
11054 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11056 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 11058 | else |
bec39cab | 11059 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 11060 | fi |
bec39cab AC |
11061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11062 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 11063 | |
5ee754fc | 11064 | fi |
bec39cab AC |
11065 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11066 | cat >>confdefs.h <<_ACEOF | |
11067 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11068 | _ACEOF | |
11069 | ||
5ee754fc | 11070 | fi |
bec39cab | 11071 | |
5ee754fc MK |
11072 | done |
11073 | ||
bec39cab AC |
11074 | |
11075 | for ac_header in sys/proc.h | |
5ee754fc | 11076 | do |
bec39cab AC |
11077 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11078 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11083 | fi | |
11084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11085 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11086 | else | |
11087 | # Is the header compilable? | |
11088 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11089 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11090 | cat >conftest.$ac_ext <<_ACEOF | |
11091 | /* confdefs.h. */ | |
11092 | _ACEOF | |
11093 | cat confdefs.h >>conftest.$ac_ext | |
11094 | cat >>conftest.$ac_ext <<_ACEOF | |
11095 | /* end confdefs.h. */ | |
11096 | $ac_includes_default | |
11097 | #include <$ac_header> | |
11098 | _ACEOF | |
11099 | rm -f conftest.$ac_objext | |
11100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11101 | (eval $ac_compile) 2>conftest.er1 | |
11102 | ac_status=$? | |
11103 | grep -v '^ *+' conftest.er1 >conftest.err | |
11104 | rm -f conftest.er1 | |
11105 | cat conftest.err >&5 | |
11106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11107 | (exit $ac_status); } && | |
11108 | { ac_try='test -z "$ac_c_werror_flag" | |
11109 | || test ! -s conftest.err' | |
11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11111 | (eval $ac_try) 2>&5 | |
11112 | ac_status=$? | |
11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11114 | (exit $ac_status); }; } && | |
11115 | { ac_try='test -s conftest.$ac_objext' | |
11116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11117 | (eval $ac_try) 2>&5 | |
11118 | ac_status=$? | |
11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11120 | (exit $ac_status); }; }; then | |
11121 | ac_header_compiler=yes | |
11122 | else | |
11123 | echo "$as_me: failed program was:" >&5 | |
11124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11125 | ||
11126 | ac_header_compiler=no | |
11127 | fi | |
11128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11129 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11130 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11131 | ||
11132 | # Is the header present? | |
11133 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11134 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11135 | cat >conftest.$ac_ext <<_ACEOF | |
11136 | /* confdefs.h. */ | |
11137 | _ACEOF | |
11138 | cat confdefs.h >>conftest.$ac_ext | |
11139 | cat >>conftest.$ac_ext <<_ACEOF | |
11140 | /* end confdefs.h. */ | |
11141 | #include <$ac_header> | |
11142 | _ACEOF | |
11143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11145 | ac_status=$? | |
11146 | grep -v '^ *+' conftest.er1 >conftest.err | |
11147 | rm -f conftest.er1 | |
11148 | cat conftest.err >&5 | |
11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11150 | (exit $ac_status); } >/dev/null; then | |
11151 | if test -s conftest.err; then | |
11152 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11153 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11154 | else | |
11155 | ac_cpp_err= | |
11156 | fi | |
11157 | else | |
11158 | ac_cpp_err=yes | |
5ee754fc | 11159 | fi |
bec39cab AC |
11160 | if test -z "$ac_cpp_err"; then |
11161 | ac_header_preproc=yes | |
5ee754fc | 11162 | else |
bec39cab AC |
11163 | echo "$as_me: failed program was:" >&5 |
11164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11165 | ||
11166 | ac_header_preproc=no | |
5ee754fc | 11167 | fi |
bec39cab AC |
11168 | rm -f conftest.err conftest.$ac_ext |
11169 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11170 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11171 | |
bec39cab AC |
11172 | # So? What about this header? |
11173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11174 | yes:no: ) | |
11175 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11176 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11178 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11179 | ac_header_preproc=yes | |
11180 | ;; | |
11181 | no:yes:* ) | |
11182 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11183 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11184 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11185 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11186 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11187 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11188 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11189 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11191 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11192 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11193 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11194 | ( | |
11195 | cat <<\_ASBOX | |
11196 | ## ------------------------------------------ ## | |
11197 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11198 | ## ------------------------------------------ ## | |
11199 | _ASBOX | |
11200 | ) | | |
11201 | sed "s/^/$as_me: WARNING: /" >&2 | |
11202 | ;; | |
11203 | esac | |
11204 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11208 | else | |
11209 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11210 | fi |
bec39cab AC |
11211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11212 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11213 | ||
5ee754fc | 11214 | fi |
bec39cab AC |
11215 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11216 | cat >>confdefs.h <<_ACEOF | |
11217 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11218 | _ACEOF | |
11219 | ||
5ee754fc | 11220 | fi |
bec39cab | 11221 | |
5ee754fc MK |
11222 | done |
11223 | ||
bec39cab AC |
11224 | |
11225 | for ac_header in sys/procfs.h | |
5ee754fc | 11226 | do |
bec39cab AC |
11227 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11228 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11229 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11230 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11231 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11233 | fi | |
11234 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11235 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11236 | else | |
11237 | # Is the header compilable? | |
11238 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11239 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11240 | cat >conftest.$ac_ext <<_ACEOF | |
11241 | /* confdefs.h. */ | |
11242 | _ACEOF | |
11243 | cat confdefs.h >>conftest.$ac_ext | |
11244 | cat >>conftest.$ac_ext <<_ACEOF | |
11245 | /* end confdefs.h. */ | |
11246 | $ac_includes_default | |
11247 | #include <$ac_header> | |
11248 | _ACEOF | |
11249 | rm -f conftest.$ac_objext | |
11250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11251 | (eval $ac_compile) 2>conftest.er1 | |
11252 | ac_status=$? | |
11253 | grep -v '^ *+' conftest.er1 >conftest.err | |
11254 | rm -f conftest.er1 | |
11255 | cat conftest.err >&5 | |
11256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11257 | (exit $ac_status); } && | |
11258 | { ac_try='test -z "$ac_c_werror_flag" | |
11259 | || test ! -s conftest.err' | |
11260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11261 | (eval $ac_try) 2>&5 | |
11262 | ac_status=$? | |
11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11264 | (exit $ac_status); }; } && | |
11265 | { ac_try='test -s conftest.$ac_objext' | |
11266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11267 | (eval $ac_try) 2>&5 | |
11268 | ac_status=$? | |
11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11270 | (exit $ac_status); }; }; then | |
11271 | ac_header_compiler=yes | |
11272 | else | |
11273 | echo "$as_me: failed program was:" >&5 | |
11274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11275 | ||
11276 | ac_header_compiler=no | |
11277 | fi | |
11278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11279 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11280 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11281 | ||
11282 | # Is the header present? | |
11283 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11284 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11285 | cat >conftest.$ac_ext <<_ACEOF | |
11286 | /* confdefs.h. */ | |
11287 | _ACEOF | |
11288 | cat confdefs.h >>conftest.$ac_ext | |
11289 | cat >>conftest.$ac_ext <<_ACEOF | |
11290 | /* end confdefs.h. */ | |
11291 | #include <$ac_header> | |
11292 | _ACEOF | |
11293 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11294 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11295 | ac_status=$? | |
11296 | grep -v '^ *+' conftest.er1 >conftest.err | |
11297 | rm -f conftest.er1 | |
11298 | cat conftest.err >&5 | |
11299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11300 | (exit $ac_status); } >/dev/null; then | |
11301 | if test -s conftest.err; then | |
11302 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11303 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11304 | else | |
11305 | ac_cpp_err= | |
11306 | fi | |
11307 | else | |
11308 | ac_cpp_err=yes | |
5ee754fc | 11309 | fi |
bec39cab AC |
11310 | if test -z "$ac_cpp_err"; then |
11311 | ac_header_preproc=yes | |
5ee754fc | 11312 | else |
bec39cab AC |
11313 | echo "$as_me: failed program was:" >&5 |
11314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11315 | ||
11316 | ac_header_preproc=no | |
5ee754fc | 11317 | fi |
bec39cab AC |
11318 | rm -f conftest.err conftest.$ac_ext |
11319 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11320 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11321 | |
bec39cab AC |
11322 | # So? What about this header? |
11323 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11324 | yes:no: ) | |
11325 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11326 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11327 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11328 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11329 | ac_header_preproc=yes | |
11330 | ;; | |
11331 | no:yes:* ) | |
11332 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11333 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11334 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11335 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11336 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11337 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11338 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11339 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11340 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11341 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11342 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11343 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11344 | ( | |
11345 | cat <<\_ASBOX | |
11346 | ## ------------------------------------------ ## | |
11347 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11348 | ## ------------------------------------------ ## | |
11349 | _ASBOX | |
11350 | ) | | |
11351 | sed "s/^/$as_me: WARNING: /" >&2 | |
11352 | ;; | |
11353 | esac | |
11354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11358 | else | |
11359 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11360 | fi |
bec39cab AC |
11361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11362 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11363 | ||
5ee754fc | 11364 | fi |
bec39cab AC |
11365 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11366 | cat >>confdefs.h <<_ACEOF | |
11367 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11368 | _ACEOF | |
11369 | ||
5ee754fc | 11370 | fi |
bec39cab | 11371 | |
5ee754fc MK |
11372 | done |
11373 | ||
bec39cab AC |
11374 | |
11375 | ||
11376 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 11377 | do |
bec39cab AC |
11378 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11384 | fi | |
11385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11387 | else | |
11388 | # Is the header compilable? | |
11389 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11391 | cat >conftest.$ac_ext <<_ACEOF | |
11392 | /* confdefs.h. */ | |
11393 | _ACEOF | |
11394 | cat confdefs.h >>conftest.$ac_ext | |
11395 | cat >>conftest.$ac_ext <<_ACEOF | |
11396 | /* end confdefs.h. */ | |
11397 | $ac_includes_default | |
11398 | #include <$ac_header> | |
11399 | _ACEOF | |
11400 | rm -f conftest.$ac_objext | |
11401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11402 | (eval $ac_compile) 2>conftest.er1 | |
11403 | ac_status=$? | |
11404 | grep -v '^ *+' conftest.er1 >conftest.err | |
11405 | rm -f conftest.er1 | |
11406 | cat conftest.err >&5 | |
11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11408 | (exit $ac_status); } && | |
11409 | { ac_try='test -z "$ac_c_werror_flag" | |
11410 | || test ! -s conftest.err' | |
11411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11412 | (eval $ac_try) 2>&5 | |
11413 | ac_status=$? | |
11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11415 | (exit $ac_status); }; } && | |
11416 | { ac_try='test -s conftest.$ac_objext' | |
11417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11418 | (eval $ac_try) 2>&5 | |
11419 | ac_status=$? | |
11420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11421 | (exit $ac_status); }; }; then | |
11422 | ac_header_compiler=yes | |
11423 | else | |
11424 | echo "$as_me: failed program was:" >&5 | |
11425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11426 | ||
11427 | ac_header_compiler=no | |
11428 | fi | |
11429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11431 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11432 | ||
11433 | # Is the header present? | |
11434 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11435 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11436 | cat >conftest.$ac_ext <<_ACEOF | |
11437 | /* confdefs.h. */ | |
11438 | _ACEOF | |
11439 | cat confdefs.h >>conftest.$ac_ext | |
11440 | cat >>conftest.$ac_ext <<_ACEOF | |
11441 | /* end confdefs.h. */ | |
11442 | #include <$ac_header> | |
11443 | _ACEOF | |
11444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11446 | ac_status=$? | |
11447 | grep -v '^ *+' conftest.er1 >conftest.err | |
11448 | rm -f conftest.er1 | |
11449 | cat conftest.err >&5 | |
11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11451 | (exit $ac_status); } >/dev/null; then | |
11452 | if test -s conftest.err; then | |
11453 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11455 | else | |
11456 | ac_cpp_err= | |
11457 | fi | |
11458 | else | |
11459 | ac_cpp_err=yes | |
5ee754fc | 11460 | fi |
bec39cab AC |
11461 | if test -z "$ac_cpp_err"; then |
11462 | ac_header_preproc=yes | |
5ee754fc | 11463 | else |
bec39cab AC |
11464 | echo "$as_me: failed program was:" >&5 |
11465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11466 | ||
11467 | ac_header_preproc=no | |
5ee754fc | 11468 | fi |
bec39cab AC |
11469 | rm -f conftest.err conftest.$ac_ext |
11470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11471 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11472 | |
bec39cab AC |
11473 | # So? What about this header? |
11474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11475 | yes:no: ) | |
11476 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11477 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11479 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11480 | ac_header_preproc=yes | |
11481 | ;; | |
11482 | no:yes:* ) | |
11483 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11484 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11485 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11486 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11487 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11488 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11489 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11490 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11491 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11492 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11493 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11494 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11495 | ( | |
11496 | cat <<\_ASBOX | |
11497 | ## ------------------------------------------ ## | |
11498 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11499 | ## ------------------------------------------ ## | |
11500 | _ASBOX | |
11501 | ) | | |
11502 | sed "s/^/$as_me: WARNING: /" >&2 | |
11503 | ;; | |
11504 | esac | |
11505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11509 | else | |
11510 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11511 | fi |
bec39cab AC |
11512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11514 | ||
5ee754fc | 11515 | fi |
bec39cab AC |
11516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11517 | cat >>confdefs.h <<_ACEOF | |
11518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11519 | _ACEOF | |
11520 | ||
5ee754fc | 11521 | fi |
bec39cab | 11522 | |
5ee754fc MK |
11523 | done |
11524 | ||
bec39cab AC |
11525 | |
11526 | ||
11527 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 11528 | do |
bec39cab AC |
11529 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11531 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11532 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11535 | fi | |
11536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11537 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11538 | else | |
11539 | # Is the header compilable? | |
11540 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11541 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11542 | cat >conftest.$ac_ext <<_ACEOF | |
11543 | /* confdefs.h. */ | |
11544 | _ACEOF | |
11545 | cat confdefs.h >>conftest.$ac_ext | |
11546 | cat >>conftest.$ac_ext <<_ACEOF | |
11547 | /* end confdefs.h. */ | |
11548 | $ac_includes_default | |
11549 | #include <$ac_header> | |
11550 | _ACEOF | |
11551 | rm -f conftest.$ac_objext | |
11552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11553 | (eval $ac_compile) 2>conftest.er1 | |
11554 | ac_status=$? | |
11555 | grep -v '^ *+' conftest.er1 >conftest.err | |
11556 | rm -f conftest.er1 | |
11557 | cat conftest.err >&5 | |
11558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11559 | (exit $ac_status); } && | |
11560 | { ac_try='test -z "$ac_c_werror_flag" | |
11561 | || test ! -s conftest.err' | |
11562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11563 | (eval $ac_try) 2>&5 | |
11564 | ac_status=$? | |
11565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11566 | (exit $ac_status); }; } && | |
11567 | { ac_try='test -s conftest.$ac_objext' | |
11568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11569 | (eval $ac_try) 2>&5 | |
11570 | ac_status=$? | |
11571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11572 | (exit $ac_status); }; }; then | |
11573 | ac_header_compiler=yes | |
11574 | else | |
11575 | echo "$as_me: failed program was:" >&5 | |
11576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11577 | ||
11578 | ac_header_compiler=no | |
11579 | fi | |
11580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11581 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11582 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11583 | ||
11584 | # Is the header present? | |
11585 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11586 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11587 | cat >conftest.$ac_ext <<_ACEOF | |
11588 | /* confdefs.h. */ | |
11589 | _ACEOF | |
11590 | cat confdefs.h >>conftest.$ac_ext | |
11591 | cat >>conftest.$ac_ext <<_ACEOF | |
11592 | /* end confdefs.h. */ | |
11593 | #include <$ac_header> | |
11594 | _ACEOF | |
11595 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11596 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11597 | ac_status=$? | |
11598 | grep -v '^ *+' conftest.er1 >conftest.err | |
11599 | rm -f conftest.er1 | |
11600 | cat conftest.err >&5 | |
11601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11602 | (exit $ac_status); } >/dev/null; then | |
11603 | if test -s conftest.err; then | |
11604 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11605 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11606 | else | |
11607 | ac_cpp_err= | |
11608 | fi | |
11609 | else | |
11610 | ac_cpp_err=yes | |
5ee754fc | 11611 | fi |
bec39cab AC |
11612 | if test -z "$ac_cpp_err"; then |
11613 | ac_header_preproc=yes | |
5ee754fc | 11614 | else |
bec39cab AC |
11615 | echo "$as_me: failed program was:" >&5 |
11616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11617 | ||
11618 | ac_header_preproc=no | |
5ee754fc | 11619 | fi |
bec39cab AC |
11620 | rm -f conftest.err conftest.$ac_ext |
11621 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11622 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11623 | |
bec39cab AC |
11624 | # So? What about this header? |
11625 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11626 | yes:no: ) | |
11627 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11628 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11630 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11631 | ac_header_preproc=yes | |
11632 | ;; | |
11633 | no:yes:* ) | |
11634 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11635 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11636 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11637 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11638 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11639 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11640 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11641 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11642 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11643 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11644 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11645 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11646 | ( | |
11647 | cat <<\_ASBOX | |
11648 | ## ------------------------------------------ ## | |
11649 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11650 | ## ------------------------------------------ ## | |
11651 | _ASBOX | |
11652 | ) | | |
11653 | sed "s/^/$as_me: WARNING: /" >&2 | |
11654 | ;; | |
11655 | esac | |
11656 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11658 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11660 | else | |
11661 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11662 | fi |
bec39cab AC |
11663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11664 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11665 | ||
5ee754fc | 11666 | fi |
bec39cab AC |
11667 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11668 | cat >>confdefs.h <<_ACEOF | |
11669 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11670 | _ACEOF | |
11671 | ||
5ee754fc | 11672 | fi |
bec39cab | 11673 | |
5ee754fc MK |
11674 | done |
11675 | ||
bec39cab AC |
11676 | |
11677 | for ac_header in sys/select.h | |
5ee754fc | 11678 | do |
bec39cab AC |
11679 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11680 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11681 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11682 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11683 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11685 | fi | |
11686 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11687 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11688 | else | |
11689 | # Is the header compilable? | |
11690 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11691 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11692 | cat >conftest.$ac_ext <<_ACEOF | |
11693 | /* confdefs.h. */ | |
11694 | _ACEOF | |
11695 | cat confdefs.h >>conftest.$ac_ext | |
11696 | cat >>conftest.$ac_ext <<_ACEOF | |
11697 | /* end confdefs.h. */ | |
11698 | $ac_includes_default | |
11699 | #include <$ac_header> | |
11700 | _ACEOF | |
11701 | rm -f conftest.$ac_objext | |
11702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11703 | (eval $ac_compile) 2>conftest.er1 | |
11704 | ac_status=$? | |
11705 | grep -v '^ *+' conftest.er1 >conftest.err | |
11706 | rm -f conftest.er1 | |
11707 | cat conftest.err >&5 | |
11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11709 | (exit $ac_status); } && | |
11710 | { ac_try='test -z "$ac_c_werror_flag" | |
11711 | || test ! -s conftest.err' | |
11712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11713 | (eval $ac_try) 2>&5 | |
11714 | ac_status=$? | |
11715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11716 | (exit $ac_status); }; } && | |
11717 | { ac_try='test -s conftest.$ac_objext' | |
11718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11719 | (eval $ac_try) 2>&5 | |
11720 | ac_status=$? | |
11721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11722 | (exit $ac_status); }; }; then | |
11723 | ac_header_compiler=yes | |
11724 | else | |
11725 | echo "$as_me: failed program was:" >&5 | |
11726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11727 | ||
11728 | ac_header_compiler=no | |
11729 | fi | |
11730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11731 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11732 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11733 | ||
11734 | # Is the header present? | |
11735 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11736 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11737 | cat >conftest.$ac_ext <<_ACEOF | |
11738 | /* confdefs.h. */ | |
11739 | _ACEOF | |
11740 | cat confdefs.h >>conftest.$ac_ext | |
11741 | cat >>conftest.$ac_ext <<_ACEOF | |
11742 | /* end confdefs.h. */ | |
11743 | #include <$ac_header> | |
11744 | _ACEOF | |
11745 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11746 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11747 | ac_status=$? | |
11748 | grep -v '^ *+' conftest.er1 >conftest.err | |
11749 | rm -f conftest.er1 | |
11750 | cat conftest.err >&5 | |
11751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11752 | (exit $ac_status); } >/dev/null; then | |
11753 | if test -s conftest.err; then | |
11754 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11755 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11756 | else | |
11757 | ac_cpp_err= | |
11758 | fi | |
11759 | else | |
11760 | ac_cpp_err=yes | |
5ee754fc | 11761 | fi |
bec39cab AC |
11762 | if test -z "$ac_cpp_err"; then |
11763 | ac_header_preproc=yes | |
5ee754fc | 11764 | else |
bec39cab AC |
11765 | echo "$as_me: failed program was:" >&5 |
11766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11767 | ||
11768 | ac_header_preproc=no | |
5ee754fc | 11769 | fi |
bec39cab AC |
11770 | rm -f conftest.err conftest.$ac_ext |
11771 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11772 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11773 | |
bec39cab AC |
11774 | # So? What about this header? |
11775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11776 | yes:no: ) | |
11777 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11778 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11780 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11781 | ac_header_preproc=yes | |
11782 | ;; | |
11783 | no:yes:* ) | |
11784 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11785 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11786 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11787 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11788 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11789 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11790 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11791 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11793 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11794 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11795 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11796 | ( | |
11797 | cat <<\_ASBOX | |
11798 | ## ------------------------------------------ ## | |
11799 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11800 | ## ------------------------------------------ ## | |
11801 | _ASBOX | |
11802 | ) | | |
11803 | sed "s/^/$as_me: WARNING: /" >&2 | |
11804 | ;; | |
11805 | esac | |
11806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11810 | else | |
11811 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11812 | fi |
bec39cab AC |
11813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11814 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11815 | ||
5ee754fc | 11816 | fi |
bec39cab AC |
11817 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11818 | cat >>confdefs.h <<_ACEOF | |
11819 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11820 | _ACEOF | |
11821 | ||
5ee754fc | 11822 | fi |
bec39cab | 11823 | |
5ee754fc MK |
11824 | done |
11825 | ||
bec39cab AC |
11826 | |
11827 | for ac_header in sys/syscall.h | |
5ee754fc | 11828 | do |
bec39cab AC |
11829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11831 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11835 | fi | |
11836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11837 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11838 | else | |
11839 | # Is the header compilable? | |
11840 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11841 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11842 | cat >conftest.$ac_ext <<_ACEOF | |
11843 | /* confdefs.h. */ | |
11844 | _ACEOF | |
11845 | cat confdefs.h >>conftest.$ac_ext | |
11846 | cat >>conftest.$ac_ext <<_ACEOF | |
11847 | /* end confdefs.h. */ | |
11848 | $ac_includes_default | |
11849 | #include <$ac_header> | |
11850 | _ACEOF | |
11851 | rm -f conftest.$ac_objext | |
11852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11853 | (eval $ac_compile) 2>conftest.er1 | |
11854 | ac_status=$? | |
11855 | grep -v '^ *+' conftest.er1 >conftest.err | |
11856 | rm -f conftest.er1 | |
11857 | cat conftest.err >&5 | |
11858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11859 | (exit $ac_status); } && | |
11860 | { ac_try='test -z "$ac_c_werror_flag" | |
11861 | || test ! -s conftest.err' | |
11862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11863 | (eval $ac_try) 2>&5 | |
11864 | ac_status=$? | |
11865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11866 | (exit $ac_status); }; } && | |
11867 | { ac_try='test -s conftest.$ac_objext' | |
11868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11869 | (eval $ac_try) 2>&5 | |
11870 | ac_status=$? | |
11871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11872 | (exit $ac_status); }; }; then | |
11873 | ac_header_compiler=yes | |
11874 | else | |
11875 | echo "$as_me: failed program was:" >&5 | |
11876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11877 | ||
11878 | ac_header_compiler=no | |
11879 | fi | |
11880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11881 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11882 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11883 | ||
11884 | # Is the header present? | |
11885 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11886 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11887 | cat >conftest.$ac_ext <<_ACEOF | |
11888 | /* confdefs.h. */ | |
11889 | _ACEOF | |
11890 | cat confdefs.h >>conftest.$ac_ext | |
11891 | cat >>conftest.$ac_ext <<_ACEOF | |
11892 | /* end confdefs.h. */ | |
11893 | #include <$ac_header> | |
11894 | _ACEOF | |
11895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11897 | ac_status=$? | |
11898 | grep -v '^ *+' conftest.er1 >conftest.err | |
11899 | rm -f conftest.er1 | |
11900 | cat conftest.err >&5 | |
11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11902 | (exit $ac_status); } >/dev/null; then | |
11903 | if test -s conftest.err; then | |
11904 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11905 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11906 | else | |
11907 | ac_cpp_err= | |
11908 | fi | |
11909 | else | |
11910 | ac_cpp_err=yes | |
5ee754fc | 11911 | fi |
bec39cab AC |
11912 | if test -z "$ac_cpp_err"; then |
11913 | ac_header_preproc=yes | |
5ee754fc | 11914 | else |
bec39cab AC |
11915 | echo "$as_me: failed program was:" >&5 |
11916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11917 | ||
11918 | ac_header_preproc=no | |
5ee754fc | 11919 | fi |
bec39cab AC |
11920 | rm -f conftest.err conftest.$ac_ext |
11921 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11922 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11923 | |
bec39cab AC |
11924 | # So? What about this header? |
11925 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11926 | yes:no: ) | |
11927 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11928 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11929 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11930 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11931 | ac_header_preproc=yes | |
11932 | ;; | |
11933 | no:yes:* ) | |
11934 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11935 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11936 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11937 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11938 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11939 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11940 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11941 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11942 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11943 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11944 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11945 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11946 | ( | |
11947 | cat <<\_ASBOX | |
11948 | ## ------------------------------------------ ## | |
11949 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11950 | ## ------------------------------------------ ## | |
11951 | _ASBOX | |
11952 | ) | | |
11953 | sed "s/^/$as_me: WARNING: /" >&2 | |
11954 | ;; | |
11955 | esac | |
11956 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11960 | else | |
11961 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11962 | fi |
bec39cab AC |
11963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11965 | ||
5ee754fc | 11966 | fi |
bec39cab AC |
11967 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11968 | cat >>confdefs.h <<_ACEOF | |
11969 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11970 | _ACEOF | |
11971 | ||
5ee754fc | 11972 | fi |
bec39cab | 11973 | |
5ee754fc MK |
11974 | done |
11975 | ||
bec39cab AC |
11976 | |
11977 | for ac_header in sys/types.h | |
5ee754fc | 11978 | do |
bec39cab AC |
11979 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11981 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11985 | fi | |
11986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11987 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11988 | else | |
11989 | # Is the header compilable? | |
11990 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11991 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11992 | cat >conftest.$ac_ext <<_ACEOF | |
11993 | /* confdefs.h. */ | |
11994 | _ACEOF | |
11995 | cat confdefs.h >>conftest.$ac_ext | |
11996 | cat >>conftest.$ac_ext <<_ACEOF | |
11997 | /* end confdefs.h. */ | |
11998 | $ac_includes_default | |
11999 | #include <$ac_header> | |
12000 | _ACEOF | |
12001 | rm -f conftest.$ac_objext | |
12002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12003 | (eval $ac_compile) 2>conftest.er1 | |
12004 | ac_status=$? | |
12005 | grep -v '^ *+' conftest.er1 >conftest.err | |
12006 | rm -f conftest.er1 | |
12007 | cat conftest.err >&5 | |
12008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12009 | (exit $ac_status); } && | |
12010 | { ac_try='test -z "$ac_c_werror_flag" | |
12011 | || test ! -s conftest.err' | |
12012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12013 | (eval $ac_try) 2>&5 | |
12014 | ac_status=$? | |
12015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12016 | (exit $ac_status); }; } && | |
12017 | { ac_try='test -s conftest.$ac_objext' | |
12018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12019 | (eval $ac_try) 2>&5 | |
12020 | ac_status=$? | |
12021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12022 | (exit $ac_status); }; }; then | |
12023 | ac_header_compiler=yes | |
12024 | else | |
12025 | echo "$as_me: failed program was:" >&5 | |
12026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12027 | ||
12028 | ac_header_compiler=no | |
12029 | fi | |
12030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12031 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12032 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12033 | ||
12034 | # Is the header present? | |
12035 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12037 | cat >conftest.$ac_ext <<_ACEOF | |
12038 | /* confdefs.h. */ | |
12039 | _ACEOF | |
12040 | cat confdefs.h >>conftest.$ac_ext | |
12041 | cat >>conftest.$ac_ext <<_ACEOF | |
12042 | /* end confdefs.h. */ | |
12043 | #include <$ac_header> | |
12044 | _ACEOF | |
12045 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12046 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12047 | ac_status=$? | |
12048 | grep -v '^ *+' conftest.er1 >conftest.err | |
12049 | rm -f conftest.er1 | |
12050 | cat conftest.err >&5 | |
12051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12052 | (exit $ac_status); } >/dev/null; then | |
12053 | if test -s conftest.err; then | |
12054 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12056 | else | |
12057 | ac_cpp_err= | |
12058 | fi | |
12059 | else | |
12060 | ac_cpp_err=yes | |
5ee754fc | 12061 | fi |
bec39cab AC |
12062 | if test -z "$ac_cpp_err"; then |
12063 | ac_header_preproc=yes | |
5ee754fc | 12064 | else |
bec39cab AC |
12065 | echo "$as_me: failed program was:" >&5 |
12066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12067 | ||
12068 | ac_header_preproc=no | |
5ee754fc | 12069 | fi |
bec39cab AC |
12070 | rm -f conftest.err conftest.$ac_ext |
12071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12072 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 12073 | |
bec39cab AC |
12074 | # So? What about this header? |
12075 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12076 | yes:no: ) | |
12077 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12078 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12080 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12081 | ac_header_preproc=yes | |
12082 | ;; | |
12083 | no:yes:* ) | |
12084 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12085 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12086 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12087 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12088 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12089 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12090 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12091 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12093 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12094 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12095 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12096 | ( | |
12097 | cat <<\_ASBOX | |
12098 | ## ------------------------------------------ ## | |
12099 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12100 | ## ------------------------------------------ ## | |
12101 | _ASBOX | |
12102 | ) | | |
12103 | sed "s/^/$as_me: WARNING: /" >&2 | |
12104 | ;; | |
12105 | esac | |
12106 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12110 | else | |
12111 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 12112 | fi |
bec39cab AC |
12113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12115 | ||
5ee754fc | 12116 | fi |
bec39cab AC |
12117 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12118 | cat >>confdefs.h <<_ACEOF | |
12119 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12120 | _ACEOF | |
12121 | ||
5ee754fc | 12122 | fi |
bec39cab | 12123 | |
5ee754fc MK |
12124 | done |
12125 | ||
bec39cab AC |
12126 | |
12127 | for ac_header in sys/user.h | |
5ee754fc | 12128 | do |
bec39cab AC |
12129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12135 | fi | |
12136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12138 | else | |
12139 | # Is the header compilable? | |
12140 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12142 | cat >conftest.$ac_ext <<_ACEOF | |
12143 | /* confdefs.h. */ | |
12144 | _ACEOF | |
12145 | cat confdefs.h >>conftest.$ac_ext | |
12146 | cat >>conftest.$ac_ext <<_ACEOF | |
12147 | /* end confdefs.h. */ | |
12148 | $ac_includes_default | |
12149 | #include <$ac_header> | |
12150 | _ACEOF | |
12151 | rm -f conftest.$ac_objext | |
12152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12153 | (eval $ac_compile) 2>conftest.er1 | |
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); } && | |
12160 | { ac_try='test -z "$ac_c_werror_flag" | |
12161 | || test ! -s conftest.err' | |
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); }; } && | |
12167 | { ac_try='test -s conftest.$ac_objext' | |
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 | |
12173 | ac_header_compiler=yes | |
12174 | else | |
12175 | echo "$as_me: failed program was:" >&5 | |
12176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12177 | ||
12178 | ac_header_compiler=no | |
12179 | fi | |
12180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12181 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12182 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12183 | ||
12184 | # Is the header present? | |
12185 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12186 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12187 | cat >conftest.$ac_ext <<_ACEOF | |
12188 | /* confdefs.h. */ | |
12189 | _ACEOF | |
12190 | cat confdefs.h >>conftest.$ac_ext | |
12191 | cat >>conftest.$ac_ext <<_ACEOF | |
12192 | /* end confdefs.h. */ | |
12193 | #include <$ac_header> | |
12194 | _ACEOF | |
12195 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12196 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12197 | ac_status=$? | |
12198 | grep -v '^ *+' conftest.er1 >conftest.err | |
12199 | rm -f conftest.er1 | |
12200 | cat conftest.err >&5 | |
12201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12202 | (exit $ac_status); } >/dev/null; then | |
12203 | if test -s conftest.err; then | |
12204 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12205 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12206 | else | |
12207 | ac_cpp_err= | |
12208 | fi | |
12209 | else | |
12210 | ac_cpp_err=yes | |
5ee754fc | 12211 | fi |
bec39cab AC |
12212 | if test -z "$ac_cpp_err"; then |
12213 | ac_header_preproc=yes | |
5ee754fc | 12214 | else |
bec39cab AC |
12215 | echo "$as_me: failed program was:" >&5 |
12216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12217 | ||
12218 | ac_header_preproc=no | |
5ee754fc | 12219 | fi |
bec39cab AC |
12220 | rm -f conftest.err conftest.$ac_ext |
12221 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12222 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 12223 | |
bec39cab AC |
12224 | # So? What about this header? |
12225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12226 | yes:no: ) | |
12227 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12228 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12230 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12231 | ac_header_preproc=yes | |
12232 | ;; | |
12233 | no:yes:* ) | |
12234 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12235 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12236 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12237 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12238 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12239 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12240 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12241 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12243 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12244 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12245 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12246 | ( | |
12247 | cat <<\_ASBOX | |
12248 | ## ------------------------------------------ ## | |
12249 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12250 | ## ------------------------------------------ ## | |
12251 | _ASBOX | |
12252 | ) | | |
12253 | sed "s/^/$as_me: WARNING: /" >&2 | |
12254 | ;; | |
12255 | esac | |
12256 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12257 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12258 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12260 | else | |
12261 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 12262 | fi |
bec39cab AC |
12263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12264 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12265 | ||
5ee754fc | 12266 | fi |
bec39cab AC |
12267 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12268 | cat >>confdefs.h <<_ACEOF | |
12269 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12270 | _ACEOF | |
12271 | ||
5ee754fc | 12272 | fi |
bec39cab | 12273 | |
5ee754fc MK |
12274 | done |
12275 | ||
bec39cab AC |
12276 | |
12277 | ||
12278 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 12279 | do |
bec39cab AC |
12280 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12281 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12282 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12286 | fi | |
12287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12288 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12289 | else | |
12290 | # Is the header compilable? | |
12291 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12292 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12293 | cat >conftest.$ac_ext <<_ACEOF | |
12294 | /* confdefs.h. */ | |
12295 | _ACEOF | |
12296 | cat confdefs.h >>conftest.$ac_ext | |
12297 | cat >>conftest.$ac_ext <<_ACEOF | |
12298 | /* end confdefs.h. */ | |
12299 | $ac_includes_default | |
12300 | #include <$ac_header> | |
12301 | _ACEOF | |
12302 | rm -f conftest.$ac_objext | |
12303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12304 | (eval $ac_compile) 2>conftest.er1 | |
12305 | ac_status=$? | |
12306 | grep -v '^ *+' conftest.er1 >conftest.err | |
12307 | rm -f conftest.er1 | |
12308 | cat conftest.err >&5 | |
12309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12310 | (exit $ac_status); } && | |
12311 | { ac_try='test -z "$ac_c_werror_flag" | |
12312 | || test ! -s conftest.err' | |
12313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12314 | (eval $ac_try) 2>&5 | |
12315 | ac_status=$? | |
12316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12317 | (exit $ac_status); }; } && | |
12318 | { ac_try='test -s conftest.$ac_objext' | |
12319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12320 | (eval $ac_try) 2>&5 | |
12321 | ac_status=$? | |
12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12323 | (exit $ac_status); }; }; then | |
12324 | ac_header_compiler=yes | |
12325 | else | |
12326 | echo "$as_me: failed program was:" >&5 | |
12327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12328 | ||
12329 | ac_header_compiler=no | |
12330 | fi | |
12331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12332 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12333 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12334 | ||
12335 | # Is the header present? | |
12336 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12337 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12338 | cat >conftest.$ac_ext <<_ACEOF | |
12339 | /* confdefs.h. */ | |
12340 | _ACEOF | |
12341 | cat confdefs.h >>conftest.$ac_ext | |
12342 | cat >>conftest.$ac_ext <<_ACEOF | |
12343 | /* end confdefs.h. */ | |
12344 | #include <$ac_header> | |
12345 | _ACEOF | |
12346 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12347 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12348 | ac_status=$? | |
12349 | grep -v '^ *+' conftest.er1 >conftest.err | |
12350 | rm -f conftest.er1 | |
12351 | cat conftest.err >&5 | |
12352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12353 | (exit $ac_status); } >/dev/null; then | |
12354 | if test -s conftest.err; then | |
12355 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12356 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12357 | else | |
12358 | ac_cpp_err= | |
12359 | fi | |
12360 | else | |
12361 | ac_cpp_err=yes | |
5ee754fc | 12362 | fi |
bec39cab AC |
12363 | if test -z "$ac_cpp_err"; then |
12364 | ac_header_preproc=yes | |
5ee754fc | 12365 | else |
bec39cab AC |
12366 | echo "$as_me: failed program was:" >&5 |
12367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12368 | ||
12369 | ac_header_preproc=no | |
5ee754fc | 12370 | fi |
bec39cab AC |
12371 | rm -f conftest.err conftest.$ac_ext |
12372 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12373 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 12374 | |
bec39cab AC |
12375 | # So? What about this header? |
12376 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12377 | yes:no: ) | |
12378 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12379 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12381 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12382 | ac_header_preproc=yes | |
12383 | ;; | |
12384 | no:yes:* ) | |
12385 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12386 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12387 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12388 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12389 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12390 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12391 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12392 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12394 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12395 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12396 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12397 | ( | |
12398 | cat <<\_ASBOX | |
12399 | ## ------------------------------------------ ## | |
12400 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12401 | ## ------------------------------------------ ## | |
12402 | _ASBOX | |
12403 | ) | | |
12404 | sed "s/^/$as_me: WARNING: /" >&2 | |
12405 | ;; | |
12406 | esac | |
12407 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12408 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12409 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12411 | else | |
12412 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12413 | fi |
bec39cab AC |
12414 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12415 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12416 | ||
9608ab8b | 12417 | fi |
bec39cab AC |
12418 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12419 | cat >>confdefs.h <<_ACEOF | |
12420 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12421 | _ACEOF | |
12422 | ||
9608ab8b | 12423 | fi |
bec39cab | 12424 | |
9608ab8b | 12425 | done |
5ee754fc | 12426 | |
bec39cab AC |
12427 | |
12428 | ||
12429 | ||
12430 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 12431 | do |
bec39cab AC |
12432 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12433 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12438 | fi | |
12439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12440 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12441 | else | |
12442 | # Is the header compilable? | |
12443 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12444 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12445 | cat >conftest.$ac_ext <<_ACEOF | |
12446 | /* confdefs.h. */ | |
12447 | _ACEOF | |
12448 | cat confdefs.h >>conftest.$ac_ext | |
12449 | cat >>conftest.$ac_ext <<_ACEOF | |
12450 | /* end confdefs.h. */ | |
12451 | $ac_includes_default | |
12452 | #include <$ac_header> | |
12453 | _ACEOF | |
12454 | rm -f conftest.$ac_objext | |
12455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12456 | (eval $ac_compile) 2>conftest.er1 | |
12457 | ac_status=$? | |
12458 | grep -v '^ *+' conftest.er1 >conftest.err | |
12459 | rm -f conftest.er1 | |
12460 | cat conftest.err >&5 | |
12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12462 | (exit $ac_status); } && | |
12463 | { ac_try='test -z "$ac_c_werror_flag" | |
12464 | || test ! -s conftest.err' | |
12465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12466 | (eval $ac_try) 2>&5 | |
12467 | ac_status=$? | |
12468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12469 | (exit $ac_status); }; } && | |
12470 | { ac_try='test -s conftest.$ac_objext' | |
12471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12472 | (eval $ac_try) 2>&5 | |
12473 | ac_status=$? | |
12474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12475 | (exit $ac_status); }; }; then | |
12476 | ac_header_compiler=yes | |
12477 | else | |
12478 | echo "$as_me: failed program was:" >&5 | |
12479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12480 | ||
12481 | ac_header_compiler=no | |
12482 | fi | |
12483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12484 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12485 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12486 | ||
12487 | # Is the header present? | |
12488 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12489 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12490 | cat >conftest.$ac_ext <<_ACEOF | |
12491 | /* confdefs.h. */ | |
12492 | _ACEOF | |
12493 | cat confdefs.h >>conftest.$ac_ext | |
12494 | cat >>conftest.$ac_ext <<_ACEOF | |
12495 | /* end confdefs.h. */ | |
12496 | #include <$ac_header> | |
12497 | _ACEOF | |
12498 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12499 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12500 | ac_status=$? | |
12501 | grep -v '^ *+' conftest.er1 >conftest.err | |
12502 | rm -f conftest.er1 | |
12503 | cat conftest.err >&5 | |
12504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12505 | (exit $ac_status); } >/dev/null; then | |
12506 | if test -s conftest.err; then | |
12507 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12508 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12509 | else | |
12510 | ac_cpp_err= | |
12511 | fi | |
12512 | else | |
12513 | ac_cpp_err=yes | |
9608ab8b | 12514 | fi |
bec39cab AC |
12515 | if test -z "$ac_cpp_err"; then |
12516 | ac_header_preproc=yes | |
9608ab8b | 12517 | else |
bec39cab AC |
12518 | echo "$as_me: failed program was:" >&5 |
12519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12520 | ||
12521 | ac_header_preproc=no | |
9608ab8b | 12522 | fi |
bec39cab AC |
12523 | rm -f conftest.err conftest.$ac_ext |
12524 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12525 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 12526 | |
bec39cab AC |
12527 | # So? What about this header? |
12528 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12529 | yes:no: ) | |
12530 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12531 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12532 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12533 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12534 | ac_header_preproc=yes | |
12535 | ;; | |
12536 | no:yes:* ) | |
12537 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12538 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12539 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12540 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12541 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12542 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12543 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12544 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12545 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12546 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12547 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12548 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12549 | ( | |
12550 | cat <<\_ASBOX | |
12551 | ## ------------------------------------------ ## | |
12552 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12553 | ## ------------------------------------------ ## | |
12554 | _ASBOX | |
12555 | ) | | |
12556 | sed "s/^/$as_me: WARNING: /" >&2 | |
12557 | ;; | |
12558 | esac | |
12559 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12560 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12561 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12563 | else | |
12564 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12565 | fi |
bec39cab AC |
12566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12567 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12568 | ||
9608ab8b | 12569 | fi |
bec39cab AC |
12570 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12571 | cat >>confdefs.h <<_ACEOF | |
12572 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12573 | _ACEOF | |
12574 | ||
9608ab8b | 12575 | fi |
bec39cab | 12576 | |
5ee754fc | 12577 | done |
9608ab8b | 12578 | |
bec39cab AC |
12579 | |
12580 | for ac_header in unistd.h | |
78434e59 | 12581 | do |
bec39cab AC |
12582 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12584 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12588 | fi | |
12589 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12590 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12591 | else | |
12592 | # Is the header compilable? | |
12593 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12594 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12595 | cat >conftest.$ac_ext <<_ACEOF | |
12596 | /* confdefs.h. */ | |
12597 | _ACEOF | |
12598 | cat confdefs.h >>conftest.$ac_ext | |
12599 | cat >>conftest.$ac_ext <<_ACEOF | |
12600 | /* end confdefs.h. */ | |
12601 | $ac_includes_default | |
12602 | #include <$ac_header> | |
12603 | _ACEOF | |
12604 | rm -f conftest.$ac_objext | |
12605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12606 | (eval $ac_compile) 2>conftest.er1 | |
12607 | ac_status=$? | |
12608 | grep -v '^ *+' conftest.er1 >conftest.err | |
12609 | rm -f conftest.er1 | |
12610 | cat conftest.err >&5 | |
12611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12612 | (exit $ac_status); } && | |
12613 | { ac_try='test -z "$ac_c_werror_flag" | |
12614 | || test ! -s conftest.err' | |
12615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12616 | (eval $ac_try) 2>&5 | |
12617 | ac_status=$? | |
12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12619 | (exit $ac_status); }; } && | |
12620 | { ac_try='test -s conftest.$ac_objext' | |
12621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12622 | (eval $ac_try) 2>&5 | |
12623 | ac_status=$? | |
12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12625 | (exit $ac_status); }; }; then | |
12626 | ac_header_compiler=yes | |
12627 | else | |
12628 | echo "$as_me: failed program was:" >&5 | |
12629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12630 | ||
12631 | ac_header_compiler=no | |
12632 | fi | |
12633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12634 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12635 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12636 | ||
12637 | # Is the header present? | |
12638 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12639 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12640 | cat >conftest.$ac_ext <<_ACEOF | |
12641 | /* confdefs.h. */ | |
12642 | _ACEOF | |
12643 | cat confdefs.h >>conftest.$ac_ext | |
12644 | cat >>conftest.$ac_ext <<_ACEOF | |
12645 | /* end confdefs.h. */ | |
12646 | #include <$ac_header> | |
12647 | _ACEOF | |
12648 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12649 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12650 | ac_status=$? | |
12651 | grep -v '^ *+' conftest.er1 >conftest.err | |
12652 | rm -f conftest.er1 | |
12653 | cat conftest.err >&5 | |
12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12655 | (exit $ac_status); } >/dev/null; then | |
12656 | if test -s conftest.err; then | |
12657 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12658 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12659 | else | |
12660 | ac_cpp_err= | |
12661 | fi | |
12662 | else | |
12663 | ac_cpp_err=yes | |
78434e59 | 12664 | fi |
bec39cab AC |
12665 | if test -z "$ac_cpp_err"; then |
12666 | ac_header_preproc=yes | |
78434e59 | 12667 | else |
bec39cab AC |
12668 | echo "$as_me: failed program was:" >&5 |
12669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12670 | ||
12671 | ac_header_preproc=no | |
78434e59 | 12672 | fi |
bec39cab AC |
12673 | rm -f conftest.err conftest.$ac_ext |
12674 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12675 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 12676 | |
bec39cab AC |
12677 | # So? What about this header? |
12678 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12679 | yes:no: ) | |
12680 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12681 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12682 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12683 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12684 | ac_header_preproc=yes | |
12685 | ;; | |
12686 | no:yes:* ) | |
12687 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12688 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12689 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12690 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12691 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12692 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12693 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12694 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12695 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12696 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12697 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12698 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12699 | ( | |
12700 | cat <<\_ASBOX | |
12701 | ## ------------------------------------------ ## | |
12702 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12703 | ## ------------------------------------------ ## | |
12704 | _ASBOX | |
12705 | ) | | |
12706 | sed "s/^/$as_me: WARNING: /" >&2 | |
12707 | ;; | |
12708 | esac | |
12709 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12710 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12711 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12713 | else | |
12714 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 12715 | fi |
bec39cab AC |
12716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12717 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12718 | ||
086ec9eb | 12719 | fi |
bec39cab AC |
12720 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12721 | cat >>confdefs.h <<_ACEOF | |
12722 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12723 | _ACEOF | |
12724 | ||
086ec9eb | 12725 | fi |
bec39cab | 12726 | |
086ec9eb MK |
12727 | done |
12728 | ||
9608ab8b | 12729 | |
b1d19a62 | 12730 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
12731 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
12732 | # think that we don't have <curses.h> if we're using GCC. | |
12733 | case $host_os in | |
b1d19a62 | 12734 | solaris2.[789]) |
5ee754fc | 12735 | if test "$GCC" = yes; then |
bec39cab AC |
12736 | |
12737 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 12738 | #define _MSE_INT_H 1 |
bec39cab | 12739 | _ACEOF |
5ee754fc MK |
12740 | |
12741 | fi ;; | |
12742 | esac | |
bec39cab AC |
12743 | |
12744 | ||
12745 | ||
12746 | ||
12747 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 12748 | do |
bec39cab AC |
12749 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12751 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12753 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12755 | fi | |
12756 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12757 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12758 | else | |
12759 | # Is the header compilable? | |
12760 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12761 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12762 | cat >conftest.$ac_ext <<_ACEOF | |
12763 | /* confdefs.h. */ | |
12764 | _ACEOF | |
12765 | cat confdefs.h >>conftest.$ac_ext | |
12766 | cat >>conftest.$ac_ext <<_ACEOF | |
12767 | /* end confdefs.h. */ | |
12768 | $ac_includes_default | |
12769 | #include <$ac_header> | |
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); } && | |
12780 | { ac_try='test -z "$ac_c_werror_flag" | |
12781 | || test ! -s conftest.err' | |
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_header_compiler=yes | |
12794 | else | |
12795 | echo "$as_me: failed program was:" >&5 | |
12796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12797 | ||
12798 | ac_header_compiler=no | |
12799 | fi | |
12800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12801 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12802 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12803 | ||
12804 | # Is the header present? | |
12805 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12806 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12807 | cat >conftest.$ac_ext <<_ACEOF | |
12808 | /* confdefs.h. */ | |
12809 | _ACEOF | |
12810 | cat confdefs.h >>conftest.$ac_ext | |
12811 | cat >>conftest.$ac_ext <<_ACEOF | |
12812 | /* end confdefs.h. */ | |
12813 | #include <$ac_header> | |
12814 | _ACEOF | |
12815 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12816 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12817 | ac_status=$? | |
12818 | grep -v '^ *+' conftest.er1 >conftest.err | |
12819 | rm -f conftest.er1 | |
12820 | cat conftest.err >&5 | |
12821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12822 | (exit $ac_status); } >/dev/null; then | |
12823 | if test -s conftest.err; then | |
12824 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12825 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12826 | else | |
12827 | ac_cpp_err= | |
12828 | fi | |
12829 | else | |
12830 | ac_cpp_err=yes | |
c906108c | 12831 | fi |
bec39cab AC |
12832 | if test -z "$ac_cpp_err"; then |
12833 | ac_header_preproc=yes | |
12834 | else | |
12835 | echo "$as_me: failed program was:" >&5 | |
12836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12837 | ||
12838 | ac_header_preproc=no | |
c906108c | 12839 | fi |
bec39cab AC |
12840 | rm -f conftest.err conftest.$ac_ext |
12841 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12842 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12843 | ||
12844 | # So? What about this header? | |
12845 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12846 | yes:no: ) | |
12847 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12848 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12849 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12850 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12851 | ac_header_preproc=yes | |
12852 | ;; | |
12853 | no:yes:* ) | |
12854 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12855 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12856 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12857 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12858 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12859 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12860 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12861 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12862 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12863 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12864 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12865 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12866 | ( | |
12867 | cat <<\_ASBOX | |
12868 | ## ------------------------------------------ ## | |
12869 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12870 | ## ------------------------------------------ ## | |
12871 | _ASBOX | |
12872 | ) | | |
12873 | sed "s/^/$as_me: WARNING: /" >&2 | |
12874 | ;; | |
12875 | esac | |
12876 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12877 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 12880 | else |
bec39cab | 12881 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 12882 | fi |
bec39cab AC |
12883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12884 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12885 | ||
12886 | fi | |
12887 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12888 | cat >>confdefs.h <<_ACEOF | |
12889 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12890 | _ACEOF | |
12891 | ||
12892 | fi | |
12893 | ||
5ee754fc | 12894 | done |
c906108c | 12895 | |
bec39cab AC |
12896 | |
12897 | ||
12898 | for ac_header in ncurses/term.h term.h | |
3b78cdbb | 12899 | do |
bec39cab AC |
12900 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12906 | fi | |
12907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12909 | else | |
12910 | # Is the header compilable? | |
12911 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12912 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12913 | cat >conftest.$ac_ext <<_ACEOF | |
12914 | /* confdefs.h. */ | |
12915 | _ACEOF | |
12916 | cat confdefs.h >>conftest.$ac_ext | |
12917 | cat >>conftest.$ac_ext <<_ACEOF | |
12918 | /* end confdefs.h. */ | |
12919 | $ac_includes_default | |
12920 | #include <$ac_header> | |
12921 | _ACEOF | |
12922 | rm -f conftest.$ac_objext | |
12923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12924 | (eval $ac_compile) 2>conftest.er1 | |
12925 | ac_status=$? | |
12926 | grep -v '^ *+' conftest.er1 >conftest.err | |
12927 | rm -f conftest.er1 | |
12928 | cat conftest.err >&5 | |
12929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12930 | (exit $ac_status); } && | |
12931 | { ac_try='test -z "$ac_c_werror_flag" | |
12932 | || test ! -s conftest.err' | |
12933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12934 | (eval $ac_try) 2>&5 | |
12935 | ac_status=$? | |
12936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12937 | (exit $ac_status); }; } && | |
12938 | { ac_try='test -s conftest.$ac_objext' | |
12939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12940 | (eval $ac_try) 2>&5 | |
12941 | ac_status=$? | |
12942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12943 | (exit $ac_status); }; }; then | |
12944 | ac_header_compiler=yes | |
12945 | else | |
12946 | echo "$as_me: failed program was:" >&5 | |
12947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12948 | ||
12949 | ac_header_compiler=no | |
12950 | fi | |
12951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12952 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12953 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12954 | ||
12955 | # Is the header present? | |
12956 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12957 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12958 | cat >conftest.$ac_ext <<_ACEOF | |
12959 | /* confdefs.h. */ | |
12960 | _ACEOF | |
12961 | cat confdefs.h >>conftest.$ac_ext | |
12962 | cat >>conftest.$ac_ext <<_ACEOF | |
12963 | /* end confdefs.h. */ | |
12964 | #include <$ac_header> | |
12965 | _ACEOF | |
12966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12968 | ac_status=$? | |
12969 | grep -v '^ *+' conftest.er1 >conftest.err | |
12970 | rm -f conftest.er1 | |
12971 | cat conftest.err >&5 | |
12972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12973 | (exit $ac_status); } >/dev/null; then | |
12974 | if test -s conftest.err; then | |
12975 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12976 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12977 | else | |
12978 | ac_cpp_err= | |
12979 | fi | |
12980 | else | |
12981 | ac_cpp_err=yes | |
3b78cdbb | 12982 | fi |
bec39cab AC |
12983 | if test -z "$ac_cpp_err"; then |
12984 | ac_header_preproc=yes | |
12985 | else | |
12986 | echo "$as_me: failed program was:" >&5 | |
12987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12988 | ||
12989 | ac_header_preproc=no | |
3b78cdbb | 12990 | fi |
bec39cab AC |
12991 | rm -f conftest.err conftest.$ac_ext |
12992 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12993 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12994 | ||
12995 | # So? What about this header? | |
12996 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12997 | yes:no: ) | |
12998 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12999 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13001 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13002 | ac_header_preproc=yes | |
13003 | ;; | |
13004 | no:yes:* ) | |
13005 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13006 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13007 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13008 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13009 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13010 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13011 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13012 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13014 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13015 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13016 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13017 | ( | |
13018 | cat <<\_ASBOX | |
13019 | ## ------------------------------------------ ## | |
13020 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13021 | ## ------------------------------------------ ## | |
13022 | _ASBOX | |
13023 | ) | | |
13024 | sed "s/^/$as_me: WARNING: /" >&2 | |
13025 | ;; | |
13026 | esac | |
13027 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3b78cdbb | 13031 | else |
bec39cab AC |
13032 | eval "$as_ac_Header=\$ac_header_preproc" |
13033 | fi | |
13034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13035 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13036 | ||
3b78cdbb | 13037 | fi |
bec39cab AC |
13038 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13039 | cat >>confdefs.h <<_ACEOF | |
13040 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13041 | _ACEOF | |
13042 | ||
13043 | fi | |
13044 | ||
3b78cdbb DA |
13045 | done |
13046 | ||
c906108c | 13047 | |
5ee754fc MK |
13048 | # FIXME: kettenis/20030102: In most cases we include these |
13049 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
13050 | |
13051 | ||
13052 | for ac_header in ctype.h time.h | |
c906108c | 13053 | do |
bec39cab AC |
13054 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13056 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13060 | fi | |
13061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13062 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13063 | else | |
13064 | # Is the header compilable? | |
13065 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13066 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13067 | cat >conftest.$ac_ext <<_ACEOF | |
13068 | /* confdefs.h. */ | |
13069 | _ACEOF | |
13070 | cat confdefs.h >>conftest.$ac_ext | |
13071 | cat >>conftest.$ac_ext <<_ACEOF | |
13072 | /* end confdefs.h. */ | |
13073 | $ac_includes_default | |
13074 | #include <$ac_header> | |
13075 | _ACEOF | |
13076 | rm -f conftest.$ac_objext | |
13077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13078 | (eval $ac_compile) 2>conftest.er1 | |
13079 | ac_status=$? | |
13080 | grep -v '^ *+' conftest.er1 >conftest.err | |
13081 | rm -f conftest.er1 | |
13082 | cat conftest.err >&5 | |
13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13084 | (exit $ac_status); } && | |
13085 | { ac_try='test -z "$ac_c_werror_flag" | |
13086 | || test ! -s conftest.err' | |
13087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13088 | (eval $ac_try) 2>&5 | |
13089 | ac_status=$? | |
13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13091 | (exit $ac_status); }; } && | |
13092 | { ac_try='test -s conftest.$ac_objext' | |
13093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13094 | (eval $ac_try) 2>&5 | |
13095 | ac_status=$? | |
13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13097 | (exit $ac_status); }; }; then | |
13098 | ac_header_compiler=yes | |
13099 | else | |
13100 | echo "$as_me: failed program was:" >&5 | |
13101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13102 | ||
13103 | ac_header_compiler=no | |
13104 | fi | |
13105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13106 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13107 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13108 | ||
13109 | # Is the header present? | |
13110 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13111 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13112 | cat >conftest.$ac_ext <<_ACEOF | |
13113 | /* confdefs.h. */ | |
13114 | _ACEOF | |
13115 | cat confdefs.h >>conftest.$ac_ext | |
13116 | cat >>conftest.$ac_ext <<_ACEOF | |
13117 | /* end confdefs.h. */ | |
13118 | #include <$ac_header> | |
13119 | _ACEOF | |
13120 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13122 | ac_status=$? | |
13123 | grep -v '^ *+' conftest.er1 >conftest.err | |
13124 | rm -f conftest.er1 | |
13125 | cat conftest.err >&5 | |
13126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13127 | (exit $ac_status); } >/dev/null; then | |
13128 | if test -s conftest.err; then | |
13129 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13130 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13131 | else | |
13132 | ac_cpp_err= | |
13133 | fi | |
13134 | else | |
13135 | ac_cpp_err=yes | |
c906108c | 13136 | fi |
bec39cab AC |
13137 | if test -z "$ac_cpp_err"; then |
13138 | ac_header_preproc=yes | |
13139 | else | |
13140 | echo "$as_me: failed program was:" >&5 | |
13141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13142 | ||
13143 | ac_header_preproc=no | |
c906108c | 13144 | fi |
bec39cab AC |
13145 | rm -f conftest.err conftest.$ac_ext |
13146 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13147 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13148 | ||
13149 | # So? What about this header? | |
13150 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13151 | yes:no: ) | |
13152 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13153 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13154 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13155 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13156 | ac_header_preproc=yes | |
13157 | ;; | |
13158 | no:yes:* ) | |
13159 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13160 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13161 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13162 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13163 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13164 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13165 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13166 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13168 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13169 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13170 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13171 | ( | |
13172 | cat <<\_ASBOX | |
13173 | ## ------------------------------------------ ## | |
13174 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13175 | ## ------------------------------------------ ## | |
13176 | _ASBOX | |
13177 | ) | | |
13178 | sed "s/^/$as_me: WARNING: /" >&2 | |
13179 | ;; | |
13180 | esac | |
13181 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13182 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 13185 | else |
bec39cab AC |
13186 | eval "$as_ac_Header=\$ac_header_preproc" |
13187 | fi | |
13188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13189 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13190 | ||
13191 | fi | |
13192 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13193 | cat >>confdefs.h <<_ACEOF | |
13194 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13195 | _ACEOF | |
13196 | ||
c906108c | 13197 | fi |
bec39cab | 13198 | |
c906108c SS |
13199 | done |
13200 | ||
5ee754fc | 13201 | |
bec39cab AC |
13202 | echo "$as_me:$LINENO: checking for member st_blocks in struct stat" >&5 |
13203 | echo $ECHO_N "checking for member st_blocks in struct stat... $ECHO_C" >&6 | |
13204 | if test "${gdb_cv_have_struct_stat_with_st_blocks_member+set}" = set; then | |
13205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40a7debc | 13206 | else |
bec39cab AC |
13207 | cat >conftest.$ac_ext <<_ACEOF |
13208 | /* confdefs.h. */ | |
13209 | _ACEOF | |
13210 | cat confdefs.h >>conftest.$ac_ext | |
13211 | cat >>conftest.$ac_ext <<_ACEOF | |
13212 | /* end confdefs.h. */ | |
40a7debc EZ |
13213 | #include <sys/types.h> |
13214 | #include <sys/stat.h> | |
bec39cab AC |
13215 | int |
13216 | main () | |
13217 | { | |
40a7debc | 13218 | struct stat st; (void) st.st_blocks; |
bec39cab AC |
13219 | ; |
13220 | return 0; | |
13221 | } | |
13222 | _ACEOF | |
13223 | rm -f conftest.$ac_objext | |
13224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13225 | (eval $ac_compile) 2>conftest.er1 | |
13226 | ac_status=$? | |
13227 | grep -v '^ *+' conftest.er1 >conftest.err | |
13228 | rm -f conftest.er1 | |
13229 | cat conftest.err >&5 | |
13230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13231 | (exit $ac_status); } && | |
13232 | { ac_try='test -z "$ac_c_werror_flag" | |
13233 | || test ! -s conftest.err' | |
13234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13235 | (eval $ac_try) 2>&5 | |
13236 | ac_status=$? | |
13237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13238 | (exit $ac_status); }; } && | |
13239 | { ac_try='test -s conftest.$ac_objext' | |
13240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13241 | (eval $ac_try) 2>&5 | |
13242 | ac_status=$? | |
13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13244 | (exit $ac_status); }; }; then | |
40a7debc EZ |
13245 | gdb_cv_have_struct_stat_with_st_blocks_member=yes |
13246 | else | |
bec39cab AC |
13247 | echo "$as_me: failed program was:" >&5 |
13248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13249 | ||
13250 | gdb_cv_have_struct_stat_with_st_blocks_member=no | |
40a7debc | 13251 | fi |
bec39cab | 13252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc EZ |
13253 | fi |
13254 | ||
bec39cab AC |
13255 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_stat_with_st_blocks_member" >&5 |
13256 | echo "${ECHO_T}$gdb_cv_have_struct_stat_with_st_blocks_member" >&6 | |
40a7debc | 13257 | if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then |
bec39cab | 13258 | cat >>confdefs.h <<\_ACEOF |
40a7debc | 13259 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
bec39cab | 13260 | _ACEOF |
40a7debc EZ |
13261 | |
13262 | fi | |
086ec9eb | 13263 | |
b9362cc7 AC |
13264 | # ------------------------- # |
13265 | # Checks for declarations. # | |
13266 | # ------------------------- # | |
13267 | ||
13268 | for ac_func in getopt | |
13269 | do | |
13270 | ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
bec39cab AC |
13271 | echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 |
13272 | echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 | |
13273 | if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then | |
13274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13275 | else | |
13276 | cat >conftest.$ac_ext <<_ACEOF | |
13277 | /* confdefs.h. */ | |
13278 | _ACEOF | |
13279 | cat confdefs.h >>conftest.$ac_ext | |
13280 | cat >>conftest.$ac_ext <<_ACEOF | |
13281 | /* end confdefs.h. */ | |
b9362cc7 AC |
13282 | #undef $ac_tr_decl |
13283 | #define $ac_tr_decl 1 | |
b9362cc7 | 13284 | |
bec39cab AC |
13285 | |
13286 | int | |
13287 | main () | |
13288 | { | |
b9362cc7 AC |
13289 | #ifndef $ac_func |
13290 | char *(*pfn) = (char *(*)) $ac_func ; | |
13291 | #endif | |
bec39cab AC |
13292 | ; |
13293 | return 0; | |
13294 | } | |
13295 | _ACEOF | |
13296 | rm -f conftest.$ac_objext | |
13297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13298 | (eval $ac_compile) 2>conftest.er1 | |
13299 | ac_status=$? | |
13300 | grep -v '^ *+' conftest.er1 >conftest.err | |
13301 | rm -f conftest.er1 | |
13302 | cat conftest.err >&5 | |
13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13304 | (exit $ac_status); } && | |
13305 | { ac_try='test -z "$ac_c_werror_flag" | |
13306 | || test ! -s conftest.err' | |
13307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13308 | (eval $ac_try) 2>&5 | |
13309 | ac_status=$? | |
13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13311 | (exit $ac_status); }; } && | |
13312 | { ac_try='test -s conftest.$ac_objext' | |
13313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13314 | (eval $ac_try) 2>&5 | |
13315 | ac_status=$? | |
13316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13317 | (exit $ac_status); }; }; then | |
b9362cc7 AC |
13318 | eval "gcc_cv_have_decl_$ac_func=yes" |
13319 | else | |
bec39cab AC |
13320 | echo "$as_me: failed program was:" >&5 |
13321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13322 | ||
13323 | eval "gcc_cv_have_decl_$ac_func=no" | |
b9362cc7 | 13324 | fi |
bec39cab | 13325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 AC |
13326 | fi |
13327 | ||
13328 | if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then | |
bec39cab AC |
13329 | echo "$as_me:$LINENO: result: yes" >&5 |
13330 | echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF | |
b9362cc7 | 13331 | #define $ac_tr_decl 1 |
bec39cab AC |
13332 | _ACEOF |
13333 | ||
b9362cc7 | 13334 | else |
bec39cab AC |
13335 | echo "$as_me:$LINENO: result: no" >&5 |
13336 | echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF | |
b9362cc7 | 13337 | #define $ac_tr_decl 0 |
bec39cab AC |
13338 | _ACEOF |
13339 | ||
b9362cc7 AC |
13340 | fi |
13341 | ||
13342 | done | |
13343 | if test x = y ; then | |
bec39cab AC |
13344 | |
13345 | cat >>confdefs.h <<\_ACEOF | |
b9362cc7 | 13346 | #define HAVE_DECL_GETOPT 1 |
bec39cab | 13347 | _ACEOF |
b9362cc7 AC |
13348 | fi |
13349 | ||
13350 | ||
5ee754fc MK |
13351 | # ------------------ # |
13352 | # Checks for types. # | |
13353 | # ------------------ # | |
13354 | ||
bec39cab AC |
13355 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
13356 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
13357 | if test "${ac_cv_type_signal+set}" = set; then | |
13358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13359 | else | |
13360 | cat >conftest.$ac_ext <<_ACEOF | |
13361 | /* confdefs.h. */ | |
13362 | _ACEOF | |
13363 | cat confdefs.h >>conftest.$ac_ext | |
13364 | cat >>conftest.$ac_ext <<_ACEOF | |
13365 | /* end confdefs.h. */ | |
c906108c | 13366 | #include <sys/types.h> |
5ee754fc MK |
13367 | #include <signal.h> |
13368 | #ifdef signal | |
bec39cab | 13369 | # undef signal |
c906108c | 13370 | #endif |
5ee754fc MK |
13371 | #ifdef __cplusplus |
13372 | extern "C" void (*signal (int, void (*)(int)))(int); | |
13373 | #else | |
13374 | void (*signal ()) (); | |
c906108c SS |
13375 | #endif |
13376 | ||
bec39cab AC |
13377 | int |
13378 | main () | |
13379 | { | |
5ee754fc | 13380 | int i; |
bec39cab AC |
13381 | ; |
13382 | return 0; | |
13383 | } | |
13384 | _ACEOF | |
13385 | rm -f conftest.$ac_objext | |
13386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13387 | (eval $ac_compile) 2>conftest.er1 | |
13388 | ac_status=$? | |
13389 | grep -v '^ *+' conftest.er1 >conftest.err | |
13390 | rm -f conftest.er1 | |
13391 | cat conftest.err >&5 | |
13392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13393 | (exit $ac_status); } && | |
13394 | { ac_try='test -z "$ac_c_werror_flag" | |
13395 | || test ! -s conftest.err' | |
13396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13397 | (eval $ac_try) 2>&5 | |
13398 | ac_status=$? | |
13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13400 | (exit $ac_status); }; } && | |
13401 | { ac_try='test -s conftest.$ac_objext' | |
13402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13403 | (eval $ac_try) 2>&5 | |
13404 | ac_status=$? | |
13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13406 | (exit $ac_status); }; }; then | |
5ee754fc | 13407 | ac_cv_type_signal=void |
c906108c | 13408 | else |
bec39cab AC |
13409 | echo "$as_me: failed program was:" >&5 |
13410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13411 | ||
13412 | ac_cv_type_signal=int | |
c906108c | 13413 | fi |
bec39cab | 13414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13415 | fi |
bec39cab AC |
13416 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
13417 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
c906108c | 13418 | |
bec39cab | 13419 | cat >>confdefs.h <<_ACEOF |
5ee754fc | 13420 | #define RETSIGTYPE $ac_cv_type_signal |
bec39cab | 13421 | _ACEOF |
c906108c | 13422 | |
c906108c SS |
13423 | |
13424 | ||
5ee754fc MK |
13425 | # ------------------------------------- # |
13426 | # Checks for compiler characteristics. # | |
13427 | # ------------------------------------- # | |
13428 | ||
bec39cab AC |
13429 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13430 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13431 | if test "${ac_cv_c_const+set}" = set; then | |
13432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13433 | else | |
13434 | cat >conftest.$ac_ext <<_ACEOF | |
13435 | /* confdefs.h. */ | |
13436 | _ACEOF | |
13437 | cat confdefs.h >>conftest.$ac_ext | |
13438 | cat >>conftest.$ac_ext <<_ACEOF | |
13439 | /* end confdefs.h. */ | |
13440 | ||
13441 | int | |
13442 | main () | |
13443 | { | |
13444 | /* FIXME: Include the comments suggested by Paul. */ | |
13445 | #ifndef __cplusplus | |
13446 | /* Ultrix mips cc rejects this. */ | |
13447 | typedef int charset[2]; | |
13448 | const charset x; | |
13449 | /* SunOS 4.1.1 cc rejects this. */ | |
13450 | char const *const *ccp; | |
13451 | char **p; | |
13452 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13453 | struct point {int x, y;}; | |
13454 | static struct point const zero = {0,0}; | |
13455 | /* AIX XL C 1.02.0.0 rejects this. | |
13456 | It does not let you subtract one const X* pointer from another in | |
13457 | an arm of an if-expression whose if-part is not a constant | |
13458 | expression */ | |
13459 | const char *g = "string"; | |
13460 | ccp = &g + (g ? g-g : 0); | |
13461 | /* HPUX 7.0 cc rejects these. */ | |
13462 | ++ccp; | |
13463 | p = (char**) ccp; | |
13464 | ccp = (char const *const *) p; | |
13465 | { /* SCO 3.2v4 cc rejects this. */ | |
13466 | char *t; | |
13467 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13468 | ||
13469 | *t++ = 0; | |
13470 | } | |
13471 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13472 | int x[] = {25, 17}; | |
13473 | const int *foo = &x[0]; | |
13474 | ++foo; | |
13475 | } | |
13476 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13477 | typedef const int *iptr; | |
13478 | iptr p = 0; | |
13479 | ++p; | |
13480 | } | |
13481 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13482 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13483 | struct s { int j; const int *ap[3]; }; | |
13484 | struct s *b; b->j = 5; | |
13485 | } | |
13486 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13487 | const int foo = 10; | |
13488 | } | |
13489 | #endif | |
13490 | ||
13491 | ; | |
13492 | return 0; | |
13493 | } | |
13494 | _ACEOF | |
13495 | rm -f conftest.$ac_objext | |
13496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13497 | (eval $ac_compile) 2>conftest.er1 | |
13498 | ac_status=$? | |
13499 | grep -v '^ *+' conftest.er1 >conftest.err | |
13500 | rm -f conftest.er1 | |
13501 | cat conftest.err >&5 | |
13502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13503 | (exit $ac_status); } && | |
13504 | { ac_try='test -z "$ac_c_werror_flag" | |
13505 | || test ! -s conftest.err' | |
13506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13507 | (eval $ac_try) 2>&5 | |
13508 | ac_status=$? | |
13509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13510 | (exit $ac_status); }; } && | |
13511 | { ac_try='test -s conftest.$ac_objext' | |
13512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13513 | (eval $ac_try) 2>&5 | |
13514 | ac_status=$? | |
13515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13516 | (exit $ac_status); }; }; then | |
c906108c SS |
13517 | ac_cv_c_const=yes |
13518 | else | |
bec39cab AC |
13519 | echo "$as_me: failed program was:" >&5 |
13520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13521 | ||
13522 | ac_cv_c_const=no | |
c906108c | 13523 | fi |
bec39cab | 13524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13525 | fi |
bec39cab AC |
13526 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13527 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
c906108c | 13528 | if test $ac_cv_c_const = no; then |
bec39cab AC |
13529 | |
13530 | cat >>confdefs.h <<\_ACEOF | |
13531 | #define const | |
13532 | _ACEOF | |
c906108c SS |
13533 | |
13534 | fi | |
13535 | ||
bec39cab AC |
13536 | echo "$as_me:$LINENO: checking for inline" >&5 |
13537 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13538 | if test "${ac_cv_c_inline+set}" = set; then | |
13539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bce58c09 JB |
13540 | else |
13541 | ac_cv_c_inline=no | |
13542 | for ac_kw in inline __inline__ __inline; do | |
bec39cab AC |
13543 | cat >conftest.$ac_ext <<_ACEOF |
13544 | /* confdefs.h. */ | |
13545 | _ACEOF | |
13546 | cat confdefs.h >>conftest.$ac_ext | |
13547 | cat >>conftest.$ac_ext <<_ACEOF | |
13548 | /* end confdefs.h. */ | |
13549 | #ifndef __cplusplus | |
13550 | typedef int foo_t; | |
13551 | static $ac_kw foo_t static_foo () {return 0; } | |
13552 | $ac_kw foo_t foo () {return 0; } | |
13553 | #endif | |
13554 | ||
13555 | _ACEOF | |
13556 | rm -f conftest.$ac_objext | |
13557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13558 | (eval $ac_compile) 2>conftest.er1 | |
13559 | ac_status=$? | |
13560 | grep -v '^ *+' conftest.er1 >conftest.err | |
13561 | rm -f conftest.er1 | |
13562 | cat conftest.err >&5 | |
13563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13564 | (exit $ac_status); } && | |
13565 | { ac_try='test -z "$ac_c_werror_flag" | |
13566 | || test ! -s conftest.err' | |
13567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13568 | (eval $ac_try) 2>&5 | |
13569 | ac_status=$? | |
13570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13571 | (exit $ac_status); }; } && | |
13572 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
bce58c09 JB |
13578 | ac_cv_c_inline=$ac_kw; break |
13579 | else | |
bec39cab AC |
13580 | echo "$as_me: failed program was:" >&5 |
13581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13582 | ||
bce58c09 | 13583 | fi |
bec39cab | 13584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 JB |
13585 | done |
13586 | ||
13587 | fi | |
bec39cab AC |
13588 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13589 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13590 | ||
bce58c09 | 13591 | |
bec39cab | 13592 | case $ac_cv_c_inline in |
bce58c09 | 13593 | inline | yes) ;; |
bec39cab AC |
13594 | *) |
13595 | case $ac_cv_c_inline in | |
13596 | no) ac_val=;; | |
13597 | *) ac_val=$ac_cv_c_inline;; | |
13598 | esac | |
13599 | cat >>confdefs.h <<_ACEOF | |
13600 | #ifndef __cplusplus | |
13601 | #define inline $ac_val | |
13602 | #endif | |
13603 | _ACEOF | |
13604 | ;; | |
bce58c09 JB |
13605 | esac |
13606 | ||
c906108c | 13607 | |
5ee754fc MK |
13608 | # ------------------------------ # |
13609 | # Checks for library functions. # | |
13610 | # ------------------------------ # | |
13611 | ||
46711df8 MK |
13612 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
13613 | # for constant arguments. Useless! | |
bec39cab AC |
13614 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
13615 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
13616 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
13617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13618 | else | |
13619 | cat >conftest.$ac_ext <<_ACEOF | |
13620 | /* confdefs.h. */ | |
13621 | _ACEOF | |
13622 | cat confdefs.h >>conftest.$ac_ext | |
13623 | cat >>conftest.$ac_ext <<_ACEOF | |
13624 | /* end confdefs.h. */ | |
46711df8 | 13625 | #include <alloca.h> |
bec39cab AC |
13626 | int |
13627 | main () | |
13628 | { | |
13629 | char *p = (char *) alloca (2 * sizeof (int)); | |
13630 | ; | |
13631 | return 0; | |
13632 | } | |
13633 | _ACEOF | |
13634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13636 | (eval $ac_link) 2>conftest.er1 | |
13637 | ac_status=$? | |
13638 | grep -v '^ *+' conftest.er1 >conftest.err | |
13639 | rm -f conftest.er1 | |
13640 | cat conftest.err >&5 | |
13641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13642 | (exit $ac_status); } && | |
13643 | { ac_try='test -z "$ac_c_werror_flag" | |
13644 | || test ! -s conftest.err' | |
13645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13646 | (eval $ac_try) 2>&5 | |
13647 | ac_status=$? | |
13648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13649 | (exit $ac_status); }; } && | |
13650 | { ac_try='test -s conftest$ac_exeext' | |
13651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13652 | (eval $ac_try) 2>&5 | |
13653 | ac_status=$? | |
13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13655 | (exit $ac_status); }; }; then | |
13656 | ac_cv_working_alloca_h=yes | |
13657 | else | |
13658 | echo "$as_me: failed program was:" >&5 | |
13659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13660 | ||
13661 | ac_cv_working_alloca_h=no | |
13662 | fi | |
13663 | rm -f conftest.err conftest.$ac_objext \ | |
13664 | conftest$ac_exeext conftest.$ac_ext | |
13665 | fi | |
13666 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
13667 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
13668 | if test $ac_cv_working_alloca_h = yes; then | |
13669 | ||
13670 | cat >>confdefs.h <<\_ACEOF | |
46711df8 | 13671 | #define HAVE_ALLOCA_H 1 |
bec39cab | 13672 | _ACEOF |
46711df8 MK |
13673 | |
13674 | fi | |
13675 | ||
bec39cab AC |
13676 | echo "$as_me:$LINENO: checking for alloca" >&5 |
13677 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
13678 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
13679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46711df8 | 13680 | else |
bec39cab AC |
13681 | cat >conftest.$ac_ext <<_ACEOF |
13682 | /* confdefs.h. */ | |
13683 | _ACEOF | |
13684 | cat confdefs.h >>conftest.$ac_ext | |
13685 | cat >>conftest.$ac_ext <<_ACEOF | |
13686 | /* end confdefs.h. */ | |
46711df8 MK |
13687 | #ifdef __GNUC__ |
13688 | # define alloca __builtin_alloca | |
13689 | #else | |
13690 | # ifdef _MSC_VER | |
13691 | # include <malloc.h> | |
13692 | # define alloca _alloca | |
13693 | # else | |
13694 | # if HAVE_ALLOCA_H | |
13695 | # include <alloca.h> | |
13696 | # else | |
13697 | # ifdef _AIX | |
13698 | #pragma alloca | |
13699 | # else | |
13700 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
13701 | char *alloca (); | |
13702 | # endif | |
13703 | # endif | |
13704 | # endif | |
13705 | # endif | |
13706 | #endif | |
13707 | ||
bec39cab AC |
13708 | int |
13709 | main () | |
13710 | { | |
13711 | char *p = (char *) alloca (1); | |
13712 | ; | |
13713 | return 0; | |
13714 | } | |
13715 | _ACEOF | |
13716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13718 | (eval $ac_link) 2>conftest.er1 | |
13719 | ac_status=$? | |
13720 | grep -v '^ *+' conftest.er1 >conftest.err | |
13721 | rm -f conftest.er1 | |
13722 | cat conftest.err >&5 | |
13723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13724 | (exit $ac_status); } && | |
13725 | { ac_try='test -z "$ac_c_werror_flag" | |
13726 | || test ! -s conftest.err' | |
13727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13728 | (eval $ac_try) 2>&5 | |
13729 | ac_status=$? | |
13730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13731 | (exit $ac_status); }; } && | |
13732 | { ac_try='test -s conftest$ac_exeext' | |
13733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13734 | (eval $ac_try) 2>&5 | |
13735 | ac_status=$? | |
13736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13737 | (exit $ac_status); }; }; then | |
46711df8 MK |
13738 | ac_cv_func_alloca_works=yes |
13739 | else | |
bec39cab AC |
13740 | echo "$as_me: failed program was:" >&5 |
13741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13742 | ||
13743 | ac_cv_func_alloca_works=no | |
46711df8 | 13744 | fi |
bec39cab AC |
13745 | rm -f conftest.err conftest.$ac_objext \ |
13746 | conftest$ac_exeext conftest.$ac_ext | |
46711df8 | 13747 | fi |
bec39cab AC |
13748 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
13749 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
46711df8 | 13750 | |
46711df8 | 13751 | if test $ac_cv_func_alloca_works = yes; then |
46711df8 | 13752 | |
bec39cab AC |
13753 | cat >>confdefs.h <<\_ACEOF |
13754 | #define HAVE_ALLOCA 1 | |
13755 | _ACEOF | |
46711df8 | 13756 | |
bec39cab | 13757 | else |
46711df8 | 13758 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
bec39cab AC |
13759 | # that cause trouble. Some versions do not even contain alloca or |
13760 | # contain a buggy version. If you still want to use their alloca, | |
13761 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
13762 | ||
13763 | ALLOCA=alloca.$ac_objext | |
13764 | ||
13765 | cat >>confdefs.h <<\_ACEOF | |
46711df8 | 13766 | #define C_ALLOCA 1 |
bec39cab | 13767 | _ACEOF |
46711df8 MK |
13768 | |
13769 | ||
bec39cab AC |
13770 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
13771 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
13772 | if test "${ac_cv_os_cray+set}" = set; then | |
13773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46711df8 | 13774 | else |
bec39cab AC |
13775 | cat >conftest.$ac_ext <<_ACEOF |
13776 | /* confdefs.h. */ | |
13777 | _ACEOF | |
13778 | cat confdefs.h >>conftest.$ac_ext | |
13779 | cat >>conftest.$ac_ext <<_ACEOF | |
13780 | /* end confdefs.h. */ | |
46711df8 MK |
13781 | #if defined(CRAY) && ! defined(CRAY2) |
13782 | webecray | |
13783 | #else | |
13784 | wenotbecray | |
13785 | #endif | |
13786 | ||
bec39cab | 13787 | _ACEOF |
46711df8 | 13788 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 13789 | $EGREP "webecray" >/dev/null 2>&1; then |
46711df8 MK |
13790 | ac_cv_os_cray=yes |
13791 | else | |
46711df8 MK |
13792 | ac_cv_os_cray=no |
13793 | fi | |
13794 | rm -f conftest* | |
13795 | ||
13796 | fi | |
bec39cab AC |
13797 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
13798 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
46711df8 | 13799 | if test $ac_cv_os_cray = yes; then |
bec39cab AC |
13800 | for ac_func in _getb67 GETB67 getb67; do |
13801 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13802 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13803 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13804 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13806 | else | |
13807 | cat >conftest.$ac_ext <<_ACEOF | |
13808 | /* confdefs.h. */ | |
13809 | _ACEOF | |
13810 | cat confdefs.h >>conftest.$ac_ext | |
13811 | cat >>conftest.$ac_ext <<_ACEOF | |
13812 | /* end confdefs.h. */ | |
13813 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13814 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13815 | #define $ac_func innocuous_$ac_func | |
13816 | ||
46711df8 | 13817 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
13818 | which can conflict with char $ac_func (); below. |
13819 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13820 | <limits.h> exists even on freestanding compilers. */ | |
13821 | ||
13822 | #ifdef __STDC__ | |
13823 | # include <limits.h> | |
13824 | #else | |
13825 | # include <assert.h> | |
13826 | #endif | |
46711df8 | 13827 | |
bec39cab | 13828 | #undef $ac_func |
46711df8 | 13829 | |
bec39cab AC |
13830 | /* Override any gcc2 internal prototype to avoid an error. */ |
13831 | #ifdef __cplusplus | |
13832 | extern "C" | |
13833 | { | |
13834 | #endif | |
13835 | /* We use char because int might match the return type of a gcc2 | |
13836 | builtin and then its argument prototype would still apply. */ | |
13837 | char $ac_func (); | |
46711df8 MK |
13838 | /* The GNU C library defines this for functions which it implements |
13839 | to always fail with ENOSYS. Some functions are actually named | |
13840 | something starting with __ and the normal name is an alias. */ | |
13841 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13842 | choke me | |
13843 | #else | |
bec39cab AC |
13844 | char (*f) () = $ac_func; |
13845 | #endif | |
13846 | #ifdef __cplusplus | |
13847 | } | |
46711df8 MK |
13848 | #endif |
13849 | ||
bec39cab AC |
13850 | int |
13851 | main () | |
13852 | { | |
13853 | return f != $ac_func; | |
13854 | ; | |
13855 | return 0; | |
13856 | } | |
13857 | _ACEOF | |
13858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13860 | (eval $ac_link) 2>conftest.er1 | |
13861 | ac_status=$? | |
13862 | grep -v '^ *+' conftest.er1 >conftest.err | |
13863 | rm -f conftest.er1 | |
13864 | cat conftest.err >&5 | |
13865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13866 | (exit $ac_status); } && | |
13867 | { ac_try='test -z "$ac_c_werror_flag" | |
13868 | || test ! -s conftest.err' | |
13869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13870 | (eval $ac_try) 2>&5 | |
13871 | ac_status=$? | |
13872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13873 | (exit $ac_status); }; } && | |
13874 | { ac_try='test -s conftest$ac_exeext' | |
13875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13876 | (eval $ac_try) 2>&5 | |
13877 | ac_status=$? | |
13878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13879 | (exit $ac_status); }; }; then | |
13880 | eval "$as_ac_var=yes" | |
13881 | else | |
13882 | echo "$as_me: failed program was:" >&5 | |
13883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13884 | ||
13885 | eval "$as_ac_var=no" | |
13886 | fi | |
13887 | rm -f conftest.err conftest.$ac_objext \ | |
13888 | conftest$ac_exeext conftest.$ac_ext | |
13889 | fi | |
13890 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13891 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13892 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13893 | ||
13894 | cat >>confdefs.h <<_ACEOF | |
46711df8 | 13895 | #define CRAY_STACKSEG_END $ac_func |
bec39cab | 13896 | _ACEOF |
46711df8 | 13897 | |
bec39cab | 13898 | break |
46711df8 MK |
13899 | fi |
13900 | ||
bec39cab | 13901 | done |
46711df8 MK |
13902 | fi |
13903 | ||
bec39cab AC |
13904 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
13905 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
13906 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
13907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46711df8 MK |
13908 | else |
13909 | if test "$cross_compiling" = yes; then | |
13910 | ac_cv_c_stack_direction=0 | |
13911 | else | |
bec39cab AC |
13912 | cat >conftest.$ac_ext <<_ACEOF |
13913 | /* confdefs.h. */ | |
13914 | _ACEOF | |
13915 | cat confdefs.h >>conftest.$ac_ext | |
13916 | cat >>conftest.$ac_ext <<_ACEOF | |
13917 | /* end confdefs.h. */ | |
13918 | int | |
46711df8 MK |
13919 | find_stack_direction () |
13920 | { | |
13921 | static char *addr = 0; | |
13922 | auto char dummy; | |
13923 | if (addr == 0) | |
13924 | { | |
13925 | addr = &dummy; | |
13926 | return find_stack_direction (); | |
13927 | } | |
13928 | else | |
13929 | return (&dummy > addr) ? 1 : -1; | |
13930 | } | |
bec39cab AC |
13931 | |
13932 | int | |
46711df8 MK |
13933 | main () |
13934 | { | |
bec39cab | 13935 | exit (find_stack_direction () < 0); |
46711df8 | 13936 | } |
bec39cab AC |
13937 | _ACEOF |
13938 | rm -f conftest$ac_exeext | |
13939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13940 | (eval $ac_link) 2>&5 | |
13941 | ac_status=$? | |
13942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13943 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13945 | (eval $ac_try) 2>&5 | |
13946 | ac_status=$? | |
13947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13948 | (exit $ac_status); }; }; then | |
46711df8 MK |
13949 | ac_cv_c_stack_direction=1 |
13950 | else | |
bec39cab AC |
13951 | echo "$as_me: program exited with status $ac_status" >&5 |
13952 | echo "$as_me: failed program was:" >&5 | |
13953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13954 | ||
13955 | ( exit $ac_status ) | |
13956 | ac_cv_c_stack_direction=-1 | |
46711df8 | 13957 | fi |
bec39cab | 13958 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
46711df8 | 13959 | fi |
46711df8 | 13960 | fi |
bec39cab AC |
13961 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
13962 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
46711df8 | 13963 | |
bec39cab | 13964 | cat >>confdefs.h <<_ACEOF |
46711df8 | 13965 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
bec39cab AC |
13966 | _ACEOF |
13967 | ||
46711df8 MK |
13968 | |
13969 | fi | |
13970 | ||
bec39cab AC |
13971 | |
13972 | ||
13973 | for ac_header in stdlib.h unistd.h | |
97bf5e38 | 13974 | do |
bec39cab AC |
13975 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13976 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13981 | fi | |
13982 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13983 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13984 | else | |
13985 | # Is the header compilable? | |
13986 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13987 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13988 | cat >conftest.$ac_ext <<_ACEOF | |
13989 | /* confdefs.h. */ | |
13990 | _ACEOF | |
13991 | cat confdefs.h >>conftest.$ac_ext | |
13992 | cat >>conftest.$ac_ext <<_ACEOF | |
13993 | /* end confdefs.h. */ | |
13994 | $ac_includes_default | |
13995 | #include <$ac_header> | |
13996 | _ACEOF | |
13997 | rm -f conftest.$ac_objext | |
13998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13999 | (eval $ac_compile) 2>conftest.er1 | |
14000 | ac_status=$? | |
14001 | grep -v '^ *+' conftest.er1 >conftest.err | |
14002 | rm -f conftest.er1 | |
14003 | cat conftest.err >&5 | |
14004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14005 | (exit $ac_status); } && | |
14006 | { ac_try='test -z "$ac_c_werror_flag" | |
14007 | || test ! -s conftest.err' | |
14008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14009 | (eval $ac_try) 2>&5 | |
14010 | ac_status=$? | |
14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14012 | (exit $ac_status); }; } && | |
14013 | { ac_try='test -s conftest.$ac_objext' | |
14014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14015 | (eval $ac_try) 2>&5 | |
14016 | ac_status=$? | |
14017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14018 | (exit $ac_status); }; }; then | |
14019 | ac_header_compiler=yes | |
14020 | else | |
14021 | echo "$as_me: failed program was:" >&5 | |
14022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14023 | ||
14024 | ac_header_compiler=no | |
14025 | fi | |
14026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14027 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14028 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14029 | ||
14030 | # Is the header present? | |
14031 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14032 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14033 | cat >conftest.$ac_ext <<_ACEOF | |
14034 | /* confdefs.h. */ | |
14035 | _ACEOF | |
14036 | cat confdefs.h >>conftest.$ac_ext | |
14037 | cat >>conftest.$ac_ext <<_ACEOF | |
14038 | /* end confdefs.h. */ | |
14039 | #include <$ac_header> | |
14040 | _ACEOF | |
14041 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14042 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14043 | ac_status=$? | |
14044 | grep -v '^ *+' conftest.er1 >conftest.err | |
14045 | rm -f conftest.er1 | |
14046 | cat conftest.err >&5 | |
14047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14048 | (exit $ac_status); } >/dev/null; then | |
14049 | if test -s conftest.err; then | |
14050 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14051 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14052 | else | |
14053 | ac_cpp_err= | |
14054 | fi | |
14055 | else | |
14056 | ac_cpp_err=yes | |
74c1b268 | 14057 | fi |
bec39cab AC |
14058 | if test -z "$ac_cpp_err"; then |
14059 | ac_header_preproc=yes | |
14060 | else | |
14061 | echo "$as_me: failed program was:" >&5 | |
14062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14063 | ||
14064 | ac_header_preproc=no | |
74c1b268 | 14065 | fi |
bec39cab AC |
14066 | rm -f conftest.err conftest.$ac_ext |
14067 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14068 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14069 | ||
14070 | # So? What about this header? | |
14071 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14072 | yes:no: ) | |
14073 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14074 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14075 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14076 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14077 | ac_header_preproc=yes | |
14078 | ;; | |
14079 | no:yes:* ) | |
14080 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14081 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14082 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14083 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14084 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14085 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14086 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14087 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14089 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14090 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14091 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14092 | ( | |
14093 | cat <<\_ASBOX | |
14094 | ## ------------------------------------------ ## | |
14095 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14096 | ## ------------------------------------------ ## | |
14097 | _ASBOX | |
14098 | ) | | |
14099 | sed "s/^/$as_me: WARNING: /" >&2 | |
14100 | ;; | |
14101 | esac | |
14102 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
74c1b268 | 14106 | else |
bec39cab AC |
14107 | eval "$as_ac_Header=\$ac_header_preproc" |
14108 | fi | |
14109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14110 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14111 | ||
74c1b268 | 14112 | fi |
bec39cab AC |
14113 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14114 | cat >>confdefs.h <<_ACEOF | |
14115 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14116 | _ACEOF | |
14117 | ||
14118 | fi | |
14119 | ||
97bf5e38 | 14120 | done |
74c1b268 | 14121 | |
bec39cab | 14122 | |
97bf5e38 MK |
14123 | for ac_func in getpagesize |
14124 | do | |
bec39cab AC |
14125 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14126 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14127 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14128 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14130 | else | |
14131 | cat >conftest.$ac_ext <<_ACEOF | |
14132 | /* confdefs.h. */ | |
14133 | _ACEOF | |
14134 | cat confdefs.h >>conftest.$ac_ext | |
14135 | cat >>conftest.$ac_ext <<_ACEOF | |
14136 | /* end confdefs.h. */ | |
14137 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14138 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14139 | #define $ac_func innocuous_$ac_func | |
14140 | ||
74c1b268 | 14141 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14142 | which can conflict with char $ac_func (); below. |
14143 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14144 | <limits.h> exists even on freestanding compilers. */ | |
14145 | ||
14146 | #ifdef __STDC__ | |
14147 | # include <limits.h> | |
14148 | #else | |
14149 | # include <assert.h> | |
14150 | #endif | |
74c1b268 | 14151 | |
bec39cab | 14152 | #undef $ac_func |
74c1b268 | 14153 | |
bec39cab AC |
14154 | /* Override any gcc2 internal prototype to avoid an error. */ |
14155 | #ifdef __cplusplus | |
14156 | extern "C" | |
14157 | { | |
14158 | #endif | |
14159 | /* We use char because int might match the return type of a gcc2 | |
14160 | builtin and then its argument prototype would still apply. */ | |
14161 | char $ac_func (); | |
74c1b268 AC |
14162 | /* The GNU C library defines this for functions which it implements |
14163 | to always fail with ENOSYS. Some functions are actually named | |
14164 | something starting with __ and the normal name is an alias. */ | |
97bf5e38 | 14165 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
74c1b268 AC |
14166 | choke me |
14167 | #else | |
bec39cab AC |
14168 | char (*f) () = $ac_func; |
14169 | #endif | |
14170 | #ifdef __cplusplus | |
14171 | } | |
74c1b268 AC |
14172 | #endif |
14173 | ||
bec39cab AC |
14174 | int |
14175 | main () | |
14176 | { | |
14177 | return f != $ac_func; | |
14178 | ; | |
14179 | return 0; | |
14180 | } | |
14181 | _ACEOF | |
14182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14184 | (eval $ac_link) 2>conftest.er1 | |
14185 | ac_status=$? | |
14186 | grep -v '^ *+' conftest.er1 >conftest.err | |
14187 | rm -f conftest.er1 | |
14188 | cat conftest.err >&5 | |
14189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14190 | (exit $ac_status); } && | |
14191 | { ac_try='test -z "$ac_c_werror_flag" | |
14192 | || test ! -s conftest.err' | |
14193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14194 | (eval $ac_try) 2>&5 | |
14195 | ac_status=$? | |
14196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14197 | (exit $ac_status); }; } && | |
14198 | { ac_try='test -s conftest$ac_exeext' | |
14199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14200 | (eval $ac_try) 2>&5 | |
14201 | ac_status=$? | |
14202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14203 | (exit $ac_status); }; }; then | |
14204 | eval "$as_ac_var=yes" | |
14205 | else | |
14206 | echo "$as_me: failed program was:" >&5 | |
14207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14208 | ||
14209 | eval "$as_ac_var=no" | |
14210 | fi | |
14211 | rm -f conftest.err conftest.$ac_objext \ | |
14212 | conftest$ac_exeext conftest.$ac_ext | |
14213 | fi | |
14214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14215 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14216 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14217 | cat >>confdefs.h <<_ACEOF | |
14218 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14219 | _ACEOF | |
74c1b268 | 14220 | |
74c1b268 | 14221 | fi |
97bf5e38 | 14222 | done |
74c1b268 | 14223 | |
bec39cab AC |
14224 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
14225 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
14226 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
14227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
14228 | else |
14229 | if test "$cross_compiling" = yes; then | |
14230 | ac_cv_func_mmap_fixed_mapped=no | |
74c1b268 | 14231 | else |
bec39cab AC |
14232 | cat >conftest.$ac_ext <<_ACEOF |
14233 | /* confdefs.h. */ | |
14234 | _ACEOF | |
14235 | cat confdefs.h >>conftest.$ac_ext | |
14236 | cat >>conftest.$ac_ext <<_ACEOF | |
14237 | /* end confdefs.h. */ | |
14238 | $ac_includes_default | |
14239 | /* malloc might have been renamed as rpl_malloc. */ | |
14240 | #undef malloc | |
97bf5e38 MK |
14241 | |
14242 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
14243 | Here is a matrix of mmap possibilities: | |
14244 | mmap private not fixed | |
14245 | mmap private fixed at somewhere currently unmapped | |
14246 | mmap private fixed at somewhere already mapped | |
14247 | mmap shared not fixed | |
14248 | mmap shared fixed at somewhere currently unmapped | |
14249 | mmap shared fixed at somewhere already mapped | |
14250 | For private mappings, we should verify that changes cannot be read() | |
14251 | back from the file, nor mmap's back from the file at a different | |
14252 | address. (There have been systems where private was not correctly | |
14253 | implemented like the infamous i386 svr4.0, and systems where the | |
bec39cab | 14254 | VM page cache was not coherent with the file system buffer cache |
97bf5e38 MK |
14255 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
14256 | For shared mappings, we should conversely verify that changes get | |
bec39cab | 14257 | propagated back to all the places they're supposed to be. |
97bf5e38 MK |
14258 | |
14259 | Grep wants private fixed already mapped. | |
14260 | The main things grep needs to know about mmap are: | |
14261 | * does it exist and is it safe to write into the mmap'd area | |
14262 | * how to use it (BSD variants) */ | |
bec39cab | 14263 | |
97bf5e38 MK |
14264 | #include <fcntl.h> |
14265 | #include <sys/mman.h> | |
14266 | ||
bec39cab AC |
14267 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
14268 | char *malloc (); | |
14269 | #endif | |
97bf5e38 | 14270 | |
bec39cab AC |
14271 | /* This mess was copied from the GNU getpagesize.h. */ |
14272 | #if !HAVE_GETPAGESIZE | |
97bf5e38 | 14273 | /* Assume that all systems that can run configure have sys/param.h. */ |
bec39cab | 14274 | # if !HAVE_SYS_PARAM_H |
97bf5e38 MK |
14275 | # define HAVE_SYS_PARAM_H 1 |
14276 | # endif | |
14277 | ||
14278 | # ifdef _SC_PAGESIZE | |
14279 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14280 | # else /* no _SC_PAGESIZE */ | |
bec39cab | 14281 | # if HAVE_SYS_PARAM_H |
97bf5e38 MK |
14282 | # include <sys/param.h> |
14283 | # ifdef EXEC_PAGESIZE | |
14284 | # define getpagesize() EXEC_PAGESIZE | |
14285 | # else /* no EXEC_PAGESIZE */ | |
14286 | # ifdef NBPG | |
14287 | # define getpagesize() NBPG * CLSIZE | |
14288 | # ifndef CLSIZE | |
14289 | # define CLSIZE 1 | |
14290 | # endif /* no CLSIZE */ | |
14291 | # else /* no NBPG */ | |
14292 | # ifdef NBPC | |
14293 | # define getpagesize() NBPC | |
14294 | # else /* no NBPC */ | |
14295 | # ifdef PAGESIZE | |
14296 | # define getpagesize() PAGESIZE | |
14297 | # endif /* PAGESIZE */ | |
14298 | # endif /* no NBPC */ | |
14299 | # endif /* no NBPG */ | |
14300 | # endif /* no EXEC_PAGESIZE */ | |
14301 | # else /* no HAVE_SYS_PARAM_H */ | |
14302 | # define getpagesize() 8192 /* punt totally */ | |
14303 | # endif /* no HAVE_SYS_PARAM_H */ | |
14304 | # endif /* no _SC_PAGESIZE */ | |
14305 | ||
14306 | #endif /* no HAVE_GETPAGESIZE */ | |
14307 | ||
bec39cab AC |
14308 | int |
14309 | main () | |
14310 | { | |
14311 | char *data, *data2, *data3; | |
14312 | int i, pagesize; | |
14313 | int fd; | |
14314 | ||
14315 | pagesize = getpagesize (); | |
14316 | ||
14317 | /* First, make a file with some known garbage in it. */ | |
14318 | data = (char *) malloc (pagesize); | |
14319 | if (!data) | |
14320 | exit (1); | |
14321 | for (i = 0; i < pagesize; ++i) | |
14322 | *(data + i) = rand (); | |
14323 | umask (0); | |
14324 | fd = creat ("conftest.mmap", 0600); | |
14325 | if (fd < 0) | |
14326 | exit (1); | |
14327 | if (write (fd, data, pagesize) != pagesize) | |
14328 | exit (1); | |
14329 | close (fd); | |
14330 | ||
14331 | /* Next, try to mmap the file at a fixed address which already has | |
14332 | something else allocated at it. If we can, also make sure that | |
14333 | we see the same garbage. */ | |
14334 | fd = open ("conftest.mmap", O_RDWR); | |
14335 | if (fd < 0) | |
14336 | exit (1); | |
14337 | data2 = (char *) malloc (2 * pagesize); | |
14338 | if (!data2) | |
14339 | exit (1); | |
14340 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
14341 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
14342 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
14343 | exit (1); | |
14344 | for (i = 0; i < pagesize; ++i) | |
14345 | if (*(data + i) != *(data2 + i)) | |
14346 | exit (1); | |
14347 | ||
14348 | /* Finally, make sure that changes to the mapped area do not | |
14349 | percolate back to the file as seen by read(). (This is a bug on | |
14350 | some variants of i386 svr4.0.) */ | |
14351 | for (i = 0; i < pagesize; ++i) | |
14352 | *(data2 + i) = *(data2 + i) + 1; | |
14353 | data3 = (char *) malloc (pagesize); | |
14354 | if (!data3) | |
14355 | exit (1); | |
14356 | if (read (fd, data3, pagesize) != pagesize) | |
14357 | exit (1); | |
14358 | for (i = 0; i < pagesize; ++i) | |
14359 | if (*(data + i) != *(data3 + i)) | |
14360 | exit (1); | |
14361 | close (fd); | |
14362 | exit (0); | |
14363 | } | |
14364 | _ACEOF | |
14365 | rm -f conftest$ac_exeext | |
14366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14367 | (eval $ac_link) 2>&5 | |
14368 | ac_status=$? | |
14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14370 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14372 | (eval $ac_try) 2>&5 | |
14373 | ac_status=$? | |
14374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14375 | (exit $ac_status); }; }; then | |
97bf5e38 | 14376 | ac_cv_func_mmap_fixed_mapped=yes |
74c1b268 | 14377 | else |
bec39cab AC |
14378 | echo "$as_me: program exited with status $ac_status" >&5 |
14379 | echo "$as_me: failed program was:" >&5 | |
14380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14381 | ||
14382 | ( exit $ac_status ) | |
14383 | ac_cv_func_mmap_fixed_mapped=no | |
74c1b268 | 14384 | fi |
bec39cab | 14385 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
74c1b268 | 14386 | fi |
74c1b268 | 14387 | fi |
bec39cab AC |
14388 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
14389 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
97bf5e38 | 14390 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
14391 | |
14392 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 14393 | #define HAVE_MMAP 1 |
bec39cab | 14394 | _ACEOF |
74c1b268 AC |
14395 | |
14396 | fi | |
bec39cab | 14397 | rm -f conftest.mmap |
74c1b268 | 14398 | |
bec39cab AC |
14399 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
14400 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
14401 | if test "${ac_cv_type_pid_t+set}" = set; then | |
14402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0200359f | 14403 | else |
bec39cab AC |
14404 | cat >conftest.$ac_ext <<_ACEOF |
14405 | /* confdefs.h. */ | |
14406 | _ACEOF | |
14407 | cat confdefs.h >>conftest.$ac_ext | |
14408 | cat >>conftest.$ac_ext <<_ACEOF | |
14409 | /* end confdefs.h. */ | |
14410 | $ac_includes_default | |
14411 | int | |
14412 | main () | |
14413 | { | |
14414 | if ((pid_t *) 0) | |
14415 | return 0; | |
14416 | if (sizeof (pid_t)) | |
14417 | return 0; | |
14418 | ; | |
14419 | return 0; | |
14420 | } | |
14421 | _ACEOF | |
14422 | rm -f conftest.$ac_objext | |
14423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14424 | (eval $ac_compile) 2>conftest.er1 | |
14425 | ac_status=$? | |
14426 | grep -v '^ *+' conftest.er1 >conftest.err | |
14427 | rm -f conftest.er1 | |
14428 | cat conftest.err >&5 | |
14429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14430 | (exit $ac_status); } && | |
14431 | { ac_try='test -z "$ac_c_werror_flag" | |
14432 | || test ! -s conftest.err' | |
14433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14434 | (eval $ac_try) 2>&5 | |
14435 | ac_status=$? | |
14436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14437 | (exit $ac_status); }; } && | |
14438 | { ac_try='test -s conftest.$ac_objext' | |
14439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14440 | (eval $ac_try) 2>&5 | |
14441 | ac_status=$? | |
14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14443 | (exit $ac_status); }; }; then | |
97bf5e38 | 14444 | ac_cv_type_pid_t=yes |
0200359f | 14445 | else |
bec39cab AC |
14446 | echo "$as_me: failed program was:" >&5 |
14447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 14448 | |
bec39cab | 14449 | ac_cv_type_pid_t=no |
0200359f | 14450 | fi |
bec39cab | 14451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
72473524 | 14452 | fi |
bec39cab AC |
14453 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
14454 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
14455 | if test $ac_cv_type_pid_t = yes; then | |
14456 | : | |
14457 | else | |
14458 | ||
14459 | cat >>confdefs.h <<_ACEOF | |
14460 | #define pid_t int | |
14461 | _ACEOF | |
14462 | ||
72473524 | 14463 | fi |
72473524 | 14464 | |
bec39cab AC |
14465 | |
14466 | ||
14467 | for ac_header in unistd.h vfork.h | |
14468 | do | |
14469 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14470 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14471 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14475 | fi | |
14476 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14477 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14478 | else | |
14479 | # Is the header compilable? | |
14480 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14481 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14482 | cat >conftest.$ac_ext <<_ACEOF | |
14483 | /* confdefs.h. */ | |
14484 | _ACEOF | |
14485 | cat confdefs.h >>conftest.$ac_ext | |
14486 | cat >>conftest.$ac_ext <<_ACEOF | |
14487 | /* end confdefs.h. */ | |
14488 | $ac_includes_default | |
14489 | #include <$ac_header> | |
14490 | _ACEOF | |
14491 | rm -f conftest.$ac_objext | |
14492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14493 | (eval $ac_compile) 2>conftest.er1 | |
14494 | ac_status=$? | |
14495 | grep -v '^ *+' conftest.er1 >conftest.err | |
14496 | rm -f conftest.er1 | |
14497 | cat conftest.err >&5 | |
14498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14499 | (exit $ac_status); } && | |
14500 | { ac_try='test -z "$ac_c_werror_flag" | |
14501 | || test ! -s conftest.err' | |
14502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14503 | (eval $ac_try) 2>&5 | |
14504 | ac_status=$? | |
14505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14506 | (exit $ac_status); }; } && | |
14507 | { ac_try='test -s conftest.$ac_objext' | |
14508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14509 | (eval $ac_try) 2>&5 | |
14510 | ac_status=$? | |
14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14512 | (exit $ac_status); }; }; then | |
14513 | ac_header_compiler=yes | |
14514 | else | |
14515 | echo "$as_me: failed program was:" >&5 | |
14516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14517 | ||
14518 | ac_header_compiler=no | |
14519 | fi | |
14520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14521 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14522 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14523 | ||
14524 | # Is the header present? | |
14525 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14526 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14527 | cat >conftest.$ac_ext <<_ACEOF | |
14528 | /* confdefs.h. */ | |
14529 | _ACEOF | |
14530 | cat confdefs.h >>conftest.$ac_ext | |
14531 | cat >>conftest.$ac_ext <<_ACEOF | |
14532 | /* end confdefs.h. */ | |
14533 | #include <$ac_header> | |
14534 | _ACEOF | |
14535 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14536 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14537 | ac_status=$? | |
14538 | grep -v '^ *+' conftest.er1 >conftest.err | |
14539 | rm -f conftest.er1 | |
14540 | cat conftest.err >&5 | |
14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14542 | (exit $ac_status); } >/dev/null; then | |
14543 | if test -s conftest.err; then | |
14544 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14545 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14546 | else | |
14547 | ac_cpp_err= | |
14548 | fi | |
14549 | else | |
14550 | ac_cpp_err=yes | |
14551 | fi | |
14552 | if test -z "$ac_cpp_err"; then | |
14553 | ac_header_preproc=yes | |
97bf5e38 | 14554 | else |
bec39cab AC |
14555 | echo "$as_me: failed program was:" >&5 |
14556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14557 | ||
14558 | ac_header_preproc=no | |
72473524 | 14559 | fi |
bec39cab AC |
14560 | rm -f conftest.err conftest.$ac_ext |
14561 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14562 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 14563 | |
bec39cab AC |
14564 | # So? What about this header? |
14565 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14566 | yes:no: ) | |
14567 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14568 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14569 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14570 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14571 | ac_header_preproc=yes | |
14572 | ;; | |
14573 | no:yes:* ) | |
14574 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14575 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14576 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14577 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14578 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14579 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14580 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14581 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14582 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14583 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14584 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14585 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14586 | ( | |
14587 | cat <<\_ASBOX | |
14588 | ## ------------------------------------------ ## | |
14589 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14590 | ## ------------------------------------------ ## | |
14591 | _ASBOX | |
14592 | ) | | |
14593 | sed "s/^/$as_me: WARNING: /" >&2 | |
14594 | ;; | |
14595 | esac | |
14596 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14597 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14598 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 14600 | else |
bec39cab AC |
14601 | eval "$as_ac_Header=\$ac_header_preproc" |
14602 | fi | |
14603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14604 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14605 | ||
14606 | fi | |
14607 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14608 | cat >>confdefs.h <<_ACEOF | |
14609 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14610 | _ACEOF | |
14611 | ||
14612 | fi | |
14613 | ||
14614 | done | |
14615 | ||
14616 | ||
14617 | ||
14618 | for ac_func in fork vfork | |
14619 | do | |
14620 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14621 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14622 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14623 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14625 | else | |
14626 | cat >conftest.$ac_ext <<_ACEOF | |
14627 | /* confdefs.h. */ | |
14628 | _ACEOF | |
14629 | cat confdefs.h >>conftest.$ac_ext | |
14630 | cat >>conftest.$ac_ext <<_ACEOF | |
14631 | /* end confdefs.h. */ | |
14632 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14633 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14634 | #define $ac_func innocuous_$ac_func | |
14635 | ||
97bf5e38 | 14636 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14637 | which can conflict with char $ac_func (); below. |
14638 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14639 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 14640 | |
bec39cab AC |
14641 | #ifdef __STDC__ |
14642 | # include <limits.h> | |
14643 | #else | |
14644 | # include <assert.h> | |
14645 | #endif | |
97bf5e38 | 14646 | |
bec39cab AC |
14647 | #undef $ac_func |
14648 | ||
14649 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14650 | #ifdef __cplusplus | |
14651 | extern "C" | |
14652 | { | |
14653 | #endif | |
14654 | /* We use char because int might match the return type of a gcc2 | |
14655 | builtin and then its argument prototype would still apply. */ | |
14656 | char $ac_func (); | |
97bf5e38 MK |
14657 | /* The GNU C library defines this for functions which it implements |
14658 | to always fail with ENOSYS. Some functions are actually named | |
14659 | something starting with __ and the normal name is an alias. */ | |
bec39cab | 14660 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 MK |
14661 | choke me |
14662 | #else | |
bec39cab AC |
14663 | char (*f) () = $ac_func; |
14664 | #endif | |
14665 | #ifdef __cplusplus | |
14666 | } | |
97bf5e38 MK |
14667 | #endif |
14668 | ||
bec39cab AC |
14669 | int |
14670 | main () | |
14671 | { | |
14672 | return f != $ac_func; | |
14673 | ; | |
14674 | return 0; | |
14675 | } | |
14676 | _ACEOF | |
14677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14679 | (eval $ac_link) 2>conftest.er1 | |
14680 | ac_status=$? | |
14681 | grep -v '^ *+' conftest.er1 >conftest.err | |
14682 | rm -f conftest.er1 | |
14683 | cat conftest.err >&5 | |
14684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14685 | (exit $ac_status); } && | |
14686 | { ac_try='test -z "$ac_c_werror_flag" | |
14687 | || test ! -s conftest.err' | |
14688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14689 | (eval $ac_try) 2>&5 | |
14690 | ac_status=$? | |
14691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14692 | (exit $ac_status); }; } && | |
14693 | { ac_try='test -s conftest$ac_exeext' | |
14694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14695 | (eval $ac_try) 2>&5 | |
14696 | ac_status=$? | |
14697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14698 | (exit $ac_status); }; }; then | |
14699 | eval "$as_ac_var=yes" | |
14700 | else | |
14701 | echo "$as_me: failed program was:" >&5 | |
14702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14703 | ||
14704 | eval "$as_ac_var=no" | |
14705 | fi | |
14706 | rm -f conftest.err conftest.$ac_objext \ | |
14707 | conftest$ac_exeext conftest.$ac_ext | |
14708 | fi | |
14709 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14710 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14711 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14712 | cat >>confdefs.h <<_ACEOF | |
14713 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14714 | _ACEOF | |
14715 | ||
2b2d558c | 14716 | fi |
bec39cab | 14717 | done |
2b2d558c | 14718 | |
bec39cab AC |
14719 | if test "x$ac_cv_func_fork" = xyes; then |
14720 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
14721 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
14722 | if test "${ac_cv_func_fork_works+set}" = set; then | |
14723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 14724 | else |
bec39cab AC |
14725 | if test "$cross_compiling" = yes; then |
14726 | ac_cv_func_fork_works=cross | |
14727 | else | |
14728 | cat >conftest.$ac_ext <<_ACEOF | |
14729 | /* By Ruediger Kuhlmann. */ | |
14730 | #include <sys/types.h> | |
14731 | #if HAVE_UNISTD_H | |
14732 | # include <unistd.h> | |
14733 | #endif | |
14734 | /* Some systems only have a dummy stub for fork() */ | |
14735 | int main () | |
14736 | { | |
14737 | if (fork() < 0) | |
14738 | exit (1); | |
14739 | exit (0); | |
14740 | } | |
14741 | _ACEOF | |
14742 | rm -f conftest$ac_exeext | |
14743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14744 | (eval $ac_link) 2>&5 | |
14745 | ac_status=$? | |
14746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14749 | (eval $ac_try) 2>&5 | |
14750 | ac_status=$? | |
14751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14752 | (exit $ac_status); }; }; then | |
14753 | ac_cv_func_fork_works=yes | |
14754 | else | |
14755 | echo "$as_me: program exited with status $ac_status" >&5 | |
14756 | echo "$as_me: failed program was:" >&5 | |
14757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14758 | ||
14759 | ( exit $ac_status ) | |
14760 | ac_cv_func_fork_works=no | |
14761 | fi | |
14762 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14763 | fi | |
14764 | fi | |
14765 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
14766 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
14767 | ||
14768 | else | |
14769 | ac_cv_func_fork_works=$ac_cv_func_fork | |
14770 | fi | |
14771 | if test "x$ac_cv_func_fork_works" = xcross; then | |
14772 | case $host in | |
14773 | *-*-amigaos* | *-*-msdosdjgpp*) | |
14774 | # Override, as these systems have only a dummy fork() stub | |
14775 | ac_cv_func_fork_works=no | |
14776 | ;; | |
14777 | *) | |
14778 | ac_cv_func_fork_works=yes | |
14779 | ;; | |
14780 | esac | |
14781 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
14782 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
2b2d558c | 14783 | fi |
97bf5e38 | 14784 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
bec39cab AC |
14785 | if test "x$ac_cv_func_vfork" = xyes; then |
14786 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
14787 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
14788 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
14789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7dfa765c | 14790 | else |
bec39cab AC |
14791 | if test "$cross_compiling" = yes; then |
14792 | ac_cv_func_vfork_works=cross | |
14793 | else | |
14794 | cat >conftest.$ac_ext <<_ACEOF | |
14795 | /* confdefs.h. */ | |
14796 | _ACEOF | |
14797 | cat confdefs.h >>conftest.$ac_ext | |
14798 | cat >>conftest.$ac_ext <<_ACEOF | |
14799 | /* end confdefs.h. */ | |
97bf5e38 MK |
14800 | /* Thanks to Paul Eggert for this test. */ |
14801 | #include <stdio.h> | |
bec39cab | 14802 | #include <stdlib.h> |
97bf5e38 MK |
14803 | #include <sys/types.h> |
14804 | #include <sys/stat.h> | |
bec39cab AC |
14805 | #include <sys/wait.h> |
14806 | #if HAVE_UNISTD_H | |
14807 | # include <unistd.h> | |
97bf5e38 | 14808 | #endif |
bec39cab AC |
14809 | #if HAVE_VFORK_H |
14810 | # include <vfork.h> | |
97bf5e38 MK |
14811 | #endif |
14812 | /* On some sparc systems, changes by the child to local and incoming | |
bec39cab AC |
14813 | argument registers are propagated back to the parent. The compiler |
14814 | is told about this with #include <vfork.h>, but some compilers | |
14815 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
14816 | static variable whose address is put into a register that is | |
14817 | clobbered by the vfork. */ | |
14818 | static void | |
97bf5e38 MK |
14819 | #ifdef __cplusplus |
14820 | sparc_address_test (int arg) | |
bec39cab | 14821 | # else |
97bf5e38 MK |
14822 | sparc_address_test (arg) int arg; |
14823 | #endif | |
14824 | { | |
14825 | static pid_t child; | |
14826 | if (!child) { | |
14827 | child = vfork (); | |
14828 | if (child < 0) { | |
14829 | perror ("vfork"); | |
14830 | _exit(2); | |
14831 | } | |
14832 | if (!child) { | |
14833 | arg = getpid(); | |
14834 | write(-1, "", 0); | |
14835 | _exit (arg); | |
14836 | } | |
14837 | } | |
14838 | } | |
bec39cab AC |
14839 | |
14840 | int | |
14841 | main () | |
14842 | { | |
97bf5e38 MK |
14843 | pid_t parent = getpid (); |
14844 | pid_t child; | |
7dfa765c | 14845 | |
bec39cab | 14846 | sparc_address_test (0); |
7dfa765c | 14847 | |
97bf5e38 | 14848 | child = vfork (); |
7dfa765c | 14849 | |
97bf5e38 | 14850 | if (child == 0) { |
bec39cab AC |
14851 | /* Here is another test for sparc vfork register problems. This |
14852 | test uses lots of local variables, at least as many local | |
14853 | variables as main has allocated so far including compiler | |
14854 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
14855 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
14856 | reuse the register of parent for one of the local variables, | |
14857 | since it will think that parent can't possibly be used any more | |
14858 | in this routine. Assigning to the local variable will thus | |
14859 | munge parent in the parent process. */ | |
97bf5e38 MK |
14860 | pid_t |
14861 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
14862 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
14863 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
14864 | use the same hardware register for all 8 local variables. */ | |
14865 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
14866 | || p != p5 || p != p6 || p != p7) | |
14867 | _exit(1); | |
7dfa765c | 14868 | |
bec39cab AC |
14869 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
14870 | from child file descriptors. If the child closes a descriptor | |
14871 | before it execs or exits, this munges the parent's descriptor | |
14872 | as well. Test for this by closing stdout in the child. */ | |
97bf5e38 MK |
14873 | _exit(close(fileno(stdout)) != 0); |
14874 | } else { | |
14875 | int status; | |
14876 | struct stat st; | |
64bb1671 | 14877 | |
97bf5e38 MK |
14878 | while (wait(&status) != child) |
14879 | ; | |
14880 | exit( | |
14881 | /* Was there some problem with vforking? */ | |
14882 | child < 0 | |
64bb1671 | 14883 | |
97bf5e38 MK |
14884 | /* Did the child fail? (This shouldn't happen.) */ |
14885 | || status | |
64bb1671 | 14886 | |
97bf5e38 MK |
14887 | /* Did the vfork/compiler bug occur? */ |
14888 | || parent != getpid() | |
14889 | ||
14890 | /* Did the file descriptor bug occur? */ | |
14891 | || fstat(fileno(stdout), &st) != 0 | |
14892 | ); | |
14893 | } | |
14894 | } | |
bec39cab AC |
14895 | _ACEOF |
14896 | rm -f conftest$ac_exeext | |
14897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14898 | (eval $ac_link) 2>&5 | |
14899 | ac_status=$? | |
14900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14901 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14903 | (eval $ac_try) 2>&5 | |
14904 | ac_status=$? | |
14905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14906 | (exit $ac_status); }; }; then | |
97bf5e38 | 14907 | ac_cv_func_vfork_works=yes |
5c44784c | 14908 | else |
bec39cab AC |
14909 | echo "$as_me: program exited with status $ac_status" >&5 |
14910 | echo "$as_me: failed program was:" >&5 | |
14911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14912 | ||
14913 | ( exit $ac_status ) | |
14914 | ac_cv_func_vfork_works=no | |
5c44784c | 14915 | fi |
bec39cab | 14916 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5c44784c | 14917 | fi |
bec39cab AC |
14918 | fi |
14919 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
14920 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
5c44784c | 14921 | |
bec39cab AC |
14922 | fi; |
14923 | if test "x$ac_cv_func_fork_works" = xcross; then | |
14924 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
14925 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
14926 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
0afdd437 MK |
14927 | fi |
14928 | ||
bec39cab AC |
14929 | if test "x$ac_cv_func_vfork_works" = xyes; then |
14930 | ||
14931 | cat >>confdefs.h <<\_ACEOF | |
14932 | #define HAVE_WORKING_VFORK 1 | |
14933 | _ACEOF | |
14934 | ||
14935 | else | |
14936 | ||
14937 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 14938 | #define vfork fork |
bec39cab AC |
14939 | _ACEOF |
14940 | ||
14941 | fi | |
14942 | if test "x$ac_cv_func_fork_works" = xyes; then | |
14943 | ||
14944 | cat >>confdefs.h <<\_ACEOF | |
14945 | #define HAVE_WORKING_FORK 1 | |
14946 | _ACEOF | |
0afdd437 MK |
14947 | |
14948 | fi | |
14949 | ||
bec39cab AC |
14950 | |
14951 | ||
97bf5e38 MK |
14952 | for ac_func in canonicalize_file_name realpath |
14953 | do | |
bec39cab AC |
14954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14955 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14957 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14959 | else | |
14960 | cat >conftest.$ac_ext <<_ACEOF | |
14961 | /* confdefs.h. */ | |
14962 | _ACEOF | |
14963 | cat confdefs.h >>conftest.$ac_ext | |
14964 | cat >>conftest.$ac_ext <<_ACEOF | |
14965 | /* end confdefs.h. */ | |
14966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14968 | #define $ac_func innocuous_$ac_func | |
14969 | ||
97bf5e38 | 14970 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14971 | which can conflict with char $ac_func (); below. |
14972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14973 | <limits.h> exists even on freestanding compilers. */ | |
14974 | ||
14975 | #ifdef __STDC__ | |
14976 | # include <limits.h> | |
14977 | #else | |
14978 | # include <assert.h> | |
14979 | #endif | |
97bf5e38 | 14980 | |
bec39cab | 14981 | #undef $ac_func |
97bf5e38 | 14982 | |
bec39cab AC |
14983 | /* Override any gcc2 internal prototype to avoid an error. */ |
14984 | #ifdef __cplusplus | |
14985 | extern "C" | |
14986 | { | |
14987 | #endif | |
14988 | /* We use char because int might match the return type of a gcc2 | |
14989 | builtin and then its argument prototype would still apply. */ | |
14990 | char $ac_func (); | |
97bf5e38 MK |
14991 | /* The GNU C library defines this for functions which it implements |
14992 | to always fail with ENOSYS. Some functions are actually named | |
14993 | something starting with __ and the normal name is an alias. */ | |
14994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14995 | choke me | |
14996 | #else | |
bec39cab AC |
14997 | char (*f) () = $ac_func; |
14998 | #endif | |
14999 | #ifdef __cplusplus | |
15000 | } | |
97bf5e38 MK |
15001 | #endif |
15002 | ||
bec39cab AC |
15003 | int |
15004 | main () | |
15005 | { | |
15006 | return f != $ac_func; | |
15007 | ; | |
15008 | return 0; | |
15009 | } | |
15010 | _ACEOF | |
15011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15013 | (eval $ac_link) 2>conftest.er1 | |
15014 | ac_status=$? | |
15015 | grep -v '^ *+' conftest.er1 >conftest.err | |
15016 | rm -f conftest.er1 | |
15017 | cat conftest.err >&5 | |
15018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15019 | (exit $ac_status); } && | |
15020 | { ac_try='test -z "$ac_c_werror_flag" | |
15021 | || test ! -s conftest.err' | |
15022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15023 | (eval $ac_try) 2>&5 | |
15024 | ac_status=$? | |
15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15026 | (exit $ac_status); }; } && | |
15027 | { ac_try='test -s conftest$ac_exeext' | |
15028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15029 | (eval $ac_try) 2>&5 | |
15030 | ac_status=$? | |
15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15032 | (exit $ac_status); }; }; then | |
15033 | eval "$as_ac_var=yes" | |
15034 | else | |
15035 | echo "$as_me: failed program was:" >&5 | |
15036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15037 | ||
15038 | eval "$as_ac_var=no" | |
15039 | fi | |
15040 | rm -f conftest.err conftest.$ac_objext \ | |
15041 | conftest$ac_exeext conftest.$ac_ext | |
15042 | fi | |
15043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15044 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15045 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15046 | cat >>confdefs.h <<_ACEOF | |
15047 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15048 | _ACEOF | |
7e89e357 | 15049 | |
7e89e357 | 15050 | fi |
97bf5e38 | 15051 | done |
7e89e357 | 15052 | |
bec39cab | 15053 | |
97bf5e38 | 15054 | for ac_func in poll |
7be570e7 | 15055 | do |
bec39cab AC |
15056 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15057 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15058 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15059 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15061 | else | |
15062 | cat >conftest.$ac_ext <<_ACEOF | |
15063 | /* confdefs.h. */ | |
15064 | _ACEOF | |
15065 | cat confdefs.h >>conftest.$ac_ext | |
15066 | cat >>conftest.$ac_ext <<_ACEOF | |
15067 | /* end confdefs.h. */ | |
15068 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15070 | #define $ac_func innocuous_$ac_func | |
15071 | ||
7be570e7 | 15072 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15073 | which can conflict with char $ac_func (); below. |
15074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15075 | <limits.h> exists even on freestanding compilers. */ | |
15076 | ||
15077 | #ifdef __STDC__ | |
15078 | # include <limits.h> | |
15079 | #else | |
15080 | # include <assert.h> | |
15081 | #endif | |
7be570e7 | 15082 | |
bec39cab | 15083 | #undef $ac_func |
7be570e7 | 15084 | |
bec39cab AC |
15085 | /* Override any gcc2 internal prototype to avoid an error. */ |
15086 | #ifdef __cplusplus | |
15087 | extern "C" | |
15088 | { | |
15089 | #endif | |
15090 | /* We use char because int might match the return type of a gcc2 | |
15091 | builtin and then its argument prototype would still apply. */ | |
15092 | char $ac_func (); | |
7be570e7 JM |
15093 | /* The GNU C library defines this for functions which it implements |
15094 | to always fail with ENOSYS. Some functions are actually named | |
15095 | something starting with __ and the normal name is an alias. */ | |
15096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15097 | choke me | |
15098 | #else | |
bec39cab AC |
15099 | char (*f) () = $ac_func; |
15100 | #endif | |
15101 | #ifdef __cplusplus | |
15102 | } | |
7be570e7 JM |
15103 | #endif |
15104 | ||
bec39cab AC |
15105 | int |
15106 | main () | |
15107 | { | |
15108 | return f != $ac_func; | |
15109 | ; | |
15110 | return 0; | |
15111 | } | |
15112 | _ACEOF | |
15113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15115 | (eval $ac_link) 2>conftest.er1 | |
15116 | ac_status=$? | |
15117 | grep -v '^ *+' conftest.er1 >conftest.err | |
15118 | rm -f conftest.er1 | |
15119 | cat conftest.err >&5 | |
15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15121 | (exit $ac_status); } && | |
15122 | { ac_try='test -z "$ac_c_werror_flag" | |
15123 | || test ! -s conftest.err' | |
15124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15125 | (eval $ac_try) 2>&5 | |
15126 | ac_status=$? | |
15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15128 | (exit $ac_status); }; } && | |
15129 | { ac_try='test -s conftest$ac_exeext' | |
15130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15131 | (eval $ac_try) 2>&5 | |
15132 | ac_status=$? | |
15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15134 | (exit $ac_status); }; }; then | |
15135 | eval "$as_ac_var=yes" | |
15136 | else | |
15137 | echo "$as_me: failed program was:" >&5 | |
15138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15139 | ||
15140 | eval "$as_ac_var=no" | |
15141 | fi | |
15142 | rm -f conftest.err conftest.$ac_objext \ | |
15143 | conftest$ac_exeext conftest.$ac_ext | |
15144 | fi | |
15145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15146 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15147 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15148 | cat >>confdefs.h <<_ACEOF | |
15149 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15150 | _ACEOF | |
14abd0fb | 15151 | |
14abd0fb MK |
15152 | fi |
15153 | done | |
15154 | ||
bec39cab | 15155 | |
14abd0fb MK |
15156 | for ac_func in pread64 |
15157 | do | |
bec39cab AC |
15158 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15159 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15160 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15161 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15163 | else | |
15164 | cat >conftest.$ac_ext <<_ACEOF | |
15165 | /* confdefs.h. */ | |
15166 | _ACEOF | |
15167 | cat confdefs.h >>conftest.$ac_ext | |
15168 | cat >>conftest.$ac_ext <<_ACEOF | |
15169 | /* end confdefs.h. */ | |
15170 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15171 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15172 | #define $ac_func innocuous_$ac_func | |
15173 | ||
14abd0fb | 15174 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15175 | which can conflict with char $ac_func (); below. |
15176 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15177 | <limits.h> exists even on freestanding compilers. */ | |
15178 | ||
15179 | #ifdef __STDC__ | |
15180 | # include <limits.h> | |
15181 | #else | |
15182 | # include <assert.h> | |
15183 | #endif | |
14abd0fb | 15184 | |
bec39cab | 15185 | #undef $ac_func |
14abd0fb | 15186 | |
bec39cab AC |
15187 | /* Override any gcc2 internal prototype to avoid an error. */ |
15188 | #ifdef __cplusplus | |
15189 | extern "C" | |
15190 | { | |
15191 | #endif | |
15192 | /* We use char because int might match the return type of a gcc2 | |
15193 | builtin and then its argument prototype would still apply. */ | |
15194 | char $ac_func (); | |
14abd0fb MK |
15195 | /* The GNU C library defines this for functions which it implements |
15196 | to always fail with ENOSYS. Some functions are actually named | |
15197 | something starting with __ and the normal name is an alias. */ | |
15198 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15199 | choke me | |
15200 | #else | |
bec39cab AC |
15201 | char (*f) () = $ac_func; |
15202 | #endif | |
15203 | #ifdef __cplusplus | |
15204 | } | |
14abd0fb MK |
15205 | #endif |
15206 | ||
bec39cab AC |
15207 | int |
15208 | main () | |
15209 | { | |
15210 | return f != $ac_func; | |
15211 | ; | |
15212 | return 0; | |
15213 | } | |
15214 | _ACEOF | |
15215 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15217 | (eval $ac_link) 2>conftest.er1 | |
15218 | ac_status=$? | |
15219 | grep -v '^ *+' conftest.er1 >conftest.err | |
15220 | rm -f conftest.er1 | |
15221 | cat conftest.err >&5 | |
15222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15223 | (exit $ac_status); } && | |
15224 | { ac_try='test -z "$ac_c_werror_flag" | |
15225 | || test ! -s conftest.err' | |
15226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15227 | (eval $ac_try) 2>&5 | |
15228 | ac_status=$? | |
15229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15230 | (exit $ac_status); }; } && | |
15231 | { ac_try='test -s conftest$ac_exeext' | |
15232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15233 | (eval $ac_try) 2>&5 | |
15234 | ac_status=$? | |
15235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15236 | (exit $ac_status); }; }; then | |
15237 | eval "$as_ac_var=yes" | |
15238 | else | |
15239 | echo "$as_me: failed program was:" >&5 | |
15240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15241 | ||
15242 | eval "$as_ac_var=no" | |
15243 | fi | |
15244 | rm -f conftest.err conftest.$ac_objext \ | |
15245 | conftest$ac_exeext conftest.$ac_ext | |
15246 | fi | |
15247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15248 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15249 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15250 | cat >>confdefs.h <<_ACEOF | |
15251 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15252 | _ACEOF | |
7be570e7 | 15253 | |
7be570e7 JM |
15254 | fi |
15255 | done | |
15256 | ||
bec39cab | 15257 | |
97bf5e38 MK |
15258 | for ac_func in sbrk |
15259 | do | |
bec39cab AC |
15260 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15261 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15262 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15263 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15265 | else | |
15266 | cat >conftest.$ac_ext <<_ACEOF | |
15267 | /* confdefs.h. */ | |
15268 | _ACEOF | |
15269 | cat confdefs.h >>conftest.$ac_ext | |
15270 | cat >>conftest.$ac_ext <<_ACEOF | |
15271 | /* end confdefs.h. */ | |
15272 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15273 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15274 | #define $ac_func innocuous_$ac_func | |
15275 | ||
97bf5e38 | 15276 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15277 | which can conflict with char $ac_func (); below. |
15278 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15279 | <limits.h> exists even on freestanding compilers. */ | |
15280 | ||
15281 | #ifdef __STDC__ | |
15282 | # include <limits.h> | |
15283 | #else | |
15284 | # include <assert.h> | |
15285 | #endif | |
c906108c | 15286 | |
bec39cab | 15287 | #undef $ac_func |
97bf5e38 | 15288 | |
bec39cab AC |
15289 | /* Override any gcc2 internal prototype to avoid an error. */ |
15290 | #ifdef __cplusplus | |
15291 | extern "C" | |
15292 | { | |
15293 | #endif | |
15294 | /* We use char because int might match the return type of a gcc2 | |
15295 | builtin and then its argument prototype would still apply. */ | |
15296 | char $ac_func (); | |
97bf5e38 MK |
15297 | /* The GNU C library defines this for functions which it implements |
15298 | to always fail with ENOSYS. Some functions are actually named | |
15299 | something starting with __ and the normal name is an alias. */ | |
15300 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15301 | choke me | |
c906108c | 15302 | #else |
bec39cab AC |
15303 | char (*f) () = $ac_func; |
15304 | #endif | |
15305 | #ifdef __cplusplus | |
15306 | } | |
c906108c | 15307 | #endif |
97bf5e38 | 15308 | |
bec39cab AC |
15309 | int |
15310 | main () | |
15311 | { | |
15312 | return f != $ac_func; | |
15313 | ; | |
15314 | return 0; | |
15315 | } | |
15316 | _ACEOF | |
15317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15319 | (eval $ac_link) 2>conftest.er1 | |
15320 | ac_status=$? | |
15321 | grep -v '^ *+' conftest.er1 >conftest.err | |
15322 | rm -f conftest.er1 | |
15323 | cat conftest.err >&5 | |
15324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15325 | (exit $ac_status); } && | |
15326 | { ac_try='test -z "$ac_c_werror_flag" | |
15327 | || test ! -s conftest.err' | |
15328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15329 | (eval $ac_try) 2>&5 | |
15330 | ac_status=$? | |
15331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15332 | (exit $ac_status); }; } && | |
15333 | { ac_try='test -s conftest$ac_exeext' | |
15334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15335 | (eval $ac_try) 2>&5 | |
15336 | ac_status=$? | |
15337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15338 | (exit $ac_status); }; }; then | |
15339 | eval "$as_ac_var=yes" | |
15340 | else | |
15341 | echo "$as_me: failed program was:" >&5 | |
15342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15343 | ||
15344 | eval "$as_ac_var=no" | |
15345 | fi | |
15346 | rm -f conftest.err conftest.$ac_objext \ | |
15347 | conftest$ac_exeext conftest.$ac_ext | |
15348 | fi | |
15349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15350 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15351 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15352 | cat >>confdefs.h <<_ACEOF | |
15353 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15354 | _ACEOF | |
c906108c | 15355 | |
c906108c | 15356 | fi |
97bf5e38 | 15357 | done |
c906108c | 15358 | |
bec39cab AC |
15359 | |
15360 | ||
97bf5e38 MK |
15361 | for ac_func in setpgid setpgrp |
15362 | do | |
bec39cab AC |
15363 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15364 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15365 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15366 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15368 | else | |
15369 | cat >conftest.$ac_ext <<_ACEOF | |
15370 | /* confdefs.h. */ | |
15371 | _ACEOF | |
15372 | cat confdefs.h >>conftest.$ac_ext | |
15373 | cat >>conftest.$ac_ext <<_ACEOF | |
15374 | /* end confdefs.h. */ | |
15375 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15377 | #define $ac_func innocuous_$ac_func | |
15378 | ||
97bf5e38 | 15379 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15380 | which can conflict with char $ac_func (); below. |
15381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15382 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 15383 | |
bec39cab AC |
15384 | #ifdef __STDC__ |
15385 | # include <limits.h> | |
15386 | #else | |
15387 | # include <assert.h> | |
15388 | #endif | |
97bf5e38 | 15389 | |
bec39cab AC |
15390 | #undef $ac_func |
15391 | ||
15392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15393 | #ifdef __cplusplus | |
15394 | extern "C" | |
15395 | { | |
15396 | #endif | |
15397 | /* We use char because int might match the return type of a gcc2 | |
15398 | builtin and then its argument prototype would still apply. */ | |
15399 | char $ac_func (); | |
97bf5e38 MK |
15400 | /* The GNU C library defines this for functions which it implements |
15401 | to always fail with ENOSYS. Some functions are actually named | |
15402 | something starting with __ and the normal name is an alias. */ | |
15403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15404 | choke me | |
c906108c | 15405 | #else |
bec39cab AC |
15406 | char (*f) () = $ac_func; |
15407 | #endif | |
15408 | #ifdef __cplusplus | |
15409 | } | |
c906108c | 15410 | #endif |
97bf5e38 | 15411 | |
bec39cab AC |
15412 | int |
15413 | main () | |
15414 | { | |
15415 | return f != $ac_func; | |
15416 | ; | |
15417 | return 0; | |
15418 | } | |
15419 | _ACEOF | |
15420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15422 | (eval $ac_link) 2>conftest.er1 | |
15423 | ac_status=$? | |
15424 | grep -v '^ *+' conftest.er1 >conftest.err | |
15425 | rm -f conftest.er1 | |
15426 | cat conftest.err >&5 | |
15427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15428 | (exit $ac_status); } && | |
15429 | { ac_try='test -z "$ac_c_werror_flag" | |
15430 | || test ! -s conftest.err' | |
15431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15432 | (eval $ac_try) 2>&5 | |
15433 | ac_status=$? | |
15434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15435 | (exit $ac_status); }; } && | |
15436 | { ac_try='test -s conftest$ac_exeext' | |
15437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15438 | (eval $ac_try) 2>&5 | |
15439 | ac_status=$? | |
15440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15441 | (exit $ac_status); }; }; then | |
15442 | eval "$as_ac_var=yes" | |
15443 | else | |
15444 | echo "$as_me: failed program was:" >&5 | |
15445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15446 | ||
15447 | eval "$as_ac_var=no" | |
15448 | fi | |
15449 | rm -f conftest.err conftest.$ac_objext \ | |
15450 | conftest$ac_exeext conftest.$ac_ext | |
15451 | fi | |
15452 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15453 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15454 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15455 | cat >>confdefs.h <<_ACEOF | |
15456 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15457 | _ACEOF | |
c906108c | 15458 | |
c906108c | 15459 | fi |
97bf5e38 | 15460 | done |
c906108c | 15461 | |
bec39cab AC |
15462 | |
15463 | ||
15464 | ||
e1ea1d75 | 15465 | for ac_func in sigaction sigprocmask sigsetmask |
97bf5e38 | 15466 | do |
bec39cab AC |
15467 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15468 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15469 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15470 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15472 | else | |
15473 | cat >conftest.$ac_ext <<_ACEOF | |
15474 | /* confdefs.h. */ | |
15475 | _ACEOF | |
15476 | cat confdefs.h >>conftest.$ac_ext | |
15477 | cat >>conftest.$ac_ext <<_ACEOF | |
15478 | /* end confdefs.h. */ | |
15479 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15480 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15481 | #define $ac_func innocuous_$ac_func | |
15482 | ||
97bf5e38 | 15483 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15484 | which can conflict with char $ac_func (); below. |
15485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15486 | <limits.h> exists even on freestanding compilers. */ | |
15487 | ||
15488 | #ifdef __STDC__ | |
15489 | # include <limits.h> | |
15490 | #else | |
15491 | # include <assert.h> | |
15492 | #endif | |
c906108c | 15493 | |
bec39cab | 15494 | #undef $ac_func |
97bf5e38 | 15495 | |
bec39cab AC |
15496 | /* Override any gcc2 internal prototype to avoid an error. */ |
15497 | #ifdef __cplusplus | |
15498 | extern "C" | |
15499 | { | |
15500 | #endif | |
15501 | /* We use char because int might match the return type of a gcc2 | |
15502 | builtin and then its argument prototype would still apply. */ | |
15503 | char $ac_func (); | |
97bf5e38 MK |
15504 | /* The GNU C library defines this for functions which it implements |
15505 | to always fail with ENOSYS. Some functions are actually named | |
15506 | something starting with __ and the normal name is an alias. */ | |
15507 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15508 | choke me | |
c906108c | 15509 | #else |
bec39cab AC |
15510 | char (*f) () = $ac_func; |
15511 | #endif | |
15512 | #ifdef __cplusplus | |
15513 | } | |
c906108c | 15514 | #endif |
97bf5e38 | 15515 | |
bec39cab AC |
15516 | int |
15517 | main () | |
15518 | { | |
15519 | return f != $ac_func; | |
15520 | ; | |
15521 | return 0; | |
15522 | } | |
15523 | _ACEOF | |
15524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15526 | (eval $ac_link) 2>conftest.er1 | |
15527 | ac_status=$? | |
15528 | grep -v '^ *+' conftest.er1 >conftest.err | |
15529 | rm -f conftest.er1 | |
15530 | cat conftest.err >&5 | |
15531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15532 | (exit $ac_status); } && | |
15533 | { ac_try='test -z "$ac_c_werror_flag" | |
15534 | || test ! -s conftest.err' | |
15535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15536 | (eval $ac_try) 2>&5 | |
15537 | ac_status=$? | |
15538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15539 | (exit $ac_status); }; } && | |
15540 | { ac_try='test -s conftest$ac_exeext' | |
15541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15542 | (eval $ac_try) 2>&5 | |
15543 | ac_status=$? | |
15544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15545 | (exit $ac_status); }; }; then | |
15546 | eval "$as_ac_var=yes" | |
15547 | else | |
15548 | echo "$as_me: failed program was:" >&5 | |
15549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15550 | ||
15551 | eval "$as_ac_var=no" | |
15552 | fi | |
15553 | rm -f conftest.err conftest.$ac_objext \ | |
15554 | conftest$ac_exeext conftest.$ac_ext | |
15555 | fi | |
15556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15557 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15558 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15559 | cat >>confdefs.h <<_ACEOF | |
15560 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15561 | _ACEOF | |
c906108c | 15562 | |
c906108c | 15563 | fi |
97bf5e38 | 15564 | done |
c906108c | 15565 | |
bec39cab | 15566 | |
97bf5e38 MK |
15567 | for ac_func in socketpair |
15568 | do | |
bec39cab AC |
15569 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15570 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15571 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15572 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15574 | else | |
15575 | cat >conftest.$ac_ext <<_ACEOF | |
15576 | /* confdefs.h. */ | |
15577 | _ACEOF | |
15578 | cat confdefs.h >>conftest.$ac_ext | |
15579 | cat >>conftest.$ac_ext <<_ACEOF | |
15580 | /* end confdefs.h. */ | |
15581 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15583 | #define $ac_func innocuous_$ac_func | |
15584 | ||
97bf5e38 | 15585 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15586 | which can conflict with char $ac_func (); below. |
15587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15588 | <limits.h> exists even on freestanding compilers. */ | |
15589 | ||
15590 | #ifdef __STDC__ | |
15591 | # include <limits.h> | |
15592 | #else | |
15593 | # include <assert.h> | |
15594 | #endif | |
c906108c | 15595 | |
bec39cab | 15596 | #undef $ac_func |
97bf5e38 | 15597 | |
bec39cab AC |
15598 | /* Override any gcc2 internal prototype to avoid an error. */ |
15599 | #ifdef __cplusplus | |
15600 | extern "C" | |
15601 | { | |
15602 | #endif | |
15603 | /* We use char because int might match the return type of a gcc2 | |
15604 | builtin and then its argument prototype would still apply. */ | |
15605 | char $ac_func (); | |
97bf5e38 MK |
15606 | /* The GNU C library defines this for functions which it implements |
15607 | to always fail with ENOSYS. Some functions are actually named | |
15608 | something starting with __ and the normal name is an alias. */ | |
15609 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15610 | choke me | |
c906108c | 15611 | #else |
bec39cab AC |
15612 | char (*f) () = $ac_func; |
15613 | #endif | |
15614 | #ifdef __cplusplus | |
15615 | } | |
c906108c | 15616 | #endif |
97bf5e38 | 15617 | |
bec39cab AC |
15618 | int |
15619 | main () | |
15620 | { | |
15621 | return f != $ac_func; | |
15622 | ; | |
15623 | return 0; | |
15624 | } | |
15625 | _ACEOF | |
15626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15628 | (eval $ac_link) 2>conftest.er1 | |
15629 | ac_status=$? | |
15630 | grep -v '^ *+' conftest.er1 >conftest.err | |
15631 | rm -f conftest.er1 | |
15632 | cat conftest.err >&5 | |
15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15634 | (exit $ac_status); } && | |
15635 | { ac_try='test -z "$ac_c_werror_flag" | |
15636 | || test ! -s conftest.err' | |
15637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15638 | (eval $ac_try) 2>&5 | |
15639 | ac_status=$? | |
15640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15641 | (exit $ac_status); }; } && | |
15642 | { ac_try='test -s conftest$ac_exeext' | |
15643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15644 | (eval $ac_try) 2>&5 | |
15645 | ac_status=$? | |
15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15647 | (exit $ac_status); }; }; then | |
15648 | eval "$as_ac_var=yes" | |
15649 | else | |
15650 | echo "$as_me: failed program was:" >&5 | |
15651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15652 | ||
15653 | eval "$as_ac_var=no" | |
15654 | fi | |
15655 | rm -f conftest.err conftest.$ac_objext \ | |
15656 | conftest$ac_exeext conftest.$ac_ext | |
15657 | fi | |
15658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15659 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15660 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15661 | cat >>confdefs.h <<_ACEOF | |
15662 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15663 | _ACEOF | |
c906108c | 15664 | |
c906108c | 15665 | fi |
97bf5e38 | 15666 | done |
c906108c | 15667 | |
bec39cab | 15668 | |
b757528f JJ |
15669 | for ac_func in syscall |
15670 | do | |
bec39cab AC |
15671 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15672 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15673 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15674 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15676 | else | |
15677 | cat >conftest.$ac_ext <<_ACEOF | |
15678 | /* confdefs.h. */ | |
15679 | _ACEOF | |
15680 | cat confdefs.h >>conftest.$ac_ext | |
15681 | cat >>conftest.$ac_ext <<_ACEOF | |
15682 | /* end confdefs.h. */ | |
15683 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15684 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15685 | #define $ac_func innocuous_$ac_func | |
15686 | ||
b757528f | 15687 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15688 | which can conflict with char $ac_func (); below. |
15689 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15690 | <limits.h> exists even on freestanding compilers. */ | |
15691 | ||
15692 | #ifdef __STDC__ | |
15693 | # include <limits.h> | |
15694 | #else | |
15695 | # include <assert.h> | |
15696 | #endif | |
b757528f | 15697 | |
bec39cab | 15698 | #undef $ac_func |
b757528f | 15699 | |
bec39cab AC |
15700 | /* Override any gcc2 internal prototype to avoid an error. */ |
15701 | #ifdef __cplusplus | |
15702 | extern "C" | |
15703 | { | |
15704 | #endif | |
15705 | /* We use char because int might match the return type of a gcc2 | |
15706 | builtin and then its argument prototype would still apply. */ | |
15707 | char $ac_func (); | |
b757528f JJ |
15708 | /* The GNU C library defines this for functions which it implements |
15709 | to always fail with ENOSYS. Some functions are actually named | |
15710 | something starting with __ and the normal name is an alias. */ | |
15711 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15712 | choke me | |
15713 | #else | |
bec39cab AC |
15714 | char (*f) () = $ac_func; |
15715 | #endif | |
15716 | #ifdef __cplusplus | |
15717 | } | |
b757528f JJ |
15718 | #endif |
15719 | ||
bec39cab AC |
15720 | int |
15721 | main () | |
15722 | { | |
15723 | return f != $ac_func; | |
15724 | ; | |
15725 | return 0; | |
15726 | } | |
15727 | _ACEOF | |
15728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15730 | (eval $ac_link) 2>conftest.er1 | |
15731 | ac_status=$? | |
15732 | grep -v '^ *+' conftest.er1 >conftest.err | |
15733 | rm -f conftest.er1 | |
15734 | cat conftest.err >&5 | |
15735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15736 | (exit $ac_status); } && | |
15737 | { ac_try='test -z "$ac_c_werror_flag" | |
15738 | || test ! -s conftest.err' | |
15739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15740 | (eval $ac_try) 2>&5 | |
15741 | ac_status=$? | |
15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15743 | (exit $ac_status); }; } && | |
15744 | { ac_try='test -s conftest$ac_exeext' | |
15745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15746 | (eval $ac_try) 2>&5 | |
15747 | ac_status=$? | |
15748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15749 | (exit $ac_status); }; }; then | |
15750 | eval "$as_ac_var=yes" | |
15751 | else | |
15752 | echo "$as_me: failed program was:" >&5 | |
15753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15754 | ||
15755 | eval "$as_ac_var=no" | |
15756 | fi | |
15757 | rm -f conftest.err conftest.$ac_objext \ | |
15758 | conftest$ac_exeext conftest.$ac_ext | |
15759 | fi | |
15760 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15761 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15762 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15763 | cat >>confdefs.h <<_ACEOF | |
15764 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15765 | _ACEOF | |
b757528f | 15766 | |
b757528f JJ |
15767 | fi |
15768 | done | |
15769 | ||
bec39cab | 15770 | |
bcb3dc3d MK |
15771 | for ac_func in ttrace |
15772 | do | |
bec39cab AC |
15773 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15774 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15775 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15776 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15778 | else | |
15779 | cat >conftest.$ac_ext <<_ACEOF | |
15780 | /* confdefs.h. */ | |
15781 | _ACEOF | |
15782 | cat confdefs.h >>conftest.$ac_ext | |
15783 | cat >>conftest.$ac_ext <<_ACEOF | |
15784 | /* end confdefs.h. */ | |
15785 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15787 | #define $ac_func innocuous_$ac_func | |
15788 | ||
bcb3dc3d | 15789 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15790 | which can conflict with char $ac_func (); below. |
15791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15792 | <limits.h> exists even on freestanding compilers. */ | |
15793 | ||
15794 | #ifdef __STDC__ | |
15795 | # include <limits.h> | |
15796 | #else | |
15797 | # include <assert.h> | |
15798 | #endif | |
bcb3dc3d | 15799 | |
bec39cab | 15800 | #undef $ac_func |
bcb3dc3d | 15801 | |
bec39cab AC |
15802 | /* Override any gcc2 internal prototype to avoid an error. */ |
15803 | #ifdef __cplusplus | |
15804 | extern "C" | |
15805 | { | |
15806 | #endif | |
15807 | /* We use char because int might match the return type of a gcc2 | |
15808 | builtin and then its argument prototype would still apply. */ | |
15809 | char $ac_func (); | |
bcb3dc3d MK |
15810 | /* The GNU C library defines this for functions which it implements |
15811 | to always fail with ENOSYS. Some functions are actually named | |
15812 | something starting with __ and the normal name is an alias. */ | |
15813 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15814 | choke me | |
15815 | #else | |
bec39cab AC |
15816 | char (*f) () = $ac_func; |
15817 | #endif | |
15818 | #ifdef __cplusplus | |
15819 | } | |
bcb3dc3d MK |
15820 | #endif |
15821 | ||
bec39cab AC |
15822 | int |
15823 | main () | |
15824 | { | |
15825 | return f != $ac_func; | |
15826 | ; | |
15827 | return 0; | |
15828 | } | |
15829 | _ACEOF | |
15830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15832 | (eval $ac_link) 2>conftest.er1 | |
15833 | ac_status=$? | |
15834 | grep -v '^ *+' conftest.er1 >conftest.err | |
15835 | rm -f conftest.er1 | |
15836 | cat conftest.err >&5 | |
15837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15838 | (exit $ac_status); } && | |
15839 | { ac_try='test -z "$ac_c_werror_flag" | |
15840 | || test ! -s conftest.err' | |
15841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15842 | (eval $ac_try) 2>&5 | |
15843 | ac_status=$? | |
15844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15845 | (exit $ac_status); }; } && | |
15846 | { ac_try='test -s conftest$ac_exeext' | |
15847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15848 | (eval $ac_try) 2>&5 | |
15849 | ac_status=$? | |
15850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15851 | (exit $ac_status); }; }; then | |
15852 | eval "$as_ac_var=yes" | |
15853 | else | |
15854 | echo "$as_me: failed program was:" >&5 | |
15855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15856 | ||
15857 | eval "$as_ac_var=no" | |
15858 | fi | |
15859 | rm -f conftest.err conftest.$ac_objext \ | |
15860 | conftest$ac_exeext conftest.$ac_ext | |
15861 | fi | |
15862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15863 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15864 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15865 | cat >>confdefs.h <<_ACEOF | |
15866 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15867 | _ACEOF | |
bcb3dc3d | 15868 | |
bcb3dc3d MK |
15869 | fi |
15870 | done | |
15871 | ||
bec39cab | 15872 | |
8b9cf735 MK |
15873 | for ac_func in wborder |
15874 | do | |
bec39cab AC |
15875 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15876 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15877 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15878 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15880 | else | |
15881 | cat >conftest.$ac_ext <<_ACEOF | |
15882 | /* confdefs.h. */ | |
15883 | _ACEOF | |
15884 | cat confdefs.h >>conftest.$ac_ext | |
15885 | cat >>conftest.$ac_ext <<_ACEOF | |
15886 | /* end confdefs.h. */ | |
15887 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15889 | #define $ac_func innocuous_$ac_func | |
15890 | ||
8b9cf735 | 15891 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15892 | which can conflict with char $ac_func (); below. |
15893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15894 | <limits.h> exists even on freestanding compilers. */ | |
15895 | ||
15896 | #ifdef __STDC__ | |
15897 | # include <limits.h> | |
15898 | #else | |
15899 | # include <assert.h> | |
15900 | #endif | |
8b9cf735 | 15901 | |
bec39cab | 15902 | #undef $ac_func |
8b9cf735 | 15903 | |
bec39cab AC |
15904 | /* Override any gcc2 internal prototype to avoid an error. */ |
15905 | #ifdef __cplusplus | |
15906 | extern "C" | |
15907 | { | |
15908 | #endif | |
15909 | /* We use char because int might match the return type of a gcc2 | |
15910 | builtin and then its argument prototype would still apply. */ | |
15911 | char $ac_func (); | |
8b9cf735 MK |
15912 | /* The GNU C library defines this for functions which it implements |
15913 | to always fail with ENOSYS. Some functions are actually named | |
15914 | something starting with __ and the normal name is an alias. */ | |
15915 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15916 | choke me | |
15917 | #else | |
bec39cab AC |
15918 | char (*f) () = $ac_func; |
15919 | #endif | |
15920 | #ifdef __cplusplus | |
15921 | } | |
8b9cf735 MK |
15922 | #endif |
15923 | ||
bec39cab AC |
15924 | int |
15925 | main () | |
15926 | { | |
15927 | return f != $ac_func; | |
15928 | ; | |
15929 | return 0; | |
15930 | } | |
15931 | _ACEOF | |
15932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15934 | (eval $ac_link) 2>conftest.er1 | |
15935 | ac_status=$? | |
15936 | grep -v '^ *+' conftest.er1 >conftest.err | |
15937 | rm -f conftest.er1 | |
15938 | cat conftest.err >&5 | |
15939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15940 | (exit $ac_status); } && | |
15941 | { ac_try='test -z "$ac_c_werror_flag" | |
15942 | || test ! -s conftest.err' | |
15943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15944 | (eval $ac_try) 2>&5 | |
15945 | ac_status=$? | |
15946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15947 | (exit $ac_status); }; } && | |
15948 | { ac_try='test -s conftest$ac_exeext' | |
15949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15950 | (eval $ac_try) 2>&5 | |
15951 | ac_status=$? | |
15952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15953 | (exit $ac_status); }; }; then | |
15954 | eval "$as_ac_var=yes" | |
15955 | else | |
15956 | echo "$as_me: failed program was:" >&5 | |
15957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15958 | ||
15959 | eval "$as_ac_var=no" | |
15960 | fi | |
15961 | rm -f conftest.err conftest.$ac_objext \ | |
15962 | conftest$ac_exeext conftest.$ac_ext | |
15963 | fi | |
15964 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15965 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15966 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15967 | cat >>confdefs.h <<_ACEOF | |
15968 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15969 | _ACEOF | |
8b9cf735 | 15970 | |
8b9cf735 MK |
15971 | fi |
15972 | done | |
15973 | ||
97bf5e38 | 15974 | |
086ec9eb MK |
15975 | # Check the return and argument types of ptrace. No canned test for |
15976 | # this, so roll our own. | |
15977 | gdb_ptrace_headers=' | |
15978 | #if HAVE_SYS_TYPES_H | |
15979 | # include <sys/types.h> | |
15980 | #endif | |
15981 | #if HAVE_SYS_PTRACE_H | |
15982 | # include <sys/ptrace.h> | |
15983 | #endif | |
15984 | #if HAVE_UNISTD_H | |
15985 | # include <unistd.h> | |
15986 | #endif | |
15987 | ' | |
15988 | # There is no point in checking if we don't have a prototype. | |
15989 | for ac_func in ptrace | |
15990 | do | |
15991 | ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
bec39cab AC |
15992 | echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 |
15993 | echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 | |
15994 | if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then | |
15995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15996 | else | |
15997 | cat >conftest.$ac_ext <<_ACEOF | |
15998 | /* confdefs.h. */ | |
15999 | _ACEOF | |
16000 | cat confdefs.h >>conftest.$ac_ext | |
16001 | cat >>conftest.$ac_ext <<_ACEOF | |
16002 | /* end confdefs.h. */ | |
086ec9eb MK |
16003 | #undef $ac_tr_decl |
16004 | #define $ac_tr_decl 1 | |
16005 | $gdb_ptrace_headers | |
16006 | ||
bec39cab AC |
16007 | int |
16008 | main () | |
16009 | { | |
086ec9eb MK |
16010 | #ifndef $ac_func |
16011 | char *(*pfn) = (char *(*)) $ac_func ; | |
16012 | #endif | |
bec39cab AC |
16013 | ; |
16014 | return 0; | |
16015 | } | |
16016 | _ACEOF | |
16017 | rm -f conftest.$ac_objext | |
16018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16019 | (eval $ac_compile) 2>conftest.er1 | |
16020 | ac_status=$? | |
16021 | grep -v '^ *+' conftest.er1 >conftest.err | |
16022 | rm -f conftest.er1 | |
16023 | cat conftest.err >&5 | |
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16025 | (exit $ac_status); } && | |
16026 | { ac_try='test -z "$ac_c_werror_flag" | |
16027 | || test ! -s conftest.err' | |
16028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16029 | (eval $ac_try) 2>&5 | |
16030 | ac_status=$? | |
16031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16032 | (exit $ac_status); }; } && | |
16033 | { ac_try='test -s conftest.$ac_objext' | |
16034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16035 | (eval $ac_try) 2>&5 | |
16036 | ac_status=$? | |
16037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16038 | (exit $ac_status); }; }; then | |
086ec9eb MK |
16039 | eval "gcc_cv_have_decl_$ac_func=yes" |
16040 | else | |
bec39cab AC |
16041 | echo "$as_me: failed program was:" >&5 |
16042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16043 | ||
16044 | eval "gcc_cv_have_decl_$ac_func=no" | |
086ec9eb | 16045 | fi |
bec39cab | 16046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
086ec9eb MK |
16047 | fi |
16048 | ||
16049 | if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then | |
bec39cab AC |
16050 | echo "$as_me:$LINENO: result: yes" >&5 |
16051 | echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF | |
086ec9eb | 16052 | #define $ac_tr_decl 1 |
bec39cab AC |
16053 | _ACEOF |
16054 | ||
086ec9eb | 16055 | else |
bec39cab AC |
16056 | echo "$as_me:$LINENO: result: no" >&5 |
16057 | echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF | |
086ec9eb | 16058 | #define $ac_tr_decl 0 |
bec39cab AC |
16059 | _ACEOF |
16060 | ||
086ec9eb MK |
16061 | : ${gdb_cv_func_ptrace_ret='int'} |
16062 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
16063 | ||
16064 | fi | |
16065 | ||
16066 | done | |
16067 | if test x = y ; then | |
bec39cab AC |
16068 | |
16069 | cat >>confdefs.h <<\_ACEOF | |
086ec9eb | 16070 | #define HAVE_DECL_PTRACE 1 |
bec39cab | 16071 | _ACEOF |
086ec9eb MK |
16072 | fi |
16073 | ||
16074 | # Check return type. | |
bec39cab AC |
16075 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
16076 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
16077 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then | |
16078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16079 | else | |
16080 | cat >conftest.$ac_ext <<_ACEOF | |
16081 | /* confdefs.h. */ | |
16082 | _ACEOF | |
16083 | cat confdefs.h >>conftest.$ac_ext | |
16084 | cat >>conftest.$ac_ext <<_ACEOF | |
16085 | /* end confdefs.h. */ | |
086ec9eb | 16086 | $gdb_ptrace_headers |
bec39cab AC |
16087 | int |
16088 | main () | |
16089 | { | |
5885ab49 | 16090 | extern int ptrace (); |
bec39cab AC |
16091 | ; |
16092 | return 0; | |
16093 | } | |
16094 | _ACEOF | |
16095 | rm -f conftest.$ac_objext | |
16096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16097 | (eval $ac_compile) 2>conftest.er1 | |
16098 | ac_status=$? | |
16099 | grep -v '^ *+' conftest.er1 >conftest.err | |
16100 | rm -f conftest.er1 | |
16101 | cat conftest.err >&5 | |
16102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16103 | (exit $ac_status); } && | |
16104 | { ac_try='test -z "$ac_c_werror_flag" | |
16105 | || test ! -s conftest.err' | |
16106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16107 | (eval $ac_try) 2>&5 | |
16108 | ac_status=$? | |
16109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16110 | (exit $ac_status); }; } && | |
16111 | { ac_try='test -s conftest.$ac_objext' | |
16112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16113 | (eval $ac_try) 2>&5 | |
16114 | ac_status=$? | |
16115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16116 | (exit $ac_status); }; }; then | |
5885ab49 | 16117 | gdb_cv_func_ptrace_ret='int' |
086ec9eb | 16118 | else |
bec39cab AC |
16119 | echo "$as_me: failed program was:" >&5 |
16120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16121 | ||
16122 | gdb_cv_func_ptrace_ret='long' | |
086ec9eb | 16123 | fi |
bec39cab | 16124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
086ec9eb | 16125 | fi |
bec39cab AC |
16126 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
16127 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
086ec9eb | 16128 | |
bec39cab | 16129 | cat >>confdefs.h <<_ACEOF |
086ec9eb | 16130 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret |
bec39cab | 16131 | _ACEOF |
086ec9eb MK |
16132 | |
16133 | # Check argument types. | |
bec39cab AC |
16134 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
16135 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
16136 | if test "${gdb_cv_func_ptrace_args+set}" = set; then | |
16137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
086ec9eb | 16138 | else |
bec39cab | 16139 | |
086ec9eb MK |
16140 | for gdb_arg1 in 'int' 'long'; do |
16141 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
16142 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
16143 | for gdb_arg4 in 'int' 'long'; do | |
bec39cab AC |
16144 | cat >conftest.$ac_ext <<_ACEOF |
16145 | /* confdefs.h. */ | |
16146 | _ACEOF | |
16147 | cat confdefs.h >>conftest.$ac_ext | |
16148 | cat >>conftest.$ac_ext <<_ACEOF | |
16149 | /* end confdefs.h. */ | |
086ec9eb | 16150 | $gdb_ptrace_headers |
bec39cab AC |
16151 | int |
16152 | main () | |
16153 | { | |
086ec9eb MK |
16154 | |
16155 | extern $gdb_cv_func_ptrace_ret | |
16156 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
16157 | ||
bec39cab AC |
16158 | ; |
16159 | return 0; | |
16160 | } | |
16161 | _ACEOF | |
16162 | rm -f conftest.$ac_objext | |
16163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16164 | (eval $ac_compile) 2>conftest.er1 | |
16165 | ac_status=$? | |
16166 | grep -v '^ *+' conftest.er1 >conftest.err | |
16167 | rm -f conftest.er1 | |
16168 | cat conftest.err >&5 | |
16169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16170 | (exit $ac_status); } && | |
16171 | { ac_try='test -z "$ac_c_werror_flag" | |
16172 | || test ! -s conftest.err' | |
16173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16174 | (eval $ac_try) 2>&5 | |
16175 | ac_status=$? | |
16176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16177 | (exit $ac_status); }; } && | |
16178 | { ac_try='test -s conftest.$ac_objext' | |
16179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16180 | (eval $ac_try) 2>&5 | |
16181 | ac_status=$? | |
16182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16183 | (exit $ac_status); }; }; then | |
086ec9eb MK |
16184 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
16185 | break 4; | |
16186 | else | |
bec39cab AC |
16187 | echo "$as_me: failed program was:" >&5 |
16188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16189 | ||
086ec9eb | 16190 | fi |
bec39cab | 16191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
086ec9eb | 16192 | for gdb_arg5 in 'int *' 'int' 'long'; do |
bec39cab AC |
16193 | cat >conftest.$ac_ext <<_ACEOF |
16194 | /* confdefs.h. */ | |
16195 | _ACEOF | |
16196 | cat confdefs.h >>conftest.$ac_ext | |
16197 | cat >>conftest.$ac_ext <<_ACEOF | |
16198 | /* end confdefs.h. */ | |
086ec9eb | 16199 | $gdb_ptrace_headers |
bec39cab AC |
16200 | int |
16201 | main () | |
16202 | { | |
086ec9eb MK |
16203 | |
16204 | extern $gdb_cv_func_ptrace_ret | |
16205 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
16206 | ||
bec39cab AC |
16207 | ; |
16208 | return 0; | |
16209 | } | |
16210 | _ACEOF | |
16211 | rm -f conftest.$ac_objext | |
16212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16213 | (eval $ac_compile) 2>conftest.er1 | |
16214 | ac_status=$? | |
16215 | grep -v '^ *+' conftest.er1 >conftest.err | |
16216 | rm -f conftest.er1 | |
16217 | cat conftest.err >&5 | |
16218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16219 | (exit $ac_status); } && | |
16220 | { ac_try='test -z "$ac_c_werror_flag" | |
16221 | || test ! -s conftest.err' | |
16222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16223 | (eval $ac_try) 2>&5 | |
16224 | ac_status=$? | |
16225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16226 | (exit $ac_status); }; } && | |
16227 | { ac_try='test -s conftest.$ac_objext' | |
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 | |
16233 | ||
086ec9eb MK |
16234 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; |
16235 | break 5; | |
16236 | else | |
bec39cab AC |
16237 | echo "$as_me: failed program was:" >&5 |
16238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16239 | ||
086ec9eb | 16240 | fi |
bec39cab | 16241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
086ec9eb MK |
16242 | done |
16243 | done | |
16244 | done | |
16245 | done | |
16246 | done | |
16247 | # Provide a safe default value. | |
16248 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
16249 | ||
16250 | fi | |
bec39cab AC |
16251 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
16252 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
086ec9eb MK |
16253 | ac_save_IFS=$IFS; IFS=',' |
16254 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
16255 | IFS=$ac_save_IFS | |
16256 | shift | |
bec39cab AC |
16257 | |
16258 | cat >>confdefs.h <<_ACEOF | |
64218d3e | 16259 | #define PTRACE_TYPE_ARG3 $3 |
bec39cab | 16260 | _ACEOF |
086ec9eb MK |
16261 | |
16262 | if test -n "$5"; then | |
bec39cab AC |
16263 | |
16264 | cat >>confdefs.h <<_ACEOF | |
64218d3e | 16265 | #define PTRACE_TYPE_ARG5 $5 |
bec39cab | 16266 | _ACEOF |
086ec9eb MK |
16267 | |
16268 | fi | |
16269 | ||
97bf5e38 | 16270 | if test "$cross_compiling" = no; then |
bec39cab AC |
16271 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
16272 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
16273 | if test "${ac_cv_func_setpgrp_void+set}" = set; then | |
16274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
16275 | else |
16276 | if test "$cross_compiling" = yes; then | |
bec39cab AC |
16277 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
16278 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
16279 | { (exit 1); exit 1; }; } | |
16280 | else | |
16281 | cat >conftest.$ac_ext <<_ACEOF | |
16282 | /* confdefs.h. */ | |
16283 | _ACEOF | |
16284 | cat confdefs.h >>conftest.$ac_ext | |
16285 | cat >>conftest.$ac_ext <<_ACEOF | |
16286 | /* end confdefs.h. */ | |
16287 | #if HAVE_UNISTD_H | |
16288 | # include <unistd.h> | |
c906108c | 16289 | #endif |
97bf5e38 | 16290 | |
bec39cab AC |
16291 | int |
16292 | main () | |
97bf5e38 | 16293 | { |
bec39cab AC |
16294 | /* If this system has a BSD-style setpgrp which takes arguments, |
16295 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
16296 | exit successfully. */ | |
16297 | exit (setpgrp (1,1) == -1 ? 0 : 1); | |
16298 | ; | |
16299 | return 0; | |
97bf5e38 | 16300 | } |
bec39cab AC |
16301 | _ACEOF |
16302 | rm -f conftest$ac_exeext | |
16303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16304 | (eval $ac_link) 2>&5 | |
16305 | ac_status=$? | |
16306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16309 | (eval $ac_try) 2>&5 | |
16310 | ac_status=$? | |
16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16312 | (exit $ac_status); }; }; then | |
97bf5e38 | 16313 | ac_cv_func_setpgrp_void=no |
c906108c | 16314 | else |
bec39cab AC |
16315 | echo "$as_me: program exited with status $ac_status" >&5 |
16316 | echo "$as_me: failed program was:" >&5 | |
16317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16318 | ||
16319 | ( exit $ac_status ) | |
16320 | ac_cv_func_setpgrp_void=yes | |
c906108c | 16321 | fi |
bec39cab | 16322 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 16323 | fi |
97bf5e38 | 16324 | fi |
bec39cab AC |
16325 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
16326 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
97bf5e38 | 16327 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab AC |
16328 | |
16329 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 16330 | #define SETPGRP_VOID 1 |
bec39cab | 16331 | _ACEOF |
c906108c SS |
16332 | |
16333 | fi | |
16334 | ||
97bf5e38 | 16335 | else |
bec39cab AC |
16336 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
16337 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
16338 | if test "${ac_cv_func_setpgrp_void+set}" = set; then | |
16339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b83266a0 | 16340 | else |
bec39cab AC |
16341 | cat >conftest.$ac_ext <<_ACEOF |
16342 | /* confdefs.h. */ | |
16343 | _ACEOF | |
16344 | cat confdefs.h >>conftest.$ac_ext | |
16345 | cat >>conftest.$ac_ext <<_ACEOF | |
16346 | /* end confdefs.h. */ | |
b83266a0 | 16347 | |
b83266a0 | 16348 | #include <unistd.h> |
97bf5e38 | 16349 | |
bec39cab AC |
16350 | int |
16351 | main () | |
16352 | { | |
97bf5e38 MK |
16353 | |
16354 | if (setpgrp(1,1) == -1) | |
16355 | exit (0); | |
16356 | else | |
16357 | exit (1); | |
16358 | ||
bec39cab AC |
16359 | ; |
16360 | return 0; | |
16361 | } | |
16362 | _ACEOF | |
16363 | rm -f conftest.$ac_objext | |
16364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16365 | (eval $ac_compile) 2>conftest.er1 | |
16366 | ac_status=$? | |
16367 | grep -v '^ *+' conftest.er1 >conftest.err | |
16368 | rm -f conftest.er1 | |
16369 | cat conftest.err >&5 | |
16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16371 | (exit $ac_status); } && | |
16372 | { ac_try='test -z "$ac_c_werror_flag" | |
16373 | || test ! -s conftest.err' | |
16374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16375 | (eval $ac_try) 2>&5 | |
16376 | ac_status=$? | |
16377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16378 | (exit $ac_status); }; } && | |
16379 | { ac_try='test -s conftest.$ac_objext' | |
16380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16381 | (eval $ac_try) 2>&5 | |
16382 | ac_status=$? | |
16383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16384 | (exit $ac_status); }; }; then | |
97bf5e38 | 16385 | ac_cv_func_setpgrp_void=no |
b83266a0 | 16386 | else |
bec39cab AC |
16387 | echo "$as_me: failed program was:" >&5 |
16388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16389 | ||
16390 | ac_cv_func_setpgrp_void=yes | |
b83266a0 | 16391 | fi |
bec39cab | 16392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b83266a0 | 16393 | fi |
bec39cab AC |
16394 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
16395 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
97bf5e38 | 16396 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 16397 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16398 | #define SETPGRP_VOID 1 |
bec39cab | 16399 | _ACEOF |
b83266a0 | 16400 | |
97bf5e38 | 16401 | fi |
b83266a0 SS |
16402 | fi |
16403 | ||
97bf5e38 MK |
16404 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
16405 | # since sigsetjmp might only be defined as a macro. | |
bec39cab AC |
16406 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
16407 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
16408 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then | |
16409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16410 | else | |
16411 | cat >conftest.$ac_ext <<_ACEOF | |
16412 | /* confdefs.h. */ | |
16413 | _ACEOF | |
16414 | cat confdefs.h >>conftest.$ac_ext | |
16415 | cat >>conftest.$ac_ext <<_ACEOF | |
16416 | /* end confdefs.h. */ | |
a4db0f07 | 16417 | |
97bf5e38 MK |
16418 | #include <setjmp.h> |
16419 | ||
bec39cab AC |
16420 | int |
16421 | main () | |
16422 | { | |
97bf5e38 | 16423 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
16424 | ; |
16425 | return 0; | |
16426 | } | |
16427 | _ACEOF | |
16428 | rm -f conftest.$ac_objext | |
16429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16430 | (eval $ac_compile) 2>conftest.er1 | |
16431 | ac_status=$? | |
16432 | grep -v '^ *+' conftest.er1 >conftest.err | |
16433 | rm -f conftest.er1 | |
16434 | cat conftest.err >&5 | |
16435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16436 | (exit $ac_status); } && | |
16437 | { ac_try='test -z "$ac_c_werror_flag" | |
16438 | || test ! -s conftest.err' | |
16439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16440 | (eval $ac_try) 2>&5 | |
16441 | ac_status=$? | |
16442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16443 | (exit $ac_status); }; } && | |
16444 | { ac_try='test -s conftest.$ac_objext' | |
16445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16446 | (eval $ac_try) 2>&5 | |
16447 | ac_status=$? | |
16448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16449 | (exit $ac_status); }; }; then | |
97bf5e38 | 16450 | gdb_cv_func_sigsetjmp=yes |
a4db0f07 | 16451 | else |
bec39cab AC |
16452 | echo "$as_me: failed program was:" >&5 |
16453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16454 | ||
16455 | gdb_cv_func_sigsetjmp=no | |
a4db0f07 | 16456 | fi |
bec39cab | 16457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a4db0f07 | 16458 | fi |
bec39cab AC |
16459 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
16460 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
97bf5e38 | 16461 | if test $gdb_cv_func_sigsetjmp = yes; then |
bec39cab AC |
16462 | |
16463 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 16464 | #define HAVE_SIGSETJMP 1 |
bec39cab | 16465 | _ACEOF |
a4db0f07 RH |
16466 | |
16467 | fi | |
c906108c | 16468 | |
06825bd1 MK |
16469 | # Assume we'll default to using the included libiberty regex. |
16470 | gdb_use_included_regex=yes | |
16471 | ||
16472 | # However, if the system regex is GNU regex, then default to *not* | |
16473 | # using the included regex. | |
bec39cab AC |
16474 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
16475 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
16476 | if test "${gdb_cv_have_gnu_regex+set}" = set; then | |
16477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16478 | else | |
16479 | cat >conftest.$ac_ext <<_ACEOF | |
16480 | /* confdefs.h. */ | |
16481 | _ACEOF | |
16482 | cat confdefs.h >>conftest.$ac_ext | |
16483 | cat >>conftest.$ac_ext <<_ACEOF | |
16484 | /* end confdefs.h. */ | |
06825bd1 | 16485 | #include <gnu-versions.h> |
bec39cab AC |
16486 | int |
16487 | main () | |
16488 | { | |
06825bd1 MK |
16489 | #define REGEX_INTERFACE_VERSION 1 |
16490 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
16491 | # error "Version mismatch" | |
16492 | #endif | |
bec39cab AC |
16493 | ; |
16494 | return 0; | |
16495 | } | |
16496 | _ACEOF | |
16497 | rm -f conftest.$ac_objext | |
16498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16499 | (eval $ac_compile) 2>conftest.er1 | |
16500 | ac_status=$? | |
16501 | grep -v '^ *+' conftest.er1 >conftest.err | |
16502 | rm -f conftest.er1 | |
16503 | cat conftest.err >&5 | |
16504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16505 | (exit $ac_status); } && | |
16506 | { ac_try='test -z "$ac_c_werror_flag" | |
16507 | || test ! -s conftest.err' | |
16508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16509 | (eval $ac_try) 2>&5 | |
16510 | ac_status=$? | |
16511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16512 | (exit $ac_status); }; } && | |
16513 | { ac_try='test -s conftest.$ac_objext' | |
16514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16515 | (eval $ac_try) 2>&5 | |
16516 | ac_status=$? | |
16517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16518 | (exit $ac_status); }; }; then | |
06825bd1 MK |
16519 | gdb_cv_have_gnu_regex=yes |
16520 | else | |
bec39cab AC |
16521 | echo "$as_me: failed program was:" >&5 |
16522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16523 | ||
16524 | gdb_cv_have_gnu_regex=no | |
06825bd1 | 16525 | fi |
bec39cab | 16526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 16527 | fi |
bec39cab AC |
16528 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
16529 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
06825bd1 MK |
16530 | if test $gdb_cv_have_gnu_regex = yes; then |
16531 | gdb_use_included_regex=no | |
16532 | fi | |
16533 | ||
bec39cab | 16534 | |
06825bd1 MK |
16535 | # Check whether --with-included-regex or --without-included-regex was given. |
16536 | if test "${with_included_regex+set}" = set; then | |
16537 | withval="$with_included_regex" | |
16538 | gdb_with_regex=$withval | |
16539 | else | |
16540 | gdb_with_regex=$gdb_use_included_regex | |
bec39cab | 16541 | fi; |
06825bd1 | 16542 | if test "$gdb_with_regex" = yes; then |
bec39cab AC |
16543 | |
16544 | cat >>confdefs.h <<\_ACEOF | |
06825bd1 | 16545 | #define USE_INCLUDED_REGEX 1 |
bec39cab | 16546 | _ACEOF |
06825bd1 MK |
16547 | |
16548 | fi | |
16549 | ||
70f9f479 | 16550 | # See if <sys/proc.h> defines `struct thread' with a td_pcb member. |
bec39cab AC |
16551 | echo "$as_me:$LINENO: checking for td_pcb in struct thread" >&5 |
16552 | echo $ECHO_N "checking for td_pcb in struct thread... $ECHO_C" >&6 | |
16553 | if test "${gdb_cv_struct_thread_td_pcb+set}" = set; then | |
16554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16555 | else | |
16556 | cat >conftest.$ac_ext <<_ACEOF | |
16557 | /* confdefs.h. */ | |
16558 | _ACEOF | |
16559 | cat confdefs.h >>conftest.$ac_ext | |
16560 | cat >>conftest.$ac_ext <<_ACEOF | |
16561 | /* end confdefs.h. */ | |
d15be926 | 16562 | #include <sys/param.h> |
70f9f479 | 16563 | #include <sys/proc.h> |
bec39cab AC |
16564 | int |
16565 | main () | |
16566 | { | |
70f9f479 | 16567 | struct thread td; td.td_pcb; |
bec39cab AC |
16568 | ; |
16569 | return 0; | |
16570 | } | |
16571 | _ACEOF | |
16572 | rm -f conftest.$ac_objext | |
16573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16574 | (eval $ac_compile) 2>conftest.er1 | |
16575 | ac_status=$? | |
16576 | grep -v '^ *+' conftest.er1 >conftest.err | |
16577 | rm -f conftest.er1 | |
16578 | cat conftest.err >&5 | |
16579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16580 | (exit $ac_status); } && | |
16581 | { ac_try='test -z "$ac_c_werror_flag" | |
16582 | || test ! -s conftest.err' | |
16583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16584 | (eval $ac_try) 2>&5 | |
16585 | ac_status=$? | |
16586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16587 | (exit $ac_status); }; } && | |
16588 | { ac_try='test -s conftest.$ac_objext' | |
16589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16590 | (eval $ac_try) 2>&5 | |
16591 | ac_status=$? | |
16592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16593 | (exit $ac_status); }; }; then | |
70f9f479 MK |
16594 | gdb_cv_struct_thread_td_pcb=yes |
16595 | else | |
bec39cab AC |
16596 | echo "$as_me: failed program was:" >&5 |
16597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16598 | ||
16599 | gdb_cv_struct_thread_td_pcb=no | |
70f9f479 | 16600 | fi |
bec39cab | 16601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 16602 | fi |
bec39cab AC |
16603 | echo "$as_me:$LINENO: result: $gdb_cv_struct_thread_td_pcb" >&5 |
16604 | echo "${ECHO_T}$gdb_cv_struct_thread_td_pcb" >&6 | |
70f9f479 | 16605 | if test $gdb_cv_struct_thread_td_pcb = yes; then |
bec39cab AC |
16606 | |
16607 | cat >>confdefs.h <<\_ACEOF | |
70f9f479 | 16608 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 16609 | _ACEOF |
70f9f479 MK |
16610 | |
16611 | fi | |
16612 | ||
5c7f2947 | 16613 | # See if <sys/lwp.h> defines `struct lwp`. |
bec39cab AC |
16614 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
16615 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
16616 | if test "${gdb_cv_struct_lwp+set}" = set; then | |
16617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16618 | else | |
16619 | cat >conftest.$ac_ext <<_ACEOF | |
16620 | /* confdefs.h. */ | |
16621 | _ACEOF | |
16622 | cat confdefs.h >>conftest.$ac_ext | |
16623 | cat >>conftest.$ac_ext <<_ACEOF | |
16624 | /* end confdefs.h. */ | |
5c7f2947 MK |
16625 | #include <sys/param.h> |
16626 | #include <sys/lwp.h> | |
bec39cab AC |
16627 | int |
16628 | main () | |
16629 | { | |
5c7f2947 | 16630 | struct lwp l; |
bec39cab AC |
16631 | ; |
16632 | return 0; | |
16633 | } | |
16634 | _ACEOF | |
16635 | rm -f conftest.$ac_objext | |
16636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16637 | (eval $ac_compile) 2>conftest.er1 | |
16638 | ac_status=$? | |
16639 | grep -v '^ *+' conftest.er1 >conftest.err | |
16640 | rm -f conftest.er1 | |
16641 | cat conftest.err >&5 | |
16642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16643 | (exit $ac_status); } && | |
16644 | { ac_try='test -z "$ac_c_werror_flag" | |
16645 | || test ! -s conftest.err' | |
16646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16647 | (eval $ac_try) 2>&5 | |
16648 | ac_status=$? | |
16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16650 | (exit $ac_status); }; } && | |
16651 | { ac_try='test -s conftest.$ac_objext' | |
16652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16653 | (eval $ac_try) 2>&5 | |
16654 | ac_status=$? | |
16655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16656 | (exit $ac_status); }; }; then | |
5c7f2947 MK |
16657 | gdb_cv_struct_lwp=yes |
16658 | else | |
bec39cab AC |
16659 | echo "$as_me: failed program was:" >&5 |
16660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16661 | ||
16662 | gdb_cv_struct_lwp=no | |
5c7f2947 | 16663 | fi |
bec39cab | 16664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5c7f2947 | 16665 | fi |
bec39cab AC |
16666 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
16667 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
5c7f2947 | 16668 | if test $gdb_cv_struct_lwp = yes; then |
bec39cab AC |
16669 | |
16670 | cat >>confdefs.h <<\_ACEOF | |
5c7f2947 | 16671 | #define HAVE_STRUCT_LWP 1 |
bec39cab | 16672 | _ACEOF |
5c7f2947 MK |
16673 | |
16674 | fi | |
16675 | ||
78434e59 | 16676 | # See if <machine/reg.h> degines `struct reg'. |
bec39cab AC |
16677 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
16678 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
16679 | if test "${gdb_cv_struct_reg+set}" = set; then | |
16680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16681 | else | |
16682 | cat >conftest.$ac_ext <<_ACEOF | |
16683 | /* confdefs.h. */ | |
16684 | _ACEOF | |
16685 | cat confdefs.h >>conftest.$ac_ext | |
16686 | cat >>conftest.$ac_ext <<_ACEOF | |
16687 | /* end confdefs.h. */ | |
78434e59 MK |
16688 | #include <sys/types.h> |
16689 | #include <machine/reg.h> | |
bec39cab AC |
16690 | int |
16691 | main () | |
16692 | { | |
78434e59 | 16693 | struct reg r; |
bec39cab AC |
16694 | ; |
16695 | return 0; | |
16696 | } | |
16697 | _ACEOF | |
16698 | rm -f conftest.$ac_objext | |
16699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16700 | (eval $ac_compile) 2>conftest.er1 | |
16701 | ac_status=$? | |
16702 | grep -v '^ *+' conftest.er1 >conftest.err | |
16703 | rm -f conftest.er1 | |
16704 | cat conftest.err >&5 | |
16705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16706 | (exit $ac_status); } && | |
16707 | { ac_try='test -z "$ac_c_werror_flag" | |
16708 | || test ! -s conftest.err' | |
16709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16710 | (eval $ac_try) 2>&5 | |
16711 | ac_status=$? | |
16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16713 | (exit $ac_status); }; } && | |
16714 | { ac_try='test -s conftest.$ac_objext' | |
16715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16716 | (eval $ac_try) 2>&5 | |
16717 | ac_status=$? | |
16718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16719 | (exit $ac_status); }; }; then | |
78434e59 MK |
16720 | gdb_cv_struct_reg=yes |
16721 | else | |
bec39cab AC |
16722 | echo "$as_me: failed program was:" >&5 |
16723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16724 | ||
16725 | gdb_cv_struct_reg=no | |
78434e59 | 16726 | fi |
bec39cab | 16727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
78434e59 | 16728 | fi |
bec39cab AC |
16729 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
16730 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
78434e59 | 16731 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
16732 | |
16733 | cat >>confdefs.h <<\_ACEOF | |
78434e59 | 16734 | #define HAVE_STRUCT_REG 1 |
bec39cab | 16735 | _ACEOF |
78434e59 MK |
16736 | |
16737 | fi | |
16738 | ||
97bf5e38 MK |
16739 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
16740 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
bec39cab AC |
16741 | echo "$as_me:$LINENO: checking for r_fs in struct reg" >&5 |
16742 | echo $ECHO_N "checking for r_fs in struct reg... $ECHO_C" >&6 | |
16743 | if test "${gdb_cv_struct_reg_r_fs+set}" = set; then | |
16744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16745 | else | |
16746 | cat >conftest.$ac_ext <<_ACEOF | |
16747 | /* confdefs.h. */ | |
16748 | _ACEOF | |
16749 | cat confdefs.h >>conftest.$ac_ext | |
16750 | cat >>conftest.$ac_ext <<_ACEOF | |
16751 | /* end confdefs.h. */ | |
97bf5e38 | 16752 | #include <machine/reg.h> |
bec39cab AC |
16753 | int |
16754 | main () | |
16755 | { | |
97bf5e38 | 16756 | struct reg r; r.r_fs; |
bec39cab AC |
16757 | ; |
16758 | return 0; | |
16759 | } | |
16760 | _ACEOF | |
16761 | rm -f conftest.$ac_objext | |
16762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16763 | (eval $ac_compile) 2>conftest.er1 | |
16764 | ac_status=$? | |
16765 | grep -v '^ *+' conftest.er1 >conftest.err | |
16766 | rm -f conftest.er1 | |
16767 | cat conftest.err >&5 | |
16768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16769 | (exit $ac_status); } && | |
16770 | { ac_try='test -z "$ac_c_werror_flag" | |
16771 | || test ! -s conftest.err' | |
16772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16773 | (eval $ac_try) 2>&5 | |
16774 | ac_status=$? | |
16775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16776 | (exit $ac_status); }; } && | |
16777 | { ac_try='test -s conftest.$ac_objext' | |
16778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16779 | (eval $ac_try) 2>&5 | |
16780 | ac_status=$? | |
16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16782 | (exit $ac_status); }; }; then | |
97bf5e38 | 16783 | gdb_cv_struct_reg_r_fs=yes |
c906108c | 16784 | else |
bec39cab AC |
16785 | echo "$as_me: failed program was:" >&5 |
16786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16787 | ||
16788 | gdb_cv_struct_reg_r_fs=no | |
c906108c | 16789 | fi |
bec39cab | 16790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 16791 | fi |
bec39cab AC |
16792 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_fs" >&5 |
16793 | echo "${ECHO_T}$gdb_cv_struct_reg_r_fs" >&6 | |
97bf5e38 | 16794 | if test $gdb_cv_struct_reg_r_fs = yes; then |
bec39cab | 16795 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16796 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 16797 | _ACEOF |
97bf5e38 MK |
16798 | |
16799 | fi | |
bec39cab AC |
16800 | echo "$as_me:$LINENO: checking for r_gs in struct reg" >&5 |
16801 | echo $ECHO_N "checking for r_gs in struct reg... $ECHO_C" >&6 | |
16802 | if test "${gdb_cv_struct_reg_r_gs+set}" = set; then | |
16803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 16804 | else |
bec39cab AC |
16805 | cat >conftest.$ac_ext <<_ACEOF |
16806 | /* confdefs.h. */ | |
16807 | _ACEOF | |
16808 | cat confdefs.h >>conftest.$ac_ext | |
16809 | cat >>conftest.$ac_ext <<_ACEOF | |
16810 | /* end confdefs.h. */ | |
97bf5e38 | 16811 | #include <machine/reg.h> |
bec39cab AC |
16812 | int |
16813 | main () | |
16814 | { | |
97bf5e38 | 16815 | struct reg r; r.r_gs; |
bec39cab AC |
16816 | ; |
16817 | return 0; | |
16818 | } | |
16819 | _ACEOF | |
16820 | rm -f conftest.$ac_objext | |
16821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16822 | (eval $ac_compile) 2>conftest.er1 | |
16823 | ac_status=$? | |
16824 | grep -v '^ *+' conftest.er1 >conftest.err | |
16825 | rm -f conftest.er1 | |
16826 | cat conftest.err >&5 | |
16827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16828 | (exit $ac_status); } && | |
16829 | { ac_try='test -z "$ac_c_werror_flag" | |
16830 | || test ! -s conftest.err' | |
16831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16832 | (eval $ac_try) 2>&5 | |
16833 | ac_status=$? | |
16834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16835 | (exit $ac_status); }; } && | |
16836 | { ac_try='test -s conftest.$ac_objext' | |
16837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16838 | (eval $ac_try) 2>&5 | |
16839 | ac_status=$? | |
16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16841 | (exit $ac_status); }; }; then | |
97bf5e38 | 16842 | gdb_cv_struct_reg_r_gs=yes |
c906108c | 16843 | else |
bec39cab AC |
16844 | echo "$as_me: failed program was:" >&5 |
16845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16846 | ||
16847 | gdb_cv_struct_reg_r_gs=no | |
c906108c | 16848 | fi |
bec39cab | 16849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16850 | fi |
bec39cab AC |
16851 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_gs" >&5 |
16852 | echo "${ECHO_T}$gdb_cv_struct_reg_r_gs" >&6 | |
97bf5e38 | 16853 | if test $gdb_cv_struct_reg_r_gs = yes; then |
bec39cab | 16854 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16855 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 16856 | _ACEOF |
c3f6f71d | 16857 | |
c906108c SS |
16858 | fi |
16859 | ||
97bf5e38 | 16860 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
bec39cab AC |
16861 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
16862 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
16863 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then | |
16864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16865 | else | |
16866 | cat >conftest.$ac_ext <<_ACEOF | |
16867 | /* confdefs.h. */ | |
16868 | _ACEOF | |
16869 | cat confdefs.h >>conftest.$ac_ext | |
16870 | cat >>conftest.$ac_ext <<_ACEOF | |
16871 | /* end confdefs.h. */ | |
97bf5e38 | 16872 | #include <sys/ptrace.h> |
bec39cab AC |
16873 | int |
16874 | main () | |
16875 | { | |
97bf5e38 | 16876 | PTRACE_GETREGS; |
bec39cab AC |
16877 | ; |
16878 | return 0; | |
16879 | } | |
16880 | _ACEOF | |
16881 | rm -f conftest.$ac_objext | |
16882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16883 | (eval $ac_compile) 2>conftest.er1 | |
16884 | ac_status=$? | |
16885 | grep -v '^ *+' conftest.er1 >conftest.err | |
16886 | rm -f conftest.er1 | |
16887 | cat conftest.err >&5 | |
16888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16889 | (exit $ac_status); } && | |
16890 | { ac_try='test -z "$ac_c_werror_flag" | |
16891 | || test ! -s conftest.err' | |
16892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16893 | (eval $ac_try) 2>&5 | |
16894 | ac_status=$? | |
16895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16896 | (exit $ac_status); }; } && | |
16897 | { ac_try='test -s conftest.$ac_objext' | |
16898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16899 | (eval $ac_try) 2>&5 | |
16900 | ac_status=$? | |
16901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16902 | (exit $ac_status); }; }; then | |
97bf5e38 | 16903 | gdb_cv_have_ptrace_getregs=yes |
c906108c | 16904 | else |
bec39cab AC |
16905 | echo "$as_me: failed program was:" >&5 |
16906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16907 | ||
16908 | gdb_cv_have_ptrace_getregs=no | |
c906108c | 16909 | fi |
bec39cab | 16910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
16911 | fi |
16912 | ||
bec39cab AC |
16913 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
16914 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
97bf5e38 | 16915 | if test $gdb_cv_have_ptrace_getregs = yes; then |
bec39cab | 16916 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16917 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 16918 | _ACEOF |
c906108c | 16919 | |
97bf5e38 | 16920 | fi |
c906108c | 16921 | |
97bf5e38 | 16922 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
bec39cab AC |
16923 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
16924 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
16925 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then | |
16926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16927 | else | |
16928 | cat >conftest.$ac_ext <<_ACEOF | |
16929 | /* confdefs.h. */ | |
16930 | _ACEOF | |
16931 | cat confdefs.h >>conftest.$ac_ext | |
16932 | cat >>conftest.$ac_ext <<_ACEOF | |
16933 | /* end confdefs.h. */ | |
97bf5e38 | 16934 | #include <sys/ptrace.h> |
bec39cab AC |
16935 | int |
16936 | main () | |
16937 | { | |
97bf5e38 | 16938 | PTRACE_GETFPXREGS; |
bec39cab AC |
16939 | ; |
16940 | return 0; | |
16941 | } | |
16942 | _ACEOF | |
16943 | rm -f conftest.$ac_objext | |
16944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16945 | (eval $ac_compile) 2>conftest.er1 | |
16946 | ac_status=$? | |
16947 | grep -v '^ *+' conftest.er1 >conftest.err | |
16948 | rm -f conftest.er1 | |
16949 | cat conftest.err >&5 | |
16950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16951 | (exit $ac_status); } && | |
16952 | { ac_try='test -z "$ac_c_werror_flag" | |
16953 | || test ! -s conftest.err' | |
16954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16955 | (eval $ac_try) 2>&5 | |
16956 | ac_status=$? | |
16957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16958 | (exit $ac_status); }; } && | |
16959 | { ac_try='test -s conftest.$ac_objext' | |
16960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16961 | (eval $ac_try) 2>&5 | |
16962 | ac_status=$? | |
16963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16964 | (exit $ac_status); }; }; then | |
97bf5e38 | 16965 | gdb_cv_have_ptrace_getfpxregs=yes |
c906108c | 16966 | else |
bec39cab AC |
16967 | echo "$as_me: failed program was:" >&5 |
16968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16969 | ||
16970 | gdb_cv_have_ptrace_getfpxregs=no | |
c906108c | 16971 | fi |
bec39cab | 16972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
16973 | fi |
16974 | ||
bec39cab AC |
16975 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
16976 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
97bf5e38 | 16977 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
bec39cab | 16978 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16979 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 16980 | _ACEOF |
c906108c | 16981 | |
97bf5e38 | 16982 | fi |
c906108c | 16983 | |
97bf5e38 | 16984 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
bec39cab AC |
16985 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
16986 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
16987 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then | |
16988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16989 | else | |
16990 | cat >conftest.$ac_ext <<_ACEOF | |
16991 | /* confdefs.h. */ | |
16992 | _ACEOF | |
16993 | cat confdefs.h >>conftest.$ac_ext | |
16994 | cat >>conftest.$ac_ext <<_ACEOF | |
16995 | /* end confdefs.h. */ | |
97bf5e38 MK |
16996 | #include <sys/types.h> |
16997 | #include <sys/ptrace.h> | |
bec39cab AC |
16998 | int |
16999 | main () | |
17000 | { | |
97bf5e38 | 17001 | PT_GETDBREGS; |
bec39cab AC |
17002 | ; |
17003 | return 0; | |
17004 | } | |
17005 | _ACEOF | |
17006 | rm -f conftest.$ac_objext | |
17007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17008 | (eval $ac_compile) 2>conftest.er1 | |
17009 | ac_status=$? | |
17010 | grep -v '^ *+' conftest.er1 >conftest.err | |
17011 | rm -f conftest.er1 | |
17012 | cat conftest.err >&5 | |
17013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17014 | (exit $ac_status); } && | |
17015 | { ac_try='test -z "$ac_c_werror_flag" | |
17016 | || test ! -s conftest.err' | |
17017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17018 | (eval $ac_try) 2>&5 | |
17019 | ac_status=$? | |
17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17021 | (exit $ac_status); }; } && | |
17022 | { ac_try='test -s conftest.$ac_objext' | |
17023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17024 | (eval $ac_try) 2>&5 | |
17025 | ac_status=$? | |
17026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17027 | (exit $ac_status); }; }; then | |
97bf5e38 | 17028 | gdb_cv_have_pt_getdbregs=yes |
c906108c | 17029 | else |
bec39cab AC |
17030 | echo "$as_me: failed program was:" >&5 |
17031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17032 | ||
17033 | gdb_cv_have_pt_getdbregs=no | |
c906108c | 17034 | fi |
bec39cab | 17035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
17036 | fi |
17037 | ||
bec39cab AC |
17038 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
17039 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
97bf5e38 | 17040 | if test $gdb_cv_have_pt_getdbregs = yes; then |
bec39cab | 17041 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17042 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 17043 | _ACEOF |
c906108c | 17044 | |
97bf5e38 | 17045 | fi |
c906108c | 17046 | |
97bf5e38 | 17047 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
bec39cab AC |
17048 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
17049 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
17050 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then | |
17051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17052 | else | |
17053 | cat >conftest.$ac_ext <<_ACEOF | |
17054 | /* confdefs.h. */ | |
17055 | _ACEOF | |
17056 | cat confdefs.h >>conftest.$ac_ext | |
17057 | cat >>conftest.$ac_ext <<_ACEOF | |
17058 | /* end confdefs.h. */ | |
97bf5e38 MK |
17059 | #include <sys/types.h> |
17060 | #include <sys/ptrace.h> | |
bec39cab AC |
17061 | int |
17062 | main () | |
17063 | { | |
97bf5e38 | 17064 | PT_GETXMMREGS; |
bec39cab AC |
17065 | ; |
17066 | return 0; | |
17067 | } | |
17068 | _ACEOF | |
17069 | rm -f conftest.$ac_objext | |
17070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17071 | (eval $ac_compile) 2>conftest.er1 | |
17072 | ac_status=$? | |
17073 | grep -v '^ *+' conftest.er1 >conftest.err | |
17074 | rm -f conftest.er1 | |
17075 | cat conftest.err >&5 | |
17076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17077 | (exit $ac_status); } && | |
17078 | { ac_try='test -z "$ac_c_werror_flag" | |
17079 | || test ! -s conftest.err' | |
17080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17081 | (eval $ac_try) 2>&5 | |
17082 | ac_status=$? | |
17083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17084 | (exit $ac_status); }; } && | |
17085 | { ac_try='test -s conftest.$ac_objext' | |
17086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17087 | (eval $ac_try) 2>&5 | |
17088 | ac_status=$? | |
17089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17090 | (exit $ac_status); }; }; then | |
97bf5e38 | 17091 | gdb_cv_have_pt_getxmmregs=yes |
c906108c | 17092 | else |
bec39cab AC |
17093 | echo "$as_me: failed program was:" >&5 |
17094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17095 | ||
17096 | gdb_cv_have_pt_getxmmregs=no | |
c906108c | 17097 | fi |
bec39cab | 17098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
17099 | fi |
17100 | ||
bec39cab AC |
17101 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
17102 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
97bf5e38 | 17103 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
bec39cab | 17104 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17105 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 17106 | _ACEOF |
c906108c | 17107 | |
97bf5e38 | 17108 | fi |
c906108c | 17109 | |
27ca5dad | 17110 | # See if stdint.h provides the uintptr_t type. |
d3e0a5bf | 17111 | # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this. |
bec39cab AC |
17112 | echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5 |
17113 | echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6 | |
17114 | if test "${gdb_cv_have_uintptr_t+set}" = set; then | |
17115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17116 | else | |
17117 | cat >conftest.$ac_ext <<_ACEOF | |
17118 | /* confdefs.h. */ | |
17119 | _ACEOF | |
17120 | cat confdefs.h >>conftest.$ac_ext | |
17121 | cat >>conftest.$ac_ext <<_ACEOF | |
17122 | /* end confdefs.h. */ | |
27ca5dad | 17123 | #include <stdint.h> |
bec39cab AC |
17124 | int |
17125 | main () | |
17126 | { | |
27ca5dad | 17127 | uintptr_t foo = 0; |
bec39cab AC |
17128 | ; |
17129 | return 0; | |
17130 | } | |
17131 | _ACEOF | |
17132 | rm -f conftest.$ac_objext | |
17133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17134 | (eval $ac_compile) 2>conftest.er1 | |
17135 | ac_status=$? | |
17136 | grep -v '^ *+' conftest.er1 >conftest.err | |
17137 | rm -f conftest.er1 | |
17138 | cat conftest.err >&5 | |
17139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17140 | (exit $ac_status); } && | |
17141 | { ac_try='test -z "$ac_c_werror_flag" | |
17142 | || test ! -s conftest.err' | |
17143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17144 | (eval $ac_try) 2>&5 | |
17145 | ac_status=$? | |
17146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17147 | (exit $ac_status); }; } && | |
17148 | { ac_try='test -s conftest.$ac_objext' | |
17149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17150 | (eval $ac_try) 2>&5 | |
17151 | ac_status=$? | |
17152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17153 | (exit $ac_status); }; }; then | |
27ca5dad MC |
17154 | gdb_cv_have_uintptr_t=yes |
17155 | else | |
bec39cab AC |
17156 | echo "$as_me: failed program was:" >&5 |
17157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17158 | ||
17159 | gdb_cv_have_uintptr_t=no | |
27ca5dad | 17160 | fi |
bec39cab | 17161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 17162 | fi |
bec39cab AC |
17163 | echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5 |
17164 | echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6 | |
27ca5dad | 17165 | if test $gdb_cv_have_uintptr_t = yes; then |
bec39cab AC |
17166 | |
17167 | cat >>confdefs.h <<\_ACEOF | |
27ca5dad | 17168 | #define HAVE_UINTPTR_T 1 |
bec39cab | 17169 | _ACEOF |
27ca5dad MC |
17170 | |
17171 | fi | |
97bf5e38 | 17172 | |
bec39cab AC |
17173 | echo "$as_me:$LINENO: checking whether malloc must be declared" >&5 |
17174 | echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6 | |
17175 | if test "${bfd_cv_decl_needed_malloc+set}" = set; then | |
17176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3862412b | 17177 | else |
bec39cab AC |
17178 | cat >conftest.$ac_ext <<_ACEOF |
17179 | /* confdefs.h. */ | |
17180 | _ACEOF | |
17181 | cat confdefs.h >>conftest.$ac_ext | |
17182 | cat >>conftest.$ac_ext <<_ACEOF | |
17183 | /* end confdefs.h. */ | |
e17bf198 | 17184 | |
97bf5e38 MK |
17185 | #include <stdio.h> |
17186 | #ifdef HAVE_STRING_H | |
17187 | #include <string.h> | |
17188 | #else | |
17189 | #ifdef HAVE_STRINGS_H | |
17190 | #include <strings.h> | |
17191 | #endif | |
17192 | #endif | |
17193 | #ifdef HAVE_STDLIB_H | |
17194 | #include <stdlib.h> | |
17195 | #endif | |
17196 | #ifdef HAVE_UNISTD_H | |
17197 | #include <unistd.h> | |
17198 | #endif | |
bec39cab AC |
17199 | int |
17200 | main () | |
17201 | { | |
97bf5e38 | 17202 | char *(*pfn) = (char *(*)) malloc |
bec39cab AC |
17203 | ; |
17204 | return 0; | |
17205 | } | |
17206 | _ACEOF | |
17207 | rm -f conftest.$ac_objext | |
17208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17209 | (eval $ac_compile) 2>conftest.er1 | |
17210 | ac_status=$? | |
17211 | grep -v '^ *+' conftest.er1 >conftest.err | |
17212 | rm -f conftest.er1 | |
17213 | cat conftest.err >&5 | |
17214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17215 | (exit $ac_status); } && | |
17216 | { ac_try='test -z "$ac_c_werror_flag" | |
17217 | || test ! -s conftest.err' | |
17218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17219 | (eval $ac_try) 2>&5 | |
17220 | ac_status=$? | |
17221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17222 | (exit $ac_status); }; } && | |
17223 | { ac_try='test -s conftest.$ac_objext' | |
17224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17225 | (eval $ac_try) 2>&5 | |
17226 | ac_status=$? | |
17227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17228 | (exit $ac_status); }; }; then | |
97bf5e38 | 17229 | bfd_cv_decl_needed_malloc=no |
3862412b | 17230 | else |
bec39cab AC |
17231 | echo "$as_me: failed program was:" >&5 |
17232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17233 | ||
17234 | bfd_cv_decl_needed_malloc=yes | |
3862412b | 17235 | fi |
bec39cab | 17236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17237 | fi |
17238 | ||
bec39cab AC |
17239 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5 |
17240 | echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6 | |
97bf5e38 | 17241 | if test $bfd_cv_decl_needed_malloc = yes; then |
bec39cab AC |
17242 | |
17243 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17244 | #define NEED_DECLARATION_MALLOC 1 |
bec39cab | 17245 | _ACEOF |
3862412b | 17246 | |
97bf5e38 | 17247 | fi |
3862412b | 17248 | |
bec39cab AC |
17249 | echo "$as_me:$LINENO: checking whether realloc must be declared" >&5 |
17250 | echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6 | |
17251 | if test "${bfd_cv_decl_needed_realloc+set}" = set; then | |
17252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3862412b | 17253 | else |
bec39cab AC |
17254 | cat >conftest.$ac_ext <<_ACEOF |
17255 | /* confdefs.h. */ | |
17256 | _ACEOF | |
17257 | cat confdefs.h >>conftest.$ac_ext | |
17258 | cat >>conftest.$ac_ext <<_ACEOF | |
17259 | /* end confdefs.h. */ | |
e17bf198 | 17260 | |
97bf5e38 MK |
17261 | #include <stdio.h> |
17262 | #ifdef HAVE_STRING_H | |
17263 | #include <string.h> | |
17264 | #else | |
17265 | #ifdef HAVE_STRINGS_H | |
17266 | #include <strings.h> | |
17267 | #endif | |
17268 | #endif | |
17269 | #ifdef HAVE_STDLIB_H | |
17270 | #include <stdlib.h> | |
17271 | #endif | |
17272 | #ifdef HAVE_UNISTD_H | |
17273 | #include <unistd.h> | |
17274 | #endif | |
bec39cab AC |
17275 | int |
17276 | main () | |
17277 | { | |
97bf5e38 | 17278 | char *(*pfn) = (char *(*)) realloc |
bec39cab AC |
17279 | ; |
17280 | return 0; | |
17281 | } | |
17282 | _ACEOF | |
17283 | rm -f conftest.$ac_objext | |
17284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17285 | (eval $ac_compile) 2>conftest.er1 | |
17286 | ac_status=$? | |
17287 | grep -v '^ *+' conftest.er1 >conftest.err | |
17288 | rm -f conftest.er1 | |
17289 | cat conftest.err >&5 | |
17290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17291 | (exit $ac_status); } && | |
17292 | { ac_try='test -z "$ac_c_werror_flag" | |
17293 | || test ! -s conftest.err' | |
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); }; } && | |
17299 | { ac_try='test -s conftest.$ac_objext' | |
17300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17301 | (eval $ac_try) 2>&5 | |
17302 | ac_status=$? | |
17303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17304 | (exit $ac_status); }; }; then | |
97bf5e38 | 17305 | bfd_cv_decl_needed_realloc=no |
3862412b | 17306 | else |
bec39cab AC |
17307 | echo "$as_me: failed program was:" >&5 |
17308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17309 | ||
17310 | bfd_cv_decl_needed_realloc=yes | |
3862412b | 17311 | fi |
bec39cab | 17312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17313 | fi |
17314 | ||
bec39cab AC |
17315 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5 |
17316 | echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6 | |
97bf5e38 | 17317 | if test $bfd_cv_decl_needed_realloc = yes; then |
bec39cab AC |
17318 | |
17319 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17320 | #define NEED_DECLARATION_REALLOC 1 |
bec39cab | 17321 | _ACEOF |
3862412b | 17322 | |
97bf5e38 | 17323 | fi |
3862412b | 17324 | |
bec39cab AC |
17325 | echo "$as_me:$LINENO: checking whether free must be declared" >&5 |
17326 | echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6 | |
17327 | if test "${bfd_cv_decl_needed_free+set}" = set; then | |
17328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
451928c5 | 17329 | else |
bec39cab AC |
17330 | cat >conftest.$ac_ext <<_ACEOF |
17331 | /* confdefs.h. */ | |
17332 | _ACEOF | |
17333 | cat confdefs.h >>conftest.$ac_ext | |
17334 | cat >>conftest.$ac_ext <<_ACEOF | |
17335 | /* end confdefs.h. */ | |
e17bf198 | 17336 | |
97bf5e38 MK |
17337 | #include <stdio.h> |
17338 | #ifdef HAVE_STRING_H | |
17339 | #include <string.h> | |
17340 | #else | |
17341 | #ifdef HAVE_STRINGS_H | |
17342 | #include <strings.h> | |
17343 | #endif | |
17344 | #endif | |
17345 | #ifdef HAVE_STDLIB_H | |
17346 | #include <stdlib.h> | |
17347 | #endif | |
17348 | #ifdef HAVE_UNISTD_H | |
17349 | #include <unistd.h> | |
17350 | #endif | |
bec39cab AC |
17351 | int |
17352 | main () | |
17353 | { | |
97bf5e38 | 17354 | char *(*pfn) = (char *(*)) free |
bec39cab AC |
17355 | ; |
17356 | return 0; | |
17357 | } | |
17358 | _ACEOF | |
17359 | rm -f conftest.$ac_objext | |
17360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17361 | (eval $ac_compile) 2>conftest.er1 | |
17362 | ac_status=$? | |
17363 | grep -v '^ *+' conftest.er1 >conftest.err | |
17364 | rm -f conftest.er1 | |
17365 | cat conftest.err >&5 | |
17366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17367 | (exit $ac_status); } && | |
17368 | { ac_try='test -z "$ac_c_werror_flag" | |
17369 | || test ! -s conftest.err' | |
17370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17371 | (eval $ac_try) 2>&5 | |
17372 | ac_status=$? | |
17373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17374 | (exit $ac_status); }; } && | |
17375 | { ac_try='test -s conftest.$ac_objext' | |
17376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17377 | (eval $ac_try) 2>&5 | |
17378 | ac_status=$? | |
17379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17380 | (exit $ac_status); }; }; then | |
97bf5e38 | 17381 | bfd_cv_decl_needed_free=no |
451928c5 | 17382 | else |
bec39cab AC |
17383 | echo "$as_me: failed program was:" >&5 |
17384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17385 | ||
17386 | bfd_cv_decl_needed_free=yes | |
451928c5 | 17387 | fi |
bec39cab | 17388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17389 | fi |
17390 | ||
bec39cab AC |
17391 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5 |
17392 | echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6 | |
97bf5e38 | 17393 | if test $bfd_cv_decl_needed_free = yes; then |
bec39cab AC |
17394 | |
17395 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17396 | #define NEED_DECLARATION_FREE 1 |
bec39cab | 17397 | _ACEOF |
451928c5 | 17398 | |
97bf5e38 | 17399 | fi |
451928c5 | 17400 | |
bec39cab AC |
17401 | echo "$as_me:$LINENO: checking whether strerror must be declared" >&5 |
17402 | echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6 | |
17403 | if test "${bfd_cv_decl_needed_strerror+set}" = set; then | |
17404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
451928c5 | 17405 | else |
bec39cab AC |
17406 | cat >conftest.$ac_ext <<_ACEOF |
17407 | /* confdefs.h. */ | |
17408 | _ACEOF | |
17409 | cat confdefs.h >>conftest.$ac_ext | |
17410 | cat >>conftest.$ac_ext <<_ACEOF | |
17411 | /* end confdefs.h. */ | |
e17bf198 | 17412 | |
97bf5e38 MK |
17413 | #include <stdio.h> |
17414 | #ifdef HAVE_STRING_H | |
17415 | #include <string.h> | |
17416 | #else | |
17417 | #ifdef HAVE_STRINGS_H | |
17418 | #include <strings.h> | |
17419 | #endif | |
17420 | #endif | |
17421 | #ifdef HAVE_STDLIB_H | |
17422 | #include <stdlib.h> | |
17423 | #endif | |
17424 | #ifdef HAVE_UNISTD_H | |
17425 | #include <unistd.h> | |
17426 | #endif | |
bec39cab AC |
17427 | int |
17428 | main () | |
17429 | { | |
97bf5e38 | 17430 | char *(*pfn) = (char *(*)) strerror |
bec39cab AC |
17431 | ; |
17432 | return 0; | |
17433 | } | |
17434 | _ACEOF | |
17435 | rm -f conftest.$ac_objext | |
17436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17437 | (eval $ac_compile) 2>conftest.er1 | |
17438 | ac_status=$? | |
17439 | grep -v '^ *+' conftest.er1 >conftest.err | |
17440 | rm -f conftest.er1 | |
17441 | cat conftest.err >&5 | |
17442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17443 | (exit $ac_status); } && | |
17444 | { ac_try='test -z "$ac_c_werror_flag" | |
17445 | || test ! -s conftest.err' | |
17446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17447 | (eval $ac_try) 2>&5 | |
17448 | ac_status=$? | |
17449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17450 | (exit $ac_status); }; } && | |
17451 | { ac_try='test -s conftest.$ac_objext' | |
17452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17453 | (eval $ac_try) 2>&5 | |
17454 | ac_status=$? | |
17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17456 | (exit $ac_status); }; }; then | |
97bf5e38 | 17457 | bfd_cv_decl_needed_strerror=no |
451928c5 | 17458 | else |
bec39cab AC |
17459 | echo "$as_me: failed program was:" >&5 |
17460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17461 | ||
17462 | bfd_cv_decl_needed_strerror=yes | |
451928c5 | 17463 | fi |
bec39cab | 17464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17465 | fi |
17466 | ||
bec39cab AC |
17467 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5 |
17468 | echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6 | |
97bf5e38 | 17469 | if test $bfd_cv_decl_needed_strerror = yes; then |
bec39cab AC |
17470 | |
17471 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17472 | #define NEED_DECLARATION_STRERROR 1 |
bec39cab | 17473 | _ACEOF |
451928c5 | 17474 | |
97bf5e38 | 17475 | fi |
451928c5 | 17476 | |
bec39cab AC |
17477 | echo "$as_me:$LINENO: checking whether strdup must be declared" >&5 |
17478 | echo $ECHO_N "checking whether strdup must be declared... $ECHO_C" >&6 | |
17479 | if test "${bfd_cv_decl_needed_strdup+set}" = set; then | |
17480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3862412b | 17481 | else |
bec39cab AC |
17482 | cat >conftest.$ac_ext <<_ACEOF |
17483 | /* confdefs.h. */ | |
17484 | _ACEOF | |
17485 | cat confdefs.h >>conftest.$ac_ext | |
17486 | cat >>conftest.$ac_ext <<_ACEOF | |
17487 | /* end confdefs.h. */ | |
e17bf198 | 17488 | |
97bf5e38 MK |
17489 | #include <stdio.h> |
17490 | #ifdef HAVE_STRING_H | |
17491 | #include <string.h> | |
17492 | #else | |
17493 | #ifdef HAVE_STRINGS_H | |
17494 | #include <strings.h> | |
17495 | #endif | |
17496 | #endif | |
17497 | #ifdef HAVE_STDLIB_H | |
17498 | #include <stdlib.h> | |
17499 | #endif | |
17500 | #ifdef HAVE_UNISTD_H | |
17501 | #include <unistd.h> | |
17502 | #endif | |
bec39cab AC |
17503 | int |
17504 | main () | |
17505 | { | |
97bf5e38 | 17506 | char *(*pfn) = (char *(*)) strdup |
bec39cab AC |
17507 | ; |
17508 | return 0; | |
17509 | } | |
17510 | _ACEOF | |
17511 | rm -f conftest.$ac_objext | |
17512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17513 | (eval $ac_compile) 2>conftest.er1 | |
17514 | ac_status=$? | |
17515 | grep -v '^ *+' conftest.er1 >conftest.err | |
17516 | rm -f conftest.er1 | |
17517 | cat conftest.err >&5 | |
17518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17519 | (exit $ac_status); } && | |
17520 | { ac_try='test -z "$ac_c_werror_flag" | |
17521 | || test ! -s conftest.err' | |
17522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17523 | (eval $ac_try) 2>&5 | |
17524 | ac_status=$? | |
17525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17526 | (exit $ac_status); }; } && | |
17527 | { ac_try='test -s conftest.$ac_objext' | |
17528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17529 | (eval $ac_try) 2>&5 | |
17530 | ac_status=$? | |
17531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17532 | (exit $ac_status); }; }; then | |
97bf5e38 | 17533 | bfd_cv_decl_needed_strdup=no |
3862412b | 17534 | else |
bec39cab AC |
17535 | echo "$as_me: failed program was:" >&5 |
17536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17537 | ||
17538 | bfd_cv_decl_needed_strdup=yes | |
3862412b | 17539 | fi |
bec39cab | 17540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17541 | fi |
17542 | ||
bec39cab AC |
17543 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strdup" >&5 |
17544 | echo "${ECHO_T}$bfd_cv_decl_needed_strdup" >&6 | |
97bf5e38 | 17545 | if test $bfd_cv_decl_needed_strdup = yes; then |
bec39cab AC |
17546 | |
17547 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17548 | #define NEED_DECLARATION_STRDUP 1 |
bec39cab | 17549 | _ACEOF |
3862412b | 17550 | |
97bf5e38 | 17551 | fi |
3862412b | 17552 | |
bec39cab AC |
17553 | echo "$as_me:$LINENO: checking whether strstr must be declared" >&5 |
17554 | echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6 | |
17555 | if test "${bfd_cv_decl_needed_strstr+set}" = set; then | |
17556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3862412b | 17557 | else |
bec39cab AC |
17558 | cat >conftest.$ac_ext <<_ACEOF |
17559 | /* confdefs.h. */ | |
17560 | _ACEOF | |
17561 | cat confdefs.h >>conftest.$ac_ext | |
17562 | cat >>conftest.$ac_ext <<_ACEOF | |
17563 | /* end confdefs.h. */ | |
e17bf198 | 17564 | |
97bf5e38 MK |
17565 | #include <stdio.h> |
17566 | #ifdef HAVE_STRING_H | |
17567 | #include <string.h> | |
17568 | #else | |
17569 | #ifdef HAVE_STRINGS_H | |
17570 | #include <strings.h> | |
17571 | #endif | |
17572 | #endif | |
17573 | #ifdef HAVE_STDLIB_H | |
17574 | #include <stdlib.h> | |
17575 | #endif | |
17576 | #ifdef HAVE_UNISTD_H | |
17577 | #include <unistd.h> | |
17578 | #endif | |
bec39cab AC |
17579 | int |
17580 | main () | |
17581 | { | |
97bf5e38 | 17582 | char *(*pfn) = (char *(*)) strstr |
bec39cab AC |
17583 | ; |
17584 | return 0; | |
17585 | } | |
17586 | _ACEOF | |
17587 | rm -f conftest.$ac_objext | |
17588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17589 | (eval $ac_compile) 2>conftest.er1 | |
17590 | ac_status=$? | |
17591 | grep -v '^ *+' conftest.er1 >conftest.err | |
17592 | rm -f conftest.er1 | |
17593 | cat conftest.err >&5 | |
17594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17595 | (exit $ac_status); } && | |
17596 | { ac_try='test -z "$ac_c_werror_flag" | |
17597 | || test ! -s conftest.err' | |
17598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17599 | (eval $ac_try) 2>&5 | |
17600 | ac_status=$? | |
17601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17602 | (exit $ac_status); }; } && | |
17603 | { ac_try='test -s conftest.$ac_objext' | |
17604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17605 | (eval $ac_try) 2>&5 | |
17606 | ac_status=$? | |
17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17608 | (exit $ac_status); }; }; then | |
97bf5e38 | 17609 | bfd_cv_decl_needed_strstr=no |
3862412b | 17610 | else |
bec39cab AC |
17611 | echo "$as_me: failed program was:" >&5 |
17612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17613 | ||
17614 | bfd_cv_decl_needed_strstr=yes | |
3862412b | 17615 | fi |
bec39cab | 17616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17617 | fi |
17618 | ||
bec39cab AC |
17619 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5 |
17620 | echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6 | |
97bf5e38 | 17621 | if test $bfd_cv_decl_needed_strstr = yes; then |
bec39cab AC |
17622 | |
17623 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17624 | #define NEED_DECLARATION_STRSTR 1 |
bec39cab | 17625 | _ACEOF |
3862412b | 17626 | |
97bf5e38 | 17627 | fi |
3862412b | 17628 | |
bec39cab AC |
17629 | echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5 |
17630 | echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6 | |
17631 | if test "${bfd_cv_decl_needed_canonicalize_file_name+set}" = set; then | |
17632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17633 | else |
bec39cab AC |
17634 | cat >conftest.$ac_ext <<_ACEOF |
17635 | /* confdefs.h. */ | |
17636 | _ACEOF | |
17637 | cat confdefs.h >>conftest.$ac_ext | |
17638 | cat >>conftest.$ac_ext <<_ACEOF | |
17639 | /* end confdefs.h. */ | |
596c9d4b | 17640 | |
97bf5e38 MK |
17641 | #include <stdio.h> |
17642 | #ifdef HAVE_STRING_H | |
17643 | #include <string.h> | |
17644 | #else | |
17645 | #ifdef HAVE_STRINGS_H | |
17646 | #include <strings.h> | |
17647 | #endif | |
17648 | #endif | |
17649 | #ifdef HAVE_STDLIB_H | |
17650 | #include <stdlib.h> | |
17651 | #endif | |
17652 | #ifdef HAVE_UNISTD_H | |
17653 | #include <unistd.h> | |
17654 | #endif | |
bec39cab AC |
17655 | int |
17656 | main () | |
17657 | { | |
97bf5e38 | 17658 | char *(*pfn) = (char *(*)) canonicalize_file_name |
bec39cab AC |
17659 | ; |
17660 | return 0; | |
17661 | } | |
17662 | _ACEOF | |
17663 | rm -f conftest.$ac_objext | |
17664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17665 | (eval $ac_compile) 2>conftest.er1 | |
17666 | ac_status=$? | |
17667 | grep -v '^ *+' conftest.er1 >conftest.err | |
17668 | rm -f conftest.er1 | |
17669 | cat conftest.err >&5 | |
17670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17671 | (exit $ac_status); } && | |
17672 | { ac_try='test -z "$ac_c_werror_flag" | |
17673 | || test ! -s conftest.err' | |
17674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17675 | (eval $ac_try) 2>&5 | |
17676 | ac_status=$? | |
17677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17678 | (exit $ac_status); }; } && | |
17679 | { ac_try='test -s conftest.$ac_objext' | |
17680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17681 | (eval $ac_try) 2>&5 | |
17682 | ac_status=$? | |
17683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17684 | (exit $ac_status); }; }; then | |
97bf5e38 | 17685 | bfd_cv_decl_needed_canonicalize_file_name=no |
596c9d4b | 17686 | else |
bec39cab AC |
17687 | echo "$as_me: failed program was:" >&5 |
17688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17689 | ||
17690 | bfd_cv_decl_needed_canonicalize_file_name=yes | |
596c9d4b | 17691 | fi |
bec39cab | 17692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17693 | fi |
17694 | ||
bec39cab AC |
17695 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_canonicalize_file_name" >&5 |
17696 | echo "${ECHO_T}$bfd_cv_decl_needed_canonicalize_file_name" >&6 | |
97bf5e38 | 17697 | if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then |
bec39cab AC |
17698 | |
17699 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17700 | #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 |
bec39cab | 17701 | _ACEOF |
596c9d4b | 17702 | |
97bf5e38 | 17703 | fi |
596c9d4b | 17704 | |
97bf5e38 | 17705 | |
bec39cab AC |
17706 | # The following save_state_t checkery is only necessary for HPUX |
17707 | # versions earlier than 10.20. When those fade from memory, this | |
97bf5e38 MK |
17708 | # could be expunged. --jsm 1999-03-22 |
17709 | ||
bec39cab AC |
17710 | echo "$as_me:$LINENO: checking for HPUX save_state structure" >&5 |
17711 | echo $ECHO_N "checking for HPUX save_state structure... $ECHO_C" >&6 | |
17712 | cat >conftest.$ac_ext <<_ACEOF | |
17713 | /* confdefs.h. */ | |
17714 | _ACEOF | |
17715 | cat confdefs.h >>conftest.$ac_ext | |
17716 | cat >>conftest.$ac_ext <<_ACEOF | |
17717 | /* end confdefs.h. */ | |
97bf5e38 | 17718 | #include <machine/save_state.h> |
bec39cab AC |
17719 | |
17720 | _ACEOF | |
97bf5e38 | 17721 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 17722 | $EGREP "save_state_t" >/dev/null 2>&1; then |
97bf5e38 MK |
17723 | gdb_cv_hpux_savestate=yes |
17724 | else | |
97bf5e38 MK |
17725 | gdb_cv_hpux_savestate=no |
17726 | fi | |
17727 | rm -f conftest* | |
17728 | ||
bec39cab AC |
17729 | cat >conftest.$ac_ext <<_ACEOF |
17730 | /* confdefs.h. */ | |
17731 | _ACEOF | |
17732 | cat confdefs.h >>conftest.$ac_ext | |
17733 | cat >>conftest.$ac_ext <<_ACEOF | |
17734 | /* end confdefs.h. */ | |
97bf5e38 | 17735 | #include <machine/save_state.h> |
bec39cab AC |
17736 | |
17737 | _ACEOF | |
97bf5e38 | 17738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 17739 | $EGREP "ss_wide" >/dev/null 2>&1; then |
97bf5e38 MK |
17740 | gdb_cv_hpux_sswide=yes |
17741 | else | |
97bf5e38 MK |
17742 | gdb_cv_hpux_sswide=no |
17743 | fi | |
17744 | rm -f conftest* | |
17745 | ||
17746 | if test $gdb_cv_hpux_savestate = yes | |
17747 | then | |
bec39cab | 17748 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17749 | #define HAVE_STRUCT_SAVE_STATE_T 1 |
bec39cab | 17750 | _ACEOF |
97bf5e38 MK |
17751 | |
17752 | fi | |
17753 | if test $gdb_cv_hpux_sswide = yes | |
17754 | then | |
bec39cab | 17755 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17756 | #define HAVE_STRUCT_MEMBER_SS_WIDE 1 |
bec39cab | 17757 | _ACEOF |
97bf5e38 MK |
17758 | |
17759 | fi | |
bec39cab AC |
17760 | echo "$as_me:$LINENO: result: $gdb_cv_hpux_sswide" >&5 |
17761 | echo "${ECHO_T}$gdb_cv_hpux_sswide" >&6 | |
97bf5e38 MK |
17762 | |
17763 | ||
17764 | # If we are configured native on GNU/Linux, work around problems with | |
17765 | # sys/procfs.h | |
17766 | # Also detect which type of /proc is in use, such as for Unixware or Solaris. | |
17767 | ||
17768 | if test "${target}" = "${host}"; then | |
17769 | case "${host}" in | |
17770 | i[3456]86-*-linux*) | |
bec39cab | 17771 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17772 | #define START_INFERIOR_TRAPS_EXPECTED 2 |
bec39cab | 17773 | _ACEOF |
97bf5e38 | 17774 | |
bec39cab | 17775 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17776 | #define sys_quotactl 1 |
bec39cab | 17777 | _ACEOF |
97bf5e38 MK |
17778 | |
17779 | ;; | |
17780 | ia64-*-aix*) | |
bec39cab | 17781 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17782 | #define NEW_PROC_API 1 |
bec39cab | 17783 | _ACEOF |
97bf5e38 MK |
17784 | |
17785 | ;; | |
17786 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) | |
bec39cab | 17787 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17788 | #define NEW_PROC_API 1 |
bec39cab | 17789 | _ACEOF |
97bf5e38 MK |
17790 | |
17791 | ;; | |
0bbc026e | 17792 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
bec39cab | 17793 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17794 | #define NEW_PROC_API 1 |
bec39cab | 17795 | _ACEOF |
c960c18f AC |
17796 | |
17797 | ;; | |
17798 | mips-sgi-irix5*) | |
17799 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
bec39cab | 17800 | cat >>confdefs.h <<\_ACEOF |
c960c18f | 17801 | #define _KMEMUSER 1 |
bec39cab | 17802 | _ACEOF |
97bf5e38 MK |
17803 | |
17804 | ;; | |
17805 | esac | |
17806 | fi | |
17807 | ||
17808 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
bec39cab AC |
17809 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
17810 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
17811 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
17812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17813 | else | |
17814 | cat >conftest.$ac_ext <<_ACEOF | |
17815 | /* confdefs.h. */ | |
17816 | _ACEOF | |
17817 | cat confdefs.h >>conftest.$ac_ext | |
17818 | cat >>conftest.$ac_ext <<_ACEOF | |
17819 | /* end confdefs.h. */ | |
596c9d4b KB |
17820 | |
17821 | #define _SYSCALL32 | |
17822 | #include <sys/procfs.h> | |
bec39cab AC |
17823 | int |
17824 | main () | |
17825 | { | |
97bf5e38 | 17826 | pstatus_t avar |
bec39cab AC |
17827 | ; |
17828 | return 0; | |
17829 | } | |
17830 | _ACEOF | |
17831 | rm -f conftest.$ac_objext | |
17832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17833 | (eval $ac_compile) 2>conftest.er1 | |
17834 | ac_status=$? | |
17835 | grep -v '^ *+' conftest.er1 >conftest.err | |
17836 | rm -f conftest.er1 | |
17837 | cat conftest.err >&5 | |
17838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17839 | (exit $ac_status); } && | |
17840 | { ac_try='test -z "$ac_c_werror_flag" | |
17841 | || test ! -s conftest.err' | |
17842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17843 | (eval $ac_try) 2>&5 | |
17844 | ac_status=$? | |
17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17846 | (exit $ac_status); }; } && | |
17847 | { ac_try='test -s conftest.$ac_objext' | |
17848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17849 | (eval $ac_try) 2>&5 | |
17850 | ac_status=$? | |
17851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17852 | (exit $ac_status); }; }; then | |
97bf5e38 | 17853 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 17854 | else |
bec39cab AC |
17855 | echo "$as_me: failed program was:" >&5 |
17856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17857 | ||
17858 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
17859 | ||
596c9d4b | 17860 | fi |
bec39cab | 17861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17862 | fi |
17863 | ||
97bf5e38 | 17864 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
17865 | |
17866 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17867 | #define HAVE_PSTATUS_T 1 |
bec39cab | 17868 | _ACEOF |
596c9d4b KB |
17869 | |
17870 | fi | |
bec39cab AC |
17871 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
17872 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 17873 | |
bec39cab AC |
17874 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
17875 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
17876 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then | |
17877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17878 | else |
bec39cab AC |
17879 | cat >conftest.$ac_ext <<_ACEOF |
17880 | /* confdefs.h. */ | |
17881 | _ACEOF | |
17882 | cat confdefs.h >>conftest.$ac_ext | |
17883 | cat >>conftest.$ac_ext <<_ACEOF | |
17884 | /* end confdefs.h. */ | |
596c9d4b KB |
17885 | |
17886 | #define _SYSCALL32 | |
17887 | #include <sys/procfs.h> | |
bec39cab AC |
17888 | int |
17889 | main () | |
17890 | { | |
97bf5e38 | 17891 | prrun_t avar |
bec39cab AC |
17892 | ; |
17893 | return 0; | |
17894 | } | |
17895 | _ACEOF | |
17896 | rm -f conftest.$ac_objext | |
17897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17898 | (eval $ac_compile) 2>conftest.er1 | |
17899 | ac_status=$? | |
17900 | grep -v '^ *+' conftest.er1 >conftest.err | |
17901 | rm -f conftest.er1 | |
17902 | cat conftest.err >&5 | |
17903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17904 | (exit $ac_status); } && | |
17905 | { ac_try='test -z "$ac_c_werror_flag" | |
17906 | || test ! -s conftest.err' | |
17907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17908 | (eval $ac_try) 2>&5 | |
17909 | ac_status=$? | |
17910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17911 | (exit $ac_status); }; } && | |
17912 | { ac_try='test -s conftest.$ac_objext' | |
17913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17914 | (eval $ac_try) 2>&5 | |
17915 | ac_status=$? | |
17916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17917 | (exit $ac_status); }; }; then | |
97bf5e38 | 17918 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 17919 | else |
bec39cab AC |
17920 | echo "$as_me: failed program was:" >&5 |
17921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17922 | ||
17923 | bfd_cv_have_sys_procfs_type_prrun_t=no | |
17924 | ||
596c9d4b | 17925 | fi |
bec39cab | 17926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17927 | fi |
17928 | ||
97bf5e38 | 17929 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
17930 | |
17931 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17932 | #define HAVE_PRRUN_T 1 |
bec39cab | 17933 | _ACEOF |
596c9d4b KB |
17934 | |
17935 | fi | |
bec39cab AC |
17936 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
17937 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 17938 | |
bec39cab AC |
17939 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
17940 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
17941 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then | |
17942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17943 | else |
bec39cab AC |
17944 | cat >conftest.$ac_ext <<_ACEOF |
17945 | /* confdefs.h. */ | |
17946 | _ACEOF | |
17947 | cat confdefs.h >>conftest.$ac_ext | |
17948 | cat >>conftest.$ac_ext <<_ACEOF | |
17949 | /* end confdefs.h. */ | |
596c9d4b KB |
17950 | |
17951 | #define _SYSCALL32 | |
17952 | #include <sys/procfs.h> | |
bec39cab AC |
17953 | int |
17954 | main () | |
17955 | { | |
97bf5e38 | 17956 | gregset_t avar |
bec39cab AC |
17957 | ; |
17958 | return 0; | |
17959 | } | |
17960 | _ACEOF | |
17961 | rm -f conftest.$ac_objext | |
17962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17963 | (eval $ac_compile) 2>conftest.er1 | |
17964 | ac_status=$? | |
17965 | grep -v '^ *+' conftest.er1 >conftest.err | |
17966 | rm -f conftest.er1 | |
17967 | cat conftest.err >&5 | |
17968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17969 | (exit $ac_status); } && | |
17970 | { ac_try='test -z "$ac_c_werror_flag" | |
17971 | || test ! -s conftest.err' | |
17972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17973 | (eval $ac_try) 2>&5 | |
17974 | ac_status=$? | |
17975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17976 | (exit $ac_status); }; } && | |
17977 | { ac_try='test -s conftest.$ac_objext' | |
17978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17979 | (eval $ac_try) 2>&5 | |
17980 | ac_status=$? | |
17981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17982 | (exit $ac_status); }; }; then | |
97bf5e38 | 17983 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 17984 | else |
bec39cab AC |
17985 | echo "$as_me: failed program was:" >&5 |
17986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17987 | ||
17988 | bfd_cv_have_sys_procfs_type_gregset_t=no | |
17989 | ||
596c9d4b | 17990 | fi |
bec39cab | 17991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17992 | fi |
17993 | ||
97bf5e38 | 17994 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
17995 | |
17996 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17997 | #define HAVE_GREGSET_T 1 |
bec39cab | 17998 | _ACEOF |
596c9d4b KB |
17999 | |
18000 | fi | |
bec39cab AC |
18001 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
18002 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 18003 | |
bec39cab AC |
18004 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
18005 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
18006 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then | |
18007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 18008 | else |
bec39cab AC |
18009 | cat >conftest.$ac_ext <<_ACEOF |
18010 | /* confdefs.h. */ | |
18011 | _ACEOF | |
18012 | cat confdefs.h >>conftest.$ac_ext | |
18013 | cat >>conftest.$ac_ext <<_ACEOF | |
18014 | /* end confdefs.h. */ | |
97bf5e38 MK |
18015 | |
18016 | #define _SYSCALL32 | |
d84dd0c5 | 18017 | #include <sys/procfs.h> |
bec39cab AC |
18018 | int |
18019 | main () | |
18020 | { | |
97bf5e38 | 18021 | fpregset_t avar |
bec39cab AC |
18022 | ; |
18023 | return 0; | |
18024 | } | |
18025 | _ACEOF | |
18026 | rm -f conftest.$ac_objext | |
18027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18028 | (eval $ac_compile) 2>conftest.er1 | |
18029 | ac_status=$? | |
18030 | grep -v '^ *+' conftest.er1 >conftest.err | |
18031 | rm -f conftest.er1 | |
18032 | cat conftest.err >&5 | |
18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18034 | (exit $ac_status); } && | |
18035 | { ac_try='test -z "$ac_c_werror_flag" | |
18036 | || test ! -s conftest.err' | |
18037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18038 | (eval $ac_try) 2>&5 | |
18039 | ac_status=$? | |
18040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18041 | (exit $ac_status); }; } && | |
18042 | { ac_try='test -s conftest.$ac_objext' | |
18043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18044 | (eval $ac_try) 2>&5 | |
18045 | ac_status=$? | |
18046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18047 | (exit $ac_status); }; }; then | |
97bf5e38 | 18048 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 18049 | else |
bec39cab AC |
18050 | echo "$as_me: failed program was:" >&5 |
18051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18052 | ||
18053 | bfd_cv_have_sys_procfs_type_fpregset_t=no | |
18054 | ||
d84dd0c5 | 18055 | fi |
bec39cab | 18056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
18057 | fi |
18058 | ||
97bf5e38 | 18059 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
18060 | |
18061 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18062 | #define HAVE_FPREGSET_T 1 |
bec39cab | 18063 | _ACEOF |
d84dd0c5 | 18064 | |
97bf5e38 | 18065 | fi |
bec39cab AC |
18066 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
18067 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 18068 | |
bec39cab AC |
18069 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
18070 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
18071 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then | |
18072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18073 | else |
bec39cab AC |
18074 | cat >conftest.$ac_ext <<_ACEOF |
18075 | /* confdefs.h. */ | |
18076 | _ACEOF | |
18077 | cat confdefs.h >>conftest.$ac_ext | |
18078 | cat >>conftest.$ac_ext <<_ACEOF | |
18079 | /* end confdefs.h. */ | |
c906108c | 18080 | |
97bf5e38 MK |
18081 | #define _SYSCALL32 |
18082 | #include <sys/procfs.h> | |
bec39cab AC |
18083 | int |
18084 | main () | |
18085 | { | |
97bf5e38 | 18086 | prgregset_t avar |
bec39cab AC |
18087 | ; |
18088 | return 0; | |
18089 | } | |
18090 | _ACEOF | |
18091 | rm -f conftest.$ac_objext | |
18092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18093 | (eval $ac_compile) 2>conftest.er1 | |
18094 | ac_status=$? | |
18095 | grep -v '^ *+' conftest.er1 >conftest.err | |
18096 | rm -f conftest.er1 | |
18097 | cat conftest.err >&5 | |
18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18099 | (exit $ac_status); } && | |
18100 | { ac_try='test -z "$ac_c_werror_flag" | |
18101 | || test ! -s conftest.err' | |
18102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18103 | (eval $ac_try) 2>&5 | |
18104 | ac_status=$? | |
18105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18106 | (exit $ac_status); }; } && | |
18107 | { ac_try='test -s conftest.$ac_objext' | |
18108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18109 | (eval $ac_try) 2>&5 | |
18110 | ac_status=$? | |
18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18112 | (exit $ac_status); }; }; then | |
97bf5e38 | 18113 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 18114 | else |
bec39cab AC |
18115 | echo "$as_me: failed program was:" >&5 |
18116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18117 | ||
18118 | bfd_cv_have_sys_procfs_type_prgregset_t=no | |
18119 | ||
c906108c | 18120 | fi |
bec39cab | 18121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18122 | fi |
18123 | ||
97bf5e38 | 18124 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
18125 | |
18126 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18127 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 18128 | _ACEOF |
c906108c | 18129 | |
97bf5e38 | 18130 | fi |
bec39cab AC |
18131 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
18132 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 18133 | |
bec39cab AC |
18134 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
18135 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
18136 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then | |
18137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18138 | else |
bec39cab AC |
18139 | cat >conftest.$ac_ext <<_ACEOF |
18140 | /* confdefs.h. */ | |
18141 | _ACEOF | |
18142 | cat confdefs.h >>conftest.$ac_ext | |
18143 | cat >>conftest.$ac_ext <<_ACEOF | |
18144 | /* end confdefs.h. */ | |
97bf5e38 MK |
18145 | |
18146 | #define _SYSCALL32 | |
18147 | #include <sys/procfs.h> | |
bec39cab AC |
18148 | int |
18149 | main () | |
18150 | { | |
97bf5e38 | 18151 | prfpregset_t avar |
bec39cab AC |
18152 | ; |
18153 | return 0; | |
18154 | } | |
18155 | _ACEOF | |
18156 | rm -f conftest.$ac_objext | |
18157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18158 | (eval $ac_compile) 2>conftest.er1 | |
18159 | ac_status=$? | |
18160 | grep -v '^ *+' conftest.er1 >conftest.err | |
18161 | rm -f conftest.er1 | |
18162 | cat conftest.err >&5 | |
18163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18164 | (exit $ac_status); } && | |
18165 | { ac_try='test -z "$ac_c_werror_flag" | |
18166 | || test ! -s conftest.err' | |
18167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18168 | (eval $ac_try) 2>&5 | |
18169 | ac_status=$? | |
18170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18171 | (exit $ac_status); }; } && | |
18172 | { ac_try='test -s conftest.$ac_objext' | |
18173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18174 | (eval $ac_try) 2>&5 | |
18175 | ac_status=$? | |
18176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18177 | (exit $ac_status); }; }; then | |
97bf5e38 | 18178 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 18179 | else |
bec39cab AC |
18180 | echo "$as_me: failed program was:" >&5 |
18181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18182 | ||
18183 | bfd_cv_have_sys_procfs_type_prfpregset_t=no | |
18184 | ||
d45fe813 | 18185 | fi |
bec39cab | 18186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18187 | fi |
18188 | ||
97bf5e38 | 18189 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
18190 | |
18191 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18192 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 18193 | _ACEOF |
d45fe813 | 18194 | |
97bf5e38 | 18195 | fi |
bec39cab AC |
18196 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
18197 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 18198 | |
bec39cab AC |
18199 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
18200 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
18201 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then | |
18202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18203 | else |
bec39cab AC |
18204 | cat >conftest.$ac_ext <<_ACEOF |
18205 | /* confdefs.h. */ | |
18206 | _ACEOF | |
18207 | cat confdefs.h >>conftest.$ac_ext | |
18208 | cat >>conftest.$ac_ext <<_ACEOF | |
18209 | /* end confdefs.h. */ | |
97bf5e38 MK |
18210 | |
18211 | #define _SYSCALL32 | |
18212 | #include <sys/procfs.h> | |
bec39cab AC |
18213 | int |
18214 | main () | |
18215 | { | |
97bf5e38 | 18216 | prgregset32_t avar |
bec39cab AC |
18217 | ; |
18218 | return 0; | |
18219 | } | |
18220 | _ACEOF | |
18221 | rm -f conftest.$ac_objext | |
18222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18223 | (eval $ac_compile) 2>conftest.er1 | |
18224 | ac_status=$? | |
18225 | grep -v '^ *+' conftest.er1 >conftest.err | |
18226 | rm -f conftest.er1 | |
18227 | cat conftest.err >&5 | |
18228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18229 | (exit $ac_status); } && | |
18230 | { ac_try='test -z "$ac_c_werror_flag" | |
18231 | || test ! -s conftest.err' | |
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); }; } && | |
18237 | { ac_try='test -s conftest.$ac_objext' | |
18238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18239 | (eval $ac_try) 2>&5 | |
18240 | ac_status=$? | |
18241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18242 | (exit $ac_status); }; }; then | |
97bf5e38 | 18243 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 18244 | else |
bec39cab AC |
18245 | echo "$as_me: failed program was:" >&5 |
18246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18247 | ||
18248 | bfd_cv_have_sys_procfs_type_prgregset32_t=no | |
18249 | ||
d45fe813 | 18250 | fi |
bec39cab | 18251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18252 | fi |
18253 | ||
97bf5e38 | 18254 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
18255 | |
18256 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18257 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 18258 | _ACEOF |
d45fe813 | 18259 | |
97bf5e38 | 18260 | fi |
bec39cab AC |
18261 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
18262 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 18263 | |
bec39cab AC |
18264 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
18265 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
18266 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then | |
18267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18268 | else |
bec39cab AC |
18269 | cat >conftest.$ac_ext <<_ACEOF |
18270 | /* confdefs.h. */ | |
18271 | _ACEOF | |
18272 | cat confdefs.h >>conftest.$ac_ext | |
18273 | cat >>conftest.$ac_ext <<_ACEOF | |
18274 | /* end confdefs.h. */ | |
97bf5e38 MK |
18275 | |
18276 | #define _SYSCALL32 | |
18277 | #include <sys/procfs.h> | |
bec39cab AC |
18278 | int |
18279 | main () | |
18280 | { | |
97bf5e38 | 18281 | prfpregset32_t avar |
bec39cab AC |
18282 | ; |
18283 | return 0; | |
18284 | } | |
18285 | _ACEOF | |
18286 | rm -f conftest.$ac_objext | |
18287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18288 | (eval $ac_compile) 2>conftest.er1 | |
18289 | ac_status=$? | |
18290 | grep -v '^ *+' conftest.er1 >conftest.err | |
18291 | rm -f conftest.er1 | |
18292 | cat conftest.err >&5 | |
18293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18294 | (exit $ac_status); } && | |
18295 | { ac_try='test -z "$ac_c_werror_flag" | |
18296 | || test ! -s conftest.err' | |
18297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18298 | (eval $ac_try) 2>&5 | |
18299 | ac_status=$? | |
18300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18301 | (exit $ac_status); }; } && | |
18302 | { ac_try='test -s conftest.$ac_objext' | |
18303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18304 | (eval $ac_try) 2>&5 | |
18305 | ac_status=$? | |
18306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18307 | (exit $ac_status); }; }; then | |
97bf5e38 | 18308 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 18309 | else |
bec39cab AC |
18310 | echo "$as_me: failed program was:" >&5 |
18311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18312 | ||
18313 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no | |
18314 | ||
d45fe813 | 18315 | fi |
bec39cab | 18316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18317 | fi |
18318 | ||
97bf5e38 | 18319 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
18320 | |
18321 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18322 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 18323 | _ACEOF |
d45fe813 | 18324 | |
97bf5e38 | 18325 | fi |
bec39cab AC |
18326 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
18327 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 18328 | |
bec39cab AC |
18329 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
18330 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
18331 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then | |
18332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18333 | else |
bec39cab AC |
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. */ | |
97bf5e38 | 18340 | |
d45fe813 | 18341 | #define _SYSCALL32 |
97bf5e38 | 18342 | #include <sys/procfs.h> |
bec39cab AC |
18343 | int |
18344 | main () | |
18345 | { | |
97bf5e38 | 18346 | lwpid_t avar |
bec39cab AC |
18347 | ; |
18348 | return 0; | |
18349 | } | |
18350 | _ACEOF | |
18351 | rm -f conftest.$ac_objext | |
18352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18353 | (eval $ac_compile) 2>conftest.er1 | |
18354 | ac_status=$? | |
18355 | grep -v '^ *+' conftest.er1 >conftest.err | |
18356 | rm -f conftest.er1 | |
18357 | cat conftest.err >&5 | |
18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18359 | (exit $ac_status); } && | |
18360 | { ac_try='test -z "$ac_c_werror_flag" | |
18361 | || test ! -s conftest.err' | |
18362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18363 | (eval $ac_try) 2>&5 | |
18364 | ac_status=$? | |
18365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18366 | (exit $ac_status); }; } && | |
18367 | { ac_try='test -s conftest.$ac_objext' | |
18368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18369 | (eval $ac_try) 2>&5 | |
18370 | ac_status=$? | |
18371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18372 | (exit $ac_status); }; }; then | |
97bf5e38 | 18373 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 18374 | else |
bec39cab AC |
18375 | echo "$as_me: failed program was:" >&5 |
18376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18377 | ||
18378 | bfd_cv_have_sys_procfs_type_lwpid_t=no | |
18379 | ||
d45fe813 | 18380 | fi |
bec39cab | 18381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18382 | fi |
18383 | ||
97bf5e38 | 18384 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
18385 | |
18386 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18387 | #define HAVE_LWPID_T 1 |
bec39cab | 18388 | _ACEOF |
d45fe813 | 18389 | |
97bf5e38 | 18390 | fi |
bec39cab AC |
18391 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
18392 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 18393 | |
bec39cab AC |
18394 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
18395 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
18396 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then | |
18397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18398 | else |
bec39cab AC |
18399 | cat >conftest.$ac_ext <<_ACEOF |
18400 | /* confdefs.h. */ | |
18401 | _ACEOF | |
18402 | cat confdefs.h >>conftest.$ac_ext | |
18403 | cat >>conftest.$ac_ext <<_ACEOF | |
18404 | /* end confdefs.h. */ | |
c906108c | 18405 | |
97bf5e38 MK |
18406 | #define _SYSCALL32 |
18407 | #include <sys/procfs.h> | |
bec39cab AC |
18408 | int |
18409 | main () | |
18410 | { | |
97bf5e38 | 18411 | psaddr_t avar |
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); } && | |
18425 | { ac_try='test -z "$ac_c_werror_flag" | |
18426 | || test ! -s conftest.err' | |
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 | |
97bf5e38 | 18438 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 18439 | else |
bec39cab AC |
18440 | echo "$as_me: failed program was:" >&5 |
18441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18442 | ||
18443 | bfd_cv_have_sys_procfs_type_psaddr_t=no | |
18444 | ||
c906108c | 18445 | fi |
bec39cab | 18446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18447 | fi |
18448 | ||
97bf5e38 | 18449 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
18450 | |
18451 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18452 | #define HAVE_PSADDR_T 1 |
bec39cab | 18453 | _ACEOF |
c906108c | 18454 | |
97bf5e38 | 18455 | fi |
bec39cab AC |
18456 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
18457 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 18458 | |
bec39cab AC |
18459 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
18460 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
18461 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then | |
18462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18463 | else |
bec39cab AC |
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. */ | |
c906108c | 18470 | |
97bf5e38 MK |
18471 | #define _SYSCALL32 |
18472 | #include <sys/procfs.h> | |
bec39cab AC |
18473 | int |
18474 | main () | |
18475 | { | |
97bf5e38 | 18476 | prsysent_t avar |
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); } && | |
18490 | { ac_try='test -z "$ac_c_werror_flag" | |
18491 | || test ! -s conftest.err' | |
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 | |
97bf5e38 | 18503 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 18504 | else |
bec39cab AC |
18505 | echo "$as_me: failed program was:" >&5 |
18506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18507 | ||
18508 | bfd_cv_have_sys_procfs_type_prsysent_t=no | |
18509 | ||
c906108c | 18510 | fi |
bec39cab | 18511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18512 | fi |
18513 | ||
97bf5e38 | 18514 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
18515 | |
18516 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18517 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 18518 | _ACEOF |
c906108c | 18519 | |
97bf5e38 | 18520 | fi |
bec39cab AC |
18521 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
18522 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 18523 | |
bec39cab AC |
18524 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
18525 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
18526 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then | |
18527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18528 | else |
bec39cab AC |
18529 | cat >conftest.$ac_ext <<_ACEOF |
18530 | /* confdefs.h. */ | |
18531 | _ACEOF | |
18532 | cat confdefs.h >>conftest.$ac_ext | |
18533 | cat >>conftest.$ac_ext <<_ACEOF | |
18534 | /* end confdefs.h. */ | |
c906108c | 18535 | |
97bf5e38 MK |
18536 | #define _SYSCALL32 |
18537 | #include <sys/procfs.h> | |
bec39cab AC |
18538 | int |
18539 | main () | |
18540 | { | |
97bf5e38 | 18541 | pr_sigset_t avar |
bec39cab AC |
18542 | ; |
18543 | return 0; | |
18544 | } | |
18545 | _ACEOF | |
18546 | rm -f conftest.$ac_objext | |
18547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18548 | (eval $ac_compile) 2>conftest.er1 | |
18549 | ac_status=$? | |
18550 | grep -v '^ *+' conftest.er1 >conftest.err | |
18551 | rm -f conftest.er1 | |
18552 | cat conftest.err >&5 | |
18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18554 | (exit $ac_status); } && | |
18555 | { ac_try='test -z "$ac_c_werror_flag" | |
18556 | || test ! -s conftest.err' | |
18557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18558 | (eval $ac_try) 2>&5 | |
18559 | ac_status=$? | |
18560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18561 | (exit $ac_status); }; } && | |
18562 | { ac_try='test -s conftest.$ac_objext' | |
18563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18564 | (eval $ac_try) 2>&5 | |
18565 | ac_status=$? | |
18566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18567 | (exit $ac_status); }; }; then | |
97bf5e38 | 18568 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 18569 | else |
bec39cab AC |
18570 | echo "$as_me: failed program was:" >&5 |
18571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18572 | ||
18573 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no | |
18574 | ||
c906108c | 18575 | fi |
bec39cab | 18576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18577 | fi |
18578 | ||
97bf5e38 | 18579 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
18580 | |
18581 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18582 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 18583 | _ACEOF |
c906108c | 18584 | |
97bf5e38 | 18585 | fi |
bec39cab AC |
18586 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
18587 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 18588 | |
bec39cab AC |
18589 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
18590 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
18591 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then | |
18592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18593 | else |
bec39cab AC |
18594 | cat >conftest.$ac_ext <<_ACEOF |
18595 | /* confdefs.h. */ | |
18596 | _ACEOF | |
18597 | cat confdefs.h >>conftest.$ac_ext | |
18598 | cat >>conftest.$ac_ext <<_ACEOF | |
18599 | /* end confdefs.h. */ | |
c906108c | 18600 | |
97bf5e38 MK |
18601 | #define _SYSCALL32 |
18602 | #include <sys/procfs.h> | |
bec39cab AC |
18603 | int |
18604 | main () | |
18605 | { | |
97bf5e38 | 18606 | pr_sigaction64_t avar |
bec39cab AC |
18607 | ; |
18608 | return 0; | |
18609 | } | |
18610 | _ACEOF | |
18611 | rm -f conftest.$ac_objext | |
18612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18613 | (eval $ac_compile) 2>conftest.er1 | |
18614 | ac_status=$? | |
18615 | grep -v '^ *+' conftest.er1 >conftest.err | |
18616 | rm -f conftest.er1 | |
18617 | cat conftest.err >&5 | |
18618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18619 | (exit $ac_status); } && | |
18620 | { ac_try='test -z "$ac_c_werror_flag" | |
18621 | || test ! -s conftest.err' | |
18622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18623 | (eval $ac_try) 2>&5 | |
18624 | ac_status=$? | |
18625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18626 | (exit $ac_status); }; } && | |
18627 | { ac_try='test -s conftest.$ac_objext' | |
18628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18629 | (eval $ac_try) 2>&5 | |
18630 | ac_status=$? | |
18631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18632 | (exit $ac_status); }; }; then | |
97bf5e38 | 18633 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 18634 | else |
bec39cab AC |
18635 | echo "$as_me: failed program was:" >&5 |
18636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18637 | ||
18638 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no | |
18639 | ||
c906108c | 18640 | fi |
bec39cab | 18641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18642 | fi |
18643 | ||
97bf5e38 | 18644 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
18645 | |
18646 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18647 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 18648 | _ACEOF |
c906108c | 18649 | |
97bf5e38 | 18650 | fi |
bec39cab AC |
18651 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
18652 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 18653 | |
bec39cab AC |
18654 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
18655 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
18656 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then | |
18657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18658 | else |
bec39cab AC |
18659 | cat >conftest.$ac_ext <<_ACEOF |
18660 | /* confdefs.h. */ | |
18661 | _ACEOF | |
18662 | cat confdefs.h >>conftest.$ac_ext | |
18663 | cat >>conftest.$ac_ext <<_ACEOF | |
18664 | /* end confdefs.h. */ | |
97bf5e38 MK |
18665 | |
18666 | #define _SYSCALL32 | |
18667 | #include <sys/procfs.h> | |
bec39cab AC |
18668 | int |
18669 | main () | |
18670 | { | |
97bf5e38 | 18671 | pr_siginfo64_t avar |
bec39cab AC |
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); } && | |
18685 | { ac_try='test -z "$ac_c_werror_flag" | |
18686 | || test ! -s conftest.err' | |
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 | |
97bf5e38 MK |
18698 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
18699 | else | |
bec39cab AC |
18700 | echo "$as_me: failed program was:" >&5 |
18701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18702 | ||
18703 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no | |
18704 | ||
97bf5e38 | 18705 | fi |
bec39cab | 18706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18707 | fi |
c906108c | 18708 | |
97bf5e38 | 18709 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
18710 | |
18711 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18712 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 18713 | _ACEOF |
c906108c | 18714 | |
97bf5e38 | 18715 | fi |
bec39cab AC |
18716 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
18717 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
18718 | ||
18719 | ||
97bf5e38 MK |
18720 | |
18721 | ||
18722 | ||
97bf5e38 | 18723 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
18724 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
18725 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
18726 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then | |
18727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
18728 | else |
18729 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 18730 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 18731 | else |
bec39cab AC |
18732 | cat >conftest.$ac_ext <<_ACEOF |
18733 | /* confdefs.h. */ | |
18734 | _ACEOF | |
18735 | cat confdefs.h >>conftest.$ac_ext | |
18736 | cat >>conftest.$ac_ext <<_ACEOF | |
18737 | /* end confdefs.h. */ | |
97bf5e38 MK |
18738 | #include <sys/procfs.h> |
18739 | int main () | |
18740 | { | |
18741 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
18742 | return 1; | |
18743 | return 0; | |
18744 | } | |
bec39cab AC |
18745 | _ACEOF |
18746 | rm -f conftest$ac_exeext | |
18747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18748 | (eval $ac_link) 2>&5 | |
18749 | ac_status=$? | |
18750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18751 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18753 | (eval $ac_try) 2>&5 | |
18754 | ac_status=$? | |
18755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18756 | (exit $ac_status); }; }; then | |
97bf5e38 | 18757 | gdb_cv_prfpregset_t_broken=no |
c906108c | 18758 | else |
bec39cab AC |
18759 | echo "$as_me: program exited with status $ac_status" >&5 |
18760 | echo "$as_me: failed program was:" >&5 | |
18761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18762 | ||
18763 | ( exit $ac_status ) | |
18764 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 18765 | fi |
bec39cab | 18766 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 18767 | fi |
c906108c SS |
18768 | fi |
18769 | ||
bec39cab AC |
18770 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
18771 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 18772 | if test $gdb_cv_prfpregset_t_broken = yes; then |
bec39cab | 18773 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18774 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 18775 | _ACEOF |
c906108c | 18776 | |
97bf5e38 MK |
18777 | fi |
18778 | fi | |
c906108c | 18779 | |
bec39cab AC |
18780 | |
18781 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 | |
18782 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
18783 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then | |
18784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18785 | else |
bec39cab AC |
18786 | cat >conftest.$ac_ext <<_ACEOF |
18787 | /* confdefs.h. */ | |
18788 | _ACEOF | |
18789 | cat confdefs.h >>conftest.$ac_ext | |
18790 | cat >>conftest.$ac_ext <<_ACEOF | |
18791 | /* end confdefs.h. */ | |
97bf5e38 MK |
18792 | #include <unistd.h> |
18793 | #include <sys/types.h> | |
18794 | #include <sys/procfs.h> | |
18795 | ||
bec39cab AC |
18796 | int |
18797 | main () | |
18798 | { | |
97bf5e38 MK |
18799 | |
18800 | int dummy;; | |
18801 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
18802 | |
18803 | ; | |
18804 | return 0; | |
18805 | } | |
18806 | _ACEOF | |
18807 | rm -f conftest.$ac_objext | |
18808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18809 | (eval $ac_compile) 2>conftest.er1 | |
18810 | ac_status=$? | |
18811 | grep -v '^ *+' conftest.er1 >conftest.err | |
18812 | rm -f conftest.er1 | |
18813 | cat conftest.err >&5 | |
18814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18815 | (exit $ac_status); } && | |
18816 | { ac_try='test -z "$ac_c_werror_flag" | |
18817 | || test ! -s conftest.err' | |
18818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18819 | (eval $ac_try) 2>&5 | |
18820 | ac_status=$? | |
18821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18822 | (exit $ac_status); }; } && | |
18823 | { ac_try='test -s conftest.$ac_objext' | |
18824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18825 | (eval $ac_try) 2>&5 | |
18826 | ac_status=$? | |
18827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18828 | (exit $ac_status); }; }; then | |
97bf5e38 | 18829 | gdb_cv_have_procfs_piocset=yes |
c906108c | 18830 | else |
bec39cab AC |
18831 | echo "$as_me: failed program was:" >&5 |
18832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18833 | ||
18834 | gdb_cv_have_procfs_piocset=no | |
c906108c | 18835 | fi |
bec39cab | 18836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18837 | fi |
97bf5e38 | 18838 | |
bec39cab AC |
18839 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
18840 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 18841 | if test $gdb_cv_have_procfs_piocset = yes; then |
bec39cab | 18842 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18843 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 18844 | _ACEOF |
97bf5e38 MK |
18845 | |
18846 | fi | |
c906108c | 18847 | fi |
c906108c | 18848 | |
97bf5e38 | 18849 | if test ${host} = ${target} ; then |
bec39cab AC |
18850 | |
18851 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 | |
18852 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
18853 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then | |
18854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18855 | else | |
18856 | cat >conftest.$ac_ext <<_ACEOF | |
18857 | /* confdefs.h. */ | |
18858 | _ACEOF | |
18859 | cat confdefs.h >>conftest.$ac_ext | |
18860 | cat >>conftest.$ac_ext <<_ACEOF | |
18861 | /* end confdefs.h. */ | |
97bf5e38 | 18862 | #include <link.h> |
bec39cab AC |
18863 | int |
18864 | main () | |
18865 | { | |
97bf5e38 | 18866 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
18867 | ; |
18868 | return 0; | |
18869 | } | |
18870 | _ACEOF | |
18871 | rm -f conftest.$ac_objext | |
18872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18873 | (eval $ac_compile) 2>conftest.er1 | |
18874 | ac_status=$? | |
18875 | grep -v '^ *+' conftest.er1 >conftest.err | |
18876 | rm -f conftest.er1 | |
18877 | cat conftest.err >&5 | |
18878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18879 | (exit $ac_status); } && | |
18880 | { ac_try='test -z "$ac_c_werror_flag" | |
18881 | || test ! -s conftest.err' | |
18882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18883 | (eval $ac_try) 2>&5 | |
18884 | ac_status=$? | |
18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18886 | (exit $ac_status); }; } && | |
18887 | { ac_try='test -s conftest.$ac_objext' | |
18888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18889 | (eval $ac_try) 2>&5 | |
18890 | ac_status=$? | |
18891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18892 | (exit $ac_status); }; }; then | |
97bf5e38 | 18893 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 18894 | else |
bec39cab AC |
18895 | echo "$as_me: failed program was:" >&5 |
18896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18897 | ||
18898 | gdb_cv_have_struct_link_map_with_l_members=no | |
c906108c | 18899 | fi |
bec39cab | 18900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18901 | fi |
18902 | ||
bec39cab AC |
18903 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
18904 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 18905 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
bec39cab | 18906 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18907 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 18908 | _ACEOF |
97bf5e38 MK |
18909 | |
18910 | fi | |
18911 | ||
bec39cab AC |
18912 | |
18913 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 | |
18914 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
18915 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then | |
18916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18917 | else |
bec39cab AC |
18918 | cat >conftest.$ac_ext <<_ACEOF |
18919 | /* confdefs.h. */ | |
18920 | _ACEOF | |
18921 | cat confdefs.h >>conftest.$ac_ext | |
18922 | cat >>conftest.$ac_ext <<_ACEOF | |
18923 | /* end confdefs.h. */ | |
97bf5e38 MK |
18924 | #include <sys/types.h> |
18925 | #include <link.h> | |
bec39cab AC |
18926 | int |
18927 | main () | |
18928 | { | |
97bf5e38 | 18929 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
18930 | ; |
18931 | return 0; | |
18932 | } | |
18933 | _ACEOF | |
18934 | rm -f conftest.$ac_objext | |
18935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18936 | (eval $ac_compile) 2>conftest.er1 | |
18937 | ac_status=$? | |
18938 | grep -v '^ *+' conftest.er1 >conftest.err | |
18939 | rm -f conftest.er1 | |
18940 | cat conftest.err >&5 | |
18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18942 | (exit $ac_status); } && | |
18943 | { ac_try='test -z "$ac_c_werror_flag" | |
18944 | || test ! -s conftest.err' | |
18945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18946 | (eval $ac_try) 2>&5 | |
18947 | ac_status=$? | |
18948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18949 | (exit $ac_status); }; } && | |
18950 | { ac_try='test -s conftest.$ac_objext' | |
18951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18952 | (eval $ac_try) 2>&5 | |
18953 | ac_status=$? | |
18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18955 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18956 | gdb_cv_have_struct_link_map_with_lm_members=yes |
18957 | else | |
bec39cab AC |
18958 | echo "$as_me: failed program was:" >&5 |
18959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18960 | ||
18961 | gdb_cv_have_struct_link_map_with_lm_members=no | |
97bf5e38 | 18962 | fi |
bec39cab | 18963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18964 | fi |
c906108c | 18965 | |
bec39cab AC |
18966 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
18967 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 18968 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
bec39cab | 18969 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18970 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 18971 | _ACEOF |
97bf5e38 MK |
18972 | |
18973 | fi | |
18974 | ||
bec39cab AC |
18975 | |
18976 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 | |
18977 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
18978 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then | |
18979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18980 | else |
bec39cab AC |
18981 | cat >conftest.$ac_ext <<_ACEOF |
18982 | /* confdefs.h. */ | |
18983 | _ACEOF | |
18984 | cat confdefs.h >>conftest.$ac_ext | |
18985 | cat >>conftest.$ac_ext <<_ACEOF | |
18986 | /* end confdefs.h. */ | |
97bf5e38 MK |
18987 | #include <sys/types.h> |
18988 | #ifdef HAVE_NLIST_H | |
18989 | #include <nlist.h> | |
18990 | #endif | |
18991 | #include <link.h> | |
bec39cab AC |
18992 | int |
18993 | main () | |
18994 | { | |
97bf5e38 | 18995 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
18996 | ; |
18997 | return 0; | |
18998 | } | |
18999 | _ACEOF | |
19000 | rm -f conftest.$ac_objext | |
19001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19002 | (eval $ac_compile) 2>conftest.er1 | |
19003 | ac_status=$? | |
19004 | grep -v '^ *+' conftest.er1 >conftest.err | |
19005 | rm -f conftest.er1 | |
19006 | cat conftest.err >&5 | |
19007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19008 | (exit $ac_status); } && | |
19009 | { ac_try='test -z "$ac_c_werror_flag" | |
19010 | || test ! -s conftest.err' | |
19011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19012 | (eval $ac_try) 2>&5 | |
19013 | ac_status=$? | |
19014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19015 | (exit $ac_status); }; } && | |
19016 | { ac_try='test -s conftest.$ac_objext' | |
19017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19018 | (eval $ac_try) 2>&5 | |
19019 | ac_status=$? | |
19020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19021 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19022 | gdb_cv_have_struct_so_map_with_som_members=yes |
19023 | else | |
bec39cab AC |
19024 | echo "$as_me: failed program was:" >&5 |
19025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19026 | ||
19027 | gdb_cv_have_struct_so_map_with_som_members=no | |
97bf5e38 | 19028 | fi |
bec39cab | 19029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19030 | fi |
c906108c | 19031 | |
bec39cab AC |
19032 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
19033 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 19034 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
bec39cab | 19035 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19036 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 19037 | _ACEOF |
c906108c | 19038 | |
97bf5e38 | 19039 | fi |
c906108c | 19040 | |
bec39cab AC |
19041 | |
19042 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 | |
19043 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
19044 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then | |
19045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 19046 | else |
bec39cab AC |
19047 | cat >conftest.$ac_ext <<_ACEOF |
19048 | /* confdefs.h. */ | |
19049 | _ACEOF | |
19050 | cat confdefs.h >>conftest.$ac_ext | |
19051 | cat >>conftest.$ac_ext <<_ACEOF | |
19052 | /* end confdefs.h. */ | |
97bf5e38 MK |
19053 | #define _SYSCALL32 |
19054 | #include <sys/link.h> | |
bec39cab AC |
19055 | int |
19056 | main () | |
19057 | { | |
97bf5e38 | 19058 | struct link_map32 l; |
bec39cab AC |
19059 | ; |
19060 | return 0; | |
19061 | } | |
19062 | _ACEOF | |
19063 | rm -f conftest.$ac_objext | |
19064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19065 | (eval $ac_compile) 2>conftest.er1 | |
19066 | ac_status=$? | |
19067 | grep -v '^ *+' conftest.er1 >conftest.err | |
19068 | rm -f conftest.er1 | |
19069 | cat conftest.err >&5 | |
19070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19071 | (exit $ac_status); } && | |
19072 | { ac_try='test -z "$ac_c_werror_flag" | |
19073 | || test ! -s conftest.err' | |
19074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19075 | (eval $ac_try) 2>&5 | |
19076 | ac_status=$? | |
19077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19078 | (exit $ac_status); }; } && | |
19079 | { ac_try='test -s conftest.$ac_objext' | |
19080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19081 | (eval $ac_try) 2>&5 | |
19082 | ac_status=$? | |
19083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19084 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19085 | gdb_cv_have_struct_link_map32=yes |
19086 | else | |
bec39cab AC |
19087 | echo "$as_me: failed program was:" >&5 |
19088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19089 | ||
19090 | gdb_cv_have_struct_link_map32=no | |
97bf5e38 | 19091 | fi |
bec39cab | 19092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19093 | fi |
c906108c | 19094 | |
bec39cab AC |
19095 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
19096 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 19097 | if test $gdb_cv_have_struct_link_map32 = yes; then |
bec39cab | 19098 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19099 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 19100 | _ACEOF |
c906108c | 19101 | |
bec39cab | 19102 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19103 | #define _SYSCALL32 1 |
bec39cab | 19104 | _ACEOF |
c906108c | 19105 | |
97bf5e38 MK |
19106 | fi |
19107 | fi | |
c906108c | 19108 | |
c906108c | 19109 | |
bec39cab AC |
19110 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
19111 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
19112 | if test "${gdb_cv_c_long_long+set}" = set; then | |
19113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 19114 | else |
bec39cab AC |
19115 | cat >conftest.$ac_ext <<_ACEOF |
19116 | /* confdefs.h. */ | |
19117 | _ACEOF | |
19118 | cat confdefs.h >>conftest.$ac_ext | |
19119 | cat >>conftest.$ac_ext <<_ACEOF | |
19120 | /* end confdefs.h. */ | |
c906108c | 19121 | |
bec39cab AC |
19122 | int |
19123 | main () | |
19124 | { | |
c906108c | 19125 | |
97bf5e38 MK |
19126 | extern long long foo; |
19127 | switch (foo & 2) { case 0: return 1; } | |
c906108c | 19128 | |
bec39cab AC |
19129 | ; |
19130 | return 0; | |
19131 | } | |
19132 | _ACEOF | |
19133 | rm -f conftest.$ac_objext | |
19134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19135 | (eval $ac_compile) 2>conftest.er1 | |
19136 | ac_status=$? | |
19137 | grep -v '^ *+' conftest.er1 >conftest.err | |
19138 | rm -f conftest.er1 | |
19139 | cat conftest.err >&5 | |
19140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19141 | (exit $ac_status); } && | |
19142 | { ac_try='test -z "$ac_c_werror_flag" | |
19143 | || test ! -s conftest.err' | |
19144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19145 | (eval $ac_try) 2>&5 | |
19146 | ac_status=$? | |
19147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19148 | (exit $ac_status); }; } && | |
19149 | { ac_try='test -s conftest.$ac_objext' | |
19150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19151 | (eval $ac_try) 2>&5 | |
19152 | ac_status=$? | |
19153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19154 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19155 | gdb_cv_c_long_long=yes |
19156 | else | |
bec39cab AC |
19157 | echo "$as_me: failed program was:" >&5 |
19158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19159 | ||
19160 | gdb_cv_c_long_long=no | |
97bf5e38 | 19161 | fi |
bec39cab | 19162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19163 | fi |
c906108c | 19164 | |
bec39cab AC |
19165 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
19166 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 19167 | if test $gdb_cv_c_long_long = yes; then |
bec39cab | 19168 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19169 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 19170 | _ACEOF |
97bf5e38 MK |
19171 | |
19172 | fi | |
19173 | ||
19174 | ||
bec39cab AC |
19175 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
19176 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
19177 | if test "${gdb_cv_printf_has_long_long+set}" = set; then | |
19178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19179 | else |
19180 | if test "$cross_compiling" = yes; then | |
19181 | gdb_cv_printf_has_long_long=no | |
19182 | else | |
bec39cab AC |
19183 | cat >conftest.$ac_ext <<_ACEOF |
19184 | /* confdefs.h. */ | |
19185 | _ACEOF | |
19186 | cat confdefs.h >>conftest.$ac_ext | |
19187 | cat >>conftest.$ac_ext <<_ACEOF | |
19188 | /* end confdefs.h. */ | |
97bf5e38 MK |
19189 | |
19190 | int main () { | |
19191 | char buf[32]; | |
19192 | long long l = 0; | |
19193 | l = (l << 16) + 0x0123; | |
19194 | l = (l << 16) + 0x4567; | |
19195 | l = (l << 16) + 0x89ab; | |
19196 | l = (l << 16) + 0xcdef; | |
19197 | sprintf (buf, "0x%016llx", l); | |
19198 | return (strcmp ("0x0123456789abcdef", buf)); | |
c906108c | 19199 | } |
bec39cab AC |
19200 | _ACEOF |
19201 | rm -f conftest$ac_exeext | |
19202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19203 | (eval $ac_link) 2>&5 | |
19204 | ac_status=$? | |
19205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19206 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19208 | (eval $ac_try) 2>&5 | |
19209 | ac_status=$? | |
19210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19211 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19212 | gdb_cv_printf_has_long_long=yes |
19213 | else | |
bec39cab AC |
19214 | echo "$as_me: program exited with status $ac_status" >&5 |
19215 | echo "$as_me: failed program was:" >&5 | |
19216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19217 | ||
19218 | ( exit $ac_status ) | |
19219 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 19220 | fi |
bec39cab | 19221 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19222 | fi |
97bf5e38 MK |
19223 | fi |
19224 | ||
19225 | if test $gdb_cv_printf_has_long_long = yes; then | |
bec39cab | 19226 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19227 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 19228 | _ACEOF |
97bf5e38 MK |
19229 | |
19230 | fi | |
bec39cab AC |
19231 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
19232 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 MK |
19233 | |
19234 | ||
bec39cab AC |
19235 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
19236 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
19237 | if test "${ac_cv_c_long_double+set}" = set; then | |
19238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 19239 | else |
bec39cab AC |
19240 | cat >conftest.$ac_ext <<_ACEOF |
19241 | /* confdefs.h. */ | |
19242 | _ACEOF | |
19243 | cat confdefs.h >>conftest.$ac_ext | |
19244 | cat >>conftest.$ac_ext <<_ACEOF | |
19245 | /* end confdefs.h. */ | |
97bf5e38 | 19246 | |
bec39cab AC |
19247 | int |
19248 | main () | |
19249 | { | |
97bf5e38 | 19250 | long double foo; |
bec39cab AC |
19251 | ; |
19252 | return 0; | |
19253 | } | |
19254 | _ACEOF | |
19255 | rm -f conftest.$ac_objext | |
19256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19257 | (eval $ac_compile) 2>conftest.er1 | |
19258 | ac_status=$? | |
19259 | grep -v '^ *+' conftest.er1 >conftest.err | |
19260 | rm -f conftest.er1 | |
19261 | cat conftest.err >&5 | |
19262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19263 | (exit $ac_status); } && | |
19264 | { ac_try='test -z "$ac_c_werror_flag" | |
19265 | || test ! -s conftest.err' | |
19266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19267 | (eval $ac_try) 2>&5 | |
19268 | ac_status=$? | |
19269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19270 | (exit $ac_status); }; } && | |
19271 | { ac_try='test -s conftest.$ac_objext' | |
19272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19273 | (eval $ac_try) 2>&5 | |
19274 | ac_status=$? | |
19275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19276 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19277 | ac_cv_c_long_double=yes |
19278 | else | |
bec39cab AC |
19279 | echo "$as_me: failed program was:" >&5 |
19280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19281 | ||
19282 | ac_cv_c_long_double=no | |
97bf5e38 | 19283 | fi |
bec39cab | 19284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19285 | fi |
c906108c | 19286 | |
bec39cab AC |
19287 | echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5 |
19288 | echo "${ECHO_T}$ac_cv_c_long_double" >&6 | |
97bf5e38 | 19289 | if test $ac_cv_c_long_double = yes; then |
bec39cab | 19290 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19291 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 19292 | _ACEOF |
97bf5e38 MK |
19293 | |
19294 | fi | |
19295 | ||
19296 | ||
bec39cab AC |
19297 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
19298 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
19299 | if test "${gdb_cv_printf_has_long_double+set}" = set; then | |
19300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19301 | else |
19302 | if test "$cross_compiling" = yes; then | |
19303 | gdb_cv_printf_has_long_double=no | |
19304 | else | |
bec39cab AC |
19305 | cat >conftest.$ac_ext <<_ACEOF |
19306 | /* confdefs.h. */ | |
19307 | _ACEOF | |
19308 | cat confdefs.h >>conftest.$ac_ext | |
19309 | cat >>conftest.$ac_ext <<_ACEOF | |
19310 | /* end confdefs.h. */ | |
97bf5e38 MK |
19311 | |
19312 | int main () { | |
19313 | char buf[16]; | |
19314 | long double f = 3.141592653; | |
19315 | sprintf (buf, "%Lg", f); | |
19316 | return (strncmp ("3.14159", buf, 7)); | |
19317 | } | |
bec39cab AC |
19318 | _ACEOF |
19319 | rm -f conftest$ac_exeext | |
19320 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19321 | (eval $ac_link) 2>&5 | |
19322 | ac_status=$? | |
19323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19326 | (eval $ac_try) 2>&5 | |
19327 | ac_status=$? | |
19328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19329 | (exit $ac_status); }; }; then | |
97bf5e38 | 19330 | gdb_cv_printf_has_long_double=yes |
c906108c | 19331 | else |
bec39cab AC |
19332 | echo "$as_me: program exited with status $ac_status" >&5 |
19333 | echo "$as_me: failed program was:" >&5 | |
19334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19335 | ||
19336 | ( exit $ac_status ) | |
19337 | gdb_cv_printf_has_long_double=no | |
c906108c | 19338 | fi |
bec39cab | 19339 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 19340 | fi |
c906108c SS |
19341 | fi |
19342 | ||
97bf5e38 | 19343 | if test $gdb_cv_printf_has_long_double = yes; then |
bec39cab | 19344 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19345 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 19346 | _ACEOF |
97bf5e38 MK |
19347 | |
19348 | fi | |
bec39cab AC |
19349 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
19350 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 MK |
19351 | |
19352 | ||
bec39cab AC |
19353 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
19354 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
19355 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then | |
19356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19357 | else |
19358 | if test "$cross_compiling" = yes; then | |
19359 | gdb_cv_scanf_has_long_double=no | |
19360 | else | |
bec39cab AC |
19361 | cat >conftest.$ac_ext <<_ACEOF |
19362 | /* confdefs.h. */ | |
19363 | _ACEOF | |
19364 | cat confdefs.h >>conftest.$ac_ext | |
19365 | cat >>conftest.$ac_ext <<_ACEOF | |
19366 | /* end confdefs.h. */ | |
97bf5e38 MK |
19367 | |
19368 | int main () { | |
19369 | char *buf = "3.141592653"; | |
19370 | long double f = 0; | |
19371 | sscanf (buf, "%Lg", &f); | |
19372 | return !(f > 3.14159 && f < 3.14160); | |
19373 | } | |
bec39cab AC |
19374 | _ACEOF |
19375 | rm -f conftest$ac_exeext | |
19376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19377 | (eval $ac_link) 2>&5 | |
19378 | ac_status=$? | |
19379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19382 | (eval $ac_try) 2>&5 | |
19383 | ac_status=$? | |
19384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19385 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19386 | gdb_cv_scanf_has_long_double=yes |
19387 | else | |
bec39cab AC |
19388 | echo "$as_me: program exited with status $ac_status" >&5 |
19389 | echo "$as_me: failed program was:" >&5 | |
19390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19391 | ||
19392 | ( exit $ac_status ) | |
19393 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 19394 | fi |
bec39cab | 19395 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19396 | fi |
c906108c SS |
19397 | fi |
19398 | ||
97bf5e38 | 19399 | if test $gdb_cv_scanf_has_long_double = yes; then |
bec39cab | 19400 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19401 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 19402 | _ACEOF |
97bf5e38 MK |
19403 | |
19404 | fi | |
bec39cab AC |
19405 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
19406 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
c906108c | 19407 | |
438013df AO |
19408 | case ${host_os} in |
19409 | aix*) | |
bec39cab AC |
19410 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
19411 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
19412 | if test "${gdb_cv_bigtoc+set}" = set; then | |
19413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 19414 | else |
bec39cab | 19415 | |
438013df AO |
19416 | SAVE_LDFLAGS=$LDFLAGS |
19417 | ||
19418 | case $GCC in | |
19419 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
19420 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
19421 | esac | |
19422 | ||
19423 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
19424 | cat >conftest.$ac_ext <<_ACEOF |
19425 | /* confdefs.h. */ | |
19426 | _ACEOF | |
19427 | cat confdefs.h >>conftest.$ac_ext | |
19428 | cat >>conftest.$ac_ext <<_ACEOF | |
19429 | /* end confdefs.h. */ | |
438013df | 19430 | |
bec39cab AC |
19431 | int |
19432 | main () | |
19433 | { | |
438013df | 19434 | int i; |
bec39cab AC |
19435 | ; |
19436 | return 0; | |
19437 | } | |
19438 | _ACEOF | |
19439 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19441 | (eval $ac_link) 2>conftest.er1 | |
19442 | ac_status=$? | |
19443 | grep -v '^ *+' conftest.er1 >conftest.err | |
19444 | rm -f conftest.er1 | |
19445 | cat conftest.err >&5 | |
19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19447 | (exit $ac_status); } && | |
19448 | { ac_try='test -z "$ac_c_werror_flag" | |
19449 | || test ! -s conftest.err' | |
19450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19451 | (eval $ac_try) 2>&5 | |
19452 | ac_status=$? | |
19453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19454 | (exit $ac_status); }; } && | |
19455 | { ac_try='test -s conftest$ac_exeext' | |
19456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19457 | (eval $ac_try) 2>&5 | |
19458 | ac_status=$? | |
19459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19460 | (exit $ac_status); }; }; then | |
438013df AO |
19461 | : |
19462 | else | |
bec39cab AC |
19463 | echo "$as_me: failed program was:" >&5 |
19464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19465 | ||
19466 | gdb_cv_bigtoc= | |
438013df | 19467 | fi |
bec39cab AC |
19468 | rm -f conftest.err conftest.$ac_objext \ |
19469 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 19470 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 19471 | |
bec39cab AC |
19472 | fi |
19473 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
19474 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
19475 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
19476 | ;; | |
19477 | esac | |
19478 | ||
c906108c SS |
19479 | |
19480 | ||
19481 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
19482 | case ${host_os} in | |
19483 | hpux*) | |
bec39cab AC |
19484 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
19485 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
19486 | if test -f /usr/include/dce/cma_config.h ; then |
19487 | if test "$GCC" = "yes" ; then | |
bec39cab AC |
19488 | echo "$as_me:$LINENO: result: yes" >&5 |
19489 | echo "${ECHO_T}yes" >&6 | |
19490 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19491 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 19492 | _ACEOF |
c906108c | 19493 | |
3483b318 | 19494 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
19495 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
19496 | else | |
bec39cab AC |
19497 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
19498 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
19499 | fi |
19500 | else | |
bec39cab AC |
19501 | echo "$as_me:$LINENO: result: no" >&5 |
19502 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19503 | fi |
19504 | ;; | |
19505 | solaris*) | |
d92419e5 JB |
19506 | # See if thread_db library is around for Solaris thread debugging. |
19507 | # Note that we must explicitly test for version 1 of the library | |
19508 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
19509 | # the same API. | |
bec39cab AC |
19510 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
19511 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 19512 | if test -f /usr/lib/libthread_db.so.1 ; then |
bec39cab AC |
19513 | echo "$as_me:$LINENO: result: yes" >&5 |
19514 | echo "${ECHO_T}yes" >&6 | |
19515 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19516 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 19517 | _ACEOF |
c906108c | 19518 | |
3483b318 | 19519 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 19520 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab AC |
19521 | |
19522 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
19523 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
19524 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
19525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19526 | else |
bec39cab | 19527 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 19528 | LIBS="-ldl $LIBS" |
bec39cab AC |
19529 | cat >conftest.$ac_ext <<_ACEOF |
19530 | /* confdefs.h. */ | |
19531 | _ACEOF | |
19532 | cat confdefs.h >>conftest.$ac_ext | |
19533 | cat >>conftest.$ac_ext <<_ACEOF | |
19534 | /* end confdefs.h. */ | |
19535 | ||
c906108c | 19536 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19537 | #ifdef __cplusplus |
19538 | extern "C" | |
19539 | #endif | |
c906108c | 19540 | /* We use char because int might match the return type of a gcc2 |
bec39cab AC |
19541 | builtin and then its argument prototype would still apply. */ |
19542 | char dlopen (); | |
19543 | int | |
19544 | main () | |
19545 | { | |
19546 | dlopen (); | |
19547 | ; | |
19548 | return 0; | |
19549 | } | |
19550 | _ACEOF | |
19551 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19553 | (eval $ac_link) 2>conftest.er1 | |
19554 | ac_status=$? | |
19555 | grep -v '^ *+' conftest.er1 >conftest.err | |
19556 | rm -f conftest.er1 | |
19557 | cat conftest.err >&5 | |
19558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19559 | (exit $ac_status); } && | |
19560 | { ac_try='test -z "$ac_c_werror_flag" | |
19561 | || test ! -s conftest.err' | |
19562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19563 | (eval $ac_try) 2>&5 | |
19564 | ac_status=$? | |
19565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19566 | (exit $ac_status); }; } && | |
19567 | { ac_try='test -s conftest$ac_exeext' | |
19568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19569 | (eval $ac_try) 2>&5 | |
19570 | ac_status=$? | |
19571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19572 | (exit $ac_status); }; }; then | |
19573 | ac_cv_lib_dl_dlopen=yes | |
19574 | else | |
19575 | echo "$as_me: failed program was:" >&5 | |
19576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19577 | ||
19578 | ac_cv_lib_dl_dlopen=no | |
19579 | fi | |
19580 | rm -f conftest.err conftest.$ac_objext \ | |
19581 | conftest$ac_exeext conftest.$ac_ext | |
19582 | LIBS=$ac_check_lib_save_LIBS | |
19583 | fi | |
19584 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
19585 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
19586 | if test $ac_cv_lib_dl_dlopen = yes; then | |
19587 | cat >>confdefs.h <<_ACEOF | |
19588 | #define HAVE_LIBDL 1 | |
19589 | _ACEOF | |
c906108c SS |
19590 | |
19591 | LIBS="-ldl $LIBS" | |
19592 | ||
c906108c SS |
19593 | fi |
19594 | ||
19595 | if test "$GCC" = "yes" ; then | |
19596 | # The GNU linker requires the -export-dynamic option to make | |
19597 | # all symbols visible in the dynamic symbol table. | |
19598 | hold_ldflags=$LDFLAGS | |
bec39cab AC |
19599 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
19600 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 19601 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
19602 | cat >conftest.$ac_ext <<_ACEOF |
19603 | /* confdefs.h. */ | |
19604 | _ACEOF | |
19605 | cat confdefs.h >>conftest.$ac_ext | |
19606 | cat >>conftest.$ac_ext <<_ACEOF | |
19607 | /* end confdefs.h. */ | |
c906108c | 19608 | |
bec39cab AC |
19609 | int |
19610 | main () | |
19611 | { | |
c906108c | 19612 | int i; |
bec39cab AC |
19613 | ; |
19614 | return 0; | |
19615 | } | |
19616 | _ACEOF | |
19617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19619 | (eval $ac_link) 2>conftest.er1 | |
19620 | ac_status=$? | |
19621 | grep -v '^ *+' conftest.er1 >conftest.err | |
19622 | rm -f conftest.er1 | |
19623 | cat conftest.err >&5 | |
19624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19625 | (exit $ac_status); } && | |
19626 | { ac_try='test -z "$ac_c_werror_flag" | |
19627 | || test ! -s conftest.err' | |
19628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19629 | (eval $ac_try) 2>&5 | |
19630 | ac_status=$? | |
19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19632 | (exit $ac_status); }; } && | |
19633 | { ac_try='test -s conftest$ac_exeext' | |
19634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19635 | (eval $ac_try) 2>&5 | |
19636 | ac_status=$? | |
19637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19638 | (exit $ac_status); }; }; then | |
c906108c SS |
19639 | found=yes |
19640 | else | |
bec39cab AC |
19641 | echo "$as_me: failed program was:" >&5 |
19642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19643 | ||
19644 | found=no | |
c906108c | 19645 | fi |
bec39cab AC |
19646 | rm -f conftest.err conftest.$ac_objext \ |
19647 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 19648 | LDFLAGS=$hold_ldflags |
bec39cab AC |
19649 | echo "$as_me:$LINENO: result: $found" >&5 |
19650 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
19651 | if test $found = yes; then |
19652 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
19653 | fi | |
19654 | fi | |
19655 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
19656 | # at one point. | |
bec39cab AC |
19657 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
19658 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
19659 | if test "${gdb_cv_proc_service_is_old+set}" = set; then | |
19660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19661 | else |
bec39cab AC |
19662 | |
19663 | cat >conftest.$ac_ext <<_ACEOF | |
19664 | /* confdefs.h. */ | |
19665 | _ACEOF | |
19666 | cat confdefs.h >>conftest.$ac_ext | |
19667 | cat >>conftest.$ac_ext <<_ACEOF | |
19668 | /* end confdefs.h. */ | |
c906108c SS |
19669 | |
19670 | #include <proc_service.h> | |
19671 | ps_err_e ps_pdwrite | |
19672 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 19673 | |
bec39cab AC |
19674 | int |
19675 | main () | |
19676 | { | |
19677 | ||
19678 | ; | |
19679 | return 0; | |
19680 | } | |
19681 | _ACEOF | |
19682 | rm -f conftest.$ac_objext | |
19683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19684 | (eval $ac_compile) 2>conftest.er1 | |
19685 | ac_status=$? | |
19686 | grep -v '^ *+' conftest.er1 >conftest.err | |
19687 | rm -f conftest.er1 | |
19688 | cat conftest.err >&5 | |
19689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19690 | (exit $ac_status); } && | |
19691 | { ac_try='test -z "$ac_c_werror_flag" | |
19692 | || test ! -s conftest.err' | |
19693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19694 | (eval $ac_try) 2>&5 | |
19695 | ac_status=$? | |
19696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19697 | (exit $ac_status); }; } && | |
19698 | { ac_try='test -s conftest.$ac_objext' | |
19699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19700 | (eval $ac_try) 2>&5 | |
19701 | ac_status=$? | |
19702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19703 | (exit $ac_status); }; }; then | |
c906108c SS |
19704 | gdb_cv_proc_service_is_old=no |
19705 | else | |
bec39cab AC |
19706 | echo "$as_me: failed program was:" >&5 |
19707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19708 | ||
19709 | gdb_cv_proc_service_is_old=yes | |
c906108c | 19710 | fi |
bec39cab AC |
19711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19712 | ||
c906108c SS |
19713 | fi |
19714 | ||
bec39cab AC |
19715 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
19716 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 19717 | if test $gdb_cv_proc_service_is_old = yes; then |
bec39cab | 19718 | cat >>confdefs.h <<\_ACEOF |
c906108c | 19719 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 19720 | _ACEOF |
c906108c SS |
19721 | |
19722 | fi | |
19723 | else | |
bec39cab AC |
19724 | echo "$as_me:$LINENO: result: no" >&5 |
19725 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19726 | fi |
19727 | ;; | |
d92419e5 | 19728 | aix*) |
bec39cab AC |
19729 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
19730 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
19731 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then | |
19732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19733 | else | |
19734 | cat >conftest.$ac_ext <<_ACEOF | |
19735 | /* confdefs.h. */ | |
19736 | _ACEOF | |
19737 | cat confdefs.h >>conftest.$ac_ext | |
19738 | cat >>conftest.$ac_ext <<_ACEOF | |
19739 | /* end confdefs.h. */ | |
d92419e5 | 19740 | #include <sys/pthdebug.h> |
bec39cab AC |
19741 | int |
19742 | main () | |
19743 | { | |
d92419e5 JB |
19744 | #ifndef PTHDB_VERSION_3 |
19745 | #error | |
19746 | #endif | |
bec39cab AC |
19747 | ; |
19748 | return 0; | |
19749 | } | |
19750 | _ACEOF | |
19751 | rm -f conftest.$ac_objext | |
19752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19753 | (eval $ac_compile) 2>conftest.er1 | |
19754 | ac_status=$? | |
19755 | grep -v '^ *+' conftest.er1 >conftest.err | |
19756 | rm -f conftest.er1 | |
19757 | cat conftest.err >&5 | |
19758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19759 | (exit $ac_status); } && | |
19760 | { ac_try='test -z "$ac_c_werror_flag" | |
19761 | || test ! -s conftest.err' | |
19762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19763 | (eval $ac_try) 2>&5 | |
19764 | ac_status=$? | |
19765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19766 | (exit $ac_status); }; } && | |
19767 | { ac_try='test -s conftest.$ac_objext' | |
19768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19769 | (eval $ac_try) 2>&5 | |
19770 | ac_status=$? | |
19771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19772 | (exit $ac_status); }; }; then | |
d92419e5 JB |
19773 | gdb_cv_have_aix_thread_debug=yes |
19774 | else | |
bec39cab AC |
19775 | echo "$as_me: failed program was:" >&5 |
19776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19777 | ||
19778 | gdb_cv_have_aix_thread_debug=no | |
d92419e5 | 19779 | fi |
bec39cab | 19780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
19781 | fi |
19782 | ||
bec39cab AC |
19783 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
19784 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
19785 | if test $gdb_cv_have_aix_thread_debug = yes; then |
19786 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 19787 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
19788 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
19789 | fi | |
19790 | ;; | |
c906108c | 19791 | esac |
bec39cab | 19792 | |
c906108c SS |
19793 | fi |
19794 | ||
3f47be5c | 19795 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
bec39cab AC |
19796 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
19797 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
19798 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then | |
19799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19800 | else | |
19801 | cat >conftest.$ac_ext <<_ACEOF | |
19802 | /* confdefs.h. */ | |
19803 | _ACEOF | |
19804 | cat confdefs.h >>conftest.$ac_ext | |
19805 | cat >>conftest.$ac_ext <<_ACEOF | |
19806 | /* end confdefs.h. */ | |
3f47be5c | 19807 | #include <thread_db.h> |
bec39cab AC |
19808 | int |
19809 | main () | |
19810 | { | |
3f47be5c | 19811 | int i = TD_NOTALLOC; |
bec39cab AC |
19812 | ; |
19813 | return 0; | |
19814 | } | |
19815 | _ACEOF | |
19816 | rm -f conftest.$ac_objext | |
19817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19818 | (eval $ac_compile) 2>conftest.er1 | |
19819 | ac_status=$? | |
19820 | grep -v '^ *+' conftest.er1 >conftest.err | |
19821 | rm -f conftest.er1 | |
19822 | cat conftest.err >&5 | |
19823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19824 | (exit $ac_status); } && | |
19825 | { ac_try='test -z "$ac_c_werror_flag" | |
19826 | || test ! -s conftest.err' | |
19827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19828 | (eval $ac_try) 2>&5 | |
19829 | ac_status=$? | |
19830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19831 | (exit $ac_status); }; } && | |
19832 | { ac_try='test -s conftest.$ac_objext' | |
19833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19834 | (eval $ac_try) 2>&5 | |
19835 | ac_status=$? | |
19836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19837 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
19838 | gdb_cv_thread_db_h_has_td_notalloc=yes |
19839 | else | |
bec39cab AC |
19840 | echo "$as_me: failed program was:" >&5 |
19841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19842 | ||
19843 | gdb_cv_thread_db_h_has_td_notalloc=no | |
19844 | ||
3f47be5c | 19845 | fi |
bec39cab | 19846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 19847 | |
bec39cab AC |
19848 | fi |
19849 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 | |
19850 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
3f47be5c EZ |
19851 | fi |
19852 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
19853 | |
19854 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 19855 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 19856 | _ACEOF |
3f47be5c EZ |
19857 | |
19858 | fi | |
19859 | ||
b757528f | 19860 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
bec39cab AC |
19861 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
19862 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
19863 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then | |
19864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19865 | else | |
19866 | cat >conftest.$ac_ext <<_ACEOF | |
19867 | /* confdefs.h. */ | |
19868 | _ACEOF | |
19869 | cat confdefs.h >>conftest.$ac_ext | |
19870 | cat >>conftest.$ac_ext <<_ACEOF | |
19871 | /* end confdefs.h. */ | |
b757528f | 19872 | #include <sys/syscall.h> |
bec39cab AC |
19873 | int |
19874 | main () | |
19875 | { | |
b757528f | 19876 | int i = __NR_tkill; |
bec39cab AC |
19877 | ; |
19878 | return 0; | |
19879 | } | |
19880 | _ACEOF | |
19881 | rm -f conftest.$ac_objext | |
19882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19883 | (eval $ac_compile) 2>conftest.er1 | |
19884 | ac_status=$? | |
19885 | grep -v '^ *+' conftest.er1 >conftest.err | |
19886 | rm -f conftest.er1 | |
19887 | cat conftest.err >&5 | |
19888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19889 | (exit $ac_status); } && | |
19890 | { ac_try='test -z "$ac_c_werror_flag" | |
19891 | || test ! -s conftest.err' | |
19892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19893 | (eval $ac_try) 2>&5 | |
19894 | ac_status=$? | |
19895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19896 | (exit $ac_status); }; } && | |
19897 | { ac_try='test -s conftest.$ac_objext' | |
19898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19899 | (eval $ac_try) 2>&5 | |
19900 | ac_status=$? | |
19901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19902 | (exit $ac_status); }; }; then | |
b757528f JJ |
19903 | gdb_cv_sys_syscall_h_has_tkill=yes |
19904 | else | |
bec39cab AC |
19905 | echo "$as_me: failed program was:" >&5 |
19906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19907 | ||
19908 | gdb_cv_sys_syscall_h_has_tkill=no | |
19909 | ||
b757528f | 19910 | fi |
bec39cab | 19911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 19912 | |
bec39cab AC |
19913 | fi |
19914 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 | |
19915 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
19916 | fi |
19917 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
19918 | |
19919 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 19920 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 19921 | _ACEOF |
b757528f JJ |
19922 | |
19923 | fi | |
19924 | ||
fb40c209 | 19925 | |
bec39cab | 19926 | |
030292b7 DJ |
19927 | # Check whether --with-sysroot or --without-sysroot was given. |
19928 | if test "${with_sysroot+set}" = set; then | |
19929 | withval="$with_sysroot" | |
bec39cab | 19930 | |
030292b7 | 19931 | case ${with_sysroot} in |
715d1656 | 19932 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
19933 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
19934 | esac | |
19935 | ||
19936 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
19937 | ||
19938 | if test "x$exec_prefix" = xNONE; then | |
19939 | if test "x$prefix" = xNONE; then | |
19940 | test_prefix=/usr/local | |
19941 | else | |
19942 | test_prefix=$prefix | |
19943 | fi | |
19944 | else | |
19945 | test_prefix=$exec_prefix | |
19946 | fi | |
19947 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 AO |
19948 | "${test_prefix}"|"${test_prefix}/"*|\ |
19949 | '${exec_prefix}'|'${exec_prefix}/'*) | |
030292b7 DJ |
19950 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
19951 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
19952 | ;; | |
19953 | esac | |
19954 | ||
19955 | else | |
bec39cab | 19956 | |
030292b7 DJ |
19957 | TARGET_SYSTEM_ROOT= |
19958 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
19959 | ||
bec39cab | 19960 | fi; |
030292b7 DJ |
19961 | |
19962 | ||
19963 | ||
3b851bce AC |
19964 | # NOTE: Don't add -Wall or -Wunused, they both include |
19965 | # -Wunused-parameter which reports bogus warnings. | |
19966 | # NOTE: If you add to this list, remember to update | |
19967 | # gdb/doc/gdbint.texinfo. | |
1decb323 | 19968 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ |
0f0cffd2 | 19969 | -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \ |
4566dfcf | 19970 | -Wunused-label -Wunused-function" |
d8038014 | 19971 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs |
0f0cffd2 | 19972 | # -Wunused-function -Wunused-variable -Wunused-value |
93d56215 | 19973 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual |
d8038014 AC |
19974 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes |
19975 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls | |
19976 | # -Woverloaded-virtual -Winline -Werror" | |
c906108c SS |
19977 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
19978 | if test "${enable_build_warnings+set}" = set; then | |
19979 | enableval="$enable_build_warnings" | |
1decb323 | 19980 | case "${enableval}" in |
c906108c SS |
19981 | yes) ;; |
19982 | no) build_warnings="-w";; | |
19983 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
19984 | build_warnings="${build_warnings} ${t}";; | |
19985 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
19986 | build_warnings="${t} ${build_warnings}";; | |
19987 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
19988 | esac | |
d4f3574e | 19989 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 19990 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 19991 | fi |
bec39cab | 19992 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce AC |
19993 | if test "${enable_gdb_build_warnings+set}" = set; then |
19994 | enableval="$enable_gdb_build_warnings" | |
19995 | case "${enableval}" in | |
19996 | yes) ;; | |
19997 | no) build_warnings="-w";; | |
19998 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
19999 | build_warnings="${build_warnings} ${t}";; | |
20000 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20001 | build_warnings="${t} ${build_warnings}";; | |
20002 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20003 | esac | |
20004 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
20005 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
20006 | fi | |
bec39cab | 20007 | fi; WARN_CFLAGS="" |
104c1213 | 20008 | WERROR_CFLAGS="" |
c906108c SS |
20009 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
20010 | then | |
bec39cab AC |
20011 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
20012 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
20013 | # Separate out the -Werror flag as some files just cannot be |
20014 | # compiled with it enabled. | |
20015 | for w in ${build_warnings}; do | |
20016 | case $w in | |
20017 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
20018 | *) # Check that GCC accepts it | |
4536bbc6 AC |
20019 | saved_CFLAGS="$CFLAGS" |
20020 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
20021 | cat >conftest.$ac_ext <<_ACEOF |
20022 | /* confdefs.h. */ | |
20023 | _ACEOF | |
20024 | cat confdefs.h >>conftest.$ac_ext | |
20025 | cat >>conftest.$ac_ext <<_ACEOF | |
20026 | /* end confdefs.h. */ | |
4536bbc6 | 20027 | |
bec39cab AC |
20028 | int |
20029 | main () | |
20030 | { | |
4536bbc6 | 20031 | |
bec39cab AC |
20032 | ; |
20033 | return 0; | |
20034 | } | |
20035 | _ACEOF | |
20036 | rm -f conftest.$ac_objext | |
20037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20038 | (eval $ac_compile) 2>conftest.er1 | |
20039 | ac_status=$? | |
20040 | grep -v '^ *+' conftest.er1 >conftest.err | |
20041 | rm -f conftest.er1 | |
20042 | cat conftest.err >&5 | |
20043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20044 | (exit $ac_status); } && | |
20045 | { ac_try='test -z "$ac_c_werror_flag" | |
20046 | || test ! -s conftest.err' | |
20047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20048 | (eval $ac_try) 2>&5 | |
20049 | ac_status=$? | |
20050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20051 | (exit $ac_status); }; } && | |
20052 | { ac_try='test -s conftest.$ac_objext' | |
20053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20054 | (eval $ac_try) 2>&5 | |
20055 | ac_status=$? | |
20056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20057 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
20058 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
20059 | else | |
bec39cab AC |
20060 | echo "$as_me: failed program was:" >&5 |
20061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20062 | ||
4536bbc6 | 20063 | fi |
bec39cab | 20064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 20065 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
20066 | esac |
20067 | done | |
bec39cab AC |
20068 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 |
20069 | echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 | |
c906108c SS |
20070 | fi |
20071 | ||
20072 | ||
104c1213 | 20073 | |
7a292a7a | 20074 | # In the Cygwin environment, we need some additional flags. |
bec39cab AC |
20075 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
20076 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
20077 | if test "${gdb_cv_os_cygwin+set}" = set; then | |
20078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20079 | else | |
20080 | cat >conftest.$ac_ext <<_ACEOF | |
20081 | /* confdefs.h. */ | |
20082 | _ACEOF | |
20083 | cat confdefs.h >>conftest.$ac_ext | |
20084 | cat >>conftest.$ac_ext <<_ACEOF | |
20085 | /* end confdefs.h. */ | |
7a292a7a SS |
20086 | |
20087 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
20088 | lose | |
20089 | #endif | |
bec39cab | 20090 | _ACEOF |
7a292a7a | 20091 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 20092 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
20093 | gdb_cv_os_cygwin=yes |
20094 | else | |
7a292a7a SS |
20095 | gdb_cv_os_cygwin=no |
20096 | fi | |
20097 | rm -f conftest* | |
20098 | ||
20099 | fi | |
bec39cab AC |
20100 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
20101 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 20102 | |
aff38e61 AC |
20103 | |
20104 | SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o" | |
20105 | case ${host} in | |
95cbc983 AC |
20106 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
20107 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
aff38e61 AC |
20108 | esac |
20109 | ||
20110 | ||
cd0fc7c3 SS |
20111 | # libreadline needs libuser32.a in a cygwin environment |
20112 | WIN32LIBS= | |
20113 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
20114 | WIN32LIBS="-luser32" |
20115 | case "${target}" in | |
20116 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
20117 | ;; | |
20118 | esac | |
cd0fc7c3 | 20119 | fi |
c906108c | 20120 | |
7a292a7a | 20121 | |
3fc11d3e JM |
20122 | LIBGUI="../libgui/src/libgui.a" |
20123 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
20124 | ||
20125 | ||
7a292a7a | 20126 | |
3fc11d3e JM |
20127 | WIN32LDAPP= |
20128 | ||
20129 | ||
20130 | ||
d91670b9 CV |
20131 | case "${host}" in |
20132 | *-*-cygwin*) | |
20133 | configdir="win" | |
20134 | ;; | |
20135 | *) | |
20136 | configdir="unix" | |
20137 | ;; | |
20138 | esac | |
3fc11d3e JM |
20139 | |
20140 | GDBTKLIBS= | |
20141 | if test "${enable_gdbtk}" = "yes"; then | |
20142 | ||
d1c3b63a KS |
20143 | # Gdbtk must have an absolute path to srcdir in order to run |
20144 | # properly when not installed. | |
20145 | here=`pwd` | |
20146 | cd ${srcdir} | |
20147 | GDBTK_SRC_DIR=`pwd` | |
20148 | cd $here | |
20149 | ||
bec39cab | 20150 | |
3fc11d3e JM |
20151 | # |
20152 | # Ok, lets find the tcl configuration | |
bec39cab | 20153 | # First, look for one uninstalled. |
3fc11d3e JM |
20154 | # the alternative search directory is invoked by --with-tclconfig |
20155 | # | |
20156 | ||
20157 | if test x"${no_tcl}" = x ; then | |
20158 | # we reset no_tcl in case something fails here | |
20159 | no_tcl=true | |
bec39cab AC |
20160 | |
20161 | # Check whether --with-tclconfig or --without-tclconfig was given. | |
3fc11d3e JM |
20162 | if test "${with_tclconfig+set}" = set; then |
20163 | withval="$with_tclconfig" | |
20164 | with_tclconfig=${withval} | |
bec39cab AC |
20165 | fi; |
20166 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
20167 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
20168 | if test "${ac_cv_c_tclconfig+set}" = set; then | |
20169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20170 | else |
bec39cab | 20171 | |
3fc11d3e JM |
20172 | |
20173 | # First check to see if --with-tclconfig was specified. | |
20174 | if test x"${with_tclconfig}" != x ; then | |
20175 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
20176 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
20177 | else | |
bec39cab AC |
20178 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
20179 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
20180 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20181 | fi |
20182 | fi | |
20183 | ||
20184 | # then check for a private Tcl installation | |
20185 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20186 | for i in \ | |
20187 | ../tcl \ | |
20188 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
20189 | ../../tcl \ | |
20190 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
20191 | ../../../tcl \ | |
20192 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
20193 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
20194 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
20195 | break | |
20196 | fi | |
20197 | done | |
20198 | fi | |
20199 | # check in a few common install locations | |
20200 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20201 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20202 | if test -f "$i/tclConfig.sh" ; then | |
20203 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
20204 | break | |
20205 | fi | |
20206 | done | |
20207 | fi | |
20208 | # check in a few other private locations | |
20209 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20210 | for i in \ | |
20211 | ${srcdir}/../tcl \ | |
20212 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
20213 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
20214 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
20215 | break | |
20216 | fi | |
20217 | done | |
20218 | fi | |
bec39cab | 20219 | |
3fc11d3e JM |
20220 | fi |
20221 | ||
20222 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20223 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
20224 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
20225 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
20226 | else |
20227 | no_tcl= | |
20228 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
bec39cab AC |
20229 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
20230 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
20231 | fi |
20232 | fi | |
20233 | ||
20234 | if test -z "${no_tcl}"; then | |
bec39cab | 20235 | |
3fc11d3e JM |
20236 | . $TCLCONFIG |
20237 | ||
3fc11d3e JM |
20238 | |
20239 | ||
20240 | ||
20241 | ||
3fc11d3e JM |
20242 | |
20243 | ||
20244 | ||
bec39cab AC |
20245 | |
20246 | ||
20247 | ||
20248 | ||
20249 | ||
20250 | ||
20251 | ||
20252 | ||
20253 | ||
20254 | ||
20255 | ||
20256 | ||
20257 | ||
20258 | ||
20259 | ||
20260 | ||
20261 | ||
20262 | ||
20263 | ||
3fc11d3e JM |
20264 | # |
20265 | # Ok, lets find the tk configuration | |
bec39cab | 20266 | # First, look for one uninstalled. |
3fc11d3e JM |
20267 | # the alternative search directory is invoked by --with-tkconfig |
20268 | # | |
20269 | ||
20270 | if test x"${no_tk}" = x ; then | |
20271 | # we reset no_tk in case something fails here | |
20272 | no_tk=true | |
bec39cab AC |
20273 | |
20274 | # Check whether --with-tkconfig or --without-tkconfig was given. | |
3fc11d3e JM |
20275 | if test "${with_tkconfig+set}" = set; then |
20276 | withval="$with_tkconfig" | |
20277 | with_tkconfig=${withval} | |
bec39cab AC |
20278 | fi; |
20279 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
20280 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
20281 | if test "${ac_cv_c_tkconfig+set}" = set; then | |
20282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20283 | else |
bec39cab | 20284 | |
3fc11d3e JM |
20285 | |
20286 | # First check to see if --with-tkconfig was specified. | |
20287 | if test x"${with_tkconfig}" != x ; then | |
20288 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
20289 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
20290 | else | |
bec39cab AC |
20291 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
20292 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
20293 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20294 | fi |
20295 | fi | |
20296 | ||
20297 | # then check for a private Tk library | |
20298 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20299 | for i in \ | |
20300 | ../tk \ | |
20301 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
20302 | ../../tk \ | |
20303 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
20304 | ../../../tk \ | |
20305 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
20306 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
20307 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
20308 | break | |
20309 | fi | |
20310 | done | |
20311 | fi | |
20312 | # check in a few common install locations | |
20313 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20314 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20315 | if test -f "$i/tkConfig.sh" ; then | |
20316 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
20317 | break | |
20318 | fi | |
20319 | done | |
20320 | fi | |
20321 | # check in a few other private locations | |
20322 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20323 | for i in \ | |
20324 | ${srcdir}/../tk \ | |
20325 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
20326 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
20327 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
20328 | break | |
20329 | fi | |
20330 | done | |
20331 | fi | |
bec39cab | 20332 | |
3fc11d3e JM |
20333 | fi |
20334 | ||
20335 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20336 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
20337 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
20338 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
20339 | else |
20340 | no_tk= | |
20341 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
bec39cab AC |
20342 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
20343 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
20344 | fi |
20345 | fi | |
20346 | ||
20347 | ||
20348 | ||
dd2504ab JM |
20349 | # now look for Tcl library stuff |
20350 | ||
d91670b9 | 20351 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
20352 | |
20353 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
20354 | ||
3fc11d3e JM |
20355 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
20356 | # point to doing Tcl. | |
20357 | if test -z "${no_tk}"; then | |
bec39cab | 20358 | |
3fc11d3e JM |
20359 | if test -f "$TKCONFIG" ; then |
20360 | . $TKCONFIG | |
20361 | fi | |
20362 | ||
3fc11d3e | 20363 | |
3fc11d3e JM |
20364 | |
20365 | ||
3fc11d3e | 20366 | |
bec39cab AC |
20367 | |
20368 | ||
20369 | ||
20370 | ||
20371 | ||
20372 | ||
20373 | ||
20374 | ||
20375 | ||
3fc11d3e JM |
20376 | # |
20377 | # Ok, lets find the tcl source trees so we can use the headers | |
20378 | # Warning: transition of version 9 to 10 will break this algorithm | |
20379 | # because 10 sorts before 9. We also look for just tcl. We have to | |
20380 | # be careful that we don't match stuff like tclX by accident. | |
20381 | # the alternative search directory is involked by --with-tclinclude | |
20382 | # | |
20383 | ||
20384 | no_tcl=true | |
bec39cab AC |
20385 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
20386 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
20387 | ||
3fc11d3e JM |
20388 | # Check whether --with-tclinclude or --without-tclinclude was given. |
20389 | if test "${with_tclinclude+set}" = set; then | |
20390 | withval="$with_tclinclude" | |
20391 | with_tclinclude=${withval} | |
bec39cab AC |
20392 | fi; |
20393 | if test "${ac_cv_c_tclh+set}" = set; then | |
20394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20395 | else |
bec39cab | 20396 | |
3fc11d3e JM |
20397 | # first check to see if --with-tclinclude was specified |
20398 | if test x"${with_tclinclude}" != x ; then | |
20399 | if test -f ${with_tclinclude}/tclInt.h ; then | |
20400 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
20401 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
20402 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
20403 | else | |
bec39cab AC |
20404 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
20405 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
20406 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20407 | fi |
20408 | fi | |
20409 | ||
20410 | # next check if it came with Tcl configuration file | |
20411 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20412 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
20413 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
20414 | fi | |
20415 | fi | |
20416 | ||
20417 | # next check in private source directory | |
20418 | # | |
20419 | # since ls returns lowest version numbers first, reverse its output | |
20420 | if test x"${ac_cv_c_tclh}" = x ; then | |
20421 | for i in \ | |
20422 | ${srcdir}/../tcl \ | |
20423 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
20424 | ${srcdir}/../../tcl \ | |
20425 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
20426 | ${srcdir}/../../../tcl \ | |
20427 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
20428 | if test -f $i/generic/tclInt.h ; then | |
20429 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
20430 | break | |
20431 | fi | |
20432 | done | |
20433 | fi | |
20434 | # finally check in a few common install locations | |
20435 | # | |
20436 | # since ls returns lowest version numbers first, reverse its output | |
20437 | if test x"${ac_cv_c_tclh}" = x ; then | |
20438 | for i in \ | |
20439 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
20440 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
20441 | /usr/local/src/tcl \ | |
20442 | /usr/local/lib/tcl \ | |
20443 | ${prefix}/include ; do | |
20444 | if test -f $i/generic/tclInt.h ; then | |
20445 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
20446 | break | |
20447 | fi | |
20448 | done | |
20449 | fi | |
20450 | # see if one is installed | |
20451 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab AC |
20452 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
20453 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 | |
20454 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
20455 | if test "${ac_cv_header_tclInt_h+set}" = set; then | |
20456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20457 | fi | |
20458 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 | |
20459 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
20460 | else | |
20461 | # Is the header compilable? | |
20462 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 | |
20463 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
20464 | cat >conftest.$ac_ext <<_ACEOF | |
20465 | /* confdefs.h. */ | |
20466 | _ACEOF | |
20467 | cat confdefs.h >>conftest.$ac_ext | |
20468 | cat >>conftest.$ac_ext <<_ACEOF | |
20469 | /* end confdefs.h. */ | |
20470 | $ac_includes_default | |
20471 | #include <tclInt.h> | |
20472 | _ACEOF | |
20473 | rm -f conftest.$ac_objext | |
20474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20475 | (eval $ac_compile) 2>conftest.er1 | |
20476 | ac_status=$? | |
20477 | grep -v '^ *+' conftest.er1 >conftest.err | |
20478 | rm -f conftest.er1 | |
20479 | cat conftest.err >&5 | |
20480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20481 | (exit $ac_status); } && | |
20482 | { ac_try='test -z "$ac_c_werror_flag" | |
20483 | || test ! -s conftest.err' | |
20484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20485 | (eval $ac_try) 2>&5 | |
20486 | ac_status=$? | |
20487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20488 | (exit $ac_status); }; } && | |
20489 | { ac_try='test -s conftest.$ac_objext' | |
20490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20491 | (eval $ac_try) 2>&5 | |
20492 | ac_status=$? | |
20493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20494 | (exit $ac_status); }; }; then | |
20495 | ac_header_compiler=yes | |
20496 | else | |
20497 | echo "$as_me: failed program was:" >&5 | |
20498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20499 | ||
20500 | ac_header_compiler=no | |
20501 | fi | |
20502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20503 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20504 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20505 | ||
20506 | # Is the header present? | |
20507 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 | |
20508 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
20509 | cat >conftest.$ac_ext <<_ACEOF | |
20510 | /* confdefs.h. */ | |
20511 | _ACEOF | |
20512 | cat confdefs.h >>conftest.$ac_ext | |
20513 | cat >>conftest.$ac_ext <<_ACEOF | |
20514 | /* end confdefs.h. */ | |
3fc11d3e | 20515 | #include <tclInt.h> |
bec39cab AC |
20516 | _ACEOF |
20517 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20518 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20519 | ac_status=$? | |
20520 | grep -v '^ *+' conftest.er1 >conftest.err | |
20521 | rm -f conftest.er1 | |
20522 | cat conftest.err >&5 | |
20523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20524 | (exit $ac_status); } >/dev/null; then | |
20525 | if test -s conftest.err; then | |
20526 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20527 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20528 | else | |
20529 | ac_cpp_err= | |
20530 | fi | |
20531 | else | |
20532 | ac_cpp_err=yes | |
3fc11d3e | 20533 | fi |
bec39cab AC |
20534 | if test -z "$ac_cpp_err"; then |
20535 | ac_header_preproc=yes | |
20536 | else | |
20537 | echo "$as_me: failed program was:" >&5 | |
20538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20539 | ||
20540 | ac_header_preproc=no | |
3fc11d3e | 20541 | fi |
bec39cab AC |
20542 | rm -f conftest.err conftest.$ac_ext |
20543 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20544 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20545 | ||
20546 | # So? What about this header? | |
20547 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20548 | yes:no: ) | |
20549 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20550 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20551 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
20552 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
20553 | ac_header_preproc=yes | |
20554 | ;; | |
20555 | no:yes:* ) | |
20556 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
20557 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
20558 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
20559 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
20560 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
20561 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
20562 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20563 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20564 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
20565 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
20566 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
20567 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
20568 | ( | |
20569 | cat <<\_ASBOX | |
20570 | ## ------------------------------------------ ## | |
20571 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20572 | ## ------------------------------------------ ## | |
20573 | _ASBOX | |
20574 | ) | | |
20575 | sed "s/^/$as_me: WARNING: /" >&2 | |
20576 | ;; | |
20577 | esac | |
20578 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 | |
20579 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
20580 | if test "${ac_cv_header_tclInt_h+set}" = set; then | |
20581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20582 | else | |
20583 | ac_cv_header_tclInt_h=$ac_header_preproc | |
20584 | fi | |
20585 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 | |
20586 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
20587 | ||
20588 | fi | |
20589 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
20590 | ac_cv_c_tclh=installed |
20591 | else | |
bec39cab | 20592 | ac_cv_c_tclh="" |
3fc11d3e JM |
20593 | fi |
20594 | ||
bec39cab | 20595 | |
3fc11d3e JM |
20596 | fi |
20597 | ||
20598 | fi | |
20599 | ||
20600 | if test x"${ac_cv_c_tclh}" = x ; then | |
20601 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
20602 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
20603 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
20604 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20605 | fi |
20606 | if test x"${ac_cv_c_tclh}" != x ; then | |
20607 | no_tcl="" | |
20608 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
bec39cab AC |
20609 | echo "$as_me:$LINENO: result: is installed" >&5 |
20610 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
20611 | TCLHDIR="" |
20612 | else | |
bec39cab AC |
20613 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
20614 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
20615 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
20616 | TCLHDIR="-I${ac_cv_c_tclh}" | |
20617 | fi | |
20618 | fi | |
20619 | ||
20620 | ||
20621 | ||
bec39cab | 20622 | |
3fc11d3e JM |
20623 | # |
20624 | # Ok, lets find the tk source trees so we can use the headers | |
20625 | # If the directory (presumably symlink) named "tk" exists, use that one | |
20626 | # in preference to any others. Same logic is used when choosing library | |
20627 | # and again with Tcl. The search order is the best place to look first, then in | |
20628 | # decreasing significance. The loop breaks if the trigger file is found. | |
20629 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
20630 | # directory. This converts the path from a relative to an absolute, so | |
20631 | # recursive cache variables for the path will work right. We check all | |
20632 | # the possible paths in one loop rather than many seperate loops to speed | |
20633 | # things up. | |
20634 | # the alternative search directory is involked by --with-tkinclude | |
20635 | # | |
20636 | no_tk=true | |
bec39cab AC |
20637 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
20638 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
20639 | ||
3fc11d3e JM |
20640 | # Check whether --with-tkinclude or --without-tkinclude was given. |
20641 | if test "${with_tkinclude+set}" = set; then | |
20642 | withval="$with_tkinclude" | |
20643 | with_tkinclude=${withval} | |
bec39cab AC |
20644 | fi; |
20645 | if test "${ac_cv_c_tkh+set}" = set; then | |
20646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20647 | else |
bec39cab | 20648 | |
3fc11d3e JM |
20649 | # first check to see if --with-tkinclude was specified |
20650 | if test x"${with_tkinclude}" != x ; then | |
20651 | if test -f ${with_tkinclude}/tk.h ; then | |
20652 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
20653 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
20654 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
20655 | else | |
bec39cab AC |
20656 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
20657 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
20658 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20659 | fi |
20660 | fi | |
20661 | ||
20662 | # next check if it came with Tk configuration file | |
20663 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20664 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
20665 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
20666 | fi | |
20667 | fi | |
20668 | ||
20669 | # next check in private source directory | |
20670 | # | |
20671 | # since ls returns lowest version numbers first, reverse its output | |
20672 | if test x"${ac_cv_c_tkh}" = x ; then | |
20673 | for i in \ | |
20674 | ${srcdir}/../tk \ | |
20675 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
20676 | ${srcdir}/../../tk \ | |
20677 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
20678 | ${srcdir}/../../../tk \ | |
20679 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
20680 | if test -f $i/generic/tk.h ; then | |
20681 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
20682 | break | |
20683 | fi | |
20684 | done | |
20685 | fi | |
20686 | # finally check in a few common install locations | |
20687 | # | |
20688 | # since ls returns lowest version numbers first, reverse its output | |
20689 | if test x"${ac_cv_c_tkh}" = x ; then | |
20690 | for i in \ | |
20691 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
20692 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
20693 | /usr/local/src/tk \ | |
20694 | /usr/local/lib/tk \ | |
20695 | ${prefix}/include ; do | |
20696 | if test -f $i/generic/tk.h ; then | |
20697 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
20698 | break | |
20699 | fi | |
20700 | done | |
20701 | fi | |
20702 | # see if one is installed | |
20703 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab AC |
20704 | if test "${ac_cv_header_tk_h+set}" = set; then |
20705 | echo "$as_me:$LINENO: checking for tk.h" >&5 | |
20706 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
20707 | if test "${ac_cv_header_tk_h+set}" = set; then | |
20708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20709 | fi | |
20710 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 | |
20711 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
20712 | else | |
20713 | # Is the header compilable? | |
20714 | echo "$as_me:$LINENO: checking tk.h usability" >&5 | |
20715 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
20716 | cat >conftest.$ac_ext <<_ACEOF | |
20717 | /* confdefs.h. */ | |
20718 | _ACEOF | |
20719 | cat confdefs.h >>conftest.$ac_ext | |
20720 | cat >>conftest.$ac_ext <<_ACEOF | |
20721 | /* end confdefs.h. */ | |
20722 | $ac_includes_default | |
3fc11d3e | 20723 | #include <tk.h> |
bec39cab AC |
20724 | _ACEOF |
20725 | rm -f conftest.$ac_objext | |
20726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20727 | (eval $ac_compile) 2>conftest.er1 | |
20728 | ac_status=$? | |
20729 | grep -v '^ *+' conftest.er1 >conftest.err | |
20730 | rm -f conftest.er1 | |
20731 | cat conftest.err >&5 | |
20732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20733 | (exit $ac_status); } && | |
20734 | { ac_try='test -z "$ac_c_werror_flag" | |
20735 | || test ! -s conftest.err' | |
20736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20737 | (eval $ac_try) 2>&5 | |
20738 | ac_status=$? | |
20739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20740 | (exit $ac_status); }; } && | |
20741 | { ac_try='test -s conftest.$ac_objext' | |
20742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20743 | (eval $ac_try) 2>&5 | |
20744 | ac_status=$? | |
20745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20746 | (exit $ac_status); }; }; then | |
20747 | ac_header_compiler=yes | |
20748 | else | |
20749 | echo "$as_me: failed program was:" >&5 | |
20750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20751 | ||
20752 | ac_header_compiler=no | |
20753 | fi | |
20754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20755 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20756 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20757 | ||
20758 | # Is the header present? | |
20759 | echo "$as_me:$LINENO: checking tk.h presence" >&5 | |
20760 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
20761 | cat >conftest.$ac_ext <<_ACEOF | |
20762 | /* confdefs.h. */ | |
20763 | _ACEOF | |
20764 | cat confdefs.h >>conftest.$ac_ext | |
20765 | cat >>conftest.$ac_ext <<_ACEOF | |
20766 | /* end confdefs.h. */ | |
20767 | #include <tk.h> | |
20768 | _ACEOF | |
20769 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20770 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20771 | ac_status=$? | |
20772 | grep -v '^ *+' conftest.er1 >conftest.err | |
20773 | rm -f conftest.er1 | |
20774 | cat conftest.err >&5 | |
20775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20776 | (exit $ac_status); } >/dev/null; then | |
20777 | if test -s conftest.err; then | |
20778 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20779 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20780 | else | |
20781 | ac_cpp_err= | |
20782 | fi | |
20783 | else | |
20784 | ac_cpp_err=yes | |
3fc11d3e | 20785 | fi |
bec39cab AC |
20786 | if test -z "$ac_cpp_err"; then |
20787 | ac_header_preproc=yes | |
20788 | else | |
20789 | echo "$as_me: failed program was:" >&5 | |
20790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20791 | ||
20792 | ac_header_preproc=no | |
20793 | fi | |
20794 | rm -f conftest.err conftest.$ac_ext | |
20795 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20796 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20797 | ||
20798 | # So? What about this header? | |
20799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20800 | yes:no: ) | |
20801 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20802 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20803 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
20804 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
20805 | ac_header_preproc=yes | |
20806 | ;; | |
20807 | no:yes:* ) | |
20808 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
20809 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
20810 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
20811 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
20812 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
20813 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
20814 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20815 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20816 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
20817 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
20818 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
20819 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
20820 | ( | |
20821 | cat <<\_ASBOX | |
20822 | ## ------------------------------------------ ## | |
20823 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20824 | ## ------------------------------------------ ## | |
20825 | _ASBOX | |
20826 | ) | | |
20827 | sed "s/^/$as_me: WARNING: /" >&2 | |
20828 | ;; | |
20829 | esac | |
20830 | echo "$as_me:$LINENO: checking for tk.h" >&5 | |
20831 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
20832 | if test "${ac_cv_header_tk_h+set}" = set; then | |
20833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20834 | else | |
20835 | ac_cv_header_tk_h=$ac_header_preproc | |
20836 | fi | |
20837 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 | |
20838 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
20839 | ||
3fc11d3e | 20840 | fi |
bec39cab | 20841 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
20842 | ac_cv_c_tkh=installed |
20843 | else | |
bec39cab | 20844 | ac_cv_c_tkh="" |
3fc11d3e JM |
20845 | fi |
20846 | ||
bec39cab | 20847 | |
3fc11d3e JM |
20848 | fi |
20849 | ||
20850 | fi | |
20851 | ||
20852 | if test x"${ac_cv_c_tkh}" != x ; then | |
20853 | no_tk="" | |
20854 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
bec39cab AC |
20855 | echo "$as_me:$LINENO: result: is installed" >&5 |
20856 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
20857 | TKHDIR="" |
20858 | else | |
bec39cab AC |
20859 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
20860 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
20861 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
20862 | TKHDIR="-I${ac_cv_c_tkh}" | |
20863 | fi | |
20864 | else | |
20865 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
20866 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
20867 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
20868 | no_tk=true |
20869 | fi | |
20870 | ||
20871 | ||
20872 | ||
bec39cab AC |
20873 | |
20874 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 | |
20875 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
20876 | if test x"${ac_cv_c_itclh}" = x ; then |
20877 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
20878 | if test -f $i/generic/itcl.h ; then | |
20879 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
20880 | break | |
20881 | fi | |
20882 | done | |
20883 | fi | |
20884 | if test x"${ac_cv_c_itclh}" = x ; then | |
20885 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
20886 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
20887 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
20888 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20889 | fi |
20890 | if test x"${ac_cv_c_itclh}" != x ; then | |
20891 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
20892 | fi | |
20893 | # should always be here | |
20894 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
20895 | ||
20896 | #AC_SUBST(ITCLLIB) | |
20897 | ||
bec39cab AC |
20898 | |
20899 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 | |
20900 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
20901 | if test x"${ac_cv_c_itkh}" = x ; then |
20902 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
20903 | if test -f $i/generic/itk.h ; then | |
20904 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
20905 | break | |
20906 | fi | |
20907 | done | |
20908 | fi | |
20909 | if test x"${ac_cv_c_itkh}" = x ; then | |
20910 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
20911 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
20912 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
20913 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20914 | fi |
20915 | if test x"${ac_cv_c_itkh}" != x ; then | |
20916 | ITKHDIR="-I${ac_cv_c_itkh}" | |
20917 | fi | |
20918 | # should always be here | |
20919 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
20920 | ||
20921 | #AC_SUBST(ITKLIB) | |
20922 | ||
3fc11d3e | 20923 | |
dd2504ab JM |
20924 | |
20925 | # now look for Tk library stuff | |
20926 | ||
d91670b9 | 20927 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
20928 | |
20929 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
20930 | ||
3fc11d3e JM |
20931 | # now look for Itcl library stuff |
20932 | ||
bec39cab | 20933 | |
3fc11d3e JM |
20934 | # |
20935 | # Ok, lets find the itcl configuration | |
bec39cab | 20936 | # First, look for one uninstalled. |
3fc11d3e JM |
20937 | # the alternative search directory is invoked by --with-itclconfig |
20938 | # | |
20939 | ||
20940 | if test x"${no_itcl}" = x ; then | |
20941 | # we reset no_itcl in case something fails here | |
20942 | no_itcl=true | |
bec39cab AC |
20943 | |
20944 | # Check whether --with-itclconfig or --without-itclconfig was given. | |
3fc11d3e JM |
20945 | if test "${with_itclconfig+set}" = set; then |
20946 | withval="$with_itclconfig" | |
20947 | with_itclconfig=${withval} | |
bec39cab AC |
20948 | fi; |
20949 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
20950 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
20951 | if test "${ac_cv_c_itclconfig+set}" = set; then | |
20952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20953 | else |
bec39cab | 20954 | |
3fc11d3e JM |
20955 | |
20956 | # First check to see if --with-itclconfig was specified. | |
20957 | if test x"${with_itclconfig}" != x ; then | |
20958 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
20959 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
20960 | else | |
bec39cab AC |
20961 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
20962 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
20963 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20964 | fi |
20965 | fi | |
20966 | ||
20967 | # then check for a private Itcl library | |
20968 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
20969 | for i in \ | |
20970 | ../itcl/itcl \ | |
20971 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
20972 | ../../itcl \ | |
20973 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
20974 | ../../../itcl \ | |
20975 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
20976 | if test -f "$i/itclConfig.sh" ; then | |
20977 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
20978 | break | |
20979 | fi | |
20980 | done | |
20981 | fi | |
20982 | # check in a few common install locations | |
20983 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
20984 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20985 | if test -f "$i/itclConfig.sh" ; then | |
20986 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
20987 | break | |
20988 | fi | |
20989 | done | |
20990 | fi | |
20991 | # check in a few other private locations | |
20992 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
20993 | for i in \ | |
20994 | ${srcdir}/../itcl/itcl \ | |
20995 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
20996 | if test -f "$i/itclConfig.sh" ; then | |
20997 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
20998 | break | |
20999 | fi | |
21000 | done | |
21001 | fi | |
bec39cab | 21002 | |
3fc11d3e JM |
21003 | fi |
21004 | ||
21005 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
21006 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
21007 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
21008 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
21009 | else |
21010 | no_itcl= | |
21011 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
bec39cab AC |
21012 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
21013 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
21014 | fi |
21015 | fi | |
21016 | ||
21017 | if test -z "${no_itcl}"; then | |
bec39cab | 21018 | |
3fc11d3e JM |
21019 | if test -f "$ITCLCONFIG" ; then |
21020 | . $ITCLCONFIG | |
21021 | fi | |
21022 | ||
3fc11d3e | 21023 | |
3fc11d3e JM |
21024 | |
21025 | ||
bec39cab AC |
21026 | |
21027 | ||
21028 | ||
21029 | ||
21030 | ||
21031 | ||
21032 | ||
3fc11d3e JM |
21033 | |
21034 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 21035 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
21036 | fi |
21037 | ||
bec39cab | 21038 | |
3fc11d3e | 21039 | # now look for Itk library stuff |
bec39cab | 21040 | |
3fc11d3e JM |
21041 | # |
21042 | # Ok, lets find the itk configuration | |
bec39cab | 21043 | # First, look for one uninstalled. |
3fc11d3e JM |
21044 | # the alternative search directory is invoked by --with-itkconfig |
21045 | # | |
21046 | ||
21047 | if test x"${no_itk}" = x ; then | |
21048 | # we reset no_itk in case something fails here | |
21049 | no_itk=true | |
bec39cab AC |
21050 | |
21051 | # Check whether --with-itkconfig or --without-itkconfig was given. | |
3fc11d3e JM |
21052 | if test "${with_itkconfig+set}" = set; then |
21053 | withval="$with_itkconfig" | |
21054 | with_itkconfig=${withval} | |
bec39cab AC |
21055 | fi; |
21056 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
21057 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
21058 | if test "${ac_cv_c_itkconfig+set}" = set; then | |
21059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21060 | else |
bec39cab | 21061 | |
3fc11d3e JM |
21062 | |
21063 | # First check to see if --with-itkconfig was specified. | |
21064 | if test x"${with_itkconfig}" != x ; then | |
21065 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
21066 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
21067 | else | |
bec39cab AC |
21068 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
21069 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
21070 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21071 | fi |
21072 | fi | |
21073 | ||
21074 | # then check for a private Itk library | |
21075 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21076 | for i in \ | |
21077 | ../itcl/itk \ | |
21078 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
21079 | ../../itk \ | |
21080 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
21081 | ../../../itk \ | |
21082 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
21083 | if test -f "$i/itkConfig.sh" ; then | |
21084 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
21085 | break | |
21086 | fi | |
21087 | done | |
21088 | fi | |
21089 | # check in a few common install locations | |
21090 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21091 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21092 | if test -f "$i/itkConfig.sh" ; then | |
21093 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
21094 | break | |
21095 | fi | |
21096 | done | |
21097 | fi | |
21098 | # check in a few other private locations | |
21099 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21100 | for i in \ | |
21101 | ${srcdir}/../itcl/itk \ | |
21102 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
21103 | if test -f "$i/itkConfig.sh" ; then | |
21104 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
21105 | break | |
21106 | fi | |
21107 | done | |
21108 | fi | |
bec39cab | 21109 | |
3fc11d3e JM |
21110 | fi |
21111 | ||
21112 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21113 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
21114 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
21115 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
21116 | else |
21117 | no_itk= | |
21118 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
bec39cab AC |
21119 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
21120 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
21121 | fi |
21122 | fi | |
21123 | ||
21124 | ||
bec39cab AC |
21125 | if test -z "${no_itcl}"; then |
21126 | ||
21127 | if test -f "$ITKCONFIG" ; then | |
21128 | . $ITKCONFIG | |
21129 | fi | |
21130 | ||
21131 | ||
21132 | ||
21133 | ||
21134 | ||
21135 | ||
3fc11d3e | 21136 | |
3fc11d3e | 21137 | |
3fc11d3e JM |
21138 | |
21139 | ||
3fc11d3e JM |
21140 | |
21141 | ||
3fc11d3e | 21142 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 21143 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
21144 | fi |
21145 | ||
4226a5a5 | 21146 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
21147 | # Tcl/Tk 8.1 require -fwritable strings. I don't |
21148 | # know whether 8.2 will or not, but I bet it will. | |
21149 | # I don't have to worry about 7.x since we don't support it. | |
21150 | GDBTK_CFLAGS="" | |
21151 | if test "$GCC" = "yes"; then | |
21152 | if test "$TCL_VERSION" != "8.0" ; then | |
21153 | GDBTK_CFLAGS="-fwritable-strings" | |
21154 | fi | |
21155 | fi | |
21156 | ||
21157 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 21158 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
21159 | # Yes, the ordering seems wrong here. But it isn't. |
21160 | # TK_LIBS is the list of libraries that need to be linked | |
21161 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
21162 | # were in LIBS then any link tests after this point would | |
21163 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
21164 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
21165 | |
21166 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
21167 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
21168 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
21169 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
21170 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
21171 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
21172 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
21173 | |
21174 | if test x$gdb_cv_os_cygwin = xyes; then | |
21175 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
21176 | WIN32LDAPP="-Wl,--subsystem,console" | |
21177 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
21178 | fi | |
21179 | fi | |
21180 | fi | |
ffc6a242 | 21181 | |
bec39cab AC |
21182 | |
21183 | ||
21184 | subdirs="$subdirs gdbtk" | |
3ace7edb | 21185 | |
3fc11d3e JM |
21186 | fi |
21187 | ||
21188 | ||
21189 | ||
21190 | ||
21191 | ||
21192 | ||
21193 | ||
21194 | ||
21195 | ||
21196 | ||
21197 | ||
21198 | ||
21199 | ||
dd2504ab | 21200 | |
bec39cab AC |
21201 | echo "$as_me:$LINENO: checking for X" >&5 |
21202 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21203 | ||
c906108c SS |
21204 | |
21205 | # Check whether --with-x or --without-x was given. | |
21206 | if test "${with_x+set}" = set; then | |
21207 | withval="$with_x" | |
c906108c | 21208 | |
bec39cab | 21209 | fi; |
c906108c SS |
21210 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21211 | if test "x$with_x" = xno; then | |
21212 | # The user explicitly disabled X. | |
21213 | have_x=disabled | |
21214 | else | |
21215 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21216 | # Both variables are already set. | |
21217 | have_x=yes | |
21218 | else | |
bec39cab AC |
21219 | if test "${ac_cv_have_x+set}" = set; then |
21220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
21221 | else |
21222 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab AC |
21223 | ac_x_includes=no ac_x_libraries=no |
21224 | rm -fr conftest.dir | |
21225 | if mkdir conftest.dir; then | |
21226 | cd conftest.dir | |
c906108c | 21227 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 21228 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
21229 | acfindx: |
21230 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 21231 | _ACEOF |
c906108c SS |
21232 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
21233 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
21234 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
21235 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
21236 | for ac_extension in a so sl; do | |
21237 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
21238 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21239 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
21240 | fi |
21241 | done | |
21242 | # Screen out bogus values from the imake configuration. They are | |
21243 | # bogus both because they are the default anyway, and because | |
21244 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 21245 | case $ac_im_incroot in |
c906108c | 21246 | /usr/include) ;; |
bec39cab | 21247 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 21248 | esac |
bec39cab | 21249 | case $ac_im_usrlibdir in |
c906108c | 21250 | /usr/lib | /lib) ;; |
bec39cab | 21251 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
21252 | esac |
21253 | fi | |
21254 | cd .. | |
bec39cab | 21255 | rm -fr conftest.dir |
c906108c SS |
21256 | fi |
21257 | ||
bec39cab AC |
21258 | # Standard set of common directories for X headers. |
21259 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21260 | ac_x_header_dirs=' | |
21261 | /usr/X11/include | |
21262 | /usr/X11R6/include | |
21263 | /usr/X11R5/include | |
21264 | /usr/X11R4/include | |
21265 | ||
21266 | /usr/include/X11 | |
21267 | /usr/include/X11R6 | |
21268 | /usr/include/X11R5 | |
21269 | /usr/include/X11R4 | |
21270 | ||
21271 | /usr/local/X11/include | |
21272 | /usr/local/X11R6/include | |
21273 | /usr/local/X11R5/include | |
21274 | /usr/local/X11R4/include | |
21275 | ||
21276 | /usr/local/include/X11 | |
21277 | /usr/local/include/X11R6 | |
21278 | /usr/local/include/X11R5 | |
21279 | /usr/local/include/X11R4 | |
21280 | ||
21281 | /usr/X386/include | |
21282 | /usr/x386/include | |
21283 | /usr/XFree86/include/X11 | |
21284 | ||
21285 | /usr/include | |
21286 | /usr/local/include | |
21287 | /usr/unsupported/include | |
21288 | /usr/athena/include | |
21289 | /usr/local/x11r5/include | |
21290 | /usr/lpp/Xamples/include | |
21291 | ||
21292 | /usr/openwin/include | |
21293 | /usr/openwin/share/include' | |
21294 | ||
21295 | if test "$ac_x_includes" = no; then | |
21296 | # Guess where to find include files, by looking for Intrinsic.h. | |
c906108c | 21297 | # First, try using that file with no special directory specified. |
bec39cab AC |
21298 | cat >conftest.$ac_ext <<_ACEOF |
21299 | /* confdefs.h. */ | |
21300 | _ACEOF | |
21301 | cat confdefs.h >>conftest.$ac_ext | |
21302 | cat >>conftest.$ac_ext <<_ACEOF | |
21303 | /* end confdefs.h. */ | |
21304 | #include <X11/Intrinsic.h> | |
21305 | _ACEOF | |
21306 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21307 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21308 | ac_status=$? | |
21309 | grep -v '^ *+' conftest.er1 >conftest.err | |
21310 | rm -f conftest.er1 | |
21311 | cat conftest.err >&5 | |
21312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21313 | (exit $ac_status); } >/dev/null; then | |
21314 | if test -s conftest.err; then | |
21315 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21316 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21317 | else | |
21318 | ac_cpp_err= | |
21319 | fi | |
21320 | else | |
21321 | ac_cpp_err=yes | |
21322 | fi | |
21323 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
21324 | # We can compile using X headers with no special include directory. |
21325 | ac_x_includes= | |
21326 | else | |
bec39cab AC |
21327 | echo "$as_me: failed program was:" >&5 |
21328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21329 | ||
21330 | for ac_dir in $ac_x_header_dirs; do | |
21331 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
21332 | ac_x_includes=$ac_dir | |
21333 | break | |
21334 | fi | |
21335 | done | |
c906108c | 21336 | fi |
bec39cab AC |
21337 | rm -f conftest.err conftest.$ac_ext |
21338 | fi # $ac_x_includes = no | |
c906108c | 21339 | |
bec39cab | 21340 | if test "$ac_x_libraries" = no; then |
c906108c | 21341 | # Check for the libraries. |
c906108c SS |
21342 | # See if we find them without any special options. |
21343 | # Don't add to $LIBS permanently. | |
bec39cab AC |
21344 | ac_save_LIBS=$LIBS |
21345 | LIBS="-lXt $LIBS" | |
21346 | cat >conftest.$ac_ext <<_ACEOF | |
21347 | /* confdefs.h. */ | |
21348 | _ACEOF | |
21349 | cat confdefs.h >>conftest.$ac_ext | |
21350 | cat >>conftest.$ac_ext <<_ACEOF | |
21351 | /* end confdefs.h. */ | |
21352 | #include <X11/Intrinsic.h> | |
21353 | int | |
21354 | main () | |
21355 | { | |
21356 | XtMalloc (0) | |
21357 | ; | |
21358 | return 0; | |
21359 | } | |
21360 | _ACEOF | |
21361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21363 | (eval $ac_link) 2>conftest.er1 | |
21364 | ac_status=$? | |
21365 | grep -v '^ *+' conftest.er1 >conftest.err | |
21366 | rm -f conftest.er1 | |
21367 | cat conftest.err >&5 | |
21368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21369 | (exit $ac_status); } && | |
21370 | { ac_try='test -z "$ac_c_werror_flag" | |
21371 | || test ! -s conftest.err' | |
21372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21373 | (eval $ac_try) 2>&5 | |
21374 | ac_status=$? | |
21375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21376 | (exit $ac_status); }; } && | |
21377 | { ac_try='test -s conftest$ac_exeext' | |
21378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21379 | (eval $ac_try) 2>&5 | |
21380 | ac_status=$? | |
21381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21382 | (exit $ac_status); }; }; then | |
21383 | LIBS=$ac_save_LIBS | |
c906108c SS |
21384 | # We can link X programs with no special library path. |
21385 | ac_x_libraries= | |
21386 | else | |
bec39cab AC |
21387 | echo "$as_me: failed program was:" >&5 |
21388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21389 | ||
21390 | LIBS=$ac_save_LIBS | |
21391 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
c906108c | 21392 | do |
bec39cab | 21393 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 21394 | for ac_extension in a so sl; do |
bec39cab | 21395 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
21396 | ac_x_libraries=$ac_dir |
21397 | break 2 | |
21398 | fi | |
21399 | done | |
21400 | done | |
21401 | fi | |
bec39cab AC |
21402 | rm -f conftest.err conftest.$ac_objext \ |
21403 | conftest$ac_exeext conftest.$ac_ext | |
21404 | fi # $ac_x_libraries = no | |
c906108c | 21405 | |
bec39cab | 21406 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
21407 | # Didn't find X anywhere. Cache the known absence of X. |
21408 | ac_cv_have_x="have_x=no" | |
21409 | else | |
21410 | # Record where we found X for the cache. | |
21411 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 21412 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
21413 | fi |
21414 | fi | |
bec39cab | 21415 | |
c906108c SS |
21416 | fi |
21417 | eval "$ac_cv_have_x" | |
21418 | fi # $with_x != no | |
21419 | ||
21420 | if test "$have_x" != yes; then | |
bec39cab AC |
21421 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21422 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
21423 | no_x=yes |
21424 | else | |
21425 | # If each of the values was on the command line, it overrides each guess. | |
21426 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21427 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21428 | # Update the cache value to reflect the command line values. | |
21429 | ac_cv_have_x="have_x=yes \ | |
21430 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
bec39cab AC |
21431 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21432 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
21433 | fi |
21434 | ||
21435 | ||
9cc52bde MK |
21436 | # Check whether we should enable the TUI, but only do so if we really |
21437 | # can. | |
21438 | if test x"$enable_tui" = xyes; then | |
21439 | if test -d $srcdir/tui; then | |
21440 | if test "$ac_cv_search_waddstr" != no; then | |
21441 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
21442 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
21443 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
21444 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
21445 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
21446 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
21447 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
21448 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
21449 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
21450 | else | |
bec39cab AC |
21451 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
21452 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
21453 | fi |
21454 | fi | |
21455 | fi | |
21456 | ||
bec39cab AC |
21457 | # Unlike the sim directory, whether a simulator is linked is controlled by |
21458 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
21459 | # This code just checks for a few cases where we'd like to ignore those |
21460 | # definitions, even when they're present in the '.mt' file. These cases | |
21461 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 21462 | # not part of the source tree. |
7a292a7a SS |
21463 | # |
21464 | # Check whether --enable-sim or --disable-sim was given. | |
21465 | if test "${enable_sim+set}" = set; then | |
21466 | enableval="$enable_sim" | |
21467 | echo "enable_sim = $enable_sim"; | |
21468 | echo "enableval = ${enableval}"; | |
21469 | case "${enableval}" in | |
21470 | yes) ignore_sim=false ;; | |
21471 | no) ignore_sim=true ;; | |
21472 | *) ignore_sim=false ;; | |
21473 | esac | |
21474 | else | |
21475 | ignore_sim=false | |
bec39cab | 21476 | fi; |
7a292a7a SS |
21477 | |
21478 | if test ! -d "${srcdir}/../sim"; then | |
21479 | ignore_sim=true | |
21480 | fi | |
21481 | ||
21482 | if test "${ignore_sim}" = "true"; then | |
21483 | IGNORE_SIM="SIM=" | |
21484 | IGNORE_SIM_OBS="SIM_OBS=" | |
21485 | else | |
21486 | IGNORE_SIM="" | |
21487 | IGNORE_SIM_OBS="" | |
bec39cab | 21488 | cat >>confdefs.h <<\_ACEOF |
7a292a7a | 21489 | #define WITH_SIM 1 |
bec39cab | 21490 | _ACEOF |
7a292a7a SS |
21491 | |
21492 | fi | |
21493 | ||
21494 | ||
21495 | ||
c906108c SS |
21496 | |
21497 | ||
21498 | ||
21499 | ||
21500 | ||
21501 | ||
dfcd3bfb | 21502 | |
e56ac5c3 AC |
21503 | |
21504 | ||
b3a90332 AC |
21505 | |
21506 | ||
c35f4ffc | 21507 | # List of host floatformats. |
bec39cab AC |
21508 | |
21509 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21510 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 21511 | _ACEOF |
c35f4ffc | 21512 | |
bec39cab AC |
21513 | |
21514 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21515 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
21516 | _ACEOF |
21517 | ||
c35f4ffc | 21518 | |
bec39cab | 21519 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 21520 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 21521 | _ACEOF |
c35f4ffc AC |
21522 | |
21523 | ||
c906108c SS |
21524 | # target_subdir is used by the testsuite to find the target libraries. |
21525 | target_subdir= | |
21526 | if test "${host}" != "${target}"; then | |
21527 | target_subdir="${target_alias}/" | |
21528 | fi | |
21529 | ||
21530 | ||
21531 | frags= | |
0dad8a66 MK |
21532 | if test "${target}" = "${host}"; then |
21533 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh | |
21534 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
21535 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
21536 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
21537 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
21538 | fi |
21539 | frags="$frags $host_makefile_frag" | |
21540 | else | |
21541 | host_makefile_frag=/dev/null | |
c906108c | 21542 | fi |
c906108c SS |
21543 | |
21544 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
21545 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
21546 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
21547 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
21548 | { (exit 1); exit 1; }; } | |
c906108c SS |
21549 | fi |
21550 | frags="$frags $target_makefile_frag" | |
21551 | ||
21552 | ||
21553 | ||
21554 | ||
21555 | ||
21556 | hostfile=`sed -n ' | |
21557 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
21558 | ' ${host_makefile_frag}` | |
21559 | ||
21560 | targetfile=`sed -n ' | |
2c0fc042 | 21561 | s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
21562 | ' ${target_makefile_frag}` |
21563 | ||
c906108c | 21564 | if test "${target}" = "${host}"; then |
a85f51e7 DJ |
21565 | # We pick this up from the host configuration file (.mh) because we |
21566 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
21567 | nativefile=`sed -n ' |
21568 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
21569 | ' ${host_makefile_frag}` | |
c906108c SS |
21570 | fi |
21571 | ||
21572 | ||
b00a8037 | 21573 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
21574 | |
21575 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 21576 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 21577 | _ACEOF |
b00a8037 DJ |
21578 | |
21579 | fi | |
21580 | ||
8dcde887 MK |
21581 | # Enable multi-ice-gdb-server. |
21582 | # Check whether --enable-multi-ice or --disable-multi-ice was given. | |
21583 | if test "${enable_multi_ice+set}" = set; then | |
21584 | enableval="$enable_multi_ice" | |
21585 | case $enableval in | |
21586 | yes | no) | |
21587 | ;; | |
bec39cab AC |
21588 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
21589 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
21590 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 21591 | esac |
bec39cab | 21592 | fi; |
8dcde887 | 21593 | if test "x$enable_multi_ice" = xyes; then |
bec39cab AC |
21594 | |
21595 | ||
21596 | subdirs="$subdirs multi-ice" | |
3ace7edb | 21597 | |
a85f51e7 DJ |
21598 | fi |
21599 | ||
8dcde887 MK |
21600 | # We only build gdbserver automatically if host and target are the same. |
21601 | if test "x$target" = "x$host"; then | |
bec39cab AC |
21602 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
21603 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 21604 | if test "x$build_gdbserver" = xyes; then |
bec39cab AC |
21605 | echo "$as_me:$LINENO: result: yes" >&5 |
21606 | echo "${ECHO_T}yes" >&6 | |
21607 | ||
21608 | ||
21609 | subdirs="$subdirs gdbserver" | |
3ace7edb | 21610 | |
8dcde887 | 21611 | else |
bec39cab AC |
21612 | echo "$as_me:$LINENO: result: no" >&5 |
21613 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
21614 | fi |
21615 | fi | |
21616 | ||
2c0fc042 AC |
21617 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
21618 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
21619 | # to an empty version. | |
c906108c SS |
21620 | |
21621 | files= | |
21622 | links= | |
5a2402b8 | 21623 | |
c906108c | 21624 | rm -f xm.h |
5a2402b8 | 21625 | xm_h="" |
c906108c | 21626 | if test "${hostfile}" != ""; then |
5a2402b8 | 21627 | xm_h=xm.h |
0f475e27 AC |
21628 | case "${hostfile}" in |
21629 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
21630 | * ) GDB_XM_FILE="${hostfile}" | |
21631 | esac | |
5a2402b8 AC |
21632 | files="${files} ${GDB_XM_FILE}" |
21633 | links="${links} xm.h" | |
bec39cab | 21634 | cat >>confdefs.h <<_ACEOF |
b78960be | 21635 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 21636 | _ACEOF |
5a2402b8 | 21637 | |
c906108c | 21638 | fi |
5a2402b8 AC |
21639 | |
21640 | ||
c906108c | 21641 | rm -f tm.h |
5a2402b8 | 21642 | tm_h="" |
c906108c | 21643 | if test "${targetfile}" != ""; then |
5a2402b8 | 21644 | tm_h=tm.h |
0f475e27 | 21645 | case "${targetfile}" in |
b8c4aece | 21646 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
21647 | * ) GDB_TM_FILE="${targetfile}" |
21648 | esac | |
5a2402b8 AC |
21649 | files="${files} ${GDB_TM_FILE}" |
21650 | links="${links} tm.h" | |
bec39cab | 21651 | cat >>confdefs.h <<_ACEOF |
b78960be | 21652 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 21653 | _ACEOF |
5a2402b8 | 21654 | |
c906108c | 21655 | fi |
5a2402b8 AC |
21656 | |
21657 | ||
c906108c | 21658 | rm -f nm.h |
5a2402b8 | 21659 | nm_h="" |
c906108c | 21660 | if test "${nativefile}" != ""; then |
5a2402b8 | 21661 | nm_h=nm.h |
0f475e27 AC |
21662 | case "${nativefile}" in |
21663 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
21664 | * ) GDB_NM_FILE="${nativefile}" | |
21665 | esac | |
5a2402b8 AC |
21666 | files="${files} ${GDB_NM_FILE}" |
21667 | links="${links} nm.h" | |
bec39cab | 21668 | cat >>confdefs.h <<_ACEOF |
b78960be | 21669 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 21670 | _ACEOF |
5a2402b8 | 21671 | |
c906108c | 21672 | fi |
5a2402b8 AC |
21673 | |
21674 | ||
bec39cab AC |
21675 | ac_sources="$files" |
21676 | ac_dests="$links" | |
21677 | while test -n "$ac_sources"; do | |
21678 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
21679 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
21680 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
21681 | done | |
21682 | ac_config_links="$ac_config_links $ac_config_links_1" | |
c906108c SS |
21683 | |
21684 | ||
c906108c SS |
21685 | |
21686 | ||
c906108c | 21687 | |
c906108c | 21688 | |
bec39cab AC |
21689 | cat >>confdefs.h <<\_ACEOF |
21690 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
21691 | _ACEOF | |
c906108c | 21692 | |
234b45d4 | 21693 | |
234b45d4 KB |
21694 | |
21695 | ||
21696 | ||
bec39cab | 21697 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 KB |
21698 | if test "${with_libiconv_prefix+set}" = set; then |
21699 | withval="$with_libiconv_prefix" | |
bec39cab | 21700 | |
234b45d4 KB |
21701 | for dir in `echo "$withval" | tr : ' '`; do |
21702 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
21703 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
21704 | done | |
234b45d4 | 21705 | |
bec39cab | 21706 | fi; |
234b45d4 | 21707 | |
bec39cab AC |
21708 | echo "$as_me:$LINENO: checking for iconv" >&5 |
21709 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
21710 | if test "${am_cv_func_iconv+set}" = set; then | |
21711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 21712 | else |
bec39cab | 21713 | |
234b45d4 KB |
21714 | am_cv_func_iconv="no, consider installing GNU libiconv" |
21715 | am_cv_lib_iconv=no | |
bec39cab AC |
21716 | cat >conftest.$ac_ext <<_ACEOF |
21717 | /* confdefs.h. */ | |
21718 | _ACEOF | |
21719 | cat confdefs.h >>conftest.$ac_ext | |
21720 | cat >>conftest.$ac_ext <<_ACEOF | |
21721 | /* end confdefs.h. */ | |
234b45d4 KB |
21722 | #include <stdlib.h> |
21723 | #include <iconv.h> | |
bec39cab AC |
21724 | int |
21725 | main () | |
21726 | { | |
234b45d4 KB |
21727 | iconv_t cd = iconv_open("",""); |
21728 | iconv(cd,NULL,NULL,NULL,NULL); | |
21729 | iconv_close(cd); | |
bec39cab AC |
21730 | ; |
21731 | return 0; | |
21732 | } | |
21733 | _ACEOF | |
21734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21736 | (eval $ac_link) 2>conftest.er1 | |
21737 | ac_status=$? | |
21738 | grep -v '^ *+' conftest.er1 >conftest.err | |
21739 | rm -f conftest.er1 | |
21740 | cat conftest.err >&5 | |
21741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21742 | (exit $ac_status); } && | |
21743 | { ac_try='test -z "$ac_c_werror_flag" | |
21744 | || test ! -s conftest.err' | |
21745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21746 | (eval $ac_try) 2>&5 | |
21747 | ac_status=$? | |
21748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21749 | (exit $ac_status); }; } && | |
21750 | { ac_try='test -s conftest$ac_exeext' | |
21751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21752 | (eval $ac_try) 2>&5 | |
21753 | ac_status=$? | |
21754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21755 | (exit $ac_status); }; }; then | |
234b45d4 KB |
21756 | am_cv_func_iconv=yes |
21757 | else | |
bec39cab AC |
21758 | echo "$as_me: failed program was:" >&5 |
21759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21760 | ||
234b45d4 | 21761 | fi |
bec39cab AC |
21762 | rm -f conftest.err conftest.$ac_objext \ |
21763 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
21764 | if test "$am_cv_func_iconv" != yes; then |
21765 | am_save_LIBS="$LIBS" | |
21766 | LIBS="$LIBS -liconv" | |
bec39cab AC |
21767 | cat >conftest.$ac_ext <<_ACEOF |
21768 | /* confdefs.h. */ | |
21769 | _ACEOF | |
21770 | cat confdefs.h >>conftest.$ac_ext | |
21771 | cat >>conftest.$ac_ext <<_ACEOF | |
21772 | /* end confdefs.h. */ | |
234b45d4 KB |
21773 | #include <stdlib.h> |
21774 | #include <iconv.h> | |
bec39cab AC |
21775 | int |
21776 | main () | |
21777 | { | |
234b45d4 KB |
21778 | iconv_t cd = iconv_open("",""); |
21779 | iconv(cd,NULL,NULL,NULL,NULL); | |
21780 | iconv_close(cd); | |
bec39cab AC |
21781 | ; |
21782 | return 0; | |
21783 | } | |
21784 | _ACEOF | |
21785 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21787 | (eval $ac_link) 2>conftest.er1 | |
21788 | ac_status=$? | |
21789 | grep -v '^ *+' conftest.er1 >conftest.err | |
21790 | rm -f conftest.er1 | |
21791 | cat conftest.err >&5 | |
21792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21793 | (exit $ac_status); } && | |
21794 | { ac_try='test -z "$ac_c_werror_flag" | |
21795 | || test ! -s conftest.err' | |
21796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21797 | (eval $ac_try) 2>&5 | |
21798 | ac_status=$? | |
21799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21800 | (exit $ac_status); }; } && | |
21801 | { ac_try='test -s conftest$ac_exeext' | |
21802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21803 | (eval $ac_try) 2>&5 | |
21804 | ac_status=$? | |
21805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21806 | (exit $ac_status); }; }; then | |
234b45d4 KB |
21807 | am_cv_lib_iconv=yes |
21808 | am_cv_func_iconv=yes | |
21809 | else | |
bec39cab AC |
21810 | echo "$as_me: failed program was:" >&5 |
21811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21812 | ||
234b45d4 | 21813 | fi |
bec39cab AC |
21814 | rm -f conftest.err conftest.$ac_objext \ |
21815 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
21816 | LIBS="$am_save_LIBS" |
21817 | fi | |
bec39cab AC |
21818 | |
21819 | fi | |
21820 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
21821 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
21822 | if test "$am_cv_func_iconv" = yes; then | |
21823 | ||
21824 | cat >>confdefs.h <<\_ACEOF | |
21825 | #define HAVE_ICONV 1 | |
21826 | _ACEOF | |
21827 | ||
21828 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 | |
21829 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
21830 | if test "${am_cv_proto_iconv+set}" = set; then | |
21831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21832 | else | |
21833 | ||
21834 | cat >conftest.$ac_ext <<_ACEOF | |
21835 | /* confdefs.h. */ | |
21836 | _ACEOF | |
21837 | cat confdefs.h >>conftest.$ac_ext | |
21838 | cat >>conftest.$ac_ext <<_ACEOF | |
21839 | /* end confdefs.h. */ | |
21840 | ||
21841 | #include <stdlib.h> | |
21842 | #include <iconv.h> | |
21843 | extern | |
21844 | #ifdef __cplusplus | |
21845 | "C" | |
21846 | #endif | |
21847 | #if defined(__STDC__) || defined(__cplusplus) | |
21848 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
21849 | #else | |
21850 | size_t iconv(); | |
21851 | #endif | |
21852 | ||
21853 | int | |
21854 | main () | |
21855 | { | |
21856 | ||
21857 | ; | |
21858 | return 0; | |
21859 | } | |
21860 | _ACEOF | |
21861 | rm -f conftest.$ac_objext | |
21862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21863 | (eval $ac_compile) 2>conftest.er1 | |
21864 | ac_status=$? | |
21865 | grep -v '^ *+' conftest.er1 >conftest.err | |
21866 | rm -f conftest.er1 | |
21867 | cat conftest.err >&5 | |
21868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21869 | (exit $ac_status); } && | |
21870 | { ac_try='test -z "$ac_c_werror_flag" | |
21871 | || test ! -s conftest.err' | |
21872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21873 | (eval $ac_try) 2>&5 | |
21874 | ac_status=$? | |
21875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21876 | (exit $ac_status); }; } && | |
21877 | { ac_try='test -s conftest.$ac_objext' | |
21878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21879 | (eval $ac_try) 2>&5 | |
21880 | ac_status=$? | |
21881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21882 | (exit $ac_status); }; }; then | |
21883 | am_cv_proto_iconv_arg1="" | |
21884 | else | |
21885 | echo "$as_me: failed program was:" >&5 | |
21886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21887 | ||
21888 | am_cv_proto_iconv_arg1="const" | |
21889 | fi | |
21890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21891 | 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);" | |
21892 | fi | |
21893 | ||
21894 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
21895 | echo "$as_me:$LINENO: result: ${ac_t:- | |
21896 | }$am_cv_proto_iconv" >&5 | |
21897 | echo "${ECHO_T}${ac_t:- | |
21898 | }$am_cv_proto_iconv" >&6 | |
21899 | ||
21900 | cat >>confdefs.h <<_ACEOF | |
21901 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
21902 | _ACEOF | |
21903 | ||
21904 | fi | |
21905 | LIBICONV= | |
21906 | if test "$am_cv_lib_iconv" = yes; then | |
21907 | LIBICONV="-liconv" | |
21908 | fi | |
21909 | ||
21910 | ||
21911 | ||
21912 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" | |
21913 | ac_config_commands="$ac_config_commands default" | |
21914 | cat >confcache <<\_ACEOF | |
21915 | # This file is a shell script that caches the results of configure | |
21916 | # tests run on this system so they can be shared between configure | |
21917 | # scripts and configure runs, see configure's option --config-cache. | |
21918 | # It is not useful on other systems. If it contains results you don't | |
21919 | # want to keep, you may remove or edit it. | |
21920 | # | |
21921 | # config.status only pays attention to the cache file if you give it | |
21922 | # the --recheck option to rerun configure. | |
21923 | # | |
21924 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21925 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21926 | # following values. | |
21927 | ||
21928 | _ACEOF | |
21929 | ||
21930 | # The following way of writing the cache mishandles newlines in values, | |
21931 | # but we know of no workaround that is simple, portable, and efficient. | |
21932 | # So, don't put newlines in cache variables' values. | |
21933 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21934 | # and sets the high bit in the cache file unless we assign to the vars. | |
21935 | { | |
21936 | (set) 2>&1 | | |
21937 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21938 | *ac_space=\ *) | |
21939 | # `set' does not quote correctly, so add quotes (double-quote | |
21940 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21941 | sed -n \ | |
21942 | "s/'/'\\\\''/g; | |
21943 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21944 | ;; | |
21945 | *) | |
21946 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21947 | sed -n \ | |
21948 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
21949 | ;; | |
21950 | esac; | |
21951 | } | | |
21952 | sed ' | |
21953 | t clear | |
21954 | : clear | |
21955 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21956 | t end | |
21957 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21958 | : end' >>confcache | |
21959 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21960 | if test -w $cache_file; then | |
21961 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21962 | cat confcache >$cache_file | |
21963 | else | |
21964 | echo "not updating unwritable cache $cache_file" | |
21965 | fi | |
21966 | fi | |
21967 | rm -f confcache | |
21968 | ||
21969 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21970 | # Let make expand exec_prefix. | |
21971 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21972 | ||
21973 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
21974 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21975 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21976 | # (actually we leave an empty line to preserve line numbers). | |
21977 | if test "x$srcdir" = x.; then | |
21978 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
21979 | s/:*\$(srcdir):*/:/; | |
21980 | s/:*\${srcdir}:*/:/; | |
21981 | s/:*@srcdir@:*/:/; | |
21982 | s/^\([^=]*=[ ]*\):*/\1/; | |
21983 | s/:*$//; | |
21984 | s/^[^=]*=[ ]*$//; | |
21985 | }' | |
21986 | fi | |
21987 | ||
21988 | DEFS=-DHAVE_CONFIG_H | |
21989 | ||
21990 | ac_libobjs= | |
21991 | ac_ltlibobjs= | |
21992 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21993 | # 1. Remove the extension, and $U if already installed. | |
21994 | ac_i=`echo "$ac_i" | | |
21995 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
21996 | # 2. Add them. | |
21997 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21998 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21999 | done | |
22000 | LIBOBJS=$ac_libobjs | |
22001 | ||
22002 | LTLIBOBJS=$ac_ltlibobjs | |
22003 | ||
22004 | ||
22005 | ||
22006 | : ${CONFIG_STATUS=./config.status} | |
22007 | ac_clean_files_save=$ac_clean_files | |
22008 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
22009 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
22010 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
22011 | cat >$CONFIG_STATUS <<_ACEOF | |
22012 | #! $SHELL | |
22013 | # Generated by $as_me. | |
22014 | # Run this file to recreate the current configuration. | |
22015 | # Compiler output produced by configure, useful for debugging | |
22016 | # configure, is in config.log if it exists. | |
22017 | ||
22018 | debug=false | |
22019 | ac_cs_recheck=false | |
22020 | ac_cs_silent=false | |
22021 | SHELL=\${CONFIG_SHELL-$SHELL} | |
22022 | _ACEOF | |
22023 | ||
22024 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22025 | ## --------------------- ## | |
22026 | ## M4sh Initialization. ## | |
22027 | ## --------------------- ## | |
22028 | ||
22029 | # Be Bourne compatible | |
22030 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
22031 | emulate sh | |
22032 | NULLCMD=: | |
22033 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
22034 | # is contrary to our usage. Disable this feature. | |
22035 | alias -g '${1+"$@"}'='"$@"' | |
22036 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
22037 | set -o posix | |
22038 | fi | |
22039 | DUALCASE=1; export DUALCASE # for MKS sh | |
22040 | ||
22041 | # Support unset when possible. | |
22042 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
22043 | as_unset=unset | |
22044 | else | |
22045 | as_unset=false | |
22046 | fi | |
22047 | ||
22048 | ||
22049 | # Work around bugs in pre-3.0 UWIN ksh. | |
22050 | $as_unset ENV MAIL MAILPATH | |
22051 | PS1='$ ' | |
22052 | PS2='> ' | |
22053 | PS4='+ ' | |
22054 | ||
22055 | # NLS nuisances. | |
22056 | for as_var in \ | |
22057 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
22058 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
22059 | LC_TELEPHONE LC_TIME | |
22060 | do | |
22061 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
22062 | eval $as_var=C; export $as_var | |
22063 | else | |
22064 | $as_unset $as_var | |
22065 | fi | |
22066 | done | |
22067 | ||
22068 | # Required to use basename. | |
22069 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
22070 | as_expr=expr | |
22071 | else | |
22072 | as_expr=false | |
22073 | fi | |
22074 | ||
22075 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
22076 | as_basename=basename | |
22077 | else | |
22078 | as_basename=false | |
22079 | fi | |
22080 | ||
22081 | ||
22082 | # Name of the executable. | |
22083 | as_me=`$as_basename "$0" || | |
22084 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
22085 | X"$0" : 'X\(//\)$' \| \ | |
22086 | X"$0" : 'X\(/\)$' \| \ | |
22087 | . : '\(.\)' 2>/dev/null || | |
22088 | echo X/"$0" | | |
22089 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
22090 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
22091 | /^X\/\(\/\).*/{ s//\1/; q; } | |
22092 | s/.*/./; q'` | |
22093 | ||
22094 | ||
22095 | # PATH needs CR, and LINENO needs CR and PATH. | |
22096 | # Avoid depending upon Character Ranges. | |
22097 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
22098 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
22099 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
22100 | as_cr_digits='0123456789' | |
22101 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
22102 | ||
22103 | # The user is always right. | |
22104 | if test "${PATH_SEPARATOR+set}" != set; then | |
22105 | echo "#! /bin/sh" >conf$$.sh | |
22106 | echo "exit 0" >>conf$$.sh | |
22107 | chmod +x conf$$.sh | |
22108 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
22109 | PATH_SEPARATOR=';' | |
22110 | else | |
22111 | PATH_SEPARATOR=: | |
22112 | fi | |
22113 | rm -f conf$$.sh | |
22114 | fi | |
22115 | ||
22116 | ||
22117 | as_lineno_1=$LINENO | |
22118 | as_lineno_2=$LINENO | |
22119 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
22120 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
22121 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
22122 | # Find who we are. Look in the path if we contain no path at all | |
22123 | # relative or not. | |
22124 | case $0 in | |
22125 | *[\\/]* ) as_myself=$0 ;; | |
22126 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22127 | for as_dir in $PATH | |
22128 | do | |
22129 | IFS=$as_save_IFS | |
22130 | test -z "$as_dir" && as_dir=. | |
22131 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
22132 | done | |
22133 | ||
22134 | ;; | |
22135 | esac | |
22136 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
22137 | # in which case we are not to be found in the path. | |
22138 | if test "x$as_myself" = x; then | |
22139 | as_myself=$0 | |
22140 | fi | |
22141 | if test ! -f "$as_myself"; then | |
22142 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
22143 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
22144 | { (exit 1); exit 1; }; } | |
22145 | fi | |
22146 | case $CONFIG_SHELL in | |
22147 | '') | |
22148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22149 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
22150 | do | |
22151 | IFS=$as_save_IFS | |
22152 | test -z "$as_dir" && as_dir=. | |
22153 | for as_base in sh bash ksh sh5; do | |
22154 | case $as_dir in | |
22155 | /*) | |
22156 | if ("$as_dir/$as_base" -c ' | |
22157 | as_lineno_1=$LINENO | |
22158 | as_lineno_2=$LINENO | |
22159 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
22160 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
22161 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
22162 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
22163 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
22164 | CONFIG_SHELL=$as_dir/$as_base | |
22165 | export CONFIG_SHELL | |
22166 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
22167 | fi;; | |
22168 | esac | |
22169 | done | |
22170 | done | |
22171 | ;; | |
22172 | esac | |
22173 | ||
22174 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
22175 | # uniformly replaced by the line number. The first 'sed' inserts a | |
22176 | # line-number line before each line; the second 'sed' does the real | |
22177 | # work. The second script uses 'N' to pair each line-number line | |
22178 | # with the numbered line, and appends trailing '-' during | |
22179 | # substitution so that $LINENO is not a special case at line end. | |
22180 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
22181 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
22182 | sed '=' <$as_myself | | |
22183 | sed ' | |
22184 | N | |
22185 | s,$,-, | |
22186 | : loop | |
22187 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
22188 | t loop | |
22189 | s,-$,, | |
22190 | s,^['$as_cr_digits']*\n,, | |
22191 | ' >$as_me.lineno && | |
22192 | chmod +x $as_me.lineno || | |
22193 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
22194 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
22195 | { (exit 1); exit 1; }; } | |
22196 | ||
22197 | # Don't try to exec as it changes $[0], causing all sort of problems | |
22198 | # (the dirname of $[0] is not the place where we might find the | |
22199 | # original and so on. Autoconf is especially sensible to this). | |
22200 | . ./$as_me.lineno | |
22201 | # Exit status is that of the last command. | |
22202 | exit | |
22203 | } | |
22204 | ||
22205 | ||
22206 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
22207 | *c*,-n*) ECHO_N= ECHO_C=' | |
22208 | ' ECHO_T=' ' ;; | |
22209 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
22210 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
22211 | esac | |
22212 | ||
22213 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
22214 | as_expr=expr | |
22215 | else | |
22216 | as_expr=false | |
22217 | fi | |
22218 | ||
22219 | rm -f conf$$ conf$$.exe conf$$.file | |
22220 | echo >conf$$.file | |
22221 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
22222 | # We could just check for DJGPP; but this test a) works b) is more generic | |
22223 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
22224 | if test -f conf$$.exe; then | |
22225 | # Don't use ln at all; we don't have any links | |
22226 | as_ln_s='cp -p' | |
22227 | else | |
22228 | as_ln_s='ln -s' | |
22229 | fi | |
22230 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
22231 | as_ln_s=ln | |
22232 | else | |
22233 | as_ln_s='cp -p' | |
22234 | fi | |
22235 | rm -f conf$$ conf$$.exe conf$$.file | |
22236 | ||
22237 | if mkdir -p . 2>/dev/null; then | |
22238 | as_mkdir_p=: | |
22239 | else | |
22240 | test -d ./-p && rmdir ./-p | |
22241 | as_mkdir_p=false | |
22242 | fi | |
22243 | ||
22244 | as_executable_p="test -f" | |
22245 | ||
22246 | # Sed expression to map a string onto a valid CPP name. | |
22247 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22248 | ||
22249 | # Sed expression to map a string onto a valid variable name. | |
22250 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22251 | ||
22252 | ||
22253 | # IFS | |
22254 | # We need space, tab and new line, in precisely that order. | |
22255 | as_nl=' | |
22256 | ' | |
22257 | IFS=" $as_nl" | |
22258 | ||
22259 | # CDPATH. | |
22260 | $as_unset CDPATH | |
22261 | ||
22262 | exec 6>&1 | |
22263 | ||
22264 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
22265 | # report actual input values of CONFIG_FILES etc. instead of their | |
22266 | # values after options handling. Logging --version etc. is OK. | |
22267 | exec 5>>config.log | |
22268 | { | |
22269 | echo | |
22270 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22271 | ## Running $as_me. ## | |
22272 | _ASBOX | |
22273 | } >&5 | |
22274 | cat >&5 <<_CSEOF | |
22275 | ||
22276 | This file was extended by $as_me, which was | |
22277 | generated by GNU Autoconf 2.59. Invocation command line was | |
22278 | ||
22279 | CONFIG_FILES = $CONFIG_FILES | |
22280 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22281 | CONFIG_LINKS = $CONFIG_LINKS | |
22282 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22283 | $ $0 $@ | |
22284 | ||
22285 | _CSEOF | |
22286 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
22287 | echo >&5 | |
22288 | _ACEOF | |
22289 | ||
22290 | # Files that config.status was made for. | |
22291 | if test -n "$ac_config_files"; then | |
22292 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
22293 | fi | |
22294 | ||
22295 | if test -n "$ac_config_headers"; then | |
22296 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
22297 | fi | |
22298 | ||
22299 | if test -n "$ac_config_links"; then | |
22300 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
234b45d4 KB |
22301 | fi |
22302 | ||
bec39cab AC |
22303 | if test -n "$ac_config_commands"; then |
22304 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
22305 | fi | |
234b45d4 | 22306 | |
bec39cab | 22307 | cat >>$CONFIG_STATUS <<\_ACEOF |
234b45d4 | 22308 | |
bec39cab AC |
22309 | ac_cs_usage="\ |
22310 | \`$as_me' instantiates files from templates according to the | |
22311 | current configuration. | |
234b45d4 | 22312 | |
bec39cab | 22313 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 22314 | |
bec39cab AC |
22315 | -h, --help print this help, then exit |
22316 | -V, --version print version number, then exit | |
22317 | -q, --quiet do not print progress messages | |
22318 | -d, --debug don't remove temporary files | |
22319 | --recheck update $as_me by reconfiguring in the same conditions | |
22320 | --file=FILE[:TEMPLATE] | |
22321 | instantiate the configuration file FILE | |
22322 | --header=FILE[:TEMPLATE] | |
22323 | instantiate the configuration header FILE | |
234b45d4 | 22324 | |
bec39cab AC |
22325 | Configuration files: |
22326 | $config_files | |
234b45d4 | 22327 | |
bec39cab AC |
22328 | Configuration headers: |
22329 | $config_headers | |
234b45d4 | 22330 | |
bec39cab AC |
22331 | Configuration links: |
22332 | $config_links | |
234b45d4 | 22333 | |
bec39cab AC |
22334 | Configuration commands: |
22335 | $config_commands | |
22336 | ||
22337 | Report bugs to <bug-autoconf@gnu.org>." | |
22338 | _ACEOF | |
22339 | ||
22340 | cat >>$CONFIG_STATUS <<_ACEOF | |
22341 | ac_cs_version="\\ | |
22342 | config.status | |
22343 | configured by $0, generated by GNU Autoconf 2.59, | |
22344 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
22345 | ||
22346 | Copyright (C) 2003 Free Software Foundation, Inc. | |
22347 | This config.status script is free software; the Free Software Foundation | |
22348 | gives unlimited permission to copy, distribute and modify it." | |
22349 | srcdir=$srcdir | |
22350 | INSTALL="$INSTALL" | |
22351 | _ACEOF | |
22352 | ||
22353 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22354 | # If no file are specified by the user, then we need to provide default | |
22355 | # value. By we need to know if files were specified by the user. | |
22356 | ac_need_defaults=: | |
22357 | while test $# != 0 | |
22358 | do | |
22359 | case $1 in | |
22360 | --*=*) | |
22361 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
22362 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
22363 | ac_shift=: | |
c906108c | 22364 | ;; |
bec39cab AC |
22365 | -*) |
22366 | ac_option=$1 | |
22367 | ac_optarg=$2 | |
22368 | ac_shift=shift | |
c906108c | 22369 | ;; |
bec39cab AC |
22370 | *) # This is not an option, so the user has probably given explicit |
22371 | # arguments. | |
22372 | ac_option=$1 | |
22373 | ac_need_defaults=false;; | |
22374 | esac | |
c906108c | 22375 | |
bec39cab AC |
22376 | case $ac_option in |
22377 | # Handling of the options. | |
22378 | _ACEOF | |
22379 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22380 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22381 | ac_cs_recheck=: ;; | |
22382 | --version | --vers* | -V ) | |
22383 | echo "$ac_cs_version"; exit 0 ;; | |
22384 | --he | --h) | |
22385 | # Conflict between --help and --header | |
22386 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
22387 | Try \`$0 --help' for more information." >&5 | |
22388 | echo "$as_me: error: ambiguous option: $1 | |
22389 | Try \`$0 --help' for more information." >&2;} | |
22390 | { (exit 1); exit 1; }; };; | |
22391 | --help | --hel | -h ) | |
22392 | echo "$ac_cs_usage"; exit 0 ;; | |
22393 | --debug | --d* | -d ) | |
22394 | debug=: ;; | |
22395 | --file | --fil | --fi | --f ) | |
22396 | $ac_shift | |
22397 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
22398 | ac_need_defaults=false;; | |
22399 | --header | --heade | --head | --hea ) | |
22400 | $ac_shift | |
22401 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
22402 | ac_need_defaults=false;; | |
22403 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22404 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22405 | ac_cs_silent=: ;; | |
c906108c | 22406 | |
bec39cab AC |
22407 | # This is an error. |
22408 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
22409 | Try \`$0 --help' for more information." >&5 | |
22410 | echo "$as_me: error: unrecognized option: $1 | |
22411 | Try \`$0 --help' for more information." >&2;} | |
22412 | { (exit 1); exit 1; }; } ;; | |
c906108c | 22413 | |
bec39cab | 22414 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 22415 | |
bec39cab AC |
22416 | esac |
22417 | shift | |
22418 | done | |
c906108c | 22419 | |
bec39cab | 22420 | ac_configure_extra_args= |
c906108c | 22421 | |
bec39cab AC |
22422 | if $ac_cs_silent; then |
22423 | exec 6>/dev/null | |
22424 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22425 | fi | |
c906108c | 22426 | |
bec39cab AC |
22427 | _ACEOF |
22428 | cat >>$CONFIG_STATUS <<_ACEOF | |
22429 | if \$ac_cs_recheck; then | |
22430 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
22431 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22432 | fi | |
22433 | ||
22434 | _ACEOF | |
22435 | ||
22436 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 22437 | # |
bec39cab | 22438 | # INIT-COMMANDS section. |
c906108c | 22439 | # |
c906108c | 22440 | |
bec39cab AC |
22441 | |
22442 | gdb_host_cpu=$gdb_host_cpu | |
22443 | gdb_target_cpu=$gdb_target_cpu | |
22444 | nativefile=$nativefile | |
22445 | ||
22446 | ||
22447 | _ACEOF | |
22448 | ||
22449 | ||
22450 | ||
22451 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22452 | for ac_config_target in $ac_config_targets | |
c906108c | 22453 | do |
bec39cab AC |
22454 | case "$ac_config_target" in |
22455 | # Handling of arguments. | |
22456 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22457 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
22458 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
22459 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
22460 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
22461 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
22462 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
22463 | { (exit 1); exit 1; }; };; | |
c906108c SS |
22464 | esac |
22465 | done | |
22466 | ||
bec39cab AC |
22467 | # If the user did not use the arguments to specify the items to instantiate, |
22468 | # then the envvar interface is used. Set only those that are not. | |
22469 | # We use the long form for the default assignment because of an extremely | |
22470 | # bizarre bug on SunOS 4.1.3. | |
22471 | if $ac_need_defaults; then | |
22472 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22473 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22474 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
22475 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22476 | fi | |
22477 | ||
22478 | # Have a temporary directory for convenience. Make it in the build tree | |
22479 | # simply because there is no reason to put it here, and in addition, | |
22480 | # creating and moving files from /tmp can sometimes cause problems. | |
22481 | # Create a temporary directory, and hook for its removal unless debugging. | |
22482 | $debug || | |
22483 | { | |
22484 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
22485 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
22486 | } | |
c906108c | 22487 | |
bec39cab | 22488 | # Create a (secure) tmp directory for tmp files. |
c906108c | 22489 | |
bec39cab AC |
22490 | { |
22491 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
22492 | test -n "$tmp" && test -d "$tmp" | |
22493 | } || | |
22494 | { | |
22495 | tmp=./confstat$$-$RANDOM | |
22496 | (umask 077 && mkdir $tmp) | |
22497 | } || | |
22498 | { | |
22499 | echo "$me: cannot create a temporary directory in ." >&2 | |
22500 | { (exit 1); exit 1; } | |
22501 | } | |
22502 | ||
22503 | _ACEOF | |
22504 | ||
22505 | cat >>$CONFIG_STATUS <<_ACEOF | |
22506 | ||
22507 | # | |
22508 | # CONFIG_FILES section. | |
22509 | # | |
22510 | ||
22511 | # No need to generate the scripts if there are no CONFIG_FILES. | |
22512 | # This happens for instance when ./config.status config.h | |
22513 | if test -n "\$CONFIG_FILES"; then | |
22514 | # Protect against being on the right side of a sed subst in config.status. | |
22515 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
22516 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
22517 | s,@SHELL@,$SHELL,;t t | |
22518 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
22519 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
22520 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
22521 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
22522 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
22523 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
22524 | s,@exec_prefix@,$exec_prefix,;t t | |
22525 | s,@prefix@,$prefix,;t t | |
22526 | s,@program_transform_name@,$program_transform_name,;t t | |
22527 | s,@bindir@,$bindir,;t t | |
22528 | s,@sbindir@,$sbindir,;t t | |
22529 | s,@libexecdir@,$libexecdir,;t t | |
22530 | s,@datadir@,$datadir,;t t | |
22531 | s,@sysconfdir@,$sysconfdir,;t t | |
22532 | s,@sharedstatedir@,$sharedstatedir,;t t | |
22533 | s,@localstatedir@,$localstatedir,;t t | |
22534 | s,@libdir@,$libdir,;t t | |
22535 | s,@includedir@,$includedir,;t t | |
22536 | s,@oldincludedir@,$oldincludedir,;t t | |
22537 | s,@infodir@,$infodir,;t t | |
22538 | s,@mandir@,$mandir,;t t | |
22539 | s,@build_alias@,$build_alias,;t t | |
22540 | s,@host_alias@,$host_alias,;t t | |
22541 | s,@target_alias@,$target_alias,;t t | |
22542 | s,@DEFS@,$DEFS,;t t | |
22543 | s,@ECHO_C@,$ECHO_C,;t t | |
22544 | s,@ECHO_N@,$ECHO_N,;t t | |
22545 | s,@ECHO_T@,$ECHO_T,;t t | |
22546 | s,@LIBS@,$LIBS,;t t | |
22547 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
22548 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
22549 | s,@MAINT@,$MAINT,;t t | |
22550 | s,@CC@,$CC,;t t | |
22551 | s,@CFLAGS@,$CFLAGS,;t t | |
22552 | s,@LDFLAGS@,$LDFLAGS,;t t | |
22553 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
22554 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
22555 | s,@EXEEXT@,$EXEEXT,;t t | |
22556 | s,@OBJEXT@,$OBJEXT,;t t | |
22557 | s,@CPP@,$CPP,;t t | |
22558 | s,@EGREP@,$EGREP,;t t | |
22559 | s,@build@,$build,;t t | |
22560 | s,@build_cpu@,$build_cpu,;t t | |
22561 | s,@build_vendor@,$build_vendor,;t t | |
22562 | s,@build_os@,$build_os,;t t | |
22563 | s,@host@,$host,;t t | |
22564 | s,@host_cpu@,$host_cpu,;t t | |
22565 | s,@host_vendor@,$host_vendor,;t t | |
22566 | s,@host_os@,$host_os,;t t | |
22567 | s,@target@,$target,;t t | |
22568 | s,@target_cpu@,$target_cpu,;t t | |
22569 | s,@target_vendor@,$target_vendor,;t t | |
22570 | s,@target_os@,$target_os,;t t | |
22571 | s,@RANLIB@,$RANLIB,;t t | |
22572 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
22573 | s,@SET_MAKE@,$SET_MAKE,;t t | |
22574 | s,@ALLOCA@,$ALLOCA,;t t | |
22575 | s,@USE_NLS@,$USE_NLS,;t t | |
22576 | s,@MSGFMT@,$MSGFMT,;t t | |
22577 | s,@GMSGFMT@,$GMSGFMT,;t t | |
22578 | s,@XGETTEXT@,$XGETTEXT,;t t | |
22579 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
22580 | s,@CATALOGS@,$CATALOGS,;t t | |
22581 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
22582 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
22583 | s,@GMOFILES@,$GMOFILES,;t t | |
22584 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
22585 | s,@INTLDEPS@,$INTLDEPS,;t t | |
22586 | s,@INTLLIBS@,$INTLLIBS,;t t | |
22587 | s,@INTLOBJS@,$INTLOBJS,;t t | |
22588 | s,@POFILES@,$POFILES,;t t | |
22589 | s,@POSUB@,$POSUB,;t t | |
22590 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
22591 | s,@GT_NO@,$GT_NO,;t t | |
22592 | s,@GT_YES@,$GT_YES,;t t | |
22593 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
22594 | s,@l@,$l,;t t | |
22595 | s,@localedir@,$localedir,;t t | |
22596 | s,@PACKAGE@,$PACKAGE,;t t | |
22597 | s,@subdirs@,$subdirs,;t t | |
22598 | s,@AWK@,$AWK,;t t | |
22599 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
22600 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22601 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
22602 | s,@LN_S@,$LN_S,;t t | |
22603 | s,@YACC@,$YACC,;t t | |
22604 | s,@AR@,$AR,;t t | |
22605 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
22606 | s,@DLLTOOL@,$DLLTOOL,;t t | |
22607 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
22608 | s,@WINDRES@,$WINDRES,;t t | |
22609 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
22610 | s,@MIG@,$MIG,;t t | |
22611 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
22612 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t | |
22613 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
22614 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
22615 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
22616 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
22617 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
22618 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
22619 | s,@LIBGUI@,$LIBGUI,;t t | |
22620 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
22621 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
22622 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
22623 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
22624 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
22625 | s,@TCL_CC@,$TCL_CC,;t t | |
22626 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
22627 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
22628 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
22629 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
22630 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
22631 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
22632 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
22633 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
22634 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
22635 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
22636 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
22637 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
22638 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
22639 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
22640 | s,@TK_VERSION@,$TK_VERSION,;t t | |
22641 | s,@TK_DEFS@,$TK_DEFS,;t t | |
22642 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
22643 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
22644 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
22645 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
22646 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
22647 | s,@TCLHDIR@,$TCLHDIR,;t t | |
22648 | s,@TKHDIR@,$TKHDIR,;t t | |
22649 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
22650 | s,@ITKHDIR@,$ITKHDIR,;t t | |
22651 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
22652 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
22653 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
22654 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
22655 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
22656 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
22657 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
22658 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
22659 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
22660 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
22661 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
22662 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
22663 | s,@X_LIBS@,$X_LIBS,;t t | |
22664 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
22665 | s,@TK_DEPS@,$TK_DEPS,;t t | |
22666 | s,@ITCLLIB@,$ITCLLIB,;t t | |
22667 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
22668 | s,@ITKLIB@,$ITKLIB,;t t | |
22669 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
22670 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
22671 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
22672 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
22673 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t | |
22674 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t | |
22675 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t | |
22676 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
22677 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
22678 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
22679 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
22680 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
22681 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
22682 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
22683 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
22684 | s,@target_subdir@,$target_subdir,;t t | |
22685 | s,@frags@,$frags,;t t | |
22686 | s,@xm_h@,$xm_h,;t t | |
22687 | s,@tm_h@,$tm_h,;t t | |
22688 | s,@nm_h@,$nm_h,;t t | |
22689 | s,@LIBICONV@,$LIBICONV,;t t | |
22690 | s,@LIBOBJS@,$LIBOBJS,;t t | |
22691 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
c906108c | 22692 | /@host_makefile_frag@/r $host_makefile_frag |
bec39cab | 22693 | s,@host_makefile_frag@,,;t t |
c906108c | 22694 | /@target_makefile_frag@/r $target_makefile_frag |
bec39cab | 22695 | s,@target_makefile_frag@,,;t t |
c906108c | 22696 | CEOF |
bec39cab AC |
22697 | |
22698 | _ACEOF | |
22699 | ||
22700 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22701 | # Split the substitutions into bite-sized pieces for seds with | |
22702 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22703 | ac_max_sed_lines=48 | |
22704 | ac_sed_frag=1 # Number of current file. | |
22705 | ac_beg=1 # First line for current file. | |
22706 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22707 | ac_more_lines=: | |
22708 | ac_sed_cmds= | |
22709 | while $ac_more_lines; do | |
22710 | if test $ac_beg -gt 1; then | |
22711 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22712 | else | |
22713 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22714 | fi | |
22715 | if test ! -s $tmp/subs.frag; then | |
22716 | ac_more_lines=false | |
c906108c | 22717 | else |
bec39cab AC |
22718 | # The purpose of the label and of the branching condition is to |
22719 | # speed up the sed processing (if there are no `@' at all, there | |
22720 | # is no need to browse any of the substitutions). | |
22721 | # These are the two extra sed commands mentioned above. | |
22722 | (echo ':t | |
22723 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22724 | if test -z "$ac_sed_cmds"; then | |
22725 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
22726 | else | |
22727 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
22728 | fi | |
22729 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22730 | ac_beg=$ac_end | |
22731 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
c906108c | 22732 | fi |
bec39cab AC |
22733 | done |
22734 | if test -z "$ac_sed_cmds"; then | |
22735 | ac_sed_cmds=cat | |
c906108c | 22736 | fi |
bec39cab | 22737 | fi # test -n "$CONFIG_FILES" |
c906108c | 22738 | |
bec39cab AC |
22739 | _ACEOF |
22740 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22741 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c906108c | 22742 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
bec39cab AC |
22743 | case $ac_file in |
22744 | - | *:- | *:-:* ) # input from stdin | |
22745 | cat >$tmp/stdin | |
22746 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22747 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22748 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22749 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22750 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
22751 | esac |
22752 | ||
bec39cab AC |
22753 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
22754 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22755 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22756 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22757 | X"$ac_file" : 'X\(//\)$' \| \ | |
22758 | X"$ac_file" : 'X\(/\)' \| \ | |
22759 | . : '\(.\)' 2>/dev/null || | |
22760 | echo X"$ac_file" | | |
22761 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22762 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22763 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22764 | /^X\(\/\).*/{ s//\1/; q; } | |
22765 | s/.*/./; q'` | |
22766 | { if $as_mkdir_p; then | |
22767 | mkdir -p "$ac_dir" | |
c906108c | 22768 | else |
bec39cab AC |
22769 | as_dir="$ac_dir" |
22770 | as_dirs= | |
22771 | while test ! -d "$as_dir"; do | |
22772 | as_dirs="$as_dir $as_dirs" | |
22773 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22774 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22775 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22776 | X"$as_dir" : 'X\(//\)$' \| \ | |
22777 | X"$as_dir" : 'X\(/\)' \| \ | |
22778 | . : '\(.\)' 2>/dev/null || | |
22779 | echo X"$as_dir" | | |
22780 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22781 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22782 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22783 | /^X\(\/\).*/{ s//\1/; q; } | |
22784 | s/.*/./; q'` | |
22785 | done | |
22786 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22787 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22788 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22789 | { (exit 1); exit 1; }; }; } | |
c906108c | 22790 | |
bec39cab AC |
22791 | ac_builddir=. |
22792 | ||
22793 | if test "$ac_dir" != .; then | |
22794 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22795 | # A "../" for each directory in $ac_dir_suffix. | |
22796 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22797 | else | |
22798 | ac_dir_suffix= ac_top_builddir= | |
22799 | fi | |
22800 | ||
22801 | case $srcdir in | |
22802 | .) # No --srcdir option. We are building in place. | |
22803 | ac_srcdir=. | |
22804 | if test -z "$ac_top_builddir"; then | |
22805 | ac_top_srcdir=. | |
22806 | else | |
22807 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22808 | fi ;; | |
22809 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22810 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22811 | ac_top_srcdir=$srcdir ;; | |
c906108c | 22812 | *) # Relative path. |
bec39cab AC |
22813 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
22814 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22815 | esac | |
22816 | ||
22817 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22818 | # the directories may not exist. | |
22819 | case `pwd` in | |
22820 | .) ac_abs_builddir="$ac_dir";; | |
22821 | *) | |
22822 | case "$ac_dir" in | |
22823 | .) ac_abs_builddir=`pwd`;; | |
22824 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22825 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22826 | esac;; | |
22827 | esac | |
22828 | case $ac_abs_builddir in | |
22829 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22830 | *) | |
22831 | case ${ac_top_builddir}. in | |
22832 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22833 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22834 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22835 | esac;; | |
22836 | esac | |
22837 | case $ac_abs_builddir in | |
22838 | .) ac_abs_srcdir=$ac_srcdir;; | |
22839 | *) | |
22840 | case $ac_srcdir in | |
22841 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22842 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22843 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22844 | esac;; | |
22845 | esac | |
22846 | case $ac_abs_builddir in | |
22847 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22848 | *) | |
22849 | case $ac_top_srcdir in | |
22850 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22851 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22852 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22853 | esac;; | |
22854 | esac | |
c906108c | 22855 | |
c906108c | 22856 | |
bec39cab AC |
22857 | case $INSTALL in |
22858 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22859 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
22860 | esac |
22861 | ||
bec39cab AC |
22862 | if test x"$ac_file" != x-; then |
22863 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22864 | echo "$as_me: creating $ac_file" >&6;} | |
22865 | rm -f "$ac_file" | |
22866 | fi | |
22867 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22868 | # use $as_me), people would be surprised to read: | |
22869 | # /* config.h. Generated by config.status. */ | |
22870 | if test x"$ac_file" = x-; then | |
22871 | configure_input= | |
22872 | else | |
22873 | configure_input="$ac_file. " | |
22874 | fi | |
22875 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
22876 | sed 's,.*/,,'` by configure." | |
22877 | ||
22878 | # First look for the input files in the build tree, otherwise in the | |
22879 | # src tree. | |
22880 | ac_file_inputs=`IFS=: | |
22881 | for f in $ac_file_in; do | |
22882 | case $f in | |
22883 | -) echo $tmp/stdin ;; | |
22884 | [\\/$]*) | |
22885 | # Absolute (can't be DOS-style, as IFS=:) | |
22886 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22887 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22888 | { (exit 1); exit 1; }; } | |
22889 | echo "$f";; | |
22890 | *) # Relative | |
22891 | if test -f "$f"; then | |
22892 | # Build tree | |
22893 | echo "$f" | |
22894 | elif test -f "$srcdir/$f"; then | |
22895 | # Source tree | |
22896 | echo "$srcdir/$f" | |
22897 | else | |
22898 | # /dev/null tree | |
22899 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22900 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22901 | { (exit 1); exit 1; }; } | |
22902 | fi;; | |
22903 | esac | |
22904 | done` || { (exit 1); exit 1; } | |
22905 | _ACEOF | |
22906 | cat >>$CONFIG_STATUS <<_ACEOF | |
22907 | sed "$ac_vpsub | |
22908 | $extrasub | |
22909 | _ACEOF | |
22910 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22911 | :t | |
22912 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22913 | s,@configure_input@,$configure_input,;t t | |
22914 | s,@srcdir@,$ac_srcdir,;t t | |
22915 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
22916 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
22917 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
22918 | s,@builddir@,$ac_builddir,;t t | |
22919 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
22920 | s,@top_builddir@,$ac_top_builddir,;t t | |
22921 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
22922 | s,@INSTALL@,$ac_INSTALL,;t t | |
22923 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22924 | rm -f $tmp/stdin | |
22925 | if test x"$ac_file" != x-; then | |
22926 | mv $tmp/out $ac_file | |
22927 | else | |
22928 | cat $tmp/out | |
22929 | rm -f $tmp/out | |
22930 | fi | |
22931 | ||
22932 | done | |
22933 | _ACEOF | |
22934 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22935 | ||
22936 | # | |
22937 | # CONFIG_HEADER section. | |
22938 | # | |
c906108c SS |
22939 | |
22940 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22941 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22942 | # | |
22943 | # ac_d sets the value in "#define NAME VALUE" lines. | |
bec39cab AC |
22944 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22945 | ac_dB='[ ].*$,\1#\2' | |
22946 | ac_dC=' ' | |
22947 | ac_dD=',;t' | |
22948 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22949 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22950 | ac_uB='$,\1#\2define\3' | |
c906108c | 22951 | ac_uC=' ' |
bec39cab AC |
22952 | ac_uD=',;t' |
22953 | ||
22954 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 22955 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
bec39cab AC |
22956 | case $ac_file in |
22957 | - | *:- | *:-:* ) # input from stdin | |
22958 | cat >$tmp/stdin | |
22959 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22960 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22961 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22962 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22963 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
22964 | esac |
22965 | ||
bec39cab AC |
22966 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
22967 | echo "$as_me: creating $ac_file" >&6;} | |
22968 | ||
22969 | # First look for the input files in the build tree, otherwise in the | |
22970 | # src tree. | |
22971 | ac_file_inputs=`IFS=: | |
22972 | for f in $ac_file_in; do | |
22973 | case $f in | |
22974 | -) echo $tmp/stdin ;; | |
22975 | [\\/$]*) | |
22976 | # Absolute (can't be DOS-style, as IFS=:) | |
22977 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22978 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22979 | { (exit 1); exit 1; }; } | |
22980 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
22981 | echo "$f";; | |
22982 | *) # Relative | |
22983 | if test -f "$f"; then | |
22984 | # Build tree | |
22985 | echo "$f" | |
22986 | elif test -f "$srcdir/$f"; then | |
22987 | # Source tree | |
22988 | echo "$srcdir/$f" | |
22989 | else | |
22990 | # /dev/null tree | |
22991 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22992 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22993 | { (exit 1); exit 1; }; } | |
22994 | fi;; | |
22995 | esac | |
22996 | done` || { (exit 1); exit 1; } | |
22997 | # Remove the trailing spaces. | |
22998 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
22999 | ||
23000 | _ACEOF | |
23001 | ||
23002 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
23003 | # `conftest.undefs', that substitutes the proper values into | |
23004 | # config.h.in to produce config.h. The first handles `#define' | |
23005 | # templates, and the second `#undef' templates. | |
23006 | # And first: Protect against being on the right side of a sed subst in | |
23007 | # config.status. Protect against being in an unquoted here document | |
23008 | # in config.status. | |
23009 | rm -f conftest.defines conftest.undefs | |
23010 | # Using a here document instead of a string reduces the quoting nightmare. | |
23011 | # Putting comments in sed scripts is not portable. | |
23012 | # | |
23013 | # `end' is used to avoid that the second main sed command (meant for | |
23014 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
23015 | # See the Autoconf documentation for `clear'. | |
23016 | cat >confdef2sed.sed <<\_ACEOF | |
23017 | s/[\\&,]/\\&/g | |
23018 | s,[\\$`],\\&,g | |
23019 | t clear | |
23020 | : clear | |
23021 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
23022 | t end | |
23023 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
23024 | : end | |
23025 | _ACEOF | |
23026 | # If some macros were called several times there might be several times | |
23027 | # the same #defines, which is useless. Nevertheless, we may not want to | |
23028 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
23029 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
23030 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
23031 | rm -f confdef2sed.sed | |
c906108c SS |
23032 | |
23033 | # This sed command replaces #undef with comments. This is necessary, for | |
23034 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
23035 | # on some systems where configure will not decide to define it. | |
bec39cab AC |
23036 | cat >>conftest.undefs <<\_ACEOF |
23037 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
23038 | _ACEOF | |
23039 | ||
23040 | # Break up conftest.defines because some shells have a limit on the size | |
23041 | # of here documents, and old seds have small limits too (100 cmds). | |
23042 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
23043 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
23044 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
23045 | echo ' :' >>$CONFIG_STATUS | |
23046 | rm -f conftest.tail | |
23047 | while grep . conftest.defines >/dev/null | |
23048 | do | |
23049 | # Write a limited-size here document to $tmp/defines.sed. | |
23050 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
23051 | # Speed up: don't consider the non `#define' lines. | |
23052 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
23053 | # Work around the forget-to-reset-the-flag bug. | |
23054 | echo 't clr' >>$CONFIG_STATUS | |
23055 | echo ': clr' >>$CONFIG_STATUS | |
23056 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
23057 | echo 'CEOF | |
23058 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
23059 | rm -f $tmp/in | |
23060 | mv $tmp/out $tmp/in | |
23061 | ' >>$CONFIG_STATUS | |
23062 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
23063 | rm -f conftest.defines | |
23064 | mv conftest.tail conftest.defines | |
23065 | done | |
23066 | rm -f conftest.defines | |
23067 | echo ' fi # grep' >>$CONFIG_STATUS | |
23068 | echo >>$CONFIG_STATUS | |
c906108c | 23069 | |
bec39cab AC |
23070 | # Break up conftest.undefs because some shells have a limit on the size |
23071 | # of here documents, and old seds have small limits too (100 cmds). | |
23072 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 23073 | rm -f conftest.tail |
bec39cab | 23074 | while grep . conftest.undefs >/dev/null |
c906108c | 23075 | do |
bec39cab AC |
23076 | # Write a limited-size here document to $tmp/undefs.sed. |
23077 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
23078 | # Speed up: don't consider the non `#undef' | |
23079 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
23080 | # Work around the forget-to-reset-the-flag bug. | |
23081 | echo 't clr' >>$CONFIG_STATUS | |
23082 | echo ': clr' >>$CONFIG_STATUS | |
23083 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 23084 | echo 'CEOF |
bec39cab AC |
23085 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
23086 | rm -f $tmp/in | |
23087 | mv $tmp/out $tmp/in | |
23088 | ' >>$CONFIG_STATUS | |
23089 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
23090 | rm -f conftest.undefs | |
23091 | mv conftest.tail conftest.undefs | |
23092 | done | |
23093 | rm -f conftest.undefs | |
23094 | ||
23095 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23096 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23097 | # use $as_me), people would be surprised to read: | |
23098 | # /* config.h. Generated by config.status. */ | |
23099 | if test x"$ac_file" = x-; then | |
23100 | echo "/* Generated by configure. */" >$tmp/config.h | |
c906108c | 23101 | else |
bec39cab | 23102 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
c906108c | 23103 | fi |
bec39cab AC |
23104 | cat $tmp/in >>$tmp/config.h |
23105 | rm -f $tmp/in | |
23106 | if test x"$ac_file" != x-; then | |
23107 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
23108 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
23109 | echo "$as_me: $ac_file is unchanged" >&6;} | |
23110 | else | |
23111 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
23112 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23113 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23114 | X"$ac_file" : 'X\(//\)$' \| \ | |
23115 | X"$ac_file" : 'X\(/\)' \| \ | |
23116 | . : '\(.\)' 2>/dev/null || | |
23117 | echo X"$ac_file" | | |
23118 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23119 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23120 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23121 | /^X\(\/\).*/{ s//\1/; q; } | |
23122 | s/.*/./; q'` | |
23123 | { if $as_mkdir_p; then | |
23124 | mkdir -p "$ac_dir" | |
23125 | else | |
23126 | as_dir="$ac_dir" | |
23127 | as_dirs= | |
23128 | while test ! -d "$as_dir"; do | |
23129 | as_dirs="$as_dir $as_dirs" | |
23130 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23131 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23132 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23133 | X"$as_dir" : 'X\(//\)$' \| \ | |
23134 | X"$as_dir" : 'X\(/\)' \| \ | |
23135 | . : '\(.\)' 2>/dev/null || | |
23136 | echo X"$as_dir" | | |
23137 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23138 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23139 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23140 | /^X\(\/\).*/{ s//\1/; q; } | |
23141 | s/.*/./; q'` | |
23142 | done | |
23143 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23144 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23145 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23146 | { (exit 1); exit 1; }; }; } | |
c906108c | 23147 | |
bec39cab AC |
23148 | rm -f $ac_file |
23149 | mv $tmp/config.h $ac_file | |
23150 | fi | |
23151 | else | |
23152 | cat $tmp/config.h | |
23153 | rm -f $tmp/config.h | |
23154 | fi | |
23155 | done | |
23156 | _ACEOF | |
23157 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 23158 | |
bec39cab AC |
23159 | # |
23160 | # CONFIG_LINKS section. | |
23161 | # | |
c906108c | 23162 | |
bec39cab AC |
23163 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
23164 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
23165 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 23166 | |
bec39cab AC |
23167 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
23168 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
23169 | |
23170 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
23171 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
23172 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
23173 | { (exit 1); exit 1; }; } | |
c906108c SS |
23174 | fi |
23175 | rm -f $ac_dest | |
23176 | ||
23177 | # Make relative symlinks. | |
bec39cab AC |
23178 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
23179 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23180 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
23181 | X"$ac_dest" : 'X\(//\)$' \| \ | |
23182 | X"$ac_dest" : 'X\(/\)' \| \ | |
23183 | . : '\(.\)' 2>/dev/null || | |
23184 | echo X"$ac_dest" | | |
23185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23186 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23187 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23188 | /^X\(\/\).*/{ s//\1/; q; } | |
23189 | s/.*/./; q'` | |
23190 | { if $as_mkdir_p; then | |
23191 | mkdir -p "$ac_dest_dir" | |
c906108c | 23192 | else |
bec39cab AC |
23193 | as_dir="$ac_dest_dir" |
23194 | as_dirs= | |
23195 | while test ! -d "$as_dir"; do | |
23196 | as_dirs="$as_dir $as_dirs" | |
23197 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23198 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23199 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23200 | X"$as_dir" : 'X\(//\)$' \| \ | |
23201 | X"$as_dir" : 'X\(/\)' \| \ | |
23202 | . : '\(.\)' 2>/dev/null || | |
23203 | echo X"$as_dir" | | |
23204 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23205 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23206 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23207 | /^X\(\/\).*/{ s//\1/; q; } | |
23208 | s/.*/./; q'` | |
23209 | done | |
23210 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23211 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
23212 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
23213 | { (exit 1); exit 1; }; }; } | |
23214 | ||
23215 | ac_builddir=. | |
23216 | ||
23217 | if test "$ac_dest_dir" != .; then | |
23218 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
23219 | # A "../" for each directory in $ac_dir_suffix. | |
23220 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23221 | else | |
23222 | ac_dir_suffix= ac_top_builddir= | |
23223 | fi | |
23224 | ||
23225 | case $srcdir in | |
23226 | .) # No --srcdir option. We are building in place. | |
23227 | ac_srcdir=. | |
23228 | if test -z "$ac_top_builddir"; then | |
23229 | ac_top_srcdir=. | |
23230 | else | |
23231 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23232 | fi ;; | |
23233 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23234 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23235 | ac_top_srcdir=$srcdir ;; | |
23236 | *) # Relative path. | |
23237 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23238 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23239 | esac | |
23240 | ||
23241 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
23242 | # the directories may not exist. | |
23243 | case `pwd` in | |
23244 | .) ac_abs_builddir="$ac_dest_dir";; | |
23245 | *) | |
23246 | case "$ac_dest_dir" in | |
23247 | .) ac_abs_builddir=`pwd`;; | |
23248 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
23249 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
23250 | esac;; | |
23251 | esac | |
23252 | case $ac_abs_builddir in | |
23253 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23254 | *) | |
23255 | case ${ac_top_builddir}. in | |
23256 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23257 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23258 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23259 | esac;; | |
23260 | esac | |
23261 | case $ac_abs_builddir in | |
23262 | .) ac_abs_srcdir=$ac_srcdir;; | |
23263 | *) | |
23264 | case $ac_srcdir in | |
23265 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23266 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23267 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23268 | esac;; | |
23269 | esac | |
23270 | case $ac_abs_builddir in | |
23271 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23272 | *) | |
23273 | case $ac_top_srcdir in | |
23274 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23275 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23276 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23277 | esac;; | |
23278 | esac | |
c906108c | 23279 | |
bec39cab AC |
23280 | |
23281 | case $srcdir in | |
23282 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
23283 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
c906108c SS |
23284 | esac |
23285 | ||
bec39cab AC |
23286 | # Try a symlink, then a hard link, then a copy. |
23287 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
23288 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
23289 | cp -p $srcdir/$ac_source $ac_dest || | |
23290 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
23291 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
23292 | { (exit 1); exit 1; }; } | |
c906108c | 23293 | done |
bec39cab AC |
23294 | _ACEOF |
23295 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 23296 | |
bec39cab AC |
23297 | # |
23298 | # CONFIG_COMMANDS section. | |
23299 | # | |
23300 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
23301 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
23302 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23303 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
23304 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23305 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
23306 | X"$ac_dest" : 'X\(//\)$' \| \ | |
23307 | X"$ac_dest" : 'X\(/\)' \| \ | |
23308 | . : '\(.\)' 2>/dev/null || | |
23309 | echo X"$ac_dest" | | |
23310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23311 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23312 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23313 | /^X\(\/\).*/{ s//\1/; q; } | |
23314 | s/.*/./; q'` | |
23315 | { if $as_mkdir_p; then | |
23316 | mkdir -p "$ac_dir" | |
23317 | else | |
23318 | as_dir="$ac_dir" | |
23319 | as_dirs= | |
23320 | while test ! -d "$as_dir"; do | |
23321 | as_dirs="$as_dir $as_dirs" | |
23322 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23323 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23324 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23325 | X"$as_dir" : 'X\(//\)$' \| \ | |
23326 | X"$as_dir" : 'X\(/\)' \| \ | |
23327 | . : '\(.\)' 2>/dev/null || | |
23328 | echo X"$as_dir" | | |
23329 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23330 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23331 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23332 | /^X\(\/\).*/{ s//\1/; q; } | |
23333 | s/.*/./; q'` | |
23334 | done | |
23335 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23336 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23337 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23338 | { (exit 1); exit 1; }; }; } | |
23339 | ||
23340 | ac_builddir=. | |
23341 | ||
23342 | if test "$ac_dir" != .; then | |
23343 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23344 | # A "../" for each directory in $ac_dir_suffix. | |
23345 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23346 | else | |
23347 | ac_dir_suffix= ac_top_builddir= | |
23348 | fi | |
23349 | ||
23350 | case $srcdir in | |
23351 | .) # No --srcdir option. We are building in place. | |
23352 | ac_srcdir=. | |
23353 | if test -z "$ac_top_builddir"; then | |
23354 | ac_top_srcdir=. | |
23355 | else | |
23356 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23357 | fi ;; | |
23358 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23359 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23360 | ac_top_srcdir=$srcdir ;; | |
23361 | *) # Relative path. | |
23362 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23363 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23364 | esac | |
23365 | ||
23366 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
23367 | # the directories may not exist. | |
23368 | case `pwd` in | |
23369 | .) ac_abs_builddir="$ac_dir";; | |
23370 | *) | |
23371 | case "$ac_dir" in | |
23372 | .) ac_abs_builddir=`pwd`;; | |
23373 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23374 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23375 | esac;; | |
23376 | esac | |
23377 | case $ac_abs_builddir in | |
23378 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23379 | *) | |
23380 | case ${ac_top_builddir}. in | |
23381 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23382 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23383 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23384 | esac;; | |
23385 | esac | |
23386 | case $ac_abs_builddir in | |
23387 | .) ac_abs_srcdir=$ac_srcdir;; | |
23388 | *) | |
23389 | case $ac_srcdir in | |
23390 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23391 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23392 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23393 | esac;; | |
23394 | esac | |
23395 | case $ac_abs_builddir in | |
23396 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23397 | *) | |
23398 | case $ac_top_srcdir in | |
23399 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23400 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23401 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23402 | esac;; | |
23403 | esac | |
c906108c | 23404 | |
c906108c | 23405 | |
bec39cab AC |
23406 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
23407 | echo "$as_me: executing $ac_dest commands" >&6;} | |
23408 | case $ac_dest in | |
23409 | default ) | |
c906108c | 23410 | |
2c0fc042 | 23411 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
23412 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
23413 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
23414 | mv -f Makefile.tmp Makefile | |
23415 | ||
2acceee2 | 23416 | |
c906108c SS |
23417 | case x$CONFIG_HEADERS in |
23418 | xconfig.h:config.in) | |
23419 | echo > stamp-h ;; | |
23420 | esac | |
bec39cab AC |
23421 | ;; |
23422 | esac | |
23423 | done | |
23424 | _ACEOF | |
c906108c | 23425 | |
bec39cab AC |
23426 | cat >>$CONFIG_STATUS <<\_ACEOF |
23427 | ||
23428 | { (exit 0); exit 0; } | |
23429 | _ACEOF | |
c906108c | 23430 | chmod +x $CONFIG_STATUS |
bec39cab AC |
23431 | ac_clean_files=$ac_clean_files_save |
23432 | ||
23433 | ||
23434 | # configure is writing to config.log, and then calls config.status. | |
23435 | # config.status does its own redirection, appending to config.log. | |
23436 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23437 | # by configure, so config.status won't be able to write to it; its | |
23438 | # output is simply discarded. So we exec the FD to /dev/null, | |
23439 | # effectively closing config.log, so it can be properly (re)opened and | |
23440 | # appended to by config.status. When coming back to configure, we | |
23441 | # need to make the FD available again. | |
23442 | if test "$no_create" != yes; then | |
23443 | ac_cs_success=: | |
23444 | ac_config_status_args= | |
23445 | test "$silent" = yes && | |
23446 | ac_config_status_args="$ac_config_status_args --quiet" | |
23447 | exec 5>/dev/null | |
23448 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23449 | exec 5>>config.log | |
23450 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23451 | # would make configure fail if this is the last instruction. | |
23452 | $ac_cs_success || { (exit 1); exit 1; } | |
23453 | fi | |
c906108c | 23454 | |
bec39cab AC |
23455 | # |
23456 | # CONFIG_SUBDIRS section. | |
23457 | # | |
c906108c SS |
23458 | if test "$no_recursion" != yes; then |
23459 | ||
23460 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23461 | ac_sub_configure_args= | |
23462 | ac_prev= | |
23463 | for ac_arg in $ac_configure_args; do | |
23464 | if test -n "$ac_prev"; then | |
23465 | ac_prev= | |
23466 | continue | |
23467 | fi | |
bec39cab | 23468 | case $ac_arg in |
c906108c SS |
23469 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23470 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23471 | ac_prev=cache_file ;; | |
23472 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
23473 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
23474 | | --c=*) | |
23475 | ;; | |
23476 | --config-cache | -C) | |
c906108c SS |
23477 | ;; |
23478 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23479 | ac_prev=srcdir ;; | |
23480 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23481 | ;; | |
bec39cab AC |
23482 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
23483 | ac_prev=prefix ;; | |
23484 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
23485 | ;; | |
c906108c SS |
23486 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
23487 | esac | |
23488 | done | |
23489 | ||
bec39cab AC |
23490 | # Always prepend --prefix to ensure using the same prefix |
23491 | # in subdir configurations. | |
23492 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
23493 | ||
23494 | ac_popdir=`pwd` | |
23495 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
23496 | |
23497 | # Do not complain, so a configure script can configure whichever | |
23498 | # parts of a large source tree are present. | |
bec39cab | 23499 | test -d $srcdir/$ac_dir || continue |
c906108c | 23500 | |
bec39cab AC |
23501 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
23502 | echo "$as_me: configuring in $ac_dir" >&6;} | |
23503 | { if $as_mkdir_p; then | |
23504 | mkdir -p "$ac_dir" | |
23505 | else | |
23506 | as_dir="$ac_dir" | |
23507 | as_dirs= | |
23508 | while test ! -d "$as_dir"; do | |
23509 | as_dirs="$as_dir $as_dirs" | |
23510 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23511 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23512 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23513 | X"$as_dir" : 'X\(//\)$' \| \ | |
23514 | X"$as_dir" : 'X\(/\)' \| \ | |
23515 | . : '\(.\)' 2>/dev/null || | |
23516 | echo X"$as_dir" | | |
23517 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23518 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23519 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23520 | /^X\(\/\).*/{ s//\1/; q; } | |
23521 | s/.*/./; q'` | |
23522 | done | |
23523 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23524 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23525 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23526 | { (exit 1); exit 1; }; }; } | |
c906108c | 23527 | |
bec39cab AC |
23528 | ac_builddir=. |
23529 | ||
23530 | if test "$ac_dir" != .; then | |
23531 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23532 | # A "../" for each directory in $ac_dir_suffix. | |
23533 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23534 | else | |
23535 | ac_dir_suffix= ac_top_builddir= | |
23536 | fi | |
23537 | ||
23538 | case $srcdir in | |
23539 | .) # No --srcdir option. We are building in place. | |
23540 | ac_srcdir=. | |
23541 | if test -z "$ac_top_builddir"; then | |
23542 | ac_top_srcdir=. | |
23543 | else | |
23544 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23545 | fi ;; | |
23546 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23547 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23548 | ac_top_srcdir=$srcdir ;; | |
23549 | *) # Relative path. | |
23550 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23551 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23552 | esac | |
c906108c | 23553 | |
bec39cab AC |
23554 | # Do not use `cd foo && pwd` to compute absolute paths, because |
23555 | # the directories may not exist. | |
23556 | case `pwd` in | |
23557 | .) ac_abs_builddir="$ac_dir";; | |
23558 | *) | |
23559 | case "$ac_dir" in | |
23560 | .) ac_abs_builddir=`pwd`;; | |
23561 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23562 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23563 | esac;; | |
23564 | esac | |
23565 | case $ac_abs_builddir in | |
23566 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23567 | *) | |
23568 | case ${ac_top_builddir}. in | |
23569 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23570 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23571 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23572 | esac;; | |
23573 | esac | |
23574 | case $ac_abs_builddir in | |
23575 | .) ac_abs_srcdir=$ac_srcdir;; | |
23576 | *) | |
23577 | case $ac_srcdir in | |
23578 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23579 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23580 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23581 | esac;; | |
23582 | esac | |
23583 | case $ac_abs_builddir in | |
23584 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23585 | *) | |
23586 | case $ac_top_srcdir in | |
23587 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23588 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23589 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23590 | esac;; | |
23591 | esac | |
c906108c | 23592 | |
c906108c | 23593 | |
bec39cab | 23594 | cd $ac_dir |
c906108c SS |
23595 | |
23596 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
23597 | if test -f $ac_srcdir/configure.gnu; then |
23598 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
23599 | elif test -f $ac_srcdir/configure; then | |
23600 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
23601 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
23602 | ac_sub_configure=$ac_configure |
23603 | else | |
bec39cab AC |
23604 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
23605 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
23606 | ac_sub_configure= |
23607 | fi | |
23608 | ||
23609 | # The recursion is here. | |
23610 | if test -n "$ac_sub_configure"; then | |
c906108c | 23611 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
23612 | case $cache_file in |
23613 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
c906108c | 23614 | *) # Relative path. |
bec39cab | 23615 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
c906108c | 23616 | esac |
c906108c | 23617 | |
bec39cab AC |
23618 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
23619 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 23620 | # The eval makes quoting arguments work. |
bec39cab AC |
23621 | eval $ac_sub_configure $ac_sub_configure_args \ |
23622 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
23623 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
23624 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
23625 | { (exit 1); exit 1; }; } | |
c906108c SS |
23626 | fi |
23627 | ||
23628 | cd $ac_popdir | |
23629 | done | |
23630 | fi | |
23631 | ||
23632 | ||
23633 | exit 0 |