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" | |
c21a4eee | 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 SET_MAKE RANLIB ac_ct_RANLIB 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' |
bec39cab | 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] | |
85981d60 AC |
861 | --enable-maintainer-mode enable make rules and dependencies not useful |
862 | (and sometimes confusing) to the casual installer | |
bec39cab AC |
863 | --disable-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 | |
094a342e | 869 | --enable-werror treat compile warnings as errors |
bec39cab AC |
870 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
871 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
872 | --enable-sim Link gdb with simulator | |
873 | --enable-multi-ice build the multi-ice-gdb-server | |
874 | ||
875 | Optional Packages: | |
876 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
877 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
878 | --with-included-gettext use the GNU gettext library included here | |
879 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug | |
880 | --with-libunwind Use libunwind frame unwinding support | |
881 | --without-included-regex don't use included regex; this is the default | |
882 | on systems with version 2 of the GNU C library | |
883 | (use with caution on other system) | |
884 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
885 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
886 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
887 | --with-tclinclude=DIR Directory where tcl private headers are | |
888 | --with-tkinclude=DIR Directory where tk private headers are | |
889 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
890 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
891 | --with-x use the X Window System | |
892 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
893 | ||
894 | Some influential environment variables: | |
895 | CC C compiler command | |
896 | CFLAGS C compiler flags | |
897 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
898 | nonstandard directory <lib dir> | |
899 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
900 | headers in a nonstandard directory <include dir> | |
901 | CPP C preprocessor | |
902 | ||
903 | Use these variables to override the choices made by `configure' or to help | |
904 | it to find libraries and programs with nonstandard names/locations. | |
905 | ||
906 | _ACEOF | |
907 | fi | |
908 | ||
909 | if test "$ac_init_help" = "recursive"; then | |
910 | # If there are subdirs, report their specific --help. | |
911 | ac_popdir=`pwd` | |
912 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
913 | test -d $ac_dir || continue | |
914 | ac_builddir=. | |
915 | ||
916 | if test "$ac_dir" != .; then | |
917 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
918 | # A "../" for each directory in $ac_dir_suffix. | |
919 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
920 | else | |
921 | ac_dir_suffix= ac_top_builddir= | |
922 | fi | |
923 | ||
924 | case $srcdir in | |
925 | .) # No --srcdir option. We are building in place. | |
926 | ac_srcdir=. | |
927 | if test -z "$ac_top_builddir"; then | |
928 | ac_top_srcdir=. | |
929 | else | |
930 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
931 | fi ;; | |
932 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
933 | ac_srcdir=$srcdir$ac_dir_suffix; | |
934 | ac_top_srcdir=$srcdir ;; | |
935 | *) # Relative path. | |
936 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
937 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
938 | esac | |
939 | ||
940 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
941 | # the directories may not exist. | |
942 | case `pwd` in | |
943 | .) ac_abs_builddir="$ac_dir";; | |
944 | *) | |
945 | case "$ac_dir" in | |
946 | .) ac_abs_builddir=`pwd`;; | |
947 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
948 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
949 | esac;; | |
950 | esac | |
951 | case $ac_abs_builddir in | |
952 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
953 | *) | |
954 | case ${ac_top_builddir}. in | |
955 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
956 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
957 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
958 | esac;; | |
959 | esac | |
960 | case $ac_abs_builddir in | |
961 | .) ac_abs_srcdir=$ac_srcdir;; | |
962 | *) | |
963 | case $ac_srcdir in | |
964 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
965 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
966 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
967 | esac;; | |
968 | esac | |
969 | case $ac_abs_builddir in | |
970 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
971 | *) | |
972 | case $ac_top_srcdir in | |
973 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
974 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
975 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
976 | esac;; | |
977 | esac | |
978 | ||
979 | cd $ac_dir | |
980 | # Check for guested configure; otherwise get Cygnus style configure. | |
981 | if test -f $ac_srcdir/configure.gnu; then | |
982 | echo | |
983 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
984 | elif test -f $ac_srcdir/configure; then | |
985 | echo | |
986 | $SHELL $ac_srcdir/configure --help=recursive | |
987 | elif test -f $ac_srcdir/configure.ac || | |
988 | test -f $ac_srcdir/configure.in; then | |
989 | echo | |
990 | $ac_configure --help | |
3ace7edb | 991 | else |
bec39cab AC |
992 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
993 | fi | |
121ce6e5 | 994 | cd "$ac_popdir" |
bec39cab AC |
995 | done |
996 | fi | |
997 | ||
998 | test -n "$ac_init_help" && exit 0 | |
999 | if $ac_init_version; then | |
1000 | cat <<\_ACEOF | |
1001 | ||
1002 | Copyright (C) 2003 Free Software Foundation, Inc. | |
1003 | This configure script is free software; the Free Software Foundation | |
1004 | gives unlimited permission to copy, distribute and modify it. | |
1005 | _ACEOF | |
1006 | exit 0 | |
1007 | fi | |
1008 | exec 5>config.log | |
1009 | cat >&5 <<_ACEOF | |
1010 | This file contains any messages produced by compilers while | |
1011 | running configure, to aid debugging if configure makes a mistake. | |
1012 | ||
1013 | It was created by $as_me, which was | |
1014 | generated by GNU Autoconf 2.59. Invocation command line was | |
1015 | ||
1016 | $ $0 $@ | |
1017 | ||
1018 | _ACEOF | |
1019 | { | |
1020 | cat <<_ASUNAME | |
1021 | ## --------- ## | |
1022 | ## Platform. ## | |
1023 | ## --------- ## | |
1024 | ||
1025 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1026 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1027 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1028 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1029 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1030 | ||
1031 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1032 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1033 | ||
1034 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1035 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1036 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1037 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1038 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1039 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1040 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1041 | ||
1042 | _ASUNAME | |
1043 | ||
1044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1045 | for as_dir in $PATH | |
1046 | do | |
1047 | IFS=$as_save_IFS | |
1048 | test -z "$as_dir" && as_dir=. | |
1049 | echo "PATH: $as_dir" | |
1050 | done | |
1051 | ||
1052 | } >&5 | |
1053 | ||
1054 | cat >&5 <<_ACEOF | |
1055 | ||
1056 | ||
1057 | ## ----------- ## | |
1058 | ## Core tests. ## | |
1059 | ## ----------- ## | |
1060 | ||
1061 | _ACEOF | |
1062 | ||
1063 | ||
1064 | # Keep a trace of the command line. | |
1065 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1066 | # Strip out --silent because we don't want to record it for future runs. | |
1067 | # Also quote any args containing shell meta-characters. | |
1068 | # Make two passes to allow for proper duplicate-argument suppression. | |
1069 | ac_configure_args= | |
1070 | ac_configure_args0= | |
1071 | ac_configure_args1= | |
1072 | ac_sep= | |
1073 | ac_must_keep_next=false | |
1074 | for ac_pass in 1 2 | |
1075 | do | |
1076 | for ac_arg | |
1077 | do | |
1078 | case $ac_arg in | |
1079 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1080 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1081 | | -silent | --silent | --silen | --sile | --sil) | |
1082 | continue ;; | |
1083 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1084 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1085 | esac | |
1086 | case $ac_pass in | |
1087 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1088 | 2) | |
1089 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1090 | if test $ac_must_keep_next = true; then | |
1091 | ac_must_keep_next=false # Got value, back to normal. | |
1092 | else | |
1093 | case $ac_arg in | |
1094 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1095 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1096 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1097 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1098 | case "$ac_configure_args0 " in | |
1099 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1100 | esac | |
1101 | ;; | |
1102 | -* ) ac_must_keep_next=true ;; | |
1103 | esac | |
1104 | fi | |
1105 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1106 | # Get rid of the leading space. | |
1107 | ac_sep=" " | |
1108 | ;; | |
1109 | esac | |
1110 | done | |
1111 | done | |
1112 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1113 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1114 | ||
1115 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1116 | # config.log. We remove comments because anyway the quotes in there | |
1117 | # would cause problems or look ugly. | |
1118 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1119 | # such as our DU 5.0 friend, will then `close' the trap. | |
1120 | trap 'exit_status=$? | |
1121 | # Save into config.log some information that might help in debugging. | |
1122 | { | |
1123 | echo | |
1124 | ||
1125 | cat <<\_ASBOX | |
1126 | ## ---------------- ## | |
1127 | ## Cache variables. ## | |
1128 | ## ---------------- ## | |
1129 | _ASBOX | |
1130 | echo | |
1131 | # The following way of writing the cache mishandles newlines in values, | |
1132 | { | |
1133 | (set) 2>&1 | | |
1134 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1135 | *ac_space=\ *) | |
1136 | sed -n \ | |
1137 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1138 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1139 | ;; | |
1140 | *) | |
1141 | sed -n \ | |
1142 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1143 | ;; | |
1144 | esac; | |
1145 | } | |
1146 | echo | |
1147 | ||
1148 | cat <<\_ASBOX | |
1149 | ## ----------------- ## | |
1150 | ## Output variables. ## | |
1151 | ## ----------------- ## | |
1152 | _ASBOX | |
1153 | echo | |
1154 | for ac_var in $ac_subst_vars | |
1155 | do | |
1156 | eval ac_val=$`echo $ac_var` | |
1157 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1158 | done | sort | |
1159 | echo | |
1160 | ||
1161 | if test -n "$ac_subst_files"; then | |
1162 | cat <<\_ASBOX | |
1163 | ## ------------- ## | |
1164 | ## Output files. ## | |
1165 | ## ------------- ## | |
1166 | _ASBOX | |
1167 | echo | |
1168 | for ac_var in $ac_subst_files | |
1169 | do | |
1170 | eval ac_val=$`echo $ac_var` | |
1171 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1172 | done | sort | |
1173 | echo | |
1174 | fi | |
1175 | ||
1176 | if test -s confdefs.h; then | |
1177 | cat <<\_ASBOX | |
1178 | ## ----------- ## | |
1179 | ## confdefs.h. ## | |
1180 | ## ----------- ## | |
1181 | _ASBOX | |
1182 | echo | |
1183 | sed "/^$/d" confdefs.h | sort | |
1184 | echo | |
3ace7edb | 1185 | fi |
bec39cab AC |
1186 | test "$ac_signal" != 0 && |
1187 | echo "$as_me: caught signal $ac_signal" | |
1188 | echo "$as_me: exit $exit_status" | |
1189 | } >&5 | |
1190 | rm -f core *.core && | |
1191 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1192 | exit $exit_status | |
1193 | ' 0 | |
1194 | for ac_signal in 1 2 13 15; do | |
1195 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1196 | done | |
1197 | ac_signal=0 | |
1198 | ||
1199 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1200 | rm -rf conftest* confdefs.h | |
1201 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1202 | echo >confdefs.h | |
1203 | ||
1204 | # Predefined preprocessor variables. | |
1205 | ||
1206 | cat >>confdefs.h <<_ACEOF | |
1207 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1208 | _ACEOF | |
1209 | ||
1210 | ||
1211 | cat >>confdefs.h <<_ACEOF | |
1212 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1213 | _ACEOF | |
1214 | ||
1215 | ||
1216 | cat >>confdefs.h <<_ACEOF | |
1217 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1218 | _ACEOF | |
1219 | ||
1220 | ||
1221 | cat >>confdefs.h <<_ACEOF | |
1222 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1223 | _ACEOF | |
1224 | ||
1225 | ||
1226 | cat >>confdefs.h <<_ACEOF | |
1227 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1228 | _ACEOF | |
1229 | ||
1230 | ||
1231 | # Let the site file select an alternate cache file if it wants to. | |
1232 | # Prefer explicitly selected file to automatically selected ones. | |
1233 | if test -z "$CONFIG_SITE"; then | |
1234 | if test "x$prefix" != xNONE; then | |
1235 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1236 | else | |
1237 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
c906108c SS |
1238 | fi |
1239 | fi | |
1240 | for ac_site_file in $CONFIG_SITE; do | |
1241 | if test -r "$ac_site_file"; then | |
bec39cab AC |
1242 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1243 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1244 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1245 | . "$ac_site_file" |
1246 | fi | |
1247 | done | |
1248 | ||
1249 | if test -r "$cache_file"; then | |
bec39cab AC |
1250 | # Some versions of bash will fail to source /dev/null (special |
1251 | # files actually), so we avoid doing that. | |
1252 | if test -f "$cache_file"; then | |
1253 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1254 | echo "$as_me: loading cache $cache_file" >&6;} | |
1255 | case $cache_file in | |
1256 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1257 | *) . ./$cache_file;; | |
1258 | esac | |
1259 | fi | |
c906108c | 1260 | else |
bec39cab AC |
1261 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1262 | echo "$as_me: creating cache $cache_file" >&6;} | |
1263 | >$cache_file | |
1264 | fi | |
1265 | ||
1266 | # Check that the precious variables saved in the cache have kept the same | |
1267 | # value. | |
1268 | ac_cache_corrupted=false | |
1269 | for ac_var in `(set) 2>&1 | | |
1270 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1271 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1272 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1273 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1274 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1275 | case $ac_old_set,$ac_new_set in | |
1276 | set,) | |
1277 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1278 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1279 | ac_cache_corrupted=: ;; | |
1280 | ,set) | |
1281 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1282 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1283 | ac_cache_corrupted=: ;; | |
1284 | ,);; | |
1285 | *) | |
1286 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1287 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1288 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1289 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1290 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1291 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1292 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1293 | ac_cache_corrupted=: | |
1294 | fi;; | |
1295 | esac | |
1296 | # Pass precious variables to config.status. | |
1297 | if test "$ac_new_set" = set; then | |
1298 | case $ac_new_val in | |
1299 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1300 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1301 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1302 | esac | |
1303 | case " $ac_configure_args " in | |
1304 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1305 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1306 | esac | |
1307 | fi | |
1308 | done | |
1309 | if $ac_cache_corrupted; then | |
1310 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1311 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1312 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1313 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1314 | { (exit 1); exit 1; }; } | |
c906108c SS |
1315 | fi |
1316 | ||
1317 | ac_ext=c | |
c906108c | 1318 | ac_cpp='$CPP $CPPFLAGS' |
bec39cab AC |
1319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1322 | |
1323 | ||
1324 | ||
bec39cab AC |
1325 | |
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ac_config_headers="$ac_config_headers config.h:config.in" | |
1342 | ||
1343 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1344 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
413ccac7 AC |
1345 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1346 | if test "${enable_maintainer_mode+set}" = set; then | |
1347 | enableval="$enable_maintainer_mode" | |
1348 | USE_MAINTAINER_MODE=$enableval | |
1349 | else | |
1350 | USE_MAINTAINER_MODE=no | |
bec39cab AC |
1351 | fi; |
1352 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1353 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1354 | |
413ccac7 AC |
1355 | |
1356 | if test $USE_MAINTAINER_MODE = yes; then | |
1357 | MAINTAINER_MODE_TRUE= | |
1358 | MAINTAINER_MODE_FALSE='#' | |
1359 | else | |
1360 | MAINTAINER_MODE_TRUE='#' | |
1361 | MAINTAINER_MODE_FALSE= | |
1362 | fi | |
85981d60 | 1363 | |
413ccac7 | 1364 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1365 | |
c906108c | 1366 | |
bec39cab AC |
1367 | |
1368 | ac_ext=c | |
1369 | ac_cpp='$CPP $CPPFLAGS' | |
1370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1373 | if test -n "$ac_tool_prefix"; then | |
1374 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1375 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1376 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1378 | if test "${ac_cv_prog_CC+set}" = set; then | |
1379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1380 | else | |
1381 | if test -n "$CC"; then | |
1382 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1383 | else | |
1384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1385 | for as_dir in $PATH | |
1386 | do | |
1387 | IFS=$as_save_IFS | |
1388 | test -z "$as_dir" && as_dir=. | |
1389 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1390 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1391 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1393 | break 2 | |
1394 | fi | |
1395 | done | |
1396 | done | |
1397 | ||
1398 | fi | |
1399 | fi | |
1400 | CC=$ac_cv_prog_CC | |
1401 | if test -n "$CC"; then | |
1402 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1403 | echo "${ECHO_T}$CC" >&6 | |
1404 | else | |
1405 | echo "$as_me:$LINENO: result: no" >&5 | |
1406 | echo "${ECHO_T}no" >&6 | |
1407 | fi | |
1408 | ||
1409 | fi | |
1410 | if test -z "$ac_cv_prog_CC"; then | |
1411 | ac_ct_CC=$CC | |
1412 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1413 | set dummy gcc; ac_word=$2 |
bec39cab AC |
1414 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1416 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1418 | else | |
1419 | if test -n "$ac_ct_CC"; then | |
1420 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1421 | else | |
1422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1423 | for as_dir in $PATH | |
1424 | do | |
1425 | IFS=$as_save_IFS | |
1426 | test -z "$as_dir" && as_dir=. | |
1427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1428 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1429 | ac_cv_prog_ac_ct_CC="gcc" | |
1430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1431 | break 2 | |
1432 | fi | |
1433 | done | |
1434 | done | |
1435 | ||
1436 | fi | |
1437 | fi | |
1438 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1439 | if test -n "$ac_ct_CC"; then | |
1440 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1441 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1442 | else | |
1443 | echo "$as_me:$LINENO: result: no" >&5 | |
1444 | echo "${ECHO_T}no" >&6 | |
1445 | fi | |
1446 | ||
1447 | CC=$ac_ct_CC | |
1448 | else | |
1449 | CC="$ac_cv_prog_CC" | |
1450 | fi | |
1451 | ||
1452 | if test -z "$CC"; then | |
1453 | if test -n "$ac_tool_prefix"; then | |
1454 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1455 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1458 | if test "${ac_cv_prog_CC+set}" = set; then | |
1459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1460 | else |
1461 | if test -n "$CC"; then | |
1462 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1463 | else | |
bec39cab AC |
1464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1465 | for as_dir in $PATH | |
1466 | do | |
1467 | IFS=$as_save_IFS | |
1468 | test -z "$as_dir" && as_dir=. | |
1469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1471 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1473 | break 2 | |
1474 | fi | |
1475 | done | |
1476 | done | |
1477 | ||
c906108c SS |
1478 | fi |
1479 | fi | |
bec39cab | 1480 | CC=$ac_cv_prog_CC |
c906108c | 1481 | if test -n "$CC"; then |
bec39cab AC |
1482 | echo "$as_me:$LINENO: result: $CC" >&5 |
1483 | echo "${ECHO_T}$CC" >&6 | |
1484 | else | |
1485 | echo "$as_me:$LINENO: result: no" >&5 | |
1486 | echo "${ECHO_T}no" >&6 | |
1487 | fi | |
1488 | ||
1489 | fi | |
1490 | if test -z "$ac_cv_prog_CC"; then | |
1491 | ac_ct_CC=$CC | |
1492 | # Extract the first word of "cc", so it can be a program name with args. | |
1493 | set dummy cc; ac_word=$2 | |
1494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1496 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1498 | else | |
1499 | if test -n "$ac_ct_CC"; then | |
1500 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1501 | else | |
1502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1503 | for as_dir in $PATH | |
1504 | do | |
1505 | IFS=$as_save_IFS | |
1506 | test -z "$as_dir" && as_dir=. | |
1507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1509 | ac_cv_prog_ac_ct_CC="cc" | |
1510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1511 | break 2 | |
1512 | fi | |
1513 | done | |
1514 | done | |
1515 | ||
1516 | fi | |
1517 | fi | |
1518 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1519 | if test -n "$ac_ct_CC"; then | |
1520 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1521 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
c906108c | 1522 | else |
bec39cab AC |
1523 | echo "$as_me:$LINENO: result: no" >&5 |
1524 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1525 | fi |
1526 | ||
bec39cab AC |
1527 | CC=$ac_ct_CC |
1528 | else | |
1529 | CC="$ac_cv_prog_CC" | |
1530 | fi | |
1531 | ||
1532 | fi | |
c906108c SS |
1533 | if test -z "$CC"; then |
1534 | # Extract the first word of "cc", so it can be a program name with args. | |
1535 | set dummy cc; ac_word=$2 | |
bec39cab AC |
1536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1538 | if test "${ac_cv_prog_CC+set}" = set; then | |
1539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1540 | else |
1541 | if test -n "$CC"; then | |
1542 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1543 | else | |
c906108c | 1544 | ac_prog_rejected=no |
bec39cab AC |
1545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1546 | for as_dir in $PATH | |
1547 | do | |
1548 | IFS=$as_save_IFS | |
1549 | test -z "$as_dir" && as_dir=. | |
1550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1551 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1552 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1553 | ac_prog_rejected=yes | |
1554 | continue | |
1555 | fi | |
1556 | ac_cv_prog_CC="cc" | |
1557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1558 | break 2 | |
1559 | fi | |
1560 | done | |
1561 | done | |
1562 | ||
c906108c SS |
1563 | if test $ac_prog_rejected = yes; then |
1564 | # We found a bogon in the path, so make sure we never use it. | |
1565 | set dummy $ac_cv_prog_CC | |
1566 | shift | |
bec39cab | 1567 | if test $# != 0; then |
c906108c SS |
1568 | # We chose a different compiler from the bogus one. |
1569 | # However, it has the same basename, so the bogon will be chosen | |
1570 | # first if we set CC to just the basename; use the full file name. | |
1571 | shift | |
bec39cab | 1572 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1573 | fi |
1574 | fi | |
1575 | fi | |
1576 | fi | |
bec39cab | 1577 | CC=$ac_cv_prog_CC |
c906108c | 1578 | if test -n "$CC"; then |
bec39cab AC |
1579 | echo "$as_me:$LINENO: result: $CC" >&5 |
1580 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1581 | else |
bec39cab AC |
1582 | echo "$as_me:$LINENO: result: no" >&5 |
1583 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1584 | fi |
1585 | ||
bec39cab AC |
1586 | fi |
1587 | if test -z "$CC"; then | |
1588 | if test -n "$ac_tool_prefix"; then | |
1589 | for ac_prog in cl | |
1590 | do | |
1591 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1592 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1595 | if test "${ac_cv_prog_CC+set}" = set; then | |
1596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1597 | else |
1598 | if test -n "$CC"; then | |
1599 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1600 | else | |
bec39cab AC |
1601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1602 | for as_dir in $PATH | |
1603 | do | |
1604 | IFS=$as_save_IFS | |
1605 | test -z "$as_dir" && as_dir=. | |
1606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1608 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1610 | break 2 | |
1611 | fi | |
1612 | done | |
1613 | done | |
1614 | ||
c906108c SS |
1615 | fi |
1616 | fi | |
bec39cab | 1617 | CC=$ac_cv_prog_CC |
c906108c | 1618 | if test -n "$CC"; then |
bec39cab AC |
1619 | echo "$as_me:$LINENO: result: $CC" >&5 |
1620 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1621 | else |
bec39cab AC |
1622 | echo "$as_me:$LINENO: result: no" >&5 |
1623 | echo "${ECHO_T}no" >&6 | |
c906108c | 1624 | fi |
bec39cab AC |
1625 | |
1626 | test -n "$CC" && break | |
1627 | done | |
1628 | fi | |
1629 | if test -z "$CC"; then | |
1630 | ac_ct_CC=$CC | |
1631 | for ac_prog in cl | |
1632 | do | |
1633 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1634 | set dummy $ac_prog; ac_word=$2 | |
1635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1637 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1639 | else | |
1640 | if test -n "$ac_ct_CC"; then | |
1641 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1642 | else | |
1643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1644 | for as_dir in $PATH | |
1645 | do | |
1646 | IFS=$as_save_IFS | |
1647 | test -z "$as_dir" && as_dir=. | |
1648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1649 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1650 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1652 | break 2 | |
c906108c | 1653 | fi |
bec39cab AC |
1654 | done |
1655 | done | |
1656 | ||
1657 | fi | |
1658 | fi | |
1659 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1660 | if test -n "$ac_ct_CC"; then | |
1661 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1662 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1663 | else | |
1664 | echo "$as_me:$LINENO: result: no" >&5 | |
1665 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1666 | fi |
1667 | ||
bec39cab AC |
1668 | test -n "$ac_ct_CC" && break |
1669 | done | |
c906108c | 1670 | |
bec39cab AC |
1671 | CC=$ac_ct_CC |
1672 | fi | |
1673 | ||
1674 | fi | |
1675 | ||
1676 | ||
1677 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1678 | See \`config.log' for more details." >&5 | |
1679 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1680 | See \`config.log' for more details." >&2;} | |
1681 | { (exit 1); exit 1; }; } | |
1682 | ||
1683 | # Provide some information about the compiler. | |
1684 | echo "$as_me:$LINENO:" \ | |
1685 | "checking for C compiler version" >&5 | |
1686 | ac_compiler=`set X $ac_compile; echo $2` | |
1687 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1688 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1689 | ac_status=$? | |
1690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1691 | (exit $ac_status); } | |
1692 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1693 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1694 | ac_status=$? | |
1695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1696 | (exit $ac_status); } | |
1697 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1698 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1699 | ac_status=$? | |
1700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1701 | (exit $ac_status); } | |
1702 | ||
1703 | cat >conftest.$ac_ext <<_ACEOF | |
1704 | /* confdefs.h. */ | |
1705 | _ACEOF | |
1706 | cat confdefs.h >>conftest.$ac_ext | |
1707 | cat >>conftest.$ac_ext <<_ACEOF | |
1708 | /* end confdefs.h. */ | |
1709 | ||
1710 | int | |
1711 | main () | |
1712 | { | |
1713 | ||
1714 | ; | |
1715 | return 0; | |
1716 | } | |
1717 | _ACEOF | |
1718 | ac_clean_files_save=$ac_clean_files | |
1719 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1720 | # Try to create an executable without -o first, disregard a.out. | |
1721 | # It will help us diagnose broken compilers, and finding out an intuition | |
1722 | # of exeext. | |
1723 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1724 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1725 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1726 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1727 | (eval $ac_link_default) 2>&5 | |
1728 | ac_status=$? | |
1729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1730 | (exit $ac_status); }; then | |
1731 | # Find the output, starting from the most likely. This scheme is | |
1732 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1733 | # resort. | |
1734 | ||
1735 | # Be careful to initialize this variable, since it used to be cached. | |
1736 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1737 | ac_cv_exeext= | |
1738 | # b.out is created by i960 compilers. | |
1739 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1740 | do | |
1741 | test -f "$ac_file" || continue | |
1742 | case $ac_file in | |
1743 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1744 | ;; | |
1745 | conftest.$ac_ext ) | |
1746 | # This is the source file. | |
1747 | ;; | |
1748 | [ab].out ) | |
1749 | # We found the default executable, but exeext='' is most | |
1750 | # certainly right. | |
1751 | break;; | |
1752 | *.* ) | |
1753 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1754 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1755 | # but it would be cool to find out if it's true. Does anybody | |
1756 | # maintain Libtool? --akim. | |
1757 | export ac_cv_exeext | |
1758 | break;; | |
1759 | * ) | |
1760 | break;; | |
1761 | esac | |
1762 | done | |
1763 | else | |
1764 | echo "$as_me: failed program was:" >&5 | |
1765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1766 | ||
1767 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1768 | See \`config.log' for more details." >&5 | |
1769 | echo "$as_me: error: C compiler cannot create executables | |
1770 | See \`config.log' for more details." >&2;} | |
1771 | { (exit 77); exit 77; }; } | |
1772 | fi | |
1773 | ||
1774 | ac_exeext=$ac_cv_exeext | |
1775 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1776 | echo "${ECHO_T}$ac_file" >&6 | |
1777 | ||
1778 | # Check the compiler produces executables we can run. If not, either | |
1779 | # the compiler is broken, or we cross compile. | |
1780 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1781 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1782 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1783 | # If not cross compiling, check that we can run a simple program. | |
1784 | if test "$cross_compiling" != yes; then | |
1785 | if { ac_try='./$ac_file' | |
1786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1787 | (eval $ac_try) 2>&5 | |
1788 | ac_status=$? | |
1789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1790 | (exit $ac_status); }; }; then | |
1791 | cross_compiling=no | |
c906108c | 1792 | else |
bec39cab AC |
1793 | if test "$cross_compiling" = maybe; then |
1794 | cross_compiling=yes | |
1795 | else | |
1796 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1797 | If you meant to cross compile, use \`--host'. | |
1798 | See \`config.log' for more details." >&5 | |
1799 | echo "$as_me: error: cannot run C compiled programs. | |
1800 | If you meant to cross compile, use \`--host'. | |
1801 | See \`config.log' for more details." >&2;} | |
1802 | { (exit 1); exit 1; }; } | |
1803 | fi | |
c906108c | 1804 | fi |
bec39cab AC |
1805 | fi |
1806 | echo "$as_me:$LINENO: result: yes" >&5 | |
1807 | echo "${ECHO_T}yes" >&6 | |
1808 | ||
1809 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1810 | ac_clean_files=$ac_clean_files_save | |
1811 | # Check the compiler produces executables we can run. If not, either | |
1812 | # the compiler is broken, or we cross compile. | |
1813 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1814 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1815 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1816 | echo "${ECHO_T}$cross_compiling" >&6 | |
1817 | ||
1818 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1819 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1821 | (eval $ac_link) 2>&5 | |
1822 | ac_status=$? | |
1823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1824 | (exit $ac_status); }; then | |
1825 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1826 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1827 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1828 | # `rm'. | |
1829 | for ac_file in conftest.exe conftest conftest.*; do | |
1830 | test -f "$ac_file" || continue | |
1831 | case $ac_file in | |
1832 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1833 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1834 | export ac_cv_exeext | |
1835 | break;; | |
1836 | * ) break;; | |
1837 | esac | |
1838 | done | |
c906108c | 1839 | else |
bec39cab AC |
1840 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1841 | See \`config.log' for more details." >&5 | |
1842 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1843 | See \`config.log' for more details." >&2;} | |
1844 | { (exit 1); exit 1; }; } | |
c906108c | 1845 | fi |
c906108c | 1846 | |
bec39cab AC |
1847 | rm -f conftest$ac_cv_exeext |
1848 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1849 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1850 | |
bec39cab AC |
1851 | rm -f conftest.$ac_ext |
1852 | EXEEXT=$ac_cv_exeext | |
1853 | ac_exeext=$EXEEXT | |
1854 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1855 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1856 | if test "${ac_cv_objext+set}" = set; then | |
1857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1858 | else | |
1859 | cat >conftest.$ac_ext <<_ACEOF | |
1860 | /* confdefs.h. */ | |
1861 | _ACEOF | |
1862 | cat confdefs.h >>conftest.$ac_ext | |
1863 | cat >>conftest.$ac_ext <<_ACEOF | |
1864 | /* end confdefs.h. */ | |
c906108c | 1865 | |
bec39cab AC |
1866 | int |
1867 | main () | |
1868 | { | |
c906108c | 1869 | |
bec39cab AC |
1870 | ; |
1871 | return 0; | |
1872 | } | |
1873 | _ACEOF | |
1874 | rm -f conftest.o conftest.obj | |
1875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1876 | (eval $ac_compile) 2>&5 | |
1877 | ac_status=$? | |
1878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1879 | (exit $ac_status); }; then | |
1880 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1881 | case $ac_file in | |
1882 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1883 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1884 | break;; | |
1885 | esac | |
1886 | done | |
c906108c | 1887 | else |
bec39cab AC |
1888 | echo "$as_me: failed program was:" >&5 |
1889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1890 | ||
1891 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1892 | See \`config.log' for more details." >&5 | |
1893 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1894 | See \`config.log' for more details." >&2;} | |
1895 | { (exit 1); exit 1; }; } | |
c906108c SS |
1896 | fi |
1897 | ||
bec39cab AC |
1898 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1899 | fi | |
1900 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1901 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1902 | OBJEXT=$ac_cv_objext | |
1903 | ac_objext=$OBJEXT | |
1904 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1905 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1906 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1908 | else |
bec39cab AC |
1909 | cat >conftest.$ac_ext <<_ACEOF |
1910 | /* confdefs.h. */ | |
1911 | _ACEOF | |
1912 | cat confdefs.h >>conftest.$ac_ext | |
1913 | cat >>conftest.$ac_ext <<_ACEOF | |
1914 | /* end confdefs.h. */ | |
1915 | ||
1916 | int | |
1917 | main () | |
1918 | { | |
1919 | #ifndef __GNUC__ | |
1920 | choke me | |
1921 | #endif | |
1922 | ||
1923 | ; | |
1924 | return 0; | |
1925 | } | |
1926 | _ACEOF | |
1927 | rm -f conftest.$ac_objext | |
1928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1929 | (eval $ac_compile) 2>conftest.er1 | |
1930 | ac_status=$? | |
1931 | grep -v '^ *+' conftest.er1 >conftest.err | |
1932 | rm -f conftest.er1 | |
1933 | cat conftest.err >&5 | |
1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1935 | (exit $ac_status); } && | |
121ce6e5 | 1936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
1937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1938 | (eval $ac_try) 2>&5 | |
1939 | ac_status=$? | |
1940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1941 | (exit $ac_status); }; } && | |
1942 | { ac_try='test -s conftest.$ac_objext' | |
1943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1944 | (eval $ac_try) 2>&5 | |
1945 | ac_status=$? | |
1946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1947 | (exit $ac_status); }; }; then | |
1948 | ac_compiler_gnu=yes | |
1949 | else | |
1950 | echo "$as_me: failed program was:" >&5 | |
1951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1952 | ||
1953 | ac_compiler_gnu=no | |
1954 | fi | |
1955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1956 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1957 | ||
1958 | fi | |
1959 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
1960 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1961 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1962 | ac_test_CFLAGS=${CFLAGS+set} | |
1963 | ac_save_CFLAGS=$CFLAGS | |
1964 | CFLAGS="-g" | |
1965 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1966 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1967 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1969 | else | |
1970 | cat >conftest.$ac_ext <<_ACEOF | |
1971 | /* confdefs.h. */ | |
1972 | _ACEOF | |
1973 | cat confdefs.h >>conftest.$ac_ext | |
1974 | cat >>conftest.$ac_ext <<_ACEOF | |
1975 | /* end confdefs.h. */ | |
1976 | ||
1977 | int | |
1978 | main () | |
1979 | { | |
1980 | ||
1981 | ; | |
1982 | return 0; | |
1983 | } | |
1984 | _ACEOF | |
1985 | rm -f conftest.$ac_objext | |
1986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1987 | (eval $ac_compile) 2>conftest.er1 | |
1988 | ac_status=$? | |
1989 | grep -v '^ *+' conftest.er1 >conftest.err | |
1990 | rm -f conftest.er1 | |
1991 | cat conftest.err >&5 | |
1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1993 | (exit $ac_status); } && | |
121ce6e5 | 1994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
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); } && | |
121ce6e5 | 2110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2112 | (eval $ac_try) 2>&5 | |
2113 | ac_status=$? | |
2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2115 | (exit $ac_status); }; } && | |
2116 | { ac_try='test -s conftest.$ac_objext' | |
2117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2118 | (eval $ac_try) 2>&5 | |
2119 | ac_status=$? | |
2120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2121 | (exit $ac_status); }; }; then | |
2122 | ac_cv_prog_cc_stdc=$ac_arg | |
2123 | break | |
c906108c | 2124 | else |
bec39cab AC |
2125 | echo "$as_me: failed program was:" >&5 |
2126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2127 | ||
c906108c | 2128 | fi |
bec39cab | 2129 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2130 | done |
bec39cab AC |
2131 | rm -f conftest.$ac_ext conftest.$ac_objext |
2132 | CC=$ac_save_CC | |
c906108c SS |
2133 | |
2134 | fi | |
2135 | ||
bec39cab AC |
2136 | case "x$ac_cv_prog_cc_stdc" in |
2137 | x|xno) | |
2138 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2139 | echo "${ECHO_T}none needed" >&6 ;; | |
2140 | *) | |
2141 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2142 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2143 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2144 | esac |
2145 | ||
bec39cab AC |
2146 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2147 | # in C++ we need to declare it. In case someone uses the same compiler | |
2148 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2149 | # the declaration of exit, since it's the most demanding environment. | |
2150 | cat >conftest.$ac_ext <<_ACEOF | |
2151 | #ifndef __cplusplus | |
2152 | choke me | |
2153 | #endif | |
2154 | _ACEOF | |
2155 | rm -f conftest.$ac_objext | |
2156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2157 | (eval $ac_compile) 2>conftest.er1 | |
2158 | ac_status=$? | |
2159 | grep -v '^ *+' conftest.er1 >conftest.err | |
2160 | rm -f conftest.er1 | |
2161 | cat conftest.err >&5 | |
2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2163 | (exit $ac_status); } && | |
121ce6e5 | 2164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2166 | (eval $ac_try) 2>&5 | |
2167 | ac_status=$? | |
2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2169 | (exit $ac_status); }; } && | |
2170 | { ac_try='test -s conftest.$ac_objext' | |
2171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2172 | (eval $ac_try) 2>&5 | |
2173 | ac_status=$? | |
2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2175 | (exit $ac_status); }; }; then | |
2176 | for ac_declaration in \ | |
2177 | '' \ | |
2178 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2179 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2180 | 'extern "C" void exit (int) throw ();' \ | |
2181 | 'extern "C" void exit (int);' \ | |
2182 | 'void exit (int);' | |
2183 | do | |
2184 | cat >conftest.$ac_ext <<_ACEOF | |
2185 | /* confdefs.h. */ | |
2186 | _ACEOF | |
2187 | cat confdefs.h >>conftest.$ac_ext | |
2188 | cat >>conftest.$ac_ext <<_ACEOF | |
2189 | /* end confdefs.h. */ | |
2190 | $ac_declaration | |
2191 | #include <stdlib.h> | |
2192 | int | |
2193 | main () | |
2194 | { | |
2195 | exit (42); | |
2196 | ; | |
2197 | return 0; | |
2198 | } | |
2199 | _ACEOF | |
2200 | rm -f conftest.$ac_objext | |
2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2202 | (eval $ac_compile) 2>conftest.er1 | |
2203 | ac_status=$? | |
2204 | grep -v '^ *+' conftest.er1 >conftest.err | |
2205 | rm -f conftest.er1 | |
2206 | cat conftest.err >&5 | |
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2208 | (exit $ac_status); } && | |
121ce6e5 | 2209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2211 | (eval $ac_try) 2>&5 | |
2212 | ac_status=$? | |
2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2214 | (exit $ac_status); }; } && | |
2215 | { ac_try='test -s conftest.$ac_objext' | |
2216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2217 | (eval $ac_try) 2>&5 | |
2218 | ac_status=$? | |
2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2220 | (exit $ac_status); }; }; then | |
2221 | : | |
2222 | else | |
2223 | echo "$as_me: failed program was:" >&5 | |
2224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2225 | |
bec39cab | 2226 | continue |
c906108c | 2227 | fi |
bec39cab AC |
2228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2229 | cat >conftest.$ac_ext <<_ACEOF | |
2230 | /* confdefs.h. */ | |
2231 | _ACEOF | |
2232 | cat confdefs.h >>conftest.$ac_ext | |
2233 | cat >>conftest.$ac_ext <<_ACEOF | |
2234 | /* end confdefs.h. */ | |
2235 | $ac_declaration | |
2236 | int | |
2237 | main () | |
2238 | { | |
2239 | exit (42); | |
2240 | ; | |
2241 | return 0; | |
2242 | } | |
2243 | _ACEOF | |
2244 | rm -f conftest.$ac_objext | |
2245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2246 | (eval $ac_compile) 2>conftest.er1 | |
2247 | ac_status=$? | |
2248 | grep -v '^ *+' conftest.er1 >conftest.err | |
2249 | rm -f conftest.er1 | |
2250 | cat conftest.err >&5 | |
2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2252 | (exit $ac_status); } && | |
121ce6e5 | 2253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2255 | (eval $ac_try) 2>&5 | |
2256 | ac_status=$? | |
2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2258 | (exit $ac_status); }; } && | |
2259 | { ac_try='test -s conftest.$ac_objext' | |
2260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2261 | (eval $ac_try) 2>&5 | |
2262 | ac_status=$? | |
2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2264 | (exit $ac_status); }; }; then | |
2265 | break | |
2266 | else | |
2267 | echo "$as_me: failed program was:" >&5 | |
2268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2269 | |
bec39cab AC |
2270 | fi |
2271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2272 | done | |
2273 | rm -f conftest* | |
2274 | if test -n "$ac_declaration"; then | |
2275 | echo '#ifdef __cplusplus' >>confdefs.h | |
2276 | echo $ac_declaration >>confdefs.h | |
2277 | echo '#endif' >>confdefs.h | |
c906108c SS |
2278 | fi |
2279 | ||
bec39cab AC |
2280 | else |
2281 | echo "$as_me: failed program was:" >&5 | |
2282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2283 | |
bec39cab AC |
2284 | fi |
2285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2286 | ac_ext=c | |
2287 | ac_cpp='$CPP $CPPFLAGS' | |
2288 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2289 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2290 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2291 | |
60ca704f | 2292 | |
bec39cab AC |
2293 | cat >>confdefs.h <<\_ACEOF |
2294 | #define _GNU_SOURCE 1 | |
2295 | _ACEOF | |
c906108c SS |
2296 | |
2297 | ||
8bb2c122 | 2298 | |
bec39cab AC |
2299 | ac_ext=c |
2300 | ac_cpp='$CPP $CPPFLAGS' | |
2301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2304 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2305 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2306 | # On Suns, sometimes $CPP names a directory. | |
2307 | if test -n "$CPP" && test -d "$CPP"; then | |
2308 | CPP= | |
8bb2c122 | 2309 | fi |
bec39cab AC |
2310 | if test -z "$CPP"; then |
2311 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2313 | else | |
2314 | # Double quotes because CPP needs to be expanded | |
2315 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2316 | do | |
2317 | ac_preproc_ok=false | |
2318 | for ac_c_preproc_warn_flag in '' yes | |
2319 | do | |
2320 | # Use a header file that comes with gcc, so configuring glibc | |
2321 | # with a fresh cross-compiler works. | |
2322 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2323 | # <limits.h> exists even on freestanding compilers. | |
2324 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2325 | # not just through cpp. "Syntax error" is here to catch this case. | |
2326 | cat >conftest.$ac_ext <<_ACEOF | |
2327 | /* confdefs.h. */ | |
2328 | _ACEOF | |
2329 | cat confdefs.h >>conftest.$ac_ext | |
2330 | cat >>conftest.$ac_ext <<_ACEOF | |
2331 | /* end confdefs.h. */ | |
2332 | #ifdef __STDC__ | |
2333 | # include <limits.h> | |
2334 | #else | |
2335 | # include <assert.h> | |
2336 | #endif | |
2337 | Syntax error | |
2338 | _ACEOF | |
2339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2341 | ac_status=$? | |
2342 | grep -v '^ *+' conftest.er1 >conftest.err | |
2343 | rm -f conftest.er1 | |
2344 | cat conftest.err >&5 | |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2346 | (exit $ac_status); } >/dev/null; then | |
2347 | if test -s conftest.err; then | |
2348 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2349 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2350 | else | |
2351 | ac_cpp_err= | |
2352 | fi | |
8bb2c122 | 2353 | else |
bec39cab | 2354 | ac_cpp_err=yes |
8bb2c122 | 2355 | fi |
bec39cab AC |
2356 | if test -z "$ac_cpp_err"; then |
2357 | : | |
8bb2c122 | 2358 | else |
bec39cab AC |
2359 | echo "$as_me: failed program was:" >&5 |
2360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2361 | ||
2362 | # Broken: fails on valid input. | |
2363 | continue | |
2364 | fi | |
2365 | rm -f conftest.err conftest.$ac_ext | |
2366 | ||
2367 | # OK, works on sane cases. Now check whether non-existent headers | |
2368 | # can be detected and how. | |
2369 | cat >conftest.$ac_ext <<_ACEOF | |
2370 | /* confdefs.h. */ | |
2371 | _ACEOF | |
2372 | cat confdefs.h >>conftest.$ac_ext | |
2373 | cat >>conftest.$ac_ext <<_ACEOF | |
2374 | /* end confdefs.h. */ | |
2375 | #include <ac_nonexistent.h> | |
2376 | _ACEOF | |
2377 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2378 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2379 | ac_status=$? | |
2380 | grep -v '^ *+' conftest.er1 >conftest.err | |
2381 | rm -f conftest.er1 | |
2382 | cat conftest.err >&5 | |
2383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2384 | (exit $ac_status); } >/dev/null; then | |
2385 | if test -s conftest.err; then | |
2386 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2387 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2388 | else | |
2389 | ac_cpp_err= | |
2390 | fi | |
8bb2c122 | 2391 | else |
bec39cab | 2392 | ac_cpp_err=yes |
8bb2c122 | 2393 | fi |
bec39cab AC |
2394 | if test -z "$ac_cpp_err"; then |
2395 | # Broken: success on invalid input. | |
2396 | continue | |
8bb2c122 | 2397 | else |
bec39cab AC |
2398 | echo "$as_me: failed program was:" >&5 |
2399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2400 | |
bec39cab AC |
2401 | # Passes both tests. |
2402 | ac_preproc_ok=: | |
2403 | break | |
8bb2c122 | 2404 | fi |
bec39cab | 2405 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2406 | |
bec39cab AC |
2407 | done |
2408 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2409 | rm -f conftest.err conftest.$ac_ext | |
2410 | if $ac_preproc_ok; then | |
2411 | break | |
2412 | fi | |
8bb2c122 | 2413 | |
bec39cab AC |
2414 | done |
2415 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2416 | |
c906108c | 2417 | fi |
bec39cab AC |
2418 | CPP=$ac_cv_prog_CPP |
2419 | else | |
2420 | ac_cv_prog_CPP=$CPP | |
c906108c | 2421 | fi |
bec39cab AC |
2422 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2423 | echo "${ECHO_T}$CPP" >&6 | |
2424 | ac_preproc_ok=false | |
2425 | for ac_c_preproc_warn_flag in '' yes | |
2426 | do | |
2427 | # Use a header file that comes with gcc, so configuring glibc | |
2428 | # with a fresh cross-compiler works. | |
2429 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2430 | # <limits.h> exists even on freestanding compilers. | |
2431 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2432 | # not just through cpp. "Syntax error" is here to catch this case. | |
2433 | cat >conftest.$ac_ext <<_ACEOF | |
2434 | /* confdefs.h. */ | |
2435 | _ACEOF | |
2436 | cat confdefs.h >>conftest.$ac_ext | |
2437 | cat >>conftest.$ac_ext <<_ACEOF | |
2438 | /* end confdefs.h. */ | |
2439 | #ifdef __STDC__ | |
2440 | # include <limits.h> | |
2441 | #else | |
2442 | # include <assert.h> | |
2443 | #endif | |
2444 | Syntax error | |
2445 | _ACEOF | |
2446 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2447 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2448 | ac_status=$? | |
2449 | grep -v '^ *+' conftest.er1 >conftest.err | |
2450 | rm -f conftest.er1 | |
2451 | cat conftest.err >&5 | |
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2453 | (exit $ac_status); } >/dev/null; then | |
2454 | if test -s conftest.err; then | |
2455 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2456 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2457 | else | |
2458 | ac_cpp_err= | |
2459 | fi | |
c906108c | 2460 | else |
bec39cab | 2461 | ac_cpp_err=yes |
c906108c | 2462 | fi |
bec39cab AC |
2463 | if test -z "$ac_cpp_err"; then |
2464 | : | |
c906108c | 2465 | else |
bec39cab AC |
2466 | echo "$as_me: failed program was:" >&5 |
2467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2468 | ||
2469 | # Broken: fails on valid input. | |
2470 | continue | |
2471 | fi | |
2472 | rm -f conftest.err conftest.$ac_ext | |
2473 | ||
2474 | # OK, works on sane cases. Now check whether non-existent headers | |
2475 | # can be detected and how. | |
2476 | cat >conftest.$ac_ext <<_ACEOF | |
2477 | /* confdefs.h. */ | |
2478 | _ACEOF | |
2479 | cat confdefs.h >>conftest.$ac_ext | |
2480 | cat >>conftest.$ac_ext <<_ACEOF | |
2481 | /* end confdefs.h. */ | |
2482 | #include <ac_nonexistent.h> | |
2483 | _ACEOF | |
2484 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2485 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2486 | ac_status=$? | |
2487 | grep -v '^ *+' conftest.er1 >conftest.err | |
2488 | rm -f conftest.er1 | |
2489 | cat conftest.err >&5 | |
2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2491 | (exit $ac_status); } >/dev/null; then | |
2492 | if test -s conftest.err; then | |
2493 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2494 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2495 | else | |
2496 | ac_cpp_err= | |
2497 | fi | |
c906108c | 2498 | else |
bec39cab | 2499 | ac_cpp_err=yes |
c906108c | 2500 | fi |
bec39cab AC |
2501 | if test -z "$ac_cpp_err"; then |
2502 | # Broken: success on invalid input. | |
2503 | continue | |
c906108c | 2504 | else |
bec39cab AC |
2505 | echo "$as_me: failed program was:" >&5 |
2506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2507 | |
bec39cab AC |
2508 | # Passes both tests. |
2509 | ac_preproc_ok=: | |
2510 | break | |
c906108c | 2511 | fi |
bec39cab | 2512 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2513 | |
bec39cab AC |
2514 | done |
2515 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2516 | rm -f conftest.err conftest.$ac_ext | |
2517 | if $ac_preproc_ok; then | |
c906108c SS |
2518 | : |
2519 | else | |
bec39cab AC |
2520 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2521 | See \`config.log' for more details." >&5 | |
2522 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2523 | See \`config.log' for more details." >&2;} | |
2524 | { (exit 1); exit 1; }; } | |
c906108c | 2525 | fi |
c906108c | 2526 | |
bec39cab AC |
2527 | ac_ext=c |
2528 | ac_cpp='$CPP $CPPFLAGS' | |
2529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2532 | ||
2533 | ||
2534 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2535 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2536 | if test "${ac_cv_prog_egrep+set}" = set; then | |
2537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2538 | else | |
2539 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2540 | then ac_cv_prog_egrep='grep -E' | |
2541 | else ac_cv_prog_egrep='egrep' | |
2542 | fi | |
c906108c | 2543 | fi |
bec39cab AC |
2544 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2545 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2546 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2547 | |
bec39cab AC |
2548 | |
2549 | ||
2550 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
2551 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
2552 | cat >conftest.$ac_ext <<_ACEOF | |
2553 | /* confdefs.h. */ | |
2554 | _ACEOF | |
2555 | cat confdefs.h >>conftest.$ac_ext | |
2556 | cat >>conftest.$ac_ext <<_ACEOF | |
2557 | /* end confdefs.h. */ | |
2558 | #ifdef _AIX | |
2559 | yes | |
2560 | #endif | |
2561 | ||
2562 | _ACEOF | |
c906108c | 2563 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab AC |
2564 | $EGREP "yes" >/dev/null 2>&1; then |
2565 | echo "$as_me:$LINENO: result: yes" >&5 | |
2566 | echo "${ECHO_T}yes" >&6 | |
2567 | cat >>confdefs.h <<\_ACEOF | |
2568 | #define _ALL_SOURCE 1 | |
2569 | _ACEOF | |
2570 | ||
c906108c | 2571 | else |
bec39cab AC |
2572 | echo "$as_me:$LINENO: result: no" >&5 |
2573 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2574 | fi |
2575 | rm -f conftest* | |
2576 | ||
c906108c | 2577 | |
bec39cab AC |
2578 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2579 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2580 | if test "${ac_cv_search_strerror+set}" = set; then | |
2581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2582 | else |
bec39cab AC |
2583 | ac_func_search_save_LIBS=$LIBS |
2584 | ac_cv_search_strerror=no | |
2585 | cat >conftest.$ac_ext <<_ACEOF | |
2586 | /* confdefs.h. */ | |
2587 | _ACEOF | |
2588 | cat confdefs.h >>conftest.$ac_ext | |
2589 | cat >>conftest.$ac_ext <<_ACEOF | |
2590 | /* end confdefs.h. */ | |
c906108c | 2591 | |
bec39cab AC |
2592 | /* Override any gcc2 internal prototype to avoid an error. */ |
2593 | #ifdef __cplusplus | |
2594 | extern "C" | |
2595 | #endif | |
2596 | /* We use char because int might match the return type of a gcc2 | |
2597 | builtin and then its argument prototype would still apply. */ | |
2598 | char strerror (); | |
2599 | int | |
2600 | main () | |
2601 | { | |
2602 | strerror (); | |
2603 | ; | |
2604 | return 0; | |
2605 | } | |
2606 | _ACEOF | |
2607 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2609 | (eval $ac_link) 2>conftest.er1 | |
2610 | ac_status=$? | |
2611 | grep -v '^ *+' conftest.er1 >conftest.err | |
2612 | rm -f conftest.er1 | |
2613 | cat conftest.err >&5 | |
2614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2615 | (exit $ac_status); } && | |
121ce6e5 | 2616 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2618 | (eval $ac_try) 2>&5 | |
2619 | ac_status=$? | |
2620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2621 | (exit $ac_status); }; } && | |
2622 | { ac_try='test -s conftest$ac_exeext' | |
2623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2624 | (eval $ac_try) 2>&5 | |
2625 | ac_status=$? | |
2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2627 | (exit $ac_status); }; }; then | |
2628 | ac_cv_search_strerror="none required" | |
2629 | else | |
2630 | echo "$as_me: failed program was:" >&5 | |
2631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2632 | ||
2633 | fi | |
2634 | rm -f conftest.err conftest.$ac_objext \ | |
2635 | conftest$ac_exeext conftest.$ac_ext | |
2636 | if test "$ac_cv_search_strerror" = no; then | |
2637 | for ac_lib in cposix; do | |
2638 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2639 | cat >conftest.$ac_ext <<_ACEOF | |
2640 | /* confdefs.h. */ | |
2641 | _ACEOF | |
2642 | cat confdefs.h >>conftest.$ac_ext | |
2643 | cat >>conftest.$ac_ext <<_ACEOF | |
2644 | /* end confdefs.h. */ | |
2645 | ||
2646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2647 | #ifdef __cplusplus | |
2648 | extern "C" | |
2649 | #endif | |
2650 | /* We use char because int might match the return type of a gcc2 | |
2651 | builtin and then its argument prototype would still apply. */ | |
2652 | char strerror (); | |
2653 | int | |
2654 | main () | |
2655 | { | |
2656 | strerror (); | |
2657 | ; | |
2658 | return 0; | |
2659 | } | |
2660 | _ACEOF | |
2661 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2663 | (eval $ac_link) 2>conftest.er1 | |
2664 | ac_status=$? | |
2665 | grep -v '^ *+' conftest.er1 >conftest.err | |
2666 | rm -f conftest.er1 | |
2667 | cat conftest.err >&5 | |
2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2669 | (exit $ac_status); } && | |
121ce6e5 | 2670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2672 | (eval $ac_try) 2>&5 | |
2673 | ac_status=$? | |
2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2675 | (exit $ac_status); }; } && | |
2676 | { ac_try='test -s conftest$ac_exeext' | |
2677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2678 | (eval $ac_try) 2>&5 | |
2679 | ac_status=$? | |
2680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2681 | (exit $ac_status); }; }; then | |
2682 | ac_cv_search_strerror="-l$ac_lib" | |
2683 | break | |
c906108c | 2684 | else |
bec39cab AC |
2685 | echo "$as_me: failed program was:" >&5 |
2686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2687 | |
2688 | fi | |
bec39cab AC |
2689 | rm -f conftest.err conftest.$ac_objext \ |
2690 | conftest$ac_exeext conftest.$ac_ext | |
2691 | done | |
c906108c | 2692 | fi |
bec39cab | 2693 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2694 | fi |
bec39cab AC |
2695 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2696 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2697 | if test "$ac_cv_search_strerror" != no; then | |
2698 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2699 | ||
c906108c SS |
2700 | fi |
2701 | ||
c906108c | 2702 | |
c906108c | 2703 | |
bec39cab AC |
2704 | |
2705 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 | |
2706 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
2707 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
2708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2709 | else |
bec39cab AC |
2710 | am_cv_prog_cc_stdc=no |
2711 | ac_save_CC="$CC" | |
2712 | # Don't try gcc -ansi; that turns off useful extensions and | |
2713 | # breaks some systems' header files. | |
2714 | # AIX -qlanglvl=ansi | |
2715 | # Ultrix and OSF/1 -std1 | |
2716 | # HP-UX 10.20 and later -Ae | |
2717 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2718 | # SVR4 -Xc -D__EXTENSIONS__ | |
2719 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2720 | do | |
2721 | CC="$ac_save_CC $ac_arg" | |
2722 | cat >conftest.$ac_ext <<_ACEOF | |
2723 | /* confdefs.h. */ | |
2724 | _ACEOF | |
2725 | cat confdefs.h >>conftest.$ac_ext | |
2726 | cat >>conftest.$ac_ext <<_ACEOF | |
2727 | /* end confdefs.h. */ | |
2728 | #include <stdarg.h> | |
2729 | #include <stdio.h> | |
2730 | #include <sys/types.h> | |
2731 | #include <sys/stat.h> | |
2732 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2733 | struct buf { int x; }; | |
2734 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2735 | static char *e (p, i) | |
2736 | char **p; | |
2737 | int i; | |
2738 | { | |
2739 | return p[i]; | |
2740 | } | |
2741 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2742 | { | |
2743 | char *s; | |
2744 | va_list v; | |
2745 | va_start (v,p); | |
2746 | s = g (p, va_arg (v,int)); | |
2747 | va_end (v); | |
2748 | return s; | |
2749 | } | |
2750 | int test (int i, double x); | |
2751 | struct s1 {int (*f) (int a);}; | |
2752 | struct s2 {int (*f) (double a);}; | |
2753 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2754 | int argc; | |
2755 | char **argv; | |
c906108c | 2756 | |
bec39cab AC |
2757 | int |
2758 | main () | |
2759 | { | |
c906108c | 2760 | |
bec39cab | 2761 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 2762 | |
bec39cab AC |
2763 | ; |
2764 | return 0; | |
2765 | } | |
2766 | _ACEOF | |
2767 | rm -f conftest.$ac_objext | |
2768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2769 | (eval $ac_compile) 2>conftest.er1 | |
2770 | ac_status=$? | |
2771 | grep -v '^ *+' conftest.er1 >conftest.err | |
2772 | rm -f conftest.er1 | |
2773 | cat conftest.err >&5 | |
2774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2775 | (exit $ac_status); } && | |
121ce6e5 | 2776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2778 | (eval $ac_try) 2>&5 | |
2779 | ac_status=$? | |
2780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2781 | (exit $ac_status); }; } && | |
2782 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2788 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 2789 | else |
bec39cab AC |
2790 | echo "$as_me: failed program was:" >&5 |
2791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2792 | |
2793 | fi | |
bec39cab AC |
2794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2795 | done | |
2796 | CC="$ac_save_CC" | |
c906108c SS |
2797 | |
2798 | fi | |
2799 | ||
bec39cab AC |
2800 | if test -z "$am_cv_prog_cc_stdc"; then |
2801 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2802 | echo "${ECHO_T}none needed" >&6 | |
c906108c | 2803 | else |
bec39cab AC |
2804 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
2805 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
c906108c | 2806 | fi |
bec39cab AC |
2807 | case "x$am_cv_prog_cc_stdc" in |
2808 | x|xno) ;; | |
2809 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2810 | esac | |
c906108c | 2811 | |
c906108c | 2812 | |
bec39cab AC |
2813 | ac_aux_dir= |
2814 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
2815 | if test -f $ac_dir/install-sh; then | |
2816 | ac_aux_dir=$ac_dir | |
2817 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2818 | break | |
2819 | elif test -f $ac_dir/install.sh; then | |
2820 | ac_aux_dir=$ac_dir | |
2821 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2822 | break | |
2823 | elif test -f $ac_dir/shtool; then | |
2824 | ac_aux_dir=$ac_dir | |
2825 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2826 | break | |
2827 | fi | |
2828 | done | |
2829 | if test -z "$ac_aux_dir"; then | |
2830 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
2831 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
2832 | { (exit 1); exit 1; }; } | |
c906108c | 2833 | fi |
bec39cab AC |
2834 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2835 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2836 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 2837 | |
bec39cab AC |
2838 | # Make sure we can run config.sub. |
2839 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2840 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2841 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2842 | { (exit 1); exit 1; }; } | |
2843 | ||
2844 | echo "$as_me:$LINENO: checking build system type" >&5 | |
2845 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
2846 | if test "${ac_cv_build+set}" = set; then | |
2847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2848 | else | |
2849 | ac_cv_build_alias=$build_alias | |
2850 | test -z "$ac_cv_build_alias" && | |
2851 | ac_cv_build_alias=`$ac_config_guess` | |
2852 | test -z "$ac_cv_build_alias" && | |
2853 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2854 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2855 | { (exit 1); exit 1; }; } | |
2856 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
2857 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2858 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
2859 | { (exit 1); exit 1; }; } | |
2860 | ||
2861 | fi | |
2862 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2863 | echo "${ECHO_T}$ac_cv_build" >&6 | |
2864 | build=$ac_cv_build | |
2865 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2866 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2867 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2868 | ||
2869 | ||
2870 | echo "$as_me:$LINENO: checking host system type" >&5 | |
2871 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
2872 | if test "${ac_cv_host+set}" = set; then | |
2873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2874 | else | |
2875 | ac_cv_host_alias=$host_alias | |
2876 | test -z "$ac_cv_host_alias" && | |
2877 | ac_cv_host_alias=$ac_cv_build_alias | |
2878 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2879 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2880 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
2881 | { (exit 1); exit 1; }; } | |
2882 | ||
2883 | fi | |
2884 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2885 | echo "${ECHO_T}$ac_cv_host" >&6 | |
2886 | host=$ac_cv_host | |
2887 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2888 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2889 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2890 | ||
2891 | ||
2892 | echo "$as_me:$LINENO: checking target system type" >&5 | |
2893 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
2894 | if test "${ac_cv_target+set}" = set; then | |
2895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2896 | else | |
2897 | ac_cv_target_alias=$target_alias | |
2898 | test "x$ac_cv_target_alias" = "x" && | |
2899 | ac_cv_target_alias=$ac_cv_host_alias | |
2900 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2901 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2902 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
2903 | { (exit 1); exit 1; }; } | |
2904 | ||
2905 | fi | |
2906 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
2907 | echo "${ECHO_T}$ac_cv_target" >&6 | |
2908 | target=$ac_cv_target | |
2909 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2910 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2911 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2912 | |
c906108c | 2913 | |
bec39cab AC |
2914 | # The aliases save the names the user supplied, while $host etc. |
2915 | # will get canonicalized. | |
2916 | test -n "$target_alias" && | |
2917 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2918 | NONENONEs,x,x, && | |
2919 | program_prefix=${target_alias}- | |
c906108c | 2920 | |
c906108c | 2921 | |
bec39cab AC |
2922 | CONFIG_OBS= |
2923 | CONFIG_DEPS= | |
2924 | CONFIG_SRCS= | |
2925 | ENABLE_CFLAGS= | |
c906108c | 2926 | |
bec39cab AC |
2927 | CONFIG_ALL= |
2928 | CONFIG_CLEAN= | |
2929 | CONFIG_INSTALL= | |
2930 | CONFIG_UNINSTALL= | |
2931 | ||
2932 | ||
2933 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2934 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2935 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2936 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2938 | else | |
2939 | cat >conftest.make <<\_ACEOF | |
2940 | all: | |
2941 | @echo 'ac_maketemp="$(MAKE)"' | |
2942 | _ACEOF | |
2943 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2944 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2945 | if test -n "$ac_maketemp"; then | |
2946 | eval ac_cv_prog_make_${ac_make}_set=yes | |
c906108c | 2947 | else |
bec39cab | 2948 | eval ac_cv_prog_make_${ac_make}_set=no |
c906108c | 2949 | fi |
bec39cab AC |
2950 | rm -f conftest.make |
2951 | fi | |
2952 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2953 | echo "$as_me:$LINENO: result: yes" >&5 | |
2954 | echo "${ECHO_T}yes" >&6 | |
2955 | SET_MAKE= | |
2956 | else | |
2957 | echo "$as_me:$LINENO: result: no" >&5 | |
2958 | echo "${ECHO_T}no" >&6 | |
2959 | SET_MAKE="MAKE=${MAKE-make}" | |
c906108c SS |
2960 | fi |
2961 | ||
bec39cab AC |
2962 | if test -n "$ac_tool_prefix"; then |
2963 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2964 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2967 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2969 | else | |
2970 | if test -n "$RANLIB"; then | |
2971 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2972 | else | |
2973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2974 | for as_dir in $PATH | |
2975 | do | |
2976 | IFS=$as_save_IFS | |
2977 | test -z "$as_dir" && as_dir=. | |
2978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2980 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2982 | break 2 | |
2983 | fi | |
2984 | done | |
2985 | done | |
c906108c | 2986 | |
bec39cab AC |
2987 | fi |
2988 | fi | |
2989 | RANLIB=$ac_cv_prog_RANLIB | |
2990 | if test -n "$RANLIB"; then | |
2991 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2992 | echo "${ECHO_T}$RANLIB" >&6 | |
c906108c | 2993 | else |
bec39cab AC |
2994 | echo "$as_me:$LINENO: result: no" >&5 |
2995 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2996 | fi |
2997 | ||
bec39cab AC |
2998 | fi |
2999 | if test -z "$ac_cv_prog_RANLIB"; then | |
3000 | ac_ct_RANLIB=$RANLIB | |
3001 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3002 | set dummy ranlib; ac_word=$2 | |
3003 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3005 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3007 | else | |
3008 | if test -n "$ac_ct_RANLIB"; then | |
3009 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3010 | else | |
3011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3012 | for as_dir in $PATH | |
3013 | do | |
3014 | IFS=$as_save_IFS | |
3015 | test -z "$as_dir" && as_dir=. | |
3016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3018 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3020 | break 2 | |
3021 | fi | |
3022 | done | |
c906108c | 3023 | done |
bec39cab AC |
3024 | |
3025 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3026 | fi | |
3027 | fi | |
3028 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3029 | if test -n "$ac_ct_RANLIB"; then | |
3030 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3031 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3032 | else | |
3033 | echo "$as_me:$LINENO: result: no" >&5 | |
3034 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3035 | fi |
3036 | ||
bec39cab | 3037 | RANLIB=$ac_ct_RANLIB |
c906108c | 3038 | else |
bec39cab AC |
3039 | RANLIB="$ac_cv_prog_RANLIB" |
3040 | fi | |
3041 | ||
3042 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3043 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3044 | if test "${ac_cv_header_stdc+set}" = set; then | |
3045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3046 | else |
bec39cab AC |
3047 | cat >conftest.$ac_ext <<_ACEOF |
3048 | /* confdefs.h. */ | |
3049 | _ACEOF | |
3050 | cat confdefs.h >>conftest.$ac_ext | |
3051 | cat >>conftest.$ac_ext <<_ACEOF | |
3052 | /* end confdefs.h. */ | |
3053 | #include <stdlib.h> | |
3054 | #include <stdarg.h> | |
3055 | #include <string.h> | |
3056 | #include <float.h> | |
3057 | ||
3058 | int | |
c906108c SS |
3059 | main () |
3060 | { | |
bec39cab AC |
3061 | |
3062 | ; | |
3063 | return 0; | |
c906108c | 3064 | } |
bec39cab AC |
3065 | _ACEOF |
3066 | rm -f conftest.$ac_objext | |
3067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3068 | (eval $ac_compile) 2>conftest.er1 | |
3069 | ac_status=$? | |
3070 | grep -v '^ *+' conftest.er1 >conftest.err | |
3071 | rm -f conftest.er1 | |
3072 | cat conftest.err >&5 | |
3073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3074 | (exit $ac_status); } && | |
121ce6e5 | 3075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3077 | (eval $ac_try) 2>&5 | |
3078 | ac_status=$? | |
3079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3080 | (exit $ac_status); }; } && | |
3081 | { ac_try='test -s conftest.$ac_objext' | |
3082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3083 | (eval $ac_try) 2>&5 | |
3084 | ac_status=$? | |
3085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3086 | (exit $ac_status); }; }; then | |
3087 | ac_cv_header_stdc=yes | |
c906108c | 3088 | else |
bec39cab AC |
3089 | echo "$as_me: failed program was:" >&5 |
3090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3091 | |
bec39cab | 3092 | ac_cv_header_stdc=no |
c906108c | 3093 | fi |
bec39cab | 3094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3095 | |
bec39cab AC |
3096 | if test $ac_cv_header_stdc = yes; then |
3097 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3098 | cat >conftest.$ac_ext <<_ACEOF | |
3099 | /* confdefs.h. */ | |
3100 | _ACEOF | |
3101 | cat confdefs.h >>conftest.$ac_ext | |
3102 | cat >>conftest.$ac_ext <<_ACEOF | |
3103 | /* end confdefs.h. */ | |
3104 | #include <string.h> | |
c906108c | 3105 | |
bec39cab AC |
3106 | _ACEOF |
3107 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3108 | $EGREP "memchr" >/dev/null 2>&1; then | |
3109 | : | |
c906108c | 3110 | else |
bec39cab | 3111 | ac_cv_header_stdc=no |
c906108c | 3112 | fi |
bec39cab | 3113 | rm -f conftest* |
c906108c | 3114 | |
bec39cab | 3115 | fi |
c906108c | 3116 | |
bec39cab AC |
3117 | if test $ac_cv_header_stdc = yes; then |
3118 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3119 | cat >conftest.$ac_ext <<_ACEOF | |
3120 | /* confdefs.h. */ | |
3121 | _ACEOF | |
3122 | cat confdefs.h >>conftest.$ac_ext | |
3123 | cat >>conftest.$ac_ext <<_ACEOF | |
3124 | /* end confdefs.h. */ | |
3125 | #include <stdlib.h> | |
c906108c | 3126 | |
bec39cab AC |
3127 | _ACEOF |
3128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3129 | $EGREP "free" >/dev/null 2>&1; then | |
3130 | : | |
c906108c | 3131 | else |
bec39cab | 3132 | ac_cv_header_stdc=no |
c906108c SS |
3133 | fi |
3134 | rm -f conftest* | |
c906108c | 3135 | |
c906108c | 3136 | fi |
c906108c | 3137 | |
bec39cab AC |
3138 | if test $ac_cv_header_stdc = yes; then |
3139 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
c906108c | 3140 | if test "$cross_compiling" = yes; then |
bec39cab | 3141 | : |
c906108c | 3142 | else |
bec39cab AC |
3143 | cat >conftest.$ac_ext <<_ACEOF |
3144 | /* confdefs.h. */ | |
3145 | _ACEOF | |
3146 | cat confdefs.h >>conftest.$ac_ext | |
3147 | cat >>conftest.$ac_ext <<_ACEOF | |
3148 | /* end confdefs.h. */ | |
3149 | #include <ctype.h> | |
3150 | #if ((' ' & 0x0FF) == 0x020) | |
3151 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3152 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3153 | #else | |
3154 | # define ISLOWER(c) \ | |
3155 | (('a' <= (c) && (c) <= 'i') \ | |
3156 | || ('j' <= (c) && (c) <= 'r') \ | |
3157 | || ('s' <= (c) && (c) <= 'z')) | |
3158 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3159 | #endif | |
c906108c | 3160 | |
bec39cab AC |
3161 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3162 | int | |
3163 | main () | |
3164 | { | |
3165 | int i; | |
3166 | for (i = 0; i < 256; i++) | |
3167 | if (XOR (islower (i), ISLOWER (i)) | |
3168 | || toupper (i) != TOUPPER (i)) | |
3169 | exit(2); | |
3170 | exit (0); | |
3171 | } | |
3172 | _ACEOF | |
3173 | rm -f conftest$ac_exeext | |
3174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3175 | (eval $ac_link) 2>&5 | |
3176 | ac_status=$? | |
3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3178 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3180 | (eval $ac_try) 2>&5 | |
3181 | ac_status=$? | |
3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3183 | (exit $ac_status); }; }; then | |
3184 | : | |
3185 | else | |
3186 | echo "$as_me: program exited with status $ac_status" >&5 | |
3187 | echo "$as_me: failed program was:" >&5 | |
3188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3189 | |
bec39cab AC |
3190 | ( exit $ac_status ) |
3191 | ac_cv_header_stdc=no | |
3192 | fi | |
3193 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3194 | fi | |
3195 | fi | |
3196 | fi | |
3197 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3198 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3199 | if test $ac_cv_header_stdc = yes; then | |
c906108c | 3200 | |
bec39cab AC |
3201 | cat >>confdefs.h <<\_ACEOF |
3202 | #define STDC_HEADERS 1 | |
3203 | _ACEOF | |
c906108c | 3204 | |
bec39cab | 3205 | fi |
c906108c | 3206 | |
bec39cab AC |
3207 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3208 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3209 | if test "${ac_cv_c_const+set}" = set; then | |
3210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3211 | else | |
3212 | cat >conftest.$ac_ext <<_ACEOF | |
3213 | /* confdefs.h. */ | |
3214 | _ACEOF | |
3215 | cat confdefs.h >>conftest.$ac_ext | |
3216 | cat >>conftest.$ac_ext <<_ACEOF | |
3217 | /* end confdefs.h. */ | |
c906108c | 3218 | |
bec39cab AC |
3219 | int |
3220 | main () | |
3221 | { | |
3222 | /* FIXME: Include the comments suggested by Paul. */ | |
3223 | #ifndef __cplusplus | |
3224 | /* Ultrix mips cc rejects this. */ | |
3225 | typedef int charset[2]; | |
3226 | const charset x; | |
3227 | /* SunOS 4.1.1 cc rejects this. */ | |
3228 | char const *const *ccp; | |
3229 | char **p; | |
3230 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3231 | struct point {int x, y;}; | |
3232 | static struct point const zero = {0,0}; | |
3233 | /* AIX XL C 1.02.0.0 rejects this. | |
3234 | It does not let you subtract one const X* pointer from another in | |
3235 | an arm of an if-expression whose if-part is not a constant | |
3236 | expression */ | |
3237 | const char *g = "string"; | |
3238 | ccp = &g + (g ? g-g : 0); | |
3239 | /* HPUX 7.0 cc rejects these. */ | |
3240 | ++ccp; | |
3241 | p = (char**) ccp; | |
3242 | ccp = (char const *const *) p; | |
3243 | { /* SCO 3.2v4 cc rejects this. */ | |
3244 | char *t; | |
3245 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3246 | ||
3247 | *t++ = 0; | |
3248 | } | |
3249 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3250 | int x[] = {25, 17}; | |
3251 | const int *foo = &x[0]; | |
3252 | ++foo; | |
3253 | } | |
3254 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3255 | typedef const int *iptr; | |
3256 | iptr p = 0; | |
3257 | ++p; | |
3258 | } | |
3259 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3260 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3261 | struct s { int j; const int *ap[3]; }; | |
3262 | struct s *b; b->j = 5; | |
3263 | } | |
3264 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3265 | const int foo = 10; | |
3266 | } | |
3267 | #endif | |
c906108c | 3268 | |
bec39cab AC |
3269 | ; |
3270 | return 0; | |
3271 | } | |
3272 | _ACEOF | |
3273 | rm -f conftest.$ac_objext | |
3274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3275 | (eval $ac_compile) 2>conftest.er1 | |
3276 | ac_status=$? | |
3277 | grep -v '^ *+' conftest.er1 >conftest.err | |
3278 | rm -f conftest.er1 | |
3279 | cat conftest.err >&5 | |
3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3281 | (exit $ac_status); } && | |
121ce6e5 | 3282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3284 | (eval $ac_try) 2>&5 | |
3285 | ac_status=$? | |
3286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3287 | (exit $ac_status); }; } && | |
3288 | { ac_try='test -s conftest.$ac_objext' | |
3289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3290 | (eval $ac_try) 2>&5 | |
3291 | ac_status=$? | |
3292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3293 | (exit $ac_status); }; }; then | |
3294 | ac_cv_c_const=yes | |
c906108c | 3295 | else |
bec39cab AC |
3296 | echo "$as_me: failed program was:" >&5 |
3297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3298 | |
bec39cab AC |
3299 | ac_cv_c_const=no |
3300 | fi | |
3301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3302 | fi |
bec39cab AC |
3303 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3304 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3305 | if test $ac_cv_c_const = no; then | |
c906108c | 3306 | |
bec39cab AC |
3307 | cat >>confdefs.h <<\_ACEOF |
3308 | #define const | |
3309 | _ACEOF | |
c906108c SS |
3310 | |
3311 | fi | |
3312 | ||
bec39cab AC |
3313 | echo "$as_me:$LINENO: checking for inline" >&5 |
3314 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3315 | if test "${ac_cv_c_inline+set}" = set; then | |
3316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3317 | else |
bec39cab AC |
3318 | ac_cv_c_inline=no |
3319 | for ac_kw in inline __inline__ __inline; do | |
3320 | cat >conftest.$ac_ext <<_ACEOF | |
3321 | /* confdefs.h. */ | |
3322 | _ACEOF | |
3323 | cat confdefs.h >>conftest.$ac_ext | |
3324 | cat >>conftest.$ac_ext <<_ACEOF | |
3325 | /* end confdefs.h. */ | |
3326 | #ifndef __cplusplus | |
3327 | typedef int foo_t; | |
3328 | static $ac_kw foo_t static_foo () {return 0; } | |
3329 | $ac_kw foo_t foo () {return 0; } | |
c906108c SS |
3330 | #endif |
3331 | ||
bec39cab AC |
3332 | _ACEOF |
3333 | rm -f conftest.$ac_objext | |
3334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3335 | (eval $ac_compile) 2>conftest.er1 | |
3336 | ac_status=$? | |
3337 | grep -v '^ *+' conftest.er1 >conftest.err | |
3338 | rm -f conftest.er1 | |
3339 | cat conftest.err >&5 | |
3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3341 | (exit $ac_status); } && | |
121ce6e5 | 3342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3344 | (eval $ac_try) 2>&5 | |
3345 | ac_status=$? | |
3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3347 | (exit $ac_status); }; } && | |
3348 | { ac_try='test -s conftest.$ac_objext' | |
3349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3350 | (eval $ac_try) 2>&5 | |
3351 | ac_status=$? | |
3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3353 | (exit $ac_status); }; }; then | |
3354 | ac_cv_c_inline=$ac_kw; break | |
c906108c | 3355 | else |
bec39cab AC |
3356 | echo "$as_me: failed program was:" >&5 |
3357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3358 | |
c906108c | 3359 | fi |
bec39cab | 3360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
3361 | done |
3362 | ||
bec39cab AC |
3363 | fi |
3364 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3365 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
c906108c | 3366 | |
c906108c | 3367 | |
bec39cab AC |
3368 | case $ac_cv_c_inline in |
3369 | inline | yes) ;; | |
3370 | *) | |
3371 | case $ac_cv_c_inline in | |
3372 | no) ac_val=;; | |
3373 | *) ac_val=$ac_cv_c_inline;; | |
3374 | esac | |
3375 | cat >>confdefs.h <<_ACEOF | |
3376 | #ifndef __cplusplus | |
3377 | #define inline $ac_val | |
c906108c | 3378 | #endif |
bec39cab AC |
3379 | _ACEOF |
3380 | ;; | |
3381 | esac | |
c906108c | 3382 | |
bec39cab | 3383 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
c906108c | 3384 | |
c906108c | 3385 | |
c906108c | 3386 | |
c906108c | 3387 | |
c906108c | 3388 | |
c906108c | 3389 | |
c906108c | 3390 | |
c906108c | 3391 | |
c906108c | 3392 | |
bec39cab AC |
3393 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3394 | inttypes.h stdint.h unistd.h | |
3395 | do | |
3396 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3397 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3398 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3399 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3401 | else | |
3402 | cat >conftest.$ac_ext <<_ACEOF | |
3403 | /* confdefs.h. */ | |
3404 | _ACEOF | |
3405 | cat confdefs.h >>conftest.$ac_ext | |
3406 | cat >>conftest.$ac_ext <<_ACEOF | |
3407 | /* end confdefs.h. */ | |
3408 | $ac_includes_default | |
3409 | ||
3410 | #include <$ac_header> | |
3411 | _ACEOF | |
3412 | rm -f conftest.$ac_objext | |
3413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3414 | (eval $ac_compile) 2>conftest.er1 | |
3415 | ac_status=$? | |
3416 | grep -v '^ *+' conftest.er1 >conftest.err | |
3417 | rm -f conftest.er1 | |
3418 | cat conftest.err >&5 | |
3419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3420 | (exit $ac_status); } && | |
121ce6e5 | 3421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3423 | (eval $ac_try) 2>&5 | |
3424 | ac_status=$? | |
3425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3426 | (exit $ac_status); }; } && | |
3427 | { ac_try='test -s conftest.$ac_objext' | |
3428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3429 | (eval $ac_try) 2>&5 | |
3430 | ac_status=$? | |
3431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3432 | (exit $ac_status); }; }; then | |
3433 | eval "$as_ac_Header=yes" | |
3434 | else | |
3435 | echo "$as_me: failed program was:" >&5 | |
3436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3437 | ||
3438 | eval "$as_ac_Header=no" | |
3439 | fi | |
3440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3441 | fi | |
3442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3443 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3444 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3445 | cat >>confdefs.h <<_ACEOF | |
3446 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3447 | _ACEOF | |
c906108c | 3448 | |
c906108c SS |
3449 | fi |
3450 | ||
bec39cab | 3451 | done |
c906108c | 3452 | |
c906108c | 3453 | |
bec39cab AC |
3454 | echo "$as_me:$LINENO: checking for off_t" >&5 |
3455 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
3456 | if test "${ac_cv_type_off_t+set}" = set; then | |
3457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3458 | else |
bec39cab AC |
3459 | cat >conftest.$ac_ext <<_ACEOF |
3460 | /* confdefs.h. */ | |
3461 | _ACEOF | |
3462 | cat confdefs.h >>conftest.$ac_ext | |
3463 | cat >>conftest.$ac_ext <<_ACEOF | |
3464 | /* end confdefs.h. */ | |
3465 | $ac_includes_default | |
3466 | int | |
3467 | main () | |
3468 | { | |
3469 | if ((off_t *) 0) | |
3470 | return 0; | |
3471 | if (sizeof (off_t)) | |
3472 | return 0; | |
3473 | ; | |
3474 | return 0; | |
3475 | } | |
3476 | _ACEOF | |
3477 | rm -f conftest.$ac_objext | |
3478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3479 | (eval $ac_compile) 2>conftest.er1 | |
3480 | ac_status=$? | |
3481 | grep -v '^ *+' conftest.er1 >conftest.err | |
3482 | rm -f conftest.er1 | |
3483 | cat conftest.err >&5 | |
3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3485 | (exit $ac_status); } && | |
121ce6e5 | 3486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3488 | (eval $ac_try) 2>&5 | |
3489 | ac_status=$? | |
3490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3491 | (exit $ac_status); }; } && | |
3492 | { ac_try='test -s conftest.$ac_objext' | |
3493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3494 | (eval $ac_try) 2>&5 | |
3495 | ac_status=$? | |
3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3497 | (exit $ac_status); }; }; then | |
3498 | ac_cv_type_off_t=yes | |
3499 | else | |
3500 | echo "$as_me: failed program was:" >&5 | |
3501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3502 | ||
3503 | ac_cv_type_off_t=no | |
c906108c | 3504 | fi |
bec39cab | 3505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3506 | fi |
bec39cab AC |
3507 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
3508 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
3509 | if test $ac_cv_type_off_t = yes; then | |
3510 | : | |
c906108c | 3511 | else |
bec39cab AC |
3512 | |
3513 | cat >>confdefs.h <<_ACEOF | |
3514 | #define off_t long | |
3515 | _ACEOF | |
3516 | ||
3517 | fi | |
3518 | ||
3519 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
3520 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
3521 | if test "${ac_cv_type_size_t+set}" = set; then | |
3522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3523 | else | |
3524 | cat >conftest.$ac_ext <<_ACEOF | |
3525 | /* confdefs.h. */ | |
3526 | _ACEOF | |
3527 | cat confdefs.h >>conftest.$ac_ext | |
3528 | cat >>conftest.$ac_ext <<_ACEOF | |
3529 | /* end confdefs.h. */ | |
3530 | $ac_includes_default | |
3531 | int | |
3532 | main () | |
3533 | { | |
3534 | if ((size_t *) 0) | |
3535 | return 0; | |
3536 | if (sizeof (size_t)) | |
3537 | return 0; | |
3538 | ; | |
3539 | return 0; | |
3540 | } | |
3541 | _ACEOF | |
3542 | rm -f conftest.$ac_objext | |
3543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3544 | (eval $ac_compile) 2>conftest.er1 | |
3545 | ac_status=$? | |
3546 | grep -v '^ *+' conftest.er1 >conftest.err | |
3547 | rm -f conftest.er1 | |
3548 | cat conftest.err >&5 | |
3549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3550 | (exit $ac_status); } && | |
121ce6e5 | 3551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3553 | (eval $ac_try) 2>&5 | |
3554 | ac_status=$? | |
3555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3556 | (exit $ac_status); }; } && | |
3557 | { ac_try='test -s conftest.$ac_objext' | |
3558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3559 | (eval $ac_try) 2>&5 | |
3560 | ac_status=$? | |
3561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3562 | (exit $ac_status); }; }; then | |
3563 | ac_cv_type_size_t=yes | |
c906108c | 3564 | else |
bec39cab AC |
3565 | echo "$as_me: failed program was:" >&5 |
3566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3567 | ||
3568 | ac_cv_type_size_t=no | |
c906108c | 3569 | fi |
bec39cab | 3570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3571 | fi |
bec39cab AC |
3572 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
3573 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
3574 | if test $ac_cv_type_size_t = yes; then | |
3575 | : | |
3576 | else | |
c906108c | 3577 | |
bec39cab AC |
3578 | cat >>confdefs.h <<_ACEOF |
3579 | #define size_t unsigned | |
3580 | _ACEOF | |
c906108c | 3581 | |
c906108c | 3582 | fi |
bec39cab AC |
3583 | |
3584 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3585 | # for constant arguments. Useless! | |
3586 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
3587 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
3588 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3590 | else | |
3591 | cat >conftest.$ac_ext <<_ACEOF | |
3592 | /* confdefs.h. */ | |
3593 | _ACEOF | |
3594 | cat confdefs.h >>conftest.$ac_ext | |
3595 | cat >>conftest.$ac_ext <<_ACEOF | |
3596 | /* end confdefs.h. */ | |
3597 | #include <alloca.h> | |
3598 | int | |
3599 | main () | |
3600 | { | |
3601 | char *p = (char *) alloca (2 * sizeof (int)); | |
3602 | ; | |
3603 | return 0; | |
3604 | } | |
3605 | _ACEOF | |
3606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3608 | (eval $ac_link) 2>conftest.er1 | |
3609 | ac_status=$? | |
3610 | grep -v '^ *+' conftest.er1 >conftest.err | |
3611 | rm -f conftest.er1 | |
3612 | cat conftest.err >&5 | |
3613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3614 | (exit $ac_status); } && | |
121ce6e5 | 3615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3617 | (eval $ac_try) 2>&5 | |
3618 | ac_status=$? | |
3619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3620 | (exit $ac_status); }; } && | |
3621 | { ac_try='test -s conftest$ac_exeext' | |
3622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3623 | (eval $ac_try) 2>&5 | |
3624 | ac_status=$? | |
3625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3626 | (exit $ac_status); }; }; then | |
3627 | ac_cv_working_alloca_h=yes | |
3628 | else | |
3629 | echo "$as_me: failed program was:" >&5 | |
3630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3631 | ||
3632 | ac_cv_working_alloca_h=no | |
3633 | fi | |
3634 | rm -f conftest.err conftest.$ac_objext \ | |
3635 | conftest$ac_exeext conftest.$ac_ext | |
3636 | fi | |
3637 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
3638 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
3639 | if test $ac_cv_working_alloca_h = yes; then | |
3640 | ||
3641 | cat >>confdefs.h <<\_ACEOF | |
3642 | #define HAVE_ALLOCA_H 1 | |
3643 | _ACEOF | |
c906108c SS |
3644 | |
3645 | fi | |
bec39cab AC |
3646 | |
3647 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
3648 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
3649 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3651 | else |
bec39cab AC |
3652 | cat >conftest.$ac_ext <<_ACEOF |
3653 | /* confdefs.h. */ | |
3654 | _ACEOF | |
3655 | cat confdefs.h >>conftest.$ac_ext | |
3656 | cat >>conftest.$ac_ext <<_ACEOF | |
3657 | /* end confdefs.h. */ | |
3658 | #ifdef __GNUC__ | |
3659 | # define alloca __builtin_alloca | |
3660 | #else | |
3661 | # ifdef _MSC_VER | |
3662 | # include <malloc.h> | |
3663 | # define alloca _alloca | |
3664 | # else | |
3665 | # if HAVE_ALLOCA_H | |
3666 | # include <alloca.h> | |
3667 | # else | |
3668 | # ifdef _AIX | |
3669 | #pragma alloca | |
3670 | # else | |
3671 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3672 | char *alloca (); | |
3673 | # endif | |
3674 | # endif | |
3675 | # endif | |
3676 | # endif | |
3677 | #endif | |
c906108c | 3678 | |
bec39cab AC |
3679 | int |
3680 | main () | |
3681 | { | |
3682 | char *p = (char *) alloca (1); | |
3683 | ; | |
3684 | return 0; | |
3685 | } | |
3686 | _ACEOF | |
3687 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3689 | (eval $ac_link) 2>conftest.er1 | |
3690 | ac_status=$? | |
3691 | grep -v '^ *+' conftest.er1 >conftest.err | |
3692 | rm -f conftest.er1 | |
3693 | cat conftest.err >&5 | |
3694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3695 | (exit $ac_status); } && | |
121ce6e5 | 3696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3698 | (eval $ac_try) 2>&5 | |
3699 | ac_status=$? | |
3700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3701 | (exit $ac_status); }; } && | |
3702 | { ac_try='test -s conftest$ac_exeext' | |
3703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3704 | (eval $ac_try) 2>&5 | |
3705 | ac_status=$? | |
3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3707 | (exit $ac_status); }; }; then | |
3708 | ac_cv_func_alloca_works=yes | |
c906108c | 3709 | else |
bec39cab AC |
3710 | echo "$as_me: failed program was:" >&5 |
3711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3712 | ||
3713 | ac_cv_func_alloca_works=no | |
c906108c | 3714 | fi |
bec39cab AC |
3715 | rm -f conftest.err conftest.$ac_objext \ |
3716 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 3717 | fi |
bec39cab AC |
3718 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
3719 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
3720 | ||
3721 | if test $ac_cv_func_alloca_works = yes; then | |
3722 | ||
3723 | cat >>confdefs.h <<\_ACEOF | |
3724 | #define HAVE_ALLOCA 1 | |
3725 | _ACEOF | |
c906108c | 3726 | |
c906108c | 3727 | else |
bec39cab AC |
3728 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
3729 | # that cause trouble. Some versions do not even contain alloca or | |
3730 | # contain a buggy version. If you still want to use their alloca, | |
3731 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
c906108c | 3732 | |
bec39cab | 3733 | ALLOCA=alloca.$ac_objext |
c906108c | 3734 | |
bec39cab AC |
3735 | cat >>confdefs.h <<\_ACEOF |
3736 | #define C_ALLOCA 1 | |
3737 | _ACEOF | |
c906108c | 3738 | |
bec39cab AC |
3739 | |
3740 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
3741 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
3742 | if test "${ac_cv_os_cray+set}" = set; then | |
3743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3744 | else |
bec39cab AC |
3745 | cat >conftest.$ac_ext <<_ACEOF |
3746 | /* confdefs.h. */ | |
3747 | _ACEOF | |
3748 | cat confdefs.h >>conftest.$ac_ext | |
3749 | cat >>conftest.$ac_ext <<_ACEOF | |
3750 | /* end confdefs.h. */ | |
3751 | #if defined(CRAY) && ! defined(CRAY2) | |
3752 | webecray | |
3753 | #else | |
3754 | wenotbecray | |
3755 | #endif | |
3756 | ||
3757 | _ACEOF | |
3758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3759 | $EGREP "webecray" >/dev/null 2>&1; then | |
3760 | ac_cv_os_cray=yes | |
c906108c | 3761 | else |
bec39cab | 3762 | ac_cv_os_cray=no |
c906108c | 3763 | fi |
bec39cab AC |
3764 | rm -f conftest* |
3765 | ||
3766 | fi | |
3767 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
3768 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
3769 | if test $ac_cv_os_cray = yes; then | |
3770 | for ac_func in _getb67 GETB67 getb67; do | |
3771 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3772 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3773 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3774 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3776 | else | |
3777 | cat >conftest.$ac_ext <<_ACEOF | |
3778 | /* confdefs.h. */ | |
3779 | _ACEOF | |
3780 | cat confdefs.h >>conftest.$ac_ext | |
3781 | cat >>conftest.$ac_ext <<_ACEOF | |
3782 | /* end confdefs.h. */ | |
3783 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3784 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3785 | #define $ac_func innocuous_$ac_func | |
3786 | ||
c906108c | 3787 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
3788 | which can conflict with char $ac_func (); below. |
3789 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3790 | <limits.h> exists even on freestanding compilers. */ | |
3791 | ||
3792 | #ifdef __STDC__ | |
3793 | # include <limits.h> | |
3794 | #else | |
3795 | # include <assert.h> | |
3796 | #endif | |
c906108c | 3797 | |
bec39cab | 3798 | #undef $ac_func |
c906108c | 3799 | |
bec39cab AC |
3800 | /* Override any gcc2 internal prototype to avoid an error. */ |
3801 | #ifdef __cplusplus | |
3802 | extern "C" | |
3803 | { | |
3804 | #endif | |
3805 | /* We use char because int might match the return type of a gcc2 | |
3806 | builtin and then its argument prototype would still apply. */ | |
3807 | char $ac_func (); | |
c906108c SS |
3808 | /* The GNU C library defines this for functions which it implements |
3809 | to always fail with ENOSYS. Some functions are actually named | |
3810 | something starting with __ and the normal name is an alias. */ | |
3811 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3812 | choke me | |
3813 | #else | |
bec39cab AC |
3814 | char (*f) () = $ac_func; |
3815 | #endif | |
3816 | #ifdef __cplusplus | |
3817 | } | |
c906108c SS |
3818 | #endif |
3819 | ||
bec39cab AC |
3820 | int |
3821 | main () | |
3822 | { | |
3823 | return f != $ac_func; | |
3824 | ; | |
3825 | return 0; | |
3826 | } | |
3827 | _ACEOF | |
3828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3830 | (eval $ac_link) 2>conftest.er1 | |
3831 | ac_status=$? | |
3832 | grep -v '^ *+' conftest.er1 >conftest.err | |
3833 | rm -f conftest.er1 | |
3834 | cat conftest.err >&5 | |
3835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3836 | (exit $ac_status); } && | |
121ce6e5 | 3837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3839 | (eval $ac_try) 2>&5 | |
3840 | ac_status=$? | |
3841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3842 | (exit $ac_status); }; } && | |
3843 | { ac_try='test -s conftest$ac_exeext' | |
3844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3845 | (eval $ac_try) 2>&5 | |
3846 | ac_status=$? | |
3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3848 | (exit $ac_status); }; }; then | |
3849 | eval "$as_ac_var=yes" | |
3850 | else | |
3851 | echo "$as_me: failed program was:" >&5 | |
3852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3853 | ||
3854 | eval "$as_ac_var=no" | |
3855 | fi | |
3856 | rm -f conftest.err conftest.$ac_objext \ | |
3857 | conftest$ac_exeext conftest.$ac_ext | |
3858 | fi | |
3859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3860 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3861 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3862 | ||
3863 | cat >>confdefs.h <<_ACEOF | |
3864 | #define CRAY_STACKSEG_END $ac_func | |
3865 | _ACEOF | |
c906108c | 3866 | |
bec39cab | 3867 | break |
c906108c | 3868 | fi |
c906108c | 3869 | |
c906108c | 3870 | done |
c906108c | 3871 | fi |
bec39cab AC |
3872 | |
3873 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
3874 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
3875 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3877 | else |
bec39cab AC |
3878 | if test "$cross_compiling" = yes; then |
3879 | ac_cv_c_stack_direction=0 | |
3880 | else | |
3881 | cat >conftest.$ac_ext <<_ACEOF | |
3882 | /* confdefs.h. */ | |
3883 | _ACEOF | |
3884 | cat confdefs.h >>conftest.$ac_ext | |
3885 | cat >>conftest.$ac_ext <<_ACEOF | |
3886 | /* end confdefs.h. */ | |
3887 | int | |
3888 | find_stack_direction () | |
3889 | { | |
3890 | static char *addr = 0; | |
3891 | auto char dummy; | |
3892 | if (addr == 0) | |
3893 | { | |
3894 | addr = &dummy; | |
3895 | return find_stack_direction (); | |
3896 | } | |
3897 | else | |
3898 | return (&dummy > addr) ? 1 : -1; | |
3899 | } | |
c906108c | 3900 | |
bec39cab AC |
3901 | int |
3902 | main () | |
3903 | { | |
3904 | exit (find_stack_direction () < 0); | |
3905 | } | |
3906 | _ACEOF | |
3907 | rm -f conftest$ac_exeext | |
3908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3909 | (eval $ac_link) 2>&5 | |
3910 | ac_status=$? | |
3911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3914 | (eval $ac_try) 2>&5 | |
3915 | ac_status=$? | |
3916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3917 | (exit $ac_status); }; }; then | |
3918 | ac_cv_c_stack_direction=1 | |
c906108c | 3919 | else |
bec39cab AC |
3920 | echo "$as_me: program exited with status $ac_status" >&5 |
3921 | echo "$as_me: failed program was:" >&5 | |
3922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3923 | ||
3924 | ( exit $ac_status ) | |
3925 | ac_cv_c_stack_direction=-1 | |
3926 | fi | |
3927 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3928 | fi |
c906108c | 3929 | fi |
bec39cab AC |
3930 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
3931 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
3932 | ||
3933 | cat >>confdefs.h <<_ACEOF | |
3934 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3935 | _ACEOF | |
c906108c | 3936 | |
c906108c | 3937 | |
c906108c SS |
3938 | fi |
3939 | ||
3940 | ||
c906108c | 3941 | |
bec39cab AC |
3942 | for ac_header in stdlib.h unistd.h |
3943 | do | |
3944 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3946 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3947 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3948 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3950 | fi | |
3951 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3952 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3953 | else | |
3954 | # Is the header compilable? | |
3955 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3956 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3957 | cat >conftest.$ac_ext <<_ACEOF | |
3958 | /* confdefs.h. */ | |
3959 | _ACEOF | |
3960 | cat confdefs.h >>conftest.$ac_ext | |
3961 | cat >>conftest.$ac_ext <<_ACEOF | |
3962 | /* end confdefs.h. */ | |
3963 | $ac_includes_default | |
3964 | #include <$ac_header> | |
3965 | _ACEOF | |
3966 | rm -f conftest.$ac_objext | |
3967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3968 | (eval $ac_compile) 2>conftest.er1 | |
3969 | ac_status=$? | |
3970 | grep -v '^ *+' conftest.er1 >conftest.err | |
3971 | rm -f conftest.er1 | |
3972 | cat conftest.err >&5 | |
3973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3974 | (exit $ac_status); } && | |
121ce6e5 | 3975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3977 | (eval $ac_try) 2>&5 | |
3978 | ac_status=$? | |
3979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3980 | (exit $ac_status); }; } && | |
3981 | { ac_try='test -s conftest.$ac_objext' | |
3982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3983 | (eval $ac_try) 2>&5 | |
3984 | ac_status=$? | |
3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3986 | (exit $ac_status); }; }; then | |
3987 | ac_header_compiler=yes | |
3988 | else | |
3989 | echo "$as_me: failed program was:" >&5 | |
3990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3991 | ||
3992 | ac_header_compiler=no | |
3993 | fi | |
3994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3995 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3996 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3997 | ||
3998 | # Is the header present? | |
3999 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4000 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4001 | cat >conftest.$ac_ext <<_ACEOF | |
4002 | /* confdefs.h. */ | |
4003 | _ACEOF | |
4004 | cat confdefs.h >>conftest.$ac_ext | |
4005 | cat >>conftest.$ac_ext <<_ACEOF | |
4006 | /* end confdefs.h. */ | |
4007 | #include <$ac_header> | |
4008 | _ACEOF | |
4009 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4010 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4011 | ac_status=$? | |
4012 | grep -v '^ *+' conftest.er1 >conftest.err | |
4013 | rm -f conftest.er1 | |
4014 | cat conftest.err >&5 | |
4015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4016 | (exit $ac_status); } >/dev/null; then | |
4017 | if test -s conftest.err; then | |
4018 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4019 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4020 | else | |
4021 | ac_cpp_err= | |
4022 | fi | |
c906108c | 4023 | else |
bec39cab | 4024 | ac_cpp_err=yes |
c906108c | 4025 | fi |
bec39cab AC |
4026 | if test -z "$ac_cpp_err"; then |
4027 | ac_header_preproc=yes | |
c906108c | 4028 | else |
bec39cab AC |
4029 | echo "$as_me: failed program was:" >&5 |
4030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4031 | ||
4032 | ac_header_preproc=no | |
c906108c | 4033 | fi |
bec39cab AC |
4034 | rm -f conftest.err conftest.$ac_ext |
4035 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4036 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 4037 | |
bec39cab AC |
4038 | # So? What about this header? |
4039 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4040 | yes:no: ) | |
4041 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4042 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4044 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4045 | ac_header_preproc=yes | |
4046 | ;; | |
4047 | no:yes:* ) | |
4048 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4049 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4050 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4051 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4052 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4053 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4054 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4055 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4056 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4057 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4058 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4059 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4060 | ( | |
4061 | cat <<\_ASBOX | |
4062 | ## ------------------------------------------ ## | |
4063 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4064 | ## ------------------------------------------ ## | |
4065 | _ASBOX | |
4066 | ) | | |
4067 | sed "s/^/$as_me: WARNING: /" >&2 | |
4068 | ;; | |
4069 | esac | |
4070 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4071 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4072 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4074 | else | |
4075 | eval "$as_ac_Header=\$ac_header_preproc" | |
4076 | fi | |
4077 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4078 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4079 | ||
4080 | fi | |
4081 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4082 | cat >>confdefs.h <<_ACEOF | |
4083 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4084 | _ACEOF | |
4085 | ||
4086 | fi | |
4087 | ||
4088 | done | |
4089 | ||
4090 | ||
4091 | for ac_func in getpagesize | |
4092 | do | |
4093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4094 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4096 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4098 | else | |
4099 | cat >conftest.$ac_ext <<_ACEOF | |
4100 | /* confdefs.h. */ | |
4101 | _ACEOF | |
4102 | cat confdefs.h >>conftest.$ac_ext | |
4103 | cat >>conftest.$ac_ext <<_ACEOF | |
4104 | /* end confdefs.h. */ | |
4105 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4107 | #define $ac_func innocuous_$ac_func | |
4108 | ||
4109 | /* System header to define __stub macros and hopefully few prototypes, | |
4110 | which can conflict with char $ac_func (); below. | |
4111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4112 | <limits.h> exists even on freestanding compilers. */ | |
4113 | ||
4114 | #ifdef __STDC__ | |
4115 | # include <limits.h> | |
4116 | #else | |
4117 | # include <assert.h> | |
4118 | #endif | |
4119 | ||
4120 | #undef $ac_func | |
4121 | ||
4122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4123 | #ifdef __cplusplus | |
4124 | extern "C" | |
4125 | { | |
4126 | #endif | |
4127 | /* We use char because int might match the return type of a gcc2 | |
4128 | builtin and then its argument prototype would still apply. */ | |
4129 | char $ac_func (); | |
4130 | /* The GNU C library defines this for functions which it implements | |
4131 | to always fail with ENOSYS. Some functions are actually named | |
4132 | something starting with __ and the normal name is an alias. */ | |
4133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4134 | choke me | |
4135 | #else | |
4136 | char (*f) () = $ac_func; | |
4137 | #endif | |
4138 | #ifdef __cplusplus | |
4139 | } | |
4140 | #endif | |
4141 | ||
4142 | int | |
4143 | main () | |
4144 | { | |
4145 | return f != $ac_func; | |
4146 | ; | |
4147 | return 0; | |
4148 | } | |
4149 | _ACEOF | |
4150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4152 | (eval $ac_link) 2>conftest.er1 | |
4153 | ac_status=$? | |
4154 | grep -v '^ *+' conftest.er1 >conftest.err | |
4155 | rm -f conftest.er1 | |
4156 | cat conftest.err >&5 | |
4157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4158 | (exit $ac_status); } && | |
121ce6e5 | 4159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4161 | (eval $ac_try) 2>&5 | |
4162 | ac_status=$? | |
4163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4164 | (exit $ac_status); }; } && | |
4165 | { ac_try='test -s conftest$ac_exeext' | |
4166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4167 | (eval $ac_try) 2>&5 | |
4168 | ac_status=$? | |
4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4170 | (exit $ac_status); }; }; then | |
4171 | eval "$as_ac_var=yes" | |
4172 | else | |
4173 | echo "$as_me: failed program was:" >&5 | |
4174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4175 | ||
4176 | eval "$as_ac_var=no" | |
4177 | fi | |
4178 | rm -f conftest.err conftest.$ac_objext \ | |
4179 | conftest$ac_exeext conftest.$ac_ext | |
4180 | fi | |
4181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4182 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4183 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4184 | cat >>confdefs.h <<_ACEOF | |
4185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4186 | _ACEOF | |
4187 | ||
4188 | fi | |
4189 | done | |
4190 | ||
4191 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
4192 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
4193 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4195 | else | |
4196 | if test "$cross_compiling" = yes; then | |
4197 | ac_cv_func_mmap_fixed_mapped=no | |
4198 | else | |
4199 | cat >conftest.$ac_ext <<_ACEOF | |
4200 | /* confdefs.h. */ | |
4201 | _ACEOF | |
4202 | cat confdefs.h >>conftest.$ac_ext | |
4203 | cat >>conftest.$ac_ext <<_ACEOF | |
4204 | /* end confdefs.h. */ | |
4205 | $ac_includes_default | |
4206 | /* malloc might have been renamed as rpl_malloc. */ | |
4207 | #undef malloc | |
4208 | ||
4209 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4210 | Here is a matrix of mmap possibilities: | |
4211 | mmap private not fixed | |
4212 | mmap private fixed at somewhere currently unmapped | |
4213 | mmap private fixed at somewhere already mapped | |
4214 | mmap shared not fixed | |
4215 | mmap shared fixed at somewhere currently unmapped | |
4216 | mmap shared fixed at somewhere already mapped | |
4217 | For private mappings, we should verify that changes cannot be read() | |
4218 | back from the file, nor mmap's back from the file at a different | |
4219 | address. (There have been systems where private was not correctly | |
4220 | implemented like the infamous i386 svr4.0, and systems where the | |
4221 | VM page cache was not coherent with the file system buffer cache | |
4222 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
4223 | For shared mappings, we should conversely verify that changes get | |
4224 | propagated back to all the places they're supposed to be. | |
4225 | ||
4226 | Grep wants private fixed already mapped. | |
4227 | The main things grep needs to know about mmap are: | |
4228 | * does it exist and is it safe to write into the mmap'd area | |
4229 | * how to use it (BSD variants) */ | |
4230 | ||
4231 | #include <fcntl.h> | |
4232 | #include <sys/mman.h> | |
4233 | ||
4234 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
4235 | char *malloc (); | |
4236 | #endif | |
4237 | ||
4238 | /* This mess was copied from the GNU getpagesize.h. */ | |
4239 | #if !HAVE_GETPAGESIZE | |
4240 | /* Assume that all systems that can run configure have sys/param.h. */ | |
4241 | # if !HAVE_SYS_PARAM_H | |
4242 | # define HAVE_SYS_PARAM_H 1 | |
4243 | # endif | |
4244 | ||
4245 | # ifdef _SC_PAGESIZE | |
4246 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4247 | # else /* no _SC_PAGESIZE */ | |
4248 | # if HAVE_SYS_PARAM_H | |
4249 | # include <sys/param.h> | |
4250 | # ifdef EXEC_PAGESIZE | |
4251 | # define getpagesize() EXEC_PAGESIZE | |
4252 | # else /* no EXEC_PAGESIZE */ | |
4253 | # ifdef NBPG | |
4254 | # define getpagesize() NBPG * CLSIZE | |
4255 | # ifndef CLSIZE | |
4256 | # define CLSIZE 1 | |
4257 | # endif /* no CLSIZE */ | |
4258 | # else /* no NBPG */ | |
4259 | # ifdef NBPC | |
4260 | # define getpagesize() NBPC | |
4261 | # else /* no NBPC */ | |
4262 | # ifdef PAGESIZE | |
4263 | # define getpagesize() PAGESIZE | |
4264 | # endif /* PAGESIZE */ | |
4265 | # endif /* no NBPC */ | |
4266 | # endif /* no NBPG */ | |
4267 | # endif /* no EXEC_PAGESIZE */ | |
4268 | # else /* no HAVE_SYS_PARAM_H */ | |
4269 | # define getpagesize() 8192 /* punt totally */ | |
4270 | # endif /* no HAVE_SYS_PARAM_H */ | |
4271 | # endif /* no _SC_PAGESIZE */ | |
4272 | ||
4273 | #endif /* no HAVE_GETPAGESIZE */ | |
4274 | ||
4275 | int | |
4276 | main () | |
4277 | { | |
4278 | char *data, *data2, *data3; | |
4279 | int i, pagesize; | |
4280 | int fd; | |
4281 | ||
4282 | pagesize = getpagesize (); | |
4283 | ||
4284 | /* First, make a file with some known garbage in it. */ | |
4285 | data = (char *) malloc (pagesize); | |
4286 | if (!data) | |
4287 | exit (1); | |
4288 | for (i = 0; i < pagesize; ++i) | |
4289 | *(data + i) = rand (); | |
4290 | umask (0); | |
4291 | fd = creat ("conftest.mmap", 0600); | |
4292 | if (fd < 0) | |
4293 | exit (1); | |
4294 | if (write (fd, data, pagesize) != pagesize) | |
4295 | exit (1); | |
4296 | close (fd); | |
4297 | ||
4298 | /* Next, try to mmap the file at a fixed address which already has | |
4299 | something else allocated at it. If we can, also make sure that | |
4300 | we see the same garbage. */ | |
4301 | fd = open ("conftest.mmap", O_RDWR); | |
4302 | if (fd < 0) | |
4303 | exit (1); | |
4304 | data2 = (char *) malloc (2 * pagesize); | |
4305 | if (!data2) | |
4306 | exit (1); | |
4307 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
4308 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
4309 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4310 | exit (1); | |
4311 | for (i = 0; i < pagesize; ++i) | |
4312 | if (*(data + i) != *(data2 + i)) | |
4313 | exit (1); | |
4314 | ||
4315 | /* Finally, make sure that changes to the mapped area do not | |
4316 | percolate back to the file as seen by read(). (This is a bug on | |
4317 | some variants of i386 svr4.0.) */ | |
4318 | for (i = 0; i < pagesize; ++i) | |
4319 | *(data2 + i) = *(data2 + i) + 1; | |
4320 | data3 = (char *) malloc (pagesize); | |
4321 | if (!data3) | |
4322 | exit (1); | |
4323 | if (read (fd, data3, pagesize) != pagesize) | |
4324 | exit (1); | |
4325 | for (i = 0; i < pagesize; ++i) | |
4326 | if (*(data + i) != *(data3 + i)) | |
4327 | exit (1); | |
4328 | close (fd); | |
4329 | exit (0); | |
4330 | } | |
4331 | _ACEOF | |
4332 | rm -f conftest$ac_exeext | |
4333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4334 | (eval $ac_link) 2>&5 | |
4335 | ac_status=$? | |
4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4339 | (eval $ac_try) 2>&5 | |
4340 | ac_status=$? | |
4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4342 | (exit $ac_status); }; }; then | |
4343 | ac_cv_func_mmap_fixed_mapped=yes | |
4344 | else | |
4345 | echo "$as_me: program exited with status $ac_status" >&5 | |
4346 | echo "$as_me: failed program was:" >&5 | |
4347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4348 | ||
4349 | ( exit $ac_status ) | |
4350 | ac_cv_func_mmap_fixed_mapped=no | |
4351 | fi | |
4352 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4353 | fi | |
4354 | fi | |
4355 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
4356 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
4357 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
4358 | ||
4359 | cat >>confdefs.h <<\_ACEOF | |
4360 | #define HAVE_MMAP 1 | |
4361 | _ACEOF | |
4362 | ||
4363 | fi | |
4364 | rm -f conftest.mmap | |
4365 | ||
4366 | ||
4367 | ||
4368 | ||
4369 | ||
4370 | ||
4371 | ||
4372 | ||
4373 | ||
4374 | ||
4375 | ||
4376 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
4377 | unistd.h values.h sys/param.h | |
4378 | do | |
4379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4385 | fi | |
4386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4388 | else | |
4389 | # Is the header compilable? | |
4390 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4391 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4392 | cat >conftest.$ac_ext <<_ACEOF | |
4393 | /* confdefs.h. */ | |
4394 | _ACEOF | |
4395 | cat confdefs.h >>conftest.$ac_ext | |
4396 | cat >>conftest.$ac_ext <<_ACEOF | |
4397 | /* end confdefs.h. */ | |
4398 | $ac_includes_default | |
4399 | #include <$ac_header> | |
4400 | _ACEOF | |
4401 | rm -f conftest.$ac_objext | |
4402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4403 | (eval $ac_compile) 2>conftest.er1 | |
4404 | ac_status=$? | |
4405 | grep -v '^ *+' conftest.er1 >conftest.err | |
4406 | rm -f conftest.er1 | |
4407 | cat conftest.err >&5 | |
4408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4409 | (exit $ac_status); } && | |
121ce6e5 | 4410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4412 | (eval $ac_try) 2>&5 | |
4413 | ac_status=$? | |
4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4415 | (exit $ac_status); }; } && | |
4416 | { ac_try='test -s conftest.$ac_objext' | |
4417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4418 | (eval $ac_try) 2>&5 | |
4419 | ac_status=$? | |
4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4421 | (exit $ac_status); }; }; then | |
4422 | ac_header_compiler=yes | |
4423 | else | |
4424 | echo "$as_me: failed program was:" >&5 | |
4425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4426 | ||
4427 | ac_header_compiler=no | |
4428 | fi | |
4429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4430 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4431 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4432 | ||
4433 | # Is the header present? | |
4434 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4435 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4436 | cat >conftest.$ac_ext <<_ACEOF | |
4437 | /* confdefs.h. */ | |
4438 | _ACEOF | |
4439 | cat confdefs.h >>conftest.$ac_ext | |
4440 | cat >>conftest.$ac_ext <<_ACEOF | |
4441 | /* end confdefs.h. */ | |
4442 | #include <$ac_header> | |
4443 | _ACEOF | |
4444 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4445 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4446 | ac_status=$? | |
4447 | grep -v '^ *+' conftest.er1 >conftest.err | |
4448 | rm -f conftest.er1 | |
4449 | cat conftest.err >&5 | |
4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4451 | (exit $ac_status); } >/dev/null; then | |
4452 | if test -s conftest.err; then | |
4453 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4454 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4455 | else | |
4456 | ac_cpp_err= | |
4457 | fi | |
4458 | else | |
4459 | ac_cpp_err=yes | |
4460 | fi | |
4461 | if test -z "$ac_cpp_err"; then | |
4462 | ac_header_preproc=yes | |
4463 | else | |
4464 | echo "$as_me: failed program was:" >&5 | |
4465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4466 | ||
4467 | ac_header_preproc=no | |
4468 | fi | |
4469 | rm -f conftest.err conftest.$ac_ext | |
4470 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4471 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4472 | ||
4473 | # So? What about this header? | |
4474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4475 | yes:no: ) | |
4476 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4477 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4479 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4480 | ac_header_preproc=yes | |
4481 | ;; | |
4482 | no:yes:* ) | |
4483 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4484 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4485 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4486 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4487 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4488 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4489 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4490 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4491 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4492 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4493 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4494 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4495 | ( | |
4496 | cat <<\_ASBOX | |
4497 | ## ------------------------------------------ ## | |
4498 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4499 | ## ------------------------------------------ ## | |
4500 | _ASBOX | |
4501 | ) | | |
4502 | sed "s/^/$as_me: WARNING: /" >&2 | |
4503 | ;; | |
4504 | esac | |
4505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4509 | else | |
4510 | eval "$as_ac_Header=\$ac_header_preproc" | |
4511 | fi | |
4512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4514 | ||
4515 | fi | |
4516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4517 | cat >>confdefs.h <<_ACEOF | |
4518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4519 | _ACEOF | |
4520 | ||
4521 | fi | |
4522 | ||
4523 | done | |
4524 | ||
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
4536 | __argz_count __argz_stringify __argz_next | |
4537 | do | |
4538 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4539 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4540 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4541 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4543 | else | |
4544 | cat >conftest.$ac_ext <<_ACEOF | |
4545 | /* confdefs.h. */ | |
4546 | _ACEOF | |
4547 | cat confdefs.h >>conftest.$ac_ext | |
4548 | cat >>conftest.$ac_ext <<_ACEOF | |
4549 | /* end confdefs.h. */ | |
4550 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4551 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4552 | #define $ac_func innocuous_$ac_func | |
4553 | ||
4554 | /* System header to define __stub macros and hopefully few prototypes, | |
4555 | which can conflict with char $ac_func (); below. | |
4556 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4557 | <limits.h> exists even on freestanding compilers. */ | |
4558 | ||
4559 | #ifdef __STDC__ | |
4560 | # include <limits.h> | |
4561 | #else | |
4562 | # include <assert.h> | |
4563 | #endif | |
4564 | ||
4565 | #undef $ac_func | |
4566 | ||
4567 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4568 | #ifdef __cplusplus | |
4569 | extern "C" | |
4570 | { | |
4571 | #endif | |
4572 | /* We use char because int might match the return type of a gcc2 | |
4573 | builtin and then its argument prototype would still apply. */ | |
4574 | char $ac_func (); | |
4575 | /* The GNU C library defines this for functions which it implements | |
4576 | to always fail with ENOSYS. Some functions are actually named | |
4577 | something starting with __ and the normal name is an alias. */ | |
4578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4579 | choke me | |
4580 | #else | |
4581 | char (*f) () = $ac_func; | |
4582 | #endif | |
4583 | #ifdef __cplusplus | |
4584 | } | |
4585 | #endif | |
4586 | ||
4587 | int | |
4588 | main () | |
4589 | { | |
4590 | return f != $ac_func; | |
4591 | ; | |
4592 | return 0; | |
4593 | } | |
4594 | _ACEOF | |
4595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4597 | (eval $ac_link) 2>conftest.er1 | |
4598 | ac_status=$? | |
4599 | grep -v '^ *+' conftest.er1 >conftest.err | |
4600 | rm -f conftest.er1 | |
4601 | cat conftest.err >&5 | |
4602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4603 | (exit $ac_status); } && | |
121ce6e5 | 4604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4606 | (eval $ac_try) 2>&5 | |
4607 | ac_status=$? | |
4608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4609 | (exit $ac_status); }; } && | |
4610 | { ac_try='test -s conftest$ac_exeext' | |
4611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4612 | (eval $ac_try) 2>&5 | |
4613 | ac_status=$? | |
4614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4615 | (exit $ac_status); }; }; then | |
4616 | eval "$as_ac_var=yes" | |
4617 | else | |
4618 | echo "$as_me: failed program was:" >&5 | |
4619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4620 | ||
4621 | eval "$as_ac_var=no" | |
4622 | fi | |
4623 | rm -f conftest.err conftest.$ac_objext \ | |
4624 | conftest$ac_exeext conftest.$ac_ext | |
4625 | fi | |
4626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4627 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4628 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4629 | cat >>confdefs.h <<_ACEOF | |
4630 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4631 | _ACEOF | |
4632 | ||
4633 | fi | |
4634 | done | |
4635 | ||
4636 | ||
4637 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
4638 | ||
4639 | for ac_func in stpcpy | |
4640 | do | |
4641 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4642 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4643 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4644 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4646 | else | |
4647 | cat >conftest.$ac_ext <<_ACEOF | |
4648 | /* confdefs.h. */ | |
4649 | _ACEOF | |
4650 | cat confdefs.h >>conftest.$ac_ext | |
4651 | cat >>conftest.$ac_ext <<_ACEOF | |
4652 | /* end confdefs.h. */ | |
4653 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4654 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4655 | #define $ac_func innocuous_$ac_func | |
4656 | ||
4657 | /* System header to define __stub macros and hopefully few prototypes, | |
4658 | which can conflict with char $ac_func (); below. | |
4659 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4660 | <limits.h> exists even on freestanding compilers. */ | |
4661 | ||
4662 | #ifdef __STDC__ | |
4663 | # include <limits.h> | |
4664 | #else | |
4665 | # include <assert.h> | |
4666 | #endif | |
4667 | ||
4668 | #undef $ac_func | |
4669 | ||
4670 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4671 | #ifdef __cplusplus | |
4672 | extern "C" | |
4673 | { | |
4674 | #endif | |
4675 | /* We use char because int might match the return type of a gcc2 | |
4676 | builtin and then its argument prototype would still apply. */ | |
4677 | char $ac_func (); | |
4678 | /* The GNU C library defines this for functions which it implements | |
4679 | to always fail with ENOSYS. Some functions are actually named | |
4680 | something starting with __ and the normal name is an alias. */ | |
4681 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4682 | choke me | |
4683 | #else | |
4684 | char (*f) () = $ac_func; | |
4685 | #endif | |
4686 | #ifdef __cplusplus | |
4687 | } | |
4688 | #endif | |
4689 | ||
4690 | int | |
4691 | main () | |
4692 | { | |
4693 | return f != $ac_func; | |
4694 | ; | |
4695 | return 0; | |
4696 | } | |
4697 | _ACEOF | |
4698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4700 | (eval $ac_link) 2>conftest.er1 | |
4701 | ac_status=$? | |
4702 | grep -v '^ *+' conftest.er1 >conftest.err | |
4703 | rm -f conftest.er1 | |
4704 | cat conftest.err >&5 | |
4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4706 | (exit $ac_status); } && | |
121ce6e5 | 4707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4709 | (eval $ac_try) 2>&5 | |
4710 | ac_status=$? | |
4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4712 | (exit $ac_status); }; } && | |
4713 | { ac_try='test -s conftest$ac_exeext' | |
4714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4715 | (eval $ac_try) 2>&5 | |
4716 | ac_status=$? | |
4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4718 | (exit $ac_status); }; }; then | |
4719 | eval "$as_ac_var=yes" | |
4720 | else | |
4721 | echo "$as_me: failed program was:" >&5 | |
4722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4723 | ||
4724 | eval "$as_ac_var=no" | |
4725 | fi | |
4726 | rm -f conftest.err conftest.$ac_objext \ | |
4727 | conftest$ac_exeext conftest.$ac_ext | |
4728 | fi | |
4729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4730 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4731 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4732 | cat >>confdefs.h <<_ACEOF | |
4733 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4734 | _ACEOF | |
4735 | ||
4736 | fi | |
4737 | done | |
4738 | ||
4739 | fi | |
4740 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
4741 | ||
4742 | cat >>confdefs.h <<\_ACEOF | |
4743 | #define HAVE_STPCPY 1 | |
4744 | _ACEOF | |
4745 | ||
4746 | fi | |
4747 | ||
4748 | if test $ac_cv_header_locale_h = yes; then | |
4749 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 | |
4750 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4751 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4753 | else | |
4754 | cat >conftest.$ac_ext <<_ACEOF | |
4755 | /* confdefs.h. */ | |
4756 | _ACEOF | |
4757 | cat confdefs.h >>conftest.$ac_ext | |
4758 | cat >>conftest.$ac_ext <<_ACEOF | |
4759 | /* end confdefs.h. */ | |
4760 | #include <locale.h> | |
4761 | int | |
4762 | main () | |
4763 | { | |
4764 | return LC_MESSAGES | |
4765 | ; | |
4766 | return 0; | |
4767 | } | |
4768 | _ACEOF | |
4769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4771 | (eval $ac_link) 2>conftest.er1 | |
4772 | ac_status=$? | |
4773 | grep -v '^ *+' conftest.er1 >conftest.err | |
4774 | rm -f conftest.er1 | |
4775 | cat conftest.err >&5 | |
4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4777 | (exit $ac_status); } && | |
121ce6e5 | 4778 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4780 | (eval $ac_try) 2>&5 | |
4781 | ac_status=$? | |
4782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4783 | (exit $ac_status); }; } && | |
4784 | { ac_try='test -s conftest$ac_exeext' | |
4785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4786 | (eval $ac_try) 2>&5 | |
4787 | ac_status=$? | |
4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4789 | (exit $ac_status); }; }; then | |
4790 | am_cv_val_LC_MESSAGES=yes | |
4791 | else | |
4792 | echo "$as_me: failed program was:" >&5 | |
4793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4794 | ||
4795 | am_cv_val_LC_MESSAGES=no | |
4796 | fi | |
4797 | rm -f conftest.err conftest.$ac_objext \ | |
4798 | conftest$ac_exeext conftest.$ac_ext | |
4799 | fi | |
4800 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 | |
4801 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
4802 | if test $am_cv_val_LC_MESSAGES = yes; then | |
4803 | ||
4804 | cat >>confdefs.h <<\_ACEOF | |
4805 | #define HAVE_LC_MESSAGES 1 | |
4806 | _ACEOF | |
4807 | ||
4808 | fi | |
4809 | fi | |
4810 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
4811 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
4812 | # Check whether --enable-nls or --disable-nls was given. | |
4813 | if test "${enable_nls+set}" = set; then | |
4814 | enableval="$enable_nls" | |
4815 | USE_NLS=$enableval | |
4816 | else | |
4817 | USE_NLS=yes | |
4818 | fi; | |
4819 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4820 | echo "${ECHO_T}$USE_NLS" >&6 | |
4821 | ||
4822 | ||
4823 | USE_INCLUDED_LIBINTL=no | |
4824 | ||
4825 | if test "$USE_NLS" = "yes"; then | |
bec39cab AC |
4826 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
4827 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
4828 | ||
4829 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
4830 | if test "${with_included_gettext+set}" = set; then | |
4831 | withval="$with_included_gettext" | |
4832 | nls_cv_force_use_gnu_gettext=$withval | |
4833 | else | |
4834 | nls_cv_force_use_gnu_gettext=no | |
4835 | fi; | |
4836 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4837 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
4838 | ||
4839 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4840 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4841 | nls_cv_header_intl= | |
4842 | nls_cv_header_libgt= | |
a53bf506 | 4843 | CATOBJEXT= |
bec39cab AC |
4844 | |
4845 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4846 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4847 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4848 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4850 | fi | |
4851 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4852 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4853 | else | |
4854 | # Is the header compilable? | |
4855 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4856 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4857 | cat >conftest.$ac_ext <<_ACEOF | |
4858 | /* confdefs.h. */ | |
4859 | _ACEOF | |
4860 | cat confdefs.h >>conftest.$ac_ext | |
4861 | cat >>conftest.$ac_ext <<_ACEOF | |
4862 | /* end confdefs.h. */ | |
4863 | $ac_includes_default | |
4864 | #include <libintl.h> | |
4865 | _ACEOF | |
4866 | rm -f conftest.$ac_objext | |
4867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4868 | (eval $ac_compile) 2>conftest.er1 | |
4869 | ac_status=$? | |
4870 | grep -v '^ *+' conftest.er1 >conftest.err | |
4871 | rm -f conftest.er1 | |
4872 | cat conftest.err >&5 | |
4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4874 | (exit $ac_status); } && | |
121ce6e5 | 4875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4877 | (eval $ac_try) 2>&5 | |
4878 | ac_status=$? | |
4879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4880 | (exit $ac_status); }; } && | |
4881 | { ac_try='test -s conftest.$ac_objext' | |
4882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4883 | (eval $ac_try) 2>&5 | |
4884 | ac_status=$? | |
4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4886 | (exit $ac_status); }; }; then | |
4887 | ac_header_compiler=yes | |
4888 | else | |
4889 | echo "$as_me: failed program was:" >&5 | |
4890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4891 | ||
4892 | ac_header_compiler=no | |
4893 | fi | |
4894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4895 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4896 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4897 | ||
4898 | # Is the header present? | |
4899 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
4900 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
4901 | cat >conftest.$ac_ext <<_ACEOF | |
4902 | /* confdefs.h. */ | |
4903 | _ACEOF | |
4904 | cat confdefs.h >>conftest.$ac_ext | |
4905 | cat >>conftest.$ac_ext <<_ACEOF | |
4906 | /* end confdefs.h. */ | |
4907 | #include <libintl.h> | |
4908 | _ACEOF | |
4909 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4910 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4911 | ac_status=$? | |
4912 | grep -v '^ *+' conftest.er1 >conftest.err | |
4913 | rm -f conftest.er1 | |
4914 | cat conftest.err >&5 | |
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4916 | (exit $ac_status); } >/dev/null; then | |
4917 | if test -s conftest.err; then | |
4918 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4919 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4920 | else | |
4921 | ac_cpp_err= | |
4922 | fi | |
4923 | else | |
4924 | ac_cpp_err=yes | |
4925 | fi | |
4926 | if test -z "$ac_cpp_err"; then | |
4927 | ac_header_preproc=yes | |
4928 | else | |
4929 | echo "$as_me: failed program was:" >&5 | |
4930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4931 | ||
4932 | ac_header_preproc=no | |
4933 | fi | |
4934 | rm -f conftest.err conftest.$ac_ext | |
4935 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4936 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4937 | ||
4938 | # So? What about this header? | |
4939 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4940 | yes:no: ) | |
4941 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4942 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4943 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
4944 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
4945 | ac_header_preproc=yes | |
4946 | ;; | |
4947 | no:yes:* ) | |
4948 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
4949 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
4950 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
4951 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
4952 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
4953 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
4954 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4955 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4956 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
4957 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
4958 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
4959 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
4960 | ( | |
4961 | cat <<\_ASBOX | |
4962 | ## ------------------------------------------ ## | |
4963 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4964 | ## ------------------------------------------ ## | |
4965 | _ASBOX | |
4966 | ) | | |
4967 | sed "s/^/$as_me: WARNING: /" >&2 | |
4968 | ;; | |
4969 | esac | |
4970 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4971 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4972 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4974 | else | |
4975 | ac_cv_header_libintl_h=$ac_header_preproc | |
4976 | fi | |
4977 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4978 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4979 | ||
4980 | fi | |
4981 | if test $ac_cv_header_libintl_h = yes; then | |
4982 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
4983 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
4984 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4986 | else | |
4987 | cat >conftest.$ac_ext <<_ACEOF | |
4988 | /* confdefs.h. */ | |
4989 | _ACEOF | |
4990 | cat confdefs.h >>conftest.$ac_ext | |
4991 | cat >>conftest.$ac_ext <<_ACEOF | |
4992 | /* end confdefs.h. */ | |
4993 | #include <libintl.h> | |
4994 | int | |
4995 | main () | |
4996 | { | |
4997 | return (int) gettext ("") | |
4998 | ; | |
4999 | return 0; | |
5000 | } | |
5001 | _ACEOF | |
5002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5004 | (eval $ac_link) 2>conftest.er1 | |
5005 | ac_status=$? | |
5006 | grep -v '^ *+' conftest.er1 >conftest.err | |
5007 | rm -f conftest.er1 | |
5008 | cat conftest.err >&5 | |
5009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5010 | (exit $ac_status); } && | |
121ce6e5 | 5011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5013 | (eval $ac_try) 2>&5 | |
5014 | ac_status=$? | |
5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5016 | (exit $ac_status); }; } && | |
5017 | { ac_try='test -s conftest$ac_exeext' | |
5018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5019 | (eval $ac_try) 2>&5 | |
5020 | ac_status=$? | |
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5022 | (exit $ac_status); }; }; then | |
5023 | gt_cv_func_gettext_libc=yes | |
5024 | else | |
5025 | echo "$as_me: failed program was:" >&5 | |
5026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5027 | ||
5028 | gt_cv_func_gettext_libc=no | |
5029 | fi | |
5030 | rm -f conftest.err conftest.$ac_objext \ | |
5031 | conftest$ac_exeext conftest.$ac_ext | |
5032 | fi | |
5033 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 | |
5034 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
5035 | ||
5036 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5037 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 | |
5038 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
5039 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
5040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5041 | else | |
5042 | ac_check_lib_save_LIBS=$LIBS | |
5043 | LIBS="-lintl $LIBS" | |
5044 | cat >conftest.$ac_ext <<_ACEOF | |
5045 | /* confdefs.h. */ | |
5046 | _ACEOF | |
5047 | cat confdefs.h >>conftest.$ac_ext | |
5048 | cat >>conftest.$ac_ext <<_ACEOF | |
5049 | /* end confdefs.h. */ | |
5050 | ||
5051 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5052 | #ifdef __cplusplus | |
5053 | extern "C" | |
5054 | #endif | |
5055 | /* We use char because int might match the return type of a gcc2 | |
5056 | builtin and then its argument prototype would still apply. */ | |
5057 | char bindtextdomain (); | |
5058 | int | |
5059 | main () | |
5060 | { | |
5061 | bindtextdomain (); | |
5062 | ; | |
5063 | return 0; | |
5064 | } | |
5065 | _ACEOF | |
5066 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5068 | (eval $ac_link) 2>conftest.er1 | |
5069 | ac_status=$? | |
5070 | grep -v '^ *+' conftest.er1 >conftest.err | |
5071 | rm -f conftest.er1 | |
5072 | cat conftest.err >&5 | |
5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5074 | (exit $ac_status); } && | |
121ce6e5 | 5075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5077 | (eval $ac_try) 2>&5 | |
5078 | ac_status=$? | |
5079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5080 | (exit $ac_status); }; } && | |
5081 | { ac_try='test -s conftest$ac_exeext' | |
5082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5083 | (eval $ac_try) 2>&5 | |
5084 | ac_status=$? | |
5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5086 | (exit $ac_status); }; }; then | |
5087 | ac_cv_lib_intl_bindtextdomain=yes | |
5088 | else | |
5089 | echo "$as_me: failed program was:" >&5 | |
5090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5091 | ||
5092 | ac_cv_lib_intl_bindtextdomain=no | |
5093 | fi | |
5094 | rm -f conftest.err conftest.$ac_objext \ | |
5095 | conftest$ac_exeext conftest.$ac_ext | |
5096 | LIBS=$ac_check_lib_save_LIBS | |
5097 | fi | |
5098 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5099 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5100 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5101 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5102 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5103 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5105 | else | |
5106 | cat >conftest.$ac_ext <<_ACEOF | |
5107 | /* confdefs.h. */ | |
5108 | _ACEOF | |
5109 | cat confdefs.h >>conftest.$ac_ext | |
5110 | cat >>conftest.$ac_ext <<_ACEOF | |
5111 | /* end confdefs.h. */ | |
5112 | ||
5113 | int | |
5114 | main () | |
5115 | { | |
5116 | return (int) gettext ("") | |
5117 | ; | |
5118 | return 0; | |
5119 | } | |
5120 | _ACEOF | |
5121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5123 | (eval $ac_link) 2>conftest.er1 | |
5124 | ac_status=$? | |
5125 | grep -v '^ *+' conftest.er1 >conftest.err | |
5126 | rm -f conftest.er1 | |
5127 | cat conftest.err >&5 | |
5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5129 | (exit $ac_status); } && | |
121ce6e5 | 5130 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5132 | (eval $ac_try) 2>&5 | |
5133 | ac_status=$? | |
5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5135 | (exit $ac_status); }; } && | |
5136 | { ac_try='test -s conftest$ac_exeext' | |
5137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5138 | (eval $ac_try) 2>&5 | |
5139 | ac_status=$? | |
5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5141 | (exit $ac_status); }; }; then | |
5142 | gt_cv_func_gettext_libintl=yes | |
5143 | else | |
5144 | echo "$as_me: failed program was:" >&5 | |
5145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5146 | ||
5147 | gt_cv_func_gettext_libintl=no | |
5148 | fi | |
5149 | rm -f conftest.err conftest.$ac_objext \ | |
5150 | conftest$ac_exeext conftest.$ac_ext | |
5151 | fi | |
5152 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 | |
5153 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
5154 | fi | |
5155 | ||
5156 | fi | |
5157 | ||
5158 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5159 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5160 | ||
5161 | cat >>confdefs.h <<\_ACEOF | |
5162 | #define HAVE_GETTEXT 1 | |
5163 | _ACEOF | |
5164 | ||
5165 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5166 | set dummy msgfmt; ac_word=$2 | |
5167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5169 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5171 | else | |
5172 | case "$MSGFMT" in | |
5173 | /*) | |
5174 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5175 | ;; | |
5176 | *) | |
5177 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5178 | for ac_dir in $PATH; do | |
5179 | test -z "$ac_dir" && ac_dir=. | |
5180 | if test -f $ac_dir/$ac_word; then | |
5181 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5182 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5183 | break | |
5184 | fi | |
5185 | fi | |
5186 | done | |
5187 | IFS="$ac_save_ifs" | |
5188 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5189 | ;; | |
5190 | esac | |
5191 | fi | |
5192 | MSGFMT="$ac_cv_path_MSGFMT" | |
5193 | if test -n "$MSGFMT"; then | |
5194 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5195 | echo "${ECHO_T}$MSGFMT" >&6 | |
5196 | else | |
5197 | echo "$as_me:$LINENO: result: no" >&5 | |
5198 | echo "${ECHO_T}no" >&6 | |
5199 | fi | |
5200 | if test "$MSGFMT" != "no"; then | |
5201 | ||
5202 | for ac_func in dcgettext | |
5203 | do | |
5204 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5205 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5206 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5207 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5209 | else | |
5210 | cat >conftest.$ac_ext <<_ACEOF | |
5211 | /* confdefs.h. */ | |
5212 | _ACEOF | |
5213 | cat confdefs.h >>conftest.$ac_ext | |
5214 | cat >>conftest.$ac_ext <<_ACEOF | |
5215 | /* end confdefs.h. */ | |
5216 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5217 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5218 | #define $ac_func innocuous_$ac_func | |
5219 | ||
5220 | /* System header to define __stub macros and hopefully few prototypes, | |
5221 | which can conflict with char $ac_func (); below. | |
5222 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5223 | <limits.h> exists even on freestanding compilers. */ | |
5224 | ||
5225 | #ifdef __STDC__ | |
5226 | # include <limits.h> | |
5227 | #else | |
5228 | # include <assert.h> | |
5229 | #endif | |
5230 | ||
5231 | #undef $ac_func | |
5232 | ||
5233 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5234 | #ifdef __cplusplus | |
5235 | extern "C" | |
5236 | { | |
5237 | #endif | |
5238 | /* We use char because int might match the return type of a gcc2 | |
5239 | builtin and then its argument prototype would still apply. */ | |
5240 | char $ac_func (); | |
5241 | /* The GNU C library defines this for functions which it implements | |
5242 | to always fail with ENOSYS. Some functions are actually named | |
5243 | something starting with __ and the normal name is an alias. */ | |
5244 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5245 | choke me | |
5246 | #else | |
5247 | char (*f) () = $ac_func; | |
5248 | #endif | |
5249 | #ifdef __cplusplus | |
5250 | } | |
5251 | #endif | |
5252 | ||
5253 | int | |
5254 | main () | |
5255 | { | |
5256 | return f != $ac_func; | |
5257 | ; | |
5258 | return 0; | |
5259 | } | |
5260 | _ACEOF | |
5261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5263 | (eval $ac_link) 2>conftest.er1 | |
5264 | ac_status=$? | |
5265 | grep -v '^ *+' conftest.er1 >conftest.err | |
5266 | rm -f conftest.er1 | |
5267 | cat conftest.err >&5 | |
5268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5269 | (exit $ac_status); } && | |
121ce6e5 | 5270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5272 | (eval $ac_try) 2>&5 | |
5273 | ac_status=$? | |
5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5275 | (exit $ac_status); }; } && | |
5276 | { ac_try='test -s conftest$ac_exeext' | |
5277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5278 | (eval $ac_try) 2>&5 | |
5279 | ac_status=$? | |
5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5281 | (exit $ac_status); }; }; then | |
5282 | eval "$as_ac_var=yes" | |
5283 | else | |
5284 | echo "$as_me: failed program was:" >&5 | |
5285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5286 | ||
5287 | eval "$as_ac_var=no" | |
5288 | fi | |
5289 | rm -f conftest.err conftest.$ac_objext \ | |
5290 | conftest$ac_exeext conftest.$ac_ext | |
5291 | fi | |
5292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5293 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5294 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5295 | cat >>confdefs.h <<_ACEOF | |
5296 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5297 | _ACEOF | |
5298 | ||
5299 | fi | |
5300 | done | |
5301 | ||
5302 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5303 | set dummy gmsgfmt; ac_word=$2 | |
5304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5306 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5308 | else | |
5309 | case $GMSGFMT in | |
5310 | [\\/]* | ?:[\\/]*) | |
5311 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5312 | ;; | |
5313 | *) | |
5314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5315 | for as_dir in $PATH | |
5316 | do | |
5317 | IFS=$as_save_IFS | |
5318 | test -z "$as_dir" && as_dir=. | |
5319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5320 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5321 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5323 | break 2 | |
5324 | fi | |
5325 | done | |
5326 | done | |
5327 | ||
5328 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5329 | ;; | |
5330 | esac | |
5331 | fi | |
5332 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5333 | ||
5334 | if test -n "$GMSGFMT"; then | |
5335 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5336 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5337 | else | |
5338 | echo "$as_me:$LINENO: result: no" >&5 | |
5339 | echo "${ECHO_T}no" >&6 | |
5340 | fi | |
5341 | ||
5342 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5343 | set dummy xgettext; ac_word=$2 | |
5344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5346 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5348 | else | |
5349 | case "$XGETTEXT" in | |
5350 | /*) | |
5351 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5352 | ;; | |
5353 | *) | |
5354 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5355 | for ac_dir in $PATH; do | |
5356 | test -z "$ac_dir" && ac_dir=. | |
5357 | if test -f $ac_dir/$ac_word; then | |
5358 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5359 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5360 | break | |
5361 | fi | |
5362 | fi | |
5363 | done | |
5364 | IFS="$ac_save_ifs" | |
5365 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5366 | ;; | |
5367 | esac | |
5368 | fi | |
5369 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5370 | if test -n "$XGETTEXT"; then | |
5371 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5372 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5373 | else | |
5374 | echo "$as_me:$LINENO: result: no" >&5 | |
5375 | echo "${ECHO_T}no" >&6 | |
5376 | fi | |
5377 | ||
5378 | cat >conftest.$ac_ext <<_ACEOF | |
5379 | /* confdefs.h. */ | |
5380 | _ACEOF | |
5381 | cat confdefs.h >>conftest.$ac_ext | |
5382 | cat >>conftest.$ac_ext <<_ACEOF | |
5383 | /* end confdefs.h. */ | |
5384 | ||
5385 | int | |
5386 | main () | |
5387 | { | |
5388 | extern int _nl_msg_cat_cntr; | |
5389 | return _nl_msg_cat_cntr | |
5390 | ; | |
5391 | return 0; | |
5392 | } | |
5393 | _ACEOF | |
5394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5396 | (eval $ac_link) 2>conftest.er1 | |
5397 | ac_status=$? | |
5398 | grep -v '^ *+' conftest.er1 >conftest.err | |
5399 | rm -f conftest.er1 | |
5400 | cat conftest.err >&5 | |
5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5402 | (exit $ac_status); } && | |
121ce6e5 | 5403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5405 | (eval $ac_try) 2>&5 | |
5406 | ac_status=$? | |
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5408 | (exit $ac_status); }; } && | |
5409 | { ac_try='test -s conftest$ac_exeext' | |
5410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5411 | (eval $ac_try) 2>&5 | |
5412 | ac_status=$? | |
5413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5414 | (exit $ac_status); }; }; then | |
5415 | CATOBJEXT=.gmo | |
5416 | DATADIRNAME=share | |
5417 | else | |
5418 | echo "$as_me: failed program was:" >&5 | |
5419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5420 | ||
5421 | CATOBJEXT=.mo | |
5422 | DATADIRNAME=lib | |
5423 | fi | |
5424 | rm -f conftest.err conftest.$ac_objext \ | |
5425 | conftest$ac_exeext conftest.$ac_ext | |
5426 | INSTOBJEXT=.mo | |
5427 | fi | |
5428 | fi | |
5429 | ||
5430 | fi | |
5431 | ||
5432 | ||
5433 | ||
5434 | ||
a53bf506 | 5435 | if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then |
45181ed1 AC |
5436 | # Neither gettext nor catgets in included in the C library. |
5437 | # Fall back on GNU gettext library (assuming it is present). | |
5438 | nls_cv_use_gnu_gettext=yes | |
bec39cab AC |
5439 | fi |
5440 | fi | |
5441 | ||
5442 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5443 | INTLOBJS="\$(GETTOBJS)" | |
5444 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5445 | set dummy msgfmt; ac_word=$2 | |
5446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5448 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5450 | else | |
5451 | case "$MSGFMT" in | |
5452 | /*) | |
5453 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5454 | ;; | |
5455 | *) | |
5456 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5457 | for ac_dir in $PATH; do | |
5458 | test -z "$ac_dir" && ac_dir=. | |
5459 | if test -f $ac_dir/$ac_word; then | |
5460 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5461 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5462 | break | |
5463 | fi | |
5464 | fi | |
5465 | done | |
5466 | IFS="$ac_save_ifs" | |
5467 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5468 | ;; | |
5469 | esac | |
5470 | fi | |
5471 | MSGFMT="$ac_cv_path_MSGFMT" | |
5472 | if test -n "$MSGFMT"; then | |
5473 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5474 | echo "${ECHO_T}$MSGFMT" >&6 | |
5475 | else | |
5476 | echo "$as_me:$LINENO: result: no" >&5 | |
5477 | echo "${ECHO_T}no" >&6 | |
5478 | fi | |
5479 | ||
5480 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
c906108c | 5481 | set dummy gmsgfmt; ac_word=$2 |
bec39cab AC |
5482 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5484 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5486 | else | |
5487 | case $GMSGFMT in | |
5488 | [\\/]* | ?:[\\/]*) | |
5489 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5490 | ;; | |
5491 | *) | |
5492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5493 | for as_dir in $PATH | |
5494 | do | |
5495 | IFS=$as_save_IFS | |
5496 | test -z "$as_dir" && as_dir=. | |
5497 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5498 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5499 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5501 | break 2 | |
5502 | fi | |
5503 | done | |
5504 | done | |
5505 | ||
5506 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5507 | ;; | |
5508 | esac | |
5509 | fi | |
5510 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5511 | ||
5512 | if test -n "$GMSGFMT"; then | |
5513 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5514 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5515 | else | |
5516 | echo "$as_me:$LINENO: result: no" >&5 | |
5517 | echo "${ECHO_T}no" >&6 | |
5518 | fi | |
5519 | ||
5520 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5521 | set dummy xgettext; ac_word=$2 | |
5522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5524 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5526 | else | |
5527 | case "$XGETTEXT" in | |
5528 | /*) | |
5529 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5530 | ;; | |
5531 | *) | |
5532 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5533 | for ac_dir in $PATH; do | |
5534 | test -z "$ac_dir" && ac_dir=. | |
5535 | if test -f $ac_dir/$ac_word; then | |
5536 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5537 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5538 | break | |
5539 | fi | |
5540 | fi | |
5541 | done | |
5542 | IFS="$ac_save_ifs" | |
5543 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5544 | ;; | |
5545 | esac | |
5546 | fi | |
5547 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5548 | if test -n "$XGETTEXT"; then | |
5549 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5550 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5551 | else | |
5552 | echo "$as_me:$LINENO: result: no" >&5 | |
5553 | echo "${ECHO_T}no" >&6 | |
5554 | fi | |
5555 | ||
5556 | ||
5557 | USE_INCLUDED_LIBINTL=yes | |
5558 | CATOBJEXT=.gmo | |
5559 | INSTOBJEXT=.mo | |
5560 | DATADIRNAME=share | |
5561 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5562 | INTLLIBS=$INTLDEPS | |
5563 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5564 | nls_cv_header_intl=libintl.h | |
5565 | nls_cv_header_libgt=libgettext.h | |
5566 | fi | |
5567 | ||
5568 | if test "$XGETTEXT" != ":"; then | |
5569 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5570 | : ; | |
5571 | else | |
5572 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 | |
5573 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
5574 | XGETTEXT=":" | |
5575 | fi | |
5576 | fi | |
5577 | ||
5578 | # We need to process the po/ directory. | |
5579 | POSUB=po | |
5580 | else | |
5581 | DATADIRNAME=share | |
5582 | nls_cv_header_intl=libintl.h | |
5583 | nls_cv_header_libgt=libgettext.h | |
5584 | fi | |
5585 | ||
5586 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5587 | # because some of the sources are only built for this goal. | |
5588 | if test "$PACKAGE" = gettext; then | |
5589 | USE_NLS=yes | |
5590 | USE_INCLUDED_LIBINTL=yes | |
5591 | fi | |
5592 | ||
5593 | for lang in $ALL_LINGUAS; do | |
5594 | GMOFILES="$GMOFILES $lang.gmo" | |
5595 | POFILES="$POFILES $lang.po" | |
5596 | done | |
5597 | ||
5598 | ||
5599 | ||
5600 | ||
5601 | ||
5602 | ||
5603 | ||
5604 | ||
5605 | ||
5606 | ||
5607 | ||
5608 | ||
c46f8c51 AC |
5609 | if test "x$CATOBJEXT" != "x"; then |
5610 | ||
5611 | cat >>confdefs.h <<\_ACEOF | |
5612 | #define ENABLE_NLS 1 | |
5613 | _ACEOF | |
5614 | ||
5615 | fi | |
bec39cab AC |
5616 | |
5617 | ||
5618 | if test "x$CATOBJEXT" != "x"; then | |
5619 | if test "x$ALL_LINGUAS" = "x"; then | |
5620 | LINGUAS= | |
5621 | else | |
5622 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5623 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5624 | NEW_LINGUAS= | |
5625 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5626 | case "$ALL_LINGUAS" in | |
5627 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5628 | esac | |
5629 | done | |
5630 | LINGUAS=$NEW_LINGUAS | |
5631 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5632 | echo "${ECHO_T}$LINGUAS" >&6 | |
5633 | fi | |
5634 | ||
5635 | if test -n "$LINGUAS"; then | |
5636 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5637 | fi | |
5638 | fi | |
5639 | ||
5640 | if test $ac_cv_header_locale_h = yes; then | |
5641 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5642 | else | |
5643 | INCLUDE_LOCALE_H="\ | |
5644 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5645 | fi | |
5646 | ||
5647 | ||
5648 | if test -f $srcdir/po2tbl.sed.in; then | |
5649 | if test "$CATOBJEXT" = ".cat"; then | |
5650 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5651 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5652 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5653 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5655 | fi | |
5656 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5657 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5658 | else | |
5659 | # Is the header compilable? | |
5660 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5661 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5662 | cat >conftest.$ac_ext <<_ACEOF | |
5663 | /* confdefs.h. */ | |
5664 | _ACEOF | |
5665 | cat confdefs.h >>conftest.$ac_ext | |
5666 | cat >>conftest.$ac_ext <<_ACEOF | |
5667 | /* end confdefs.h. */ | |
5668 | $ac_includes_default | |
5669 | #include <linux/version.h> | |
5670 | _ACEOF | |
5671 | rm -f conftest.$ac_objext | |
5672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5673 | (eval $ac_compile) 2>conftest.er1 | |
5674 | ac_status=$? | |
5675 | grep -v '^ *+' conftest.er1 >conftest.err | |
5676 | rm -f conftest.er1 | |
5677 | cat conftest.err >&5 | |
5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5679 | (exit $ac_status); } && | |
121ce6e5 | 5680 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5682 | (eval $ac_try) 2>&5 | |
5683 | ac_status=$? | |
5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5685 | (exit $ac_status); }; } && | |
5686 | { ac_try='test -s conftest.$ac_objext' | |
5687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5688 | (eval $ac_try) 2>&5 | |
5689 | ac_status=$? | |
5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5691 | (exit $ac_status); }; }; then | |
5692 | ac_header_compiler=yes | |
5693 | else | |
5694 | echo "$as_me: failed program was:" >&5 | |
5695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5696 | ||
5697 | ac_header_compiler=no | |
5698 | fi | |
5699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5700 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5701 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5702 | ||
5703 | # Is the header present? | |
5704 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5705 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5706 | cat >conftest.$ac_ext <<_ACEOF | |
5707 | /* confdefs.h. */ | |
5708 | _ACEOF | |
5709 | cat confdefs.h >>conftest.$ac_ext | |
5710 | cat >>conftest.$ac_ext <<_ACEOF | |
5711 | /* end confdefs.h. */ | |
5712 | #include <linux/version.h> | |
5713 | _ACEOF | |
5714 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5715 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5716 | ac_status=$? | |
5717 | grep -v '^ *+' conftest.er1 >conftest.err | |
5718 | rm -f conftest.er1 | |
5719 | cat conftest.err >&5 | |
5720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5721 | (exit $ac_status); } >/dev/null; then | |
5722 | if test -s conftest.err; then | |
5723 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5724 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5725 | else | |
5726 | ac_cpp_err= | |
5727 | fi | |
5728 | else | |
5729 | ac_cpp_err=yes | |
5730 | fi | |
5731 | if test -z "$ac_cpp_err"; then | |
5732 | ac_header_preproc=yes | |
5733 | else | |
5734 | echo "$as_me: failed program was:" >&5 | |
5735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5736 | ||
5737 | ac_header_preproc=no | |
5738 | fi | |
5739 | rm -f conftest.err conftest.$ac_ext | |
5740 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5741 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5742 | ||
5743 | # So? What about this header? | |
5744 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5745 | yes:no: ) | |
5746 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5747 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5748 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5749 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5750 | ac_header_preproc=yes | |
5751 | ;; | |
5752 | no:yes:* ) | |
5753 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5754 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5755 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5756 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5757 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5758 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5759 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5760 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5761 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5762 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5763 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5764 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5765 | ( | |
5766 | cat <<\_ASBOX | |
5767 | ## ------------------------------------------ ## | |
5768 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5769 | ## ------------------------------------------ ## | |
5770 | _ASBOX | |
5771 | ) | | |
5772 | sed "s/^/$as_me: WARNING: /" >&2 | |
5773 | ;; | |
5774 | esac | |
5775 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5776 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5777 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5779 | else | |
5780 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5781 | fi | |
5782 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5783 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5784 | ||
5785 | fi | |
5786 | if test $ac_cv_header_linux_version_h = yes; then | |
5787 | msgformat=linux | |
5788 | else | |
5789 | msgformat=xopen | |
5790 | fi | |
5791 | ||
5792 | ||
5793 | ||
5794 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
5795 | fi | |
5796 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5797 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5798 | fi | |
5799 | ||
5800 | if test "$PACKAGE" = "gettext"; then | |
5801 | GT_NO="#NO#" | |
5802 | GT_YES= | |
5803 | else | |
5804 | GT_NO= | |
5805 | GT_YES="#YES#" | |
5806 | fi | |
5807 | ||
5808 | ||
5809 | ||
5810 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
5811 | ||
5812 | ||
5813 | l= | |
5814 | ||
5815 | ||
5816 | if test -f $srcdir/po/POTFILES.in; then | |
5817 | test -d po || mkdir po | |
5818 | if test "x$srcdir" != "x."; then | |
5819 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5820 | posrcprefix="$srcdir/" | |
5821 | else | |
5822 | posrcprefix="../$srcdir/" | |
5823 | fi | |
5824 | else | |
5825 | posrcprefix="../" | |
5826 | fi | |
5827 | rm -f po/POTFILES | |
5828 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5829 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5830 | fi | |
5831 | ||
5832 | ||
5833 | localedir='${datadir}/locale' | |
5834 | ||
5835 | ||
5836 | if test "x$POSUB" != x; then | |
5837 | ||
5838 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5839 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5840 | # Look for .po and .gmo files in the source directory. | |
5841 | CATALOGS= | |
5842 | XLINGUAS= | |
5843 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5844 | # If there aren't any .gmo files the shell will give us the | |
5845 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5846 | # weeded out. | |
5847 | case "$cat" in *\**) | |
5848 | continue;; | |
5849 | esac | |
5850 | # The quadruple backslash is collapsed to a double backslash | |
5851 | # by the backticks, then collapsed again by the double quotes, | |
5852 | # leaving us with one backslash in the sed expression (right | |
5853 | # before the dot that mustn't act as a wildcard). | |
5854 | cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"` | |
5855 | lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"` | |
5856 | # The user is allowed to set LINGUAS to a list of languages to | |
5857 | # install catalogs for. If it's empty that means "all of them." | |
5858 | if test "x$LINGUAS" = x; then | |
5859 | CATALOGS="$CATALOGS $cat" | |
5860 | XLINGUAS="$XLINGUAS $lang" | |
5861 | else | |
5862 | case "$LINGUAS" in *$lang*) | |
5863 | CATALOGS="$CATALOGS $cat" | |
5864 | XLINGUAS="$XLINGUAS $lang" | |
5865 | ;; | |
5866 | esac | |
5867 | fi | |
5868 | done | |
5869 | LINGUAS="$XLINGUAS" | |
5870 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5871 | echo "${ECHO_T}$LINGUAS" >&6 | |
5872 | ||
5873 | CONFIG_ALL="$CONFIG_ALL all-po" | |
5874 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
5875 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
5876 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
5877 | fi | |
5878 | ||
5879 | PACKAGE=gdb | |
5880 | ||
5881 | cat >>confdefs.h <<_ACEOF | |
5882 | #define PACKAGE "$PACKAGE" | |
5883 | _ACEOF | |
5884 | ||
5885 | ||
5886 | ||
5887 | debugdir=${libdir}/debug | |
5888 | ||
5889 | ||
5890 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. | |
5891 | if test "${with_separate_debug_dir+set}" = set; then | |
5892 | withval="$with_separate_debug_dir" | |
5893 | debugdir="${withval}" | |
5894 | fi; | |
5895 | ||
5896 | ||
5897 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
5898 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5899 | ac_define_dir=`eval echo $debugdir` | |
5900 | ac_define_dir=`eval echo $ac_define_dir` | |
5901 | ||
5902 | cat >>confdefs.h <<_ACEOF | |
5903 | #define DEBUGDIR "$ac_define_dir" | |
5904 | _ACEOF | |
5905 | ||
5906 | ||
5907 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
5908 | ||
5909 | ||
5910 | ||
5911 | subdirs="$subdirs doc testsuite" | |
5912 | ||
5913 | ||
121ce6e5 DJ |
5914 | # Provide defaults for some variables set by the per-host and per-target |
5915 | # configuration. | |
5916 | gdb_host_obs=posix-hdep.o | |
5917 | ||
bec39cab AC |
5918 | . $srcdir/configure.host |
5919 | ||
5920 | . $srcdir/configure.tgt | |
5921 | ||
5922 | # Fetch the default architecture and default target vector from BFD. | |
5923 | targ=$target; . $srcdir/../bfd/config.bfd | |
5924 | ||
5925 | # We only want the first architecture, so strip off the others if | |
5926 | # there is more than one. | |
5927 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
5928 | ||
5929 | if test "x$targ_archs" != x; then | |
5930 | ||
5931 | cat >>confdefs.h <<_ACEOF | |
5932 | #define DEFAULT_BFD_ARCH $targ_archs | |
5933 | _ACEOF | |
5934 | ||
5935 | fi | |
5936 | if test "x$targ_defvec" != x; then | |
5937 | ||
5938 | cat >>confdefs.h <<_ACEOF | |
5939 | #define DEFAULT_BFD_VEC $targ_defvec | |
5940 | _ACEOF | |
5941 | ||
5942 | fi | |
5943 | ||
5944 | test "$program_prefix" != NONE && | |
5945 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
5946 | # Use a double $ so make ignores it. | |
5947 | test "$program_suffix" != NONE && | |
5948 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
5949 | # Double any \ or $. echo might interpret backslashes. | |
5950 | # By default was `s,x,x', remove it if useless. | |
5951 | cat <<\_ACEOF >conftest.sed | |
5952 | s/[\\$]/&&/g;s/;s,x,x,$// | |
5953 | _ACEOF | |
5954 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
5955 | rm conftest.sed | |
5956 | ||
5957 | ||
5958 | # The CLI cannot be disabled yet, but may be in the future. | |
5959 | ||
5960 | # Enable CLI. | |
5961 | # Check whether --enable-gdbcli or --disable-gdbcli was given. | |
5962 | if test "${enable_gdbcli+set}" = set; then | |
5963 | enableval="$enable_gdbcli" | |
5964 | case $enableval in | |
5965 | yes) | |
5966 | ;; | |
5967 | no) | |
5968 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
5969 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
5970 | { (exit 1); exit 1; }; } ;; | |
5971 | *) | |
5972 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
5973 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
5974 | { (exit 1); exit 1; }; } ;; | |
5975 | esac | |
5976 | else | |
5977 | enable_gdbcli=yes | |
5978 | fi; | |
5979 | if test x"$enable_gdbcli" = xyes; then | |
5980 | if test -d $srcdir/cli; then | |
5981 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
5982 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
5983 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
5984 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
5985 | fi | |
5986 | fi | |
5987 | ||
5988 | # Enable MI. | |
5989 | # Check whether --enable-gdbmi or --disable-gdbmi was given. | |
5990 | if test "${enable_gdbmi+set}" = set; then | |
5991 | enableval="$enable_gdbmi" | |
5992 | case $enableval in | |
5993 | yes | no) | |
5994 | ;; | |
5995 | *) | |
5996 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
5997 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
5998 | { (exit 1); exit 1; }; } ;; | |
5999 | esac | |
6000 | else | |
6001 | enable_gdbmi=yes | |
6002 | fi; | |
6003 | if test x"$enable_gdbmi" = xyes; then | |
6004 | if test -d $srcdir/mi; then | |
6005 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
6006 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
6007 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
6008 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
6009 | fi | |
6010 | fi | |
6011 | ||
6012 | # Enable TUI. | |
6013 | # Check whether --enable-tui or --disable-tui was given. | |
6014 | if test "${enable_tui+set}" = set; then | |
6015 | enableval="$enable_tui" | |
6016 | case $enableval in | |
6017 | yes | no) | |
6018 | ;; | |
6019 | *) | |
6020 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
6021 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
6022 | { (exit 1); exit 1; }; } ;; | |
6023 | esac | |
6024 | else | |
6025 | enable_tui=yes | |
6026 | fi; | |
6027 | ||
6028 | # Enable gdbtk. | |
6029 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
6030 | if test "${enable_gdbtk+set}" = set; then | |
6031 | enableval="$enable_gdbtk" | |
6032 | case $enableval in | |
6033 | yes | no) | |
6034 | ;; | |
6035 | *) | |
6036 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
6037 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
6038 | { (exit 1); exit 1; }; } ;; | |
6039 | esac | |
6040 | else | |
04ac69aa | 6041 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
bec39cab AC |
6042 | enable_gdbtk=yes |
6043 | else | |
6044 | enable_gdbtk=no | |
6045 | fi | |
6046 | fi; | |
6047 | # We unconditionally disable gdbtk tests on selected platforms. | |
6048 | case $host_os in | |
6049 | go32* | windows*) | |
6050 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
6051 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
6052 | enable_gdbtk=no ;; | |
6053 | esac | |
6054 | ||
6055 | # Libunwind support. | |
6056 | ||
6057 | # Check whether --with-libunwind or --without-libunwind was given. | |
6058 | if test "${with_libunwind+set}" = set; then | |
6059 | withval="$with_libunwind" | |
6060 | case "${withval}" in | |
6061 | yes) enable_libunwind=yes ;; | |
6062 | no) enable_libunwind=no ;; | |
6063 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
6064 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
6065 | { (exit 1); exit 1; }; } ;; | |
6066 | esac | |
6067 | else | |
6068 | ||
6069 | ||
6070 | for ac_header in libunwind.h | |
6071 | do | |
6072 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6074 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6075 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6076 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6078 | fi | |
6079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6081 | else | |
6082 | # Is the header compilable? | |
6083 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6084 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6085 | cat >conftest.$ac_ext <<_ACEOF | |
6086 | /* confdefs.h. */ | |
6087 | _ACEOF | |
6088 | cat confdefs.h >>conftest.$ac_ext | |
6089 | cat >>conftest.$ac_ext <<_ACEOF | |
6090 | /* end confdefs.h. */ | |
6091 | $ac_includes_default | |
6092 | #include <$ac_header> | |
6093 | _ACEOF | |
6094 | rm -f conftest.$ac_objext | |
6095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6096 | (eval $ac_compile) 2>conftest.er1 | |
6097 | ac_status=$? | |
6098 | grep -v '^ *+' conftest.er1 >conftest.err | |
6099 | rm -f conftest.er1 | |
6100 | cat conftest.err >&5 | |
6101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6102 | (exit $ac_status); } && | |
121ce6e5 | 6103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6105 | (eval $ac_try) 2>&5 | |
6106 | ac_status=$? | |
6107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6108 | (exit $ac_status); }; } && | |
6109 | { ac_try='test -s conftest.$ac_objext' | |
6110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6111 | (eval $ac_try) 2>&5 | |
6112 | ac_status=$? | |
6113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6114 | (exit $ac_status); }; }; then | |
6115 | ac_header_compiler=yes | |
6116 | else | |
6117 | echo "$as_me: failed program was:" >&5 | |
6118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6119 | ||
6120 | ac_header_compiler=no | |
6121 | fi | |
6122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6123 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6124 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6125 | ||
6126 | # Is the header present? | |
6127 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6128 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6129 | cat >conftest.$ac_ext <<_ACEOF | |
6130 | /* confdefs.h. */ | |
6131 | _ACEOF | |
6132 | cat confdefs.h >>conftest.$ac_ext | |
6133 | cat >>conftest.$ac_ext <<_ACEOF | |
6134 | /* end confdefs.h. */ | |
6135 | #include <$ac_header> | |
6136 | _ACEOF | |
6137 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6138 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6139 | ac_status=$? | |
6140 | grep -v '^ *+' conftest.er1 >conftest.err | |
6141 | rm -f conftest.er1 | |
6142 | cat conftest.err >&5 | |
6143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6144 | (exit $ac_status); } >/dev/null; then | |
6145 | if test -s conftest.err; then | |
6146 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6147 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6148 | else | |
6149 | ac_cpp_err= | |
6150 | fi | |
6151 | else | |
6152 | ac_cpp_err=yes | |
6153 | fi | |
6154 | if test -z "$ac_cpp_err"; then | |
6155 | ac_header_preproc=yes | |
6156 | else | |
6157 | echo "$as_me: failed program was:" >&5 | |
6158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6159 | ||
6160 | ac_header_preproc=no | |
6161 | fi | |
6162 | rm -f conftest.err conftest.$ac_ext | |
6163 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6164 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6165 | ||
6166 | # So? What about this header? | |
6167 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6168 | yes:no: ) | |
6169 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6170 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6171 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6172 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6173 | ac_header_preproc=yes | |
6174 | ;; | |
6175 | no:yes:* ) | |
6176 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6177 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6178 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6179 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6180 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6181 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6182 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6183 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6184 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6185 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6186 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6187 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6188 | ( | |
6189 | cat <<\_ASBOX | |
6190 | ## ------------------------------------------ ## | |
6191 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6192 | ## ------------------------------------------ ## | |
6193 | _ASBOX | |
6194 | ) | | |
6195 | sed "s/^/$as_me: WARNING: /" >&2 | |
6196 | ;; | |
6197 | esac | |
6198 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6199 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6200 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6202 | else | |
6203 | eval "$as_ac_Header=\$ac_header_preproc" | |
6204 | fi | |
6205 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6206 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6207 | ||
6208 | fi | |
6209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6210 | cat >>confdefs.h <<_ACEOF | |
6211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6212 | _ACEOF | |
6213 | ||
6214 | fi | |
6215 | ||
6216 | done | |
6217 | ||
6218 | ||
6219 | for ac_header in libunwind-ia64.h | |
6220 | do | |
6221 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6222 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6223 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6227 | fi | |
6228 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6229 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6230 | else | |
6231 | # Is the header compilable? | |
6232 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6233 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6234 | cat >conftest.$ac_ext <<_ACEOF | |
6235 | /* confdefs.h. */ | |
6236 | _ACEOF | |
6237 | cat confdefs.h >>conftest.$ac_ext | |
6238 | cat >>conftest.$ac_ext <<_ACEOF | |
6239 | /* end confdefs.h. */ | |
6240 | $ac_includes_default | |
6241 | #include <$ac_header> | |
6242 | _ACEOF | |
6243 | rm -f conftest.$ac_objext | |
6244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6245 | (eval $ac_compile) 2>conftest.er1 | |
6246 | ac_status=$? | |
6247 | grep -v '^ *+' conftest.er1 >conftest.err | |
6248 | rm -f conftest.er1 | |
6249 | cat conftest.err >&5 | |
6250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6251 | (exit $ac_status); } && | |
121ce6e5 | 6252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6254 | (eval $ac_try) 2>&5 | |
6255 | ac_status=$? | |
6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6257 | (exit $ac_status); }; } && | |
6258 | { ac_try='test -s conftest.$ac_objext' | |
6259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6260 | (eval $ac_try) 2>&5 | |
6261 | ac_status=$? | |
6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6263 | (exit $ac_status); }; }; then | |
6264 | ac_header_compiler=yes | |
6265 | else | |
6266 | echo "$as_me: failed program was:" >&5 | |
6267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6268 | ||
6269 | ac_header_compiler=no | |
6270 | fi | |
6271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6272 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6273 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6274 | ||
6275 | # Is the header present? | |
6276 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6277 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6278 | cat >conftest.$ac_ext <<_ACEOF | |
6279 | /* confdefs.h. */ | |
6280 | _ACEOF | |
6281 | cat confdefs.h >>conftest.$ac_ext | |
6282 | cat >>conftest.$ac_ext <<_ACEOF | |
6283 | /* end confdefs.h. */ | |
6284 | #include <$ac_header> | |
6285 | _ACEOF | |
6286 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6287 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6288 | ac_status=$? | |
6289 | grep -v '^ *+' conftest.er1 >conftest.err | |
6290 | rm -f conftest.er1 | |
6291 | cat conftest.err >&5 | |
6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6293 | (exit $ac_status); } >/dev/null; then | |
6294 | if test -s conftest.err; then | |
6295 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6296 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6297 | else | |
6298 | ac_cpp_err= | |
6299 | fi | |
6300 | else | |
6301 | ac_cpp_err=yes | |
6302 | fi | |
6303 | if test -z "$ac_cpp_err"; then | |
6304 | ac_header_preproc=yes | |
6305 | else | |
6306 | echo "$as_me: failed program was:" >&5 | |
6307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6308 | ||
6309 | ac_header_preproc=no | |
6310 | fi | |
6311 | rm -f conftest.err conftest.$ac_ext | |
6312 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6313 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6314 | ||
6315 | # So? What about this header? | |
6316 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6317 | yes:no: ) | |
6318 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6319 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6321 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6322 | ac_header_preproc=yes | |
6323 | ;; | |
6324 | no:yes:* ) | |
6325 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6326 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6327 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6328 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6329 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6330 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6331 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6332 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6335 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6336 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6337 | ( | |
6338 | cat <<\_ASBOX | |
6339 | ## ------------------------------------------ ## | |
6340 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6341 | ## ------------------------------------------ ## | |
6342 | _ASBOX | |
6343 | ) | | |
6344 | sed "s/^/$as_me: WARNING: /" >&2 | |
6345 | ;; | |
6346 | esac | |
6347 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6348 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6349 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6351 | else | |
6352 | eval "$as_ac_Header=\$ac_header_preproc" | |
6353 | fi | |
6354 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6355 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6356 | ||
6357 | fi | |
6358 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6359 | cat >>confdefs.h <<_ACEOF | |
6360 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6361 | _ACEOF | |
6362 | ||
6363 | fi | |
6364 | ||
6365 | done | |
6366 | ||
6367 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
6368 | enable_libunwind=yes; | |
6369 | fi | |
6370 | ||
6371 | fi; | |
6372 | ||
6373 | if test x"$enable_libunwind" = xyes; then | |
6374 | ||
6375 | for ac_header in libunwind.h | |
6376 | do | |
6377 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6379 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6381 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6383 | fi | |
6384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6385 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6386 | else | |
6387 | # Is the header compilable? | |
6388 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6389 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6390 | cat >conftest.$ac_ext <<_ACEOF | |
6391 | /* confdefs.h. */ | |
6392 | _ACEOF | |
6393 | cat confdefs.h >>conftest.$ac_ext | |
6394 | cat >>conftest.$ac_ext <<_ACEOF | |
6395 | /* end confdefs.h. */ | |
6396 | $ac_includes_default | |
6397 | #include <$ac_header> | |
6398 | _ACEOF | |
6399 | rm -f conftest.$ac_objext | |
6400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6401 | (eval $ac_compile) 2>conftest.er1 | |
6402 | ac_status=$? | |
6403 | grep -v '^ *+' conftest.er1 >conftest.err | |
6404 | rm -f conftest.er1 | |
6405 | cat conftest.err >&5 | |
6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6407 | (exit $ac_status); } && | |
121ce6e5 | 6408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6410 | (eval $ac_try) 2>&5 | |
6411 | ac_status=$? | |
6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6413 | (exit $ac_status); }; } && | |
6414 | { ac_try='test -s conftest.$ac_objext' | |
6415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6416 | (eval $ac_try) 2>&5 | |
6417 | ac_status=$? | |
6418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6419 | (exit $ac_status); }; }; then | |
6420 | ac_header_compiler=yes | |
6421 | else | |
6422 | echo "$as_me: failed program was:" >&5 | |
6423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6424 | ||
6425 | ac_header_compiler=no | |
6426 | fi | |
6427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6428 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6429 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6430 | ||
6431 | # Is the header present? | |
6432 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6433 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6434 | cat >conftest.$ac_ext <<_ACEOF | |
6435 | /* confdefs.h. */ | |
6436 | _ACEOF | |
6437 | cat confdefs.h >>conftest.$ac_ext | |
6438 | cat >>conftest.$ac_ext <<_ACEOF | |
6439 | /* end confdefs.h. */ | |
6440 | #include <$ac_header> | |
6441 | _ACEOF | |
6442 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6443 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6444 | ac_status=$? | |
6445 | grep -v '^ *+' conftest.er1 >conftest.err | |
6446 | rm -f conftest.er1 | |
6447 | cat conftest.err >&5 | |
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6449 | (exit $ac_status); } >/dev/null; then | |
6450 | if test -s conftest.err; then | |
6451 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6452 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6453 | else | |
6454 | ac_cpp_err= | |
6455 | fi | |
6456 | else | |
6457 | ac_cpp_err=yes | |
6458 | fi | |
6459 | if test -z "$ac_cpp_err"; then | |
6460 | ac_header_preproc=yes | |
6461 | else | |
6462 | echo "$as_me: failed program was:" >&5 | |
6463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6464 | ||
6465 | ac_header_preproc=no | |
6466 | fi | |
6467 | rm -f conftest.err conftest.$ac_ext | |
6468 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6469 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6470 | ||
6471 | # So? What about this header? | |
6472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6473 | yes:no: ) | |
6474 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6475 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6476 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6477 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6478 | ac_header_preproc=yes | |
6479 | ;; | |
6480 | no:yes:* ) | |
6481 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6482 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6483 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6484 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6485 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6486 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6487 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6488 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6489 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6490 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6491 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6492 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6493 | ( | |
6494 | cat <<\_ASBOX | |
6495 | ## ------------------------------------------ ## | |
6496 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6497 | ## ------------------------------------------ ## | |
6498 | _ASBOX | |
6499 | ) | | |
6500 | sed "s/^/$as_me: WARNING: /" >&2 | |
6501 | ;; | |
6502 | esac | |
6503 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6504 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6505 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6507 | else | |
6508 | eval "$as_ac_Header=\$ac_header_preproc" | |
6509 | fi | |
6510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6511 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6512 | ||
6513 | fi | |
6514 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6515 | cat >>confdefs.h <<_ACEOF | |
6516 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6517 | _ACEOF | |
6518 | ||
6519 | fi | |
6520 | ||
6521 | done | |
6522 | ||
6523 | ||
6524 | for ac_header in libunwind-ia64.h | |
6525 | do | |
6526 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6528 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6532 | fi | |
6533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6535 | else | |
6536 | # Is the header compilable? | |
6537 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6538 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6539 | cat >conftest.$ac_ext <<_ACEOF | |
6540 | /* confdefs.h. */ | |
6541 | _ACEOF | |
6542 | cat confdefs.h >>conftest.$ac_ext | |
6543 | cat >>conftest.$ac_ext <<_ACEOF | |
6544 | /* end confdefs.h. */ | |
6545 | $ac_includes_default | |
6546 | #include <$ac_header> | |
6547 | _ACEOF | |
6548 | rm -f conftest.$ac_objext | |
6549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6550 | (eval $ac_compile) 2>conftest.er1 | |
6551 | ac_status=$? | |
6552 | grep -v '^ *+' conftest.er1 >conftest.err | |
6553 | rm -f conftest.er1 | |
6554 | cat conftest.err >&5 | |
6555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6556 | (exit $ac_status); } && | |
121ce6e5 | 6557 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6559 | (eval $ac_try) 2>&5 | |
6560 | ac_status=$? | |
6561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6562 | (exit $ac_status); }; } && | |
6563 | { ac_try='test -s conftest.$ac_objext' | |
6564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6565 | (eval $ac_try) 2>&5 | |
6566 | ac_status=$? | |
6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6568 | (exit $ac_status); }; }; then | |
6569 | ac_header_compiler=yes | |
6570 | else | |
6571 | echo "$as_me: failed program was:" >&5 | |
6572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6573 | ||
6574 | ac_header_compiler=no | |
6575 | fi | |
6576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6577 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6578 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6579 | ||
6580 | # Is the header present? | |
6581 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6582 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6583 | cat >conftest.$ac_ext <<_ACEOF | |
6584 | /* confdefs.h. */ | |
6585 | _ACEOF | |
6586 | cat confdefs.h >>conftest.$ac_ext | |
6587 | cat >>conftest.$ac_ext <<_ACEOF | |
6588 | /* end confdefs.h. */ | |
6589 | #include <$ac_header> | |
6590 | _ACEOF | |
6591 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6592 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6593 | ac_status=$? | |
6594 | grep -v '^ *+' conftest.er1 >conftest.err | |
6595 | rm -f conftest.er1 | |
6596 | cat conftest.err >&5 | |
6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6598 | (exit $ac_status); } >/dev/null; then | |
6599 | if test -s conftest.err; then | |
6600 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6601 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6602 | else | |
6603 | ac_cpp_err= | |
6604 | fi | |
6605 | else | |
6606 | ac_cpp_err=yes | |
6607 | fi | |
6608 | if test -z "$ac_cpp_err"; then | |
6609 | ac_header_preproc=yes | |
6610 | else | |
6611 | echo "$as_me: failed program was:" >&5 | |
6612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6613 | ||
6614 | ac_header_preproc=no | |
6615 | fi | |
6616 | rm -f conftest.err conftest.$ac_ext | |
6617 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6618 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6619 | ||
6620 | # So? What about this header? | |
6621 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6622 | yes:no: ) | |
6623 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6624 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6625 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6626 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6627 | ac_header_preproc=yes | |
6628 | ;; | |
6629 | no:yes:* ) | |
6630 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6631 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6632 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6633 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6634 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6635 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6636 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6637 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6638 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6639 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6640 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6641 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6642 | ( | |
6643 | cat <<\_ASBOX | |
6644 | ## ------------------------------------------ ## | |
6645 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6646 | ## ------------------------------------------ ## | |
6647 | _ASBOX | |
6648 | ) | | |
6649 | sed "s/^/$as_me: WARNING: /" >&2 | |
6650 | ;; | |
6651 | esac | |
6652 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6653 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6654 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6656 | else | |
6657 | eval "$as_ac_Header=\$ac_header_preproc" | |
6658 | fi | |
6659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6660 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6661 | ||
6662 | fi | |
6663 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6664 | cat >>confdefs.h <<_ACEOF | |
6665 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6666 | _ACEOF | |
6667 | ||
6668 | fi | |
6669 | ||
6670 | done | |
6671 | ||
60ca704f SE |
6672 | |
6673 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
6674 | #define HAVE_LIBUNWIND 1 |
6675 | _ACEOF | |
6676 | ||
6677 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
6678 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
6679 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
6680 | fi | |
6681 | ||
6682 | # Profiling support. | |
6683 | # Check whether --enable-profiling or --disable-profiling was given. | |
6684 | if test "${enable_profiling+set}" = set; then | |
6685 | enableval="$enable_profiling" | |
6686 | case $enableval in | |
6687 | yes | no) | |
6688 | ;; | |
6689 | *) | |
6690 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
6691 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
6692 | { (exit 1); exit 1; }; } ;; | |
6693 | esac | |
6694 | else | |
6695 | enable_profiling=no | |
6696 | fi; | |
6697 | ||
6698 | ||
6699 | ||
6700 | for ac_func in monstartup _mcleanup | |
6701 | do | |
6702 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6703 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6704 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6705 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6707 | else | |
6708 | cat >conftest.$ac_ext <<_ACEOF | |
6709 | /* confdefs.h. */ | |
6710 | _ACEOF | |
6711 | cat confdefs.h >>conftest.$ac_ext | |
6712 | cat >>conftest.$ac_ext <<_ACEOF | |
6713 | /* end confdefs.h. */ | |
6714 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6716 | #define $ac_func innocuous_$ac_func | |
6717 | ||
6718 | /* System header to define __stub macros and hopefully few prototypes, | |
6719 | which can conflict with char $ac_func (); below. | |
6720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6721 | <limits.h> exists even on freestanding compilers. */ | |
6722 | ||
6723 | #ifdef __STDC__ | |
6724 | # include <limits.h> | |
6725 | #else | |
6726 | # include <assert.h> | |
6727 | #endif | |
6728 | ||
6729 | #undef $ac_func | |
6730 | ||
6731 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6732 | #ifdef __cplusplus | |
6733 | extern "C" | |
6734 | { | |
6735 | #endif | |
6736 | /* We use char because int might match the return type of a gcc2 | |
6737 | builtin and then its argument prototype would still apply. */ | |
6738 | char $ac_func (); | |
6739 | /* The GNU C library defines this for functions which it implements | |
6740 | to always fail with ENOSYS. Some functions are actually named | |
6741 | something starting with __ and the normal name is an alias. */ | |
6742 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6743 | choke me | |
6744 | #else | |
6745 | char (*f) () = $ac_func; | |
6746 | #endif | |
6747 | #ifdef __cplusplus | |
6748 | } | |
6749 | #endif | |
6750 | ||
6751 | int | |
6752 | main () | |
6753 | { | |
6754 | return f != $ac_func; | |
6755 | ; | |
6756 | return 0; | |
6757 | } | |
6758 | _ACEOF | |
6759 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6761 | (eval $ac_link) 2>conftest.er1 | |
6762 | ac_status=$? | |
6763 | grep -v '^ *+' conftest.er1 >conftest.err | |
6764 | rm -f conftest.er1 | |
6765 | cat conftest.err >&5 | |
6766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6767 | (exit $ac_status); } && | |
121ce6e5 | 6768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6770 | (eval $ac_try) 2>&5 | |
6771 | ac_status=$? | |
6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6773 | (exit $ac_status); }; } && | |
6774 | { ac_try='test -s conftest$ac_exeext' | |
6775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6776 | (eval $ac_try) 2>&5 | |
6777 | ac_status=$? | |
6778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6779 | (exit $ac_status); }; }; then | |
6780 | eval "$as_ac_var=yes" | |
6781 | else | |
6782 | echo "$as_me: failed program was:" >&5 | |
6783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6784 | ||
6785 | eval "$as_ac_var=no" | |
6786 | fi | |
6787 | rm -f conftest.err conftest.$ac_objext \ | |
6788 | conftest$ac_exeext conftest.$ac_ext | |
6789 | fi | |
6790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6791 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6792 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6793 | cat >>confdefs.h <<_ACEOF | |
6794 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6795 | _ACEOF | |
6796 | ||
6797 | fi | |
6798 | done | |
6799 | ||
6800 | echo "$as_me:$LINENO: checking for _etext" >&5 | |
6801 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
6802 | if test "${ac_cv_var__etext+set}" = set; then | |
6803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6804 | else | |
6805 | cat >conftest.$ac_ext <<_ACEOF | |
6806 | /* confdefs.h. */ | |
6807 | _ACEOF | |
6808 | cat confdefs.h >>conftest.$ac_ext | |
6809 | cat >>conftest.$ac_ext <<_ACEOF | |
6810 | /* end confdefs.h. */ | |
6811 | #include <stdlib.h> | |
6812 | extern char _etext; | |
6813 | ||
6814 | int | |
6815 | main () | |
6816 | { | |
6817 | free (&_etext); | |
6818 | ; | |
6819 | return 0; | |
6820 | } | |
6821 | _ACEOF | |
6822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6824 | (eval $ac_link) 2>conftest.er1 | |
6825 | ac_status=$? | |
6826 | grep -v '^ *+' conftest.er1 >conftest.err | |
6827 | rm -f conftest.er1 | |
6828 | cat conftest.err >&5 | |
6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6830 | (exit $ac_status); } && | |
121ce6e5 | 6831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6833 | (eval $ac_try) 2>&5 | |
6834 | ac_status=$? | |
6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6836 | (exit $ac_status); }; } && | |
6837 | { ac_try='test -s conftest$ac_exeext' | |
6838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6839 | (eval $ac_try) 2>&5 | |
6840 | ac_status=$? | |
6841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6842 | (exit $ac_status); }; }; then | |
6843 | ac_cv_var__etext=yes | |
6844 | else | |
6845 | echo "$as_me: failed program was:" >&5 | |
6846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6847 | ||
6848 | ac_cv_var__etext=no | |
6849 | fi | |
6850 | rm -f conftest.err conftest.$ac_objext \ | |
6851 | conftest$ac_exeext conftest.$ac_ext | |
6852 | fi | |
6853 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 | |
6854 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
6855 | if test $ac_cv_var__etext = yes; then | |
6856 | ||
6857 | cat >>confdefs.h <<\_ACEOF | |
6858 | #define HAVE__ETEXT 1 | |
6859 | _ACEOF | |
6860 | ||
6861 | fi | |
6862 | if test "$enable_profiling" = yes ; then | |
6863 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
6864 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
6865 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
6866 | { (exit 1); exit 1; }; } | |
6867 | fi | |
6868 | PROFILE_CFLAGS=-pg | |
6869 | OLD_CFLAGS="$CFLAGS" | |
6870 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
6871 | ||
6872 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 | |
6873 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
6874 | if test "${ac_cv_cc_supports_pg+set}" = set; then | |
6875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6876 | else |
bec39cab AC |
6877 | cat >conftest.$ac_ext <<_ACEOF |
6878 | /* confdefs.h. */ | |
6879 | _ACEOF | |
6880 | cat confdefs.h >>conftest.$ac_ext | |
6881 | cat >>conftest.$ac_ext <<_ACEOF | |
6882 | /* end confdefs.h. */ | |
6883 | ||
6884 | int | |
6885 | main () | |
6886 | { | |
6887 | int x; | |
6888 | ; | |
6889 | return 0; | |
6890 | } | |
6891 | _ACEOF | |
6892 | rm -f conftest.$ac_objext | |
6893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6894 | (eval $ac_compile) 2>conftest.er1 | |
6895 | ac_status=$? | |
6896 | grep -v '^ *+' conftest.er1 >conftest.err | |
6897 | rm -f conftest.er1 | |
6898 | cat conftest.err >&5 | |
6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6900 | (exit $ac_status); } && | |
121ce6e5 | 6901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6903 | (eval $ac_try) 2>&5 | |
6904 | ac_status=$? | |
6905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6906 | (exit $ac_status); }; } && | |
6907 | { ac_try='test -s conftest.$ac_objext' | |
6908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6909 | (eval $ac_try) 2>&5 | |
6910 | ac_status=$? | |
6911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6912 | (exit $ac_status); }; }; then | |
6913 | ac_cv_cc_supports_pg=yes | |
6914 | else | |
6915 | echo "$as_me: failed program was:" >&5 | |
6916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6917 | ||
6918 | ac_cv_cc_supports_pg=no | |
6919 | fi | |
6920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6921 | fi | |
6922 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 | |
6923 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
6924 | ||
6925 | if test $ac_cv_cc_supports_pg = no; then | |
6926 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
6927 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
6928 | { (exit 1); exit 1; }; } | |
6929 | fi | |
6930 | ||
6931 | CFLAGS="$OLD_CFLAGS" | |
6932 | fi | |
6933 | ||
6934 | # --------------------- # | |
6935 | # Checks for programs. # | |
6936 | # --------------------- # | |
6937 | ||
6938 | for ac_prog in gawk mawk nawk awk | |
6939 | do | |
6940 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6941 | set dummy $ac_prog; ac_word=$2 | |
6942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6944 | if test "${ac_cv_prog_AWK+set}" = set; then | |
6945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6946 | else | |
6947 | if test -n "$AWK"; then | |
6948 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
6949 | else | |
6950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6951 | for as_dir in $PATH | |
6952 | do | |
6953 | IFS=$as_save_IFS | |
6954 | test -z "$as_dir" && as_dir=. | |
6955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6957 | ac_cv_prog_AWK="$ac_prog" | |
6958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6959 | break 2 | |
6960 | fi | |
6961 | done | |
6962 | done | |
6963 | ||
6964 | fi | |
6965 | fi | |
6966 | AWK=$ac_cv_prog_AWK | |
6967 | if test -n "$AWK"; then | |
6968 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
6969 | echo "${ECHO_T}$AWK" >&6 | |
6970 | else | |
6971 | echo "$as_me:$LINENO: result: no" >&5 | |
6972 | echo "${ECHO_T}no" >&6 | |
6973 | fi | |
6974 | ||
6975 | test -n "$AWK" && break | |
6976 | done | |
6977 | ||
6978 | # Find a good install program. We prefer a C program (faster), | |
6979 | # so one script is as good as another. But avoid the broken or | |
6980 | # incompatible versions: | |
6981 | # SysV /etc/install, /usr/sbin/install | |
6982 | # SunOS /usr/etc/install | |
6983 | # IRIX /sbin/install | |
6984 | # AIX /bin/install | |
6985 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6986 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6987 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6988 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6989 | # OS/2's system install, which has a completely different semantic | |
6990 | # ./install, which can be erroneously created by make from ./install.sh. | |
6991 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
6992 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
6993 | if test -z "$INSTALL"; then | |
6994 | if test "${ac_cv_path_install+set}" = set; then | |
6995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6996 | else | |
6997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6998 | for as_dir in $PATH | |
6999 | do | |
7000 | IFS=$as_save_IFS | |
7001 | test -z "$as_dir" && as_dir=. | |
7002 | # Account for people who put trailing slashes in PATH elements. | |
7003 | case $as_dir/ in | |
7004 | ./ | .// | /cC/* | \ | |
7005 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
7006 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
7007 | /usr/ucb/* ) ;; | |
c906108c | 7008 | *) |
bec39cab AC |
7009 | # OSF1 and SCO ODT 3.0 have their own names for install. |
7010 | # Don't use installbsd from OSF since it installs stuff as root | |
7011 | # by default. | |
7012 | for ac_prog in ginstall scoinst install; do | |
7013 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7014 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
7015 | if test $ac_prog = install && | |
7016 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7017 | # AIX install. It has an incompatible calling convention. | |
7018 | : | |
7019 | elif test $ac_prog = install && | |
7020 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7021 | # program-specific install script used by HP pwplus--don't use. | |
7022 | : | |
7023 | else | |
7024 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
7025 | break 3 | |
7026 | fi | |
7027 | fi | |
7028 | done | |
7029 | done | |
7030 | ;; | |
c906108c | 7031 | esac |
bec39cab AC |
7032 | done |
7033 | ||
7034 | ||
7035 | fi | |
7036 | if test "${ac_cv_path_install+set}" = set; then | |
7037 | INSTALL=$ac_cv_path_install | |
7038 | else | |
7039 | # As a last resort, use the slow shell script. We don't cache a | |
7040 | # path for INSTALL within a source directory, because that will | |
7041 | # break other packages using the cache if that directory is | |
7042 | # removed, or if the path is relative. | |
7043 | INSTALL=$ac_install_sh | |
7044 | fi | |
7045 | fi | |
7046 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
7047 | echo "${ECHO_T}$INSTALL" >&6 | |
7048 | ||
7049 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
7050 | # It thinks the first close brace ends the variable substitution. | |
7051 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
7052 | ||
7053 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
7054 | ||
7055 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
7056 | ||
7057 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
7058 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
7059 | LN_S=$as_ln_s | |
7060 | if test "$LN_S" = "ln -s"; then | |
7061 | echo "$as_me:$LINENO: result: yes" >&5 | |
7062 | echo "${ECHO_T}yes" >&6 | |
7063 | else | |
7064 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
7065 | echo "${ECHO_T}no, using $LN_S" >&6 | |
7066 | fi | |
7067 | ||
7068 | if test -n "$ac_tool_prefix"; then | |
7069 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7070 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7071 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7073 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
7074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7075 | else | |
7076 | if test -n "$RANLIB"; then | |
7077 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7078 | else | |
7079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7080 | for as_dir in $PATH | |
7081 | do | |
7082 | IFS=$as_save_IFS | |
7083 | test -z "$as_dir" && as_dir=. | |
7084 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7085 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7086 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7088 | break 2 | |
7089 | fi | |
7090 | done | |
7091 | done | |
7092 | ||
7093 | fi | |
7094 | fi | |
7095 | RANLIB=$ac_cv_prog_RANLIB | |
7096 | if test -n "$RANLIB"; then | |
7097 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
7098 | echo "${ECHO_T}$RANLIB" >&6 | |
7099 | else | |
7100 | echo "$as_me:$LINENO: result: no" >&5 | |
7101 | echo "${ECHO_T}no" >&6 | |
7102 | fi | |
7103 | ||
7104 | fi | |
7105 | if test -z "$ac_cv_prog_RANLIB"; then | |
7106 | ac_ct_RANLIB=$RANLIB | |
7107 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7108 | set dummy ranlib; ac_word=$2 | |
7109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7111 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
7112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7113 | else | |
7114 | if test -n "$ac_ct_RANLIB"; then | |
7115 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7116 | else | |
7117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7118 | for as_dir in $PATH | |
7119 | do | |
7120 | IFS=$as_save_IFS | |
7121 | test -z "$as_dir" && as_dir=. | |
7122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7123 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7124 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7126 | break 2 | |
7127 | fi | |
7128 | done | |
7129 | done | |
7130 | ||
7131 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
7132 | fi | |
7133 | fi | |
7134 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7135 | if test -n "$ac_ct_RANLIB"; then | |
7136 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
7137 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
7138 | else | |
7139 | echo "$as_me:$LINENO: result: no" >&5 | |
7140 | echo "${ECHO_T}no" >&6 | |
7141 | fi | |
7142 | ||
7143 | RANLIB=$ac_ct_RANLIB | |
7144 | else | |
7145 | RANLIB="$ac_cv_prog_RANLIB" | |
7146 | fi | |
7147 | ||
7148 | for ac_prog in 'bison -y' byacc | |
7149 | do | |
7150 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7151 | set dummy $ac_prog; ac_word=$2 | |
7152 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7154 | if test "${ac_cv_prog_YACC+set}" = set; then | |
7155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7156 | else | |
7157 | if test -n "$YACC"; then | |
7158 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7159 | else | |
7160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7161 | for as_dir in $PATH | |
7162 | do | |
7163 | IFS=$as_save_IFS | |
7164 | test -z "$as_dir" && as_dir=. | |
7165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7166 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7167 | ac_cv_prog_YACC="$ac_prog" | |
7168 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7169 | break 2 | |
7170 | fi | |
7171 | done | |
7172 | done | |
7173 | ||
7174 | fi | |
7175 | fi | |
7176 | YACC=$ac_cv_prog_YACC | |
7177 | if test -n "$YACC"; then | |
7178 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
7179 | echo "${ECHO_T}$YACC" >&6 | |
7180 | else | |
7181 | echo "$as_me:$LINENO: result: no" >&5 | |
7182 | echo "${ECHO_T}no" >&6 | |
7183 | fi | |
7184 | ||
7185 | test -n "$YACC" && break | |
7186 | done | |
7187 | test -n "$YACC" || YACC="yacc" | |
7188 | ||
7189 | ||
7190 | if test -n "$ac_tool_prefix"; then | |
7191 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7192 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7193 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7195 | if test "${ac_cv_prog_AR+set}" = set; then | |
7196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7197 | else | |
7198 | if test -n "$AR"; then | |
7199 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7200 | else | |
7201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7202 | for as_dir in $PATH | |
7203 | do | |
7204 | IFS=$as_save_IFS | |
7205 | test -z "$as_dir" && as_dir=. | |
7206 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7207 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7208 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
7209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7210 | break 2 | |
7211 | fi | |
7212 | done | |
7213 | done | |
7214 | ||
7215 | fi | |
7216 | fi | |
7217 | AR=$ac_cv_prog_AR | |
7218 | if test -n "$AR"; then | |
7219 | echo "$as_me:$LINENO: result: $AR" >&5 | |
7220 | echo "${ECHO_T}$AR" >&6 | |
7221 | else | |
7222 | echo "$as_me:$LINENO: result: no" >&5 | |
7223 | echo "${ECHO_T}no" >&6 | |
7224 | fi | |
7225 | ||
7226 | fi | |
7227 | if test -z "$ac_cv_prog_AR"; then | |
7228 | ac_ct_AR=$AR | |
7229 | # Extract the first word of "ar", so it can be a program name with args. | |
7230 | set dummy ar; ac_word=$2 | |
7231 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7233 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
7234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7235 | else | |
7236 | if test -n "$ac_ct_AR"; then | |
7237 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7238 | else | |
7239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7240 | for as_dir in $PATH | |
7241 | do | |
7242 | IFS=$as_save_IFS | |
7243 | test -z "$as_dir" && as_dir=. | |
7244 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7245 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7246 | ac_cv_prog_ac_ct_AR="ar" | |
7247 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7248 | break 2 | |
7249 | fi | |
7250 | done | |
7251 | done | |
7252 | ||
7253 | fi | |
7254 | fi | |
7255 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7256 | if test -n "$ac_ct_AR"; then | |
7257 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
7258 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
7259 | else | |
7260 | echo "$as_me:$LINENO: result: no" >&5 | |
7261 | echo "${ECHO_T}no" >&6 | |
7262 | fi | |
7263 | ||
7264 | AR=$ac_ct_AR | |
7265 | else | |
7266 | AR="$ac_cv_prog_AR" | |
7267 | fi | |
7268 | ||
7269 | if test -n "$ac_tool_prefix"; then | |
7270 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
7271 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
7272 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7274 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
7275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7276 | else | |
7277 | if test -n "$DLLTOOL"; then | |
7278 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7279 | else | |
7280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7281 | for as_dir in $PATH | |
7282 | do | |
7283 | IFS=$as_save_IFS | |
7284 | test -z "$as_dir" && as_dir=. | |
7285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7286 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7287 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
7288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7289 | break 2 | |
7290 | fi | |
7291 | done | |
7292 | done | |
7293 | ||
7294 | fi | |
7295 | fi | |
7296 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
7297 | if test -n "$DLLTOOL"; then | |
7298 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
7299 | echo "${ECHO_T}$DLLTOOL" >&6 | |
7300 | else | |
7301 | echo "$as_me:$LINENO: result: no" >&5 | |
7302 | echo "${ECHO_T}no" >&6 | |
7303 | fi | |
7304 | ||
7305 | fi | |
7306 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
7307 | ac_ct_DLLTOOL=$DLLTOOL | |
7308 | # Extract the first word of "dlltool", so it can be a program name with args. | |
7309 | set dummy dlltool; ac_word=$2 | |
7310 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7312 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7314 | else | |
7315 | if test -n "$ac_ct_DLLTOOL"; then | |
7316 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
7317 | else | |
7318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7319 | for as_dir in $PATH | |
7320 | do | |
7321 | IFS=$as_save_IFS | |
7322 | test -z "$as_dir" && as_dir=. | |
7323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7325 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
7326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7327 | break 2 | |
7328 | fi | |
7329 | done | |
7330 | done | |
7331 | ||
7332 | fi | |
7333 | fi | |
7334 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
7335 | if test -n "$ac_ct_DLLTOOL"; then | |
7336 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
7337 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
7338 | else | |
7339 | echo "$as_me:$LINENO: result: no" >&5 | |
7340 | echo "${ECHO_T}no" >&6 | |
7341 | fi | |
7342 | ||
7343 | DLLTOOL=$ac_ct_DLLTOOL | |
7344 | else | |
7345 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
7346 | fi | |
7347 | ||
7348 | if test -n "$ac_tool_prefix"; then | |
7349 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
7350 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
7351 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7353 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
7354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7355 | else | |
7356 | if test -n "$WINDRES"; then | |
7357 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7358 | else | |
7359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7360 | for as_dir in $PATH | |
7361 | do | |
7362 | IFS=$as_save_IFS | |
7363 | test -z "$as_dir" && as_dir=. | |
7364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7365 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7366 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
7367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7368 | break 2 | |
7369 | fi | |
7370 | done | |
7371 | done | |
7372 | ||
7373 | fi | |
7374 | fi | |
7375 | WINDRES=$ac_cv_prog_WINDRES | |
7376 | if test -n "$WINDRES"; then | |
7377 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
7378 | echo "${ECHO_T}$WINDRES" >&6 | |
7379 | else | |
7380 | echo "$as_me:$LINENO: result: no" >&5 | |
7381 | echo "${ECHO_T}no" >&6 | |
7382 | fi | |
7383 | ||
7384 | fi | |
7385 | if test -z "$ac_cv_prog_WINDRES"; then | |
7386 | ac_ct_WINDRES=$WINDRES | |
7387 | # Extract the first word of "windres", so it can be a program name with args. | |
7388 | set dummy windres; ac_word=$2 | |
7389 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7391 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
7392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7393 | else | |
7394 | if test -n "$ac_ct_WINDRES"; then | |
7395 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
7396 | else | |
7397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7398 | for as_dir in $PATH | |
7399 | do | |
7400 | IFS=$as_save_IFS | |
7401 | test -z "$as_dir" && as_dir=. | |
7402 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7403 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7404 | ac_cv_prog_ac_ct_WINDRES="windres" | |
7405 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7406 | break 2 | |
7407 | fi | |
7408 | done | |
7409 | done | |
7410 | ||
7411 | fi | |
7412 | fi | |
7413 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
7414 | if test -n "$ac_ct_WINDRES"; then | |
7415 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
7416 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
7417 | else | |
7418 | echo "$as_me:$LINENO: result: no" >&5 | |
7419 | echo "${ECHO_T}no" >&6 | |
c906108c | 7420 | fi |
bec39cab AC |
7421 | |
7422 | WINDRES=$ac_ct_WINDRES | |
c906108c | 7423 | else |
bec39cab | 7424 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
7425 | fi |
7426 | ||
bec39cab AC |
7427 | |
7428 | # Needed for GNU/Hurd. | |
7429 | if test -n "$ac_tool_prefix"; then | |
7430 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
7431 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
7432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7434 | if test "${ac_cv_prog_MIG+set}" = set; then | |
7435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7436 | else |
bec39cab AC |
7437 | if test -n "$MIG"; then |
7438 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
7439 | else | |
7440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7441 | for as_dir in $PATH | |
7442 | do | |
7443 | IFS=$as_save_IFS | |
7444 | test -z "$as_dir" && as_dir=. | |
7445 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7447 | ac_cv_prog_MIG="${ac_tool_prefix}mig" | |
7448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7449 | break 2 | |
7450 | fi | |
7451 | done | |
7452 | done | |
7453 | ||
c906108c | 7454 | fi |
bec39cab AC |
7455 | fi |
7456 | MIG=$ac_cv_prog_MIG | |
7457 | if test -n "$MIG"; then | |
7458 | echo "$as_me:$LINENO: result: $MIG" >&5 | |
7459 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 7460 | else |
bec39cab AC |
7461 | echo "$as_me:$LINENO: result: no" >&5 |
7462 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
7463 | fi |
7464 | ||
bec39cab AC |
7465 | fi |
7466 | if test -z "$ac_cv_prog_MIG"; then | |
7467 | ac_ct_MIG=$MIG | |
7468 | # Extract the first word of "mig", so it can be a program name with args. | |
7469 | set dummy mig; ac_word=$2 | |
7470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7472 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then | |
7473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7474 | else | |
7475 | if test -n "$ac_ct_MIG"; then | |
7476 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
7477 | else | |
7478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7479 | for as_dir in $PATH | |
7480 | do | |
7481 | IFS=$as_save_IFS | |
7482 | test -z "$as_dir" && as_dir=. | |
7483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7485 | ac_cv_prog_ac_ct_MIG="mig" | |
7486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7487 | break 2 | |
7488 | fi | |
7489 | done | |
7490 | done | |
c906108c | 7491 | |
bec39cab AC |
7492 | fi |
7493 | fi | |
7494 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
7495 | if test -n "$ac_ct_MIG"; then | |
7496 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 | |
7497 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
7498 | else | |
7499 | echo "$as_me:$LINENO: result: no" >&5 | |
7500 | echo "${ECHO_T}no" >&6 | |
7501 | fi | |
c906108c | 7502 | |
bec39cab AC |
7503 | MIG=$ac_ct_MIG |
7504 | else | |
7505 | MIG="$ac_cv_prog_MIG" | |
7506 | fi | |
c906108c | 7507 | |
c906108c | 7508 | |
bec39cab AC |
7509 | # ---------------------- # |
7510 | # Checks for libraries. # | |
7511 | # ---------------------- # | |
c906108c | 7512 | |
bec39cab | 7513 | # We might need to link with -lm; most simulators need it. |
c906108c | 7514 | |
bec39cab AC |
7515 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
7516 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
7517 | if test "${ac_cv_lib_m_main+set}" = set; then | |
7518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7519 | else | |
7520 | ac_check_lib_save_LIBS=$LIBS | |
7521 | LIBS="-lm $LIBS" | |
7522 | cat >conftest.$ac_ext <<_ACEOF | |
7523 | /* confdefs.h. */ | |
7524 | _ACEOF | |
7525 | cat confdefs.h >>conftest.$ac_ext | |
7526 | cat >>conftest.$ac_ext <<_ACEOF | |
7527 | /* end confdefs.h. */ | |
c906108c | 7528 | |
c906108c | 7529 | |
bec39cab AC |
7530 | int |
7531 | main () | |
7532 | { | |
7533 | main (); | |
7534 | ; | |
7535 | return 0; | |
7536 | } | |
7537 | _ACEOF | |
7538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7540 | (eval $ac_link) 2>conftest.er1 | |
7541 | ac_status=$? | |
7542 | grep -v '^ *+' conftest.er1 >conftest.err | |
7543 | rm -f conftest.er1 | |
7544 | cat conftest.err >&5 | |
7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7546 | (exit $ac_status); } && | |
121ce6e5 | 7547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7549 | (eval $ac_try) 2>&5 | |
7550 | ac_status=$? | |
7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7552 | (exit $ac_status); }; } && | |
7553 | { ac_try='test -s conftest$ac_exeext' | |
7554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7555 | (eval $ac_try) 2>&5 | |
7556 | ac_status=$? | |
7557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7558 | (exit $ac_status); }; }; then | |
7559 | ac_cv_lib_m_main=yes | |
7560 | else | |
7561 | echo "$as_me: failed program was:" >&5 | |
7562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7563 | ||
7564 | ac_cv_lib_m_main=no | |
7565 | fi | |
7566 | rm -f conftest.err conftest.$ac_objext \ | |
7567 | conftest$ac_exeext conftest.$ac_ext | |
7568 | LIBS=$ac_check_lib_save_LIBS | |
7569 | fi | |
7570 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | |
7571 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
7572 | if test $ac_cv_lib_m_main = yes; then | |
7573 | cat >>confdefs.h <<_ACEOF | |
7574 | #define HAVE_LIBM 1 | |
7575 | _ACEOF | |
7576 | ||
7577 | LIBS="-lm $LIBS" | |
c906108c | 7578 | |
c906108c | 7579 | fi |
bec39cab AC |
7580 | |
7581 | ||
7582 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
7583 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
7584 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
7585 | # is known to have this problem). Therefore we avoid libw if we can. | |
7586 | echo "$as_me:$LINENO: checking for wctype" >&5 | |
7587 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
7588 | if test "${ac_cv_func_wctype+set}" = set; then | |
7589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7590 | else | |
7591 | cat >conftest.$ac_ext <<_ACEOF | |
7592 | /* confdefs.h. */ | |
7593 | _ACEOF | |
7594 | cat confdefs.h >>conftest.$ac_ext | |
7595 | cat >>conftest.$ac_ext <<_ACEOF | |
7596 | /* end confdefs.h. */ | |
7597 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
7598 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7599 | #define wctype innocuous_wctype | |
7600 | ||
7601 | /* System header to define __stub macros and hopefully few prototypes, | |
7602 | which can conflict with char wctype (); below. | |
7603 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7604 | <limits.h> exists even on freestanding compilers. */ | |
7605 | ||
7606 | #ifdef __STDC__ | |
7607 | # include <limits.h> | |
7608 | #else | |
7609 | # include <assert.h> | |
7610 | #endif | |
7611 | ||
7612 | #undef wctype | |
7613 | ||
7614 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7615 | #ifdef __cplusplus | |
7616 | extern "C" | |
7617 | { | |
7618 | #endif | |
7619 | /* We use char because int might match the return type of a gcc2 | |
7620 | builtin and then its argument prototype would still apply. */ | |
7621 | char wctype (); | |
7622 | /* The GNU C library defines this for functions which it implements | |
7623 | to always fail with ENOSYS. Some functions are actually named | |
7624 | something starting with __ and the normal name is an alias. */ | |
7625 | #if defined (__stub_wctype) || defined (__stub___wctype) | |
7626 | choke me | |
7627 | #else | |
7628 | char (*f) () = wctype; | |
7629 | #endif | |
7630 | #ifdef __cplusplus | |
7631 | } | |
7632 | #endif | |
7633 | ||
7634 | int | |
7635 | main () | |
7636 | { | |
7637 | return f != wctype; | |
7638 | ; | |
7639 | return 0; | |
7640 | } | |
7641 | _ACEOF | |
7642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7644 | (eval $ac_link) 2>conftest.er1 | |
7645 | ac_status=$? | |
7646 | grep -v '^ *+' conftest.er1 >conftest.err | |
7647 | rm -f conftest.er1 | |
7648 | cat conftest.err >&5 | |
7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7650 | (exit $ac_status); } && | |
121ce6e5 | 7651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7653 | (eval $ac_try) 2>&5 | |
7654 | ac_status=$? | |
7655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7656 | (exit $ac_status); }; } && | |
7657 | { ac_try='test -s conftest$ac_exeext' | |
7658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7659 | (eval $ac_try) 2>&5 | |
7660 | ac_status=$? | |
7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7662 | (exit $ac_status); }; }; then | |
7663 | ac_cv_func_wctype=yes | |
7664 | else | |
7665 | echo "$as_me: failed program was:" >&5 | |
7666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7667 | ||
7668 | ac_cv_func_wctype=no | |
7669 | fi | |
7670 | rm -f conftest.err conftest.$ac_objext \ | |
7671 | conftest$ac_exeext conftest.$ac_ext | |
7672 | fi | |
7673 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 | |
7674 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
7675 | if test $ac_cv_func_wctype = yes; then | |
7676 | : | |
c906108c | 7677 | else |
c906108c | 7678 | |
bec39cab AC |
7679 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
7680 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
7681 | if test "${ac_cv_lib_w_wctype+set}" = set; then | |
7682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7683 | else | |
7684 | ac_check_lib_save_LIBS=$LIBS | |
7685 | LIBS="-lw $LIBS" | |
7686 | cat >conftest.$ac_ext <<_ACEOF | |
7687 | /* confdefs.h. */ | |
7688 | _ACEOF | |
7689 | cat confdefs.h >>conftest.$ac_ext | |
7690 | cat >>conftest.$ac_ext <<_ACEOF | |
7691 | /* end confdefs.h. */ | |
c906108c | 7692 | |
bec39cab AC |
7693 | /* Override any gcc2 internal prototype to avoid an error. */ |
7694 | #ifdef __cplusplus | |
7695 | extern "C" | |
7696 | #endif | |
7697 | /* We use char because int might match the return type of a gcc2 | |
7698 | builtin and then its argument prototype would still apply. */ | |
7699 | char wctype (); | |
7700 | int | |
7701 | main () | |
7702 | { | |
7703 | wctype (); | |
7704 | ; | |
7705 | return 0; | |
7706 | } | |
7707 | _ACEOF | |
7708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7710 | (eval $ac_link) 2>conftest.er1 | |
7711 | ac_status=$? | |
7712 | grep -v '^ *+' conftest.er1 >conftest.err | |
7713 | rm -f conftest.er1 | |
7714 | cat conftest.err >&5 | |
7715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7716 | (exit $ac_status); } && | |
121ce6e5 | 7717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7719 | (eval $ac_try) 2>&5 | |
7720 | ac_status=$? | |
7721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7722 | (exit $ac_status); }; } && | |
7723 | { ac_try='test -s conftest$ac_exeext' | |
7724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7725 | (eval $ac_try) 2>&5 | |
7726 | ac_status=$? | |
7727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7728 | (exit $ac_status); }; }; then | |
7729 | ac_cv_lib_w_wctype=yes | |
7730 | else | |
7731 | echo "$as_me: failed program was:" >&5 | |
7732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7733 | ||
7734 | ac_cv_lib_w_wctype=no | |
7735 | fi | |
7736 | rm -f conftest.err conftest.$ac_objext \ | |
7737 | conftest$ac_exeext conftest.$ac_ext | |
7738 | LIBS=$ac_check_lib_save_LIBS | |
7739 | fi | |
7740 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 | |
7741 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
7742 | if test $ac_cv_lib_w_wctype = yes; then | |
7743 | cat >>confdefs.h <<_ACEOF | |
7744 | #define HAVE_LIBW 1 | |
7745 | _ACEOF | |
c906108c | 7746 | |
bec39cab | 7747 | LIBS="-lw $LIBS" |
c906108c | 7748 | |
bec39cab | 7749 | fi |
c906108c | 7750 | |
bec39cab | 7751 | fi |
c906108c | 7752 | |
ddc9cd0f | 7753 | |
bec39cab AC |
7754 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
7755 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 | |
7756 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
7757 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
7758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7759 | else | |
7760 | ac_func_search_save_LIBS=$LIBS | |
7761 | ac_cv_search_gethostbyname=no | |
7762 | cat >conftest.$ac_ext <<_ACEOF | |
7763 | /* confdefs.h. */ | |
7764 | _ACEOF | |
7765 | cat confdefs.h >>conftest.$ac_ext | |
7766 | cat >>conftest.$ac_ext <<_ACEOF | |
7767 | /* end confdefs.h. */ | |
ddc9cd0f | 7768 | |
bec39cab AC |
7769 | /* Override any gcc2 internal prototype to avoid an error. */ |
7770 | #ifdef __cplusplus | |
7771 | extern "C" | |
7772 | #endif | |
7773 | /* We use char because int might match the return type of a gcc2 | |
7774 | builtin and then its argument prototype would still apply. */ | |
7775 | char gethostbyname (); | |
7776 | int | |
7777 | main () | |
7778 | { | |
7779 | gethostbyname (); | |
7780 | ; | |
7781 | return 0; | |
7782 | } | |
7783 | _ACEOF | |
7784 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7786 | (eval $ac_link) 2>conftest.er1 | |
7787 | ac_status=$? | |
7788 | grep -v '^ *+' conftest.er1 >conftest.err | |
7789 | rm -f conftest.er1 | |
7790 | cat conftest.err >&5 | |
7791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7792 | (exit $ac_status); } && | |
121ce6e5 | 7793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7795 | (eval $ac_try) 2>&5 | |
7796 | ac_status=$? | |
7797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7798 | (exit $ac_status); }; } && | |
7799 | { ac_try='test -s conftest$ac_exeext' | |
7800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7801 | (eval $ac_try) 2>&5 | |
7802 | ac_status=$? | |
7803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7804 | (exit $ac_status); }; }; then | |
7805 | ac_cv_search_gethostbyname="none required" | |
7806 | else | |
7807 | echo "$as_me: failed program was:" >&5 | |
7808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 7809 | |
bec39cab AC |
7810 | fi |
7811 | rm -f conftest.err conftest.$ac_objext \ | |
7812 | conftest$ac_exeext conftest.$ac_ext | |
7813 | if test "$ac_cv_search_gethostbyname" = no; then | |
7814 | for ac_lib in nsl; do | |
7815 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7816 | cat >conftest.$ac_ext <<_ACEOF | |
7817 | /* confdefs.h. */ | |
7818 | _ACEOF | |
7819 | cat confdefs.h >>conftest.$ac_ext | |
7820 | cat >>conftest.$ac_ext <<_ACEOF | |
7821 | /* end confdefs.h. */ | |
ddc9cd0f | 7822 | |
bec39cab AC |
7823 | /* Override any gcc2 internal prototype to avoid an error. */ |
7824 | #ifdef __cplusplus | |
7825 | extern "C" | |
7826 | #endif | |
7827 | /* We use char because int might match the return type of a gcc2 | |
7828 | builtin and then its argument prototype would still apply. */ | |
7829 | char gethostbyname (); | |
7830 | int | |
7831 | main () | |
7832 | { | |
7833 | gethostbyname (); | |
7834 | ; | |
7835 | return 0; | |
7836 | } | |
7837 | _ACEOF | |
7838 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7840 | (eval $ac_link) 2>conftest.er1 | |
7841 | ac_status=$? | |
7842 | grep -v '^ *+' conftest.er1 >conftest.err | |
7843 | rm -f conftest.er1 | |
7844 | cat conftest.err >&5 | |
7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7846 | (exit $ac_status); } && | |
121ce6e5 | 7847 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7849 | (eval $ac_try) 2>&5 | |
7850 | ac_status=$? | |
7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7852 | (exit $ac_status); }; } && | |
7853 | { ac_try='test -s conftest$ac_exeext' | |
7854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7855 | (eval $ac_try) 2>&5 | |
7856 | ac_status=$? | |
7857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7858 | (exit $ac_status); }; }; then | |
7859 | ac_cv_search_gethostbyname="-l$ac_lib" | |
7860 | break | |
7861 | else | |
7862 | echo "$as_me: failed program was:" >&5 | |
7863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7864 | ||
7865 | fi | |
7866 | rm -f conftest.err conftest.$ac_objext \ | |
7867 | conftest$ac_exeext conftest.$ac_ext | |
ddc9cd0f | 7868 | done |
bec39cab AC |
7869 | fi |
7870 | LIBS=$ac_func_search_save_LIBS | |
7871 | fi | |
7872 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | |
7873 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
7874 | if test "$ac_cv_search_gethostbyname" != no; then | |
7875 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
ddc9cd0f | 7876 | |
ddc9cd0f AC |
7877 | fi |
7878 | ||
0fbb3da7 | 7879 | |
bec39cab AC |
7880 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
7881 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
7882 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
7883 | if test "${ac_cv_search_socketpair+set}" = set; then | |
7884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7885 | else | |
7886 | ac_func_search_save_LIBS=$LIBS | |
7887 | ac_cv_search_socketpair=no | |
7888 | cat >conftest.$ac_ext <<_ACEOF | |
7889 | /* confdefs.h. */ | |
7890 | _ACEOF | |
7891 | cat confdefs.h >>conftest.$ac_ext | |
7892 | cat >>conftest.$ac_ext <<_ACEOF | |
7893 | /* end confdefs.h. */ | |
0fbb3da7 | 7894 | |
bec39cab AC |
7895 | /* Override any gcc2 internal prototype to avoid an error. */ |
7896 | #ifdef __cplusplus | |
7897 | extern "C" | |
7898 | #endif | |
7899 | /* We use char because int might match the return type of a gcc2 | |
7900 | builtin and then its argument prototype would still apply. */ | |
7901 | char socketpair (); | |
7902 | int | |
7903 | main () | |
7904 | { | |
7905 | socketpair (); | |
7906 | ; | |
7907 | return 0; | |
7908 | } | |
7909 | _ACEOF | |
7910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7912 | (eval $ac_link) 2>conftest.er1 | |
7913 | ac_status=$? | |
7914 | grep -v '^ *+' conftest.er1 >conftest.err | |
7915 | rm -f conftest.er1 | |
7916 | cat conftest.err >&5 | |
7917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7918 | (exit $ac_status); } && | |
121ce6e5 | 7919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7921 | (eval $ac_try) 2>&5 | |
7922 | ac_status=$? | |
7923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7924 | (exit $ac_status); }; } && | |
7925 | { ac_try='test -s conftest$ac_exeext' | |
7926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7927 | (eval $ac_try) 2>&5 | |
7928 | ac_status=$? | |
7929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7930 | (exit $ac_status); }; }; then | |
7931 | ac_cv_search_socketpair="none required" | |
7932 | else | |
7933 | echo "$as_me: failed program was:" >&5 | |
7934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 7935 | |
5b5d99cf | 7936 | fi |
bec39cab AC |
7937 | rm -f conftest.err conftest.$ac_objext \ |
7938 | conftest$ac_exeext conftest.$ac_ext | |
7939 | if test "$ac_cv_search_socketpair" = no; then | |
7940 | for ac_lib in socket; do | |
7941 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7942 | cat >conftest.$ac_ext <<_ACEOF | |
7943 | /* confdefs.h. */ | |
7944 | _ACEOF | |
7945 | cat confdefs.h >>conftest.$ac_ext | |
7946 | cat >>conftest.$ac_ext <<_ACEOF | |
7947 | /* end confdefs.h. */ | |
5b5d99cf | 7948 | |
bec39cab AC |
7949 | /* Override any gcc2 internal prototype to avoid an error. */ |
7950 | #ifdef __cplusplus | |
7951 | extern "C" | |
7952 | #endif | |
7953 | /* We use char because int might match the return type of a gcc2 | |
7954 | builtin and then its argument prototype would still apply. */ | |
7955 | char socketpair (); | |
7956 | int | |
7957 | main () | |
7958 | { | |
7959 | socketpair (); | |
7960 | ; | |
7961 | return 0; | |
7962 | } | |
7963 | _ACEOF | |
7964 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7966 | (eval $ac_link) 2>conftest.er1 | |
7967 | ac_status=$? | |
7968 | grep -v '^ *+' conftest.er1 >conftest.err | |
7969 | rm -f conftest.er1 | |
7970 | cat conftest.err >&5 | |
7971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7972 | (exit $ac_status); } && | |
121ce6e5 | 7973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7975 | (eval $ac_try) 2>&5 | |
7976 | ac_status=$? | |
7977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7978 | (exit $ac_status); }; } && | |
7979 | { ac_try='test -s conftest$ac_exeext' | |
7980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7981 | (eval $ac_try) 2>&5 | |
7982 | ac_status=$? | |
7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7984 | (exit $ac_status); }; }; then | |
7985 | ac_cv_search_socketpair="-l$ac_lib" | |
7986 | break | |
7987 | else | |
7988 | echo "$as_me: failed program was:" >&5 | |
7989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 7990 | |
bec39cab AC |
7991 | fi |
7992 | rm -f conftest.err conftest.$ac_objext \ | |
7993 | conftest$ac_exeext conftest.$ac_ext | |
7994 | done | |
7995 | fi | |
7996 | LIBS=$ac_func_search_save_LIBS | |
7997 | fi | |
7998 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
7999 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
8000 | if test "$ac_cv_search_socketpair" != no; then | |
8001 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
96baa820 | 8002 | |
bec39cab | 8003 | fi |
96baa820 | 8004 | |
c906108c | 8005 | |
bec39cab AC |
8006 | # For the TUI, we need enhanced curses functionality. |
8007 | # | |
8008 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
8009 | # curses library because the latter might not provide all the | |
8010 | # functionality we need. However, this leads to problems on systems | |
8011 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
8012 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
8013 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
8014 | # a situation. | |
8015 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 | |
8016 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
8017 | if test "${ac_cv_search_waddstr+set}" = set; then | |
8018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8019 | else | |
8020 | ac_func_search_save_LIBS=$LIBS | |
8021 | ac_cv_search_waddstr=no | |
8022 | cat >conftest.$ac_ext <<_ACEOF | |
8023 | /* confdefs.h. */ | |
8024 | _ACEOF | |
8025 | cat confdefs.h >>conftest.$ac_ext | |
8026 | cat >>conftest.$ac_ext <<_ACEOF | |
8027 | /* end confdefs.h. */ | |
c906108c | 8028 | |
bec39cab AC |
8029 | /* Override any gcc2 internal prototype to avoid an error. */ |
8030 | #ifdef __cplusplus | |
8031 | extern "C" | |
8032 | #endif | |
8033 | /* We use char because int might match the return type of a gcc2 | |
8034 | builtin and then its argument prototype would still apply. */ | |
8035 | char waddstr (); | |
8036 | int | |
8037 | main () | |
8038 | { | |
8039 | waddstr (); | |
8040 | ; | |
8041 | return 0; | |
8042 | } | |
8043 | _ACEOF | |
8044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8046 | (eval $ac_link) 2>conftest.er1 | |
8047 | ac_status=$? | |
8048 | grep -v '^ *+' conftest.er1 >conftest.err | |
8049 | rm -f conftest.er1 | |
8050 | cat conftest.err >&5 | |
8051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8052 | (exit $ac_status); } && | |
121ce6e5 | 8053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8055 | (eval $ac_try) 2>&5 | |
8056 | ac_status=$? | |
8057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8058 | (exit $ac_status); }; } && | |
8059 | { ac_try='test -s conftest$ac_exeext' | |
8060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8061 | (eval $ac_try) 2>&5 | |
8062 | ac_status=$? | |
8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8064 | (exit $ac_status); }; }; then | |
8065 | ac_cv_search_waddstr="none required" | |
8066 | else | |
8067 | echo "$as_me: failed program was:" >&5 | |
8068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8069 | |
bec39cab AC |
8070 | fi |
8071 | rm -f conftest.err conftest.$ac_objext \ | |
8072 | conftest$ac_exeext conftest.$ac_ext | |
8073 | if test "$ac_cv_search_waddstr" = no; then | |
8074 | for ac_lib in ncurses cursesX curses; do | |
8075 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8076 | cat >conftest.$ac_ext <<_ACEOF | |
8077 | /* confdefs.h. */ | |
8078 | _ACEOF | |
8079 | cat confdefs.h >>conftest.$ac_ext | |
8080 | cat >>conftest.$ac_ext <<_ACEOF | |
8081 | /* end confdefs.h. */ | |
1ba607ad | 8082 | |
bec39cab AC |
8083 | /* Override any gcc2 internal prototype to avoid an error. */ |
8084 | #ifdef __cplusplus | |
8085 | extern "C" | |
8086 | #endif | |
8087 | /* We use char because int might match the return type of a gcc2 | |
8088 | builtin and then its argument prototype would still apply. */ | |
8089 | char waddstr (); | |
8090 | int | |
8091 | main () | |
8092 | { | |
8093 | waddstr (); | |
8094 | ; | |
8095 | return 0; | |
8096 | } | |
8097 | _ACEOF | |
8098 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8100 | (eval $ac_link) 2>conftest.er1 | |
8101 | ac_status=$? | |
8102 | grep -v '^ *+' conftest.er1 >conftest.err | |
8103 | rm -f conftest.er1 | |
8104 | cat conftest.err >&5 | |
8105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8106 | (exit $ac_status); } && | |
121ce6e5 | 8107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8109 | (eval $ac_try) 2>&5 | |
8110 | ac_status=$? | |
8111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8112 | (exit $ac_status); }; } && | |
8113 | { ac_try='test -s conftest$ac_exeext' | |
8114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8115 | (eval $ac_try) 2>&5 | |
8116 | ac_status=$? | |
8117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8118 | (exit $ac_status); }; }; then | |
8119 | ac_cv_search_waddstr="-l$ac_lib" | |
8120 | break | |
8121 | else | |
8122 | echo "$as_me: failed program was:" >&5 | |
8123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
8124 | |
8125 | fi | |
bec39cab AC |
8126 | rm -f conftest.err conftest.$ac_objext \ |
8127 | conftest$ac_exeext conftest.$ac_ext | |
8128 | done | |
1ba607ad | 8129 | fi |
bec39cab AC |
8130 | LIBS=$ac_func_search_save_LIBS |
8131 | fi | |
8132 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 | |
8133 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
8134 | if test "$ac_cv_search_waddstr" != no; then | |
8135 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 8136 | |
8bb2c122 | 8137 | fi |
8bb2c122 | 8138 | |
8bb2c122 | 8139 | |
bec39cab AC |
8140 | # Since GDB uses Readline, we need termcap functionality. In many |
8141 | # cases this will be provided by the curses library, but some systems | |
8142 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 8143 | |
bec39cab AC |
8144 | case $host_os in |
8145 | cygwin*) | |
8146 | if test -d $srcdir/libtermcap; then | |
8147 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
8148 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
8149 | fi ;; | |
8150 | go32* | *djgpp*) | |
8151 | ac_cv_search_tgetent="none required" | |
8152 | ;; | |
7ef34f2c MM |
8153 | *mingw32*) |
8154 | ac_cv_search_tgetent="none required" | |
8155 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
8156 | ;; | |
bec39cab | 8157 | esac |
627af7ea | 8158 | |
bec39cab AC |
8159 | # These are the libraries checked by Readline. |
8160 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
8161 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
8162 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8164 | else | |
8165 | ac_func_search_save_LIBS=$LIBS | |
8166 | ac_cv_search_tgetent=no | |
8167 | cat >conftest.$ac_ext <<_ACEOF | |
8168 | /* confdefs.h. */ | |
8169 | _ACEOF | |
8170 | cat confdefs.h >>conftest.$ac_ext | |
8171 | cat >>conftest.$ac_ext <<_ACEOF | |
8172 | /* end confdefs.h. */ | |
8173 | ||
8174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8175 | #ifdef __cplusplus | |
8176 | extern "C" | |
8177 | #endif | |
8178 | /* We use char because int might match the return type of a gcc2 | |
8179 | builtin and then its argument prototype would still apply. */ | |
8180 | char tgetent (); | |
8181 | int | |
8182 | main () | |
8183 | { | |
8184 | tgetent (); | |
8185 | ; | |
8186 | return 0; | |
8187 | } | |
8188 | _ACEOF | |
8189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8191 | (eval $ac_link) 2>conftest.er1 | |
8192 | ac_status=$? | |
8193 | grep -v '^ *+' conftest.er1 >conftest.err | |
8194 | rm -f conftest.er1 | |
8195 | cat conftest.err >&5 | |
8196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8197 | (exit $ac_status); } && | |
121ce6e5 | 8198 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8200 | (eval $ac_try) 2>&5 | |
8201 | ac_status=$? | |
8202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8203 | (exit $ac_status); }; } && | |
8204 | { ac_try='test -s conftest$ac_exeext' | |
8205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8206 | (eval $ac_try) 2>&5 | |
8207 | ac_status=$? | |
8208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8209 | (exit $ac_status); }; }; then | |
8210 | ac_cv_search_tgetent="none required" | |
627af7ea | 8211 | else |
bec39cab AC |
8212 | echo "$as_me: failed program was:" >&5 |
8213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 8214 | |
627af7ea | 8215 | fi |
bec39cab AC |
8216 | rm -f conftest.err conftest.$ac_objext \ |
8217 | conftest$ac_exeext conftest.$ac_ext | |
8218 | if test "$ac_cv_search_tgetent" = no; then | |
8219 | for ac_lib in termcap tinfo curses ncurses; do | |
8220 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8221 | cat >conftest.$ac_ext <<_ACEOF | |
8222 | /* confdefs.h. */ | |
8223 | _ACEOF | |
8224 | cat confdefs.h >>conftest.$ac_ext | |
8225 | cat >>conftest.$ac_ext <<_ACEOF | |
8226 | /* end confdefs.h. */ | |
627af7ea | 8227 | |
bec39cab AC |
8228 | /* Override any gcc2 internal prototype to avoid an error. */ |
8229 | #ifdef __cplusplus | |
8230 | extern "C" | |
8231 | #endif | |
8232 | /* We use char because int might match the return type of a gcc2 | |
8233 | builtin and then its argument prototype would still apply. */ | |
8234 | char tgetent (); | |
8235 | int | |
8236 | main () | |
8237 | { | |
8238 | tgetent (); | |
8239 | ; | |
8240 | return 0; | |
8241 | } | |
8242 | _ACEOF | |
8243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8245 | (eval $ac_link) 2>conftest.er1 | |
8246 | ac_status=$? | |
8247 | grep -v '^ *+' conftest.er1 >conftest.err | |
8248 | rm -f conftest.er1 | |
8249 | cat conftest.err >&5 | |
8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8251 | (exit $ac_status); } && | |
121ce6e5 | 8252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8254 | (eval $ac_try) 2>&5 | |
8255 | ac_status=$? | |
8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8257 | (exit $ac_status); }; } && | |
8258 | { ac_try='test -s conftest$ac_exeext' | |
8259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8260 | (eval $ac_try) 2>&5 | |
8261 | ac_status=$? | |
8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8263 | (exit $ac_status); }; }; then | |
8264 | ac_cv_search_tgetent="-l$ac_lib" | |
8265 | break | |
627af7ea | 8266 | else |
bec39cab AC |
8267 | echo "$as_me: failed program was:" >&5 |
8268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 8269 | |
627af7ea | 8270 | fi |
bec39cab AC |
8271 | rm -f conftest.err conftest.$ac_objext \ |
8272 | conftest$ac_exeext conftest.$ac_ext | |
8273 | done | |
8274 | fi | |
8275 | LIBS=$ac_func_search_save_LIBS | |
8276 | fi | |
8277 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
8278 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
8279 | if test "$ac_cv_search_tgetent" != no; then | |
8280 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 8281 | |
06825bd1 MK |
8282 | fi |
8283 | ||
06825bd1 | 8284 | |
bec39cab AC |
8285 | if test "$ac_cv_search_tgetent" = no; then |
8286 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
8287 | echo "$as_me: error: no termcap library found" >&2;} | |
8288 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
8289 | fi |
8290 | ||
bec39cab AC |
8291 | # ------------------------- # |
8292 | # Checks for header files. # | |
8293 | # ------------------------- # | |
8ee53726 | 8294 | |
0e5d83e3 | 8295 | |
bec39cab AC |
8296 | |
8297 | ||
8298 | ||
8299 | ||
8300 | ac_header_dirent=no | |
8301 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
8302 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8303 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
8304 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
8305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8307 | else | |
8308 | cat >conftest.$ac_ext <<_ACEOF | |
8309 | /* confdefs.h. */ | |
8310 | _ACEOF | |
8311 | cat confdefs.h >>conftest.$ac_ext | |
8312 | cat >>conftest.$ac_ext <<_ACEOF | |
8313 | /* end confdefs.h. */ | |
8314 | #include <sys/types.h> | |
0e5d83e3 | 8315 | #include <$ac_hdr> |
bec39cab AC |
8316 | |
8317 | int | |
8318 | main () | |
8319 | { | |
8320 | if ((DIR *) 0) | |
8321 | return 0; | |
8322 | ; | |
8323 | return 0; | |
8324 | } | |
8325 | _ACEOF | |
8326 | rm -f conftest.$ac_objext | |
8327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8328 | (eval $ac_compile) 2>conftest.er1 | |
8329 | ac_status=$? | |
8330 | grep -v '^ *+' conftest.er1 >conftest.err | |
8331 | rm -f conftest.er1 | |
8332 | cat conftest.err >&5 | |
8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8334 | (exit $ac_status); } && | |
121ce6e5 | 8335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8337 | (eval $ac_try) 2>&5 | |
8338 | ac_status=$? | |
8339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8340 | (exit $ac_status); }; } && | |
8341 | { ac_try='test -s conftest.$ac_objext' | |
8342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8343 | (eval $ac_try) 2>&5 | |
8344 | ac_status=$? | |
8345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8346 | (exit $ac_status); }; }; then | |
8347 | eval "$as_ac_Header=yes" | |
8348 | else | |
8349 | echo "$as_me: failed program was:" >&5 | |
8350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8351 | ||
8352 | eval "$as_ac_Header=no" | |
8353 | fi | |
8354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8355 | fi | |
8356 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8357 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8358 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8359 | cat >>confdefs.h <<_ACEOF | |
8360 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8361 | _ACEOF | |
8362 | ||
8363 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 8364 | fi |
0e5d83e3 | 8365 | |
bec39cab AC |
8366 | done |
8367 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8368 | if test $ac_header_dirent = dirent.h; then | |
8369 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
8370 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8371 | if test "${ac_cv_search_opendir+set}" = set; then | |
8372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8373 | else | |
8374 | ac_func_search_save_LIBS=$LIBS | |
8375 | ac_cv_search_opendir=no | |
8376 | cat >conftest.$ac_ext <<_ACEOF | |
8377 | /* confdefs.h. */ | |
8378 | _ACEOF | |
8379 | cat confdefs.h >>conftest.$ac_ext | |
8380 | cat >>conftest.$ac_ext <<_ACEOF | |
8381 | /* end confdefs.h. */ | |
0e5d83e3 | 8382 | |
bec39cab AC |
8383 | /* Override any gcc2 internal prototype to avoid an error. */ |
8384 | #ifdef __cplusplus | |
8385 | extern "C" | |
8386 | #endif | |
8387 | /* We use char because int might match the return type of a gcc2 | |
8388 | builtin and then its argument prototype would still apply. */ | |
8389 | char opendir (); | |
8390 | int | |
8391 | main () | |
8392 | { | |
8393 | opendir (); | |
8394 | ; | |
8395 | return 0; | |
8396 | } | |
8397 | _ACEOF | |
8398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8400 | (eval $ac_link) 2>conftest.er1 | |
8401 | ac_status=$? | |
8402 | grep -v '^ *+' conftest.er1 >conftest.err | |
8403 | rm -f conftest.er1 | |
8404 | cat conftest.err >&5 | |
8405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8406 | (exit $ac_status); } && | |
121ce6e5 | 8407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8409 | (eval $ac_try) 2>&5 | |
8410 | ac_status=$? | |
8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8412 | (exit $ac_status); }; } && | |
8413 | { ac_try='test -s conftest$ac_exeext' | |
8414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8415 | (eval $ac_try) 2>&5 | |
8416 | ac_status=$? | |
8417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8418 | (exit $ac_status); }; }; then | |
8419 | ac_cv_search_opendir="none required" | |
8420 | else | |
8421 | echo "$as_me: failed program was:" >&5 | |
8422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8423 | ||
8424 | fi | |
8425 | rm -f conftest.err conftest.$ac_objext \ | |
8426 | conftest$ac_exeext conftest.$ac_ext | |
8427 | if test "$ac_cv_search_opendir" = no; then | |
8428 | for ac_lib in dir; do | |
8429 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8430 | cat >conftest.$ac_ext <<_ACEOF | |
8431 | /* confdefs.h. */ | |
8432 | _ACEOF | |
8433 | cat confdefs.h >>conftest.$ac_ext | |
8434 | cat >>conftest.$ac_ext <<_ACEOF | |
8435 | /* end confdefs.h. */ | |
0e5d83e3 | 8436 | |
bec39cab AC |
8437 | /* Override any gcc2 internal prototype to avoid an error. */ |
8438 | #ifdef __cplusplus | |
8439 | extern "C" | |
8440 | #endif | |
8441 | /* We use char because int might match the return type of a gcc2 | |
8442 | builtin and then its argument prototype would still apply. */ | |
8443 | char opendir (); | |
8444 | int | |
8445 | main () | |
8446 | { | |
8447 | opendir (); | |
8448 | ; | |
8449 | return 0; | |
8450 | } | |
8451 | _ACEOF | |
8452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8454 | (eval $ac_link) 2>conftest.er1 | |
8455 | ac_status=$? | |
8456 | grep -v '^ *+' conftest.er1 >conftest.err | |
8457 | rm -f conftest.er1 | |
8458 | cat conftest.err >&5 | |
8459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8460 | (exit $ac_status); } && | |
121ce6e5 | 8461 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8463 | (eval $ac_try) 2>&5 | |
8464 | ac_status=$? | |
8465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8466 | (exit $ac_status); }; } && | |
8467 | { ac_try='test -s conftest$ac_exeext' | |
8468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8469 | (eval $ac_try) 2>&5 | |
8470 | ac_status=$? | |
8471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8472 | (exit $ac_status); }; }; then | |
8473 | ac_cv_search_opendir="-l$ac_lib" | |
8474 | break | |
0e5d83e3 | 8475 | else |
bec39cab AC |
8476 | echo "$as_me: failed program was:" >&5 |
8477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0e5d83e3 | 8478 | |
0e5d83e3 | 8479 | fi |
bec39cab AC |
8480 | rm -f conftest.err conftest.$ac_objext \ |
8481 | conftest$ac_exeext conftest.$ac_ext | |
8482 | done | |
0e5d83e3 | 8483 | fi |
bec39cab | 8484 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 8485 | fi |
bec39cab AC |
8486 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
8487 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8488 | if test "$ac_cv_search_opendir" != no; then | |
8489 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 8490 | |
0e5d83e3 JJ |
8491 | fi |
8492 | ||
d28f9cdf | 8493 | else |
bec39cab AC |
8494 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
8495 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8496 | if test "${ac_cv_search_opendir+set}" = set; then | |
8497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8498 | else | |
8499 | ac_func_search_save_LIBS=$LIBS | |
8500 | ac_cv_search_opendir=no | |
8501 | cat >conftest.$ac_ext <<_ACEOF | |
8502 | /* confdefs.h. */ | |
8503 | _ACEOF | |
8504 | cat confdefs.h >>conftest.$ac_ext | |
8505 | cat >>conftest.$ac_ext <<_ACEOF | |
8506 | /* end confdefs.h. */ | |
d28f9cdf | 8507 | |
d28f9cdf | 8508 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
8509 | #ifdef __cplusplus |
8510 | extern "C" | |
8511 | #endif | |
d28f9cdf | 8512 | /* We use char because int might match the return type of a gcc2 |
bec39cab AC |
8513 | builtin and then its argument prototype would still apply. */ |
8514 | char opendir (); | |
8515 | int | |
8516 | main () | |
8517 | { | |
8518 | opendir (); | |
8519 | ; | |
8520 | return 0; | |
8521 | } | |
8522 | _ACEOF | |
8523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8525 | (eval $ac_link) 2>conftest.er1 | |
8526 | ac_status=$? | |
8527 | grep -v '^ *+' conftest.er1 >conftest.err | |
8528 | rm -f conftest.er1 | |
8529 | cat conftest.err >&5 | |
8530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8531 | (exit $ac_status); } && | |
121ce6e5 | 8532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8534 | (eval $ac_try) 2>&5 | |
8535 | ac_status=$? | |
8536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8537 | (exit $ac_status); }; } && | |
8538 | { ac_try='test -s conftest$ac_exeext' | |
8539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8540 | (eval $ac_try) 2>&5 | |
8541 | ac_status=$? | |
8542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8543 | (exit $ac_status); }; }; then | |
8544 | ac_cv_search_opendir="none required" | |
8545 | else | |
8546 | echo "$as_me: failed program was:" >&5 | |
8547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8548 | ||
8549 | fi | |
8550 | rm -f conftest.err conftest.$ac_objext \ | |
8551 | conftest$ac_exeext conftest.$ac_ext | |
8552 | if test "$ac_cv_search_opendir" = no; then | |
8553 | for ac_lib in x; do | |
8554 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8555 | cat >conftest.$ac_ext <<_ACEOF | |
8556 | /* confdefs.h. */ | |
8557 | _ACEOF | |
8558 | cat confdefs.h >>conftest.$ac_ext | |
8559 | cat >>conftest.$ac_ext <<_ACEOF | |
8560 | /* end confdefs.h. */ | |
d28f9cdf | 8561 | |
bec39cab AC |
8562 | /* Override any gcc2 internal prototype to avoid an error. */ |
8563 | #ifdef __cplusplus | |
8564 | extern "C" | |
d28f9cdf | 8565 | #endif |
bec39cab AC |
8566 | /* We use char because int might match the return type of a gcc2 |
8567 | builtin and then its argument prototype would still apply. */ | |
8568 | char opendir (); | |
8569 | int | |
8570 | main () | |
8571 | { | |
8572 | opendir (); | |
8573 | ; | |
8574 | return 0; | |
8575 | } | |
8576 | _ACEOF | |
8577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8579 | (eval $ac_link) 2>conftest.er1 | |
8580 | ac_status=$? | |
8581 | grep -v '^ *+' conftest.er1 >conftest.err | |
8582 | rm -f conftest.er1 | |
8583 | cat conftest.err >&5 | |
8584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8585 | (exit $ac_status); } && | |
121ce6e5 | 8586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8588 | (eval $ac_try) 2>&5 | |
8589 | ac_status=$? | |
8590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8591 | (exit $ac_status); }; } && | |
8592 | { ac_try='test -s conftest$ac_exeext' | |
8593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8594 | (eval $ac_try) 2>&5 | |
8595 | ac_status=$? | |
8596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8597 | (exit $ac_status); }; }; then | |
8598 | ac_cv_search_opendir="-l$ac_lib" | |
8599 | break | |
d28f9cdf | 8600 | else |
bec39cab AC |
8601 | echo "$as_me: failed program was:" >&5 |
8602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8603 | ||
d28f9cdf | 8604 | fi |
bec39cab AC |
8605 | rm -f conftest.err conftest.$ac_objext \ |
8606 | conftest$ac_exeext conftest.$ac_ext | |
8607 | done | |
8608 | fi | |
8609 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 8610 | fi |
bec39cab AC |
8611 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
8612 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8613 | if test "$ac_cv_search_opendir" != no; then | |
8614 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 8615 | |
d28f9cdf DJ |
8616 | fi |
8617 | ||
bec39cab | 8618 | fi |
b0b1c2c0 | 8619 | |
bec39cab AC |
8620 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
8621 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
8622 | if test "${ac_cv_header_stat_broken+set}" = set; then | |
8623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 8624 | else |
bec39cab AC |
8625 | cat >conftest.$ac_ext <<_ACEOF |
8626 | /* confdefs.h. */ | |
8627 | _ACEOF | |
8628 | cat confdefs.h >>conftest.$ac_ext | |
8629 | cat >>conftest.$ac_ext <<_ACEOF | |
8630 | /* end confdefs.h. */ | |
8631 | #include <sys/types.h> | |
8632 | #include <sys/stat.h> | |
b0b1c2c0 | 8633 | |
bec39cab AC |
8634 | #if defined(S_ISBLK) && defined(S_IFDIR) |
8635 | # if S_ISBLK (S_IFDIR) | |
8636 | You lose. | |
8637 | # endif | |
8638 | #endif | |
b0b1c2c0 | 8639 | |
bec39cab AC |
8640 | #if defined(S_ISBLK) && defined(S_IFCHR) |
8641 | # if S_ISBLK (S_IFCHR) | |
8642 | You lose. | |
8643 | # endif | |
8644 | #endif | |
d28f9cdf | 8645 | |
bec39cab AC |
8646 | #if defined(S_ISLNK) && defined(S_IFREG) |
8647 | # if S_ISLNK (S_IFREG) | |
8648 | You lose. | |
8649 | # endif | |
8650 | #endif | |
d28f9cdf | 8651 | |
bec39cab AC |
8652 | #if defined(S_ISSOCK) && defined(S_IFREG) |
8653 | # if S_ISSOCK (S_IFREG) | |
8654 | You lose. | |
8655 | # endif | |
8656 | #endif | |
8657 | ||
8658 | _ACEOF | |
8659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8660 | $EGREP "You lose" >/dev/null 2>&1; then | |
8661 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 8662 | else |
bec39cab | 8663 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
8664 | fi |
8665 | rm -f conftest* | |
d28f9cdf | 8666 | |
d28f9cdf | 8667 | fi |
bec39cab AC |
8668 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
8669 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
8670 | if test $ac_cv_header_stat_broken = yes; then | |
d28f9cdf | 8671 | |
bec39cab AC |
8672 | cat >>confdefs.h <<\_ACEOF |
8673 | #define STAT_MACROS_BROKEN 1 | |
8674 | _ACEOF | |
8bb2c122 | 8675 | |
7a292a7a | 8676 | fi |
bec39cab AC |
8677 | |
8678 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
8679 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
8680 | if test "${ac_cv_header_stdc+set}" = set; then | |
8681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 8682 | else |
bec39cab AC |
8683 | cat >conftest.$ac_ext <<_ACEOF |
8684 | /* confdefs.h. */ | |
8685 | _ACEOF | |
8686 | cat confdefs.h >>conftest.$ac_ext | |
8687 | cat >>conftest.$ac_ext <<_ACEOF | |
8688 | /* end confdefs.h. */ | |
8689 | #include <stdlib.h> | |
8690 | #include <stdarg.h> | |
8691 | #include <string.h> | |
8692 | #include <float.h> | |
7a292a7a | 8693 | |
bec39cab AC |
8694 | int |
8695 | main () | |
8696 | { | |
7a292a7a | 8697 | |
bec39cab AC |
8698 | ; |
8699 | return 0; | |
8700 | } | |
8701 | _ACEOF | |
8702 | rm -f conftest.$ac_objext | |
8703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8704 | (eval $ac_compile) 2>conftest.er1 | |
8705 | ac_status=$? | |
8706 | grep -v '^ *+' conftest.er1 >conftest.err | |
8707 | rm -f conftest.er1 | |
8708 | cat conftest.err >&5 | |
8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8710 | (exit $ac_status); } && | |
121ce6e5 | 8711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
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_objext' | |
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_header_stdc=yes | |
c906108c | 8724 | else |
bec39cab AC |
8725 | echo "$as_me: failed program was:" >&5 |
8726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8727 | |
bec39cab | 8728 | ac_cv_header_stdc=no |
c906108c | 8729 | fi |
bec39cab | 8730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 8731 | |
bec39cab AC |
8732 | if test $ac_cv_header_stdc = yes; then |
8733 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8734 | cat >conftest.$ac_ext <<_ACEOF | |
8735 | /* confdefs.h. */ | |
8736 | _ACEOF | |
8737 | cat confdefs.h >>conftest.$ac_ext | |
8738 | cat >>conftest.$ac_ext <<_ACEOF | |
8739 | /* end confdefs.h. */ | |
8740 | #include <string.h> | |
c906108c | 8741 | |
bec39cab AC |
8742 | _ACEOF |
8743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8744 | $EGREP "memchr" >/dev/null 2>&1; then | |
8745 | : | |
8bb2c122 | 8746 | else |
bec39cab | 8747 | ac_cv_header_stdc=no |
8bb2c122 | 8748 | fi |
bec39cab AC |
8749 | rm -f conftest* |
8750 | ||
c906108c SS |
8751 | fi |
8752 | ||
bec39cab AC |
8753 | if test $ac_cv_header_stdc = yes; then |
8754 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8755 | cat >conftest.$ac_ext <<_ACEOF | |
8756 | /* confdefs.h. */ | |
8757 | _ACEOF | |
8758 | cat confdefs.h >>conftest.$ac_ext | |
8759 | cat >>conftest.$ac_ext <<_ACEOF | |
8760 | /* end confdefs.h. */ | |
8761 | #include <stdlib.h> | |
8762 | ||
8763 | _ACEOF | |
8764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8765 | $EGREP "free" >/dev/null 2>&1; then | |
8766 | : | |
c906108c | 8767 | else |
bec39cab | 8768 | ac_cv_header_stdc=no |
c906108c | 8769 | fi |
bec39cab AC |
8770 | rm -f conftest* |
8771 | ||
c906108c SS |
8772 | fi |
8773 | ||
bec39cab AC |
8774 | if test $ac_cv_header_stdc = yes; then |
8775 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8776 | if test "$cross_compiling" = yes; then | |
8777 | : | |
c906108c | 8778 | else |
bec39cab AC |
8779 | cat >conftest.$ac_ext <<_ACEOF |
8780 | /* confdefs.h. */ | |
8781 | _ACEOF | |
8782 | cat confdefs.h >>conftest.$ac_ext | |
8783 | cat >>conftest.$ac_ext <<_ACEOF | |
8784 | /* end confdefs.h. */ | |
8785 | #include <ctype.h> | |
8786 | #if ((' ' & 0x0FF) == 0x020) | |
8787 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8788 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8789 | #else | |
8790 | # define ISLOWER(c) \ | |
8791 | (('a' <= (c) && (c) <= 'i') \ | |
8792 | || ('j' <= (c) && (c) <= 'r') \ | |
8793 | || ('s' <= (c) && (c) <= 'z')) | |
8794 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8795 | #endif | |
8796 | ||
8797 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8798 | int | |
8799 | main () | |
8800 | { | |
8801 | int i; | |
8802 | for (i = 0; i < 256; i++) | |
8803 | if (XOR (islower (i), ISLOWER (i)) | |
8804 | || toupper (i) != TOUPPER (i)) | |
8805 | exit(2); | |
8806 | exit (0); | |
8807 | } | |
8808 | _ACEOF | |
8809 | rm -f conftest$ac_exeext | |
8810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8811 | (eval $ac_link) 2>&5 | |
8812 | ac_status=$? | |
8813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8816 | (eval $ac_try) 2>&5 | |
8817 | ac_status=$? | |
8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8819 | (exit $ac_status); }; }; then | |
8820 | : | |
8821 | else | |
8822 | echo "$as_me: program exited with status $ac_status" >&5 | |
8823 | echo "$as_me: failed program was:" >&5 | |
8824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8825 | ||
8826 | ( exit $ac_status ) | |
8827 | ac_cv_header_stdc=no | |
c906108c | 8828 | fi |
bec39cab | 8829 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 8830 | fi |
c906108c | 8831 | fi |
bec39cab AC |
8832 | fi |
8833 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
8834 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
8835 | if test $ac_cv_header_stdc = yes; then | |
c906108c | 8836 | |
bec39cab AC |
8837 | cat >>confdefs.h <<\_ACEOF |
8838 | #define STDC_HEADERS 1 | |
8839 | _ACEOF | |
c906108c | 8840 | |
bec39cab | 8841 | fi |
8bb2c122 | 8842 | |
bec39cab | 8843 | |
7cb9022a | 8844 | for ac_header in nlist.h |
bec39cab AC |
8845 | do |
8846 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8848 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8852 | fi | |
8853 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8854 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8855 | else | |
8856 | # Is the header compilable? | |
8857 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8858 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8859 | cat >conftest.$ac_ext <<_ACEOF | |
8860 | /* confdefs.h. */ | |
8861 | _ACEOF | |
8862 | cat confdefs.h >>conftest.$ac_ext | |
8863 | cat >>conftest.$ac_ext <<_ACEOF | |
8864 | /* end confdefs.h. */ | |
8865 | $ac_includes_default | |
8866 | #include <$ac_header> | |
8867 | _ACEOF | |
8868 | rm -f conftest.$ac_objext | |
8869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8870 | (eval $ac_compile) 2>conftest.er1 | |
8871 | ac_status=$? | |
8872 | grep -v '^ *+' conftest.er1 >conftest.err | |
8873 | rm -f conftest.er1 | |
8874 | cat conftest.err >&5 | |
8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8876 | (exit $ac_status); } && | |
121ce6e5 | 8877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8879 | (eval $ac_try) 2>&5 | |
8880 | ac_status=$? | |
8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8882 | (exit $ac_status); }; } && | |
8883 | { ac_try='test -s conftest.$ac_objext' | |
8884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8885 | (eval $ac_try) 2>&5 | |
8886 | ac_status=$? | |
8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8888 | (exit $ac_status); }; }; then | |
8889 | ac_header_compiler=yes | |
8890 | else | |
8891 | echo "$as_me: failed program was:" >&5 | |
8892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8893 | ||
8894 | ac_header_compiler=no | |
8895 | fi | |
8896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8897 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8898 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8899 | ||
8900 | # Is the header present? | |
8901 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8902 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8903 | cat >conftest.$ac_ext <<_ACEOF | |
8904 | /* confdefs.h. */ | |
8905 | _ACEOF | |
8906 | cat confdefs.h >>conftest.$ac_ext | |
8907 | cat >>conftest.$ac_ext <<_ACEOF | |
8908 | /* end confdefs.h. */ | |
8909 | #include <$ac_header> | |
8910 | _ACEOF | |
8911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8913 | ac_status=$? | |
8914 | grep -v '^ *+' conftest.er1 >conftest.err | |
8915 | rm -f conftest.er1 | |
8916 | cat conftest.err >&5 | |
8917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8918 | (exit $ac_status); } >/dev/null; then | |
8919 | if test -s conftest.err; then | |
8920 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8921 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8922 | else | |
8923 | ac_cpp_err= | |
8924 | fi | |
c906108c | 8925 | else |
bec39cab | 8926 | ac_cpp_err=yes |
c906108c | 8927 | fi |
bec39cab AC |
8928 | if test -z "$ac_cpp_err"; then |
8929 | ac_header_preproc=yes | |
c906108c | 8930 | else |
bec39cab AC |
8931 | echo "$as_me: failed program was:" >&5 |
8932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 8933 | |
bec39cab AC |
8934 | ac_header_preproc=no |
8935 | fi | |
8936 | rm -f conftest.err conftest.$ac_ext | |
8937 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8938 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 8939 | |
bec39cab AC |
8940 | # So? What about this header? |
8941 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8942 | yes:no: ) | |
8943 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8944 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8946 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8947 | ac_header_preproc=yes | |
8948 | ;; | |
8949 | no:yes:* ) | |
8950 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8951 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8952 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8953 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8954 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8955 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8956 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8957 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8959 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8960 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8961 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8962 | ( | |
8963 | cat <<\_ASBOX | |
8964 | ## ------------------------------------------ ## | |
8965 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8966 | ## ------------------------------------------ ## | |
8967 | _ASBOX | |
8968 | ) | | |
8969 | sed "s/^/$as_me: WARNING: /" >&2 | |
8970 | ;; | |
8971 | esac | |
8972 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
95ca63c4 | 8976 | else |
bec39cab | 8977 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 8978 | fi |
bec39cab AC |
8979 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8980 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8981 | ||
95ca63c4 | 8982 | fi |
bec39cab AC |
8983 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8984 | cat >>confdefs.h <<_ACEOF | |
8985 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8986 | _ACEOF | |
8987 | ||
95ca63c4 CF |
8988 | fi |
8989 | ||
bec39cab | 8990 | done |
95ca63c4 CF |
8991 | |
8992 | ||
7cb9022a | 8993 | for ac_header in link.h |
bec39cab AC |
8994 | do |
8995 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7cb9022a | 8996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
bec39cab AC |
8997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 9000 | else |
7cb9022a | 9001 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9002 | /* confdefs.h. */ |
9003 | _ACEOF | |
9004 | cat confdefs.h >>conftest.$ac_ext | |
9005 | cat >>conftest.$ac_ext <<_ACEOF | |
9006 | /* end confdefs.h. */ | |
7cb9022a MK |
9007 | #if HAVE_SYS_TYPES_H |
9008 | # include <sys/types.h> | |
9009 | #endif | |
9010 | #if HAVE_NLIST_H | |
9011 | # include <nlist.h> | |
9012 | #endif | |
9013 | ||
9014 | ||
bec39cab AC |
9015 | #include <$ac_header> |
9016 | _ACEOF | |
9017 | rm -f conftest.$ac_objext | |
9018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9019 | (eval $ac_compile) 2>conftest.er1 | |
9020 | ac_status=$? | |
9021 | grep -v '^ *+' conftest.er1 >conftest.err | |
9022 | rm -f conftest.er1 | |
9023 | cat conftest.err >&5 | |
9024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9025 | (exit $ac_status); } && | |
121ce6e5 | 9026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9028 | (eval $ac_try) 2>&5 | |
9029 | ac_status=$? | |
9030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9031 | (exit $ac_status); }; } && | |
9032 | { ac_try='test -s conftest.$ac_objext' | |
9033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9034 | (eval $ac_try) 2>&5 | |
9035 | ac_status=$? | |
9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9037 | (exit $ac_status); }; }; then | |
7cb9022a | 9038 | eval "$as_ac_Header=yes" |
bec39cab AC |
9039 | else |
9040 | echo "$as_me: failed program was:" >&5 | |
9041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9042 | ||
7cb9022a | 9043 | eval "$as_ac_Header=no" |
bec39cab AC |
9044 | fi |
9045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
9046 | fi |
9047 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9048 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9049 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9050 | cat >>confdefs.h <<_ACEOF | |
9051 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9052 | _ACEOF | |
95ca63c4 | 9053 | |
bec39cab | 9054 | fi |
95ca63c4 | 9055 | |
bec39cab | 9056 | done |
95ca63c4 | 9057 | |
c906108c | 9058 | |
7cb9022a | 9059 | for ac_header in machine/reg.h |
bec39cab AC |
9060 | do |
9061 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9062 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9063 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9064 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9065 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9067 | fi | |
9068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9070 | else | |
9071 | # Is the header compilable? | |
9072 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9073 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9074 | cat >conftest.$ac_ext <<_ACEOF | |
9075 | /* confdefs.h. */ | |
9076 | _ACEOF | |
9077 | cat confdefs.h >>conftest.$ac_ext | |
9078 | cat >>conftest.$ac_ext <<_ACEOF | |
9079 | /* end confdefs.h. */ | |
9080 | $ac_includes_default | |
9081 | #include <$ac_header> | |
9082 | _ACEOF | |
9083 | rm -f conftest.$ac_objext | |
9084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9085 | (eval $ac_compile) 2>conftest.er1 | |
9086 | ac_status=$? | |
9087 | grep -v '^ *+' conftest.er1 >conftest.err | |
9088 | rm -f conftest.er1 | |
9089 | cat conftest.err >&5 | |
9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9091 | (exit $ac_status); } && | |
121ce6e5 | 9092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9094 | (eval $ac_try) 2>&5 | |
9095 | ac_status=$? | |
9096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9097 | (exit $ac_status); }; } && | |
9098 | { ac_try='test -s conftest.$ac_objext' | |
9099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9100 | (eval $ac_try) 2>&5 | |
9101 | ac_status=$? | |
9102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9103 | (exit $ac_status); }; }; then | |
9104 | ac_header_compiler=yes | |
9105 | else | |
9106 | echo "$as_me: failed program was:" >&5 | |
9107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9108 | ||
9109 | ac_header_compiler=no | |
9110 | fi | |
9111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9112 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9113 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9114 | ||
9115 | # Is the header present? | |
9116 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9117 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9118 | cat >conftest.$ac_ext <<_ACEOF | |
9119 | /* confdefs.h. */ | |
9120 | _ACEOF | |
9121 | cat confdefs.h >>conftest.$ac_ext | |
9122 | cat >>conftest.$ac_ext <<_ACEOF | |
9123 | /* end confdefs.h. */ | |
9124 | #include <$ac_header> | |
9125 | _ACEOF | |
9126 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9127 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9128 | ac_status=$? | |
9129 | grep -v '^ *+' conftest.er1 >conftest.err | |
9130 | rm -f conftest.er1 | |
9131 | cat conftest.err >&5 | |
9132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9133 | (exit $ac_status); } >/dev/null; then | |
9134 | if test -s conftest.err; then | |
9135 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9136 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9137 | else | |
9138 | ac_cpp_err= | |
9139 | fi | |
75c6e08a | 9140 | else |
bec39cab | 9141 | ac_cpp_err=yes |
75c6e08a | 9142 | fi |
bec39cab AC |
9143 | if test -z "$ac_cpp_err"; then |
9144 | ac_header_preproc=yes | |
9145 | else | |
9146 | echo "$as_me: failed program was:" >&5 | |
9147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9148 | ||
9149 | ac_header_preproc=no | |
75c6e08a | 9150 | fi |
bec39cab AC |
9151 | rm -f conftest.err conftest.$ac_ext |
9152 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9153 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9154 | ||
9155 | # So? What about this header? | |
9156 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9157 | yes:no: ) | |
9158 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9159 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9161 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9162 | ac_header_preproc=yes | |
9163 | ;; | |
9164 | no:yes:* ) | |
9165 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9166 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9167 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9168 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9169 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9170 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9171 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9172 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9174 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9175 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9176 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9177 | ( | |
9178 | cat <<\_ASBOX | |
9179 | ## ------------------------------------------ ## | |
9180 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9181 | ## ------------------------------------------ ## | |
9182 | _ASBOX | |
9183 | ) | | |
9184 | sed "s/^/$as_me: WARNING: /" >&2 | |
9185 | ;; | |
9186 | esac | |
9187 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9189 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
75c6e08a | 9191 | else |
bec39cab AC |
9192 | eval "$as_ac_Header=\$ac_header_preproc" |
9193 | fi | |
9194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9195 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9196 | ||
75c6e08a | 9197 | fi |
bec39cab AC |
9198 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9199 | cat >>confdefs.h <<_ACEOF | |
9200 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9201 | _ACEOF | |
75c6e08a | 9202 | |
bec39cab | 9203 | fi |
75c6e08a | 9204 | |
bec39cab | 9205 | done |
75c6e08a MK |
9206 | |
9207 | ||
9a156167 | 9208 | |
bec39cab AC |
9209 | for ac_header in poll.h sys/poll.h |
9210 | do | |
9211 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9213 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9217 | fi | |
9218 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9219 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9220 | else | |
9221 | # Is the header compilable? | |
9222 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9223 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9224 | cat >conftest.$ac_ext <<_ACEOF | |
9225 | /* confdefs.h. */ | |
9226 | _ACEOF | |
9227 | cat confdefs.h >>conftest.$ac_ext | |
9228 | cat >>conftest.$ac_ext <<_ACEOF | |
9229 | /* end confdefs.h. */ | |
9230 | $ac_includes_default | |
9231 | #include <$ac_header> | |
9232 | _ACEOF | |
9233 | rm -f conftest.$ac_objext | |
9234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9235 | (eval $ac_compile) 2>conftest.er1 | |
9236 | ac_status=$? | |
9237 | grep -v '^ *+' conftest.er1 >conftest.err | |
9238 | rm -f conftest.er1 | |
9239 | cat conftest.err >&5 | |
9240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9241 | (exit $ac_status); } && | |
121ce6e5 | 9242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9244 | (eval $ac_try) 2>&5 | |
9245 | ac_status=$? | |
9246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9247 | (exit $ac_status); }; } && | |
9248 | { ac_try='test -s conftest.$ac_objext' | |
9249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9250 | (eval $ac_try) 2>&5 | |
9251 | ac_status=$? | |
9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9253 | (exit $ac_status); }; }; then | |
9254 | ac_header_compiler=yes | |
9255 | else | |
9256 | echo "$as_me: failed program was:" >&5 | |
9257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9258 | ||
9259 | ac_header_compiler=no | |
9260 | fi | |
9261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9262 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9263 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9264 | ||
9265 | # Is the header present? | |
9266 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9267 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9268 | cat >conftest.$ac_ext <<_ACEOF | |
9269 | /* confdefs.h. */ | |
9270 | _ACEOF | |
9271 | cat confdefs.h >>conftest.$ac_ext | |
9272 | cat >>conftest.$ac_ext <<_ACEOF | |
9273 | /* end confdefs.h. */ | |
9274 | #include <$ac_header> | |
9275 | _ACEOF | |
9276 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9277 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9278 | ac_status=$? | |
9279 | grep -v '^ *+' conftest.er1 >conftest.err | |
9280 | rm -f conftest.er1 | |
9281 | cat conftest.err >&5 | |
9282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9283 | (exit $ac_status); } >/dev/null; then | |
9284 | if test -s conftest.err; then | |
9285 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9286 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9287 | else | |
9288 | ac_cpp_err= | |
9289 | fi | |
9a156167 | 9290 | else |
bec39cab | 9291 | ac_cpp_err=yes |
9a156167 | 9292 | fi |
bec39cab AC |
9293 | if test -z "$ac_cpp_err"; then |
9294 | ac_header_preproc=yes | |
9295 | else | |
9296 | echo "$as_me: failed program was:" >&5 | |
9297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9298 | |
bec39cab | 9299 | ac_header_preproc=no |
9a156167 | 9300 | fi |
bec39cab AC |
9301 | rm -f conftest.err conftest.$ac_ext |
9302 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9303 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 9304 | |
bec39cab AC |
9305 | # So? What about this header? |
9306 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9307 | yes:no: ) | |
9308 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9309 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9311 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9312 | ac_header_preproc=yes | |
9313 | ;; | |
9314 | no:yes:* ) | |
9315 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9316 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9317 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9318 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9319 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9320 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9321 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9322 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9323 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9324 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9325 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9326 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9327 | ( | |
9328 | cat <<\_ASBOX | |
9329 | ## ------------------------------------------ ## | |
9330 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9331 | ## ------------------------------------------ ## | |
9332 | _ASBOX | |
9333 | ) | | |
9334 | sed "s/^/$as_me: WARNING: /" >&2 | |
9335 | ;; | |
9336 | esac | |
9337 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9338 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9339 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9341 | else |
bec39cab | 9342 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9343 | fi |
bec39cab AC |
9344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9345 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 9346 | |
bec39cab AC |
9347 | fi |
9348 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9349 | cat >>confdefs.h <<_ACEOF | |
9350 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9351 | _ACEOF | |
9a156167 | 9352 | |
bec39cab | 9353 | fi |
9a156167 | 9354 | |
bec39cab | 9355 | done |
9a156167 | 9356 | |
9a156167 | 9357 | |
9a156167 | 9358 | |
bec39cab AC |
9359 | |
9360 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
9361 | do | |
9362 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9363 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9368 | fi | |
9369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9371 | else | |
9372 | # Is the header compilable? | |
9373 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9374 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9375 | cat >conftest.$ac_ext <<_ACEOF | |
9376 | /* confdefs.h. */ | |
9377 | _ACEOF | |
9378 | cat confdefs.h >>conftest.$ac_ext | |
9379 | cat >>conftest.$ac_ext <<_ACEOF | |
9380 | /* end confdefs.h. */ | |
9381 | $ac_includes_default | |
9382 | #include <$ac_header> | |
9383 | _ACEOF | |
9384 | rm -f conftest.$ac_objext | |
9385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9386 | (eval $ac_compile) 2>conftest.er1 | |
9387 | ac_status=$? | |
9388 | grep -v '^ *+' conftest.er1 >conftest.err | |
9389 | rm -f conftest.er1 | |
9390 | cat conftest.err >&5 | |
9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9392 | (exit $ac_status); } && | |
121ce6e5 | 9393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9395 | (eval $ac_try) 2>&5 | |
9396 | ac_status=$? | |
9397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9398 | (exit $ac_status); }; } && | |
9399 | { ac_try='test -s conftest.$ac_objext' | |
9400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9401 | (eval $ac_try) 2>&5 | |
9402 | ac_status=$? | |
9403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9404 | (exit $ac_status); }; }; then | |
9405 | ac_header_compiler=yes | |
9406 | else | |
9407 | echo "$as_me: failed program was:" >&5 | |
9408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9409 | ||
9410 | ac_header_compiler=no | |
9411 | fi | |
9412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9413 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9414 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9415 | ||
9416 | # Is the header present? | |
9417 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9418 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9419 | cat >conftest.$ac_ext <<_ACEOF | |
9420 | /* confdefs.h. */ | |
9421 | _ACEOF | |
9422 | cat confdefs.h >>conftest.$ac_ext | |
9423 | cat >>conftest.$ac_ext <<_ACEOF | |
9424 | /* end confdefs.h. */ | |
9425 | #include <$ac_header> | |
9426 | _ACEOF | |
9427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9429 | ac_status=$? | |
9430 | grep -v '^ *+' conftest.er1 >conftest.err | |
9431 | rm -f conftest.er1 | |
9432 | cat conftest.err >&5 | |
9433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9434 | (exit $ac_status); } >/dev/null; then | |
9435 | if test -s conftest.err; then | |
9436 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9437 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9438 | else | |
9439 | ac_cpp_err= | |
9440 | fi | |
9a156167 | 9441 | else |
bec39cab | 9442 | ac_cpp_err=yes |
9a156167 | 9443 | fi |
bec39cab AC |
9444 | if test -z "$ac_cpp_err"; then |
9445 | ac_header_preproc=yes | |
9446 | else | |
9447 | echo "$as_me: failed program was:" >&5 | |
9448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9449 | |
bec39cab | 9450 | ac_header_preproc=no |
9a156167 | 9451 | fi |
bec39cab AC |
9452 | rm -f conftest.err conftest.$ac_ext |
9453 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9454 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 9455 | |
bec39cab AC |
9456 | # So? What about this header? |
9457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9458 | yes:no: ) | |
9459 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9460 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9462 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9463 | ac_header_preproc=yes | |
9464 | ;; | |
9465 | no:yes:* ) | |
9466 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9467 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9468 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9469 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9470 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9471 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9472 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9473 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9475 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9476 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9477 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9478 | ( | |
9479 | cat <<\_ASBOX | |
9480 | ## ------------------------------------------ ## | |
9481 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9482 | ## ------------------------------------------ ## | |
9483 | _ASBOX | |
9484 | ) | | |
9485 | sed "s/^/$as_me: WARNING: /" >&2 | |
9486 | ;; | |
9487 | esac | |
9488 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9492 | else |
bec39cab | 9493 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9494 | fi |
bec39cab AC |
9495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9496 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
9497 | |
9498 | fi | |
bec39cab AC |
9499 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9500 | cat >>confdefs.h <<_ACEOF | |
9501 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9502 | _ACEOF | |
9a156167 | 9503 | |
bec39cab AC |
9504 | fi |
9505 | ||
9506 | done | |
9a156167 | 9507 | |
c890192f | 9508 | |
bec39cab AC |
9509 | for ac_header in stddef.h |
9510 | do | |
9511 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9517 | fi | |
9518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9520 | else | |
9521 | # Is the header compilable? | |
9522 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9523 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9524 | cat >conftest.$ac_ext <<_ACEOF | |
9525 | /* confdefs.h. */ | |
9526 | _ACEOF | |
9527 | cat confdefs.h >>conftest.$ac_ext | |
9528 | cat >>conftest.$ac_ext <<_ACEOF | |
9529 | /* end confdefs.h. */ | |
9530 | $ac_includes_default | |
9531 | #include <$ac_header> | |
9532 | _ACEOF | |
9533 | rm -f conftest.$ac_objext | |
9534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9535 | (eval $ac_compile) 2>conftest.er1 | |
9536 | ac_status=$? | |
9537 | grep -v '^ *+' conftest.er1 >conftest.err | |
9538 | rm -f conftest.er1 | |
9539 | cat conftest.err >&5 | |
9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9541 | (exit $ac_status); } && | |
121ce6e5 | 9542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9544 | (eval $ac_try) 2>&5 | |
9545 | ac_status=$? | |
9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9547 | (exit $ac_status); }; } && | |
9548 | { ac_try='test -s conftest.$ac_objext' | |
9549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9550 | (eval $ac_try) 2>&5 | |
9551 | ac_status=$? | |
9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9553 | (exit $ac_status); }; }; then | |
9554 | ac_header_compiler=yes | |
9555 | else | |
9556 | echo "$as_me: failed program was:" >&5 | |
9557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9558 | ||
9559 | ac_header_compiler=no | |
9560 | fi | |
9561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9562 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9563 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9564 | ||
9565 | # Is the header present? | |
9566 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9568 | cat >conftest.$ac_ext <<_ACEOF | |
9569 | /* confdefs.h. */ | |
9570 | _ACEOF | |
9571 | cat confdefs.h >>conftest.$ac_ext | |
9572 | cat >>conftest.$ac_ext <<_ACEOF | |
9573 | /* end confdefs.h. */ | |
9574 | #include <$ac_header> | |
9575 | _ACEOF | |
9576 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9577 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9578 | ac_status=$? | |
9579 | grep -v '^ *+' conftest.er1 >conftest.err | |
9580 | rm -f conftest.er1 | |
9581 | cat conftest.err >&5 | |
9582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9583 | (exit $ac_status); } >/dev/null; then | |
9584 | if test -s conftest.err; then | |
9585 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9586 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9587 | else | |
9588 | ac_cpp_err= | |
9589 | fi | |
c890192f | 9590 | else |
bec39cab AC |
9591 | ac_cpp_err=yes |
9592 | fi | |
9593 | if test -z "$ac_cpp_err"; then | |
9594 | ac_header_preproc=yes | |
c890192f | 9595 | else |
bec39cab AC |
9596 | echo "$as_me: failed program was:" >&5 |
9597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9598 | ||
9599 | ac_header_preproc=no | |
c890192f | 9600 | fi |
bec39cab AC |
9601 | rm -f conftest.err conftest.$ac_ext |
9602 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9603 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9604 | ||
9605 | # So? What about this header? | |
9606 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9607 | yes:no: ) | |
9608 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9609 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9611 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9612 | ac_header_preproc=yes | |
9613 | ;; | |
9614 | no:yes:* ) | |
9615 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9616 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9617 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9618 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9619 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9620 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9621 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9622 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9623 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9624 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9625 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9626 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9627 | ( | |
9628 | cat <<\_ASBOX | |
9629 | ## ------------------------------------------ ## | |
9630 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9631 | ## ------------------------------------------ ## | |
9632 | _ASBOX | |
9633 | ) | | |
9634 | sed "s/^/$as_me: WARNING: /" >&2 | |
9635 | ;; | |
9636 | esac | |
9637 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9638 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9639 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c890192f | 9641 | else |
bec39cab | 9642 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 9643 | fi |
bec39cab AC |
9644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9645 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9646 | ||
c890192f | 9647 | fi |
bec39cab AC |
9648 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9649 | cat >>confdefs.h <<_ACEOF | |
9650 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9651 | _ACEOF | |
c890192f | 9652 | |
c890192f MK |
9653 | fi |
9654 | ||
bec39cab | 9655 | done |
9a156167 | 9656 | |
bec39cab AC |
9657 | |
9658 | for ac_header in stdlib.h | |
9659 | do | |
9660 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9661 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9662 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9666 | fi | |
9667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9668 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9669 | else | |
9670 | # Is the header compilable? | |
9671 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9672 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9673 | cat >conftest.$ac_ext <<_ACEOF | |
9674 | /* confdefs.h. */ | |
9675 | _ACEOF | |
9676 | cat confdefs.h >>conftest.$ac_ext | |
9677 | cat >>conftest.$ac_ext <<_ACEOF | |
9678 | /* end confdefs.h. */ | |
9679 | $ac_includes_default | |
9680 | #include <$ac_header> | |
9681 | _ACEOF | |
9682 | rm -f conftest.$ac_objext | |
9683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9684 | (eval $ac_compile) 2>conftest.er1 | |
9685 | ac_status=$? | |
9686 | grep -v '^ *+' conftest.er1 >conftest.err | |
9687 | rm -f conftest.er1 | |
9688 | cat conftest.err >&5 | |
9689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9690 | (exit $ac_status); } && | |
121ce6e5 | 9691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9693 | (eval $ac_try) 2>&5 | |
9694 | ac_status=$? | |
9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9696 | (exit $ac_status); }; } && | |
9697 | { ac_try='test -s conftest.$ac_objext' | |
9698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9699 | (eval $ac_try) 2>&5 | |
9700 | ac_status=$? | |
9701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9702 | (exit $ac_status); }; }; then | |
9703 | ac_header_compiler=yes | |
9704 | else | |
9705 | echo "$as_me: failed program was:" >&5 | |
9706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9707 | ||
9708 | ac_header_compiler=no | |
9709 | fi | |
9710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9711 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9712 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9713 | ||
9714 | # Is the header present? | |
9715 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9717 | cat >conftest.$ac_ext <<_ACEOF | |
9718 | /* confdefs.h. */ | |
9719 | _ACEOF | |
9720 | cat confdefs.h >>conftest.$ac_ext | |
9721 | cat >>conftest.$ac_ext <<_ACEOF | |
9722 | /* end confdefs.h. */ | |
9723 | #include <$ac_header> | |
9724 | _ACEOF | |
9725 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9726 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9727 | ac_status=$? | |
9728 | grep -v '^ *+' conftest.er1 >conftest.err | |
9729 | rm -f conftest.er1 | |
9730 | cat conftest.err >&5 | |
9731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9732 | (exit $ac_status); } >/dev/null; then | |
9733 | if test -s conftest.err; then | |
9734 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9735 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9736 | else | |
9737 | ac_cpp_err= | |
9738 | fi | |
9a156167 | 9739 | else |
bec39cab AC |
9740 | ac_cpp_err=yes |
9741 | fi | |
9742 | if test -z "$ac_cpp_err"; then | |
9743 | ac_header_preproc=yes | |
9a156167 | 9744 | else |
bec39cab AC |
9745 | echo "$as_me: failed program was:" >&5 |
9746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9747 | ||
9748 | ac_header_preproc=no | |
9a156167 | 9749 | fi |
bec39cab AC |
9750 | rm -f conftest.err conftest.$ac_ext |
9751 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9752 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9753 | ||
9754 | # So? What about this header? | |
9755 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9756 | yes:no: ) | |
9757 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9758 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9760 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9761 | ac_header_preproc=yes | |
9762 | ;; | |
9763 | no:yes:* ) | |
9764 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9765 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9766 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9767 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9768 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9769 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9770 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9771 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9772 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9773 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9774 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9775 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9776 | ( | |
9777 | cat <<\_ASBOX | |
9778 | ## ------------------------------------------ ## | |
9779 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9780 | ## ------------------------------------------ ## | |
9781 | _ASBOX | |
9782 | ) | | |
9783 | sed "s/^/$as_me: WARNING: /" >&2 | |
9784 | ;; | |
9785 | esac | |
9786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9790 | else |
bec39cab | 9791 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9792 | fi |
bec39cab AC |
9793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9795 | ||
9a156167 | 9796 | fi |
bec39cab AC |
9797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9798 | cat >>confdefs.h <<_ACEOF | |
9799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9800 | _ACEOF | |
9a156167 | 9801 | |
9a156167 MK |
9802 | fi |
9803 | ||
bec39cab AC |
9804 | done |
9805 | ||
06825bd1 | 9806 | |
bec39cab AC |
9807 | for ac_header in stdint.h |
9808 | do | |
9809 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9811 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9812 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9813 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9815 | fi | |
9816 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9817 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9818 | else | |
9819 | # Is the header compilable? | |
9820 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9821 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9822 | cat >conftest.$ac_ext <<_ACEOF | |
9823 | /* confdefs.h. */ | |
9824 | _ACEOF | |
9825 | cat confdefs.h >>conftest.$ac_ext | |
9826 | cat >>conftest.$ac_ext <<_ACEOF | |
9827 | /* end confdefs.h. */ | |
9828 | $ac_includes_default | |
9829 | #include <$ac_header> | |
9830 | _ACEOF | |
9831 | rm -f conftest.$ac_objext | |
9832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9833 | (eval $ac_compile) 2>conftest.er1 | |
9834 | ac_status=$? | |
9835 | grep -v '^ *+' conftest.er1 >conftest.err | |
9836 | rm -f conftest.er1 | |
9837 | cat conftest.err >&5 | |
9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9839 | (exit $ac_status); } && | |
121ce6e5 | 9840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9842 | (eval $ac_try) 2>&5 | |
9843 | ac_status=$? | |
9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9845 | (exit $ac_status); }; } && | |
9846 | { ac_try='test -s conftest.$ac_objext' | |
9847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9848 | (eval $ac_try) 2>&5 | |
9849 | ac_status=$? | |
9850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9851 | (exit $ac_status); }; }; then | |
9852 | ac_header_compiler=yes | |
9853 | else | |
9854 | echo "$as_me: failed program was:" >&5 | |
9855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9856 | ||
9857 | ac_header_compiler=no | |
9858 | fi | |
9859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9861 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9862 | ||
9863 | # Is the header present? | |
9864 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9865 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9866 | cat >conftest.$ac_ext <<_ACEOF | |
9867 | /* confdefs.h. */ | |
9868 | _ACEOF | |
9869 | cat confdefs.h >>conftest.$ac_ext | |
9870 | cat >>conftest.$ac_ext <<_ACEOF | |
9871 | /* end confdefs.h. */ | |
9872 | #include <$ac_header> | |
9873 | _ACEOF | |
9874 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9875 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9876 | ac_status=$? | |
9877 | grep -v '^ *+' conftest.er1 >conftest.err | |
9878 | rm -f conftest.er1 | |
9879 | cat conftest.err >&5 | |
9880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9881 | (exit $ac_status); } >/dev/null; then | |
9882 | if test -s conftest.err; then | |
9883 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9884 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9885 | else | |
9886 | ac_cpp_err= | |
9887 | fi | |
06825bd1 | 9888 | else |
bec39cab AC |
9889 | ac_cpp_err=yes |
9890 | fi | |
9891 | if test -z "$ac_cpp_err"; then | |
9892 | ac_header_preproc=yes | |
06825bd1 | 9893 | else |
bec39cab AC |
9894 | echo "$as_me: failed program was:" >&5 |
9895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9896 | ||
9897 | ac_header_preproc=no | |
06825bd1 | 9898 | fi |
bec39cab AC |
9899 | rm -f conftest.err conftest.$ac_ext |
9900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9902 | ||
9903 | # So? What about this header? | |
9904 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9905 | yes:no: ) | |
9906 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9907 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9909 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9910 | ac_header_preproc=yes | |
9911 | ;; | |
9912 | no:yes:* ) | |
9913 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9914 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9915 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9916 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9917 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9918 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9919 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9920 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9922 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9923 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9924 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9925 | ( | |
9926 | cat <<\_ASBOX | |
9927 | ## ------------------------------------------ ## | |
9928 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9929 | ## ------------------------------------------ ## | |
9930 | _ASBOX | |
9931 | ) | | |
9932 | sed "s/^/$as_me: WARNING: /" >&2 | |
9933 | ;; | |
9934 | esac | |
9935 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9937 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
06825bd1 | 9939 | else |
bec39cab | 9940 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 9941 | fi |
bec39cab AC |
9942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9944 | ||
06825bd1 | 9945 | fi |
bec39cab AC |
9946 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9947 | cat >>confdefs.h <<_ACEOF | |
9948 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9949 | _ACEOF | |
06825bd1 | 9950 | |
06825bd1 | 9951 | fi |
4f0be353 | 9952 | |
bec39cab | 9953 | done |
4f0be353 | 9954 | |
06825bd1 | 9955 | |
06825bd1 | 9956 | |
bec39cab AC |
9957 | |
9958 | for ac_header in string.h memory.h strings.h | |
9959 | do | |
9960 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9966 | fi | |
9967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9968 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9969 | else | |
9970 | # Is the header compilable? | |
9971 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9972 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9973 | cat >conftest.$ac_ext <<_ACEOF | |
9974 | /* confdefs.h. */ | |
9975 | _ACEOF | |
9976 | cat confdefs.h >>conftest.$ac_ext | |
9977 | cat >>conftest.$ac_ext <<_ACEOF | |
9978 | /* end confdefs.h. */ | |
9979 | $ac_includes_default | |
9980 | #include <$ac_header> | |
9981 | _ACEOF | |
9982 | rm -f conftest.$ac_objext | |
9983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9984 | (eval $ac_compile) 2>conftest.er1 | |
9985 | ac_status=$? | |
9986 | grep -v '^ *+' conftest.er1 >conftest.err | |
9987 | rm -f conftest.er1 | |
9988 | cat conftest.err >&5 | |
9989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9990 | (exit $ac_status); } && | |
121ce6e5 | 9991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9993 | (eval $ac_try) 2>&5 | |
9994 | ac_status=$? | |
9995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9996 | (exit $ac_status); }; } && | |
9997 | { ac_try='test -s conftest.$ac_objext' | |
9998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9999 | (eval $ac_try) 2>&5 | |
10000 | ac_status=$? | |
10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10002 | (exit $ac_status); }; }; then | |
10003 | ac_header_compiler=yes | |
10004 | else | |
10005 | echo "$as_me: failed program was:" >&5 | |
10006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10007 | ||
10008 | ac_header_compiler=no | |
10009 | fi | |
10010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10011 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10012 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10013 | ||
10014 | # Is the header present? | |
10015 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10016 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10017 | cat >conftest.$ac_ext <<_ACEOF | |
10018 | /* confdefs.h. */ | |
10019 | _ACEOF | |
10020 | cat confdefs.h >>conftest.$ac_ext | |
10021 | cat >>conftest.$ac_ext <<_ACEOF | |
10022 | /* end confdefs.h. */ | |
10023 | #include <$ac_header> | |
10024 | _ACEOF | |
10025 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10026 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10027 | ac_status=$? | |
10028 | grep -v '^ *+' conftest.er1 >conftest.err | |
10029 | rm -f conftest.er1 | |
10030 | cat conftest.err >&5 | |
10031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10032 | (exit $ac_status); } >/dev/null; then | |
10033 | if test -s conftest.err; then | |
10034 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10035 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10036 | else | |
10037 | ac_cpp_err= | |
10038 | fi | |
06825bd1 | 10039 | else |
bec39cab AC |
10040 | ac_cpp_err=yes |
10041 | fi | |
10042 | if test -z "$ac_cpp_err"; then | |
10043 | ac_header_preproc=yes | |
06825bd1 | 10044 | else |
bec39cab AC |
10045 | echo "$as_me: failed program was:" >&5 |
10046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10047 | ||
10048 | ac_header_preproc=no | |
06825bd1 | 10049 | fi |
bec39cab AC |
10050 | rm -f conftest.err conftest.$ac_ext |
10051 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10052 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10053 | ||
10054 | # So? What about this header? | |
10055 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10056 | yes:no: ) | |
10057 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10058 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10059 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10060 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10061 | ac_header_preproc=yes | |
10062 | ;; | |
10063 | no:yes:* ) | |
10064 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10065 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10066 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10067 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10068 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10069 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10070 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10071 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10072 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10073 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10074 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10075 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10076 | ( | |
10077 | cat <<\_ASBOX | |
10078 | ## ------------------------------------------ ## | |
10079 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10080 | ## ------------------------------------------ ## | |
10081 | _ASBOX | |
10082 | ) | | |
10083 | sed "s/^/$as_me: WARNING: /" >&2 | |
10084 | ;; | |
10085 | esac | |
10086 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10090 | else | |
10091 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 10092 | fi |
bec39cab AC |
10093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10094 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 10095 | |
06825bd1 | 10096 | fi |
bec39cab AC |
10097 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10098 | cat >>confdefs.h <<_ACEOF | |
10099 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10100 | _ACEOF | |
06825bd1 | 10101 | |
06825bd1 MK |
10102 | fi |
10103 | ||
bec39cab | 10104 | done |
5ee754fc | 10105 | |
bec39cab AC |
10106 | |
10107 | for ac_header in sys/fault.h | |
5ee754fc | 10108 | do |
bec39cab AC |
10109 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10110 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10111 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10115 | fi | |
10116 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10117 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10118 | else | |
10119 | # Is the header compilable? | |
10120 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10121 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10122 | cat >conftest.$ac_ext <<_ACEOF | |
10123 | /* confdefs.h. */ | |
10124 | _ACEOF | |
10125 | cat confdefs.h >>conftest.$ac_ext | |
10126 | cat >>conftest.$ac_ext <<_ACEOF | |
10127 | /* end confdefs.h. */ | |
10128 | $ac_includes_default | |
10129 | #include <$ac_header> | |
10130 | _ACEOF | |
10131 | rm -f conftest.$ac_objext | |
10132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10133 | (eval $ac_compile) 2>conftest.er1 | |
10134 | ac_status=$? | |
10135 | grep -v '^ *+' conftest.er1 >conftest.err | |
10136 | rm -f conftest.er1 | |
10137 | cat conftest.err >&5 | |
10138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10139 | (exit $ac_status); } && | |
121ce6e5 | 10140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10142 | (eval $ac_try) 2>&5 | |
10143 | ac_status=$? | |
10144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10145 | (exit $ac_status); }; } && | |
10146 | { ac_try='test -s conftest.$ac_objext' | |
10147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10148 | (eval $ac_try) 2>&5 | |
10149 | ac_status=$? | |
10150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10151 | (exit $ac_status); }; }; then | |
10152 | ac_header_compiler=yes | |
10153 | else | |
10154 | echo "$as_me: failed program was:" >&5 | |
10155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10156 | ||
10157 | ac_header_compiler=no | |
10158 | fi | |
10159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10160 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10161 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10162 | ||
10163 | # Is the header present? | |
10164 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10165 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10166 | cat >conftest.$ac_ext <<_ACEOF | |
10167 | /* confdefs.h. */ | |
10168 | _ACEOF | |
10169 | cat confdefs.h >>conftest.$ac_ext | |
10170 | cat >>conftest.$ac_ext <<_ACEOF | |
10171 | /* end confdefs.h. */ | |
10172 | #include <$ac_header> | |
10173 | _ACEOF | |
10174 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10175 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10176 | ac_status=$? | |
10177 | grep -v '^ *+' conftest.er1 >conftest.err | |
10178 | rm -f conftest.er1 | |
10179 | cat conftest.err >&5 | |
10180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10181 | (exit $ac_status); } >/dev/null; then | |
10182 | if test -s conftest.err; then | |
10183 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10184 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10185 | else | |
10186 | ac_cpp_err= | |
10187 | fi | |
5ee754fc | 10188 | else |
bec39cab | 10189 | ac_cpp_err=yes |
5ee754fc | 10190 | fi |
bec39cab AC |
10191 | if test -z "$ac_cpp_err"; then |
10192 | ac_header_preproc=yes | |
10193 | else | |
10194 | echo "$as_me: failed program was:" >&5 | |
10195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10196 | |
bec39cab | 10197 | ac_header_preproc=no |
5ee754fc | 10198 | fi |
bec39cab AC |
10199 | rm -f conftest.err conftest.$ac_ext |
10200 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10201 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10202 | ||
10203 | # So? What about this header? | |
10204 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10205 | yes:no: ) | |
10206 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10207 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10208 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10209 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10210 | ac_header_preproc=yes | |
10211 | ;; | |
10212 | no:yes:* ) | |
10213 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10214 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10215 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10216 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10217 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10218 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10219 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10220 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10221 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10222 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10223 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10224 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10225 | ( | |
10226 | cat <<\_ASBOX | |
10227 | ## ------------------------------------------ ## | |
10228 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10229 | ## ------------------------------------------ ## | |
10230 | _ASBOX | |
10231 | ) | | |
10232 | sed "s/^/$as_me: WARNING: /" >&2 | |
10233 | ;; | |
10234 | esac | |
10235 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10236 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10239 | else |
bec39cab | 10240 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 10241 | fi |
bec39cab AC |
10242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 10244 | |
5ee754fc | 10245 | fi |
bec39cab AC |
10246 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10247 | cat >>confdefs.h <<_ACEOF | |
10248 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10249 | _ACEOF | |
c906108c | 10250 | |
5ee754fc | 10251 | fi |
bec39cab AC |
10252 | |
10253 | done | |
10254 | ||
10255 | ||
10256 | for ac_header in sys/file.h | |
10257 | do | |
10258 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10260 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10261 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10264 | fi | |
10265 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10266 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10267 | else | |
10268 | # Is the header compilable? | |
10269 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10270 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10271 | cat >conftest.$ac_ext <<_ACEOF | |
10272 | /* confdefs.h. */ | |
10273 | _ACEOF | |
10274 | cat confdefs.h >>conftest.$ac_ext | |
10275 | cat >>conftest.$ac_ext <<_ACEOF | |
10276 | /* end confdefs.h. */ | |
10277 | $ac_includes_default | |
10278 | #include <$ac_header> | |
10279 | _ACEOF | |
10280 | rm -f conftest.$ac_objext | |
10281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10282 | (eval $ac_compile) 2>conftest.er1 | |
10283 | ac_status=$? | |
10284 | grep -v '^ *+' conftest.er1 >conftest.err | |
10285 | rm -f conftest.er1 | |
10286 | cat conftest.err >&5 | |
10287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10288 | (exit $ac_status); } && | |
121ce6e5 | 10289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10291 | (eval $ac_try) 2>&5 | |
10292 | ac_status=$? | |
10293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10294 | (exit $ac_status); }; } && | |
10295 | { ac_try='test -s conftest.$ac_objext' | |
10296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10297 | (eval $ac_try) 2>&5 | |
10298 | ac_status=$? | |
10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10300 | (exit $ac_status); }; }; then | |
10301 | ac_header_compiler=yes | |
10302 | else | |
10303 | echo "$as_me: failed program was:" >&5 | |
10304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10305 | ||
10306 | ac_header_compiler=no | |
10307 | fi | |
10308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10309 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10310 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10311 | ||
10312 | # Is the header present? | |
10313 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10314 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10315 | cat >conftest.$ac_ext <<_ACEOF | |
10316 | /* confdefs.h. */ | |
10317 | _ACEOF | |
10318 | cat confdefs.h >>conftest.$ac_ext | |
10319 | cat >>conftest.$ac_ext <<_ACEOF | |
10320 | /* end confdefs.h. */ | |
10321 | #include <$ac_header> | |
10322 | _ACEOF | |
10323 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10324 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10325 | ac_status=$? | |
10326 | grep -v '^ *+' conftest.er1 >conftest.err | |
10327 | rm -f conftest.er1 | |
10328 | cat conftest.err >&5 | |
10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10330 | (exit $ac_status); } >/dev/null; then | |
10331 | if test -s conftest.err; then | |
10332 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10333 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10334 | else | |
10335 | ac_cpp_err= | |
10336 | fi | |
5ee754fc | 10337 | else |
bec39cab | 10338 | ac_cpp_err=yes |
5ee754fc | 10339 | fi |
bec39cab AC |
10340 | if test -z "$ac_cpp_err"; then |
10341 | ac_header_preproc=yes | |
10342 | else | |
10343 | echo "$as_me: failed program was:" >&5 | |
10344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 10345 | |
bec39cab | 10346 | ac_header_preproc=no |
5ee754fc | 10347 | fi |
bec39cab AC |
10348 | rm -f conftest.err conftest.$ac_ext |
10349 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10350 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 10351 | |
bec39cab AC |
10352 | # So? What about this header? |
10353 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10354 | yes:no: ) | |
10355 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10356 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10357 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10358 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10359 | ac_header_preproc=yes | |
10360 | ;; | |
10361 | no:yes:* ) | |
10362 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10363 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10364 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10365 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10366 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10367 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10368 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10369 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10370 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10371 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10372 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10373 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10374 | ( | |
10375 | cat <<\_ASBOX | |
10376 | ## ------------------------------------------ ## | |
10377 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10378 | ## ------------------------------------------ ## | |
10379 | _ASBOX | |
10380 | ) | | |
10381 | sed "s/^/$as_me: WARNING: /" >&2 | |
10382 | ;; | |
10383 | esac | |
10384 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10385 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10386 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9608ab8b | 10388 | else |
bec39cab AC |
10389 | eval "$as_ac_Header=\$ac_header_preproc" |
10390 | fi | |
10391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10393 | |
bec39cab AC |
10394 | fi |
10395 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10396 | cat >>confdefs.h <<_ACEOF | |
10397 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10398 | _ACEOF | |
5ee754fc | 10399 | |
bec39cab | 10400 | fi |
5ee754fc | 10401 | |
bec39cab | 10402 | done |
5ee754fc | 10403 | |
5ee754fc | 10404 | |
bec39cab AC |
10405 | for ac_header in sys/filio.h |
10406 | do | |
10407 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10408 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10409 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10410 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10413 | fi | |
10414 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10415 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10416 | else | |
10417 | # Is the header compilable? | |
10418 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10419 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10420 | cat >conftest.$ac_ext <<_ACEOF | |
10421 | /* confdefs.h. */ | |
10422 | _ACEOF | |
10423 | cat confdefs.h >>conftest.$ac_ext | |
10424 | cat >>conftest.$ac_ext <<_ACEOF | |
10425 | /* end confdefs.h. */ | |
10426 | $ac_includes_default | |
10427 | #include <$ac_header> | |
10428 | _ACEOF | |
10429 | rm -f conftest.$ac_objext | |
10430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10431 | (eval $ac_compile) 2>conftest.er1 | |
10432 | ac_status=$? | |
10433 | grep -v '^ *+' conftest.er1 >conftest.err | |
10434 | rm -f conftest.er1 | |
10435 | cat conftest.err >&5 | |
10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10437 | (exit $ac_status); } && | |
121ce6e5 | 10438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10440 | (eval $ac_try) 2>&5 | |
10441 | ac_status=$? | |
10442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10443 | (exit $ac_status); }; } && | |
10444 | { ac_try='test -s conftest.$ac_objext' | |
10445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10446 | (eval $ac_try) 2>&5 | |
10447 | ac_status=$? | |
10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10449 | (exit $ac_status); }; }; then | |
10450 | ac_header_compiler=yes | |
10451 | else | |
10452 | echo "$as_me: failed program was:" >&5 | |
10453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10454 | ||
10455 | ac_header_compiler=no | |
10456 | fi | |
10457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10458 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10459 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10460 | ||
10461 | # Is the header present? | |
10462 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10463 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10464 | cat >conftest.$ac_ext <<_ACEOF | |
10465 | /* confdefs.h. */ | |
10466 | _ACEOF | |
10467 | cat confdefs.h >>conftest.$ac_ext | |
10468 | cat >>conftest.$ac_ext <<_ACEOF | |
10469 | /* end confdefs.h. */ | |
10470 | #include <$ac_header> | |
10471 | _ACEOF | |
10472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10474 | ac_status=$? | |
10475 | grep -v '^ *+' conftest.er1 >conftest.err | |
10476 | rm -f conftest.er1 | |
10477 | cat conftest.err >&5 | |
10478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10479 | (exit $ac_status); } >/dev/null; then | |
10480 | if test -s conftest.err; then | |
10481 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10482 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10483 | else | |
10484 | ac_cpp_err= | |
10485 | fi | |
5ee754fc | 10486 | else |
bec39cab | 10487 | ac_cpp_err=yes |
5ee754fc | 10488 | fi |
bec39cab AC |
10489 | if test -z "$ac_cpp_err"; then |
10490 | ac_header_preproc=yes | |
10491 | else | |
10492 | echo "$as_me: failed program was:" >&5 | |
10493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10494 | |
bec39cab | 10495 | ac_header_preproc=no |
5ee754fc | 10496 | fi |
bec39cab AC |
10497 | rm -f conftest.err conftest.$ac_ext |
10498 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10499 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10500 | |
bec39cab AC |
10501 | # So? What about this header? |
10502 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10503 | yes:no: ) | |
10504 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10505 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10506 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10507 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10508 | ac_header_preproc=yes | |
10509 | ;; | |
10510 | no:yes:* ) | |
10511 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10512 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10513 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10514 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10515 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10516 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10517 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10518 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10519 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10520 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10521 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10522 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10523 | ( | |
10524 | cat <<\_ASBOX | |
10525 | ## ------------------------------------------ ## | |
10526 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10527 | ## ------------------------------------------ ## | |
10528 | _ASBOX | |
10529 | ) | | |
10530 | sed "s/^/$as_me: WARNING: /" >&2 | |
10531 | ;; | |
10532 | esac | |
10533 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10537 | else |
bec39cab | 10538 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10539 | fi |
bec39cab AC |
10540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10541 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10542 | |
5ee754fc | 10543 | fi |
bec39cab AC |
10544 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10545 | cat >>confdefs.h <<_ACEOF | |
10546 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10547 | _ACEOF | |
5ee754fc MK |
10548 | |
10549 | fi | |
10550 | ||
bec39cab AC |
10551 | done |
10552 | ||
10553 | ||
10554 | for ac_header in sys/ioctl.h | |
10555 | do | |
10556 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10562 | fi | |
10563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10565 | else | |
10566 | # Is the header compilable? | |
10567 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10568 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10569 | cat >conftest.$ac_ext <<_ACEOF | |
10570 | /* confdefs.h. */ | |
10571 | _ACEOF | |
10572 | cat confdefs.h >>conftest.$ac_ext | |
10573 | cat >>conftest.$ac_ext <<_ACEOF | |
10574 | /* end confdefs.h. */ | |
10575 | $ac_includes_default | |
10576 | #include <$ac_header> | |
10577 | _ACEOF | |
10578 | rm -f conftest.$ac_objext | |
10579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10580 | (eval $ac_compile) 2>conftest.er1 | |
10581 | ac_status=$? | |
10582 | grep -v '^ *+' conftest.er1 >conftest.err | |
10583 | rm -f conftest.er1 | |
10584 | cat conftest.err >&5 | |
10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10586 | (exit $ac_status); } && | |
121ce6e5 | 10587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10589 | (eval $ac_try) 2>&5 | |
10590 | ac_status=$? | |
10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10592 | (exit $ac_status); }; } && | |
10593 | { ac_try='test -s conftest.$ac_objext' | |
10594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10595 | (eval $ac_try) 2>&5 | |
10596 | ac_status=$? | |
10597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10598 | (exit $ac_status); }; }; then | |
10599 | ac_header_compiler=yes | |
10600 | else | |
10601 | echo "$as_me: failed program was:" >&5 | |
10602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10603 | ||
10604 | ac_header_compiler=no | |
10605 | fi | |
10606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10607 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10608 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10609 | ||
10610 | # Is the header present? | |
10611 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10612 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10613 | cat >conftest.$ac_ext <<_ACEOF | |
10614 | /* confdefs.h. */ | |
10615 | _ACEOF | |
10616 | cat confdefs.h >>conftest.$ac_ext | |
10617 | cat >>conftest.$ac_ext <<_ACEOF | |
10618 | /* end confdefs.h. */ | |
10619 | #include <$ac_header> | |
10620 | _ACEOF | |
10621 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10622 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10623 | ac_status=$? | |
10624 | grep -v '^ *+' conftest.er1 >conftest.err | |
10625 | rm -f conftest.er1 | |
10626 | cat conftest.err >&5 | |
10627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10628 | (exit $ac_status); } >/dev/null; then | |
10629 | if test -s conftest.err; then | |
10630 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10631 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10632 | else | |
10633 | ac_cpp_err= | |
10634 | fi | |
5ee754fc | 10635 | else |
bec39cab | 10636 | ac_cpp_err=yes |
5ee754fc | 10637 | fi |
bec39cab AC |
10638 | if test -z "$ac_cpp_err"; then |
10639 | ac_header_preproc=yes | |
10640 | else | |
10641 | echo "$as_me: failed program was:" >&5 | |
10642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10643 | |
bec39cab | 10644 | ac_header_preproc=no |
5ee754fc | 10645 | fi |
bec39cab AC |
10646 | rm -f conftest.err conftest.$ac_ext |
10647 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10648 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10649 | |
bec39cab AC |
10650 | # So? What about this header? |
10651 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10652 | yes:no: ) | |
10653 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10654 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10656 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10657 | ac_header_preproc=yes | |
10658 | ;; | |
10659 | no:yes:* ) | |
10660 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10661 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10662 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10663 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10664 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10665 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10666 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10667 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10668 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10669 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10670 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10671 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10672 | ( | |
10673 | cat <<\_ASBOX | |
10674 | ## ------------------------------------------ ## | |
10675 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10676 | ## ------------------------------------------ ## | |
10677 | _ASBOX | |
10678 | ) | | |
10679 | sed "s/^/$as_me: WARNING: /" >&2 | |
10680 | ;; | |
10681 | esac | |
10682 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10683 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10684 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9608ab8b | 10686 | else |
bec39cab | 10687 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10688 | fi |
bec39cab AC |
10689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10690 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
10691 | |
10692 | fi | |
bec39cab AC |
10693 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10694 | cat >>confdefs.h <<_ACEOF | |
10695 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10696 | _ACEOF | |
10697 | ||
5ee754fc MK |
10698 | fi |
10699 | ||
bec39cab | 10700 | done |
5ee754fc | 10701 | |
5ee754fc | 10702 | |
bec39cab | 10703 | for ac_header in sys/param.h |
5ee754fc | 10704 | do |
bec39cab AC |
10705 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10706 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10707 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10708 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10709 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10711 | fi | |
10712 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10713 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10714 | else | |
10715 | # Is the header compilable? | |
10716 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10717 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10718 | cat >conftest.$ac_ext <<_ACEOF | |
10719 | /* confdefs.h. */ | |
10720 | _ACEOF | |
10721 | cat confdefs.h >>conftest.$ac_ext | |
10722 | cat >>conftest.$ac_ext <<_ACEOF | |
10723 | /* end confdefs.h. */ | |
10724 | $ac_includes_default | |
10725 | #include <$ac_header> | |
10726 | _ACEOF | |
10727 | rm -f conftest.$ac_objext | |
10728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10729 | (eval $ac_compile) 2>conftest.er1 | |
10730 | ac_status=$? | |
10731 | grep -v '^ *+' conftest.er1 >conftest.err | |
10732 | rm -f conftest.er1 | |
10733 | cat conftest.err >&5 | |
10734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10735 | (exit $ac_status); } && | |
121ce6e5 | 10736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10738 | (eval $ac_try) 2>&5 | |
10739 | ac_status=$? | |
10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10741 | (exit $ac_status); }; } && | |
10742 | { ac_try='test -s conftest.$ac_objext' | |
10743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10744 | (eval $ac_try) 2>&5 | |
10745 | ac_status=$? | |
10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10747 | (exit $ac_status); }; }; then | |
10748 | ac_header_compiler=yes | |
10749 | else | |
10750 | echo "$as_me: failed program was:" >&5 | |
10751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10752 | ||
10753 | ac_header_compiler=no | |
10754 | fi | |
10755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10756 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10757 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10758 | ||
10759 | # Is the header present? | |
10760 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10761 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10762 | cat >conftest.$ac_ext <<_ACEOF | |
10763 | /* confdefs.h. */ | |
10764 | _ACEOF | |
10765 | cat confdefs.h >>conftest.$ac_ext | |
10766 | cat >>conftest.$ac_ext <<_ACEOF | |
10767 | /* end confdefs.h. */ | |
10768 | #include <$ac_header> | |
10769 | _ACEOF | |
10770 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10772 | ac_status=$? | |
10773 | grep -v '^ *+' conftest.er1 >conftest.err | |
10774 | rm -f conftest.er1 | |
10775 | cat conftest.err >&5 | |
10776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10777 | (exit $ac_status); } >/dev/null; then | |
10778 | if test -s conftest.err; then | |
10779 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10780 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10781 | else | |
10782 | ac_cpp_err= | |
10783 | fi | |
5ee754fc | 10784 | else |
bec39cab | 10785 | ac_cpp_err=yes |
5ee754fc | 10786 | fi |
bec39cab AC |
10787 | if test -z "$ac_cpp_err"; then |
10788 | ac_header_preproc=yes | |
10789 | else | |
10790 | echo "$as_me: failed program was:" >&5 | |
10791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10792 | |
bec39cab | 10793 | ac_header_preproc=no |
5ee754fc | 10794 | fi |
bec39cab AC |
10795 | rm -f conftest.err conftest.$ac_ext |
10796 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10797 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10798 | ||
10799 | # So? What about this header? | |
10800 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10801 | yes:no: ) | |
10802 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10803 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10804 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10805 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10806 | ac_header_preproc=yes | |
10807 | ;; | |
10808 | no:yes:* ) | |
10809 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10810 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10811 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10812 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10813 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10814 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10815 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10816 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10817 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10818 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10819 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10820 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10821 | ( | |
10822 | cat <<\_ASBOX | |
10823 | ## ------------------------------------------ ## | |
10824 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10825 | ## ------------------------------------------ ## | |
10826 | _ASBOX | |
10827 | ) | | |
10828 | sed "s/^/$as_me: WARNING: /" >&2 | |
10829 | ;; | |
10830 | esac | |
10831 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10835 | else |
bec39cab | 10836 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10837 | fi |
bec39cab AC |
10838 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10839 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10840 | |
5ee754fc | 10841 | fi |
bec39cab AC |
10842 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10843 | cat >>confdefs.h <<_ACEOF | |
10844 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10845 | _ACEOF | |
10846 | ||
5ee754fc | 10847 | fi |
bec39cab | 10848 | |
5ee754fc MK |
10849 | done |
10850 | ||
bec39cab AC |
10851 | |
10852 | for ac_header in sys/proc.h | |
5ee754fc | 10853 | do |
bec39cab | 10854 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7cb9022a | 10855 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
bec39cab AC |
10856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 10859 | else |
7cb9022a | 10860 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
10861 | /* confdefs.h. */ |
10862 | _ACEOF | |
10863 | cat confdefs.h >>conftest.$ac_ext | |
10864 | cat >>conftest.$ac_ext <<_ACEOF | |
10865 | /* end confdefs.h. */ | |
7cb9022a MK |
10866 | #if HAVE_SYS_PARAM_H |
10867 | # include <sys/param.h> | |
10868 | #endif | |
10869 | ||
10870 | ||
bec39cab AC |
10871 | #include <$ac_header> |
10872 | _ACEOF | |
10873 | rm -f conftest.$ac_objext | |
10874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10875 | (eval $ac_compile) 2>conftest.er1 | |
10876 | ac_status=$? | |
10877 | grep -v '^ *+' conftest.er1 >conftest.err | |
10878 | rm -f conftest.er1 | |
10879 | cat conftest.err >&5 | |
10880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10881 | (exit $ac_status); } && | |
121ce6e5 | 10882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10884 | (eval $ac_try) 2>&5 | |
10885 | ac_status=$? | |
10886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10887 | (exit $ac_status); }; } && | |
10888 | { ac_try='test -s conftest.$ac_objext' | |
10889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10890 | (eval $ac_try) 2>&5 | |
10891 | ac_status=$? | |
10892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10893 | (exit $ac_status); }; }; then | |
7cb9022a | 10894 | eval "$as_ac_Header=yes" |
bec39cab AC |
10895 | else |
10896 | echo "$as_me: failed program was:" >&5 | |
10897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10898 | ||
7cb9022a | 10899 | eval "$as_ac_Header=no" |
bec39cab AC |
10900 | fi |
10901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 10902 | fi |
bec39cab AC |
10903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10905 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10906 | cat >>confdefs.h <<_ACEOF | |
10907 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10908 | _ACEOF | |
10909 | ||
5ee754fc | 10910 | fi |
bec39cab | 10911 | |
5ee754fc MK |
10912 | done |
10913 | ||
bec39cab AC |
10914 | |
10915 | for ac_header in sys/procfs.h | |
5ee754fc | 10916 | do |
bec39cab AC |
10917 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10918 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10919 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10923 | fi | |
10924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10925 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10926 | else | |
10927 | # Is the header compilable? | |
10928 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10929 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10930 | cat >conftest.$ac_ext <<_ACEOF | |
10931 | /* confdefs.h. */ | |
10932 | _ACEOF | |
10933 | cat confdefs.h >>conftest.$ac_ext | |
10934 | cat >>conftest.$ac_ext <<_ACEOF | |
10935 | /* end confdefs.h. */ | |
10936 | $ac_includes_default | |
10937 | #include <$ac_header> | |
10938 | _ACEOF | |
10939 | rm -f conftest.$ac_objext | |
10940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10941 | (eval $ac_compile) 2>conftest.er1 | |
10942 | ac_status=$? | |
10943 | grep -v '^ *+' conftest.er1 >conftest.err | |
10944 | rm -f conftest.er1 | |
10945 | cat conftest.err >&5 | |
10946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10947 | (exit $ac_status); } && | |
121ce6e5 | 10948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10950 | (eval $ac_try) 2>&5 | |
10951 | ac_status=$? | |
10952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10953 | (exit $ac_status); }; } && | |
10954 | { ac_try='test -s conftest.$ac_objext' | |
10955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10956 | (eval $ac_try) 2>&5 | |
10957 | ac_status=$? | |
10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10959 | (exit $ac_status); }; }; then | |
10960 | ac_header_compiler=yes | |
10961 | else | |
10962 | echo "$as_me: failed program was:" >&5 | |
10963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10964 | ||
10965 | ac_header_compiler=no | |
10966 | fi | |
10967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10968 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10969 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10970 | ||
10971 | # Is the header present? | |
10972 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10973 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10974 | cat >conftest.$ac_ext <<_ACEOF | |
10975 | /* confdefs.h. */ | |
10976 | _ACEOF | |
10977 | cat confdefs.h >>conftest.$ac_ext | |
10978 | cat >>conftest.$ac_ext <<_ACEOF | |
10979 | /* end confdefs.h. */ | |
10980 | #include <$ac_header> | |
10981 | _ACEOF | |
10982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10984 | ac_status=$? | |
10985 | grep -v '^ *+' conftest.er1 >conftest.err | |
10986 | rm -f conftest.er1 | |
10987 | cat conftest.err >&5 | |
10988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10989 | (exit $ac_status); } >/dev/null; then | |
10990 | if test -s conftest.err; then | |
10991 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10992 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10993 | else | |
10994 | ac_cpp_err= | |
10995 | fi | |
10996 | else | |
10997 | ac_cpp_err=yes | |
5ee754fc | 10998 | fi |
bec39cab AC |
10999 | if test -z "$ac_cpp_err"; then |
11000 | ac_header_preproc=yes | |
5ee754fc | 11001 | else |
bec39cab AC |
11002 | echo "$as_me: failed program was:" >&5 |
11003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11004 | ||
11005 | ac_header_preproc=no | |
5ee754fc | 11006 | fi |
bec39cab AC |
11007 | rm -f conftest.err conftest.$ac_ext |
11008 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11009 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11010 | |
bec39cab AC |
11011 | # So? What about this header? |
11012 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11013 | yes:no: ) | |
11014 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11015 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11017 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11018 | ac_header_preproc=yes | |
11019 | ;; | |
11020 | no:yes:* ) | |
11021 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11022 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11023 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11024 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11025 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11026 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11027 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11028 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11030 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11031 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11032 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11033 | ( | |
11034 | cat <<\_ASBOX | |
11035 | ## ------------------------------------------ ## | |
11036 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11037 | ## ------------------------------------------ ## | |
11038 | _ASBOX | |
11039 | ) | | |
11040 | sed "s/^/$as_me: WARNING: /" >&2 | |
11041 | ;; | |
11042 | esac | |
11043 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11044 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11047 | else | |
11048 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11049 | fi |
bec39cab AC |
11050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11051 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11052 | ||
5ee754fc | 11053 | fi |
bec39cab AC |
11054 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11055 | cat >>confdefs.h <<_ACEOF | |
11056 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11057 | _ACEOF | |
11058 | ||
5ee754fc | 11059 | fi |
bec39cab | 11060 | |
5ee754fc MK |
11061 | done |
11062 | ||
bec39cab AC |
11063 | |
11064 | ||
11065 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 11066 | do |
bec39cab AC |
11067 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11073 | fi | |
11074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11076 | else | |
11077 | # Is the header compilable? | |
11078 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11079 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11080 | cat >conftest.$ac_ext <<_ACEOF | |
11081 | /* confdefs.h. */ | |
11082 | _ACEOF | |
11083 | cat confdefs.h >>conftest.$ac_ext | |
11084 | cat >>conftest.$ac_ext <<_ACEOF | |
11085 | /* end confdefs.h. */ | |
11086 | $ac_includes_default | |
11087 | #include <$ac_header> | |
11088 | _ACEOF | |
11089 | rm -f conftest.$ac_objext | |
11090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11091 | (eval $ac_compile) 2>conftest.er1 | |
11092 | ac_status=$? | |
11093 | grep -v '^ *+' conftest.er1 >conftest.err | |
11094 | rm -f conftest.er1 | |
11095 | cat conftest.err >&5 | |
11096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11097 | (exit $ac_status); } && | |
121ce6e5 | 11098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11100 | (eval $ac_try) 2>&5 | |
11101 | ac_status=$? | |
11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11103 | (exit $ac_status); }; } && | |
11104 | { ac_try='test -s conftest.$ac_objext' | |
11105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11106 | (eval $ac_try) 2>&5 | |
11107 | ac_status=$? | |
11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11109 | (exit $ac_status); }; }; then | |
11110 | ac_header_compiler=yes | |
11111 | else | |
11112 | echo "$as_me: failed program was:" >&5 | |
11113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11114 | ||
11115 | ac_header_compiler=no | |
11116 | fi | |
11117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11118 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11119 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11120 | ||
11121 | # Is the header present? | |
11122 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11123 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11124 | cat >conftest.$ac_ext <<_ACEOF | |
11125 | /* confdefs.h. */ | |
11126 | _ACEOF | |
11127 | cat confdefs.h >>conftest.$ac_ext | |
11128 | cat >>conftest.$ac_ext <<_ACEOF | |
11129 | /* end confdefs.h. */ | |
11130 | #include <$ac_header> | |
11131 | _ACEOF | |
11132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11134 | ac_status=$? | |
11135 | grep -v '^ *+' conftest.er1 >conftest.err | |
11136 | rm -f conftest.er1 | |
11137 | cat conftest.err >&5 | |
11138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11139 | (exit $ac_status); } >/dev/null; then | |
11140 | if test -s conftest.err; then | |
11141 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11142 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11143 | else | |
11144 | ac_cpp_err= | |
11145 | fi | |
11146 | else | |
11147 | ac_cpp_err=yes | |
5ee754fc | 11148 | fi |
bec39cab AC |
11149 | if test -z "$ac_cpp_err"; then |
11150 | ac_header_preproc=yes | |
5ee754fc | 11151 | else |
bec39cab AC |
11152 | echo "$as_me: failed program was:" >&5 |
11153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11154 | ||
11155 | ac_header_preproc=no | |
5ee754fc | 11156 | fi |
bec39cab AC |
11157 | rm -f conftest.err conftest.$ac_ext |
11158 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11159 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11160 | |
bec39cab AC |
11161 | # So? What about this header? |
11162 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11163 | yes:no: ) | |
11164 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11165 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11167 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11168 | ac_header_preproc=yes | |
11169 | ;; | |
11170 | no:yes:* ) | |
11171 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11172 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11173 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11174 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11175 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11176 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11177 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11178 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11180 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11181 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11182 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11183 | ( | |
11184 | cat <<\_ASBOX | |
11185 | ## ------------------------------------------ ## | |
11186 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11187 | ## ------------------------------------------ ## | |
11188 | _ASBOX | |
11189 | ) | | |
11190 | sed "s/^/$as_me: WARNING: /" >&2 | |
11191 | ;; | |
11192 | esac | |
11193 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11197 | else | |
11198 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11199 | fi |
bec39cab AC |
11200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11201 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11202 | ||
5ee754fc | 11203 | fi |
bec39cab AC |
11204 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11205 | cat >>confdefs.h <<_ACEOF | |
11206 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11207 | _ACEOF | |
11208 | ||
5ee754fc | 11209 | fi |
bec39cab | 11210 | |
5ee754fc MK |
11211 | done |
11212 | ||
bec39cab AC |
11213 | |
11214 | ||
11215 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 11216 | do |
bec39cab AC |
11217 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11223 | fi | |
11224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11225 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11226 | else | |
11227 | # Is the header compilable? | |
11228 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11229 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11230 | cat >conftest.$ac_ext <<_ACEOF | |
11231 | /* confdefs.h. */ | |
11232 | _ACEOF | |
11233 | cat confdefs.h >>conftest.$ac_ext | |
11234 | cat >>conftest.$ac_ext <<_ACEOF | |
11235 | /* end confdefs.h. */ | |
11236 | $ac_includes_default | |
11237 | #include <$ac_header> | |
11238 | _ACEOF | |
11239 | rm -f conftest.$ac_objext | |
11240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11241 | (eval $ac_compile) 2>conftest.er1 | |
11242 | ac_status=$? | |
11243 | grep -v '^ *+' conftest.er1 >conftest.err | |
11244 | rm -f conftest.er1 | |
11245 | cat conftest.err >&5 | |
11246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11247 | (exit $ac_status); } && | |
121ce6e5 | 11248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11250 | (eval $ac_try) 2>&5 | |
11251 | ac_status=$? | |
11252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11253 | (exit $ac_status); }; } && | |
11254 | { ac_try='test -s conftest.$ac_objext' | |
11255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11256 | (eval $ac_try) 2>&5 | |
11257 | ac_status=$? | |
11258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11259 | (exit $ac_status); }; }; then | |
11260 | ac_header_compiler=yes | |
11261 | else | |
11262 | echo "$as_me: failed program was:" >&5 | |
11263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11264 | ||
11265 | ac_header_compiler=no | |
11266 | fi | |
11267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11268 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11269 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11270 | ||
11271 | # Is the header present? | |
11272 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11273 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11274 | cat >conftest.$ac_ext <<_ACEOF | |
11275 | /* confdefs.h. */ | |
11276 | _ACEOF | |
11277 | cat confdefs.h >>conftest.$ac_ext | |
11278 | cat >>conftest.$ac_ext <<_ACEOF | |
11279 | /* end confdefs.h. */ | |
11280 | #include <$ac_header> | |
11281 | _ACEOF | |
11282 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11283 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11284 | ac_status=$? | |
11285 | grep -v '^ *+' conftest.er1 >conftest.err | |
11286 | rm -f conftest.er1 | |
11287 | cat conftest.err >&5 | |
11288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11289 | (exit $ac_status); } >/dev/null; then | |
11290 | if test -s conftest.err; then | |
11291 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11292 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11293 | else | |
11294 | ac_cpp_err= | |
11295 | fi | |
11296 | else | |
11297 | ac_cpp_err=yes | |
5ee754fc | 11298 | fi |
bec39cab AC |
11299 | if test -z "$ac_cpp_err"; then |
11300 | ac_header_preproc=yes | |
5ee754fc | 11301 | else |
bec39cab AC |
11302 | echo "$as_me: failed program was:" >&5 |
11303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11304 | ||
11305 | ac_header_preproc=no | |
5ee754fc | 11306 | fi |
bec39cab AC |
11307 | rm -f conftest.err conftest.$ac_ext |
11308 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11309 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11310 | |
bec39cab AC |
11311 | # So? What about this header? |
11312 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11313 | yes:no: ) | |
11314 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11315 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11317 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11318 | ac_header_preproc=yes | |
11319 | ;; | |
11320 | no:yes:* ) | |
11321 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11322 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11323 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11324 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11325 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11326 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11327 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11328 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11329 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11330 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11331 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11332 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11333 | ( | |
11334 | cat <<\_ASBOX | |
11335 | ## ------------------------------------------ ## | |
11336 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11337 | ## ------------------------------------------ ## | |
11338 | _ASBOX | |
11339 | ) | | |
11340 | sed "s/^/$as_me: WARNING: /" >&2 | |
11341 | ;; | |
11342 | esac | |
11343 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11347 | else | |
11348 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11349 | fi |
bec39cab AC |
11350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11351 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11352 | ||
5ee754fc | 11353 | fi |
bec39cab AC |
11354 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11355 | cat >>confdefs.h <<_ACEOF | |
11356 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11357 | _ACEOF | |
11358 | ||
5ee754fc | 11359 | fi |
bec39cab | 11360 | |
5ee754fc MK |
11361 | done |
11362 | ||
bec39cab AC |
11363 | |
11364 | for ac_header in sys/select.h | |
5ee754fc | 11365 | do |
bec39cab AC |
11366 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11368 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11370 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11372 | fi | |
11373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11374 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11375 | else | |
11376 | # Is the header compilable? | |
11377 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11378 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11379 | cat >conftest.$ac_ext <<_ACEOF | |
11380 | /* confdefs.h. */ | |
11381 | _ACEOF | |
11382 | cat confdefs.h >>conftest.$ac_ext | |
11383 | cat >>conftest.$ac_ext <<_ACEOF | |
11384 | /* end confdefs.h. */ | |
11385 | $ac_includes_default | |
11386 | #include <$ac_header> | |
11387 | _ACEOF | |
11388 | rm -f conftest.$ac_objext | |
11389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11390 | (eval $ac_compile) 2>conftest.er1 | |
11391 | ac_status=$? | |
11392 | grep -v '^ *+' conftest.er1 >conftest.err | |
11393 | rm -f conftest.er1 | |
11394 | cat conftest.err >&5 | |
11395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11396 | (exit $ac_status); } && | |
121ce6e5 | 11397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11399 | (eval $ac_try) 2>&5 | |
11400 | ac_status=$? | |
11401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11402 | (exit $ac_status); }; } && | |
11403 | { ac_try='test -s conftest.$ac_objext' | |
11404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11405 | (eval $ac_try) 2>&5 | |
11406 | ac_status=$? | |
11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11408 | (exit $ac_status); }; }; then | |
11409 | ac_header_compiler=yes | |
11410 | else | |
11411 | echo "$as_me: failed program was:" >&5 | |
11412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11413 | ||
11414 | ac_header_compiler=no | |
11415 | fi | |
11416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11417 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11418 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11419 | ||
11420 | # Is the header present? | |
11421 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11422 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11423 | cat >conftest.$ac_ext <<_ACEOF | |
11424 | /* confdefs.h. */ | |
11425 | _ACEOF | |
11426 | cat confdefs.h >>conftest.$ac_ext | |
11427 | cat >>conftest.$ac_ext <<_ACEOF | |
11428 | /* end confdefs.h. */ | |
11429 | #include <$ac_header> | |
11430 | _ACEOF | |
11431 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11432 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11433 | ac_status=$? | |
11434 | grep -v '^ *+' conftest.er1 >conftest.err | |
11435 | rm -f conftest.er1 | |
11436 | cat conftest.err >&5 | |
11437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11438 | (exit $ac_status); } >/dev/null; then | |
11439 | if test -s conftest.err; then | |
11440 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11442 | else | |
11443 | ac_cpp_err= | |
11444 | fi | |
11445 | else | |
11446 | ac_cpp_err=yes | |
5ee754fc | 11447 | fi |
bec39cab AC |
11448 | if test -z "$ac_cpp_err"; then |
11449 | ac_header_preproc=yes | |
5ee754fc | 11450 | else |
bec39cab AC |
11451 | echo "$as_me: failed program was:" >&5 |
11452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11453 | ||
11454 | ac_header_preproc=no | |
5ee754fc | 11455 | fi |
bec39cab AC |
11456 | rm -f conftest.err conftest.$ac_ext |
11457 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11458 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11459 | |
bec39cab AC |
11460 | # So? What about this header? |
11461 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11462 | yes:no: ) | |
11463 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11464 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11465 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11466 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11467 | ac_header_preproc=yes | |
11468 | ;; | |
11469 | no:yes:* ) | |
11470 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11471 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11472 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11473 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11474 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11475 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11476 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11477 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11479 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11480 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11481 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11482 | ( | |
11483 | cat <<\_ASBOX | |
11484 | ## ------------------------------------------ ## | |
11485 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11486 | ## ------------------------------------------ ## | |
11487 | _ASBOX | |
11488 | ) | | |
11489 | sed "s/^/$as_me: WARNING: /" >&2 | |
11490 | ;; | |
11491 | esac | |
11492 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11496 | else | |
11497 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11498 | fi |
bec39cab AC |
11499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11500 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11501 | ||
5ee754fc | 11502 | fi |
bec39cab AC |
11503 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11504 | cat >>confdefs.h <<_ACEOF | |
11505 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11506 | _ACEOF | |
11507 | ||
5ee754fc | 11508 | fi |
bec39cab | 11509 | |
5ee754fc MK |
11510 | done |
11511 | ||
bec39cab AC |
11512 | |
11513 | for ac_header in sys/syscall.h | |
5ee754fc | 11514 | do |
bec39cab AC |
11515 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11516 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11517 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11518 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11521 | fi | |
11522 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11523 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11524 | else | |
11525 | # Is the header compilable? | |
11526 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11527 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11528 | cat >conftest.$ac_ext <<_ACEOF | |
11529 | /* confdefs.h. */ | |
11530 | _ACEOF | |
11531 | cat confdefs.h >>conftest.$ac_ext | |
11532 | cat >>conftest.$ac_ext <<_ACEOF | |
11533 | /* end confdefs.h. */ | |
11534 | $ac_includes_default | |
11535 | #include <$ac_header> | |
11536 | _ACEOF | |
11537 | rm -f conftest.$ac_objext | |
11538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11539 | (eval $ac_compile) 2>conftest.er1 | |
11540 | ac_status=$? | |
11541 | grep -v '^ *+' conftest.er1 >conftest.err | |
11542 | rm -f conftest.er1 | |
11543 | cat conftest.err >&5 | |
11544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11545 | (exit $ac_status); } && | |
121ce6e5 | 11546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11548 | (eval $ac_try) 2>&5 | |
11549 | ac_status=$? | |
11550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11551 | (exit $ac_status); }; } && | |
11552 | { ac_try='test -s conftest.$ac_objext' | |
11553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11554 | (eval $ac_try) 2>&5 | |
11555 | ac_status=$? | |
11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11557 | (exit $ac_status); }; }; then | |
11558 | ac_header_compiler=yes | |
11559 | else | |
11560 | echo "$as_me: failed program was:" >&5 | |
11561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11562 | ||
11563 | ac_header_compiler=no | |
11564 | fi | |
11565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11566 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11567 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11568 | ||
11569 | # Is the header present? | |
11570 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11571 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11572 | cat >conftest.$ac_ext <<_ACEOF | |
11573 | /* confdefs.h. */ | |
11574 | _ACEOF | |
11575 | cat confdefs.h >>conftest.$ac_ext | |
11576 | cat >>conftest.$ac_ext <<_ACEOF | |
11577 | /* end confdefs.h. */ | |
11578 | #include <$ac_header> | |
11579 | _ACEOF | |
11580 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11582 | ac_status=$? | |
11583 | grep -v '^ *+' conftest.er1 >conftest.err | |
11584 | rm -f conftest.er1 | |
11585 | cat conftest.err >&5 | |
11586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11587 | (exit $ac_status); } >/dev/null; then | |
11588 | if test -s conftest.err; then | |
11589 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11590 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11591 | else | |
11592 | ac_cpp_err= | |
11593 | fi | |
11594 | else | |
11595 | ac_cpp_err=yes | |
5ee754fc | 11596 | fi |
bec39cab AC |
11597 | if test -z "$ac_cpp_err"; then |
11598 | ac_header_preproc=yes | |
5ee754fc | 11599 | else |
bec39cab AC |
11600 | echo "$as_me: failed program was:" >&5 |
11601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11602 | ||
11603 | ac_header_preproc=no | |
5ee754fc | 11604 | fi |
bec39cab AC |
11605 | rm -f conftest.err conftest.$ac_ext |
11606 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11607 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11608 | |
bec39cab AC |
11609 | # So? What about this header? |
11610 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11611 | yes:no: ) | |
11612 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11613 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11615 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11616 | ac_header_preproc=yes | |
11617 | ;; | |
11618 | no:yes:* ) | |
11619 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11620 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11621 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11622 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11623 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11624 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11625 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11626 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11628 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11629 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11630 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11631 | ( | |
11632 | cat <<\_ASBOX | |
11633 | ## ------------------------------------------ ## | |
11634 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11635 | ## ------------------------------------------ ## | |
11636 | _ASBOX | |
11637 | ) | | |
11638 | sed "s/^/$as_me: WARNING: /" >&2 | |
11639 | ;; | |
11640 | esac | |
11641 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11645 | else | |
11646 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11647 | fi |
bec39cab AC |
11648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11650 | ||
5ee754fc | 11651 | fi |
bec39cab AC |
11652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11653 | cat >>confdefs.h <<_ACEOF | |
11654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11655 | _ACEOF | |
11656 | ||
5ee754fc | 11657 | fi |
bec39cab | 11658 | |
5ee754fc MK |
11659 | done |
11660 | ||
bec39cab AC |
11661 | |
11662 | for ac_header in sys/types.h | |
5ee754fc | 11663 | do |
bec39cab AC |
11664 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11665 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11666 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11667 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11668 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11670 | fi | |
11671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11672 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11673 | else | |
11674 | # Is the header compilable? | |
11675 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11676 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11677 | cat >conftest.$ac_ext <<_ACEOF | |
11678 | /* confdefs.h. */ | |
11679 | _ACEOF | |
11680 | cat confdefs.h >>conftest.$ac_ext | |
11681 | cat >>conftest.$ac_ext <<_ACEOF | |
11682 | /* end confdefs.h. */ | |
11683 | $ac_includes_default | |
11684 | #include <$ac_header> | |
11685 | _ACEOF | |
11686 | rm -f conftest.$ac_objext | |
11687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11688 | (eval $ac_compile) 2>conftest.er1 | |
11689 | ac_status=$? | |
11690 | grep -v '^ *+' conftest.er1 >conftest.err | |
11691 | rm -f conftest.er1 | |
11692 | cat conftest.err >&5 | |
11693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11694 | (exit $ac_status); } && | |
121ce6e5 | 11695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11697 | (eval $ac_try) 2>&5 | |
11698 | ac_status=$? | |
11699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11700 | (exit $ac_status); }; } && | |
11701 | { ac_try='test -s conftest.$ac_objext' | |
11702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11703 | (eval $ac_try) 2>&5 | |
11704 | ac_status=$? | |
11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11706 | (exit $ac_status); }; }; then | |
11707 | ac_header_compiler=yes | |
11708 | else | |
11709 | echo "$as_me: failed program was:" >&5 | |
11710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11711 | ||
11712 | ac_header_compiler=no | |
11713 | fi | |
11714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11715 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11716 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11717 | ||
11718 | # Is the header present? | |
11719 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11720 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11721 | cat >conftest.$ac_ext <<_ACEOF | |
11722 | /* confdefs.h. */ | |
11723 | _ACEOF | |
11724 | cat confdefs.h >>conftest.$ac_ext | |
11725 | cat >>conftest.$ac_ext <<_ACEOF | |
11726 | /* end confdefs.h. */ | |
11727 | #include <$ac_header> | |
11728 | _ACEOF | |
11729 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11730 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11731 | ac_status=$? | |
11732 | grep -v '^ *+' conftest.er1 >conftest.err | |
11733 | rm -f conftest.er1 | |
11734 | cat conftest.err >&5 | |
11735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11736 | (exit $ac_status); } >/dev/null; then | |
11737 | if test -s conftest.err; then | |
11738 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11739 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11740 | else | |
11741 | ac_cpp_err= | |
11742 | fi | |
11743 | else | |
11744 | ac_cpp_err=yes | |
5ee754fc | 11745 | fi |
bec39cab AC |
11746 | if test -z "$ac_cpp_err"; then |
11747 | ac_header_preproc=yes | |
5ee754fc | 11748 | else |
bec39cab AC |
11749 | echo "$as_me: failed program was:" >&5 |
11750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11751 | ||
11752 | ac_header_preproc=no | |
5ee754fc | 11753 | fi |
bec39cab AC |
11754 | rm -f conftest.err conftest.$ac_ext |
11755 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11756 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11757 | |
bec39cab AC |
11758 | # So? What about this header? |
11759 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11760 | yes:no: ) | |
11761 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11762 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11763 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11764 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11765 | ac_header_preproc=yes | |
11766 | ;; | |
11767 | no:yes:* ) | |
11768 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11769 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11770 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11771 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11772 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11773 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11774 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11775 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11776 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11777 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11778 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11779 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11780 | ( | |
11781 | cat <<\_ASBOX | |
11782 | ## ------------------------------------------ ## | |
11783 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11784 | ## ------------------------------------------ ## | |
11785 | _ASBOX | |
11786 | ) | | |
11787 | sed "s/^/$as_me: WARNING: /" >&2 | |
11788 | ;; | |
11789 | esac | |
11790 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11792 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11794 | else | |
11795 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11796 | fi |
bec39cab AC |
11797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11799 | ||
5ee754fc | 11800 | fi |
bec39cab AC |
11801 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11802 | cat >>confdefs.h <<_ACEOF | |
11803 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11804 | _ACEOF | |
11805 | ||
5ee754fc | 11806 | fi |
bec39cab | 11807 | |
5ee754fc MK |
11808 | done |
11809 | ||
bec39cab AC |
11810 | |
11811 | for ac_header in sys/user.h | |
5ee754fc | 11812 | do |
bec39cab | 11813 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7cb9022a | 11814 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
bec39cab AC |
11815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11816 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 11818 | else |
7cb9022a | 11819 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
11820 | /* confdefs.h. */ |
11821 | _ACEOF | |
11822 | cat confdefs.h >>conftest.$ac_ext | |
11823 | cat >>conftest.$ac_ext <<_ACEOF | |
11824 | /* end confdefs.h. */ | |
7cb9022a MK |
11825 | #if HAVE_SYS_PARAM_H |
11826 | # include <sys/param.h> | |
11827 | #endif | |
11828 | ||
11829 | ||
bec39cab AC |
11830 | #include <$ac_header> |
11831 | _ACEOF | |
11832 | rm -f conftest.$ac_objext | |
11833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11834 | (eval $ac_compile) 2>conftest.er1 | |
11835 | ac_status=$? | |
11836 | grep -v '^ *+' conftest.er1 >conftest.err | |
11837 | rm -f conftest.er1 | |
11838 | cat conftest.err >&5 | |
11839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11840 | (exit $ac_status); } && | |
121ce6e5 | 11841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11843 | (eval $ac_try) 2>&5 | |
11844 | ac_status=$? | |
11845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11846 | (exit $ac_status); }; } && | |
11847 | { ac_try='test -s conftest.$ac_objext' | |
11848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11849 | (eval $ac_try) 2>&5 | |
11850 | ac_status=$? | |
11851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11852 | (exit $ac_status); }; }; then | |
7cb9022a | 11853 | eval "$as_ac_Header=yes" |
bec39cab AC |
11854 | else |
11855 | echo "$as_me: failed program was:" >&5 | |
11856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11857 | ||
7cb9022a | 11858 | eval "$as_ac_Header=no" |
bec39cab AC |
11859 | fi |
11860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 11861 | fi |
bec39cab AC |
11862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11864 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11865 | cat >>confdefs.h <<_ACEOF | |
11866 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11867 | _ACEOF | |
11868 | ||
5ee754fc | 11869 | fi |
bec39cab | 11870 | |
5ee754fc MK |
11871 | done |
11872 | ||
bec39cab AC |
11873 | |
11874 | ||
11875 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 11876 | do |
bec39cab AC |
11877 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11879 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11883 | fi | |
11884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11886 | else | |
11887 | # Is the header compilable? | |
11888 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11889 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11890 | cat >conftest.$ac_ext <<_ACEOF | |
11891 | /* confdefs.h. */ | |
11892 | _ACEOF | |
11893 | cat confdefs.h >>conftest.$ac_ext | |
11894 | cat >>conftest.$ac_ext <<_ACEOF | |
11895 | /* end confdefs.h. */ | |
11896 | $ac_includes_default | |
11897 | #include <$ac_header> | |
11898 | _ACEOF | |
11899 | rm -f conftest.$ac_objext | |
11900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11901 | (eval $ac_compile) 2>conftest.er1 | |
11902 | ac_status=$? | |
11903 | grep -v '^ *+' conftest.er1 >conftest.err | |
11904 | rm -f conftest.er1 | |
11905 | cat conftest.err >&5 | |
11906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11907 | (exit $ac_status); } && | |
121ce6e5 | 11908 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11910 | (eval $ac_try) 2>&5 | |
11911 | ac_status=$? | |
11912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11913 | (exit $ac_status); }; } && | |
11914 | { ac_try='test -s conftest.$ac_objext' | |
11915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11916 | (eval $ac_try) 2>&5 | |
11917 | ac_status=$? | |
11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11919 | (exit $ac_status); }; }; then | |
11920 | ac_header_compiler=yes | |
11921 | else | |
11922 | echo "$as_me: failed program was:" >&5 | |
11923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11924 | ||
11925 | ac_header_compiler=no | |
11926 | fi | |
11927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11928 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11929 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11930 | ||
11931 | # Is the header present? | |
11932 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11933 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11934 | cat >conftest.$ac_ext <<_ACEOF | |
11935 | /* confdefs.h. */ | |
11936 | _ACEOF | |
11937 | cat confdefs.h >>conftest.$ac_ext | |
11938 | cat >>conftest.$ac_ext <<_ACEOF | |
11939 | /* end confdefs.h. */ | |
11940 | #include <$ac_header> | |
11941 | _ACEOF | |
11942 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11943 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11944 | ac_status=$? | |
11945 | grep -v '^ *+' conftest.er1 >conftest.err | |
11946 | rm -f conftest.er1 | |
11947 | cat conftest.err >&5 | |
11948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11949 | (exit $ac_status); } >/dev/null; then | |
11950 | if test -s conftest.err; then | |
11951 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11952 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11953 | else | |
11954 | ac_cpp_err= | |
11955 | fi | |
11956 | else | |
11957 | ac_cpp_err=yes | |
5ee754fc | 11958 | fi |
bec39cab AC |
11959 | if test -z "$ac_cpp_err"; then |
11960 | ac_header_preproc=yes | |
5ee754fc | 11961 | else |
bec39cab AC |
11962 | echo "$as_me: failed program was:" >&5 |
11963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11964 | ||
11965 | ac_header_preproc=no | |
5ee754fc | 11966 | fi |
bec39cab AC |
11967 | rm -f conftest.err conftest.$ac_ext |
11968 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11969 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11970 | |
bec39cab AC |
11971 | # So? What about this header? |
11972 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11973 | yes:no: ) | |
11974 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11975 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11976 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11977 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11978 | ac_header_preproc=yes | |
11979 | ;; | |
11980 | no:yes:* ) | |
11981 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11982 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11983 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11984 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11985 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11986 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11987 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11988 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11989 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11990 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11991 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11992 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11993 | ( | |
11994 | cat <<\_ASBOX | |
11995 | ## ------------------------------------------ ## | |
11996 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11997 | ## ------------------------------------------ ## | |
11998 | _ASBOX | |
11999 | ) | | |
12000 | sed "s/^/$as_me: WARNING: /" >&2 | |
12001 | ;; | |
12002 | esac | |
12003 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12007 | else | |
12008 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12009 | fi |
bec39cab AC |
12010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12012 | ||
9608ab8b | 12013 | fi |
bec39cab AC |
12014 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12015 | cat >>confdefs.h <<_ACEOF | |
12016 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12017 | _ACEOF | |
12018 | ||
9608ab8b | 12019 | fi |
bec39cab | 12020 | |
9608ab8b | 12021 | done |
5ee754fc | 12022 | |
bec39cab AC |
12023 | |
12024 | ||
12025 | ||
12026 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 12027 | do |
bec39cab AC |
12028 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12030 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12034 | fi | |
12035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12036 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12037 | else | |
12038 | # Is the header compilable? | |
12039 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12040 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12041 | cat >conftest.$ac_ext <<_ACEOF | |
12042 | /* confdefs.h. */ | |
12043 | _ACEOF | |
12044 | cat confdefs.h >>conftest.$ac_ext | |
12045 | cat >>conftest.$ac_ext <<_ACEOF | |
12046 | /* end confdefs.h. */ | |
12047 | $ac_includes_default | |
12048 | #include <$ac_header> | |
12049 | _ACEOF | |
12050 | rm -f conftest.$ac_objext | |
12051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12052 | (eval $ac_compile) 2>conftest.er1 | |
12053 | ac_status=$? | |
12054 | grep -v '^ *+' conftest.er1 >conftest.err | |
12055 | rm -f conftest.er1 | |
12056 | cat conftest.err >&5 | |
12057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12058 | (exit $ac_status); } && | |
121ce6e5 | 12059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12061 | (eval $ac_try) 2>&5 | |
12062 | ac_status=$? | |
12063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12064 | (exit $ac_status); }; } && | |
12065 | { ac_try='test -s conftest.$ac_objext' | |
12066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12067 | (eval $ac_try) 2>&5 | |
12068 | ac_status=$? | |
12069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12070 | (exit $ac_status); }; }; then | |
12071 | ac_header_compiler=yes | |
12072 | else | |
12073 | echo "$as_me: failed program was:" >&5 | |
12074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12075 | ||
12076 | ac_header_compiler=no | |
12077 | fi | |
12078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12079 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12080 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12081 | ||
12082 | # Is the header present? | |
12083 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12084 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12085 | cat >conftest.$ac_ext <<_ACEOF | |
12086 | /* confdefs.h. */ | |
12087 | _ACEOF | |
12088 | cat confdefs.h >>conftest.$ac_ext | |
12089 | cat >>conftest.$ac_ext <<_ACEOF | |
12090 | /* end confdefs.h. */ | |
12091 | #include <$ac_header> | |
12092 | _ACEOF | |
12093 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12094 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12095 | ac_status=$? | |
12096 | grep -v '^ *+' conftest.er1 >conftest.err | |
12097 | rm -f conftest.er1 | |
12098 | cat conftest.err >&5 | |
12099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12100 | (exit $ac_status); } >/dev/null; then | |
12101 | if test -s conftest.err; then | |
12102 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12103 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12104 | else | |
12105 | ac_cpp_err= | |
12106 | fi | |
12107 | else | |
12108 | ac_cpp_err=yes | |
9608ab8b | 12109 | fi |
bec39cab AC |
12110 | if test -z "$ac_cpp_err"; then |
12111 | ac_header_preproc=yes | |
9608ab8b | 12112 | else |
bec39cab AC |
12113 | echo "$as_me: failed program was:" >&5 |
12114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12115 | ||
12116 | ac_header_preproc=no | |
9608ab8b | 12117 | fi |
bec39cab AC |
12118 | rm -f conftest.err conftest.$ac_ext |
12119 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12120 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 12121 | |
bec39cab AC |
12122 | # So? What about this header? |
12123 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12124 | yes:no: ) | |
12125 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12126 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12127 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12128 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12129 | ac_header_preproc=yes | |
12130 | ;; | |
12131 | no:yes:* ) | |
12132 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12133 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12134 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12135 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12136 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12137 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12138 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12139 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12141 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12142 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12143 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12144 | ( | |
12145 | cat <<\_ASBOX | |
12146 | ## ------------------------------------------ ## | |
12147 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12148 | ## ------------------------------------------ ## | |
12149 | _ASBOX | |
12150 | ) | | |
12151 | sed "s/^/$as_me: WARNING: /" >&2 | |
12152 | ;; | |
12153 | esac | |
12154 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12158 | else | |
12159 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12160 | fi |
bec39cab AC |
12161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12162 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12163 | ||
9608ab8b | 12164 | fi |
bec39cab AC |
12165 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12166 | cat >>confdefs.h <<_ACEOF | |
12167 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12168 | _ACEOF | |
12169 | ||
9608ab8b | 12170 | fi |
bec39cab | 12171 | |
5ee754fc | 12172 | done |
9608ab8b | 12173 | |
bec39cab AC |
12174 | |
12175 | for ac_header in unistd.h | |
78434e59 | 12176 | do |
bec39cab AC |
12177 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12179 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12183 | fi | |
12184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12185 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12186 | else | |
12187 | # Is the header compilable? | |
12188 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12190 | cat >conftest.$ac_ext <<_ACEOF | |
12191 | /* confdefs.h. */ | |
12192 | _ACEOF | |
12193 | cat confdefs.h >>conftest.$ac_ext | |
12194 | cat >>conftest.$ac_ext <<_ACEOF | |
12195 | /* end confdefs.h. */ | |
12196 | $ac_includes_default | |
12197 | #include <$ac_header> | |
12198 | _ACEOF | |
12199 | rm -f conftest.$ac_objext | |
12200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12201 | (eval $ac_compile) 2>conftest.er1 | |
12202 | ac_status=$? | |
12203 | grep -v '^ *+' conftest.er1 >conftest.err | |
12204 | rm -f conftest.er1 | |
12205 | cat conftest.err >&5 | |
12206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12207 | (exit $ac_status); } && | |
121ce6e5 | 12208 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12210 | (eval $ac_try) 2>&5 | |
12211 | ac_status=$? | |
12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12213 | (exit $ac_status); }; } && | |
12214 | { ac_try='test -s conftest.$ac_objext' | |
12215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12216 | (eval $ac_try) 2>&5 | |
12217 | ac_status=$? | |
12218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12219 | (exit $ac_status); }; }; then | |
12220 | ac_header_compiler=yes | |
12221 | else | |
12222 | echo "$as_me: failed program was:" >&5 | |
12223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12224 | ||
12225 | ac_header_compiler=no | |
12226 | fi | |
12227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12228 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12229 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12230 | ||
12231 | # Is the header present? | |
12232 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12233 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12234 | cat >conftest.$ac_ext <<_ACEOF | |
12235 | /* confdefs.h. */ | |
12236 | _ACEOF | |
12237 | cat confdefs.h >>conftest.$ac_ext | |
12238 | cat >>conftest.$ac_ext <<_ACEOF | |
12239 | /* end confdefs.h. */ | |
12240 | #include <$ac_header> | |
12241 | _ACEOF | |
12242 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12243 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12244 | ac_status=$? | |
12245 | grep -v '^ *+' conftest.er1 >conftest.err | |
12246 | rm -f conftest.er1 | |
12247 | cat conftest.err >&5 | |
12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12249 | (exit $ac_status); } >/dev/null; then | |
12250 | if test -s conftest.err; then | |
12251 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12252 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12253 | else | |
12254 | ac_cpp_err= | |
12255 | fi | |
12256 | else | |
12257 | ac_cpp_err=yes | |
78434e59 | 12258 | fi |
bec39cab AC |
12259 | if test -z "$ac_cpp_err"; then |
12260 | ac_header_preproc=yes | |
78434e59 | 12261 | else |
bec39cab AC |
12262 | echo "$as_me: failed program was:" >&5 |
12263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12264 | ||
12265 | ac_header_preproc=no | |
78434e59 | 12266 | fi |
bec39cab AC |
12267 | rm -f conftest.err conftest.$ac_ext |
12268 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12269 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 12270 | |
bec39cab AC |
12271 | # So? What about this header? |
12272 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12273 | yes:no: ) | |
12274 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12275 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12276 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12277 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12278 | ac_header_preproc=yes | |
12279 | ;; | |
12280 | no:yes:* ) | |
12281 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12282 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12283 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12284 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12285 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12286 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12287 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12288 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12290 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12291 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12292 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12293 | ( | |
12294 | cat <<\_ASBOX | |
12295 | ## ------------------------------------------ ## | |
12296 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12297 | ## ------------------------------------------ ## | |
12298 | _ASBOX | |
12299 | ) | | |
12300 | sed "s/^/$as_me: WARNING: /" >&2 | |
12301 | ;; | |
12302 | esac | |
12303 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12304 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12307 | else | |
12308 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 12309 | fi |
bec39cab AC |
12310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12311 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12312 | ||
086ec9eb | 12313 | fi |
bec39cab AC |
12314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12315 | cat >>confdefs.h <<_ACEOF | |
12316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12317 | _ACEOF | |
12318 | ||
086ec9eb | 12319 | fi |
bec39cab | 12320 | |
086ec9eb MK |
12321 | done |
12322 | ||
9608ab8b | 12323 | |
b1d19a62 | 12324 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
12325 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
12326 | # think that we don't have <curses.h> if we're using GCC. | |
12327 | case $host_os in | |
b1d19a62 | 12328 | solaris2.[789]) |
5ee754fc | 12329 | if test "$GCC" = yes; then |
bec39cab AC |
12330 | |
12331 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 12332 | #define _MSE_INT_H 1 |
bec39cab | 12333 | _ACEOF |
5ee754fc MK |
12334 | |
12335 | fi ;; | |
12336 | esac | |
bec39cab AC |
12337 | |
12338 | ||
12339 | ||
12340 | ||
12341 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 12342 | do |
bec39cab AC |
12343 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12345 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12347 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12349 | fi | |
12350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12351 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12352 | else | |
12353 | # Is the header compilable? | |
12354 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12355 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12356 | cat >conftest.$ac_ext <<_ACEOF | |
12357 | /* confdefs.h. */ | |
12358 | _ACEOF | |
12359 | cat confdefs.h >>conftest.$ac_ext | |
12360 | cat >>conftest.$ac_ext <<_ACEOF | |
12361 | /* end confdefs.h. */ | |
12362 | $ac_includes_default | |
12363 | #include <$ac_header> | |
12364 | _ACEOF | |
12365 | rm -f conftest.$ac_objext | |
12366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12367 | (eval $ac_compile) 2>conftest.er1 | |
12368 | ac_status=$? | |
12369 | grep -v '^ *+' conftest.er1 >conftest.err | |
12370 | rm -f conftest.er1 | |
12371 | cat conftest.err >&5 | |
12372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12373 | (exit $ac_status); } && | |
121ce6e5 | 12374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12376 | (eval $ac_try) 2>&5 | |
12377 | ac_status=$? | |
12378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12379 | (exit $ac_status); }; } && | |
12380 | { ac_try='test -s conftest.$ac_objext' | |
12381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12382 | (eval $ac_try) 2>&5 | |
12383 | ac_status=$? | |
12384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12385 | (exit $ac_status); }; }; then | |
12386 | ac_header_compiler=yes | |
12387 | else | |
12388 | echo "$as_me: failed program was:" >&5 | |
12389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12390 | ||
12391 | ac_header_compiler=no | |
12392 | fi | |
12393 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12394 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12395 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12396 | ||
12397 | # Is the header present? | |
12398 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12399 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12400 | cat >conftest.$ac_ext <<_ACEOF | |
12401 | /* confdefs.h. */ | |
12402 | _ACEOF | |
12403 | cat confdefs.h >>conftest.$ac_ext | |
12404 | cat >>conftest.$ac_ext <<_ACEOF | |
12405 | /* end confdefs.h. */ | |
12406 | #include <$ac_header> | |
12407 | _ACEOF | |
12408 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12409 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12410 | ac_status=$? | |
12411 | grep -v '^ *+' conftest.er1 >conftest.err | |
12412 | rm -f conftest.er1 | |
12413 | cat conftest.err >&5 | |
12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12415 | (exit $ac_status); } >/dev/null; then | |
12416 | if test -s conftest.err; then | |
12417 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12418 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12419 | else | |
12420 | ac_cpp_err= | |
12421 | fi | |
12422 | else | |
12423 | ac_cpp_err=yes | |
c906108c | 12424 | fi |
bec39cab AC |
12425 | if test -z "$ac_cpp_err"; then |
12426 | ac_header_preproc=yes | |
12427 | else | |
12428 | echo "$as_me: failed program was:" >&5 | |
12429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12430 | ||
12431 | ac_header_preproc=no | |
c906108c | 12432 | fi |
bec39cab AC |
12433 | rm -f conftest.err conftest.$ac_ext |
12434 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12435 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12436 | ||
12437 | # So? What about this header? | |
12438 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12439 | yes:no: ) | |
12440 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12441 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12442 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12443 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12444 | ac_header_preproc=yes | |
12445 | ;; | |
12446 | no:yes:* ) | |
12447 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12448 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12449 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12450 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12451 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12452 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12453 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12454 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12455 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12456 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12457 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12458 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12459 | ( | |
12460 | cat <<\_ASBOX | |
12461 | ## ------------------------------------------ ## | |
12462 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12463 | ## ------------------------------------------ ## | |
12464 | _ASBOX | |
12465 | ) | | |
12466 | sed "s/^/$as_me: WARNING: /" >&2 | |
12467 | ;; | |
12468 | esac | |
12469 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12470 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12471 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 12473 | else |
bec39cab | 12474 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 12475 | fi |
bec39cab AC |
12476 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12477 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12478 | ||
12479 | fi | |
12480 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12481 | cat >>confdefs.h <<_ACEOF | |
12482 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12483 | _ACEOF | |
12484 | ||
12485 | fi | |
12486 | ||
5ee754fc | 12487 | done |
c906108c | 12488 | |
bec39cab | 12489 | |
065a1afc | 12490 | for ac_header in ncurses/term.h |
3b78cdbb | 12491 | do |
bec39cab AC |
12492 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12494 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12495 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12498 | fi | |
12499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12500 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12501 | else | |
12502 | # Is the header compilable? | |
12503 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12504 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12505 | cat >conftest.$ac_ext <<_ACEOF | |
12506 | /* confdefs.h. */ | |
12507 | _ACEOF | |
12508 | cat confdefs.h >>conftest.$ac_ext | |
12509 | cat >>conftest.$ac_ext <<_ACEOF | |
12510 | /* end confdefs.h. */ | |
12511 | $ac_includes_default | |
12512 | #include <$ac_header> | |
12513 | _ACEOF | |
12514 | rm -f conftest.$ac_objext | |
12515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12516 | (eval $ac_compile) 2>conftest.er1 | |
12517 | ac_status=$? | |
12518 | grep -v '^ *+' conftest.er1 >conftest.err | |
12519 | rm -f conftest.er1 | |
12520 | cat conftest.err >&5 | |
12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12522 | (exit $ac_status); } && | |
121ce6e5 | 12523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12525 | (eval $ac_try) 2>&5 | |
12526 | ac_status=$? | |
12527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12528 | (exit $ac_status); }; } && | |
12529 | { ac_try='test -s conftest.$ac_objext' | |
12530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12531 | (eval $ac_try) 2>&5 | |
12532 | ac_status=$? | |
12533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12534 | (exit $ac_status); }; }; then | |
12535 | ac_header_compiler=yes | |
12536 | else | |
12537 | echo "$as_me: failed program was:" >&5 | |
12538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12539 | ||
12540 | ac_header_compiler=no | |
12541 | fi | |
12542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12543 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12544 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12545 | ||
12546 | # Is the header present? | |
12547 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12548 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12549 | cat >conftest.$ac_ext <<_ACEOF | |
12550 | /* confdefs.h. */ | |
12551 | _ACEOF | |
12552 | cat confdefs.h >>conftest.$ac_ext | |
12553 | cat >>conftest.$ac_ext <<_ACEOF | |
12554 | /* end confdefs.h. */ | |
12555 | #include <$ac_header> | |
12556 | _ACEOF | |
12557 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12558 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12559 | ac_status=$? | |
12560 | grep -v '^ *+' conftest.er1 >conftest.err | |
12561 | rm -f conftest.er1 | |
12562 | cat conftest.err >&5 | |
12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12564 | (exit $ac_status); } >/dev/null; then | |
12565 | if test -s conftest.err; then | |
12566 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12567 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12568 | else | |
12569 | ac_cpp_err= | |
12570 | fi | |
12571 | else | |
12572 | ac_cpp_err=yes | |
3b78cdbb | 12573 | fi |
bec39cab AC |
12574 | if test -z "$ac_cpp_err"; then |
12575 | ac_header_preproc=yes | |
12576 | else | |
12577 | echo "$as_me: failed program was:" >&5 | |
12578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12579 | ||
12580 | ac_header_preproc=no | |
3b78cdbb | 12581 | fi |
bec39cab AC |
12582 | rm -f conftest.err conftest.$ac_ext |
12583 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12584 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12585 | ||
12586 | # So? What about this header? | |
12587 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12588 | yes:no: ) | |
12589 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12590 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12591 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12592 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12593 | ac_header_preproc=yes | |
12594 | ;; | |
12595 | no:yes:* ) | |
12596 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12597 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12598 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12599 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12600 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12601 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12602 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12603 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12605 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12606 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12607 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12608 | ( | |
12609 | cat <<\_ASBOX | |
12610 | ## ------------------------------------------ ## | |
12611 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12612 | ## ------------------------------------------ ## | |
12613 | _ASBOX | |
12614 | ) | | |
12615 | sed "s/^/$as_me: WARNING: /" >&2 | |
12616 | ;; | |
12617 | esac | |
12618 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3b78cdbb | 12622 | else |
bec39cab AC |
12623 | eval "$as_ac_Header=\$ac_header_preproc" |
12624 | fi | |
12625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12626 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12627 | ||
3b78cdbb | 12628 | fi |
bec39cab AC |
12629 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12630 | cat >>confdefs.h <<_ACEOF | |
12631 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12632 | _ACEOF | |
12633 | ||
12634 | fi | |
12635 | ||
3b78cdbb DA |
12636 | done |
12637 | ||
c906108c | 12638 | |
065a1afc JB |
12639 | for ac_header in term.h |
12640 | do | |
12641 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12642 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12646 | else | |
12647 | cat >conftest.$ac_ext <<_ACEOF | |
12648 | /* confdefs.h. */ | |
12649 | _ACEOF | |
12650 | cat confdefs.h >>conftest.$ac_ext | |
12651 | cat >>conftest.$ac_ext <<_ACEOF | |
12652 | /* end confdefs.h. */ | |
12653 | #if HAVE_CURSES_H | |
12654 | # include <curses.h> | |
12655 | #endif | |
12656 | ||
12657 | ||
12658 | #include <$ac_header> | |
12659 | _ACEOF | |
12660 | rm -f conftest.$ac_objext | |
12661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12662 | (eval $ac_compile) 2>conftest.er1 | |
12663 | ac_status=$? | |
12664 | grep -v '^ *+' conftest.er1 >conftest.err | |
12665 | rm -f conftest.er1 | |
12666 | cat conftest.err >&5 | |
12667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12668 | (exit $ac_status); } && | |
121ce6e5 | 12669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
065a1afc JB |
12670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12671 | (eval $ac_try) 2>&5 | |
12672 | ac_status=$? | |
12673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12674 | (exit $ac_status); }; } && | |
12675 | { ac_try='test -s conftest.$ac_objext' | |
12676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12677 | (eval $ac_try) 2>&5 | |
12678 | ac_status=$? | |
12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12680 | (exit $ac_status); }; }; then | |
12681 | eval "$as_ac_Header=yes" | |
12682 | else | |
12683 | echo "$as_me: failed program was:" >&5 | |
12684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12685 | ||
12686 | eval "$as_ac_Header=no" | |
12687 | fi | |
12688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12689 | fi | |
12690 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12691 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12692 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12693 | cat >>confdefs.h <<_ACEOF | |
12694 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12695 | _ACEOF | |
12696 | ||
12697 | fi | |
12698 | ||
12699 | done | |
12700 | ||
12701 | ||
5ee754fc MK |
12702 | # FIXME: kettenis/20030102: In most cases we include these |
12703 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
12704 | |
12705 | ||
12706 | for ac_header in ctype.h time.h | |
c906108c | 12707 | do |
bec39cab AC |
12708 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12709 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12710 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12714 | fi | |
12715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12716 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12717 | else | |
12718 | # Is the header compilable? | |
12719 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12720 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12721 | cat >conftest.$ac_ext <<_ACEOF | |
12722 | /* confdefs.h. */ | |
12723 | _ACEOF | |
12724 | cat confdefs.h >>conftest.$ac_ext | |
12725 | cat >>conftest.$ac_ext <<_ACEOF | |
12726 | /* end confdefs.h. */ | |
12727 | $ac_includes_default | |
12728 | #include <$ac_header> | |
12729 | _ACEOF | |
12730 | rm -f conftest.$ac_objext | |
12731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12732 | (eval $ac_compile) 2>conftest.er1 | |
12733 | ac_status=$? | |
12734 | grep -v '^ *+' conftest.er1 >conftest.err | |
12735 | rm -f conftest.er1 | |
12736 | cat conftest.err >&5 | |
12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12738 | (exit $ac_status); } && | |
121ce6e5 | 12739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12741 | (eval $ac_try) 2>&5 | |
12742 | ac_status=$? | |
12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12744 | (exit $ac_status); }; } && | |
12745 | { ac_try='test -s conftest.$ac_objext' | |
12746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12747 | (eval $ac_try) 2>&5 | |
12748 | ac_status=$? | |
12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12750 | (exit $ac_status); }; }; then | |
12751 | ac_header_compiler=yes | |
12752 | else | |
12753 | echo "$as_me: failed program was:" >&5 | |
12754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12755 | ||
12756 | ac_header_compiler=no | |
12757 | fi | |
12758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12759 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12760 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12761 | ||
12762 | # Is the header present? | |
12763 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12764 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12765 | cat >conftest.$ac_ext <<_ACEOF | |
12766 | /* confdefs.h. */ | |
12767 | _ACEOF | |
12768 | cat confdefs.h >>conftest.$ac_ext | |
12769 | cat >>conftest.$ac_ext <<_ACEOF | |
12770 | /* end confdefs.h. */ | |
12771 | #include <$ac_header> | |
12772 | _ACEOF | |
12773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12775 | ac_status=$? | |
12776 | grep -v '^ *+' conftest.er1 >conftest.err | |
12777 | rm -f conftest.er1 | |
12778 | cat conftest.err >&5 | |
12779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12780 | (exit $ac_status); } >/dev/null; then | |
12781 | if test -s conftest.err; then | |
12782 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12783 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12784 | else | |
12785 | ac_cpp_err= | |
12786 | fi | |
12787 | else | |
12788 | ac_cpp_err=yes | |
c906108c | 12789 | fi |
bec39cab AC |
12790 | if test -z "$ac_cpp_err"; then |
12791 | ac_header_preproc=yes | |
12792 | else | |
12793 | echo "$as_me: failed program was:" >&5 | |
12794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12795 | ||
12796 | ac_header_preproc=no | |
c906108c | 12797 | fi |
bec39cab AC |
12798 | rm -f conftest.err conftest.$ac_ext |
12799 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12800 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12801 | ||
12802 | # So? What about this header? | |
12803 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12804 | yes:no: ) | |
12805 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12806 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12808 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12809 | ac_header_preproc=yes | |
12810 | ;; | |
12811 | no:yes:* ) | |
12812 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12813 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12814 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12815 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12816 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12817 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12818 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12819 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12820 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12821 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12822 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12823 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12824 | ( | |
12825 | cat <<\_ASBOX | |
12826 | ## ------------------------------------------ ## | |
12827 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12828 | ## ------------------------------------------ ## | |
12829 | _ASBOX | |
12830 | ) | | |
12831 | sed "s/^/$as_me: WARNING: /" >&2 | |
12832 | ;; | |
12833 | esac | |
12834 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 12838 | else |
bec39cab AC |
12839 | eval "$as_ac_Header=\$ac_header_preproc" |
12840 | fi | |
12841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12843 | ||
12844 | fi | |
12845 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12846 | cat >>confdefs.h <<_ACEOF | |
12847 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12848 | _ACEOF | |
12849 | ||
c906108c | 12850 | fi |
bec39cab | 12851 | |
c906108c SS |
12852 | done |
12853 | ||
5ee754fc | 12854 | |
666ec76f MK |
12855 | # ------------------------- # |
12856 | # Checks for declarations. # | |
12857 | # ------------------------- # | |
12858 | ||
a3828db0 MK |
12859 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
12860 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
12861 | if test "${ac_cv_have_decl_free+set}" = set; then | |
bec39cab | 12862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 12863 | else |
bec39cab AC |
12864 | cat >conftest.$ac_ext <<_ACEOF |
12865 | /* confdefs.h. */ | |
12866 | _ACEOF | |
12867 | cat confdefs.h >>conftest.$ac_ext | |
12868 | cat >>conftest.$ac_ext <<_ACEOF | |
12869 | /* end confdefs.h. */ | |
a3828db0 | 12870 | $ac_includes_default |
bec39cab AC |
12871 | int |
12872 | main () | |
12873 | { | |
a3828db0 MK |
12874 | #ifndef free |
12875 | char *p = (char *) free; | |
666ec76f | 12876 | #endif |
a3828db0 | 12877 | |
bec39cab AC |
12878 | ; |
12879 | return 0; | |
12880 | } | |
12881 | _ACEOF | |
12882 | rm -f conftest.$ac_objext | |
12883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12884 | (eval $ac_compile) 2>conftest.er1 | |
12885 | ac_status=$? | |
12886 | grep -v '^ *+' conftest.er1 >conftest.err | |
12887 | rm -f conftest.er1 | |
12888 | cat conftest.err >&5 | |
12889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12890 | (exit $ac_status); } && | |
121ce6e5 | 12891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12893 | (eval $ac_try) 2>&5 | |
12894 | ac_status=$? | |
12895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12896 | (exit $ac_status); }; } && | |
12897 | { ac_try='test -s conftest.$ac_objext' | |
12898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12899 | (eval $ac_try) 2>&5 | |
12900 | ac_status=$? | |
12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12902 | (exit $ac_status); }; }; then | |
a3828db0 | 12903 | ac_cv_have_decl_free=yes |
40a7debc | 12904 | else |
bec39cab AC |
12905 | echo "$as_me: failed program was:" >&5 |
12906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12907 | ||
a3828db0 | 12908 | ac_cv_have_decl_free=no |
40a7debc | 12909 | fi |
bec39cab | 12910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 12911 | fi |
a3828db0 MK |
12912 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
12913 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
12914 | if test $ac_cv_have_decl_free = yes; then | |
40a7debc | 12915 | |
a3828db0 MK |
12916 | cat >>confdefs.h <<_ACEOF |
12917 | #define HAVE_DECL_FREE 1 | |
666ec76f MK |
12918 | _ACEOF |
12919 | ||
a3828db0 | 12920 | |
666ec76f | 12921 | else |
a3828db0 MK |
12922 | cat >>confdefs.h <<_ACEOF |
12923 | #define HAVE_DECL_FREE 0 | |
bec39cab | 12924 | _ACEOF |
40a7debc | 12925 | |
b9362cc7 | 12926 | |
666ec76f | 12927 | fi |
a3828db0 MK |
12928 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
12929 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
12930 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
bec39cab AC |
12931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12932 | else | |
12933 | cat >conftest.$ac_ext <<_ACEOF | |
12934 | /* confdefs.h. */ | |
12935 | _ACEOF | |
12936 | cat confdefs.h >>conftest.$ac_ext | |
12937 | cat >>conftest.$ac_ext <<_ACEOF | |
12938 | /* end confdefs.h. */ | |
666ec76f MK |
12939 | $ac_includes_default |
12940 | int | |
12941 | main () | |
12942 | { | |
a3828db0 MK |
12943 | #ifndef malloc |
12944 | char *p = (char *) malloc; | |
12945 | #endif | |
12946 | ||
666ec76f MK |
12947 | ; |
12948 | return 0; | |
12949 | } | |
12950 | _ACEOF | |
12951 | rm -f conftest.$ac_objext | |
12952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12953 | (eval $ac_compile) 2>conftest.er1 | |
12954 | ac_status=$? | |
12955 | grep -v '^ *+' conftest.er1 >conftest.err | |
12956 | rm -f conftest.er1 | |
12957 | cat conftest.err >&5 | |
12958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12959 | (exit $ac_status); } && | |
121ce6e5 | 12960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
666ec76f MK |
12961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12962 | (eval $ac_try) 2>&5 | |
12963 | ac_status=$? | |
12964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12965 | (exit $ac_status); }; } && | |
12966 | { ac_try='test -s conftest.$ac_objext' | |
12967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12968 | (eval $ac_try) 2>&5 | |
12969 | ac_status=$? | |
12970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12971 | (exit $ac_status); }; }; then | |
a3828db0 | 12972 | ac_cv_have_decl_malloc=yes |
666ec76f MK |
12973 | else |
12974 | echo "$as_me: failed program was:" >&5 | |
12975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 12976 | |
a3828db0 MK |
12977 | ac_cv_have_decl_malloc=no |
12978 | fi | |
12979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12980 | fi | |
12981 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 | |
12982 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
12983 | if test $ac_cv_have_decl_malloc = yes; then | |
12984 | ||
12985 | cat >>confdefs.h <<_ACEOF | |
12986 | #define HAVE_DECL_MALLOC 1 | |
12987 | _ACEOF | |
12988 | ||
12989 | ||
12990 | else | |
12991 | cat >>confdefs.h <<_ACEOF | |
12992 | #define HAVE_DECL_MALLOC 0 | |
12993 | _ACEOF | |
12994 | ||
12995 | ||
12996 | fi | |
12997 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
12998 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
12999 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
13000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13001 | else | |
13002 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
13003 | /* confdefs.h. */ |
13004 | _ACEOF | |
13005 | cat confdefs.h >>conftest.$ac_ext | |
13006 | cat >>conftest.$ac_ext <<_ACEOF | |
13007 | /* end confdefs.h. */ | |
13008 | $ac_includes_default | |
bec39cab AC |
13009 | int |
13010 | main () | |
13011 | { | |
a3828db0 MK |
13012 | #ifndef realloc |
13013 | char *p = (char *) realloc; | |
13014 | #endif | |
13015 | ||
bec39cab AC |
13016 | ; |
13017 | return 0; | |
13018 | } | |
13019 | _ACEOF | |
13020 | rm -f conftest.$ac_objext | |
13021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13022 | (eval $ac_compile) 2>conftest.er1 | |
13023 | ac_status=$? | |
13024 | grep -v '^ *+' conftest.er1 >conftest.err | |
13025 | rm -f conftest.er1 | |
13026 | cat conftest.err >&5 | |
13027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13028 | (exit $ac_status); } && | |
121ce6e5 | 13029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13031 | (eval $ac_try) 2>&5 | |
13032 | ac_status=$? | |
13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13034 | (exit $ac_status); }; } && | |
13035 | { ac_try='test -s conftest.$ac_objext' | |
13036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13037 | (eval $ac_try) 2>&5 | |
13038 | ac_status=$? | |
13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13040 | (exit $ac_status); }; }; then | |
a3828db0 | 13041 | ac_cv_have_decl_realloc=yes |
b9362cc7 | 13042 | else |
bec39cab AC |
13043 | echo "$as_me: failed program was:" >&5 |
13044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13045 | ||
a3828db0 | 13046 | ac_cv_have_decl_realloc=no |
b9362cc7 | 13047 | fi |
bec39cab | 13048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 13049 | fi |
a3828db0 MK |
13050 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
13051 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
13052 | if test $ac_cv_have_decl_realloc = yes; then | |
b9362cc7 | 13053 | |
666ec76f | 13054 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 13055 | #define HAVE_DECL_REALLOC 1 |
bec39cab AC |
13056 | _ACEOF |
13057 | ||
bec39cab | 13058 | |
a3828db0 MK |
13059 | else |
13060 | cat >>confdefs.h <<_ACEOF | |
13061 | #define HAVE_DECL_REALLOC 0 | |
13062 | _ACEOF | |
b9362cc7 AC |
13063 | |
13064 | ||
a3828db0 | 13065 | fi |
5ee754fc | 13066 | |
a3828db0 MK |
13067 | |
13068 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 | |
13069 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
13070 | if test "${ac_cv_have_decl_strerror+set}" = set; then | |
bec39cab AC |
13071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13072 | else | |
13073 | cat >conftest.$ac_ext <<_ACEOF | |
13074 | /* confdefs.h. */ | |
13075 | _ACEOF | |
13076 | cat confdefs.h >>conftest.$ac_ext | |
13077 | cat >>conftest.$ac_ext <<_ACEOF | |
13078 | /* end confdefs.h. */ | |
a3828db0 | 13079 | $ac_includes_default |
bec39cab AC |
13080 | int |
13081 | main () | |
13082 | { | |
a3828db0 MK |
13083 | #ifndef strerror |
13084 | char *p = (char *) strerror; | |
13085 | #endif | |
13086 | ||
bec39cab AC |
13087 | ; |
13088 | return 0; | |
13089 | } | |
13090 | _ACEOF | |
13091 | rm -f conftest.$ac_objext | |
13092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13093 | (eval $ac_compile) 2>conftest.er1 | |
13094 | ac_status=$? | |
13095 | grep -v '^ *+' conftest.er1 >conftest.err | |
13096 | rm -f conftest.er1 | |
13097 | cat conftest.err >&5 | |
13098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13099 | (exit $ac_status); } && | |
121ce6e5 | 13100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13102 | (eval $ac_try) 2>&5 | |
13103 | ac_status=$? | |
13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13105 | (exit $ac_status); }; } && | |
13106 | { ac_try='test -s conftest.$ac_objext' | |
13107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13108 | (eval $ac_try) 2>&5 | |
13109 | ac_status=$? | |
13110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13111 | (exit $ac_status); }; }; then | |
a3828db0 | 13112 | ac_cv_have_decl_strerror=yes |
c906108c | 13113 | else |
bec39cab AC |
13114 | echo "$as_me: failed program was:" >&5 |
13115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13116 | ||
a3828db0 | 13117 | ac_cv_have_decl_strerror=no |
c906108c | 13118 | fi |
bec39cab | 13119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13120 | fi |
a3828db0 MK |
13121 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
13122 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
13123 | if test $ac_cv_have_decl_strerror = yes; then | |
c906108c | 13124 | |
bec39cab | 13125 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 13126 | #define HAVE_DECL_STRERROR 1 |
bec39cab | 13127 | _ACEOF |
c906108c | 13128 | |
c906108c | 13129 | |
a3828db0 MK |
13130 | else |
13131 | cat >>confdefs.h <<_ACEOF | |
13132 | #define HAVE_DECL_STRERROR 0 | |
13133 | _ACEOF | |
c906108c | 13134 | |
5ee754fc | 13135 | |
a3828db0 MK |
13136 | fi |
13137 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 | |
13138 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
13139 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
bec39cab AC |
13140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13141 | else | |
13142 | cat >conftest.$ac_ext <<_ACEOF | |
13143 | /* confdefs.h. */ | |
13144 | _ACEOF | |
13145 | cat confdefs.h >>conftest.$ac_ext | |
13146 | cat >>conftest.$ac_ext <<_ACEOF | |
13147 | /* end confdefs.h. */ | |
a3828db0 | 13148 | $ac_includes_default |
bec39cab AC |
13149 | int |
13150 | main () | |
13151 | { | |
a3828db0 MK |
13152 | #ifndef strstr |
13153 | char *p = (char *) strstr; | |
bec39cab AC |
13154 | #endif |
13155 | ||
13156 | ; | |
13157 | return 0; | |
13158 | } | |
13159 | _ACEOF | |
13160 | rm -f conftest.$ac_objext | |
13161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13162 | (eval $ac_compile) 2>conftest.er1 | |
13163 | ac_status=$? | |
13164 | grep -v '^ *+' conftest.er1 >conftest.err | |
13165 | rm -f conftest.er1 | |
13166 | cat conftest.err >&5 | |
13167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13168 | (exit $ac_status); } && | |
121ce6e5 | 13169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13171 | (eval $ac_try) 2>&5 | |
13172 | ac_status=$? | |
13173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13174 | (exit $ac_status); }; } && | |
13175 | { ac_try='test -s conftest.$ac_objext' | |
13176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13177 | (eval $ac_try) 2>&5 | |
13178 | ac_status=$? | |
13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13180 | (exit $ac_status); }; }; then | |
a3828db0 | 13181 | ac_cv_have_decl_strstr=yes |
c906108c | 13182 | else |
bec39cab AC |
13183 | echo "$as_me: failed program was:" >&5 |
13184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13185 | ||
a3828db0 | 13186 | ac_cv_have_decl_strstr=no |
c906108c | 13187 | fi |
bec39cab | 13188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13189 | fi |
a3828db0 MK |
13190 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
13191 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
13192 | if test $ac_cv_have_decl_strstr = yes; then | |
bec39cab | 13193 | |
a3828db0 MK |
13194 | cat >>confdefs.h <<_ACEOF |
13195 | #define HAVE_DECL_STRSTR 1 | |
13196 | _ACEOF | |
13197 | ||
13198 | ||
13199 | else | |
13200 | cat >>confdefs.h <<_ACEOF | |
13201 | #define HAVE_DECL_STRSTR 0 | |
bec39cab | 13202 | _ACEOF |
c906108c | 13203 | |
a3828db0 | 13204 | |
c906108c SS |
13205 | fi |
13206 | ||
a3828db0 MK |
13207 | |
13208 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 | |
13209 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
13210 | if test "${ac_cv_have_decl_getopt+set}" = set; then | |
bec39cab | 13211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 13212 | else |
bec39cab AC |
13213 | cat >conftest.$ac_ext <<_ACEOF |
13214 | /* confdefs.h. */ | |
13215 | _ACEOF | |
13216 | cat confdefs.h >>conftest.$ac_ext | |
13217 | cat >>conftest.$ac_ext <<_ACEOF | |
13218 | /* end confdefs.h. */ | |
a3828db0 MK |
13219 | $ac_includes_default |
13220 | int | |
13221 | main () | |
13222 | { | |
13223 | #ifndef getopt | |
13224 | char *p = (char *) getopt; | |
bec39cab AC |
13225 | #endif |
13226 | ||
a3828db0 MK |
13227 | ; |
13228 | return 0; | |
13229 | } | |
bec39cab AC |
13230 | _ACEOF |
13231 | rm -f conftest.$ac_objext | |
13232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13233 | (eval $ac_compile) 2>conftest.er1 | |
13234 | ac_status=$? | |
13235 | grep -v '^ *+' conftest.er1 >conftest.err | |
13236 | rm -f conftest.er1 | |
13237 | cat conftest.err >&5 | |
13238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13239 | (exit $ac_status); } && | |
121ce6e5 | 13240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13242 | (eval $ac_try) 2>&5 | |
13243 | ac_status=$? | |
13244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13245 | (exit $ac_status); }; } && | |
13246 | { ac_try='test -s conftest.$ac_objext' | |
13247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13248 | (eval $ac_try) 2>&5 | |
13249 | ac_status=$? | |
13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13251 | (exit $ac_status); }; }; then | |
a3828db0 | 13252 | ac_cv_have_decl_getopt=yes |
bce58c09 | 13253 | else |
bec39cab AC |
13254 | echo "$as_me: failed program was:" >&5 |
13255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13256 | ||
a3828db0 | 13257 | ac_cv_have_decl_getopt=no |
bce58c09 | 13258 | fi |
bec39cab | 13259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 13260 | fi |
a3828db0 MK |
13261 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
13262 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
13263 | if test $ac_cv_have_decl_getopt = yes; then | |
bec39cab | 13264 | |
a3828db0 MK |
13265 | cat >>confdefs.h <<_ACEOF |
13266 | #define HAVE_DECL_GETOPT 1 | |
13267 | _ACEOF | |
bce58c09 | 13268 | |
a3828db0 MK |
13269 | |
13270 | else | |
13271 | cat >>confdefs.h <<_ACEOF | |
13272 | #define HAVE_DECL_GETOPT 0 | |
bec39cab | 13273 | _ACEOF |
bce58c09 | 13274 | |
c906108c | 13275 | |
e5a7de23 EZ |
13276 | fi |
13277 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 | |
13278 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
13279 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
13280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13281 | else | |
13282 | cat >conftest.$ac_ext <<_ACEOF | |
13283 | /* confdefs.h. */ | |
13284 | _ACEOF | |
13285 | cat confdefs.h >>conftest.$ac_ext | |
13286 | cat >>conftest.$ac_ext <<_ACEOF | |
13287 | /* end confdefs.h. */ | |
13288 | $ac_includes_default | |
13289 | int | |
13290 | main () | |
13291 | { | |
13292 | #ifndef snprintf | |
13293 | char *p = (char *) snprintf; | |
13294 | #endif | |
13295 | ||
13296 | ; | |
13297 | return 0; | |
13298 | } | |
13299 | _ACEOF | |
13300 | rm -f conftest.$ac_objext | |
13301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13302 | (eval $ac_compile) 2>conftest.er1 | |
13303 | ac_status=$? | |
13304 | grep -v '^ *+' conftest.er1 >conftest.err | |
13305 | rm -f conftest.er1 | |
13306 | cat conftest.err >&5 | |
13307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13308 | (exit $ac_status); } && | |
121ce6e5 | 13309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e5a7de23 EZ |
13310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13311 | (eval $ac_try) 2>&5 | |
13312 | ac_status=$? | |
13313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13314 | (exit $ac_status); }; } && | |
13315 | { ac_try='test -s conftest.$ac_objext' | |
13316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13317 | (eval $ac_try) 2>&5 | |
13318 | ac_status=$? | |
13319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13320 | (exit $ac_status); }; }; then | |
13321 | ac_cv_have_decl_snprintf=yes | |
13322 | else | |
13323 | echo "$as_me: failed program was:" >&5 | |
13324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13325 | ||
13326 | ac_cv_have_decl_snprintf=no | |
13327 | fi | |
13328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13329 | fi | |
13330 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
13331 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
13332 | if test $ac_cv_have_decl_snprintf = yes; then | |
13333 | ||
13334 | cat >>confdefs.h <<_ACEOF | |
13335 | #define HAVE_DECL_SNPRINTF 1 | |
13336 | _ACEOF | |
13337 | ||
13338 | ||
13339 | else | |
13340 | cat >>confdefs.h <<_ACEOF | |
13341 | #define HAVE_DECL_SNPRINTF 0 | |
13342 | _ACEOF | |
13343 | ||
13344 | ||
13345 | fi | |
13346 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
13347 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
13348 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
13349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13350 | else | |
13351 | cat >conftest.$ac_ext <<_ACEOF | |
13352 | /* confdefs.h. */ | |
13353 | _ACEOF | |
13354 | cat confdefs.h >>conftest.$ac_ext | |
13355 | cat >>conftest.$ac_ext <<_ACEOF | |
13356 | /* end confdefs.h. */ | |
13357 | $ac_includes_default | |
13358 | int | |
13359 | main () | |
13360 | { | |
13361 | #ifndef vsnprintf | |
13362 | char *p = (char *) vsnprintf; | |
13363 | #endif | |
13364 | ||
13365 | ; | |
13366 | return 0; | |
13367 | } | |
13368 | _ACEOF | |
13369 | rm -f conftest.$ac_objext | |
13370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13371 | (eval $ac_compile) 2>conftest.er1 | |
13372 | ac_status=$? | |
13373 | grep -v '^ *+' conftest.er1 >conftest.err | |
13374 | rm -f conftest.er1 | |
13375 | cat conftest.err >&5 | |
13376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13377 | (exit $ac_status); } && | |
121ce6e5 | 13378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e5a7de23 EZ |
13379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13380 | (eval $ac_try) 2>&5 | |
13381 | ac_status=$? | |
13382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13383 | (exit $ac_status); }; } && | |
13384 | { ac_try='test -s conftest.$ac_objext' | |
13385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13386 | (eval $ac_try) 2>&5 | |
13387 | ac_status=$? | |
13388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13389 | (exit $ac_status); }; }; then | |
13390 | ac_cv_have_decl_vsnprintf=yes | |
13391 | else | |
13392 | echo "$as_me: failed program was:" >&5 | |
13393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13394 | ||
13395 | ac_cv_have_decl_vsnprintf=no | |
13396 | fi | |
13397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13398 | fi | |
13399 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
13400 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
13401 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
13402 | ||
13403 | cat >>confdefs.h <<_ACEOF | |
13404 | #define HAVE_DECL_VSNPRINTF 1 | |
13405 | _ACEOF | |
13406 | ||
13407 | ||
13408 | else | |
13409 | cat >>confdefs.h <<_ACEOF | |
13410 | #define HAVE_DECL_VSNPRINTF 0 | |
13411 | _ACEOF | |
13412 | ||
13413 | ||
a3828db0 | 13414 | fi |
5ee754fc | 13415 | |
a3828db0 MK |
13416 | |
13417 | ||
13418 | # ----------------------- # | |
13419 | # Checks for structures. # | |
13420 | # ----------------------- # | |
13421 | ||
13422 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 | |
13423 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
13424 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
bec39cab AC |
13425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13426 | else | |
13427 | cat >conftest.$ac_ext <<_ACEOF | |
13428 | /* confdefs.h. */ | |
13429 | _ACEOF | |
13430 | cat confdefs.h >>conftest.$ac_ext | |
13431 | cat >>conftest.$ac_ext <<_ACEOF | |
13432 | /* end confdefs.h. */ | |
a3828db0 | 13433 | $ac_includes_default |
bec39cab AC |
13434 | int |
13435 | main () | |
13436 | { | |
a3828db0 MK |
13437 | static struct stat ac_aggr; |
13438 | if (ac_aggr.st_blocks) | |
13439 | return 0; | |
bec39cab AC |
13440 | ; |
13441 | return 0; | |
13442 | } | |
13443 | _ACEOF | |
a3828db0 MK |
13444 | rm -f conftest.$ac_objext |
13445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13446 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
13447 | ac_status=$? |
13448 | grep -v '^ *+' conftest.er1 >conftest.err | |
13449 | rm -f conftest.er1 | |
13450 | cat conftest.err >&5 | |
13451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13452 | (exit $ac_status); } && | |
121ce6e5 | 13453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13455 | (eval $ac_try) 2>&5 | |
13456 | ac_status=$? | |
13457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13458 | (exit $ac_status); }; } && | |
a3828db0 | 13459 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
13460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13461 | (eval $ac_try) 2>&5 | |
13462 | ac_status=$? | |
13463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13464 | (exit $ac_status); }; }; then | |
a3828db0 | 13465 | ac_cv_member_struct_stat_st_blocks=yes |
bec39cab AC |
13466 | else |
13467 | echo "$as_me: failed program was:" >&5 | |
13468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13469 | ||
a3828db0 MK |
13470 | cat >conftest.$ac_ext <<_ACEOF |
13471 | /* confdefs.h. */ | |
bec39cab AC |
13472 | _ACEOF |
13473 | cat confdefs.h >>conftest.$ac_ext | |
13474 | cat >>conftest.$ac_ext <<_ACEOF | |
13475 | /* end confdefs.h. */ | |
a3828db0 | 13476 | $ac_includes_default |
bec39cab AC |
13477 | int |
13478 | main () | |
13479 | { | |
a3828db0 MK |
13480 | static struct stat ac_aggr; |
13481 | if (sizeof ac_aggr.st_blocks) | |
13482 | return 0; | |
bec39cab AC |
13483 | ; |
13484 | return 0; | |
13485 | } | |
13486 | _ACEOF | |
a3828db0 MK |
13487 | rm -f conftest.$ac_objext |
13488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13489 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
13490 | ac_status=$? |
13491 | grep -v '^ *+' conftest.er1 >conftest.err | |
13492 | rm -f conftest.er1 | |
13493 | cat conftest.err >&5 | |
13494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13495 | (exit $ac_status); } && | |
121ce6e5 | 13496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13498 | (eval $ac_try) 2>&5 | |
13499 | ac_status=$? | |
13500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13501 | (exit $ac_status); }; } && | |
a3828db0 | 13502 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
13503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13504 | (eval $ac_try) 2>&5 | |
13505 | ac_status=$? | |
13506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13507 | (exit $ac_status); }; }; then | |
a3828db0 | 13508 | ac_cv_member_struct_stat_st_blocks=yes |
46711df8 | 13509 | else |
bec39cab AC |
13510 | echo "$as_me: failed program was:" >&5 |
13511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13512 | ||
a3828db0 | 13513 | ac_cv_member_struct_stat_st_blocks=no |
46711df8 | 13514 | fi |
a3828db0 | 13515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 13516 | fi |
a3828db0 MK |
13517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13518 | fi | |
13519 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 | |
13520 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
13521 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
46711df8 | 13522 | |
a3828db0 MK |
13523 | cat >>confdefs.h <<_ACEOF |
13524 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
bec39cab | 13525 | _ACEOF |
46711df8 | 13526 | |
46711df8 | 13527 | |
d3ea6809 MM |
13528 | fi |
13529 | ||
13530 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | |
13531 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
13532 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
13533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13534 | else | |
13535 | cat >conftest.$ac_ext <<_ACEOF | |
13536 | /* confdefs.h. */ | |
13537 | _ACEOF | |
13538 | cat confdefs.h >>conftest.$ac_ext | |
13539 | cat >>conftest.$ac_ext <<_ACEOF | |
13540 | /* end confdefs.h. */ | |
13541 | $ac_includes_default | |
13542 | int | |
13543 | main () | |
13544 | { | |
13545 | static struct stat ac_aggr; | |
13546 | if (ac_aggr.st_blksize) | |
13547 | return 0; | |
13548 | ; | |
13549 | return 0; | |
13550 | } | |
13551 | _ACEOF | |
13552 | rm -f conftest.$ac_objext | |
13553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13554 | (eval $ac_compile) 2>conftest.er1 | |
13555 | ac_status=$? | |
13556 | grep -v '^ *+' conftest.er1 >conftest.err | |
13557 | rm -f conftest.er1 | |
13558 | cat conftest.err >&5 | |
13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13560 | (exit $ac_status); } && | |
121ce6e5 | 13561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d3ea6809 MM |
13562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13563 | (eval $ac_try) 2>&5 | |
13564 | ac_status=$? | |
13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13566 | (exit $ac_status); }; } && | |
13567 | { ac_try='test -s conftest.$ac_objext' | |
13568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13569 | (eval $ac_try) 2>&5 | |
13570 | ac_status=$? | |
13571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13572 | (exit $ac_status); }; }; then | |
13573 | ac_cv_member_struct_stat_st_blksize=yes | |
13574 | else | |
13575 | echo "$as_me: failed program was:" >&5 | |
13576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13577 | ||
13578 | cat >conftest.$ac_ext <<_ACEOF | |
13579 | /* confdefs.h. */ | |
13580 | _ACEOF | |
13581 | cat confdefs.h >>conftest.$ac_ext | |
13582 | cat >>conftest.$ac_ext <<_ACEOF | |
13583 | /* end confdefs.h. */ | |
13584 | $ac_includes_default | |
13585 | int | |
13586 | main () | |
13587 | { | |
13588 | static struct stat ac_aggr; | |
13589 | if (sizeof ac_aggr.st_blksize) | |
13590 | return 0; | |
13591 | ; | |
13592 | return 0; | |
13593 | } | |
13594 | _ACEOF | |
13595 | rm -f conftest.$ac_objext | |
13596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13597 | (eval $ac_compile) 2>conftest.er1 | |
13598 | ac_status=$? | |
13599 | grep -v '^ *+' conftest.er1 >conftest.err | |
13600 | rm -f conftest.er1 | |
13601 | cat conftest.err >&5 | |
13602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13603 | (exit $ac_status); } && | |
121ce6e5 | 13604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d3ea6809 MM |
13605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13606 | (eval $ac_try) 2>&5 | |
13607 | ac_status=$? | |
13608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13609 | (exit $ac_status); }; } && | |
13610 | { ac_try='test -s conftest.$ac_objext' | |
13611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13612 | (eval $ac_try) 2>&5 | |
13613 | ac_status=$? | |
13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13615 | (exit $ac_status); }; }; then | |
13616 | ac_cv_member_struct_stat_st_blksize=yes | |
13617 | else | |
13618 | echo "$as_me: failed program was:" >&5 | |
13619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13620 | ||
13621 | ac_cv_member_struct_stat_st_blksize=no | |
13622 | fi | |
13623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13624 | fi | |
13625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13626 | fi | |
13627 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | |
13628 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
13629 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
13630 | ||
13631 | cat >>confdefs.h <<_ACEOF | |
13632 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
13633 | _ACEOF | |
13634 | ||
13635 | ||
a3828db0 | 13636 | fi |
46711df8 | 13637 | |
46711df8 | 13638 | |
a3828db0 MK |
13639 | # ------------------ # |
13640 | # Checks for types. # | |
13641 | # ------------------ # | |
46711df8 | 13642 | |
a3828db0 MK |
13643 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
13644 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
13645 | if test "${ac_cv_type_signal+set}" = set; then | |
bec39cab AC |
13646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13647 | else | |
13648 | cat >conftest.$ac_ext <<_ACEOF | |
13649 | /* confdefs.h. */ | |
13650 | _ACEOF | |
13651 | cat confdefs.h >>conftest.$ac_ext | |
13652 | cat >>conftest.$ac_ext <<_ACEOF | |
13653 | /* end confdefs.h. */ | |
a3828db0 MK |
13654 | #include <sys/types.h> |
13655 | #include <signal.h> | |
13656 | #ifdef signal | |
13657 | # undef signal | |
bec39cab | 13658 | #endif |
bec39cab | 13659 | #ifdef __cplusplus |
a3828db0 | 13660 | extern "C" void (*signal (int, void (*)(int)))(int); |
46711df8 | 13661 | #else |
a3828db0 | 13662 | void (*signal ()) (); |
46711df8 MK |
13663 | #endif |
13664 | ||
bec39cab AC |
13665 | int |
13666 | main () | |
13667 | { | |
a3828db0 | 13668 | int i; |
bec39cab AC |
13669 | ; |
13670 | return 0; | |
13671 | } | |
13672 | _ACEOF | |
a3828db0 MK |
13673 | rm -f conftest.$ac_objext |
13674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13675 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
13676 | ac_status=$? |
13677 | grep -v '^ *+' conftest.er1 >conftest.err | |
13678 | rm -f conftest.er1 | |
13679 | cat conftest.err >&5 | |
13680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13681 | (exit $ac_status); } && | |
121ce6e5 | 13682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13684 | (eval $ac_try) 2>&5 | |
13685 | ac_status=$? | |
13686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13687 | (exit $ac_status); }; } && | |
a3828db0 | 13688 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
13689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13690 | (eval $ac_try) 2>&5 | |
13691 | ac_status=$? | |
13692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13693 | (exit $ac_status); }; }; then | |
a3828db0 | 13694 | ac_cv_type_signal=void |
bec39cab AC |
13695 | else |
13696 | echo "$as_me: failed program was:" >&5 | |
13697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13698 | ||
a3828db0 | 13699 | ac_cv_type_signal=int |
bec39cab | 13700 | fi |
a3828db0 | 13701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 13702 | fi |
a3828db0 MK |
13703 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
13704 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
bec39cab AC |
13705 | |
13706 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 13707 | #define RETSIGTYPE $ac_cv_type_signal |
bec39cab | 13708 | _ACEOF |
46711df8 | 13709 | |
46711df8 | 13710 | |
f9f87d2c MK |
13711 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
13712 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
13713 | if test "${ac_cv_type_socklen_t+set}" = set; then | |
13714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13715 | else | |
13716 | cat >conftest.$ac_ext <<_ACEOF | |
13717 | /* confdefs.h. */ | |
13718 | _ACEOF | |
13719 | cat confdefs.h >>conftest.$ac_ext | |
13720 | cat >>conftest.$ac_ext <<_ACEOF | |
13721 | /* end confdefs.h. */ | |
13722 | #include <sys/types.h> | |
13723 | #include <sys/socket.h> | |
13724 | ||
13725 | ||
13726 | int | |
13727 | main () | |
13728 | { | |
13729 | if ((socklen_t *) 0) | |
13730 | return 0; | |
13731 | if (sizeof (socklen_t)) | |
13732 | return 0; | |
13733 | ; | |
13734 | return 0; | |
13735 | } | |
13736 | _ACEOF | |
13737 | rm -f conftest.$ac_objext | |
13738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13739 | (eval $ac_compile) 2>conftest.er1 | |
13740 | ac_status=$? | |
13741 | grep -v '^ *+' conftest.er1 >conftest.err | |
13742 | rm -f conftest.er1 | |
13743 | cat conftest.err >&5 | |
13744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13745 | (exit $ac_status); } && | |
121ce6e5 | 13746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f9f87d2c MK |
13747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13748 | (eval $ac_try) 2>&5 | |
13749 | ac_status=$? | |
13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13751 | (exit $ac_status); }; } && | |
13752 | { ac_try='test -s conftest.$ac_objext' | |
13753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13754 | (eval $ac_try) 2>&5 | |
13755 | ac_status=$? | |
13756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13757 | (exit $ac_status); }; }; then | |
13758 | ac_cv_type_socklen_t=yes | |
13759 | else | |
13760 | echo "$as_me: failed program was:" >&5 | |
13761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13762 | ||
13763 | ac_cv_type_socklen_t=no | |
13764 | fi | |
13765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13766 | fi | |
13767 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | |
13768 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
13769 | if test $ac_cv_type_socklen_t = yes; then | |
13770 | ||
13771 | cat >>confdefs.h <<_ACEOF | |
13772 | #define HAVE_SOCKLEN_T 1 | |
13773 | _ACEOF | |
13774 | ||
13775 | ||
3be60c3d MK |
13776 | fi |
13777 | ||
13778 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
13779 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
13780 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
13781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13782 | else | |
13783 | cat >conftest.$ac_ext <<_ACEOF | |
13784 | /* confdefs.h. */ | |
13785 | _ACEOF | |
13786 | cat confdefs.h >>conftest.$ac_ext | |
13787 | cat >>conftest.$ac_ext <<_ACEOF | |
13788 | /* end confdefs.h. */ | |
13789 | #include <stdint.h> | |
13790 | ||
13791 | int | |
13792 | main () | |
13793 | { | |
13794 | if ((uintptr_t *) 0) | |
13795 | return 0; | |
13796 | if (sizeof (uintptr_t)) | |
13797 | return 0; | |
13798 | ; | |
13799 | return 0; | |
13800 | } | |
13801 | _ACEOF | |
13802 | rm -f conftest.$ac_objext | |
13803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13804 | (eval $ac_compile) 2>conftest.er1 | |
13805 | ac_status=$? | |
13806 | grep -v '^ *+' conftest.er1 >conftest.err | |
13807 | rm -f conftest.er1 | |
13808 | cat conftest.err >&5 | |
13809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13810 | (exit $ac_status); } && | |
121ce6e5 | 13811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3be60c3d MK |
13812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13813 | (eval $ac_try) 2>&5 | |
13814 | ac_status=$? | |
13815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13816 | (exit $ac_status); }; } && | |
13817 | { ac_try='test -s conftest.$ac_objext' | |
13818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13819 | (eval $ac_try) 2>&5 | |
13820 | ac_status=$? | |
13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13822 | (exit $ac_status); }; }; then | |
13823 | ac_cv_type_uintptr_t=yes | |
13824 | else | |
13825 | echo "$as_me: failed program was:" >&5 | |
13826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13827 | ||
13828 | ac_cv_type_uintptr_t=no | |
13829 | fi | |
13830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13831 | fi | |
13832 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
13833 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
13834 | if test $ac_cv_type_uintptr_t = yes; then | |
13835 | ||
13836 | cat >>confdefs.h <<_ACEOF | |
13837 | #define HAVE_UINTPTR_T 1 | |
13838 | _ACEOF | |
13839 | ||
13840 | ||
f9f87d2c MK |
13841 | fi |
13842 | ||
46711df8 | 13843 | |
a3828db0 MK |
13844 | # ------------------------------------- # |
13845 | # Checks for compiler characteristics. # | |
13846 | # ------------------------------------- # | |
13847 | ||
13848 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
13849 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13850 | if test "${ac_cv_c_const+set}" = set; then | |
bec39cab | 13851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 13852 | else |
bec39cab AC |
13853 | cat >conftest.$ac_ext <<_ACEOF |
13854 | /* confdefs.h. */ | |
13855 | _ACEOF | |
13856 | cat confdefs.h >>conftest.$ac_ext | |
13857 | cat >>conftest.$ac_ext <<_ACEOF | |
13858 | /* end confdefs.h. */ | |
bec39cab AC |
13859 | |
13860 | int | |
46711df8 MK |
13861 | main () |
13862 | { | |
a3828db0 MK |
13863 | /* FIXME: Include the comments suggested by Paul. */ |
13864 | #ifndef __cplusplus | |
13865 | /* Ultrix mips cc rejects this. */ | |
13866 | typedef int charset[2]; | |
13867 | const charset x; | |
13868 | /* SunOS 4.1.1 cc rejects this. */ | |
13869 | char const *const *ccp; | |
13870 | char **p; | |
13871 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13872 | struct point {int x, y;}; | |
13873 | static struct point const zero = {0,0}; | |
13874 | /* AIX XL C 1.02.0.0 rejects this. | |
13875 | It does not let you subtract one const X* pointer from another in | |
13876 | an arm of an if-expression whose if-part is not a constant | |
13877 | expression */ | |
13878 | const char *g = "string"; | |
13879 | ccp = &g + (g ? g-g : 0); | |
13880 | /* HPUX 7.0 cc rejects these. */ | |
13881 | ++ccp; | |
13882 | p = (char**) ccp; | |
13883 | ccp = (char const *const *) p; | |
13884 | { /* SCO 3.2v4 cc rejects this. */ | |
13885 | char *t; | |
13886 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13887 | ||
13888 | *t++ = 0; | |
13889 | } | |
13890 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13891 | int x[] = {25, 17}; | |
13892 | const int *foo = &x[0]; | |
13893 | ++foo; | |
13894 | } | |
13895 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13896 | typedef const int *iptr; | |
13897 | iptr p = 0; | |
13898 | ++p; | |
13899 | } | |
13900 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13901 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13902 | struct s { int j; const int *ap[3]; }; | |
13903 | struct s *b; b->j = 5; | |
13904 | } | |
13905 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13906 | const int foo = 10; | |
13907 | } | |
13908 | #endif | |
13909 | ||
13910 | ; | |
13911 | return 0; | |
46711df8 | 13912 | } |
bec39cab | 13913 | _ACEOF |
a3828db0 MK |
13914 | rm -f conftest.$ac_objext |
13915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13916 | (eval $ac_compile) 2>conftest.er1 | |
13917 | ac_status=$? | |
13918 | grep -v '^ *+' conftest.er1 >conftest.err | |
13919 | rm -f conftest.er1 | |
13920 | cat conftest.err >&5 | |
13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13922 | (exit $ac_status); } && | |
121ce6e5 | 13923 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a3828db0 MK |
13924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13925 | (eval $ac_try) 2>&5 | |
bec39cab AC |
13926 | ac_status=$? |
13927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
13928 | (exit $ac_status); }; } && |
13929 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
13930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13931 | (eval $ac_try) 2>&5 | |
13932 | ac_status=$? | |
13933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13934 | (exit $ac_status); }; }; then | |
a3828db0 | 13935 | ac_cv_c_const=yes |
46711df8 | 13936 | else |
a3828db0 | 13937 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
13938 | sed 's/^/| /' conftest.$ac_ext >&5 |
13939 | ||
a3828db0 | 13940 | ac_cv_c_const=no |
46711df8 | 13941 | fi |
a3828db0 | 13942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 13943 | fi |
a3828db0 MK |
13944 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13945 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
13946 | if test $ac_cv_c_const = no; then | |
46711df8 | 13947 | |
a3828db0 MK |
13948 | cat >>confdefs.h <<\_ACEOF |
13949 | #define const | |
bec39cab AC |
13950 | _ACEOF |
13951 | ||
46711df8 MK |
13952 | fi |
13953 | ||
a3828db0 MK |
13954 | echo "$as_me:$LINENO: checking for inline" >&5 |
13955 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13956 | if test "${ac_cv_c_inline+set}" = set; then | |
bec39cab | 13957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 13958 | else |
a3828db0 MK |
13959 | ac_cv_c_inline=no |
13960 | for ac_kw in inline __inline__ __inline; do | |
13961 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
13962 | /* confdefs.h. */ |
13963 | _ACEOF | |
13964 | cat confdefs.h >>conftest.$ac_ext | |
13965 | cat >>conftest.$ac_ext <<_ACEOF | |
13966 | /* end confdefs.h. */ | |
a3828db0 MK |
13967 | #ifndef __cplusplus |
13968 | typedef int foo_t; | |
13969 | static $ac_kw foo_t static_foo () {return 0; } | |
13970 | $ac_kw foo_t foo () {return 0; } | |
13971 | #endif | |
13972 | ||
bec39cab AC |
13973 | _ACEOF |
13974 | rm -f conftest.$ac_objext | |
13975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13976 | (eval $ac_compile) 2>conftest.er1 | |
13977 | ac_status=$? | |
13978 | grep -v '^ *+' conftest.er1 >conftest.err | |
13979 | rm -f conftest.er1 | |
13980 | cat conftest.err >&5 | |
13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13982 | (exit $ac_status); } && | |
121ce6e5 | 13983 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13985 | (eval $ac_try) 2>&5 | |
13986 | ac_status=$? | |
13987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13988 | (exit $ac_status); }; } && | |
13989 | { ac_try='test -s conftest.$ac_objext' | |
13990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13991 | (eval $ac_try) 2>&5 | |
13992 | ac_status=$? | |
13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13994 | (exit $ac_status); }; }; then | |
a3828db0 | 13995 | ac_cv_c_inline=$ac_kw; break |
bec39cab AC |
13996 | else |
13997 | echo "$as_me: failed program was:" >&5 | |
13998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13999 | ||
bec39cab AC |
14000 | fi |
14001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a3828db0 | 14002 | done |
bec39cab | 14003 | |
74c1b268 | 14004 | fi |
a3828db0 MK |
14005 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
14006 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 14007 | |
bec39cab | 14008 | |
a3828db0 MK |
14009 | case $ac_cv_c_inline in |
14010 | inline | yes) ;; | |
14011 | *) | |
14012 | case $ac_cv_c_inline in | |
14013 | no) ac_val=;; | |
14014 | *) ac_val=$ac_cv_c_inline;; | |
14015 | esac | |
14016 | cat >>confdefs.h <<_ACEOF | |
14017 | #ifndef __cplusplus | |
14018 | #define inline $ac_val | |
14019 | #endif | |
14020 | _ACEOF | |
bec39cab AC |
14021 | ;; |
14022 | esac | |
bec39cab | 14023 | |
74c1b268 | 14024 | |
a3828db0 MK |
14025 | # ------------------------------ # |
14026 | # Checks for library functions. # | |
14027 | # ------------------------------ # | |
bec39cab | 14028 | |
a3828db0 MK |
14029 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
14030 | # for constant arguments. Useless! | |
14031 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
14032 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
14033 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
bec39cab AC |
14034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14035 | else | |
14036 | cat >conftest.$ac_ext <<_ACEOF | |
14037 | /* confdefs.h. */ | |
14038 | _ACEOF | |
14039 | cat confdefs.h >>conftest.$ac_ext | |
14040 | cat >>conftest.$ac_ext <<_ACEOF | |
14041 | /* end confdefs.h. */ | |
a3828db0 | 14042 | #include <alloca.h> |
bec39cab AC |
14043 | int |
14044 | main () | |
14045 | { | |
a3828db0 | 14046 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
14047 | ; |
14048 | return 0; | |
14049 | } | |
14050 | _ACEOF | |
14051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14053 | (eval $ac_link) 2>conftest.er1 | |
14054 | ac_status=$? | |
14055 | grep -v '^ *+' conftest.er1 >conftest.err | |
14056 | rm -f conftest.er1 | |
14057 | cat conftest.err >&5 | |
14058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14059 | (exit $ac_status); } && | |
121ce6e5 | 14060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
14061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14062 | (eval $ac_try) 2>&5 | |
14063 | ac_status=$? | |
14064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14065 | (exit $ac_status); }; } && | |
14066 | { ac_try='test -s conftest$ac_exeext' | |
14067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14068 | (eval $ac_try) 2>&5 | |
14069 | ac_status=$? | |
14070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14071 | (exit $ac_status); }; }; then | |
a3828db0 | 14072 | ac_cv_working_alloca_h=yes |
bec39cab AC |
14073 | else |
14074 | echo "$as_me: failed program was:" >&5 | |
14075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14076 | ||
a3828db0 | 14077 | ac_cv_working_alloca_h=no |
bec39cab AC |
14078 | fi |
14079 | rm -f conftest.err conftest.$ac_objext \ | |
14080 | conftest$ac_exeext conftest.$ac_ext | |
14081 | fi | |
a3828db0 MK |
14082 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
14083 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
14084 | if test $ac_cv_working_alloca_h = yes; then | |
14085 | ||
14086 | cat >>confdefs.h <<\_ACEOF | |
14087 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 14088 | _ACEOF |
74c1b268 | 14089 | |
74c1b268 AC |
14090 | fi |
14091 | ||
a3828db0 MK |
14092 | echo "$as_me:$LINENO: checking for alloca" >&5 |
14093 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
14094 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
bec39cab | 14095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 14096 | else |
bec39cab AC |
14097 | cat >conftest.$ac_ext <<_ACEOF |
14098 | /* confdefs.h. */ | |
14099 | _ACEOF | |
14100 | cat confdefs.h >>conftest.$ac_ext | |
14101 | cat >>conftest.$ac_ext <<_ACEOF | |
14102 | /* end confdefs.h. */ | |
a3828db0 MK |
14103 | #ifdef __GNUC__ |
14104 | # define alloca __builtin_alloca | |
14105 | #else | |
14106 | # ifdef _MSC_VER | |
14107 | # include <malloc.h> | |
14108 | # define alloca _alloca | |
14109 | # else | |
14110 | # if HAVE_ALLOCA_H | |
14111 | # include <alloca.h> | |
14112 | # else | |
14113 | # ifdef _AIX | |
14114 | #pragma alloca | |
14115 | # else | |
14116 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
14117 | char *alloca (); | |
14118 | # endif | |
14119 | # endif | |
14120 | # endif | |
97bf5e38 | 14121 | # endif |
a3828db0 | 14122 | #endif |
97bf5e38 | 14123 | |
bec39cab AC |
14124 | int |
14125 | main () | |
14126 | { | |
a3828db0 | 14127 | char *p = (char *) alloca (1); |
bec39cab AC |
14128 | ; |
14129 | return 0; | |
14130 | } | |
14131 | _ACEOF | |
a3828db0 MK |
14132 | rm -f conftest.$ac_objext conftest$ac_exeext |
14133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14134 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
14135 | ac_status=$? |
14136 | grep -v '^ *+' conftest.er1 >conftest.err | |
14137 | rm -f conftest.er1 | |
14138 | cat conftest.err >&5 | |
14139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14140 | (exit $ac_status); } && | |
121ce6e5 | 14141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
14142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14143 | (eval $ac_try) 2>&5 | |
14144 | ac_status=$? | |
14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14146 | (exit $ac_status); }; } && | |
a3828db0 | 14147 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
14148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14149 | (eval $ac_try) 2>&5 | |
14150 | ac_status=$? | |
14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14152 | (exit $ac_status); }; }; then | |
a3828db0 | 14153 | ac_cv_func_alloca_works=yes |
0200359f | 14154 | else |
bec39cab AC |
14155 | echo "$as_me: failed program was:" >&5 |
14156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 14157 | |
a3828db0 | 14158 | ac_cv_func_alloca_works=no |
0200359f | 14159 | fi |
a3828db0 MK |
14160 | rm -f conftest.err conftest.$ac_objext \ |
14161 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 14162 | fi |
a3828db0 MK |
14163 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
14164 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 14165 | |
a3828db0 MK |
14166 | if test $ac_cv_func_alloca_works = yes; then |
14167 | ||
14168 | cat >>confdefs.h <<\_ACEOF | |
14169 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
14170 | _ACEOF |
14171 | ||
a3828db0 MK |
14172 | else |
14173 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
14174 | # that cause trouble. Some versions do not even contain alloca or | |
14175 | # contain a buggy version. If you still want to use their alloca, | |
14176 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 14177 | |
a3828db0 | 14178 | ALLOCA=alloca.$ac_objext |
bec39cab | 14179 | |
a3828db0 MK |
14180 | cat >>confdefs.h <<\_ACEOF |
14181 | #define C_ALLOCA 1 | |
14182 | _ACEOF | |
bec39cab | 14183 | |
a3828db0 MK |
14184 | |
14185 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
14186 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
14187 | if test "${ac_cv_os_cray+set}" = set; then | |
bec39cab | 14188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 14189 | else |
a3828db0 | 14190 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
14191 | /* confdefs.h. */ |
14192 | _ACEOF | |
14193 | cat confdefs.h >>conftest.$ac_ext | |
14194 | cat >>conftest.$ac_ext <<_ACEOF | |
14195 | /* end confdefs.h. */ | |
a3828db0 MK |
14196 | #if defined(CRAY) && ! defined(CRAY2) |
14197 | webecray | |
14198 | #else | |
14199 | wenotbecray | |
14200 | #endif | |
14201 | ||
14202 | _ACEOF | |
14203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14204 | $EGREP "webecray" >/dev/null 2>&1; then | |
14205 | ac_cv_os_cray=yes | |
14206 | else | |
14207 | ac_cv_os_cray=no | |
14208 | fi | |
14209 | rm -f conftest* | |
14210 | ||
14211 | fi | |
14212 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
14213 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
14214 | if test $ac_cv_os_cray = yes; then | |
14215 | for ac_func in _getb67 GETB67 getb67; do | |
14216 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14217 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14218 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14219 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14221 | else | |
14222 | cat >conftest.$ac_ext <<_ACEOF | |
14223 | /* confdefs.h. */ | |
14224 | _ACEOF | |
14225 | cat confdefs.h >>conftest.$ac_ext | |
14226 | cat >>conftest.$ac_ext <<_ACEOF | |
14227 | /* end confdefs.h. */ | |
14228 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14230 | #define $ac_func innocuous_$ac_func | |
14231 | ||
14232 | /* System header to define __stub macros and hopefully few prototypes, | |
14233 | which can conflict with char $ac_func (); below. | |
14234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14235 | <limits.h> exists even on freestanding compilers. */ | |
14236 | ||
14237 | #ifdef __STDC__ | |
14238 | # include <limits.h> | |
14239 | #else | |
14240 | # include <assert.h> | |
14241 | #endif | |
14242 | ||
14243 | #undef $ac_func | |
14244 | ||
14245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14246 | #ifdef __cplusplus | |
14247 | extern "C" | |
14248 | { | |
14249 | #endif | |
14250 | /* We use char because int might match the return type of a gcc2 | |
14251 | builtin and then its argument prototype would still apply. */ | |
14252 | char $ac_func (); | |
14253 | /* The GNU C library defines this for functions which it implements | |
14254 | to always fail with ENOSYS. Some functions are actually named | |
14255 | something starting with __ and the normal name is an alias. */ | |
14256 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14257 | choke me | |
14258 | #else | |
14259 | char (*f) () = $ac_func; | |
14260 | #endif | |
14261 | #ifdef __cplusplus | |
14262 | } | |
14263 | #endif | |
14264 | ||
14265 | int | |
14266 | main () | |
14267 | { | |
14268 | return f != $ac_func; | |
14269 | ; | |
14270 | return 0; | |
14271 | } | |
14272 | _ACEOF | |
14273 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14275 | (eval $ac_link) 2>conftest.er1 | |
14276 | ac_status=$? | |
14277 | grep -v '^ *+' conftest.er1 >conftest.err | |
14278 | rm -f conftest.er1 | |
14279 | cat conftest.err >&5 | |
14280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14281 | (exit $ac_status); } && | |
121ce6e5 | 14282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a3828db0 MK |
14283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14284 | (eval $ac_try) 2>&5 | |
14285 | ac_status=$? | |
14286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14287 | (exit $ac_status); }; } && | |
14288 | { ac_try='test -s conftest$ac_exeext' | |
14289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14290 | (eval $ac_try) 2>&5 | |
14291 | ac_status=$? | |
14292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14293 | (exit $ac_status); }; }; then | |
14294 | eval "$as_ac_var=yes" | |
14295 | else | |
14296 | echo "$as_me: failed program was:" >&5 | |
14297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14298 | ||
14299 | eval "$as_ac_var=no" | |
14300 | fi | |
14301 | rm -f conftest.err conftest.$ac_objext \ | |
14302 | conftest$ac_exeext conftest.$ac_ext | |
14303 | fi | |
14304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14305 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14306 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14307 | ||
14308 | cat >>confdefs.h <<_ACEOF | |
14309 | #define CRAY_STACKSEG_END $ac_func | |
14310 | _ACEOF | |
14311 | ||
14312 | break | |
14313 | fi | |
14314 | ||
14315 | done | |
14316 | fi | |
14317 | ||
14318 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
14319 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
14320 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
14321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14322 | else | |
14323 | if test "$cross_compiling" = yes; then | |
14324 | ac_cv_c_stack_direction=0 | |
14325 | else | |
14326 | cat >conftest.$ac_ext <<_ACEOF | |
14327 | /* confdefs.h. */ | |
14328 | _ACEOF | |
14329 | cat confdefs.h >>conftest.$ac_ext | |
14330 | cat >>conftest.$ac_ext <<_ACEOF | |
14331 | /* end confdefs.h. */ | |
14332 | int | |
14333 | find_stack_direction () | |
14334 | { | |
14335 | static char *addr = 0; | |
14336 | auto char dummy; | |
14337 | if (addr == 0) | |
14338 | { | |
14339 | addr = &dummy; | |
14340 | return find_stack_direction (); | |
14341 | } | |
14342 | else | |
14343 | return (&dummy > addr) ? 1 : -1; | |
14344 | } | |
14345 | ||
14346 | int | |
14347 | main () | |
14348 | { | |
14349 | exit (find_stack_direction () < 0); | |
14350 | } | |
14351 | _ACEOF | |
14352 | rm -f conftest$ac_exeext | |
14353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14354 | (eval $ac_link) 2>&5 | |
14355 | ac_status=$? | |
14356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14357 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14359 | (eval $ac_try) 2>&5 | |
14360 | ac_status=$? | |
14361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14362 | (exit $ac_status); }; }; then | |
14363 | ac_cv_c_stack_direction=1 | |
14364 | else | |
14365 | echo "$as_me: program exited with status $ac_status" >&5 | |
14366 | echo "$as_me: failed program was:" >&5 | |
14367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14368 | ||
14369 | ( exit $ac_status ) | |
14370 | ac_cv_c_stack_direction=-1 | |
14371 | fi | |
14372 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14373 | fi | |
14374 | fi | |
14375 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
14376 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
14377 | ||
14378 | cat >>confdefs.h <<_ACEOF | |
14379 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
14380 | _ACEOF | |
14381 | ||
14382 | ||
14383 | fi | |
14384 | ||
14385 | ||
14386 | ||
14387 | for ac_header in stdlib.h unistd.h | |
14388 | do | |
14389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14395 | fi | |
14396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14397 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14398 | else | |
14399 | # Is the header compilable? | |
14400 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14401 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14402 | cat >conftest.$ac_ext <<_ACEOF | |
14403 | /* confdefs.h. */ | |
14404 | _ACEOF | |
14405 | cat confdefs.h >>conftest.$ac_ext | |
14406 | cat >>conftest.$ac_ext <<_ACEOF | |
14407 | /* end confdefs.h. */ | |
14408 | $ac_includes_default | |
14409 | #include <$ac_header> | |
14410 | _ACEOF | |
14411 | rm -f conftest.$ac_objext | |
14412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14413 | (eval $ac_compile) 2>conftest.er1 | |
14414 | ac_status=$? | |
bec39cab AC |
14415 | grep -v '^ *+' conftest.er1 >conftest.err |
14416 | rm -f conftest.er1 | |
14417 | cat conftest.err >&5 | |
14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14419 | (exit $ac_status); } && | |
121ce6e5 | 14420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
14421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14422 | (eval $ac_try) 2>&5 | |
14423 | ac_status=$? | |
14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14425 | (exit $ac_status); }; } && | |
14426 | { ac_try='test -s conftest.$ac_objext' | |
14427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14428 | (eval $ac_try) 2>&5 | |
14429 | ac_status=$? | |
14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14431 | (exit $ac_status); }; }; then | |
14432 | ac_header_compiler=yes | |
14433 | else | |
14434 | echo "$as_me: failed program was:" >&5 | |
14435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14436 | ||
14437 | ac_header_compiler=no | |
14438 | fi | |
14439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14440 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14441 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14442 | ||
14443 | # Is the header present? | |
14444 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14445 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14446 | cat >conftest.$ac_ext <<_ACEOF | |
14447 | /* confdefs.h. */ | |
14448 | _ACEOF | |
14449 | cat confdefs.h >>conftest.$ac_ext | |
14450 | cat >>conftest.$ac_ext <<_ACEOF | |
14451 | /* end confdefs.h. */ | |
14452 | #include <$ac_header> | |
14453 | _ACEOF | |
14454 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14455 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14456 | ac_status=$? | |
14457 | grep -v '^ *+' conftest.er1 >conftest.err | |
14458 | rm -f conftest.er1 | |
14459 | cat conftest.err >&5 | |
14460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14461 | (exit $ac_status); } >/dev/null; then | |
14462 | if test -s conftest.err; then | |
14463 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14464 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14465 | else | |
14466 | ac_cpp_err= | |
14467 | fi | |
14468 | else | |
14469 | ac_cpp_err=yes | |
14470 | fi | |
14471 | if test -z "$ac_cpp_err"; then | |
14472 | ac_header_preproc=yes | |
97bf5e38 | 14473 | else |
bec39cab AC |
14474 | echo "$as_me: failed program was:" >&5 |
14475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14476 | ||
14477 | ac_header_preproc=no | |
72473524 | 14478 | fi |
bec39cab AC |
14479 | rm -f conftest.err conftest.$ac_ext |
14480 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14481 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 14482 | |
bec39cab AC |
14483 | # So? What about this header? |
14484 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14485 | yes:no: ) | |
14486 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14487 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14488 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14489 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14490 | ac_header_preproc=yes | |
14491 | ;; | |
14492 | no:yes:* ) | |
14493 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14494 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14495 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14496 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14497 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14498 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14499 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14500 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14501 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14502 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14503 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14504 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14505 | ( | |
14506 | cat <<\_ASBOX | |
14507 | ## ------------------------------------------ ## | |
14508 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14509 | ## ------------------------------------------ ## | |
14510 | _ASBOX | |
14511 | ) | | |
14512 | sed "s/^/$as_me: WARNING: /" >&2 | |
14513 | ;; | |
14514 | esac | |
14515 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14517 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 14519 | else |
bec39cab AC |
14520 | eval "$as_ac_Header=\$ac_header_preproc" |
14521 | fi | |
14522 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14523 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14524 | ||
14525 | fi | |
14526 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14527 | cat >>confdefs.h <<_ACEOF | |
14528 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14529 | _ACEOF | |
14530 | ||
14531 | fi | |
14532 | ||
14533 | done | |
14534 | ||
14535 | ||
a3828db0 | 14536 | for ac_func in getpagesize |
bec39cab AC |
14537 | do |
14538 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14539 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14540 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14541 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14543 | else | |
14544 | cat >conftest.$ac_ext <<_ACEOF | |
14545 | /* confdefs.h. */ | |
14546 | _ACEOF | |
14547 | cat confdefs.h >>conftest.$ac_ext | |
14548 | cat >>conftest.$ac_ext <<_ACEOF | |
14549 | /* end confdefs.h. */ | |
14550 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14551 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14552 | #define $ac_func innocuous_$ac_func | |
14553 | ||
97bf5e38 | 14554 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14555 | which can conflict with char $ac_func (); below. |
14556 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14557 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 14558 | |
bec39cab AC |
14559 | #ifdef __STDC__ |
14560 | # include <limits.h> | |
14561 | #else | |
14562 | # include <assert.h> | |
14563 | #endif | |
97bf5e38 | 14564 | |
bec39cab AC |
14565 | #undef $ac_func |
14566 | ||
14567 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14568 | #ifdef __cplusplus | |
14569 | extern "C" | |
14570 | { | |
14571 | #endif | |
14572 | /* We use char because int might match the return type of a gcc2 | |
14573 | builtin and then its argument prototype would still apply. */ | |
14574 | char $ac_func (); | |
97bf5e38 MK |
14575 | /* The GNU C library defines this for functions which it implements |
14576 | to always fail with ENOSYS. Some functions are actually named | |
14577 | something starting with __ and the normal name is an alias. */ | |
bec39cab | 14578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 MK |
14579 | choke me |
14580 | #else | |
bec39cab AC |
14581 | char (*f) () = $ac_func; |
14582 | #endif | |
14583 | #ifdef __cplusplus | |
14584 | } | |
97bf5e38 MK |
14585 | #endif |
14586 | ||
bec39cab AC |
14587 | int |
14588 | main () | |
14589 | { | |
14590 | return f != $ac_func; | |
14591 | ; | |
14592 | return 0; | |
14593 | } | |
14594 | _ACEOF | |
14595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14597 | (eval $ac_link) 2>conftest.er1 | |
14598 | ac_status=$? | |
14599 | grep -v '^ *+' conftest.er1 >conftest.err | |
14600 | rm -f conftest.er1 | |
14601 | cat conftest.err >&5 | |
14602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14603 | (exit $ac_status); } && | |
121ce6e5 | 14604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
14605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14606 | (eval $ac_try) 2>&5 | |
14607 | ac_status=$? | |
14608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14609 | (exit $ac_status); }; } && | |
14610 | { ac_try='test -s conftest$ac_exeext' | |
14611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14612 | (eval $ac_try) 2>&5 | |
14613 | ac_status=$? | |
14614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14615 | (exit $ac_status); }; }; then | |
14616 | eval "$as_ac_var=yes" | |
14617 | else | |
14618 | echo "$as_me: failed program was:" >&5 | |
14619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14620 | ||
14621 | eval "$as_ac_var=no" | |
14622 | fi | |
14623 | rm -f conftest.err conftest.$ac_objext \ | |
14624 | conftest$ac_exeext conftest.$ac_ext | |
14625 | fi | |
14626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14627 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14628 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14629 | cat >>confdefs.h <<_ACEOF | |
14630 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14631 | _ACEOF | |
14632 | ||
2b2d558c | 14633 | fi |
bec39cab | 14634 | done |
2b2d558c | 14635 | |
a3828db0 MK |
14636 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
14637 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
14638 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
bec39cab | 14639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 14640 | else |
bec39cab | 14641 | if test "$cross_compiling" = yes; then |
a3828db0 | 14642 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
14643 | else |
14644 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 14645 | /* confdefs.h. */ |
bec39cab AC |
14646 | _ACEOF |
14647 | cat confdefs.h >>conftest.$ac_ext | |
14648 | cat >>conftest.$ac_ext <<_ACEOF | |
14649 | /* end confdefs.h. */ | |
a3828db0 MK |
14650 | $ac_includes_default |
14651 | /* malloc might have been renamed as rpl_malloc. */ | |
14652 | #undef malloc | |
bec39cab | 14653 | |
a3828db0 MK |
14654 | /* Thanks to Mike Haertel and Jim Avera for this test. |
14655 | Here is a matrix of mmap possibilities: | |
14656 | mmap private not fixed | |
14657 | mmap private fixed at somewhere currently unmapped | |
14658 | mmap private fixed at somewhere already mapped | |
14659 | mmap shared not fixed | |
14660 | mmap shared fixed at somewhere currently unmapped | |
14661 | mmap shared fixed at somewhere already mapped | |
14662 | For private mappings, we should verify that changes cannot be read() | |
14663 | back from the file, nor mmap's back from the file at a different | |
14664 | address. (There have been systems where private was not correctly | |
14665 | implemented like the infamous i386 svr4.0, and systems where the | |
14666 | VM page cache was not coherent with the file system buffer cache | |
14667 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
14668 | For shared mappings, we should conversely verify that changes get | |
14669 | propagated back to all the places they're supposed to be. | |
7dfa765c | 14670 | |
a3828db0 MK |
14671 | Grep wants private fixed already mapped. |
14672 | The main things grep needs to know about mmap are: | |
14673 | * does it exist and is it safe to write into the mmap'd area | |
14674 | * how to use it (BSD variants) */ | |
7dfa765c | 14675 | |
a3828db0 MK |
14676 | #include <fcntl.h> |
14677 | #include <sys/mman.h> | |
7dfa765c | 14678 | |
a3828db0 MK |
14679 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
14680 | char *malloc (); | |
14681 | #endif | |
7dfa765c | 14682 | |
a3828db0 MK |
14683 | /* This mess was copied from the GNU getpagesize.h. */ |
14684 | #if !HAVE_GETPAGESIZE | |
14685 | /* Assume that all systems that can run configure have sys/param.h. */ | |
14686 | # if !HAVE_SYS_PARAM_H | |
14687 | # define HAVE_SYS_PARAM_H 1 | |
14688 | # endif | |
64bb1671 | 14689 | |
a3828db0 MK |
14690 | # ifdef _SC_PAGESIZE |
14691 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14692 | # else /* no _SC_PAGESIZE */ | |
14693 | # if HAVE_SYS_PARAM_H | |
14694 | # include <sys/param.h> | |
14695 | # ifdef EXEC_PAGESIZE | |
14696 | # define getpagesize() EXEC_PAGESIZE | |
14697 | # else /* no EXEC_PAGESIZE */ | |
14698 | # ifdef NBPG | |
14699 | # define getpagesize() NBPG * CLSIZE | |
14700 | # ifndef CLSIZE | |
14701 | # define CLSIZE 1 | |
14702 | # endif /* no CLSIZE */ | |
14703 | # else /* no NBPG */ | |
14704 | # ifdef NBPC | |
14705 | # define getpagesize() NBPC | |
14706 | # else /* no NBPC */ | |
14707 | # ifdef PAGESIZE | |
14708 | # define getpagesize() PAGESIZE | |
14709 | # endif /* PAGESIZE */ | |
14710 | # endif /* no NBPC */ | |
14711 | # endif /* no NBPG */ | |
14712 | # endif /* no EXEC_PAGESIZE */ | |
14713 | # else /* no HAVE_SYS_PARAM_H */ | |
14714 | # define getpagesize() 8192 /* punt totally */ | |
14715 | # endif /* no HAVE_SYS_PARAM_H */ | |
14716 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 14717 | |
a3828db0 | 14718 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 14719 | |
a3828db0 MK |
14720 | int |
14721 | main () | |
14722 | { | |
14723 | char *data, *data2, *data3; | |
14724 | int i, pagesize; | |
14725 | int fd; | |
97bf5e38 | 14726 | |
a3828db0 MK |
14727 | pagesize = getpagesize (); |
14728 | ||
14729 | /* First, make a file with some known garbage in it. */ | |
14730 | data = (char *) malloc (pagesize); | |
14731 | if (!data) | |
14732 | exit (1); | |
14733 | for (i = 0; i < pagesize; ++i) | |
14734 | *(data + i) = rand (); | |
14735 | umask (0); | |
14736 | fd = creat ("conftest.mmap", 0600); | |
14737 | if (fd < 0) | |
14738 | exit (1); | |
14739 | if (write (fd, data, pagesize) != pagesize) | |
14740 | exit (1); | |
14741 | close (fd); | |
14742 | ||
14743 | /* Next, try to mmap the file at a fixed address which already has | |
14744 | something else allocated at it. If we can, also make sure that | |
14745 | we see the same garbage. */ | |
14746 | fd = open ("conftest.mmap", O_RDWR); | |
14747 | if (fd < 0) | |
14748 | exit (1); | |
14749 | data2 = (char *) malloc (2 * pagesize); | |
14750 | if (!data2) | |
14751 | exit (1); | |
14752 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
14753 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
14754 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
14755 | exit (1); | |
14756 | for (i = 0; i < pagesize; ++i) | |
14757 | if (*(data + i) != *(data2 + i)) | |
14758 | exit (1); | |
14759 | ||
14760 | /* Finally, make sure that changes to the mapped area do not | |
14761 | percolate back to the file as seen by read(). (This is a bug on | |
14762 | some variants of i386 svr4.0.) */ | |
14763 | for (i = 0; i < pagesize; ++i) | |
14764 | *(data2 + i) = *(data2 + i) + 1; | |
14765 | data3 = (char *) malloc (pagesize); | |
14766 | if (!data3) | |
14767 | exit (1); | |
14768 | if (read (fd, data3, pagesize) != pagesize) | |
14769 | exit (1); | |
14770 | for (i = 0; i < pagesize; ++i) | |
14771 | if (*(data + i) != *(data3 + i)) | |
14772 | exit (1); | |
14773 | close (fd); | |
14774 | exit (0); | |
97bf5e38 | 14775 | } |
bec39cab AC |
14776 | _ACEOF |
14777 | rm -f conftest$ac_exeext | |
14778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14779 | (eval $ac_link) 2>&5 | |
14780 | ac_status=$? | |
14781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14782 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14784 | (eval $ac_try) 2>&5 | |
14785 | ac_status=$? | |
14786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14787 | (exit $ac_status); }; }; then | |
a3828db0 | 14788 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 14789 | else |
bec39cab AC |
14790 | echo "$as_me: program exited with status $ac_status" >&5 |
14791 | echo "$as_me: failed program was:" >&5 | |
14792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14793 | ||
14794 | ( exit $ac_status ) | |
a3828db0 | 14795 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 14796 | fi |
a3828db0 | 14797 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 14798 | fi |
a3828db0 MK |
14799 | fi |
14800 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
14801 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
14802 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
bec39cab AC |
14803 | |
14804 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 14805 | #define HAVE_MMAP 1 |
bec39cab | 14806 | _ACEOF |
0afdd437 MK |
14807 | |
14808 | fi | |
a3828db0 | 14809 | rm -f conftest.mmap |
0afdd437 | 14810 | |
a3828db0 MK |
14811 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
14812 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
14813 | if test "${ac_cv_type_pid_t+set}" = set; then | |
bec39cab AC |
14814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14815 | else | |
14816 | cat >conftest.$ac_ext <<_ACEOF | |
14817 | /* confdefs.h. */ | |
14818 | _ACEOF | |
14819 | cat confdefs.h >>conftest.$ac_ext | |
14820 | cat >>conftest.$ac_ext <<_ACEOF | |
14821 | /* end confdefs.h. */ | |
a3828db0 | 14822 | $ac_includes_default |
bec39cab AC |
14823 | int |
14824 | main () | |
14825 | { | |
a3828db0 MK |
14826 | if ((pid_t *) 0) |
14827 | return 0; | |
14828 | if (sizeof (pid_t)) | |
14829 | return 0; | |
bec39cab AC |
14830 | ; |
14831 | return 0; | |
14832 | } | |
14833 | _ACEOF | |
a3828db0 MK |
14834 | rm -f conftest.$ac_objext |
14835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14836 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
14837 | ac_status=$? |
14838 | grep -v '^ *+' conftest.er1 >conftest.err | |
14839 | rm -f conftest.er1 | |
14840 | cat conftest.err >&5 | |
14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14842 | (exit $ac_status); } && | |
121ce6e5 | 14843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
14844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14845 | (eval $ac_try) 2>&5 | |
14846 | ac_status=$? | |
14847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14848 | (exit $ac_status); }; } && | |
a3828db0 | 14849 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
14850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14851 | (eval $ac_try) 2>&5 | |
14852 | ac_status=$? | |
14853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14854 | (exit $ac_status); }; }; then | |
a3828db0 | 14855 | ac_cv_type_pid_t=yes |
bec39cab AC |
14856 | else |
14857 | echo "$as_me: failed program was:" >&5 | |
14858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14859 | ||
a3828db0 | 14860 | ac_cv_type_pid_t=no |
bec39cab | 14861 | fi |
a3828db0 | 14862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 14863 | fi |
a3828db0 MK |
14864 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
14865 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
14866 | if test $ac_cv_type_pid_t = yes; then | |
14867 | : | |
14868 | else | |
14869 | ||
14870 | cat >>confdefs.h <<_ACEOF | |
14871 | #define pid_t int | |
bec39cab | 14872 | _ACEOF |
7e89e357 | 14873 | |
7e89e357 JT |
14874 | fi |
14875 | ||
bec39cab | 14876 | |
a3828db0 MK |
14877 | |
14878 | for ac_header in unistd.h vfork.h | |
7be570e7 | 14879 | do |
a3828db0 MK |
14880 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
14881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14882 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14883 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14884 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 14885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
14886 | fi |
14887 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14888 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14889 | else |
a3828db0 MK |
14890 | # Is the header compilable? |
14891 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14892 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14893 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
14894 | /* confdefs.h. */ |
14895 | _ACEOF | |
14896 | cat confdefs.h >>conftest.$ac_ext | |
14897 | cat >>conftest.$ac_ext <<_ACEOF | |
14898 | /* end confdefs.h. */ | |
a3828db0 MK |
14899 | $ac_includes_default |
14900 | #include <$ac_header> | |
bec39cab | 14901 | _ACEOF |
a3828db0 MK |
14902 | rm -f conftest.$ac_objext |
14903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14904 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
14905 | ac_status=$? |
14906 | grep -v '^ *+' conftest.er1 >conftest.err | |
14907 | rm -f conftest.er1 | |
14908 | cat conftest.err >&5 | |
14909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14910 | (exit $ac_status); } && | |
121ce6e5 | 14911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
14912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14913 | (eval $ac_try) 2>&5 | |
14914 | ac_status=$? | |
14915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14916 | (exit $ac_status); }; } && | |
a3828db0 | 14917 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
14918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14919 | (eval $ac_try) 2>&5 | |
14920 | ac_status=$? | |
14921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14922 | (exit $ac_status); }; }; then | |
a3828db0 | 14923 | ac_header_compiler=yes |
bec39cab AC |
14924 | else |
14925 | echo "$as_me: failed program was:" >&5 | |
14926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14927 | ||
a3828db0 | 14928 | ac_header_compiler=no |
bec39cab | 14929 | fi |
a3828db0 MK |
14930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14931 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14932 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14933 | ||
14934 | # Is the header present? | |
14935 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14936 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14937 | cat >conftest.$ac_ext <<_ACEOF | |
14938 | /* confdefs.h. */ | |
14939 | _ACEOF | |
14940 | cat confdefs.h >>conftest.$ac_ext | |
14941 | cat >>conftest.$ac_ext <<_ACEOF | |
14942 | /* end confdefs.h. */ | |
14943 | #include <$ac_header> | |
14944 | _ACEOF | |
14945 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14946 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14947 | ac_status=$? | |
14948 | grep -v '^ *+' conftest.er1 >conftest.err | |
14949 | rm -f conftest.er1 | |
14950 | cat conftest.err >&5 | |
14951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14952 | (exit $ac_status); } >/dev/null; then | |
14953 | if test -s conftest.err; then | |
14954 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14955 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14956 | else | |
14957 | ac_cpp_err= | |
14958 | fi | |
14959 | else | |
14960 | ac_cpp_err=yes | |
14961 | fi | |
14962 | if test -z "$ac_cpp_err"; then | |
14963 | ac_header_preproc=yes | |
14964 | else | |
14965 | echo "$as_me: failed program was:" >&5 | |
14966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14967 | ||
14968 | ac_header_preproc=no | |
14969 | fi | |
14970 | rm -f conftest.err conftest.$ac_ext | |
14971 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14972 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14973 | ||
14974 | # So? What about this header? | |
14975 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14976 | yes:no: ) | |
14977 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14978 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14980 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14981 | ac_header_preproc=yes | |
14982 | ;; | |
14983 | no:yes:* ) | |
14984 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14985 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14986 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14987 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14988 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14989 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14990 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14991 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14992 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14993 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14994 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14995 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14996 | ( | |
14997 | cat <<\_ASBOX | |
14998 | ## ------------------------------------------ ## | |
14999 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15000 | ## ------------------------------------------ ## | |
15001 | _ASBOX | |
15002 | ) | | |
15003 | sed "s/^/$as_me: WARNING: /" >&2 | |
15004 | ;; | |
15005 | esac | |
15006 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15007 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15010 | else | |
15011 | eval "$as_ac_Header=\$ac_header_preproc" | |
15012 | fi | |
15013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15014 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15015 | ||
bec39cab | 15016 | fi |
a3828db0 | 15017 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 15018 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 15019 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 15020 | _ACEOF |
14abd0fb | 15021 | |
14abd0fb | 15022 | fi |
a3828db0 | 15023 | |
14abd0fb MK |
15024 | done |
15025 | ||
bec39cab | 15026 | |
a3828db0 MK |
15027 | |
15028 | for ac_func in fork vfork | |
14abd0fb | 15029 | do |
bec39cab AC |
15030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15031 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15033 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15035 | else | |
15036 | cat >conftest.$ac_ext <<_ACEOF | |
15037 | /* confdefs.h. */ | |
15038 | _ACEOF | |
15039 | cat confdefs.h >>conftest.$ac_ext | |
15040 | cat >>conftest.$ac_ext <<_ACEOF | |
15041 | /* end confdefs.h. */ | |
15042 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15043 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15044 | #define $ac_func innocuous_$ac_func | |
15045 | ||
14abd0fb | 15046 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15047 | which can conflict with char $ac_func (); below. |
15048 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15049 | <limits.h> exists even on freestanding compilers. */ | |
15050 | ||
15051 | #ifdef __STDC__ | |
15052 | # include <limits.h> | |
15053 | #else | |
15054 | # include <assert.h> | |
15055 | #endif | |
14abd0fb | 15056 | |
bec39cab | 15057 | #undef $ac_func |
14abd0fb | 15058 | |
bec39cab AC |
15059 | /* Override any gcc2 internal prototype to avoid an error. */ |
15060 | #ifdef __cplusplus | |
15061 | extern "C" | |
15062 | { | |
15063 | #endif | |
15064 | /* We use char because int might match the return type of a gcc2 | |
15065 | builtin and then its argument prototype would still apply. */ | |
15066 | char $ac_func (); | |
14abd0fb MK |
15067 | /* The GNU C library defines this for functions which it implements |
15068 | to always fail with ENOSYS. Some functions are actually named | |
15069 | something starting with __ and the normal name is an alias. */ | |
15070 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15071 | choke me | |
15072 | #else | |
bec39cab AC |
15073 | char (*f) () = $ac_func; |
15074 | #endif | |
15075 | #ifdef __cplusplus | |
15076 | } | |
14abd0fb MK |
15077 | #endif |
15078 | ||
bec39cab AC |
15079 | int |
15080 | main () | |
15081 | { | |
15082 | return f != $ac_func; | |
15083 | ; | |
15084 | return 0; | |
15085 | } | |
15086 | _ACEOF | |
15087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15089 | (eval $ac_link) 2>conftest.er1 | |
15090 | ac_status=$? | |
15091 | grep -v '^ *+' conftest.er1 >conftest.err | |
15092 | rm -f conftest.er1 | |
15093 | cat conftest.err >&5 | |
15094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15095 | (exit $ac_status); } && | |
121ce6e5 | 15096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
15097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15098 | (eval $ac_try) 2>&5 | |
15099 | ac_status=$? | |
15100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15101 | (exit $ac_status); }; } && | |
15102 | { ac_try='test -s conftest$ac_exeext' | |
15103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15104 | (eval $ac_try) 2>&5 | |
15105 | ac_status=$? | |
15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15107 | (exit $ac_status); }; }; then | |
15108 | eval "$as_ac_var=yes" | |
15109 | else | |
15110 | echo "$as_me: failed program was:" >&5 | |
15111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15112 | ||
15113 | eval "$as_ac_var=no" | |
15114 | fi | |
15115 | rm -f conftest.err conftest.$ac_objext \ | |
15116 | conftest$ac_exeext conftest.$ac_ext | |
15117 | fi | |
15118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15119 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15120 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15121 | cat >>confdefs.h <<_ACEOF | |
15122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15123 | _ACEOF | |
7be570e7 | 15124 | |
7be570e7 JM |
15125 | fi |
15126 | done | |
15127 | ||
a3828db0 MK |
15128 | if test "x$ac_cv_func_fork" = xyes; then |
15129 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
15130 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
15131 | if test "${ac_cv_func_fork_works+set}" = set; then | |
15132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15133 | else | |
15134 | if test "$cross_compiling" = yes; then | |
15135 | ac_cv_func_fork_works=cross | |
15136 | else | |
15137 | cat >conftest.$ac_ext <<_ACEOF | |
121ce6e5 DJ |
15138 | /* confdefs.h. */ |
15139 | _ACEOF | |
15140 | cat confdefs.h >>conftest.$ac_ext | |
15141 | cat >>conftest.$ac_ext <<_ACEOF | |
15142 | /* end confdefs.h. */ | |
15143 | $ac_includes_default | |
15144 | int | |
15145 | main () | |
15146 | { | |
15147 | ||
15148 | /* By Ruediger Kuhlmann. */ | |
15149 | if (fork() < 0) | |
15150 | exit (1); | |
15151 | exit (0); | |
15152 | ||
15153 | ; | |
15154 | return 0; | |
15155 | } | |
a3828db0 MK |
15156 | _ACEOF |
15157 | rm -f conftest$ac_exeext | |
15158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15159 | (eval $ac_link) 2>&5 | |
15160 | ac_status=$? | |
15161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15162 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15164 | (eval $ac_try) 2>&5 | |
15165 | ac_status=$? | |
15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15167 | (exit $ac_status); }; }; then | |
15168 | ac_cv_func_fork_works=yes | |
15169 | else | |
15170 | echo "$as_me: program exited with status $ac_status" >&5 | |
15171 | echo "$as_me: failed program was:" >&5 | |
15172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 15173 | |
a3828db0 MK |
15174 | ( exit $ac_status ) |
15175 | ac_cv_func_fork_works=no | |
15176 | fi | |
15177 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15178 | fi | |
15179 | fi | |
15180 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
15181 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
15182 | ||
15183 | else | |
15184 | ac_cv_func_fork_works=$ac_cv_func_fork | |
15185 | fi | |
15186 | if test "x$ac_cv_func_fork_works" = xcross; then | |
15187 | case $host in | |
15188 | *-*-amigaos* | *-*-msdosdjgpp*) | |
15189 | # Override, as these systems have only a dummy fork() stub | |
15190 | ac_cv_func_fork_works=no | |
15191 | ;; | |
15192 | *) | |
15193 | ac_cv_func_fork_works=yes | |
15194 | ;; | |
15195 | esac | |
15196 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
15197 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
15198 | fi | |
15199 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
15200 | if test "x$ac_cv_func_vfork" = xyes; then | |
15201 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
15202 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
15203 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
bec39cab | 15204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
15205 | else |
15206 | if test "$cross_compiling" = yes; then | |
15207 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
15208 | else |
15209 | cat >conftest.$ac_ext <<_ACEOF | |
15210 | /* confdefs.h. */ | |
15211 | _ACEOF | |
15212 | cat confdefs.h >>conftest.$ac_ext | |
15213 | cat >>conftest.$ac_ext <<_ACEOF | |
15214 | /* end confdefs.h. */ | |
a3828db0 MK |
15215 | /* Thanks to Paul Eggert for this test. */ |
15216 | #include <stdio.h> | |
15217 | #include <stdlib.h> | |
15218 | #include <sys/types.h> | |
15219 | #include <sys/stat.h> | |
15220 | #include <sys/wait.h> | |
15221 | #if HAVE_UNISTD_H | |
15222 | # include <unistd.h> | |
bec39cab | 15223 | #endif |
a3828db0 MK |
15224 | #if HAVE_VFORK_H |
15225 | # include <vfork.h> | |
bec39cab | 15226 | #endif |
a3828db0 MK |
15227 | /* On some sparc systems, changes by the child to local and incoming |
15228 | argument registers are propagated back to the parent. The compiler | |
15229 | is told about this with #include <vfork.h>, but some compilers | |
15230 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
15231 | static variable whose address is put into a register that is | |
15232 | clobbered by the vfork. */ | |
15233 | static void | |
bec39cab | 15234 | #ifdef __cplusplus |
a3828db0 MK |
15235 | sparc_address_test (int arg) |
15236 | # else | |
15237 | sparc_address_test (arg) int arg; | |
c906108c | 15238 | #endif |
a3828db0 MK |
15239 | { |
15240 | static pid_t child; | |
15241 | if (!child) { | |
15242 | child = vfork (); | |
15243 | if (child < 0) { | |
15244 | perror ("vfork"); | |
15245 | _exit(2); | |
15246 | } | |
15247 | if (!child) { | |
15248 | arg = getpid(); | |
15249 | write(-1, "", 0); | |
15250 | _exit (arg); | |
15251 | } | |
15252 | } | |
15253 | } | |
97bf5e38 | 15254 | |
bec39cab AC |
15255 | int |
15256 | main () | |
15257 | { | |
a3828db0 MK |
15258 | pid_t parent = getpid (); |
15259 | pid_t child; | |
15260 | ||
15261 | sparc_address_test (0); | |
15262 | ||
15263 | child = vfork (); | |
15264 | ||
15265 | if (child == 0) { | |
15266 | /* Here is another test for sparc vfork register problems. This | |
15267 | test uses lots of local variables, at least as many local | |
15268 | variables as main has allocated so far including compiler | |
15269 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
15270 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
15271 | reuse the register of parent for one of the local variables, | |
15272 | since it will think that parent can't possibly be used any more | |
15273 | in this routine. Assigning to the local variable will thus | |
15274 | munge parent in the parent process. */ | |
15275 | pid_t | |
15276 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
15277 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
15278 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
15279 | use the same hardware register for all 8 local variables. */ | |
15280 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
15281 | || p != p5 || p != p6 || p != p7) | |
15282 | _exit(1); | |
15283 | ||
15284 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
15285 | from child file descriptors. If the child closes a descriptor | |
15286 | before it execs or exits, this munges the parent's descriptor | |
15287 | as well. Test for this by closing stdout in the child. */ | |
15288 | _exit(close(fileno(stdout)) != 0); | |
15289 | } else { | |
15290 | int status; | |
15291 | struct stat st; | |
15292 | ||
15293 | while (wait(&status) != child) | |
15294 | ; | |
15295 | exit( | |
15296 | /* Was there some problem with vforking? */ | |
15297 | child < 0 | |
15298 | ||
15299 | /* Did the child fail? (This shouldn't happen.) */ | |
15300 | || status | |
15301 | ||
15302 | /* Did the vfork/compiler bug occur? */ | |
15303 | || parent != getpid() | |
15304 | ||
15305 | /* Did the file descriptor bug occur? */ | |
15306 | || fstat(fileno(stdout), &st) != 0 | |
15307 | ); | |
15308 | } | |
bec39cab AC |
15309 | } |
15310 | _ACEOF | |
a3828db0 | 15311 | rm -f conftest$ac_exeext |
bec39cab | 15312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 15313 | (eval $ac_link) 2>&5 |
bec39cab AC |
15314 | ac_status=$? |
15315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 15316 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
15317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15318 | (eval $ac_try) 2>&5 | |
15319 | ac_status=$? | |
15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15321 | (exit $ac_status); }; }; then | |
a3828db0 MK |
15322 | ac_cv_func_vfork_works=yes |
15323 | else | |
15324 | echo "$as_me: program exited with status $ac_status" >&5 | |
15325 | echo "$as_me: failed program was:" >&5 | |
15326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15327 | ||
15328 | ( exit $ac_status ) | |
15329 | ac_cv_func_vfork_works=no | |
15330 | fi | |
15331 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15332 | fi | |
15333 | fi | |
15334 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
15335 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
15336 | ||
15337 | fi; | |
15338 | if test "x$ac_cv_func_fork_works" = xcross; then | |
15339 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
15340 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
15341 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
15342 | fi | |
15343 | ||
15344 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
15345 | ||
15346 | cat >>confdefs.h <<\_ACEOF | |
15347 | #define HAVE_WORKING_VFORK 1 | |
15348 | _ACEOF | |
15349 | ||
bec39cab | 15350 | else |
bec39cab | 15351 | |
a3828db0 MK |
15352 | cat >>confdefs.h <<\_ACEOF |
15353 | #define vfork fork | |
15354 | _ACEOF | |
15355 | ||
bec39cab | 15356 | fi |
a3828db0 MK |
15357 | if test "x$ac_cv_func_fork_works" = xyes; then |
15358 | ||
15359 | cat >>confdefs.h <<\_ACEOF | |
15360 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 15361 | _ACEOF |
c906108c | 15362 | |
c906108c SS |
15363 | fi |
15364 | ||
bec39cab AC |
15365 | |
15366 | ||
a3828db0 | 15367 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 15368 | do |
bec39cab AC |
15369 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15370 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15371 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15372 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15374 | else | |
15375 | cat >conftest.$ac_ext <<_ACEOF | |
15376 | /* confdefs.h. */ | |
15377 | _ACEOF | |
15378 | cat confdefs.h >>conftest.$ac_ext | |
15379 | cat >>conftest.$ac_ext <<_ACEOF | |
15380 | /* end confdefs.h. */ | |
15381 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15382 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15383 | #define $ac_func innocuous_$ac_func | |
15384 | ||
d3ea6809 MM |
15385 | /* System header to define __stub macros and hopefully few prototypes, |
15386 | which can conflict with char $ac_func (); below. | |
15387 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15388 | <limits.h> exists even on freestanding compilers. */ | |
15389 | ||
15390 | #ifdef __STDC__ | |
15391 | # include <limits.h> | |
15392 | #else | |
15393 | # include <assert.h> | |
15394 | #endif | |
15395 | ||
15396 | #undef $ac_func | |
15397 | ||
15398 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15399 | #ifdef __cplusplus | |
15400 | extern "C" | |
15401 | { | |
15402 | #endif | |
15403 | /* We use char because int might match the return type of a gcc2 | |
15404 | builtin and then its argument prototype would still apply. */ | |
15405 | char $ac_func (); | |
15406 | /* The GNU C library defines this for functions which it implements | |
15407 | to always fail with ENOSYS. Some functions are actually named | |
15408 | something starting with __ and the normal name is an alias. */ | |
15409 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15410 | choke me | |
15411 | #else | |
15412 | char (*f) () = $ac_func; | |
15413 | #endif | |
15414 | #ifdef __cplusplus | |
15415 | } | |
15416 | #endif | |
15417 | ||
15418 | int | |
15419 | main () | |
15420 | { | |
15421 | return f != $ac_func; | |
15422 | ; | |
15423 | return 0; | |
15424 | } | |
15425 | _ACEOF | |
15426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15428 | (eval $ac_link) 2>conftest.er1 | |
15429 | ac_status=$? | |
15430 | grep -v '^ *+' conftest.er1 >conftest.err | |
15431 | rm -f conftest.er1 | |
15432 | cat conftest.err >&5 | |
15433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15434 | (exit $ac_status); } && | |
121ce6e5 | 15435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d3ea6809 MM |
15436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15437 | (eval $ac_try) 2>&5 | |
15438 | ac_status=$? | |
15439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15440 | (exit $ac_status); }; } && | |
15441 | { ac_try='test -s conftest$ac_exeext' | |
15442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15443 | (eval $ac_try) 2>&5 | |
15444 | ac_status=$? | |
15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15446 | (exit $ac_status); }; }; then | |
15447 | eval "$as_ac_var=yes" | |
15448 | else | |
15449 | echo "$as_me: failed program was:" >&5 | |
15450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15451 | ||
15452 | eval "$as_ac_var=no" | |
15453 | fi | |
15454 | rm -f conftest.err conftest.$ac_objext \ | |
15455 | conftest$ac_exeext conftest.$ac_ext | |
15456 | fi | |
15457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15458 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15459 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15460 | cat >>confdefs.h <<_ACEOF | |
15461 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15462 | _ACEOF | |
15463 | ||
15464 | fi | |
15465 | done | |
15466 | ||
15467 | ||
15468 | ||
15469 | for ac_func in getuid getgid | |
15470 | do | |
15471 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15472 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15473 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15474 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15476 | else | |
15477 | cat >conftest.$ac_ext <<_ACEOF | |
15478 | /* confdefs.h. */ | |
15479 | _ACEOF | |
15480 | cat confdefs.h >>conftest.$ac_ext | |
15481 | cat >>conftest.$ac_ext <<_ACEOF | |
15482 | /* end confdefs.h. */ | |
15483 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15484 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15485 | #define $ac_func innocuous_$ac_func | |
15486 | ||
97bf5e38 | 15487 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15488 | which can conflict with char $ac_func (); below. |
15489 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15490 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 15491 | |
bec39cab AC |
15492 | #ifdef __STDC__ |
15493 | # include <limits.h> | |
15494 | #else | |
15495 | # include <assert.h> | |
15496 | #endif | |
97bf5e38 | 15497 | |
bec39cab AC |
15498 | #undef $ac_func |
15499 | ||
15500 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15501 | #ifdef __cplusplus | |
15502 | extern "C" | |
15503 | { | |
15504 | #endif | |
15505 | /* We use char because int might match the return type of a gcc2 | |
15506 | builtin and then its argument prototype would still apply. */ | |
15507 | char $ac_func (); | |
97bf5e38 MK |
15508 | /* The GNU C library defines this for functions which it implements |
15509 | to always fail with ENOSYS. Some functions are actually named | |
15510 | something starting with __ and the normal name is an alias. */ | |
15511 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15512 | choke me | |
c906108c | 15513 | #else |
bec39cab AC |
15514 | char (*f) () = $ac_func; |
15515 | #endif | |
15516 | #ifdef __cplusplus | |
15517 | } | |
c906108c | 15518 | #endif |
97bf5e38 | 15519 | |
bec39cab AC |
15520 | int |
15521 | main () | |
15522 | { | |
15523 | return f != $ac_func; | |
15524 | ; | |
15525 | return 0; | |
15526 | } | |
15527 | _ACEOF | |
15528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15530 | (eval $ac_link) 2>conftest.er1 | |
15531 | ac_status=$? | |
15532 | grep -v '^ *+' conftest.er1 >conftest.err | |
15533 | rm -f conftest.er1 | |
15534 | cat conftest.err >&5 | |
15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15536 | (exit $ac_status); } && | |
121ce6e5 | 15537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
15538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15539 | (eval $ac_try) 2>&5 | |
15540 | ac_status=$? | |
15541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15542 | (exit $ac_status); }; } && | |
15543 | { ac_try='test -s conftest$ac_exeext' | |
15544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15545 | (eval $ac_try) 2>&5 | |
15546 | ac_status=$? | |
15547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15548 | (exit $ac_status); }; }; then | |
15549 | eval "$as_ac_var=yes" | |
15550 | else | |
15551 | echo "$as_me: failed program was:" >&5 | |
15552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15553 | ||
15554 | eval "$as_ac_var=no" | |
15555 | fi | |
15556 | rm -f conftest.err conftest.$ac_objext \ | |
15557 | conftest$ac_exeext conftest.$ac_ext | |
15558 | fi | |
15559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15560 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15561 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15562 | cat >>confdefs.h <<_ACEOF | |
15563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15564 | _ACEOF | |
c906108c | 15565 | |
c906108c | 15566 | fi |
97bf5e38 | 15567 | done |
c906108c | 15568 | |
bec39cab | 15569 | |
a3828db0 | 15570 | for ac_func in poll |
97bf5e38 | 15571 | do |
bec39cab AC |
15572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15573 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15575 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15577 | else | |
15578 | cat >conftest.$ac_ext <<_ACEOF | |
15579 | /* confdefs.h. */ | |
15580 | _ACEOF | |
15581 | cat confdefs.h >>conftest.$ac_ext | |
15582 | cat >>conftest.$ac_ext <<_ACEOF | |
15583 | /* end confdefs.h. */ | |
15584 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15585 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15586 | #define $ac_func innocuous_$ac_func | |
15587 | ||
97bf5e38 | 15588 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15589 | which can conflict with char $ac_func (); below. |
15590 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15591 | <limits.h> exists even on freestanding compilers. */ | |
15592 | ||
15593 | #ifdef __STDC__ | |
15594 | # include <limits.h> | |
15595 | #else | |
15596 | # include <assert.h> | |
15597 | #endif | |
c906108c | 15598 | |
bec39cab | 15599 | #undef $ac_func |
97bf5e38 | 15600 | |
bec39cab AC |
15601 | /* Override any gcc2 internal prototype to avoid an error. */ |
15602 | #ifdef __cplusplus | |
15603 | extern "C" | |
15604 | { | |
15605 | #endif | |
15606 | /* We use char because int might match the return type of a gcc2 | |
15607 | builtin and then its argument prototype would still apply. */ | |
15608 | char $ac_func (); | |
97bf5e38 MK |
15609 | /* The GNU C library defines this for functions which it implements |
15610 | to always fail with ENOSYS. Some functions are actually named | |
15611 | something starting with __ and the normal name is an alias. */ | |
15612 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15613 | choke me | |
c906108c | 15614 | #else |
bec39cab AC |
15615 | char (*f) () = $ac_func; |
15616 | #endif | |
15617 | #ifdef __cplusplus | |
15618 | } | |
c906108c | 15619 | #endif |
97bf5e38 | 15620 | |
bec39cab AC |
15621 | int |
15622 | main () | |
15623 | { | |
15624 | return f != $ac_func; | |
15625 | ; | |
15626 | return 0; | |
15627 | } | |
15628 | _ACEOF | |
15629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15631 | (eval $ac_link) 2>conftest.er1 | |
15632 | ac_status=$? | |
15633 | grep -v '^ *+' conftest.er1 >conftest.err | |
15634 | rm -f conftest.er1 | |
15635 | cat conftest.err >&5 | |
15636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15637 | (exit $ac_status); } && | |
121ce6e5 | 15638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
15639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15640 | (eval $ac_try) 2>&5 | |
15641 | ac_status=$? | |
15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15643 | (exit $ac_status); }; } && | |
15644 | { ac_try='test -s conftest$ac_exeext' | |
15645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15646 | (eval $ac_try) 2>&5 | |
15647 | ac_status=$? | |
15648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15649 | (exit $ac_status); }; }; then | |
15650 | eval "$as_ac_var=yes" | |
15651 | else | |
15652 | echo "$as_me: failed program was:" >&5 | |
15653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15654 | ||
15655 | eval "$as_ac_var=no" | |
15656 | fi | |
15657 | rm -f conftest.err conftest.$ac_objext \ | |
15658 | conftest$ac_exeext conftest.$ac_ext | |
15659 | fi | |
15660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15661 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15662 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15663 | cat >>confdefs.h <<_ACEOF | |
15664 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15665 | _ACEOF | |
c906108c | 15666 | |
c906108c | 15667 | fi |
97bf5e38 | 15668 | done |
c906108c | 15669 | |
bec39cab | 15670 | |
a3828db0 | 15671 | for ac_func in pread64 |
97bf5e38 | 15672 | do |
bec39cab AC |
15673 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15674 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15675 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15676 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15678 | else | |
15679 | cat >conftest.$ac_ext <<_ACEOF | |
15680 | /* confdefs.h. */ | |
15681 | _ACEOF | |
15682 | cat confdefs.h >>conftest.$ac_ext | |
15683 | cat >>conftest.$ac_ext <<_ACEOF | |
15684 | /* end confdefs.h. */ | |
15685 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15686 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15687 | #define $ac_func innocuous_$ac_func | |
15688 | ||
97bf5e38 | 15689 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15690 | which can conflict with char $ac_func (); below. |
15691 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15692 | <limits.h> exists even on freestanding compilers. */ | |
15693 | ||
15694 | #ifdef __STDC__ | |
15695 | # include <limits.h> | |
15696 | #else | |
15697 | # include <assert.h> | |
15698 | #endif | |
c906108c | 15699 | |
bec39cab | 15700 | #undef $ac_func |
97bf5e38 | 15701 | |
bec39cab AC |
15702 | /* Override any gcc2 internal prototype to avoid an error. */ |
15703 | #ifdef __cplusplus | |
15704 | extern "C" | |
15705 | { | |
15706 | #endif | |
15707 | /* We use char because int might match the return type of a gcc2 | |
15708 | builtin and then its argument prototype would still apply. */ | |
15709 | char $ac_func (); | |
97bf5e38 MK |
15710 | /* The GNU C library defines this for functions which it implements |
15711 | to always fail with ENOSYS. Some functions are actually named | |
15712 | something starting with __ and the normal name is an alias. */ | |
15713 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15714 | choke me | |
c906108c | 15715 | #else |
bec39cab AC |
15716 | char (*f) () = $ac_func; |
15717 | #endif | |
15718 | #ifdef __cplusplus | |
15719 | } | |
c906108c | 15720 | #endif |
97bf5e38 | 15721 | |
bec39cab AC |
15722 | int |
15723 | main () | |
15724 | { | |
15725 | return f != $ac_func; | |
15726 | ; | |
15727 | return 0; | |
15728 | } | |
15729 | _ACEOF | |
15730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15732 | (eval $ac_link) 2>conftest.er1 | |
15733 | ac_status=$? | |
15734 | grep -v '^ *+' conftest.er1 >conftest.err | |
15735 | rm -f conftest.er1 | |
15736 | cat conftest.err >&5 | |
15737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15738 | (exit $ac_status); } && | |
121ce6e5 | 15739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
15740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15741 | (eval $ac_try) 2>&5 | |
15742 | ac_status=$? | |
15743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15744 | (exit $ac_status); }; } && | |
15745 | { ac_try='test -s conftest$ac_exeext' | |
15746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15747 | (eval $ac_try) 2>&5 | |
15748 | ac_status=$? | |
15749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15750 | (exit $ac_status); }; }; then | |
15751 | eval "$as_ac_var=yes" | |
15752 | else | |
15753 | echo "$as_me: failed program was:" >&5 | |
15754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15755 | ||
15756 | eval "$as_ac_var=no" | |
15757 | fi | |
15758 | rm -f conftest.err conftest.$ac_objext \ | |
15759 | conftest$ac_exeext conftest.$ac_ext | |
15760 | fi | |
15761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15762 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15763 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15764 | cat >>confdefs.h <<_ACEOF | |
15765 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15766 | _ACEOF | |
c906108c | 15767 | |
c906108c | 15768 | fi |
97bf5e38 | 15769 | done |
c906108c | 15770 | |
bec39cab | 15771 | |
a3828db0 | 15772 | for ac_func in sbrk |
b757528f | 15773 | do |
bec39cab AC |
15774 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15775 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15776 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15777 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15779 | else | |
15780 | cat >conftest.$ac_ext <<_ACEOF | |
15781 | /* confdefs.h. */ | |
15782 | _ACEOF | |
15783 | cat confdefs.h >>conftest.$ac_ext | |
15784 | cat >>conftest.$ac_ext <<_ACEOF | |
15785 | /* end confdefs.h. */ | |
15786 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15788 | #define $ac_func innocuous_$ac_func | |
15789 | ||
b757528f | 15790 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15791 | which can conflict with char $ac_func (); below. |
15792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15793 | <limits.h> exists even on freestanding compilers. */ | |
15794 | ||
15795 | #ifdef __STDC__ | |
15796 | # include <limits.h> | |
15797 | #else | |
15798 | # include <assert.h> | |
15799 | #endif | |
b757528f | 15800 | |
bec39cab | 15801 | #undef $ac_func |
b757528f | 15802 | |
bec39cab AC |
15803 | /* Override any gcc2 internal prototype to avoid an error. */ |
15804 | #ifdef __cplusplus | |
15805 | extern "C" | |
15806 | { | |
15807 | #endif | |
15808 | /* We use char because int might match the return type of a gcc2 | |
15809 | builtin and then its argument prototype would still apply. */ | |
15810 | char $ac_func (); | |
b757528f JJ |
15811 | /* The GNU C library defines this for functions which it implements |
15812 | to always fail with ENOSYS. Some functions are actually named | |
15813 | something starting with __ and the normal name is an alias. */ | |
15814 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15815 | choke me | |
15816 | #else | |
bec39cab AC |
15817 | char (*f) () = $ac_func; |
15818 | #endif | |
15819 | #ifdef __cplusplus | |
15820 | } | |
b757528f JJ |
15821 | #endif |
15822 | ||
bec39cab AC |
15823 | int |
15824 | main () | |
15825 | { | |
15826 | return f != $ac_func; | |
15827 | ; | |
15828 | return 0; | |
15829 | } | |
15830 | _ACEOF | |
15831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15833 | (eval $ac_link) 2>conftest.er1 | |
15834 | ac_status=$? | |
15835 | grep -v '^ *+' conftest.er1 >conftest.err | |
15836 | rm -f conftest.er1 | |
15837 | cat conftest.err >&5 | |
15838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15839 | (exit $ac_status); } && | |
121ce6e5 | 15840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
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 | |
b757528f | 15868 | |
b757528f JJ |
15869 | fi |
15870 | done | |
15871 | ||
bec39cab | 15872 | |
a3828db0 MK |
15873 | |
15874 | for ac_func in setpgid setpgrp | |
bcb3dc3d | 15875 | do |
bec39cab AC |
15876 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15877 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15878 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15879 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15881 | else | |
15882 | cat >conftest.$ac_ext <<_ACEOF | |
15883 | /* confdefs.h. */ | |
15884 | _ACEOF | |
15885 | cat confdefs.h >>conftest.$ac_ext | |
15886 | cat >>conftest.$ac_ext <<_ACEOF | |
15887 | /* end confdefs.h. */ | |
15888 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15890 | #define $ac_func innocuous_$ac_func | |
15891 | ||
bcb3dc3d | 15892 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15893 | which can conflict with char $ac_func (); below. |
15894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15895 | <limits.h> exists even on freestanding compilers. */ | |
15896 | ||
15897 | #ifdef __STDC__ | |
15898 | # include <limits.h> | |
15899 | #else | |
15900 | # include <assert.h> | |
15901 | #endif | |
bcb3dc3d | 15902 | |
bec39cab | 15903 | #undef $ac_func |
bcb3dc3d | 15904 | |
bec39cab AC |
15905 | /* Override any gcc2 internal prototype to avoid an error. */ |
15906 | #ifdef __cplusplus | |
15907 | extern "C" | |
15908 | { | |
15909 | #endif | |
15910 | /* We use char because int might match the return type of a gcc2 | |
15911 | builtin and then its argument prototype would still apply. */ | |
15912 | char $ac_func (); | |
bcb3dc3d MK |
15913 | /* The GNU C library defines this for functions which it implements |
15914 | to always fail with ENOSYS. Some functions are actually named | |
15915 | something starting with __ and the normal name is an alias. */ | |
15916 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15917 | choke me | |
15918 | #else | |
bec39cab AC |
15919 | char (*f) () = $ac_func; |
15920 | #endif | |
15921 | #ifdef __cplusplus | |
15922 | } | |
bcb3dc3d MK |
15923 | #endif |
15924 | ||
bec39cab AC |
15925 | int |
15926 | main () | |
15927 | { | |
15928 | return f != $ac_func; | |
15929 | ; | |
15930 | return 0; | |
15931 | } | |
15932 | _ACEOF | |
15933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15935 | (eval $ac_link) 2>conftest.er1 | |
15936 | ac_status=$? | |
15937 | grep -v '^ *+' conftest.er1 >conftest.err | |
15938 | rm -f conftest.er1 | |
15939 | cat conftest.err >&5 | |
15940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15941 | (exit $ac_status); } && | |
121ce6e5 | 15942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
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 | |
bcb3dc3d | 15970 | |
bcb3dc3d MK |
15971 | fi |
15972 | done | |
15973 | ||
bec39cab | 15974 | |
a3828db0 MK |
15975 | |
15976 | ||
15977 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 15978 | do |
bec39cab AC |
15979 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15980 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15981 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15982 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15984 | else | |
15985 | cat >conftest.$ac_ext <<_ACEOF | |
15986 | /* confdefs.h. */ | |
15987 | _ACEOF | |
15988 | cat confdefs.h >>conftest.$ac_ext | |
15989 | cat >>conftest.$ac_ext <<_ACEOF | |
15990 | /* end confdefs.h. */ | |
15991 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15992 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15993 | #define $ac_func innocuous_$ac_func | |
15994 | ||
8b9cf735 | 15995 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15996 | which can conflict with char $ac_func (); below. |
15997 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15998 | <limits.h> exists even on freestanding compilers. */ | |
15999 | ||
16000 | #ifdef __STDC__ | |
16001 | # include <limits.h> | |
16002 | #else | |
16003 | # include <assert.h> | |
16004 | #endif | |
8b9cf735 | 16005 | |
bec39cab | 16006 | #undef $ac_func |
8b9cf735 | 16007 | |
a3828db0 MK |
16008 | /* Override any gcc2 internal prototype to avoid an error. */ |
16009 | #ifdef __cplusplus | |
16010 | extern "C" | |
16011 | { | |
16012 | #endif | |
16013 | /* We use char because int might match the return type of a gcc2 | |
16014 | builtin and then its argument prototype would still apply. */ | |
16015 | char $ac_func (); | |
16016 | /* The GNU C library defines this for functions which it implements | |
16017 | to always fail with ENOSYS. Some functions are actually named | |
16018 | something starting with __ and the normal name is an alias. */ | |
16019 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16020 | choke me | |
16021 | #else | |
16022 | char (*f) () = $ac_func; | |
16023 | #endif | |
16024 | #ifdef __cplusplus | |
16025 | } | |
16026 | #endif | |
16027 | ||
bec39cab AC |
16028 | int |
16029 | main () | |
16030 | { | |
a3828db0 | 16031 | return f != $ac_func; |
bec39cab AC |
16032 | ; |
16033 | return 0; | |
16034 | } | |
16035 | _ACEOF | |
a3828db0 MK |
16036 | rm -f conftest.$ac_objext conftest$ac_exeext |
16037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16038 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
16039 | ac_status=$? |
16040 | grep -v '^ *+' conftest.er1 >conftest.err | |
16041 | rm -f conftest.er1 | |
16042 | cat conftest.err >&5 | |
16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16044 | (exit $ac_status); } && | |
121ce6e5 | 16045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16047 | (eval $ac_try) 2>&5 | |
16048 | ac_status=$? | |
16049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16050 | (exit $ac_status); }; } && | |
a3828db0 | 16051 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
16052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16053 | (eval $ac_try) 2>&5 | |
16054 | ac_status=$? | |
16055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16056 | (exit $ac_status); }; }; then | |
a3828db0 | 16057 | eval "$as_ac_var=yes" |
086ec9eb | 16058 | else |
bec39cab AC |
16059 | echo "$as_me: failed program was:" >&5 |
16060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16061 | ||
a3828db0 MK |
16062 | eval "$as_ac_var=no" |
16063 | fi | |
16064 | rm -f conftest.err conftest.$ac_objext \ | |
16065 | conftest$ac_exeext conftest.$ac_ext | |
16066 | fi | |
16067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16068 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16069 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16070 | cat >>confdefs.h <<_ACEOF | |
16071 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16072 | _ACEOF | |
16073 | ||
086ec9eb | 16074 | fi |
a3828db0 MK |
16075 | done |
16076 | ||
16077 | ||
16078 | for ac_func in socketpair | |
16079 | do | |
16080 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16081 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16082 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16083 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16085 | else | |
16086 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
16087 | /* confdefs.h. */ |
16088 | _ACEOF | |
16089 | cat confdefs.h >>conftest.$ac_ext | |
16090 | cat >>conftest.$ac_ext <<_ACEOF | |
16091 | /* end confdefs.h. */ | |
a3828db0 MK |
16092 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16094 | #define $ac_func innocuous_$ac_func | |
16095 | ||
16096 | /* System header to define __stub macros and hopefully few prototypes, | |
16097 | which can conflict with char $ac_func (); below. | |
16098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16099 | <limits.h> exists even on freestanding compilers. */ | |
16100 | ||
16101 | #ifdef __STDC__ | |
16102 | # include <limits.h> | |
16103 | #else | |
16104 | # include <assert.h> | |
16105 | #endif | |
16106 | ||
16107 | #undef $ac_func | |
16108 | ||
16109 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16110 | #ifdef __cplusplus | |
16111 | extern "C" | |
16112 | { | |
16113 | #endif | |
16114 | /* We use char because int might match the return type of a gcc2 | |
16115 | builtin and then its argument prototype would still apply. */ | |
16116 | char $ac_func (); | |
16117 | /* The GNU C library defines this for functions which it implements | |
16118 | to always fail with ENOSYS. Some functions are actually named | |
16119 | something starting with __ and the normal name is an alias. */ | |
16120 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16121 | choke me | |
16122 | #else | |
16123 | char (*f) () = $ac_func; | |
16124 | #endif | |
16125 | #ifdef __cplusplus | |
16126 | } | |
16127 | #endif | |
16128 | ||
bec39cab AC |
16129 | int |
16130 | main () | |
16131 | { | |
a3828db0 | 16132 | return f != $ac_func; |
bec39cab AC |
16133 | ; |
16134 | return 0; | |
16135 | } | |
16136 | _ACEOF | |
a3828db0 MK |
16137 | rm -f conftest.$ac_objext conftest$ac_exeext |
16138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16139 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
16140 | ac_status=$? |
16141 | grep -v '^ *+' conftest.er1 >conftest.err | |
16142 | rm -f conftest.er1 | |
16143 | cat conftest.err >&5 | |
16144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16145 | (exit $ac_status); } && | |
121ce6e5 | 16146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16148 | (eval $ac_try) 2>&5 | |
16149 | ac_status=$? | |
16150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16151 | (exit $ac_status); }; } && | |
a3828db0 | 16152 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
16153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16154 | (eval $ac_try) 2>&5 | |
16155 | ac_status=$? | |
16156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16157 | (exit $ac_status); }; }; then | |
a3828db0 | 16158 | eval "$as_ac_var=yes" |
086ec9eb | 16159 | else |
bec39cab AC |
16160 | echo "$as_me: failed program was:" >&5 |
16161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16162 | ||
a3828db0 | 16163 | eval "$as_ac_var=no" |
086ec9eb | 16164 | fi |
a3828db0 MK |
16165 | rm -f conftest.err conftest.$ac_objext \ |
16166 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 16167 | fi |
a3828db0 MK |
16168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16169 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16170 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16171 | cat >>confdefs.h <<_ACEOF | |
16172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 16173 | _ACEOF |
086ec9eb MK |
16174 | |
16175 | fi | |
a3828db0 | 16176 | done |
086ec9eb | 16177 | |
a3828db0 MK |
16178 | |
16179 | for ac_func in syscall | |
16180 | do | |
16181 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16182 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16184 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 16185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
16186 | else |
16187 | cat >conftest.$ac_ext <<_ACEOF | |
16188 | /* confdefs.h. */ | |
16189 | _ACEOF | |
16190 | cat confdefs.h >>conftest.$ac_ext | |
16191 | cat >>conftest.$ac_ext <<_ACEOF | |
16192 | /* end confdefs.h. */ | |
a3828db0 MK |
16193 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16195 | #define $ac_func innocuous_$ac_func | |
16196 | ||
16197 | /* System header to define __stub macros and hopefully few prototypes, | |
16198 | which can conflict with char $ac_func (); below. | |
16199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16200 | <limits.h> exists even on freestanding compilers. */ | |
16201 | ||
16202 | #ifdef __STDC__ | |
16203 | # include <limits.h> | |
16204 | #else | |
16205 | # include <assert.h> | |
16206 | #endif | |
16207 | ||
16208 | #undef $ac_func | |
16209 | ||
16210 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16211 | #ifdef __cplusplus | |
16212 | extern "C" | |
16213 | { | |
16214 | #endif | |
16215 | /* We use char because int might match the return type of a gcc2 | |
16216 | builtin and then its argument prototype would still apply. */ | |
16217 | char $ac_func (); | |
16218 | /* The GNU C library defines this for functions which it implements | |
16219 | to always fail with ENOSYS. Some functions are actually named | |
16220 | something starting with __ and the normal name is an alias. */ | |
16221 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16222 | choke me | |
16223 | #else | |
16224 | char (*f) () = $ac_func; | |
16225 | #endif | |
16226 | #ifdef __cplusplus | |
16227 | } | |
c906108c | 16228 | #endif |
97bf5e38 | 16229 | |
bec39cab AC |
16230 | int |
16231 | main () | |
97bf5e38 | 16232 | { |
a3828db0 | 16233 | return f != $ac_func; |
bec39cab AC |
16234 | ; |
16235 | return 0; | |
97bf5e38 | 16236 | } |
bec39cab | 16237 | _ACEOF |
a3828db0 | 16238 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 16239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 16240 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 16241 | ac_status=$? |
a3828db0 MK |
16242 | grep -v '^ *+' conftest.er1 >conftest.err |
16243 | rm -f conftest.er1 | |
16244 | cat conftest.err >&5 | |
bec39cab | 16245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 16246 | (exit $ac_status); } && |
121ce6e5 | 16247 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a3828db0 MK |
16248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16249 | (eval $ac_try) 2>&5 | |
16250 | ac_status=$? | |
16251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16252 | (exit $ac_status); }; } && | |
16253 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
16254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16255 | (eval $ac_try) 2>&5 | |
16256 | ac_status=$? | |
16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16258 | (exit $ac_status); }; }; then | |
a3828db0 | 16259 | eval "$as_ac_var=yes" |
c906108c | 16260 | else |
a3828db0 | 16261 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
16262 | sed 's/^/| /' conftest.$ac_ext >&5 |
16263 | ||
a3828db0 | 16264 | eval "$as_ac_var=no" |
97bf5e38 | 16265 | fi |
a3828db0 MK |
16266 | rm -f conftest.err conftest.$ac_objext \ |
16267 | conftest$ac_exeext conftest.$ac_ext | |
16268 | fi | |
16269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16270 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16271 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16272 | cat >>confdefs.h <<_ACEOF | |
16273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 16274 | _ACEOF |
c906108c SS |
16275 | |
16276 | fi | |
a3828db0 | 16277 | done |
c906108c | 16278 | |
a3828db0 MK |
16279 | |
16280 | for ac_func in ttrace | |
16281 | do | |
16282 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16283 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16284 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16285 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 16286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 16287 | else |
bec39cab AC |
16288 | cat >conftest.$ac_ext <<_ACEOF |
16289 | /* confdefs.h. */ | |
16290 | _ACEOF | |
16291 | cat confdefs.h >>conftest.$ac_ext | |
16292 | cat >>conftest.$ac_ext <<_ACEOF | |
16293 | /* end confdefs.h. */ | |
a3828db0 MK |
16294 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16295 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16296 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 16297 | |
a3828db0 MK |
16298 | /* System header to define __stub macros and hopefully few prototypes, |
16299 | which can conflict with char $ac_func (); below. | |
16300 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16301 | <limits.h> exists even on freestanding compilers. */ | |
16302 | ||
16303 | #ifdef __STDC__ | |
16304 | # include <limits.h> | |
16305 | #else | |
16306 | # include <assert.h> | |
16307 | #endif | |
16308 | ||
16309 | #undef $ac_func | |
16310 | ||
16311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16312 | #ifdef __cplusplus | |
16313 | extern "C" | |
16314 | { | |
16315 | #endif | |
16316 | /* We use char because int might match the return type of a gcc2 | |
16317 | builtin and then its argument prototype would still apply. */ | |
16318 | char $ac_func (); | |
16319 | /* The GNU C library defines this for functions which it implements | |
16320 | to always fail with ENOSYS. Some functions are actually named | |
16321 | something starting with __ and the normal name is an alias. */ | |
16322 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16323 | choke me | |
16324 | #else | |
16325 | char (*f) () = $ac_func; | |
16326 | #endif | |
16327 | #ifdef __cplusplus | |
16328 | } | |
16329 | #endif | |
97bf5e38 | 16330 | |
bec39cab AC |
16331 | int |
16332 | main () | |
16333 | { | |
a3828db0 | 16334 | return f != $ac_func; |
bec39cab AC |
16335 | ; |
16336 | return 0; | |
16337 | } | |
16338 | _ACEOF | |
a3828db0 MK |
16339 | rm -f conftest.$ac_objext conftest$ac_exeext |
16340 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16341 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
16342 | ac_status=$? |
16343 | grep -v '^ *+' conftest.er1 >conftest.err | |
16344 | rm -f conftest.er1 | |
16345 | cat conftest.err >&5 | |
16346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16347 | (exit $ac_status); } && | |
121ce6e5 | 16348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16350 | (eval $ac_try) 2>&5 | |
16351 | ac_status=$? | |
16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16353 | (exit $ac_status); }; } && | |
a3828db0 | 16354 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
16355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16356 | (eval $ac_try) 2>&5 | |
16357 | ac_status=$? | |
16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16359 | (exit $ac_status); }; }; then | |
a3828db0 | 16360 | eval "$as_ac_var=yes" |
b83266a0 | 16361 | else |
bec39cab AC |
16362 | echo "$as_me: failed program was:" >&5 |
16363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16364 | ||
a3828db0 | 16365 | eval "$as_ac_var=no" |
b83266a0 | 16366 | fi |
a3828db0 MK |
16367 | rm -f conftest.err conftest.$ac_objext \ |
16368 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 16369 | fi |
a3828db0 MK |
16370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16371 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16372 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16373 | cat >>confdefs.h <<_ACEOF | |
16374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 16375 | _ACEOF |
b83266a0 | 16376 | |
97bf5e38 | 16377 | fi |
a3828db0 | 16378 | done |
b83266a0 | 16379 | |
a3828db0 MK |
16380 | |
16381 | for ac_func in wborder | |
16382 | do | |
16383 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16384 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16385 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16386 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16388 | else | |
16389 | cat >conftest.$ac_ext <<_ACEOF | |
16390 | /* confdefs.h. */ | |
16391 | _ACEOF | |
16392 | cat confdefs.h >>conftest.$ac_ext | |
16393 | cat >>conftest.$ac_ext <<_ACEOF | |
16394 | /* end confdefs.h. */ | |
a3828db0 MK |
16395 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16397 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 16398 | |
a3828db0 MK |
16399 | /* System header to define __stub macros and hopefully few prototypes, |
16400 | which can conflict with char $ac_func (); below. | |
16401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16402 | <limits.h> exists even on freestanding compilers. */ | |
16403 | ||
16404 | #ifdef __STDC__ | |
16405 | # include <limits.h> | |
16406 | #else | |
16407 | # include <assert.h> | |
16408 | #endif | |
16409 | ||
16410 | #undef $ac_func | |
16411 | ||
16412 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16413 | #ifdef __cplusplus | |
16414 | extern "C" | |
16415 | { | |
16416 | #endif | |
16417 | /* We use char because int might match the return type of a gcc2 | |
16418 | builtin and then its argument prototype would still apply. */ | |
16419 | char $ac_func (); | |
16420 | /* The GNU C library defines this for functions which it implements | |
16421 | to always fail with ENOSYS. Some functions are actually named | |
16422 | something starting with __ and the normal name is an alias. */ | |
16423 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16424 | choke me | |
16425 | #else | |
16426 | char (*f) () = $ac_func; | |
16427 | #endif | |
16428 | #ifdef __cplusplus | |
16429 | } | |
16430 | #endif | |
97bf5e38 | 16431 | |
bec39cab AC |
16432 | int |
16433 | main () | |
16434 | { | |
a3828db0 | 16435 | return f != $ac_func; |
bec39cab AC |
16436 | ; |
16437 | return 0; | |
16438 | } | |
16439 | _ACEOF | |
a3828db0 MK |
16440 | rm -f conftest.$ac_objext conftest$ac_exeext |
16441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16442 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
16443 | ac_status=$? |
16444 | grep -v '^ *+' conftest.er1 >conftest.err | |
16445 | rm -f conftest.er1 | |
16446 | cat conftest.err >&5 | |
16447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16448 | (exit $ac_status); } && | |
121ce6e5 | 16449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16451 | (eval $ac_try) 2>&5 | |
16452 | ac_status=$? | |
16453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16454 | (exit $ac_status); }; } && | |
a3828db0 | 16455 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
16456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16457 | (eval $ac_try) 2>&5 | |
16458 | ac_status=$? | |
16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16460 | (exit $ac_status); }; }; then | |
a3828db0 | 16461 | eval "$as_ac_var=yes" |
a4db0f07 | 16462 | else |
bec39cab AC |
16463 | echo "$as_me: failed program was:" >&5 |
16464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16465 | ||
a3828db0 | 16466 | eval "$as_ac_var=no" |
a4db0f07 | 16467 | fi |
a3828db0 MK |
16468 | rm -f conftest.err conftest.$ac_objext \ |
16469 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 16470 | fi |
a3828db0 MK |
16471 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16472 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16473 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16474 | cat >>confdefs.h <<_ACEOF | |
16475 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 16476 | _ACEOF |
a4db0f07 RH |
16477 | |
16478 | fi | |
a3828db0 | 16479 | done |
c906108c | 16480 | |
06825bd1 | 16481 | |
a3828db0 MK |
16482 | # Check the return and argument types of ptrace. No canned test for |
16483 | # this, so roll our own. | |
16484 | gdb_ptrace_headers=' | |
16485 | #if HAVE_SYS_TYPES_H | |
16486 | # include <sys/types.h> | |
16487 | #endif | |
16488 | #if HAVE_SYS_PTRACE_H | |
16489 | # include <sys/ptrace.h> | |
16490 | #endif | |
16491 | #if HAVE_UNISTD_H | |
16492 | # include <unistd.h> | |
16493 | #endif | |
16494 | ' | |
16495 | # There is no point in checking if we don't have a prototype. | |
16496 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 | |
16497 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
16498 | if test "${ac_cv_have_decl_ptrace+set}" = set; then | |
bec39cab AC |
16499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16500 | else | |
16501 | cat >conftest.$ac_ext <<_ACEOF | |
16502 | /* confdefs.h. */ | |
16503 | _ACEOF | |
16504 | cat confdefs.h >>conftest.$ac_ext | |
16505 | cat >>conftest.$ac_ext <<_ACEOF | |
16506 | /* end confdefs.h. */ | |
a3828db0 MK |
16507 | $gdb_ptrace_headers |
16508 | ||
bec39cab AC |
16509 | int |
16510 | main () | |
16511 | { | |
a3828db0 MK |
16512 | #ifndef ptrace |
16513 | char *p = (char *) ptrace; | |
06825bd1 | 16514 | #endif |
a3828db0 | 16515 | |
bec39cab AC |
16516 | ; |
16517 | return 0; | |
16518 | } | |
16519 | _ACEOF | |
16520 | rm -f conftest.$ac_objext | |
16521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16522 | (eval $ac_compile) 2>conftest.er1 | |
16523 | ac_status=$? | |
16524 | grep -v '^ *+' conftest.er1 >conftest.err | |
16525 | rm -f conftest.er1 | |
16526 | cat conftest.err >&5 | |
16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16528 | (exit $ac_status); } && | |
121ce6e5 | 16529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16531 | (eval $ac_try) 2>&5 | |
16532 | ac_status=$? | |
16533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16534 | (exit $ac_status); }; } && | |
16535 | { ac_try='test -s conftest.$ac_objext' | |
16536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16537 | (eval $ac_try) 2>&5 | |
16538 | ac_status=$? | |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16540 | (exit $ac_status); }; }; then | |
a3828db0 | 16541 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 16542 | else |
bec39cab AC |
16543 | echo "$as_me: failed program was:" >&5 |
16544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16545 | ||
a3828db0 | 16546 | ac_cv_have_decl_ptrace=no |
06825bd1 | 16547 | fi |
bec39cab | 16548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 16549 | fi |
a3828db0 MK |
16550 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
16551 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
16552 | if test $ac_cv_have_decl_ptrace = yes; then | |
06825bd1 | 16553 | |
a3828db0 MK |
16554 | cat >>confdefs.h <<_ACEOF |
16555 | #define HAVE_DECL_PTRACE 1 | |
16556 | _ACEOF | |
bec39cab | 16557 | |
bec39cab | 16558 | |
a3828db0 MK |
16559 | else |
16560 | cat >>confdefs.h <<_ACEOF | |
16561 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 16562 | _ACEOF |
06825bd1 | 16563 | |
a3828db0 MK |
16564 | |
16565 | : ${gdb_cv_func_ptrace_ret='int'} | |
16566 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
16567 | ||
06825bd1 MK |
16568 | fi |
16569 | ||
a3828db0 MK |
16570 | |
16571 | # Check return type. | |
16572 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 | |
16573 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
16574 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then | |
bec39cab AC |
16575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16576 | else | |
16577 | cat >conftest.$ac_ext <<_ACEOF | |
16578 | /* confdefs.h. */ | |
16579 | _ACEOF | |
16580 | cat confdefs.h >>conftest.$ac_ext | |
16581 | cat >>conftest.$ac_ext <<_ACEOF | |
16582 | /* end confdefs.h. */ | |
a3828db0 | 16583 | $gdb_ptrace_headers |
bec39cab AC |
16584 | int |
16585 | main () | |
16586 | { | |
a3828db0 | 16587 | extern int ptrace (); |
bec39cab AC |
16588 | ; |
16589 | return 0; | |
16590 | } | |
16591 | _ACEOF | |
16592 | rm -f conftest.$ac_objext | |
16593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16594 | (eval $ac_compile) 2>conftest.er1 | |
16595 | ac_status=$? | |
16596 | grep -v '^ *+' conftest.er1 >conftest.err | |
16597 | rm -f conftest.er1 | |
16598 | cat conftest.err >&5 | |
16599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16600 | (exit $ac_status); } && | |
121ce6e5 | 16601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16603 | (eval $ac_try) 2>&5 | |
16604 | ac_status=$? | |
16605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16606 | (exit $ac_status); }; } && | |
16607 | { ac_try='test -s conftest.$ac_objext' | |
16608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16609 | (eval $ac_try) 2>&5 | |
16610 | ac_status=$? | |
16611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16612 | (exit $ac_status); }; }; then | |
a3828db0 | 16613 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 16614 | else |
bec39cab AC |
16615 | echo "$as_me: failed program was:" >&5 |
16616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16617 | ||
a3828db0 | 16618 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 16619 | fi |
bec39cab | 16620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 16621 | fi |
a3828db0 MK |
16622 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
16623 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 16624 | |
a3828db0 MK |
16625 | cat >>confdefs.h <<_ACEOF |
16626 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 16627 | _ACEOF |
70f9f479 | 16628 | |
a3828db0 MK |
16629 | # Check argument types. |
16630 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 | |
16631 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
16632 | if test "${gdb_cv_func_ptrace_args+set}" = set; then | |
bec39cab AC |
16633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16634 | else | |
a3828db0 MK |
16635 | |
16636 | for gdb_arg1 in 'int' 'long'; do | |
16637 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
16638 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
16639 | for gdb_arg4 in 'int' 'long'; do | |
16640 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
16641 | /* confdefs.h. */ |
16642 | _ACEOF | |
16643 | cat confdefs.h >>conftest.$ac_ext | |
16644 | cat >>conftest.$ac_ext <<_ACEOF | |
16645 | /* end confdefs.h. */ | |
a3828db0 | 16646 | $gdb_ptrace_headers |
bec39cab AC |
16647 | int |
16648 | main () | |
16649 | { | |
a3828db0 MK |
16650 | |
16651 | extern $gdb_cv_func_ptrace_ret | |
16652 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
16653 | ||
bec39cab AC |
16654 | ; |
16655 | return 0; | |
16656 | } | |
16657 | _ACEOF | |
16658 | rm -f conftest.$ac_objext | |
16659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16660 | (eval $ac_compile) 2>conftest.er1 | |
16661 | ac_status=$? | |
16662 | grep -v '^ *+' conftest.er1 >conftest.err | |
16663 | rm -f conftest.er1 | |
16664 | cat conftest.err >&5 | |
16665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16666 | (exit $ac_status); } && | |
121ce6e5 | 16667 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16669 | (eval $ac_try) 2>&5 | |
16670 | ac_status=$? | |
16671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16672 | (exit $ac_status); }; } && | |
16673 | { ac_try='test -s conftest.$ac_objext' | |
16674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16675 | (eval $ac_try) 2>&5 | |
16676 | ac_status=$? | |
16677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16678 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16679 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
16680 | break 4; | |
5c7f2947 | 16681 | else |
bec39cab AC |
16682 | echo "$as_me: failed program was:" >&5 |
16683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16684 | ||
5c7f2947 | 16685 | fi |
bec39cab | 16686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16687 | for gdb_arg5 in 'int *' 'int' 'long'; do |
16688 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
16689 | /* confdefs.h. */ |
16690 | _ACEOF | |
16691 | cat confdefs.h >>conftest.$ac_ext | |
16692 | cat >>conftest.$ac_ext <<_ACEOF | |
16693 | /* end confdefs.h. */ | |
a3828db0 | 16694 | $gdb_ptrace_headers |
bec39cab AC |
16695 | int |
16696 | main () | |
16697 | { | |
a3828db0 MK |
16698 | |
16699 | extern $gdb_cv_func_ptrace_ret | |
16700 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
16701 | ||
bec39cab AC |
16702 | ; |
16703 | return 0; | |
16704 | } | |
16705 | _ACEOF | |
16706 | rm -f conftest.$ac_objext | |
16707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16708 | (eval $ac_compile) 2>conftest.er1 | |
16709 | ac_status=$? | |
16710 | grep -v '^ *+' conftest.er1 >conftest.err | |
16711 | rm -f conftest.er1 | |
16712 | cat conftest.err >&5 | |
16713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16714 | (exit $ac_status); } && | |
121ce6e5 | 16715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16717 | (eval $ac_try) 2>&5 | |
16718 | ac_status=$? | |
16719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16720 | (exit $ac_status); }; } && | |
16721 | { ac_try='test -s conftest.$ac_objext' | |
16722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16723 | (eval $ac_try) 2>&5 | |
16724 | ac_status=$? | |
16725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16726 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16727 | |
16728 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
16729 | break 5; | |
78434e59 | 16730 | else |
bec39cab AC |
16731 | echo "$as_me: failed program was:" >&5 |
16732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16733 | ||
78434e59 | 16734 | fi |
bec39cab | 16735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16736 | done |
16737 | done | |
16738 | done | |
16739 | done | |
16740 | done | |
16741 | # Provide a safe default value. | |
16742 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
16743 | ||
78434e59 | 16744 | fi |
a3828db0 MK |
16745 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
16746 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
16747 | ac_save_IFS=$IFS; IFS=',' | |
16748 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
16749 | IFS=$ac_save_IFS | |
16750 | shift | |
bec39cab | 16751 | |
a3828db0 MK |
16752 | cat >>confdefs.h <<_ACEOF |
16753 | #define PTRACE_TYPE_ARG3 $3 | |
16754 | _ACEOF | |
16755 | ||
16756 | if test -n "$5"; then | |
16757 | ||
16758 | cat >>confdefs.h <<_ACEOF | |
16759 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 16760 | _ACEOF |
78434e59 MK |
16761 | |
16762 | fi | |
16763 | ||
a3828db0 MK |
16764 | if test "$cross_compiling" = no; then |
16765 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 | |
16766 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
16767 | if test "${ac_cv_func_setpgrp_void+set}" = set; then | |
bec39cab | 16768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
16769 | else |
16770 | if test "$cross_compiling" = yes; then | |
16771 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
16772 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
16773 | { (exit 1); exit 1; }; } | |
bec39cab AC |
16774 | else |
16775 | cat >conftest.$ac_ext <<_ACEOF | |
16776 | /* confdefs.h. */ | |
16777 | _ACEOF | |
16778 | cat confdefs.h >>conftest.$ac_ext | |
16779 | cat >>conftest.$ac_ext <<_ACEOF | |
16780 | /* end confdefs.h. */ | |
a3828db0 MK |
16781 | #if HAVE_UNISTD_H |
16782 | # include <unistd.h> | |
16783 | #endif | |
16784 | ||
bec39cab AC |
16785 | int |
16786 | main () | |
16787 | { | |
a3828db0 MK |
16788 | /* If this system has a BSD-style setpgrp which takes arguments, |
16789 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
16790 | exit successfully. */ | |
16791 | exit (setpgrp (1,1) == -1 ? 0 : 1); | |
bec39cab AC |
16792 | ; |
16793 | return 0; | |
16794 | } | |
16795 | _ACEOF | |
a3828db0 MK |
16796 | rm -f conftest$ac_exeext |
16797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16798 | (eval $ac_link) 2>&5 | |
bec39cab AC |
16799 | ac_status=$? |
16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 16801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
16802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16803 | (eval $ac_try) 2>&5 | |
16804 | ac_status=$? | |
16805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16806 | (exit $ac_status); }; }; then | |
a3828db0 | 16807 | ac_cv_func_setpgrp_void=no |
c906108c | 16808 | else |
a3828db0 MK |
16809 | echo "$as_me: program exited with status $ac_status" >&5 |
16810 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
16811 | sed 's/^/| /' conftest.$ac_ext >&5 |
16812 | ||
a3828db0 MK |
16813 | ( exit $ac_status ) |
16814 | ac_cv_func_setpgrp_void=yes | |
c906108c | 16815 | fi |
a3828db0 | 16816 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 16817 | fi |
a3828db0 MK |
16818 | fi |
16819 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 | |
16820 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
16821 | if test $ac_cv_func_setpgrp_void = yes; then | |
16822 | ||
16823 | cat >>confdefs.h <<\_ACEOF | |
16824 | #define SETPGRP_VOID 1 | |
bec39cab | 16825 | _ACEOF |
97bf5e38 MK |
16826 | |
16827 | fi | |
a3828db0 MK |
16828 | |
16829 | else | |
16830 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 | |
16831 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
16832 | if test "${ac_cv_func_setpgrp_void+set}" = set; then | |
bec39cab | 16833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 16834 | else |
bec39cab AC |
16835 | cat >conftest.$ac_ext <<_ACEOF |
16836 | /* confdefs.h. */ | |
16837 | _ACEOF | |
16838 | cat confdefs.h >>conftest.$ac_ext | |
16839 | cat >>conftest.$ac_ext <<_ACEOF | |
16840 | /* end confdefs.h. */ | |
a3828db0 MK |
16841 | |
16842 | #include <unistd.h> | |
16843 | ||
bec39cab AC |
16844 | int |
16845 | main () | |
16846 | { | |
a3828db0 MK |
16847 | |
16848 | if (setpgrp(1,1) == -1) | |
16849 | exit (0); | |
16850 | else | |
16851 | exit (1); | |
16852 | ||
bec39cab AC |
16853 | ; |
16854 | return 0; | |
16855 | } | |
16856 | _ACEOF | |
16857 | rm -f conftest.$ac_objext | |
16858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16859 | (eval $ac_compile) 2>conftest.er1 | |
16860 | ac_status=$? | |
16861 | grep -v '^ *+' conftest.er1 >conftest.err | |
16862 | rm -f conftest.er1 | |
16863 | cat conftest.err >&5 | |
16864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16865 | (exit $ac_status); } && | |
121ce6e5 | 16866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16868 | (eval $ac_try) 2>&5 | |
16869 | ac_status=$? | |
16870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16871 | (exit $ac_status); }; } && | |
16872 | { ac_try='test -s conftest.$ac_objext' | |
16873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16874 | (eval $ac_try) 2>&5 | |
16875 | ac_status=$? | |
16876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16877 | (exit $ac_status); }; }; then | |
a3828db0 | 16878 | ac_cv_func_setpgrp_void=no |
c906108c | 16879 | else |
bec39cab AC |
16880 | echo "$as_me: failed program was:" >&5 |
16881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16882 | ||
a3828db0 | 16883 | ac_cv_func_setpgrp_void=yes |
c906108c | 16884 | fi |
bec39cab | 16885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16886 | fi |
a3828db0 MK |
16887 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
16888 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
16889 | if test $ac_cv_func_setpgrp_void = yes; then | |
bec39cab | 16890 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 16891 | #define SETPGRP_VOID 1 |
bec39cab | 16892 | _ACEOF |
c3f6f71d | 16893 | |
a3828db0 | 16894 | fi |
c906108c SS |
16895 | fi |
16896 | ||
a3828db0 MK |
16897 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
16898 | # since sigsetjmp might only be defined as a macro. | |
16899 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 | |
16900 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
16901 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then | |
bec39cab AC |
16902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16903 | else | |
16904 | cat >conftest.$ac_ext <<_ACEOF | |
16905 | /* confdefs.h. */ | |
16906 | _ACEOF | |
16907 | cat confdefs.h >>conftest.$ac_ext | |
16908 | cat >>conftest.$ac_ext <<_ACEOF | |
16909 | /* end confdefs.h. */ | |
a3828db0 MK |
16910 | |
16911 | #include <setjmp.h> | |
16912 | ||
bec39cab AC |
16913 | int |
16914 | main () | |
16915 | { | |
a3828db0 | 16916 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
16917 | ; |
16918 | return 0; | |
16919 | } | |
16920 | _ACEOF | |
16921 | rm -f conftest.$ac_objext | |
16922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16923 | (eval $ac_compile) 2>conftest.er1 | |
16924 | ac_status=$? | |
16925 | grep -v '^ *+' conftest.er1 >conftest.err | |
16926 | rm -f conftest.er1 | |
16927 | cat conftest.err >&5 | |
16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16929 | (exit $ac_status); } && | |
121ce6e5 | 16930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16932 | (eval $ac_try) 2>&5 | |
16933 | ac_status=$? | |
16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16935 | (exit $ac_status); }; } && | |
16936 | { ac_try='test -s conftest.$ac_objext' | |
16937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16938 | (eval $ac_try) 2>&5 | |
16939 | ac_status=$? | |
16940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16941 | (exit $ac_status); }; }; then | |
a3828db0 | 16942 | gdb_cv_func_sigsetjmp=yes |
c906108c | 16943 | else |
bec39cab AC |
16944 | echo "$as_me: failed program was:" >&5 |
16945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16946 | ||
a3828db0 | 16947 | gdb_cv_func_sigsetjmp=no |
c906108c | 16948 | fi |
bec39cab | 16949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16950 | fi |
a3828db0 MK |
16951 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
16952 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
16953 | if test $gdb_cv_func_sigsetjmp = yes; then | |
c906108c | 16954 | |
a3828db0 MK |
16955 | cat >>confdefs.h <<\_ACEOF |
16956 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 16957 | _ACEOF |
c906108c | 16958 | |
97bf5e38 | 16959 | fi |
c906108c | 16960 | |
a3828db0 MK |
16961 | # Assume we'll default to using the included libiberty regex. |
16962 | gdb_use_included_regex=yes | |
16963 | ||
16964 | # However, if the system regex is GNU regex, then default to *not* | |
16965 | # using the included regex. | |
16966 | echo "$as_me:$LINENO: checking for GNU regex" >&5 | |
16967 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
16968 | if test "${gdb_cv_have_gnu_regex+set}" = set; then | |
bec39cab AC |
16969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16970 | else | |
16971 | cat >conftest.$ac_ext <<_ACEOF | |
16972 | /* confdefs.h. */ | |
16973 | _ACEOF | |
16974 | cat confdefs.h >>conftest.$ac_ext | |
16975 | cat >>conftest.$ac_ext <<_ACEOF | |
16976 | /* end confdefs.h. */ | |
a3828db0 | 16977 | #include <gnu-versions.h> |
bec39cab AC |
16978 | int |
16979 | main () | |
16980 | { | |
a3828db0 MK |
16981 | #define REGEX_INTERFACE_VERSION 1 |
16982 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
16983 | # error "Version mismatch" | |
16984 | #endif | |
bec39cab AC |
16985 | ; |
16986 | return 0; | |
16987 | } | |
16988 | _ACEOF | |
16989 | rm -f conftest.$ac_objext | |
16990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16991 | (eval $ac_compile) 2>conftest.er1 | |
16992 | ac_status=$? | |
16993 | grep -v '^ *+' conftest.er1 >conftest.err | |
16994 | rm -f conftest.er1 | |
16995 | cat conftest.err >&5 | |
16996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16997 | (exit $ac_status); } && | |
121ce6e5 | 16998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
16999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17000 | (eval $ac_try) 2>&5 | |
17001 | ac_status=$? | |
17002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17003 | (exit $ac_status); }; } && | |
17004 | { ac_try='test -s conftest.$ac_objext' | |
17005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17006 | (eval $ac_try) 2>&5 | |
17007 | ac_status=$? | |
17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17009 | (exit $ac_status); }; }; then | |
a3828db0 | 17010 | gdb_cv_have_gnu_regex=yes |
c906108c | 17011 | else |
bec39cab AC |
17012 | echo "$as_me: failed program was:" >&5 |
17013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17014 | ||
a3828db0 | 17015 | gdb_cv_have_gnu_regex=no |
c906108c | 17016 | fi |
bec39cab | 17017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17018 | fi |
a3828db0 MK |
17019 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
17020 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
17021 | if test $gdb_cv_have_gnu_regex = yes; then | |
17022 | gdb_use_included_regex=no | |
17023 | fi | |
c906108c | 17024 | |
a3828db0 MK |
17025 | |
17026 | # Check whether --with-included-regex or --without-included-regex was given. | |
17027 | if test "${with_included_regex+set}" = set; then | |
17028 | withval="$with_included_regex" | |
17029 | gdb_with_regex=$withval | |
17030 | else | |
17031 | gdb_with_regex=$gdb_use_included_regex | |
17032 | fi; | |
17033 | if test "$gdb_with_regex" = yes; then | |
17034 | ||
17035 | cat >>confdefs.h <<\_ACEOF | |
17036 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 17037 | _ACEOF |
c906108c | 17038 | |
97bf5e38 | 17039 | fi |
c906108c | 17040 | |
5c45e068 MK |
17041 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
17042 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 | |
17043 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
17044 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then | |
bec39cab AC |
17045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17046 | else | |
17047 | cat >conftest.$ac_ext <<_ACEOF | |
17048 | /* confdefs.h. */ | |
17049 | _ACEOF | |
17050 | cat confdefs.h >>conftest.$ac_ext | |
17051 | cat >>conftest.$ac_ext <<_ACEOF | |
17052 | /* end confdefs.h. */ | |
a3828db0 MK |
17053 | #include <sys/param.h> |
17054 | #include <sys/proc.h> | |
5c45e068 MK |
17055 | |
17056 | ||
bec39cab AC |
17057 | int |
17058 | main () | |
17059 | { | |
5c45e068 MK |
17060 | static struct thread ac_aggr; |
17061 | if (ac_aggr.td_pcb) | |
17062 | return 0; | |
bec39cab AC |
17063 | ; |
17064 | return 0; | |
17065 | } | |
17066 | _ACEOF | |
17067 | rm -f conftest.$ac_objext | |
17068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17069 | (eval $ac_compile) 2>conftest.er1 | |
17070 | ac_status=$? | |
17071 | grep -v '^ *+' conftest.er1 >conftest.err | |
17072 | rm -f conftest.er1 | |
17073 | cat conftest.err >&5 | |
17074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17075 | (exit $ac_status); } && | |
121ce6e5 | 17076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17078 | (eval $ac_try) 2>&5 | |
17079 | ac_status=$? | |
17080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17081 | (exit $ac_status); }; } && | |
17082 | { ac_try='test -s conftest.$ac_objext' | |
17083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17084 | (eval $ac_try) 2>&5 | |
17085 | ac_status=$? | |
17086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17087 | (exit $ac_status); }; }; then | |
5c45e068 | 17088 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 17089 | else |
bec39cab AC |
17090 | echo "$as_me: failed program was:" >&5 |
17091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17092 | ||
5c45e068 MK |
17093 | cat >conftest.$ac_ext <<_ACEOF |
17094 | /* confdefs.h. */ | |
17095 | _ACEOF | |
17096 | cat confdefs.h >>conftest.$ac_ext | |
17097 | cat >>conftest.$ac_ext <<_ACEOF | |
17098 | /* end confdefs.h. */ | |
17099 | #include <sys/param.h> | |
17100 | #include <sys/proc.h> | |
17101 | ||
17102 | ||
17103 | int | |
17104 | main () | |
17105 | { | |
17106 | static struct thread ac_aggr; | |
17107 | if (sizeof ac_aggr.td_pcb) | |
17108 | return 0; | |
17109 | ; | |
17110 | return 0; | |
17111 | } | |
17112 | _ACEOF | |
17113 | rm -f conftest.$ac_objext | |
17114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17115 | (eval $ac_compile) 2>conftest.er1 | |
17116 | ac_status=$? | |
17117 | grep -v '^ *+' conftest.er1 >conftest.err | |
17118 | rm -f conftest.er1 | |
17119 | cat conftest.err >&5 | |
17120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17121 | (exit $ac_status); } && | |
121ce6e5 | 17122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5c45e068 MK |
17123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17124 | (eval $ac_try) 2>&5 | |
17125 | ac_status=$? | |
17126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17127 | (exit $ac_status); }; } && | |
17128 | { ac_try='test -s conftest.$ac_objext' | |
17129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17130 | (eval $ac_try) 2>&5 | |
17131 | ac_status=$? | |
17132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17133 | (exit $ac_status); }; }; then | |
17134 | ac_cv_member_struct_thread_td_pcb=yes | |
17135 | else | |
17136 | echo "$as_me: failed program was:" >&5 | |
17137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17138 | ||
17139 | ac_cv_member_struct_thread_td_pcb=no | |
17140 | fi | |
17141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 17142 | fi |
bec39cab | 17143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17144 | fi |
5c45e068 MK |
17145 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
17146 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
17147 | if test $ac_cv_member_struct_thread_td_pcb = yes; then | |
c906108c | 17148 | |
5c45e068 | 17149 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 17150 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 17151 | _ACEOF |
c906108c | 17152 | |
5c45e068 | 17153 | |
97bf5e38 | 17154 | fi |
c906108c | 17155 | |
5c45e068 | 17156 | |
a3828db0 MK |
17157 | # See if <sys/lwp.h> defines `struct lwp`. |
17158 | echo "$as_me:$LINENO: checking for struct lwp" >&5 | |
17159 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
17160 | if test "${gdb_cv_struct_lwp+set}" = set; then | |
bec39cab AC |
17161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17162 | else | |
17163 | cat >conftest.$ac_ext <<_ACEOF | |
17164 | /* confdefs.h. */ | |
17165 | _ACEOF | |
17166 | cat confdefs.h >>conftest.$ac_ext | |
17167 | cat >>conftest.$ac_ext <<_ACEOF | |
17168 | /* end confdefs.h. */ | |
a3828db0 MK |
17169 | #include <sys/param.h> |
17170 | #include <sys/lwp.h> | |
bec39cab AC |
17171 | int |
17172 | main () | |
17173 | { | |
a3828db0 | 17174 | struct lwp l; |
bec39cab AC |
17175 | ; |
17176 | return 0; | |
17177 | } | |
17178 | _ACEOF | |
17179 | rm -f conftest.$ac_objext | |
17180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17181 | (eval $ac_compile) 2>conftest.er1 | |
17182 | ac_status=$? | |
17183 | grep -v '^ *+' conftest.er1 >conftest.err | |
17184 | rm -f conftest.er1 | |
17185 | cat conftest.err >&5 | |
17186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17187 | (exit $ac_status); } && | |
121ce6e5 | 17188 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17190 | (eval $ac_try) 2>&5 | |
17191 | ac_status=$? | |
17192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17193 | (exit $ac_status); }; } && | |
17194 | { ac_try='test -s conftest.$ac_objext' | |
17195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17196 | (eval $ac_try) 2>&5 | |
17197 | ac_status=$? | |
17198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17199 | (exit $ac_status); }; }; then | |
a3828db0 | 17200 | gdb_cv_struct_lwp=yes |
c906108c | 17201 | else |
bec39cab AC |
17202 | echo "$as_me: failed program was:" >&5 |
17203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17204 | ||
a3828db0 | 17205 | gdb_cv_struct_lwp=no |
c906108c | 17206 | fi |
bec39cab | 17207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17208 | fi |
a3828db0 MK |
17209 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
17210 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
17211 | if test $gdb_cv_struct_lwp = yes; then | |
c906108c | 17212 | |
a3828db0 MK |
17213 | cat >>confdefs.h <<\_ACEOF |
17214 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 17215 | _ACEOF |
c906108c | 17216 | |
97bf5e38 | 17217 | fi |
c906108c | 17218 | |
a3828db0 MK |
17219 | # See if <machine/reg.h> degines `struct reg'. |
17220 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 | |
17221 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
17222 | if test "${gdb_cv_struct_reg+set}" = set; then | |
bec39cab AC |
17223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17224 | else | |
17225 | cat >conftest.$ac_ext <<_ACEOF | |
17226 | /* confdefs.h. */ | |
17227 | _ACEOF | |
17228 | cat confdefs.h >>conftest.$ac_ext | |
17229 | cat >>conftest.$ac_ext <<_ACEOF | |
17230 | /* end confdefs.h. */ | |
a3828db0 MK |
17231 | #include <sys/types.h> |
17232 | #include <machine/reg.h> | |
bec39cab AC |
17233 | int |
17234 | main () | |
17235 | { | |
a3828db0 | 17236 | struct reg r; |
bec39cab AC |
17237 | ; |
17238 | return 0; | |
17239 | } | |
17240 | _ACEOF | |
17241 | rm -f conftest.$ac_objext | |
17242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17243 | (eval $ac_compile) 2>conftest.er1 | |
17244 | ac_status=$? | |
17245 | grep -v '^ *+' conftest.er1 >conftest.err | |
17246 | rm -f conftest.er1 | |
17247 | cat conftest.err >&5 | |
17248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17249 | (exit $ac_status); } && | |
121ce6e5 | 17250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17252 | (eval $ac_try) 2>&5 | |
17253 | ac_status=$? | |
17254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17255 | (exit $ac_status); }; } && | |
17256 | { ac_try='test -s conftest.$ac_objext' | |
17257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17258 | (eval $ac_try) 2>&5 | |
17259 | ac_status=$? | |
17260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17261 | (exit $ac_status); }; }; then | |
a3828db0 | 17262 | gdb_cv_struct_reg=yes |
27ca5dad | 17263 | else |
bec39cab AC |
17264 | echo "$as_me: failed program was:" >&5 |
17265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17266 | ||
a3828db0 | 17267 | gdb_cv_struct_reg=no |
27ca5dad | 17268 | fi |
bec39cab | 17269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 17270 | fi |
a3828db0 MK |
17271 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
17272 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
17273 | if test $gdb_cv_struct_reg = yes; then | |
bec39cab AC |
17274 | |
17275 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17276 | #define HAVE_STRUCT_REG 1 |
bec39cab | 17277 | _ACEOF |
27ca5dad MC |
17278 | |
17279 | fi | |
97bf5e38 | 17280 | |
a3828db0 MK |
17281 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
17282 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
5c45e068 MK |
17283 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
17284 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
17285 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then | |
bec39cab | 17286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17287 | else |
bec39cab AC |
17288 | cat >conftest.$ac_ext <<_ACEOF |
17289 | /* confdefs.h. */ | |
17290 | _ACEOF | |
17291 | cat confdefs.h >>conftest.$ac_ext | |
17292 | cat >>conftest.$ac_ext <<_ACEOF | |
17293 | /* end confdefs.h. */ | |
a3828db0 | 17294 | #include <machine/reg.h> |
5c45e068 MK |
17295 | |
17296 | int | |
17297 | main () | |
17298 | { | |
17299 | static struct reg ac_aggr; | |
17300 | if (ac_aggr.r_fs) | |
17301 | return 0; | |
17302 | ; | |
17303 | return 0; | |
17304 | } | |
17305 | _ACEOF | |
17306 | rm -f conftest.$ac_objext | |
17307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17308 | (eval $ac_compile) 2>conftest.er1 | |
17309 | ac_status=$? | |
17310 | grep -v '^ *+' conftest.er1 >conftest.err | |
17311 | rm -f conftest.er1 | |
17312 | cat conftest.err >&5 | |
17313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17314 | (exit $ac_status); } && | |
121ce6e5 | 17315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5c45e068 MK |
17316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17317 | (eval $ac_try) 2>&5 | |
17318 | ac_status=$? | |
17319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17320 | (exit $ac_status); }; } && | |
17321 | { ac_try='test -s conftest.$ac_objext' | |
17322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17323 | (eval $ac_try) 2>&5 | |
17324 | ac_status=$? | |
17325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17326 | (exit $ac_status); }; }; then | |
17327 | ac_cv_member_struct_reg_r_fs=yes | |
17328 | else | |
17329 | echo "$as_me: failed program was:" >&5 | |
17330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17331 | ||
17332 | cat >conftest.$ac_ext <<_ACEOF | |
17333 | /* confdefs.h. */ | |
17334 | _ACEOF | |
17335 | cat confdefs.h >>conftest.$ac_ext | |
17336 | cat >>conftest.$ac_ext <<_ACEOF | |
17337 | /* end confdefs.h. */ | |
17338 | #include <machine/reg.h> | |
17339 | ||
bec39cab AC |
17340 | int |
17341 | main () | |
17342 | { | |
5c45e068 MK |
17343 | static struct reg ac_aggr; |
17344 | if (sizeof ac_aggr.r_fs) | |
17345 | return 0; | |
bec39cab AC |
17346 | ; |
17347 | return 0; | |
17348 | } | |
17349 | _ACEOF | |
17350 | rm -f conftest.$ac_objext | |
17351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17352 | (eval $ac_compile) 2>conftest.er1 | |
17353 | ac_status=$? | |
17354 | grep -v '^ *+' conftest.er1 >conftest.err | |
17355 | rm -f conftest.er1 | |
17356 | cat conftest.err >&5 | |
17357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17358 | (exit $ac_status); } && | |
121ce6e5 | 17359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17361 | (eval $ac_try) 2>&5 | |
17362 | ac_status=$? | |
17363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17364 | (exit $ac_status); }; } && | |
17365 | { ac_try='test -s conftest.$ac_objext' | |
17366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17367 | (eval $ac_try) 2>&5 | |
17368 | ac_status=$? | |
17369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17370 | (exit $ac_status); }; }; then | |
5c45e068 | 17371 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 17372 | else |
bec39cab AC |
17373 | echo "$as_me: failed program was:" >&5 |
17374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17375 | ||
5c45e068 | 17376 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 17377 | fi |
bec39cab | 17378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 17379 | fi |
5c45e068 MK |
17380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17381 | fi | |
17382 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 | |
17383 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
17384 | if test $ac_cv_member_struct_reg_r_fs = yes; then | |
17385 | ||
17386 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 17387 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 17388 | _ACEOF |
3862412b | 17389 | |
5c45e068 | 17390 | |
97bf5e38 | 17391 | fi |
5c45e068 MK |
17392 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
17393 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
17394 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then | |
bec39cab | 17395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17396 | else |
bec39cab AC |
17397 | cat >conftest.$ac_ext <<_ACEOF |
17398 | /* confdefs.h. */ | |
17399 | _ACEOF | |
17400 | cat confdefs.h >>conftest.$ac_ext | |
17401 | cat >>conftest.$ac_ext <<_ACEOF | |
17402 | /* end confdefs.h. */ | |
a3828db0 | 17403 | #include <machine/reg.h> |
5c45e068 | 17404 | |
bec39cab AC |
17405 | int |
17406 | main () | |
17407 | { | |
5c45e068 MK |
17408 | static struct reg ac_aggr; |
17409 | if (ac_aggr.r_gs) | |
17410 | return 0; | |
bec39cab AC |
17411 | ; |
17412 | return 0; | |
17413 | } | |
17414 | _ACEOF | |
17415 | rm -f conftest.$ac_objext | |
17416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17417 | (eval $ac_compile) 2>conftest.er1 | |
17418 | ac_status=$? | |
17419 | grep -v '^ *+' conftest.er1 >conftest.err | |
17420 | rm -f conftest.er1 | |
17421 | cat conftest.err >&5 | |
17422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17423 | (exit $ac_status); } && | |
121ce6e5 | 17424 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17426 | (eval $ac_try) 2>&5 | |
17427 | ac_status=$? | |
17428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17429 | (exit $ac_status); }; } && | |
17430 | { ac_try='test -s conftest.$ac_objext' | |
17431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17432 | (eval $ac_try) 2>&5 | |
17433 | ac_status=$? | |
17434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17435 | (exit $ac_status); }; }; then | |
5c45e068 | 17436 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 17437 | else |
bec39cab AC |
17438 | echo "$as_me: failed program was:" >&5 |
17439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17440 | ||
5c45e068 MK |
17441 | cat >conftest.$ac_ext <<_ACEOF |
17442 | /* confdefs.h. */ | |
17443 | _ACEOF | |
17444 | cat confdefs.h >>conftest.$ac_ext | |
17445 | cat >>conftest.$ac_ext <<_ACEOF | |
17446 | /* end confdefs.h. */ | |
17447 | #include <machine/reg.h> | |
17448 | ||
17449 | int | |
17450 | main () | |
17451 | { | |
17452 | static struct reg ac_aggr; | |
17453 | if (sizeof ac_aggr.r_gs) | |
17454 | return 0; | |
17455 | ; | |
17456 | return 0; | |
17457 | } | |
17458 | _ACEOF | |
17459 | rm -f conftest.$ac_objext | |
17460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17461 | (eval $ac_compile) 2>conftest.er1 | |
17462 | ac_status=$? | |
17463 | grep -v '^ *+' conftest.er1 >conftest.err | |
17464 | rm -f conftest.er1 | |
17465 | cat conftest.err >&5 | |
17466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17467 | (exit $ac_status); } && | |
121ce6e5 | 17468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5c45e068 MK |
17469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17470 | (eval $ac_try) 2>&5 | |
17471 | ac_status=$? | |
17472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17473 | (exit $ac_status); }; } && | |
17474 | { ac_try='test -s conftest.$ac_objext' | |
17475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17476 | (eval $ac_try) 2>&5 | |
17477 | ac_status=$? | |
17478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17479 | (exit $ac_status); }; }; then | |
17480 | ac_cv_member_struct_reg_r_gs=yes | |
17481 | else | |
17482 | echo "$as_me: failed program was:" >&5 | |
17483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17484 | ||
17485 | ac_cv_member_struct_reg_r_gs=no | |
3862412b | 17486 | fi |
bec39cab | 17487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 17488 | fi |
5c45e068 MK |
17489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17490 | fi | |
17491 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 | |
17492 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
17493 | if test $ac_cv_member_struct_reg_r_gs = yes; then | |
17494 | ||
17495 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 17496 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 17497 | _ACEOF |
3862412b | 17498 | |
5c45e068 | 17499 | |
97bf5e38 | 17500 | fi |
3862412b | 17501 | |
5c45e068 | 17502 | |
a3828db0 MK |
17503 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
17504 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 | |
17505 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
17506 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then | |
bec39cab | 17507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 17508 | else |
bec39cab AC |
17509 | cat >conftest.$ac_ext <<_ACEOF |
17510 | /* confdefs.h. */ | |
17511 | _ACEOF | |
17512 | cat confdefs.h >>conftest.$ac_ext | |
17513 | cat >>conftest.$ac_ext <<_ACEOF | |
17514 | /* end confdefs.h. */ | |
a3828db0 | 17515 | #include <sys/ptrace.h> |
bec39cab AC |
17516 | int |
17517 | main () | |
17518 | { | |
a3828db0 | 17519 | PTRACE_GETREGS; |
bec39cab AC |
17520 | ; |
17521 | return 0; | |
17522 | } | |
17523 | _ACEOF | |
17524 | rm -f conftest.$ac_objext | |
17525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17526 | (eval $ac_compile) 2>conftest.er1 | |
17527 | ac_status=$? | |
17528 | grep -v '^ *+' conftest.er1 >conftest.err | |
17529 | rm -f conftest.er1 | |
17530 | cat conftest.err >&5 | |
17531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17532 | (exit $ac_status); } && | |
121ce6e5 | 17533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17535 | (eval $ac_try) 2>&5 | |
17536 | ac_status=$? | |
17537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17538 | (exit $ac_status); }; } && | |
17539 | { ac_try='test -s conftest.$ac_objext' | |
17540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17541 | (eval $ac_try) 2>&5 | |
17542 | ac_status=$? | |
17543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17544 | (exit $ac_status); }; }; then | |
a3828db0 | 17545 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 17546 | else |
bec39cab AC |
17547 | echo "$as_me: failed program was:" >&5 |
17548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17549 | ||
a3828db0 | 17550 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 17551 | fi |
bec39cab | 17552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17553 | fi |
17554 | ||
a3828db0 MK |
17555 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
17556 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
17557 | if test $gdb_cv_have_ptrace_getregs = yes; then | |
60ca704f SE |
17558 | |
17559 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17560 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 17561 | _ACEOF |
451928c5 | 17562 | |
97bf5e38 | 17563 | fi |
451928c5 | 17564 | |
a3828db0 MK |
17565 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
17566 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 | |
17567 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
17568 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then | |
bec39cab | 17569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 17570 | else |
bec39cab AC |
17571 | cat >conftest.$ac_ext <<_ACEOF |
17572 | /* confdefs.h. */ | |
17573 | _ACEOF | |
17574 | cat confdefs.h >>conftest.$ac_ext | |
17575 | cat >>conftest.$ac_ext <<_ACEOF | |
17576 | /* end confdefs.h. */ | |
a3828db0 | 17577 | #include <sys/ptrace.h> |
bec39cab AC |
17578 | int |
17579 | main () | |
17580 | { | |
a3828db0 | 17581 | PTRACE_GETFPXREGS; |
bec39cab AC |
17582 | ; |
17583 | return 0; | |
17584 | } | |
17585 | _ACEOF | |
17586 | rm -f conftest.$ac_objext | |
17587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17588 | (eval $ac_compile) 2>conftest.er1 | |
17589 | ac_status=$? | |
17590 | grep -v '^ *+' conftest.er1 >conftest.err | |
17591 | rm -f conftest.er1 | |
17592 | cat conftest.err >&5 | |
17593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17594 | (exit $ac_status); } && | |
121ce6e5 | 17595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17597 | (eval $ac_try) 2>&5 | |
17598 | ac_status=$? | |
17599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17600 | (exit $ac_status); }; } && | |
17601 | { ac_try='test -s conftest.$ac_objext' | |
17602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17603 | (eval $ac_try) 2>&5 | |
17604 | ac_status=$? | |
17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17606 | (exit $ac_status); }; }; then | |
a3828db0 | 17607 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 17608 | else |
bec39cab AC |
17609 | echo "$as_me: failed program was:" >&5 |
17610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17611 | ||
a3828db0 | 17612 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 17613 | fi |
bec39cab | 17614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17615 | fi |
17616 | ||
a3828db0 MK |
17617 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
17618 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
17619 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then | |
60ca704f SE |
17620 | |
17621 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17622 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 17623 | _ACEOF |
451928c5 | 17624 | |
97bf5e38 | 17625 | fi |
451928c5 | 17626 | |
a3828db0 MK |
17627 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
17628 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 | |
17629 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
17630 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then | |
bec39cab | 17631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17632 | else |
bec39cab AC |
17633 | cat >conftest.$ac_ext <<_ACEOF |
17634 | /* confdefs.h. */ | |
17635 | _ACEOF | |
17636 | cat confdefs.h >>conftest.$ac_ext | |
17637 | cat >>conftest.$ac_ext <<_ACEOF | |
17638 | /* end confdefs.h. */ | |
a3828db0 MK |
17639 | #include <sys/types.h> |
17640 | #include <sys/ptrace.h> | |
bec39cab AC |
17641 | int |
17642 | main () | |
17643 | { | |
a3828db0 | 17644 | PT_GETDBREGS; |
bec39cab AC |
17645 | ; |
17646 | return 0; | |
17647 | } | |
17648 | _ACEOF | |
17649 | rm -f conftest.$ac_objext | |
17650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17651 | (eval $ac_compile) 2>conftest.er1 | |
17652 | ac_status=$? | |
17653 | grep -v '^ *+' conftest.er1 >conftest.err | |
17654 | rm -f conftest.er1 | |
17655 | cat conftest.err >&5 | |
17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17657 | (exit $ac_status); } && | |
121ce6e5 | 17658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17660 | (eval $ac_try) 2>&5 | |
17661 | ac_status=$? | |
17662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17663 | (exit $ac_status); }; } && | |
17664 | { ac_try='test -s conftest.$ac_objext' | |
17665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17666 | (eval $ac_try) 2>&5 | |
17667 | ac_status=$? | |
17668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17669 | (exit $ac_status); }; }; then | |
a3828db0 | 17670 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 17671 | else |
bec39cab AC |
17672 | echo "$as_me: failed program was:" >&5 |
17673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17674 | ||
a3828db0 | 17675 | gdb_cv_have_pt_getdbregs=no |
3862412b | 17676 | fi |
bec39cab | 17677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17678 | fi |
17679 | ||
a3828db0 MK |
17680 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
17681 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
17682 | if test $gdb_cv_have_pt_getdbregs = yes; then | |
60ca704f SE |
17683 | |
17684 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17685 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 17686 | _ACEOF |
3862412b | 17687 | |
97bf5e38 | 17688 | fi |
3862412b | 17689 | |
a3828db0 MK |
17690 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
17691 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 | |
17692 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
17693 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then | |
bec39cab | 17694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17695 | else |
bec39cab AC |
17696 | cat >conftest.$ac_ext <<_ACEOF |
17697 | /* confdefs.h. */ | |
17698 | _ACEOF | |
17699 | cat confdefs.h >>conftest.$ac_ext | |
17700 | cat >>conftest.$ac_ext <<_ACEOF | |
17701 | /* end confdefs.h. */ | |
a3828db0 MK |
17702 | #include <sys/types.h> |
17703 | #include <sys/ptrace.h> | |
bec39cab AC |
17704 | int |
17705 | main () | |
17706 | { | |
a3828db0 | 17707 | PT_GETXMMREGS; |
bec39cab AC |
17708 | ; |
17709 | return 0; | |
17710 | } | |
17711 | _ACEOF | |
17712 | rm -f conftest.$ac_objext | |
17713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17714 | (eval $ac_compile) 2>conftest.er1 | |
17715 | ac_status=$? | |
17716 | grep -v '^ *+' conftest.er1 >conftest.err | |
17717 | rm -f conftest.er1 | |
17718 | cat conftest.err >&5 | |
17719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17720 | (exit $ac_status); } && | |
121ce6e5 | 17721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17723 | (eval $ac_try) 2>&5 | |
17724 | ac_status=$? | |
17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17726 | (exit $ac_status); }; } && | |
17727 | { ac_try='test -s conftest.$ac_objext' | |
17728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17729 | (eval $ac_try) 2>&5 | |
17730 | ac_status=$? | |
17731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17732 | (exit $ac_status); }; }; then | |
a3828db0 | 17733 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 17734 | else |
bec39cab AC |
17735 | echo "$as_me: failed program was:" >&5 |
17736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17737 | ||
a3828db0 | 17738 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 17739 | fi |
bec39cab | 17740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17741 | fi |
17742 | ||
a3828db0 MK |
17743 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
17744 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
17745 | if test $gdb_cv_have_pt_getxmmregs = yes; then | |
60ca704f SE |
17746 | |
17747 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17748 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 17749 | _ACEOF |
3862412b | 17750 | |
97bf5e38 | 17751 | fi |
3862412b | 17752 | |
97bf5e38 MK |
17753 | # If we are configured native on GNU/Linux, work around problems with |
17754 | # sys/procfs.h | |
17755 | # Also detect which type of /proc is in use, such as for Unixware or Solaris. | |
17756 | ||
17757 | if test "${target}" = "${host}"; then | |
17758 | case "${host}" in | |
17759 | i[3456]86-*-linux*) | |
60ca704f SE |
17760 | |
17761 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17762 | #define START_INFERIOR_TRAPS_EXPECTED 2 |
bec39cab | 17763 | _ACEOF |
97bf5e38 | 17764 | |
60ca704f SE |
17765 | |
17766 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17767 | #define sys_quotactl 1 |
bec39cab | 17768 | _ACEOF |
97bf5e38 MK |
17769 | |
17770 | ;; | |
97bf5e38 | 17771 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
17772 | |
17773 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17774 | #define NEW_PROC_API 1 |
bec39cab | 17775 | _ACEOF |
97bf5e38 MK |
17776 | |
17777 | ;; | |
0bbc026e | 17778 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
60ca704f SE |
17779 | |
17780 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17781 | #define NEW_PROC_API 1 |
bec39cab | 17782 | _ACEOF |
c960c18f AC |
17783 | |
17784 | ;; | |
17785 | mips-sgi-irix5*) | |
17786 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
17787 | |
17788 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 17789 | #define _KMEMUSER 1 |
bec39cab | 17790 | _ACEOF |
97bf5e38 MK |
17791 | |
17792 | ;; | |
17793 | esac | |
17794 | fi | |
17795 | ||
17796 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
bec39cab AC |
17797 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
17798 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
17799 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
17800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17801 | else | |
17802 | cat >conftest.$ac_ext <<_ACEOF | |
17803 | /* confdefs.h. */ | |
17804 | _ACEOF | |
17805 | cat confdefs.h >>conftest.$ac_ext | |
17806 | cat >>conftest.$ac_ext <<_ACEOF | |
17807 | /* end confdefs.h. */ | |
596c9d4b KB |
17808 | |
17809 | #define _SYSCALL32 | |
17810 | #include <sys/procfs.h> | |
bec39cab AC |
17811 | int |
17812 | main () | |
17813 | { | |
97bf5e38 | 17814 | pstatus_t avar |
bec39cab AC |
17815 | ; |
17816 | return 0; | |
17817 | } | |
17818 | _ACEOF | |
17819 | rm -f conftest.$ac_objext | |
17820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17821 | (eval $ac_compile) 2>conftest.er1 | |
17822 | ac_status=$? | |
17823 | grep -v '^ *+' conftest.er1 >conftest.err | |
17824 | rm -f conftest.er1 | |
17825 | cat conftest.err >&5 | |
17826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17827 | (exit $ac_status); } && | |
121ce6e5 | 17828 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17830 | (eval $ac_try) 2>&5 | |
17831 | ac_status=$? | |
17832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17833 | (exit $ac_status); }; } && | |
17834 | { ac_try='test -s conftest.$ac_objext' | |
17835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17836 | (eval $ac_try) 2>&5 | |
17837 | ac_status=$? | |
17838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17839 | (exit $ac_status); }; }; then | |
97bf5e38 | 17840 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 17841 | else |
bec39cab AC |
17842 | echo "$as_me: failed program was:" >&5 |
17843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17844 | ||
17845 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
17846 | ||
596c9d4b | 17847 | fi |
bec39cab | 17848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17849 | fi |
17850 | ||
97bf5e38 | 17851 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
17852 | |
17853 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17854 | #define HAVE_PSTATUS_T 1 |
bec39cab | 17855 | _ACEOF |
596c9d4b KB |
17856 | |
17857 | fi | |
bec39cab AC |
17858 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
17859 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 17860 | |
bec39cab AC |
17861 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
17862 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
17863 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then | |
17864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17865 | else |
bec39cab AC |
17866 | cat >conftest.$ac_ext <<_ACEOF |
17867 | /* confdefs.h. */ | |
17868 | _ACEOF | |
17869 | cat confdefs.h >>conftest.$ac_ext | |
17870 | cat >>conftest.$ac_ext <<_ACEOF | |
17871 | /* end confdefs.h. */ | |
596c9d4b KB |
17872 | |
17873 | #define _SYSCALL32 | |
17874 | #include <sys/procfs.h> | |
bec39cab AC |
17875 | int |
17876 | main () | |
17877 | { | |
97bf5e38 | 17878 | prrun_t avar |
bec39cab AC |
17879 | ; |
17880 | return 0; | |
17881 | } | |
17882 | _ACEOF | |
17883 | rm -f conftest.$ac_objext | |
17884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17885 | (eval $ac_compile) 2>conftest.er1 | |
17886 | ac_status=$? | |
17887 | grep -v '^ *+' conftest.er1 >conftest.err | |
17888 | rm -f conftest.er1 | |
17889 | cat conftest.err >&5 | |
17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17891 | (exit $ac_status); } && | |
121ce6e5 | 17892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17894 | (eval $ac_try) 2>&5 | |
17895 | ac_status=$? | |
17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17897 | (exit $ac_status); }; } && | |
17898 | { ac_try='test -s conftest.$ac_objext' | |
17899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17900 | (eval $ac_try) 2>&5 | |
17901 | ac_status=$? | |
17902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17903 | (exit $ac_status); }; }; then | |
97bf5e38 | 17904 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 17905 | else |
bec39cab AC |
17906 | echo "$as_me: failed program was:" >&5 |
17907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17908 | ||
17909 | bfd_cv_have_sys_procfs_type_prrun_t=no | |
17910 | ||
596c9d4b | 17911 | fi |
bec39cab | 17912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17913 | fi |
17914 | ||
97bf5e38 | 17915 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
17916 | |
17917 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17918 | #define HAVE_PRRUN_T 1 |
bec39cab | 17919 | _ACEOF |
596c9d4b KB |
17920 | |
17921 | fi | |
bec39cab AC |
17922 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
17923 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 17924 | |
bec39cab AC |
17925 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
17926 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
17927 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then | |
17928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17929 | else |
bec39cab AC |
17930 | cat >conftest.$ac_ext <<_ACEOF |
17931 | /* confdefs.h. */ | |
17932 | _ACEOF | |
17933 | cat confdefs.h >>conftest.$ac_ext | |
17934 | cat >>conftest.$ac_ext <<_ACEOF | |
17935 | /* end confdefs.h. */ | |
596c9d4b KB |
17936 | |
17937 | #define _SYSCALL32 | |
17938 | #include <sys/procfs.h> | |
bec39cab AC |
17939 | int |
17940 | main () | |
17941 | { | |
97bf5e38 | 17942 | gregset_t avar |
bec39cab AC |
17943 | ; |
17944 | return 0; | |
17945 | } | |
17946 | _ACEOF | |
17947 | rm -f conftest.$ac_objext | |
17948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17949 | (eval $ac_compile) 2>conftest.er1 | |
17950 | ac_status=$? | |
17951 | grep -v '^ *+' conftest.er1 >conftest.err | |
17952 | rm -f conftest.er1 | |
17953 | cat conftest.err >&5 | |
17954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17955 | (exit $ac_status); } && | |
121ce6e5 | 17956 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17958 | (eval $ac_try) 2>&5 | |
17959 | ac_status=$? | |
17960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17961 | (exit $ac_status); }; } && | |
17962 | { ac_try='test -s conftest.$ac_objext' | |
17963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17964 | (eval $ac_try) 2>&5 | |
17965 | ac_status=$? | |
17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17967 | (exit $ac_status); }; }; then | |
97bf5e38 | 17968 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 17969 | else |
bec39cab AC |
17970 | echo "$as_me: failed program was:" >&5 |
17971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17972 | ||
17973 | bfd_cv_have_sys_procfs_type_gregset_t=no | |
17974 | ||
596c9d4b | 17975 | fi |
bec39cab | 17976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17977 | fi |
17978 | ||
97bf5e38 | 17979 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
17980 | |
17981 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17982 | #define HAVE_GREGSET_T 1 |
bec39cab | 17983 | _ACEOF |
596c9d4b KB |
17984 | |
17985 | fi | |
bec39cab AC |
17986 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
17987 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 17988 | |
bec39cab AC |
17989 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
17990 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
17991 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then | |
17992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 17993 | else |
bec39cab AC |
17994 | cat >conftest.$ac_ext <<_ACEOF |
17995 | /* confdefs.h. */ | |
17996 | _ACEOF | |
17997 | cat confdefs.h >>conftest.$ac_ext | |
17998 | cat >>conftest.$ac_ext <<_ACEOF | |
17999 | /* end confdefs.h. */ | |
97bf5e38 MK |
18000 | |
18001 | #define _SYSCALL32 | |
d84dd0c5 | 18002 | #include <sys/procfs.h> |
bec39cab AC |
18003 | int |
18004 | main () | |
18005 | { | |
97bf5e38 | 18006 | fpregset_t avar |
bec39cab AC |
18007 | ; |
18008 | return 0; | |
18009 | } | |
18010 | _ACEOF | |
18011 | rm -f conftest.$ac_objext | |
18012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18013 | (eval $ac_compile) 2>conftest.er1 | |
18014 | ac_status=$? | |
18015 | grep -v '^ *+' conftest.er1 >conftest.err | |
18016 | rm -f conftest.er1 | |
18017 | cat conftest.err >&5 | |
18018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18019 | (exit $ac_status); } && | |
121ce6e5 | 18020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18022 | (eval $ac_try) 2>&5 | |
18023 | ac_status=$? | |
18024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18025 | (exit $ac_status); }; } && | |
18026 | { ac_try='test -s conftest.$ac_objext' | |
18027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18028 | (eval $ac_try) 2>&5 | |
18029 | ac_status=$? | |
18030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18031 | (exit $ac_status); }; }; then | |
97bf5e38 | 18032 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 18033 | else |
bec39cab AC |
18034 | echo "$as_me: failed program was:" >&5 |
18035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18036 | ||
18037 | bfd_cv_have_sys_procfs_type_fpregset_t=no | |
18038 | ||
d84dd0c5 | 18039 | fi |
bec39cab | 18040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
18041 | fi |
18042 | ||
97bf5e38 | 18043 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
18044 | |
18045 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18046 | #define HAVE_FPREGSET_T 1 |
bec39cab | 18047 | _ACEOF |
d84dd0c5 | 18048 | |
97bf5e38 | 18049 | fi |
bec39cab AC |
18050 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
18051 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 18052 | |
bec39cab AC |
18053 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
18054 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
18055 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then | |
18056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18057 | else |
bec39cab AC |
18058 | cat >conftest.$ac_ext <<_ACEOF |
18059 | /* confdefs.h. */ | |
18060 | _ACEOF | |
18061 | cat confdefs.h >>conftest.$ac_ext | |
18062 | cat >>conftest.$ac_ext <<_ACEOF | |
18063 | /* end confdefs.h. */ | |
c906108c | 18064 | |
97bf5e38 MK |
18065 | #define _SYSCALL32 |
18066 | #include <sys/procfs.h> | |
bec39cab AC |
18067 | int |
18068 | main () | |
18069 | { | |
97bf5e38 | 18070 | prgregset_t avar |
bec39cab AC |
18071 | ; |
18072 | return 0; | |
18073 | } | |
18074 | _ACEOF | |
18075 | rm -f conftest.$ac_objext | |
18076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18077 | (eval $ac_compile) 2>conftest.er1 | |
18078 | ac_status=$? | |
18079 | grep -v '^ *+' conftest.er1 >conftest.err | |
18080 | rm -f conftest.er1 | |
18081 | cat conftest.err >&5 | |
18082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18083 | (exit $ac_status); } && | |
121ce6e5 | 18084 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18086 | (eval $ac_try) 2>&5 | |
18087 | ac_status=$? | |
18088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18089 | (exit $ac_status); }; } && | |
18090 | { ac_try='test -s conftest.$ac_objext' | |
18091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18092 | (eval $ac_try) 2>&5 | |
18093 | ac_status=$? | |
18094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18095 | (exit $ac_status); }; }; then | |
97bf5e38 | 18096 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 18097 | else |
bec39cab AC |
18098 | echo "$as_me: failed program was:" >&5 |
18099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18100 | ||
18101 | bfd_cv_have_sys_procfs_type_prgregset_t=no | |
18102 | ||
c906108c | 18103 | fi |
bec39cab | 18104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18105 | fi |
18106 | ||
97bf5e38 | 18107 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
18108 | |
18109 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18110 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 18111 | _ACEOF |
c906108c | 18112 | |
97bf5e38 | 18113 | fi |
bec39cab AC |
18114 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
18115 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 18116 | |
bec39cab AC |
18117 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
18118 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
18119 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then | |
18120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18121 | else |
bec39cab AC |
18122 | cat >conftest.$ac_ext <<_ACEOF |
18123 | /* confdefs.h. */ | |
18124 | _ACEOF | |
18125 | cat confdefs.h >>conftest.$ac_ext | |
18126 | cat >>conftest.$ac_ext <<_ACEOF | |
18127 | /* end confdefs.h. */ | |
97bf5e38 MK |
18128 | |
18129 | #define _SYSCALL32 | |
18130 | #include <sys/procfs.h> | |
bec39cab AC |
18131 | int |
18132 | main () | |
18133 | { | |
97bf5e38 | 18134 | prfpregset_t avar |
bec39cab AC |
18135 | ; |
18136 | return 0; | |
18137 | } | |
18138 | _ACEOF | |
18139 | rm -f conftest.$ac_objext | |
18140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18141 | (eval $ac_compile) 2>conftest.er1 | |
18142 | ac_status=$? | |
18143 | grep -v '^ *+' conftest.er1 >conftest.err | |
18144 | rm -f conftest.er1 | |
18145 | cat conftest.err >&5 | |
18146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18147 | (exit $ac_status); } && | |
121ce6e5 | 18148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18150 | (eval $ac_try) 2>&5 | |
18151 | ac_status=$? | |
18152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18153 | (exit $ac_status); }; } && | |
18154 | { ac_try='test -s conftest.$ac_objext' | |
18155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18156 | (eval $ac_try) 2>&5 | |
18157 | ac_status=$? | |
18158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18159 | (exit $ac_status); }; }; then | |
97bf5e38 | 18160 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 18161 | else |
bec39cab AC |
18162 | echo "$as_me: failed program was:" >&5 |
18163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18164 | ||
18165 | bfd_cv_have_sys_procfs_type_prfpregset_t=no | |
18166 | ||
d45fe813 | 18167 | fi |
bec39cab | 18168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18169 | fi |
18170 | ||
97bf5e38 | 18171 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
18172 | |
18173 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18174 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 18175 | _ACEOF |
d45fe813 | 18176 | |
97bf5e38 | 18177 | fi |
bec39cab AC |
18178 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
18179 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 18180 | |
bec39cab AC |
18181 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
18182 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
18183 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then | |
18184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18185 | else |
bec39cab AC |
18186 | cat >conftest.$ac_ext <<_ACEOF |
18187 | /* confdefs.h. */ | |
18188 | _ACEOF | |
18189 | cat confdefs.h >>conftest.$ac_ext | |
18190 | cat >>conftest.$ac_ext <<_ACEOF | |
18191 | /* end confdefs.h. */ | |
97bf5e38 MK |
18192 | |
18193 | #define _SYSCALL32 | |
18194 | #include <sys/procfs.h> | |
bec39cab AC |
18195 | int |
18196 | main () | |
18197 | { | |
97bf5e38 | 18198 | prgregset32_t avar |
bec39cab AC |
18199 | ; |
18200 | return 0; | |
18201 | } | |
18202 | _ACEOF | |
18203 | rm -f conftest.$ac_objext | |
18204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18205 | (eval $ac_compile) 2>conftest.er1 | |
18206 | ac_status=$? | |
18207 | grep -v '^ *+' conftest.er1 >conftest.err | |
18208 | rm -f conftest.er1 | |
18209 | cat conftest.err >&5 | |
18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18211 | (exit $ac_status); } && | |
121ce6e5 | 18212 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18214 | (eval $ac_try) 2>&5 | |
18215 | ac_status=$? | |
18216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18217 | (exit $ac_status); }; } && | |
18218 | { ac_try='test -s conftest.$ac_objext' | |
18219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18220 | (eval $ac_try) 2>&5 | |
18221 | ac_status=$? | |
18222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18223 | (exit $ac_status); }; }; then | |
97bf5e38 | 18224 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 18225 | else |
bec39cab AC |
18226 | echo "$as_me: failed program was:" >&5 |
18227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18228 | ||
18229 | bfd_cv_have_sys_procfs_type_prgregset32_t=no | |
18230 | ||
d45fe813 | 18231 | fi |
bec39cab | 18232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18233 | fi |
18234 | ||
97bf5e38 | 18235 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
18236 | |
18237 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18238 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 18239 | _ACEOF |
d45fe813 | 18240 | |
97bf5e38 | 18241 | fi |
bec39cab AC |
18242 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
18243 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 18244 | |
bec39cab AC |
18245 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
18246 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
18247 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then | |
18248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18249 | else |
bec39cab AC |
18250 | cat >conftest.$ac_ext <<_ACEOF |
18251 | /* confdefs.h. */ | |
18252 | _ACEOF | |
18253 | cat confdefs.h >>conftest.$ac_ext | |
18254 | cat >>conftest.$ac_ext <<_ACEOF | |
18255 | /* end confdefs.h. */ | |
97bf5e38 MK |
18256 | |
18257 | #define _SYSCALL32 | |
18258 | #include <sys/procfs.h> | |
bec39cab AC |
18259 | int |
18260 | main () | |
18261 | { | |
97bf5e38 | 18262 | prfpregset32_t avar |
bec39cab AC |
18263 | ; |
18264 | return 0; | |
18265 | } | |
18266 | _ACEOF | |
18267 | rm -f conftest.$ac_objext | |
18268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18269 | (eval $ac_compile) 2>conftest.er1 | |
18270 | ac_status=$? | |
18271 | grep -v '^ *+' conftest.er1 >conftest.err | |
18272 | rm -f conftest.er1 | |
18273 | cat conftest.err >&5 | |
18274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18275 | (exit $ac_status); } && | |
121ce6e5 | 18276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18278 | (eval $ac_try) 2>&5 | |
18279 | ac_status=$? | |
18280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18281 | (exit $ac_status); }; } && | |
18282 | { ac_try='test -s conftest.$ac_objext' | |
18283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18284 | (eval $ac_try) 2>&5 | |
18285 | ac_status=$? | |
18286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18287 | (exit $ac_status); }; }; then | |
97bf5e38 | 18288 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 18289 | else |
bec39cab AC |
18290 | echo "$as_me: failed program was:" >&5 |
18291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18292 | ||
18293 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no | |
18294 | ||
d45fe813 | 18295 | fi |
bec39cab | 18296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18297 | fi |
18298 | ||
97bf5e38 | 18299 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
18300 | |
18301 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18302 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 18303 | _ACEOF |
d45fe813 | 18304 | |
97bf5e38 | 18305 | fi |
bec39cab AC |
18306 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
18307 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 18308 | |
bec39cab AC |
18309 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
18310 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
18311 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then | |
18312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18313 | else |
bec39cab AC |
18314 | cat >conftest.$ac_ext <<_ACEOF |
18315 | /* confdefs.h. */ | |
18316 | _ACEOF | |
18317 | cat confdefs.h >>conftest.$ac_ext | |
18318 | cat >>conftest.$ac_ext <<_ACEOF | |
18319 | /* end confdefs.h. */ | |
97bf5e38 | 18320 | |
d45fe813 | 18321 | #define _SYSCALL32 |
97bf5e38 | 18322 | #include <sys/procfs.h> |
bec39cab AC |
18323 | int |
18324 | main () | |
18325 | { | |
97bf5e38 | 18326 | lwpid_t avar |
bec39cab AC |
18327 | ; |
18328 | return 0; | |
18329 | } | |
18330 | _ACEOF | |
18331 | rm -f conftest.$ac_objext | |
18332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18333 | (eval $ac_compile) 2>conftest.er1 | |
18334 | ac_status=$? | |
18335 | grep -v '^ *+' conftest.er1 >conftest.err | |
18336 | rm -f conftest.er1 | |
18337 | cat conftest.err >&5 | |
18338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18339 | (exit $ac_status); } && | |
121ce6e5 | 18340 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18342 | (eval $ac_try) 2>&5 | |
18343 | ac_status=$? | |
18344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18345 | (exit $ac_status); }; } && | |
18346 | { ac_try='test -s conftest.$ac_objext' | |
18347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18348 | (eval $ac_try) 2>&5 | |
18349 | ac_status=$? | |
18350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18351 | (exit $ac_status); }; }; then | |
97bf5e38 | 18352 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 18353 | else |
bec39cab AC |
18354 | echo "$as_me: failed program was:" >&5 |
18355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18356 | ||
18357 | bfd_cv_have_sys_procfs_type_lwpid_t=no | |
18358 | ||
d45fe813 | 18359 | fi |
bec39cab | 18360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18361 | fi |
18362 | ||
97bf5e38 | 18363 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
18364 | |
18365 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18366 | #define HAVE_LWPID_T 1 |
bec39cab | 18367 | _ACEOF |
d45fe813 | 18368 | |
97bf5e38 | 18369 | fi |
bec39cab AC |
18370 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
18371 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 18372 | |
bec39cab AC |
18373 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
18374 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
18375 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then | |
18376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18377 | else |
bec39cab AC |
18378 | cat >conftest.$ac_ext <<_ACEOF |
18379 | /* confdefs.h. */ | |
18380 | _ACEOF | |
18381 | cat confdefs.h >>conftest.$ac_ext | |
18382 | cat >>conftest.$ac_ext <<_ACEOF | |
18383 | /* end confdefs.h. */ | |
c906108c | 18384 | |
97bf5e38 MK |
18385 | #define _SYSCALL32 |
18386 | #include <sys/procfs.h> | |
bec39cab AC |
18387 | int |
18388 | main () | |
18389 | { | |
97bf5e38 | 18390 | psaddr_t avar |
bec39cab AC |
18391 | ; |
18392 | return 0; | |
18393 | } | |
18394 | _ACEOF | |
18395 | rm -f conftest.$ac_objext | |
18396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18397 | (eval $ac_compile) 2>conftest.er1 | |
18398 | ac_status=$? | |
18399 | grep -v '^ *+' conftest.er1 >conftest.err | |
18400 | rm -f conftest.er1 | |
18401 | cat conftest.err >&5 | |
18402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18403 | (exit $ac_status); } && | |
121ce6e5 | 18404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18406 | (eval $ac_try) 2>&5 | |
18407 | ac_status=$? | |
18408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18409 | (exit $ac_status); }; } && | |
18410 | { ac_try='test -s conftest.$ac_objext' | |
18411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18412 | (eval $ac_try) 2>&5 | |
18413 | ac_status=$? | |
18414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18415 | (exit $ac_status); }; }; then | |
97bf5e38 | 18416 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 18417 | else |
bec39cab AC |
18418 | echo "$as_me: failed program was:" >&5 |
18419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18420 | ||
18421 | bfd_cv_have_sys_procfs_type_psaddr_t=no | |
18422 | ||
c906108c | 18423 | fi |
bec39cab | 18424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18425 | fi |
18426 | ||
97bf5e38 | 18427 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
18428 | |
18429 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18430 | #define HAVE_PSADDR_T 1 |
bec39cab | 18431 | _ACEOF |
c906108c | 18432 | |
97bf5e38 | 18433 | fi |
bec39cab AC |
18434 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
18435 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 18436 | |
bec39cab AC |
18437 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
18438 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
18439 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then | |
18440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18441 | else |
bec39cab AC |
18442 | cat >conftest.$ac_ext <<_ACEOF |
18443 | /* confdefs.h. */ | |
18444 | _ACEOF | |
18445 | cat confdefs.h >>conftest.$ac_ext | |
18446 | cat >>conftest.$ac_ext <<_ACEOF | |
18447 | /* end confdefs.h. */ | |
c906108c | 18448 | |
97bf5e38 MK |
18449 | #define _SYSCALL32 |
18450 | #include <sys/procfs.h> | |
bec39cab AC |
18451 | int |
18452 | main () | |
18453 | { | |
97bf5e38 | 18454 | prsysent_t avar |
bec39cab AC |
18455 | ; |
18456 | return 0; | |
18457 | } | |
18458 | _ACEOF | |
18459 | rm -f conftest.$ac_objext | |
18460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18461 | (eval $ac_compile) 2>conftest.er1 | |
18462 | ac_status=$? | |
18463 | grep -v '^ *+' conftest.er1 >conftest.err | |
18464 | rm -f conftest.er1 | |
18465 | cat conftest.err >&5 | |
18466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18467 | (exit $ac_status); } && | |
121ce6e5 | 18468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18470 | (eval $ac_try) 2>&5 | |
18471 | ac_status=$? | |
18472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18473 | (exit $ac_status); }; } && | |
18474 | { ac_try='test -s conftest.$ac_objext' | |
18475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18476 | (eval $ac_try) 2>&5 | |
18477 | ac_status=$? | |
18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18479 | (exit $ac_status); }; }; then | |
97bf5e38 | 18480 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 18481 | else |
bec39cab AC |
18482 | echo "$as_me: failed program was:" >&5 |
18483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18484 | ||
18485 | bfd_cv_have_sys_procfs_type_prsysent_t=no | |
18486 | ||
c906108c | 18487 | fi |
bec39cab | 18488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18489 | fi |
18490 | ||
97bf5e38 | 18491 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
18492 | |
18493 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18494 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 18495 | _ACEOF |
c906108c | 18496 | |
97bf5e38 | 18497 | fi |
bec39cab AC |
18498 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
18499 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 18500 | |
bec39cab AC |
18501 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
18502 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
18503 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then | |
18504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18505 | else |
bec39cab AC |
18506 | cat >conftest.$ac_ext <<_ACEOF |
18507 | /* confdefs.h. */ | |
18508 | _ACEOF | |
18509 | cat confdefs.h >>conftest.$ac_ext | |
18510 | cat >>conftest.$ac_ext <<_ACEOF | |
18511 | /* end confdefs.h. */ | |
c906108c | 18512 | |
97bf5e38 MK |
18513 | #define _SYSCALL32 |
18514 | #include <sys/procfs.h> | |
bec39cab AC |
18515 | int |
18516 | main () | |
18517 | { | |
97bf5e38 | 18518 | pr_sigset_t avar |
bec39cab AC |
18519 | ; |
18520 | return 0; | |
18521 | } | |
18522 | _ACEOF | |
18523 | rm -f conftest.$ac_objext | |
18524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18525 | (eval $ac_compile) 2>conftest.er1 | |
18526 | ac_status=$? | |
18527 | grep -v '^ *+' conftest.er1 >conftest.err | |
18528 | rm -f conftest.er1 | |
18529 | cat conftest.err >&5 | |
18530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18531 | (exit $ac_status); } && | |
121ce6e5 | 18532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18534 | (eval $ac_try) 2>&5 | |
18535 | ac_status=$? | |
18536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18537 | (exit $ac_status); }; } && | |
18538 | { ac_try='test -s conftest.$ac_objext' | |
18539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18540 | (eval $ac_try) 2>&5 | |
18541 | ac_status=$? | |
18542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18543 | (exit $ac_status); }; }; then | |
97bf5e38 | 18544 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 18545 | else |
bec39cab AC |
18546 | echo "$as_me: failed program was:" >&5 |
18547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18548 | ||
18549 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no | |
18550 | ||
c906108c | 18551 | fi |
bec39cab | 18552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18553 | fi |
18554 | ||
97bf5e38 | 18555 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
18556 | |
18557 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18558 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 18559 | _ACEOF |
c906108c | 18560 | |
97bf5e38 | 18561 | fi |
bec39cab AC |
18562 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
18563 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 18564 | |
bec39cab AC |
18565 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
18566 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
18567 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then | |
18568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18569 | else |
bec39cab AC |
18570 | cat >conftest.$ac_ext <<_ACEOF |
18571 | /* confdefs.h. */ | |
18572 | _ACEOF | |
18573 | cat confdefs.h >>conftest.$ac_ext | |
18574 | cat >>conftest.$ac_ext <<_ACEOF | |
18575 | /* end confdefs.h. */ | |
c906108c | 18576 | |
97bf5e38 MK |
18577 | #define _SYSCALL32 |
18578 | #include <sys/procfs.h> | |
bec39cab AC |
18579 | int |
18580 | main () | |
18581 | { | |
97bf5e38 | 18582 | pr_sigaction64_t avar |
bec39cab AC |
18583 | ; |
18584 | return 0; | |
18585 | } | |
18586 | _ACEOF | |
18587 | rm -f conftest.$ac_objext | |
18588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18589 | (eval $ac_compile) 2>conftest.er1 | |
18590 | ac_status=$? | |
18591 | grep -v '^ *+' conftest.er1 >conftest.err | |
18592 | rm -f conftest.er1 | |
18593 | cat conftest.err >&5 | |
18594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18595 | (exit $ac_status); } && | |
121ce6e5 | 18596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18598 | (eval $ac_try) 2>&5 | |
18599 | ac_status=$? | |
18600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18601 | (exit $ac_status); }; } && | |
18602 | { ac_try='test -s conftest.$ac_objext' | |
18603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18604 | (eval $ac_try) 2>&5 | |
18605 | ac_status=$? | |
18606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18607 | (exit $ac_status); }; }; then | |
97bf5e38 | 18608 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 18609 | else |
bec39cab AC |
18610 | echo "$as_me: failed program was:" >&5 |
18611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18612 | ||
18613 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no | |
18614 | ||
c906108c | 18615 | fi |
bec39cab | 18616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18617 | fi |
18618 | ||
97bf5e38 | 18619 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
18620 | |
18621 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18622 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 18623 | _ACEOF |
c906108c | 18624 | |
97bf5e38 | 18625 | fi |
bec39cab AC |
18626 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
18627 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 18628 | |
bec39cab AC |
18629 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
18630 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
18631 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then | |
18632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18633 | else |
bec39cab AC |
18634 | cat >conftest.$ac_ext <<_ACEOF |
18635 | /* confdefs.h. */ | |
18636 | _ACEOF | |
18637 | cat confdefs.h >>conftest.$ac_ext | |
18638 | cat >>conftest.$ac_ext <<_ACEOF | |
18639 | /* end confdefs.h. */ | |
97bf5e38 MK |
18640 | |
18641 | #define _SYSCALL32 | |
18642 | #include <sys/procfs.h> | |
bec39cab AC |
18643 | int |
18644 | main () | |
18645 | { | |
97bf5e38 | 18646 | pr_siginfo64_t avar |
bec39cab AC |
18647 | ; |
18648 | return 0; | |
18649 | } | |
18650 | _ACEOF | |
18651 | rm -f conftest.$ac_objext | |
18652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18653 | (eval $ac_compile) 2>conftest.er1 | |
18654 | ac_status=$? | |
18655 | grep -v '^ *+' conftest.er1 >conftest.err | |
18656 | rm -f conftest.er1 | |
18657 | cat conftest.err >&5 | |
18658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18659 | (exit $ac_status); } && | |
121ce6e5 | 18660 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18662 | (eval $ac_try) 2>&5 | |
18663 | ac_status=$? | |
18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18665 | (exit $ac_status); }; } && | |
18666 | { ac_try='test -s conftest.$ac_objext' | |
18667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18668 | (eval $ac_try) 2>&5 | |
18669 | ac_status=$? | |
18670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18671 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18672 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
18673 | else | |
bec39cab AC |
18674 | echo "$as_me: failed program was:" >&5 |
18675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18676 | ||
18677 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no | |
18678 | ||
97bf5e38 | 18679 | fi |
bec39cab | 18680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18681 | fi |
c906108c | 18682 | |
97bf5e38 | 18683 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
18684 | |
18685 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18686 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 18687 | _ACEOF |
c906108c | 18688 | |
97bf5e38 | 18689 | fi |
bec39cab AC |
18690 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
18691 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
18692 | ||
18693 | ||
97bf5e38 MK |
18694 | |
18695 | ||
18696 | ||
97bf5e38 | 18697 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
18698 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
18699 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
18700 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then | |
18701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
18702 | else |
18703 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 18704 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 18705 | else |
bec39cab AC |
18706 | cat >conftest.$ac_ext <<_ACEOF |
18707 | /* confdefs.h. */ | |
18708 | _ACEOF | |
18709 | cat confdefs.h >>conftest.$ac_ext | |
18710 | cat >>conftest.$ac_ext <<_ACEOF | |
18711 | /* end confdefs.h. */ | |
97bf5e38 MK |
18712 | #include <sys/procfs.h> |
18713 | int main () | |
18714 | { | |
18715 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
18716 | return 1; | |
18717 | return 0; | |
18718 | } | |
bec39cab AC |
18719 | _ACEOF |
18720 | rm -f conftest$ac_exeext | |
18721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18722 | (eval $ac_link) 2>&5 | |
18723 | ac_status=$? | |
18724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18727 | (eval $ac_try) 2>&5 | |
18728 | ac_status=$? | |
18729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18730 | (exit $ac_status); }; }; then | |
97bf5e38 | 18731 | gdb_cv_prfpregset_t_broken=no |
c906108c | 18732 | else |
bec39cab AC |
18733 | echo "$as_me: program exited with status $ac_status" >&5 |
18734 | echo "$as_me: failed program was:" >&5 | |
18735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18736 | ||
18737 | ( exit $ac_status ) | |
18738 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 18739 | fi |
bec39cab | 18740 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 18741 | fi |
c906108c SS |
18742 | fi |
18743 | ||
bec39cab AC |
18744 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
18745 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 18746 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
18747 | |
18748 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18749 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 18750 | _ACEOF |
c906108c | 18751 | |
97bf5e38 MK |
18752 | fi |
18753 | fi | |
c906108c | 18754 | |
bec39cab AC |
18755 | |
18756 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 | |
18757 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
18758 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then | |
18759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18760 | else |
bec39cab AC |
18761 | cat >conftest.$ac_ext <<_ACEOF |
18762 | /* confdefs.h. */ | |
18763 | _ACEOF | |
18764 | cat confdefs.h >>conftest.$ac_ext | |
18765 | cat >>conftest.$ac_ext <<_ACEOF | |
18766 | /* end confdefs.h. */ | |
97bf5e38 MK |
18767 | #include <unistd.h> |
18768 | #include <sys/types.h> | |
18769 | #include <sys/procfs.h> | |
18770 | ||
bec39cab AC |
18771 | int |
18772 | main () | |
18773 | { | |
97bf5e38 MK |
18774 | |
18775 | int dummy;; | |
18776 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
18777 | |
18778 | ; | |
18779 | return 0; | |
18780 | } | |
18781 | _ACEOF | |
18782 | rm -f conftest.$ac_objext | |
18783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18784 | (eval $ac_compile) 2>conftest.er1 | |
18785 | ac_status=$? | |
18786 | grep -v '^ *+' conftest.er1 >conftest.err | |
18787 | rm -f conftest.er1 | |
18788 | cat conftest.err >&5 | |
18789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18790 | (exit $ac_status); } && | |
121ce6e5 | 18791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18793 | (eval $ac_try) 2>&5 | |
18794 | ac_status=$? | |
18795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18796 | (exit $ac_status); }; } && | |
18797 | { ac_try='test -s conftest.$ac_objext' | |
18798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18799 | (eval $ac_try) 2>&5 | |
18800 | ac_status=$? | |
18801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18802 | (exit $ac_status); }; }; then | |
97bf5e38 | 18803 | gdb_cv_have_procfs_piocset=yes |
c906108c | 18804 | else |
bec39cab AC |
18805 | echo "$as_me: failed program was:" >&5 |
18806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18807 | ||
18808 | gdb_cv_have_procfs_piocset=no | |
c906108c | 18809 | fi |
bec39cab | 18810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18811 | fi |
97bf5e38 | 18812 | |
bec39cab AC |
18813 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
18814 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 18815 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
18816 | |
18817 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18818 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 18819 | _ACEOF |
97bf5e38 MK |
18820 | |
18821 | fi | |
c906108c | 18822 | fi |
c906108c | 18823 | |
97bf5e38 | 18824 | if test ${host} = ${target} ; then |
bec39cab AC |
18825 | |
18826 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 | |
18827 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
18828 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then | |
18829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18830 | else | |
18831 | cat >conftest.$ac_ext <<_ACEOF | |
18832 | /* confdefs.h. */ | |
18833 | _ACEOF | |
18834 | cat confdefs.h >>conftest.$ac_ext | |
18835 | cat >>conftest.$ac_ext <<_ACEOF | |
18836 | /* end confdefs.h. */ | |
97bf5e38 | 18837 | #include <link.h> |
bec39cab AC |
18838 | int |
18839 | main () | |
18840 | { | |
97bf5e38 | 18841 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
18842 | ; |
18843 | return 0; | |
18844 | } | |
18845 | _ACEOF | |
18846 | rm -f conftest.$ac_objext | |
18847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18848 | (eval $ac_compile) 2>conftest.er1 | |
18849 | ac_status=$? | |
18850 | grep -v '^ *+' conftest.er1 >conftest.err | |
18851 | rm -f conftest.er1 | |
18852 | cat conftest.err >&5 | |
18853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18854 | (exit $ac_status); } && | |
121ce6e5 | 18855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18857 | (eval $ac_try) 2>&5 | |
18858 | ac_status=$? | |
18859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18860 | (exit $ac_status); }; } && | |
18861 | { ac_try='test -s conftest.$ac_objext' | |
18862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18863 | (eval $ac_try) 2>&5 | |
18864 | ac_status=$? | |
18865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18866 | (exit $ac_status); }; }; then | |
97bf5e38 | 18867 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 18868 | else |
bec39cab AC |
18869 | echo "$as_me: failed program was:" >&5 |
18870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18871 | ||
18872 | gdb_cv_have_struct_link_map_with_l_members=no | |
c906108c | 18873 | fi |
bec39cab | 18874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18875 | fi |
18876 | ||
bec39cab AC |
18877 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
18878 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 18879 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
18880 | |
18881 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18882 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 18883 | _ACEOF |
97bf5e38 MK |
18884 | |
18885 | fi | |
18886 | ||
bec39cab AC |
18887 | |
18888 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 | |
18889 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
18890 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then | |
18891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18892 | else |
bec39cab AC |
18893 | cat >conftest.$ac_ext <<_ACEOF |
18894 | /* confdefs.h. */ | |
18895 | _ACEOF | |
18896 | cat confdefs.h >>conftest.$ac_ext | |
18897 | cat >>conftest.$ac_ext <<_ACEOF | |
18898 | /* end confdefs.h. */ | |
97bf5e38 MK |
18899 | #include <sys/types.h> |
18900 | #include <link.h> | |
bec39cab AC |
18901 | int |
18902 | main () | |
18903 | { | |
97bf5e38 | 18904 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
18905 | ; |
18906 | return 0; | |
18907 | } | |
18908 | _ACEOF | |
18909 | rm -f conftest.$ac_objext | |
18910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18911 | (eval $ac_compile) 2>conftest.er1 | |
18912 | ac_status=$? | |
18913 | grep -v '^ *+' conftest.er1 >conftest.err | |
18914 | rm -f conftest.er1 | |
18915 | cat conftest.err >&5 | |
18916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18917 | (exit $ac_status); } && | |
121ce6e5 | 18918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18920 | (eval $ac_try) 2>&5 | |
18921 | ac_status=$? | |
18922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18923 | (exit $ac_status); }; } && | |
18924 | { ac_try='test -s conftest.$ac_objext' | |
18925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18926 | (eval $ac_try) 2>&5 | |
18927 | ac_status=$? | |
18928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18929 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18930 | gdb_cv_have_struct_link_map_with_lm_members=yes |
18931 | else | |
bec39cab AC |
18932 | echo "$as_me: failed program was:" >&5 |
18933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18934 | ||
18935 | gdb_cv_have_struct_link_map_with_lm_members=no | |
97bf5e38 | 18936 | fi |
bec39cab | 18937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18938 | fi |
c906108c | 18939 | |
bec39cab AC |
18940 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
18941 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 18942 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
18943 | |
18944 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18945 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 18946 | _ACEOF |
97bf5e38 MK |
18947 | |
18948 | fi | |
18949 | ||
bec39cab AC |
18950 | |
18951 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 | |
18952 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
18953 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then | |
18954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18955 | else |
bec39cab AC |
18956 | cat >conftest.$ac_ext <<_ACEOF |
18957 | /* confdefs.h. */ | |
18958 | _ACEOF | |
18959 | cat confdefs.h >>conftest.$ac_ext | |
18960 | cat >>conftest.$ac_ext <<_ACEOF | |
18961 | /* end confdefs.h. */ | |
97bf5e38 MK |
18962 | #include <sys/types.h> |
18963 | #ifdef HAVE_NLIST_H | |
18964 | #include <nlist.h> | |
18965 | #endif | |
18966 | #include <link.h> | |
bec39cab AC |
18967 | int |
18968 | main () | |
18969 | { | |
97bf5e38 | 18970 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
18971 | ; |
18972 | return 0; | |
18973 | } | |
18974 | _ACEOF | |
18975 | rm -f conftest.$ac_objext | |
18976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18977 | (eval $ac_compile) 2>conftest.er1 | |
18978 | ac_status=$? | |
18979 | grep -v '^ *+' conftest.er1 >conftest.err | |
18980 | rm -f conftest.er1 | |
18981 | cat conftest.err >&5 | |
18982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18983 | (exit $ac_status); } && | |
121ce6e5 | 18984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18986 | (eval $ac_try) 2>&5 | |
18987 | ac_status=$? | |
18988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18989 | (exit $ac_status); }; } && | |
18990 | { ac_try='test -s conftest.$ac_objext' | |
18991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18992 | (eval $ac_try) 2>&5 | |
18993 | ac_status=$? | |
18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18995 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18996 | gdb_cv_have_struct_so_map_with_som_members=yes |
18997 | else | |
bec39cab AC |
18998 | echo "$as_me: failed program was:" >&5 |
18999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19000 | ||
19001 | gdb_cv_have_struct_so_map_with_som_members=no | |
97bf5e38 | 19002 | fi |
bec39cab | 19003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19004 | fi |
c906108c | 19005 | |
bec39cab AC |
19006 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
19007 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 19008 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
19009 | |
19010 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19011 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 19012 | _ACEOF |
c906108c | 19013 | |
97bf5e38 | 19014 | fi |
c906108c | 19015 | |
bec39cab AC |
19016 | |
19017 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 | |
19018 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
19019 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then | |
19020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 19021 | else |
bec39cab AC |
19022 | cat >conftest.$ac_ext <<_ACEOF |
19023 | /* confdefs.h. */ | |
19024 | _ACEOF | |
19025 | cat confdefs.h >>conftest.$ac_ext | |
19026 | cat >>conftest.$ac_ext <<_ACEOF | |
19027 | /* end confdefs.h. */ | |
97bf5e38 MK |
19028 | #define _SYSCALL32 |
19029 | #include <sys/link.h> | |
bec39cab AC |
19030 | int |
19031 | main () | |
19032 | { | |
97bf5e38 | 19033 | struct link_map32 l; |
bec39cab AC |
19034 | ; |
19035 | return 0; | |
19036 | } | |
19037 | _ACEOF | |
19038 | rm -f conftest.$ac_objext | |
19039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19040 | (eval $ac_compile) 2>conftest.er1 | |
19041 | ac_status=$? | |
19042 | grep -v '^ *+' conftest.er1 >conftest.err | |
19043 | rm -f conftest.er1 | |
19044 | cat conftest.err >&5 | |
19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19046 | (exit $ac_status); } && | |
121ce6e5 | 19047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19049 | (eval $ac_try) 2>&5 | |
19050 | ac_status=$? | |
19051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19052 | (exit $ac_status); }; } && | |
19053 | { ac_try='test -s conftest.$ac_objext' | |
19054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19055 | (eval $ac_try) 2>&5 | |
19056 | ac_status=$? | |
19057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19058 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19059 | gdb_cv_have_struct_link_map32=yes |
19060 | else | |
bec39cab AC |
19061 | echo "$as_me: failed program was:" >&5 |
19062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19063 | ||
19064 | gdb_cv_have_struct_link_map32=no | |
97bf5e38 | 19065 | fi |
bec39cab | 19066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19067 | fi |
c906108c | 19068 | |
bec39cab AC |
19069 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
19070 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 19071 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
19072 | |
19073 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19074 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 19075 | _ACEOF |
c906108c | 19076 | |
60ca704f SE |
19077 | |
19078 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19079 | #define _SYSCALL32 1 |
bec39cab | 19080 | _ACEOF |
c906108c | 19081 | |
97bf5e38 MK |
19082 | fi |
19083 | fi | |
c906108c | 19084 | |
bc8bcb4b | 19085 | # Check if the compiler supports the `long long' type. |
c906108c | 19086 | |
bec39cab AC |
19087 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
19088 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
19089 | if test "${gdb_cv_c_long_long+set}" = set; then | |
19090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 19091 | else |
bec39cab AC |
19092 | cat >conftest.$ac_ext <<_ACEOF |
19093 | /* confdefs.h. */ | |
19094 | _ACEOF | |
19095 | cat confdefs.h >>conftest.$ac_ext | |
19096 | cat >>conftest.$ac_ext <<_ACEOF | |
19097 | /* end confdefs.h. */ | |
bc8bcb4b | 19098 | extern long long foo; |
bec39cab AC |
19099 | int |
19100 | main () | |
19101 | { | |
bc8bcb4b | 19102 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
19103 | ; |
19104 | return 0; | |
19105 | } | |
19106 | _ACEOF | |
19107 | rm -f conftest.$ac_objext | |
19108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19109 | (eval $ac_compile) 2>conftest.er1 | |
19110 | ac_status=$? | |
19111 | grep -v '^ *+' conftest.er1 >conftest.err | |
19112 | rm -f conftest.er1 | |
19113 | cat conftest.err >&5 | |
19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19115 | (exit $ac_status); } && | |
121ce6e5 | 19116 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19118 | (eval $ac_try) 2>&5 | |
19119 | ac_status=$? | |
19120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19121 | (exit $ac_status); }; } && | |
19122 | { ac_try='test -s conftest.$ac_objext' | |
19123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19124 | (eval $ac_try) 2>&5 | |
19125 | ac_status=$? | |
19126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19127 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19128 | gdb_cv_c_long_long=yes |
19129 | else | |
bec39cab AC |
19130 | echo "$as_me: failed program was:" >&5 |
19131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19132 | ||
19133 | gdb_cv_c_long_long=no | |
97bf5e38 | 19134 | fi |
bec39cab | 19135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19136 | fi |
bec39cab AC |
19137 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
19138 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 19139 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
19140 | |
19141 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19142 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 19143 | _ACEOF |
97bf5e38 MK |
19144 | |
19145 | fi | |
19146 | ||
bc8bcb4b | 19147 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 19148 | |
bec39cab AC |
19149 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
19150 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
19151 | if test "${gdb_cv_printf_has_long_long+set}" = set; then | |
19152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19153 | else |
19154 | if test "$cross_compiling" = yes; then | |
19155 | gdb_cv_printf_has_long_long=no | |
19156 | else | |
bec39cab AC |
19157 | cat >conftest.$ac_ext <<_ACEOF |
19158 | /* confdefs.h. */ | |
19159 | _ACEOF | |
19160 | cat confdefs.h >>conftest.$ac_ext | |
19161 | cat >>conftest.$ac_ext <<_ACEOF | |
19162 | /* end confdefs.h. */ | |
bc8bcb4b MK |
19163 | $ac_includes_default |
19164 | int | |
19165 | main () | |
19166 | { | |
19167 | char buf[32]; | |
97bf5e38 MK |
19168 | long long l = 0; |
19169 | l = (l << 16) + 0x0123; | |
19170 | l = (l << 16) + 0x4567; | |
19171 | l = (l << 16) + 0x89ab; | |
19172 | l = (l << 16) + 0xcdef; | |
19173 | sprintf (buf, "0x%016llx", l); | |
19174 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
19175 | ; |
19176 | return 0; | |
c906108c | 19177 | } |
bec39cab AC |
19178 | _ACEOF |
19179 | rm -f conftest$ac_exeext | |
19180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19181 | (eval $ac_link) 2>&5 | |
19182 | ac_status=$? | |
19183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19184 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19186 | (eval $ac_try) 2>&5 | |
19187 | ac_status=$? | |
19188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19189 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19190 | gdb_cv_printf_has_long_long=yes |
19191 | else | |
bec39cab AC |
19192 | echo "$as_me: program exited with status $ac_status" >&5 |
19193 | echo "$as_me: failed program was:" >&5 | |
19194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19195 | ||
19196 | ( exit $ac_status ) | |
19197 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 19198 | fi |
bec39cab | 19199 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19200 | fi |
97bf5e38 | 19201 | fi |
bc8bcb4b MK |
19202 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
19203 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 19204 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
19205 | |
19206 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19207 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 19208 | _ACEOF |
97bf5e38 MK |
19209 | |
19210 | fi | |
97bf5e38 | 19211 | |
bc8bcb4b MK |
19212 | # Check if the compiler supports the `long double' type. We can't use |
19213 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
19214 | # constants defined in <float.h> that fail on some systems, | |
19215 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 19216 | |
bec39cab AC |
19217 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
19218 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 19219 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 19220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 19221 | else |
bec39cab AC |
19222 | cat >conftest.$ac_ext <<_ACEOF |
19223 | /* confdefs.h. */ | |
19224 | _ACEOF | |
19225 | cat confdefs.h >>conftest.$ac_ext | |
19226 | cat >>conftest.$ac_ext <<_ACEOF | |
19227 | /* end confdefs.h. */ | |
97bf5e38 | 19228 | long double foo; |
bec39cab AC |
19229 | _ACEOF |
19230 | rm -f conftest.$ac_objext | |
19231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19232 | (eval $ac_compile) 2>conftest.er1 | |
19233 | ac_status=$? | |
19234 | grep -v '^ *+' conftest.er1 >conftest.err | |
19235 | rm -f conftest.er1 | |
19236 | cat conftest.err >&5 | |
19237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19238 | (exit $ac_status); } && | |
121ce6e5 | 19239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19241 | (eval $ac_try) 2>&5 | |
19242 | ac_status=$? | |
19243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19244 | (exit $ac_status); }; } && | |
19245 | { ac_try='test -s conftest.$ac_objext' | |
19246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19247 | (eval $ac_try) 2>&5 | |
19248 | ac_status=$? | |
19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19250 | (exit $ac_status); }; }; then | |
bc8bcb4b | 19251 | gdb_cv_c_long_double=yes |
97bf5e38 | 19252 | else |
bec39cab AC |
19253 | echo "$as_me: failed program was:" >&5 |
19254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19255 | ||
bc8bcb4b | 19256 | gdb_cv_c_long_double=no |
97bf5e38 | 19257 | fi |
bec39cab | 19258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19259 | fi |
bc8bcb4b MK |
19260 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
19261 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
19262 | if test $gdb_cv_c_long_double = yes; then | |
c906108c | 19263 | |
bc8bcb4b | 19264 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19265 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 19266 | _ACEOF |
97bf5e38 MK |
19267 | |
19268 | fi | |
19269 | ||
bc8bcb4b | 19270 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 19271 | |
bec39cab AC |
19272 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
19273 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
19274 | if test "${gdb_cv_printf_has_long_double+set}" = set; then | |
19275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19276 | else |
19277 | if test "$cross_compiling" = yes; then | |
19278 | gdb_cv_printf_has_long_double=no | |
19279 | else | |
bec39cab AC |
19280 | cat >conftest.$ac_ext <<_ACEOF |
19281 | /* confdefs.h. */ | |
19282 | _ACEOF | |
19283 | cat confdefs.h >>conftest.$ac_ext | |
19284 | cat >>conftest.$ac_ext <<_ACEOF | |
19285 | /* end confdefs.h. */ | |
bc8bcb4b MK |
19286 | $ac_includes_default |
19287 | int | |
19288 | main () | |
19289 | { | |
19290 | char buf[16]; | |
97bf5e38 MK |
19291 | long double f = 3.141592653; |
19292 | sprintf (buf, "%Lg", f); | |
19293 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
19294 | ; |
19295 | return 0; | |
97bf5e38 | 19296 | } |
bec39cab AC |
19297 | _ACEOF |
19298 | rm -f conftest$ac_exeext | |
19299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19300 | (eval $ac_link) 2>&5 | |
19301 | ac_status=$? | |
19302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19303 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19305 | (eval $ac_try) 2>&5 | |
19306 | ac_status=$? | |
19307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19308 | (exit $ac_status); }; }; then | |
97bf5e38 | 19309 | gdb_cv_printf_has_long_double=yes |
c906108c | 19310 | else |
bec39cab AC |
19311 | echo "$as_me: program exited with status $ac_status" >&5 |
19312 | echo "$as_me: failed program was:" >&5 | |
19313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19314 | ||
19315 | ( exit $ac_status ) | |
19316 | gdb_cv_printf_has_long_double=no | |
c906108c | 19317 | fi |
bec39cab | 19318 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 19319 | fi |
c906108c | 19320 | fi |
bc8bcb4b MK |
19321 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
19322 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 19323 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
19324 | |
19325 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19326 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 19327 | _ACEOF |
97bf5e38 MK |
19328 | |
19329 | fi | |
97bf5e38 | 19330 | |
bc8bcb4b | 19331 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 19332 | |
bec39cab AC |
19333 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
19334 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
19335 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then | |
19336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19337 | else |
19338 | if test "$cross_compiling" = yes; then | |
19339 | gdb_cv_scanf_has_long_double=no | |
19340 | else | |
bec39cab AC |
19341 | cat >conftest.$ac_ext <<_ACEOF |
19342 | /* confdefs.h. */ | |
19343 | _ACEOF | |
19344 | cat confdefs.h >>conftest.$ac_ext | |
19345 | cat >>conftest.$ac_ext <<_ACEOF | |
19346 | /* end confdefs.h. */ | |
bc8bcb4b MK |
19347 | #include <stdio.h> |
19348 | int | |
19349 | main () | |
19350 | { | |
19351 | char *buf = "3.141592653"; | |
97bf5e38 MK |
19352 | long double f = 0; |
19353 | sscanf (buf, "%Lg", &f); | |
19354 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
19355 | ; |
19356 | return 0; | |
97bf5e38 | 19357 | } |
bec39cab AC |
19358 | _ACEOF |
19359 | rm -f conftest$ac_exeext | |
19360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19361 | (eval $ac_link) 2>&5 | |
19362 | ac_status=$? | |
19363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19364 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19366 | (eval $ac_try) 2>&5 | |
19367 | ac_status=$? | |
19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19369 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19370 | gdb_cv_scanf_has_long_double=yes |
19371 | else | |
bec39cab AC |
19372 | echo "$as_me: program exited with status $ac_status" >&5 |
19373 | echo "$as_me: failed program was:" >&5 | |
19374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19375 | ||
19376 | ( exit $ac_status ) | |
19377 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 19378 | fi |
bec39cab | 19379 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19380 | fi |
c906108c | 19381 | fi |
bc8bcb4b MK |
19382 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
19383 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 19384 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
19385 | |
19386 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19387 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 19388 | _ACEOF |
97bf5e38 MK |
19389 | |
19390 | fi | |
c906108c | 19391 | |
438013df AO |
19392 | case ${host_os} in |
19393 | aix*) | |
bec39cab AC |
19394 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
19395 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
19396 | if test "${gdb_cv_bigtoc+set}" = set; then | |
19397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 19398 | else |
bec39cab | 19399 | |
438013df AO |
19400 | SAVE_LDFLAGS=$LDFLAGS |
19401 | ||
19402 | case $GCC in | |
19403 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
19404 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
19405 | esac | |
19406 | ||
19407 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
19408 | cat >conftest.$ac_ext <<_ACEOF |
19409 | /* confdefs.h. */ | |
19410 | _ACEOF | |
19411 | cat confdefs.h >>conftest.$ac_ext | |
19412 | cat >>conftest.$ac_ext <<_ACEOF | |
19413 | /* end confdefs.h. */ | |
438013df | 19414 | |
bec39cab AC |
19415 | int |
19416 | main () | |
19417 | { | |
438013df | 19418 | int i; |
bec39cab AC |
19419 | ; |
19420 | return 0; | |
19421 | } | |
19422 | _ACEOF | |
19423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19425 | (eval $ac_link) 2>conftest.er1 | |
19426 | ac_status=$? | |
19427 | grep -v '^ *+' conftest.er1 >conftest.err | |
19428 | rm -f conftest.er1 | |
19429 | cat conftest.err >&5 | |
19430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19431 | (exit $ac_status); } && | |
121ce6e5 | 19432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19434 | (eval $ac_try) 2>&5 | |
19435 | ac_status=$? | |
19436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19437 | (exit $ac_status); }; } && | |
19438 | { ac_try='test -s conftest$ac_exeext' | |
19439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19440 | (eval $ac_try) 2>&5 | |
19441 | ac_status=$? | |
19442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19443 | (exit $ac_status); }; }; then | |
438013df AO |
19444 | : |
19445 | else | |
bec39cab AC |
19446 | echo "$as_me: failed program was:" >&5 |
19447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19448 | ||
19449 | gdb_cv_bigtoc= | |
438013df | 19450 | fi |
bec39cab AC |
19451 | rm -f conftest.err conftest.$ac_objext \ |
19452 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 19453 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 19454 | |
bec39cab AC |
19455 | fi |
19456 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
19457 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
19458 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
19459 | ;; | |
19460 | esac | |
19461 | ||
c906108c SS |
19462 | |
19463 | ||
19464 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
19465 | case ${host_os} in | |
19466 | hpux*) | |
bec39cab AC |
19467 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
19468 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
19469 | if test -f /usr/include/dce/cma_config.h ; then |
19470 | if test "$GCC" = "yes" ; then | |
bec39cab AC |
19471 | echo "$as_me:$LINENO: result: yes" >&5 |
19472 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
19473 | |
19474 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19475 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 19476 | _ACEOF |
c906108c | 19477 | |
3483b318 | 19478 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
19479 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
19480 | else | |
bec39cab AC |
19481 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
19482 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
19483 | fi |
19484 | else | |
bec39cab AC |
19485 | echo "$as_me:$LINENO: result: no" >&5 |
19486 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19487 | fi |
19488 | ;; | |
19489 | solaris*) | |
d92419e5 JB |
19490 | # See if thread_db library is around for Solaris thread debugging. |
19491 | # Note that we must explicitly test for version 1 of the library | |
19492 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
19493 | # the same API. | |
bec39cab AC |
19494 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
19495 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 19496 | if test -f /usr/lib/libthread_db.so.1 ; then |
bec39cab AC |
19497 | echo "$as_me:$LINENO: result: yes" >&5 |
19498 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
19499 | |
19500 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19501 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 19502 | _ACEOF |
c906108c | 19503 | |
3483b318 | 19504 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 19505 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab AC |
19506 | |
19507 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
19508 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
19509 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
19510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19511 | else |
bec39cab | 19512 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 19513 | LIBS="-ldl $LIBS" |
bec39cab AC |
19514 | cat >conftest.$ac_ext <<_ACEOF |
19515 | /* confdefs.h. */ | |
19516 | _ACEOF | |
19517 | cat confdefs.h >>conftest.$ac_ext | |
19518 | cat >>conftest.$ac_ext <<_ACEOF | |
19519 | /* end confdefs.h. */ | |
19520 | ||
c906108c | 19521 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19522 | #ifdef __cplusplus |
19523 | extern "C" | |
19524 | #endif | |
c906108c | 19525 | /* We use char because int might match the return type of a gcc2 |
bec39cab AC |
19526 | builtin and then its argument prototype would still apply. */ |
19527 | char dlopen (); | |
19528 | int | |
19529 | main () | |
19530 | { | |
19531 | dlopen (); | |
19532 | ; | |
19533 | return 0; | |
19534 | } | |
19535 | _ACEOF | |
19536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19538 | (eval $ac_link) 2>conftest.er1 | |
19539 | ac_status=$? | |
19540 | grep -v '^ *+' conftest.er1 >conftest.err | |
19541 | rm -f conftest.er1 | |
19542 | cat conftest.err >&5 | |
19543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19544 | (exit $ac_status); } && | |
121ce6e5 | 19545 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19547 | (eval $ac_try) 2>&5 | |
19548 | ac_status=$? | |
19549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19550 | (exit $ac_status); }; } && | |
19551 | { ac_try='test -s conftest$ac_exeext' | |
19552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19553 | (eval $ac_try) 2>&5 | |
19554 | ac_status=$? | |
19555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19556 | (exit $ac_status); }; }; then | |
19557 | ac_cv_lib_dl_dlopen=yes | |
19558 | else | |
19559 | echo "$as_me: failed program was:" >&5 | |
19560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19561 | ||
19562 | ac_cv_lib_dl_dlopen=no | |
19563 | fi | |
19564 | rm -f conftest.err conftest.$ac_objext \ | |
19565 | conftest$ac_exeext conftest.$ac_ext | |
19566 | LIBS=$ac_check_lib_save_LIBS | |
19567 | fi | |
19568 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
19569 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
19570 | if test $ac_cv_lib_dl_dlopen = yes; then | |
19571 | cat >>confdefs.h <<_ACEOF | |
19572 | #define HAVE_LIBDL 1 | |
19573 | _ACEOF | |
c906108c SS |
19574 | |
19575 | LIBS="-ldl $LIBS" | |
19576 | ||
c906108c SS |
19577 | fi |
19578 | ||
19579 | if test "$GCC" = "yes" ; then | |
19580 | # The GNU linker requires the -export-dynamic option to make | |
19581 | # all symbols visible in the dynamic symbol table. | |
19582 | hold_ldflags=$LDFLAGS | |
bec39cab AC |
19583 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
19584 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 19585 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
19586 | cat >conftest.$ac_ext <<_ACEOF |
19587 | /* confdefs.h. */ | |
19588 | _ACEOF | |
19589 | cat confdefs.h >>conftest.$ac_ext | |
19590 | cat >>conftest.$ac_ext <<_ACEOF | |
19591 | /* end confdefs.h. */ | |
c906108c | 19592 | |
bec39cab AC |
19593 | int |
19594 | main () | |
19595 | { | |
c906108c | 19596 | int i; |
bec39cab AC |
19597 | ; |
19598 | return 0; | |
19599 | } | |
19600 | _ACEOF | |
19601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19603 | (eval $ac_link) 2>conftest.er1 | |
19604 | ac_status=$? | |
19605 | grep -v '^ *+' conftest.er1 >conftest.err | |
19606 | rm -f conftest.er1 | |
19607 | cat conftest.err >&5 | |
19608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19609 | (exit $ac_status); } && | |
121ce6e5 | 19610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19612 | (eval $ac_try) 2>&5 | |
19613 | ac_status=$? | |
19614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19615 | (exit $ac_status); }; } && | |
19616 | { ac_try='test -s conftest$ac_exeext' | |
19617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19618 | (eval $ac_try) 2>&5 | |
19619 | ac_status=$? | |
19620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19621 | (exit $ac_status); }; }; then | |
c906108c SS |
19622 | found=yes |
19623 | else | |
bec39cab AC |
19624 | echo "$as_me: failed program was:" >&5 |
19625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19626 | ||
19627 | found=no | |
c906108c | 19628 | fi |
bec39cab AC |
19629 | rm -f conftest.err conftest.$ac_objext \ |
19630 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 19631 | LDFLAGS=$hold_ldflags |
bec39cab AC |
19632 | echo "$as_me:$LINENO: result: $found" >&5 |
19633 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
19634 | if test $found = yes; then |
19635 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
19636 | fi | |
19637 | fi | |
19638 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
19639 | # at one point. | |
bec39cab AC |
19640 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
19641 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
19642 | if test "${gdb_cv_proc_service_is_old+set}" = set; then | |
19643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19644 | else |
bec39cab AC |
19645 | |
19646 | cat >conftest.$ac_ext <<_ACEOF | |
19647 | /* confdefs.h. */ | |
19648 | _ACEOF | |
19649 | cat confdefs.h >>conftest.$ac_ext | |
19650 | cat >>conftest.$ac_ext <<_ACEOF | |
19651 | /* end confdefs.h. */ | |
c906108c SS |
19652 | |
19653 | #include <proc_service.h> | |
19654 | ps_err_e ps_pdwrite | |
19655 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 19656 | |
bec39cab AC |
19657 | int |
19658 | main () | |
19659 | { | |
19660 | ||
19661 | ; | |
19662 | return 0; | |
19663 | } | |
19664 | _ACEOF | |
19665 | rm -f conftest.$ac_objext | |
19666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19667 | (eval $ac_compile) 2>conftest.er1 | |
19668 | ac_status=$? | |
19669 | grep -v '^ *+' conftest.er1 >conftest.err | |
19670 | rm -f conftest.er1 | |
19671 | cat conftest.err >&5 | |
19672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19673 | (exit $ac_status); } && | |
121ce6e5 | 19674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19676 | (eval $ac_try) 2>&5 | |
19677 | ac_status=$? | |
19678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19679 | (exit $ac_status); }; } && | |
19680 | { ac_try='test -s conftest.$ac_objext' | |
19681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19682 | (eval $ac_try) 2>&5 | |
19683 | ac_status=$? | |
19684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19685 | (exit $ac_status); }; }; then | |
c906108c SS |
19686 | gdb_cv_proc_service_is_old=no |
19687 | else | |
bec39cab AC |
19688 | echo "$as_me: failed program was:" >&5 |
19689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19690 | ||
19691 | gdb_cv_proc_service_is_old=yes | |
c906108c | 19692 | fi |
bec39cab AC |
19693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19694 | ||
c906108c SS |
19695 | fi |
19696 | ||
bec39cab AC |
19697 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
19698 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 19699 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
19700 | |
19701 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19702 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 19703 | _ACEOF |
c906108c SS |
19704 | |
19705 | fi | |
19706 | else | |
bec39cab AC |
19707 | echo "$as_me:$LINENO: result: no" >&5 |
19708 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19709 | fi |
19710 | ;; | |
d92419e5 | 19711 | aix*) |
bec39cab AC |
19712 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
19713 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
19714 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then | |
19715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19716 | else | |
19717 | cat >conftest.$ac_ext <<_ACEOF | |
19718 | /* confdefs.h. */ | |
19719 | _ACEOF | |
19720 | cat confdefs.h >>conftest.$ac_ext | |
19721 | cat >>conftest.$ac_ext <<_ACEOF | |
19722 | /* end confdefs.h. */ | |
d92419e5 | 19723 | #include <sys/pthdebug.h> |
bec39cab AC |
19724 | int |
19725 | main () | |
19726 | { | |
d92419e5 JB |
19727 | #ifndef PTHDB_VERSION_3 |
19728 | #error | |
19729 | #endif | |
bec39cab AC |
19730 | ; |
19731 | return 0; | |
19732 | } | |
19733 | _ACEOF | |
19734 | rm -f conftest.$ac_objext | |
19735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19736 | (eval $ac_compile) 2>conftest.er1 | |
19737 | ac_status=$? | |
19738 | grep -v '^ *+' conftest.er1 >conftest.err | |
19739 | rm -f conftest.er1 | |
19740 | cat conftest.err >&5 | |
19741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19742 | (exit $ac_status); } && | |
121ce6e5 | 19743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19745 | (eval $ac_try) 2>&5 | |
19746 | ac_status=$? | |
19747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19748 | (exit $ac_status); }; } && | |
19749 | { ac_try='test -s conftest.$ac_objext' | |
19750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19751 | (eval $ac_try) 2>&5 | |
19752 | ac_status=$? | |
19753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19754 | (exit $ac_status); }; }; then | |
d92419e5 JB |
19755 | gdb_cv_have_aix_thread_debug=yes |
19756 | else | |
bec39cab AC |
19757 | echo "$as_me: failed program was:" >&5 |
19758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19759 | ||
19760 | gdb_cv_have_aix_thread_debug=no | |
d92419e5 | 19761 | fi |
bec39cab | 19762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
19763 | fi |
19764 | ||
bec39cab AC |
19765 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
19766 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
19767 | if test $gdb_cv_have_aix_thread_debug = yes; then |
19768 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 19769 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
19770 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
19771 | fi | |
19772 | ;; | |
c906108c | 19773 | esac |
bec39cab | 19774 | |
c906108c SS |
19775 | fi |
19776 | ||
3f47be5c | 19777 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
bec39cab AC |
19778 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
19779 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
19780 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then | |
19781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19782 | else | |
19783 | cat >conftest.$ac_ext <<_ACEOF | |
19784 | /* confdefs.h. */ | |
19785 | _ACEOF | |
19786 | cat confdefs.h >>conftest.$ac_ext | |
19787 | cat >>conftest.$ac_ext <<_ACEOF | |
19788 | /* end confdefs.h. */ | |
3f47be5c | 19789 | #include <thread_db.h> |
bec39cab AC |
19790 | int |
19791 | main () | |
19792 | { | |
3f47be5c | 19793 | int i = TD_NOTALLOC; |
bec39cab AC |
19794 | ; |
19795 | return 0; | |
19796 | } | |
19797 | _ACEOF | |
19798 | rm -f conftest.$ac_objext | |
19799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19800 | (eval $ac_compile) 2>conftest.er1 | |
19801 | ac_status=$? | |
19802 | grep -v '^ *+' conftest.er1 >conftest.err | |
19803 | rm -f conftest.er1 | |
19804 | cat conftest.err >&5 | |
19805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19806 | (exit $ac_status); } && | |
121ce6e5 | 19807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19809 | (eval $ac_try) 2>&5 | |
19810 | ac_status=$? | |
19811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19812 | (exit $ac_status); }; } && | |
19813 | { ac_try='test -s conftest.$ac_objext' | |
19814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19815 | (eval $ac_try) 2>&5 | |
19816 | ac_status=$? | |
19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19818 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
19819 | gdb_cv_thread_db_h_has_td_notalloc=yes |
19820 | else | |
bec39cab AC |
19821 | echo "$as_me: failed program was:" >&5 |
19822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19823 | ||
19824 | gdb_cv_thread_db_h_has_td_notalloc=no | |
19825 | ||
3f47be5c | 19826 | fi |
bec39cab | 19827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 19828 | |
bec39cab AC |
19829 | fi |
19830 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 | |
19831 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
3f47be5c EZ |
19832 | fi |
19833 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
19834 | |
19835 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 19836 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 19837 | _ACEOF |
3f47be5c EZ |
19838 | |
19839 | fi | |
19840 | ||
b757528f | 19841 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
bec39cab AC |
19842 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
19843 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
19844 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then | |
19845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19846 | else | |
19847 | cat >conftest.$ac_ext <<_ACEOF | |
19848 | /* confdefs.h. */ | |
19849 | _ACEOF | |
19850 | cat confdefs.h >>conftest.$ac_ext | |
19851 | cat >>conftest.$ac_ext <<_ACEOF | |
19852 | /* end confdefs.h. */ | |
b757528f | 19853 | #include <sys/syscall.h> |
bec39cab AC |
19854 | int |
19855 | main () | |
19856 | { | |
b757528f | 19857 | int i = __NR_tkill; |
bec39cab AC |
19858 | ; |
19859 | return 0; | |
19860 | } | |
19861 | _ACEOF | |
19862 | rm -f conftest.$ac_objext | |
19863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19864 | (eval $ac_compile) 2>conftest.er1 | |
19865 | ac_status=$? | |
19866 | grep -v '^ *+' conftest.er1 >conftest.err | |
19867 | rm -f conftest.er1 | |
19868 | cat conftest.err >&5 | |
19869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19870 | (exit $ac_status); } && | |
121ce6e5 | 19871 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19873 | (eval $ac_try) 2>&5 | |
19874 | ac_status=$? | |
19875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19876 | (exit $ac_status); }; } && | |
19877 | { ac_try='test -s conftest.$ac_objext' | |
19878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19879 | (eval $ac_try) 2>&5 | |
19880 | ac_status=$? | |
19881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19882 | (exit $ac_status); }; }; then | |
b757528f JJ |
19883 | gdb_cv_sys_syscall_h_has_tkill=yes |
19884 | else | |
bec39cab AC |
19885 | echo "$as_me: failed program was:" >&5 |
19886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19887 | ||
19888 | gdb_cv_sys_syscall_h_has_tkill=no | |
19889 | ||
b757528f | 19890 | fi |
bec39cab | 19891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 19892 | |
bec39cab AC |
19893 | fi |
19894 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 | |
19895 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
19896 | fi |
19897 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
19898 | |
19899 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 19900 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 19901 | _ACEOF |
b757528f JJ |
19902 | |
19903 | fi | |
19904 | ||
fb40c209 | 19905 | |
bec39cab | 19906 | |
030292b7 DJ |
19907 | # Check whether --with-sysroot or --without-sysroot was given. |
19908 | if test "${with_sysroot+set}" = set; then | |
19909 | withval="$with_sysroot" | |
bec39cab | 19910 | |
030292b7 | 19911 | case ${with_sysroot} in |
715d1656 | 19912 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
19913 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
19914 | esac | |
19915 | ||
19916 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
19917 | ||
19918 | if test "x$exec_prefix" = xNONE; then | |
19919 | if test "x$prefix" = xNONE; then | |
19920 | test_prefix=/usr/local | |
19921 | else | |
19922 | test_prefix=$prefix | |
19923 | fi | |
19924 | else | |
19925 | test_prefix=$exec_prefix | |
19926 | fi | |
19927 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 AO |
19928 | "${test_prefix}"|"${test_prefix}/"*|\ |
19929 | '${exec_prefix}'|'${exec_prefix}/'*) | |
030292b7 DJ |
19930 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
19931 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
19932 | ;; | |
19933 | esac | |
19934 | ||
19935 | else | |
bec39cab | 19936 | |
030292b7 DJ |
19937 | TARGET_SYSTEM_ROOT= |
19938 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
19939 | ||
bec39cab | 19940 | fi; |
030292b7 DJ |
19941 | |
19942 | ||
19943 | ||
094a342e MK |
19944 | # Check whether --enable-werror or --disable-werror was given. |
19945 | if test "${enable_werror+set}" = set; then | |
19946 | enableval="$enable_werror" | |
19947 | case "${enableval}" in | |
19948 | yes | y) ERROR_ON_WARNING="yes" ;; | |
19949 | no | n) ERROR_ON_WARNING="no" ;; | |
19950 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
19951 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
19952 | { (exit 1); exit 1; }; } ;; | |
19953 | esac | |
19954 | fi; | |
19955 | ||
19956 | # Enable -Werror by default when using gcc | |
19957 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
19958 | ERROR_ON_WARNING=yes | |
19959 | fi | |
19960 | ||
19961 | WERROR_CFLAGS="" | |
19962 | if test "${ERROR_ON_WARNING}" = yes ; then | |
19963 | WERROR_CFLAGS="-Werror" | |
19964 | fi | |
19965 | ||
3b851bce AC |
19966 | # NOTE: Don't add -Wall or -Wunused, they both include |
19967 | # -Wunused-parameter which reports bogus warnings. | |
19968 | # NOTE: If you add to this list, remember to update | |
19969 | # gdb/doc/gdbint.texinfo. | |
1decb323 | 19970 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ |
a3b362c4 | 19971 | -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \ |
7be93b9e | 19972 | -Wunused-label -Wunused-function -Wno-pointer-sign" |
a3b362c4 JB |
19973 | |
19974 | # GCC supports -Wuninitialized only with -O or -On, n != 0. | |
ca231fcc | 19975 | if test x${CFLAGS+set} = xset; then |
a3b362c4 JB |
19976 | case "${CFLAGS}" in |
19977 | *"-O0"* ) ;; | |
19978 | *"-O"* ) | |
19979 | build_warnings="${build_warnings} -Wuninitialized" | |
19980 | ;; | |
19981 | esac | |
19982 | else | |
19983 | build_warnings="${build_warnings} -Wuninitialized" | |
19984 | fi | |
19985 | ||
d8038014 | 19986 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs |
0f0cffd2 | 19987 | # -Wunused-function -Wunused-variable -Wunused-value |
93d56215 | 19988 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual |
d8038014 AC |
19989 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes |
19990 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls | |
19991 | # -Woverloaded-virtual -Winline -Werror" | |
c906108c SS |
19992 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
19993 | if test "${enable_build_warnings+set}" = set; then | |
19994 | enableval="$enable_build_warnings" | |
1decb323 | 19995 | case "${enableval}" in |
c906108c SS |
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 | |
d4f3574e | 20004 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 20005 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 20006 | fi |
bec39cab | 20007 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce AC |
20008 | if test "${enable_gdb_build_warnings+set}" = set; then |
20009 | enableval="$enable_gdb_build_warnings" | |
20010 | case "${enableval}" in | |
20011 | yes) ;; | |
20012 | no) build_warnings="-w";; | |
20013 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20014 | build_warnings="${build_warnings} ${t}";; | |
20015 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20016 | build_warnings="${t} ${build_warnings}";; | |
20017 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20018 | esac | |
20019 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
20020 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
20021 | fi | |
bec39cab | 20022 | fi; WARN_CFLAGS="" |
c906108c SS |
20023 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
20024 | then | |
bec39cab AC |
20025 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
20026 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
20027 | # Separate out the -Werror flag as some files just cannot be |
20028 | # compiled with it enabled. | |
20029 | for w in ${build_warnings}; do | |
20030 | case $w in | |
20031 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
20032 | *) # Check that GCC accepts it | |
4536bbc6 AC |
20033 | saved_CFLAGS="$CFLAGS" |
20034 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
20035 | cat >conftest.$ac_ext <<_ACEOF |
20036 | /* confdefs.h. */ | |
20037 | _ACEOF | |
20038 | cat confdefs.h >>conftest.$ac_ext | |
20039 | cat >>conftest.$ac_ext <<_ACEOF | |
20040 | /* end confdefs.h. */ | |
4536bbc6 | 20041 | |
bec39cab AC |
20042 | int |
20043 | main () | |
20044 | { | |
4536bbc6 | 20045 | |
bec39cab AC |
20046 | ; |
20047 | return 0; | |
20048 | } | |
20049 | _ACEOF | |
20050 | rm -f conftest.$ac_objext | |
20051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20052 | (eval $ac_compile) 2>conftest.er1 | |
20053 | ac_status=$? | |
20054 | grep -v '^ *+' conftest.er1 >conftest.err | |
20055 | rm -f conftest.er1 | |
20056 | cat conftest.err >&5 | |
20057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20058 | (exit $ac_status); } && | |
121ce6e5 | 20059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20061 | (eval $ac_try) 2>&5 | |
20062 | ac_status=$? | |
20063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20064 | (exit $ac_status); }; } && | |
20065 | { ac_try='test -s conftest.$ac_objext' | |
20066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20067 | (eval $ac_try) 2>&5 | |
20068 | ac_status=$? | |
20069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20070 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
20071 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
20072 | else | |
bec39cab AC |
20073 | echo "$as_me: failed program was:" >&5 |
20074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20075 | ||
4536bbc6 | 20076 | fi |
bec39cab | 20077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 20078 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
20079 | esac |
20080 | done | |
bec39cab AC |
20081 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 |
20082 | echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 | |
c906108c SS |
20083 | fi |
20084 | ||
20085 | ||
104c1213 | 20086 | |
7a292a7a | 20087 | # In the Cygwin environment, we need some additional flags. |
bec39cab AC |
20088 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
20089 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
20090 | if test "${gdb_cv_os_cygwin+set}" = set; then | |
20091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20092 | else | |
20093 | cat >conftest.$ac_ext <<_ACEOF | |
20094 | /* confdefs.h. */ | |
20095 | _ACEOF | |
20096 | cat confdefs.h >>conftest.$ac_ext | |
20097 | cat >>conftest.$ac_ext <<_ACEOF | |
20098 | /* end confdefs.h. */ | |
7a292a7a SS |
20099 | |
20100 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
20101 | lose | |
20102 | #endif | |
bec39cab | 20103 | _ACEOF |
7a292a7a | 20104 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 20105 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
20106 | gdb_cv_os_cygwin=yes |
20107 | else | |
7a292a7a SS |
20108 | gdb_cv_os_cygwin=no |
20109 | fi | |
20110 | rm -f conftest* | |
20111 | ||
20112 | fi | |
bec39cab AC |
20113 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
20114 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 20115 | |
aff38e61 | 20116 | |
3eb25fda | 20117 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 20118 | case ${host} in |
95cbc983 AC |
20119 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
20120 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 20121 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
20122 | esac |
20123 | ||
20124 | ||
cd0fc7c3 SS |
20125 | # libreadline needs libuser32.a in a cygwin environment |
20126 | WIN32LIBS= | |
20127 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
20128 | WIN32LIBS="-luser32" |
20129 | case "${target}" in | |
20130 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
20131 | ;; | |
20132 | esac | |
cd0fc7c3 | 20133 | fi |
c906108c | 20134 | |
b4505029 MM |
20135 | # The ser-tcp.c module requires sockets. |
20136 | case ${host} in | |
20137 | *mingw32*) | |
20138 | ||
20139 | cat >>confdefs.h <<\_ACEOF | |
20140 | #define USE_WIN32API 1 | |
20141 | _ACEOF | |
20142 | ||
20143 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
20144 | ;; | |
20145 | esac | |
20146 | ||
7a292a7a | 20147 | |
121ce6e5 DJ |
20148 | # Add any host-specific objects to GDB. |
20149 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
20150 | ||
3fc11d3e JM |
20151 | LIBGUI="../libgui/src/libgui.a" |
20152 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
20153 | ||
20154 | ||
7a292a7a | 20155 | |
3fc11d3e JM |
20156 | WIN32LDAPP= |
20157 | ||
20158 | ||
20159 | ||
d91670b9 CV |
20160 | case "${host}" in |
20161 | *-*-cygwin*) | |
20162 | configdir="win" | |
20163 | ;; | |
20164 | *) | |
20165 | configdir="unix" | |
20166 | ;; | |
20167 | esac | |
3fc11d3e JM |
20168 | |
20169 | GDBTKLIBS= | |
20170 | if test "${enable_gdbtk}" = "yes"; then | |
20171 | ||
d1c3b63a KS |
20172 | # Gdbtk must have an absolute path to srcdir in order to run |
20173 | # properly when not installed. | |
20174 | here=`pwd` | |
20175 | cd ${srcdir} | |
20176 | GDBTK_SRC_DIR=`pwd` | |
20177 | cd $here | |
20178 | ||
bec39cab | 20179 | |
3fc11d3e JM |
20180 | # |
20181 | # Ok, lets find the tcl configuration | |
bec39cab | 20182 | # First, look for one uninstalled. |
3fc11d3e JM |
20183 | # the alternative search directory is invoked by --with-tclconfig |
20184 | # | |
20185 | ||
20186 | if test x"${no_tcl}" = x ; then | |
20187 | # we reset no_tcl in case something fails here | |
20188 | no_tcl=true | |
bec39cab AC |
20189 | |
20190 | # Check whether --with-tclconfig or --without-tclconfig was given. | |
3fc11d3e JM |
20191 | if test "${with_tclconfig+set}" = set; then |
20192 | withval="$with_tclconfig" | |
20193 | with_tclconfig=${withval} | |
bec39cab AC |
20194 | fi; |
20195 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
20196 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
20197 | if test "${ac_cv_c_tclconfig+set}" = set; then | |
20198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20199 | else |
bec39cab | 20200 | |
3fc11d3e JM |
20201 | |
20202 | # First check to see if --with-tclconfig was specified. | |
20203 | if test x"${with_tclconfig}" != x ; then | |
20204 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
20205 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
20206 | else | |
bec39cab AC |
20207 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
20208 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
20209 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20210 | fi |
20211 | fi | |
20212 | ||
20213 | # then check for a private Tcl installation | |
20214 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20215 | for i in \ | |
20216 | ../tcl \ | |
20217 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
20218 | ../../tcl \ | |
20219 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
20220 | ../../../tcl \ | |
20221 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
20222 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
20223 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
20224 | break | |
20225 | fi | |
20226 | done | |
20227 | fi | |
20228 | # check in a few common install locations | |
20229 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20230 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20231 | if test -f "$i/tclConfig.sh" ; then | |
20232 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
20233 | break | |
20234 | fi | |
20235 | done | |
20236 | fi | |
20237 | # check in a few other private locations | |
20238 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20239 | for i in \ | |
20240 | ${srcdir}/../tcl \ | |
20241 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
20242 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
20243 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
20244 | break | |
20245 | fi | |
20246 | done | |
20247 | fi | |
bec39cab | 20248 | |
3fc11d3e JM |
20249 | fi |
20250 | ||
20251 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20252 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
20253 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
20254 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
20255 | else |
20256 | no_tcl= | |
20257 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
bec39cab AC |
20258 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
20259 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
20260 | fi |
20261 | fi | |
20262 | ||
20263 | if test -z "${no_tcl}"; then | |
bec39cab | 20264 | |
3fc11d3e JM |
20265 | . $TCLCONFIG |
20266 | ||
3fc11d3e JM |
20267 | |
20268 | ||
20269 | ||
20270 | ||
3fc11d3e JM |
20271 | |
20272 | ||
20273 | ||
bec39cab AC |
20274 | |
20275 | ||
20276 | ||
20277 | ||
20278 | ||
20279 | ||
20280 | ||
20281 | ||
20282 | ||
20283 | ||
20284 | ||
20285 | ||
20286 | ||
20287 | ||
20288 | ||
20289 | ||
20290 | ||
20291 | ||
20292 | ||
3fc11d3e JM |
20293 | # |
20294 | # Ok, lets find the tk configuration | |
bec39cab | 20295 | # First, look for one uninstalled. |
3fc11d3e JM |
20296 | # the alternative search directory is invoked by --with-tkconfig |
20297 | # | |
20298 | ||
20299 | if test x"${no_tk}" = x ; then | |
20300 | # we reset no_tk in case something fails here | |
20301 | no_tk=true | |
bec39cab AC |
20302 | |
20303 | # Check whether --with-tkconfig or --without-tkconfig was given. | |
3fc11d3e JM |
20304 | if test "${with_tkconfig+set}" = set; then |
20305 | withval="$with_tkconfig" | |
20306 | with_tkconfig=${withval} | |
bec39cab AC |
20307 | fi; |
20308 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
20309 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
20310 | if test "${ac_cv_c_tkconfig+set}" = set; then | |
20311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20312 | else |
bec39cab | 20313 | |
3fc11d3e JM |
20314 | |
20315 | # First check to see if --with-tkconfig was specified. | |
20316 | if test x"${with_tkconfig}" != x ; then | |
20317 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
20318 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
20319 | else | |
bec39cab AC |
20320 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
20321 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
20322 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20323 | fi |
20324 | fi | |
20325 | ||
20326 | # then check for a private Tk library | |
20327 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20328 | for i in \ | |
20329 | ../tk \ | |
20330 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
20331 | ../../tk \ | |
20332 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
20333 | ../../../tk \ | |
20334 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
20335 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
20336 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
20337 | break | |
20338 | fi | |
20339 | done | |
20340 | fi | |
20341 | # check in a few common install locations | |
20342 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20343 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20344 | if test -f "$i/tkConfig.sh" ; then | |
20345 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
20346 | break | |
20347 | fi | |
20348 | done | |
20349 | fi | |
20350 | # check in a few other private locations | |
20351 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20352 | for i in \ | |
20353 | ${srcdir}/../tk \ | |
20354 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
20355 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
20356 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
20357 | break | |
20358 | fi | |
20359 | done | |
20360 | fi | |
bec39cab | 20361 | |
3fc11d3e JM |
20362 | fi |
20363 | ||
20364 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20365 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
20366 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
20367 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
20368 | else |
20369 | no_tk= | |
20370 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
bec39cab AC |
20371 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
20372 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
20373 | fi |
20374 | fi | |
20375 | ||
20376 | ||
20377 | ||
dd2504ab JM |
20378 | # now look for Tcl library stuff |
20379 | ||
d91670b9 | 20380 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
20381 | |
20382 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
20383 | ||
3fc11d3e JM |
20384 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
20385 | # point to doing Tcl. | |
20386 | if test -z "${no_tk}"; then | |
bec39cab | 20387 | |
3fc11d3e JM |
20388 | if test -f "$TKCONFIG" ; then |
20389 | . $TKCONFIG | |
20390 | fi | |
20391 | ||
3fc11d3e | 20392 | |
3fc11d3e JM |
20393 | |
20394 | ||
3fc11d3e | 20395 | |
bec39cab AC |
20396 | |
20397 | ||
20398 | ||
20399 | ||
20400 | ||
20401 | ||
20402 | ||
20403 | ||
20404 | ||
3fc11d3e JM |
20405 | # |
20406 | # Ok, lets find the tcl source trees so we can use the headers | |
20407 | # Warning: transition of version 9 to 10 will break this algorithm | |
20408 | # because 10 sorts before 9. We also look for just tcl. We have to | |
20409 | # be careful that we don't match stuff like tclX by accident. | |
20410 | # the alternative search directory is involked by --with-tclinclude | |
20411 | # | |
20412 | ||
20413 | no_tcl=true | |
bec39cab AC |
20414 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
20415 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
20416 | ||
3fc11d3e JM |
20417 | # Check whether --with-tclinclude or --without-tclinclude was given. |
20418 | if test "${with_tclinclude+set}" = set; then | |
20419 | withval="$with_tclinclude" | |
20420 | with_tclinclude=${withval} | |
bec39cab AC |
20421 | fi; |
20422 | if test "${ac_cv_c_tclh+set}" = set; then | |
20423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20424 | else |
bec39cab | 20425 | |
3fc11d3e JM |
20426 | # first check to see if --with-tclinclude was specified |
20427 | if test x"${with_tclinclude}" != x ; then | |
20428 | if test -f ${with_tclinclude}/tclInt.h ; then | |
20429 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
20430 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
20431 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
20432 | else | |
bec39cab AC |
20433 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
20434 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
20435 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20436 | fi |
20437 | fi | |
20438 | ||
20439 | # next check if it came with Tcl configuration file | |
20440 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20441 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
20442 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
20443 | fi | |
20444 | fi | |
20445 | ||
20446 | # next check in private source directory | |
20447 | # | |
20448 | # since ls returns lowest version numbers first, reverse its output | |
20449 | if test x"${ac_cv_c_tclh}" = x ; then | |
20450 | for i in \ | |
20451 | ${srcdir}/../tcl \ | |
20452 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
20453 | ${srcdir}/../../tcl \ | |
20454 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
20455 | ${srcdir}/../../../tcl \ | |
20456 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
20457 | if test -f $i/generic/tclInt.h ; then | |
20458 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
20459 | break | |
20460 | fi | |
20461 | done | |
20462 | fi | |
20463 | # finally check in a few common install locations | |
20464 | # | |
20465 | # since ls returns lowest version numbers first, reverse its output | |
20466 | if test x"${ac_cv_c_tclh}" = x ; then | |
20467 | for i in \ | |
20468 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
20469 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
20470 | /usr/local/src/tcl \ | |
20471 | /usr/local/lib/tcl \ | |
20472 | ${prefix}/include ; do | |
20473 | if test -f $i/generic/tclInt.h ; then | |
20474 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
20475 | break | |
20476 | fi | |
20477 | done | |
20478 | fi | |
20479 | # see if one is installed | |
20480 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab AC |
20481 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
20482 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 | |
20483 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
20484 | if test "${ac_cv_header_tclInt_h+set}" = set; then | |
20485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20486 | fi | |
20487 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 | |
20488 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
20489 | else | |
20490 | # Is the header compilable? | |
20491 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 | |
20492 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
20493 | cat >conftest.$ac_ext <<_ACEOF | |
20494 | /* confdefs.h. */ | |
20495 | _ACEOF | |
20496 | cat confdefs.h >>conftest.$ac_ext | |
20497 | cat >>conftest.$ac_ext <<_ACEOF | |
20498 | /* end confdefs.h. */ | |
20499 | $ac_includes_default | |
20500 | #include <tclInt.h> | |
20501 | _ACEOF | |
20502 | rm -f conftest.$ac_objext | |
20503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20504 | (eval $ac_compile) 2>conftest.er1 | |
20505 | ac_status=$? | |
20506 | grep -v '^ *+' conftest.er1 >conftest.err | |
20507 | rm -f conftest.er1 | |
20508 | cat conftest.err >&5 | |
20509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20510 | (exit $ac_status); } && | |
121ce6e5 | 20511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20513 | (eval $ac_try) 2>&5 | |
20514 | ac_status=$? | |
20515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20516 | (exit $ac_status); }; } && | |
20517 | { ac_try='test -s conftest.$ac_objext' | |
20518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20519 | (eval $ac_try) 2>&5 | |
20520 | ac_status=$? | |
20521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20522 | (exit $ac_status); }; }; then | |
20523 | ac_header_compiler=yes | |
20524 | else | |
20525 | echo "$as_me: failed program was:" >&5 | |
20526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20527 | ||
20528 | ac_header_compiler=no | |
20529 | fi | |
20530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20531 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20532 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20533 | ||
20534 | # Is the header present? | |
20535 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 | |
20536 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
20537 | cat >conftest.$ac_ext <<_ACEOF | |
20538 | /* confdefs.h. */ | |
20539 | _ACEOF | |
20540 | cat confdefs.h >>conftest.$ac_ext | |
20541 | cat >>conftest.$ac_ext <<_ACEOF | |
20542 | /* end confdefs.h. */ | |
3fc11d3e | 20543 | #include <tclInt.h> |
bec39cab AC |
20544 | _ACEOF |
20545 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20546 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20547 | ac_status=$? | |
20548 | grep -v '^ *+' conftest.er1 >conftest.err | |
20549 | rm -f conftest.er1 | |
20550 | cat conftest.err >&5 | |
20551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20552 | (exit $ac_status); } >/dev/null; then | |
20553 | if test -s conftest.err; then | |
20554 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20555 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20556 | else | |
20557 | ac_cpp_err= | |
20558 | fi | |
20559 | else | |
20560 | ac_cpp_err=yes | |
3fc11d3e | 20561 | fi |
bec39cab AC |
20562 | if test -z "$ac_cpp_err"; then |
20563 | ac_header_preproc=yes | |
20564 | else | |
20565 | echo "$as_me: failed program was:" >&5 | |
20566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20567 | ||
20568 | ac_header_preproc=no | |
3fc11d3e | 20569 | fi |
bec39cab AC |
20570 | rm -f conftest.err conftest.$ac_ext |
20571 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20572 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20573 | ||
20574 | # So? What about this header? | |
20575 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20576 | yes:no: ) | |
20577 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20578 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20579 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
20580 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
20581 | ac_header_preproc=yes | |
20582 | ;; | |
20583 | no:yes:* ) | |
20584 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
20585 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
20586 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
20587 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
20588 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
20589 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
20590 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20591 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20592 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
20593 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
20594 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
20595 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
20596 | ( | |
20597 | cat <<\_ASBOX | |
20598 | ## ------------------------------------------ ## | |
20599 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20600 | ## ------------------------------------------ ## | |
20601 | _ASBOX | |
20602 | ) | | |
20603 | sed "s/^/$as_me: WARNING: /" >&2 | |
20604 | ;; | |
20605 | esac | |
20606 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 | |
20607 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
20608 | if test "${ac_cv_header_tclInt_h+set}" = set; then | |
20609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20610 | else | |
20611 | ac_cv_header_tclInt_h=$ac_header_preproc | |
20612 | fi | |
20613 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 | |
20614 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
20615 | ||
20616 | fi | |
20617 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
20618 | ac_cv_c_tclh=installed |
20619 | else | |
bec39cab | 20620 | ac_cv_c_tclh="" |
3fc11d3e JM |
20621 | fi |
20622 | ||
bec39cab | 20623 | |
3fc11d3e JM |
20624 | fi |
20625 | ||
20626 | fi | |
20627 | ||
20628 | if test x"${ac_cv_c_tclh}" = x ; then | |
20629 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
20630 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
20631 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
20632 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20633 | fi |
20634 | if test x"${ac_cv_c_tclh}" != x ; then | |
20635 | no_tcl="" | |
20636 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
bec39cab AC |
20637 | echo "$as_me:$LINENO: result: is installed" >&5 |
20638 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
20639 | TCLHDIR="" |
20640 | else | |
bec39cab AC |
20641 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
20642 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
20643 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
20644 | TCLHDIR="-I${ac_cv_c_tclh}" | |
20645 | fi | |
20646 | fi | |
20647 | ||
20648 | ||
20649 | ||
bec39cab | 20650 | |
3fc11d3e JM |
20651 | # |
20652 | # Ok, lets find the tk source trees so we can use the headers | |
20653 | # If the directory (presumably symlink) named "tk" exists, use that one | |
20654 | # in preference to any others. Same logic is used when choosing library | |
20655 | # and again with Tcl. The search order is the best place to look first, then in | |
20656 | # decreasing significance. The loop breaks if the trigger file is found. | |
20657 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
20658 | # directory. This converts the path from a relative to an absolute, so | |
20659 | # recursive cache variables for the path will work right. We check all | |
20660 | # the possible paths in one loop rather than many seperate loops to speed | |
20661 | # things up. | |
20662 | # the alternative search directory is involked by --with-tkinclude | |
20663 | # | |
20664 | no_tk=true | |
bec39cab AC |
20665 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
20666 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
20667 | ||
3fc11d3e JM |
20668 | # Check whether --with-tkinclude or --without-tkinclude was given. |
20669 | if test "${with_tkinclude+set}" = set; then | |
20670 | withval="$with_tkinclude" | |
20671 | with_tkinclude=${withval} | |
bec39cab AC |
20672 | fi; |
20673 | if test "${ac_cv_c_tkh+set}" = set; then | |
20674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20675 | else |
bec39cab | 20676 | |
3fc11d3e JM |
20677 | # first check to see if --with-tkinclude was specified |
20678 | if test x"${with_tkinclude}" != x ; then | |
20679 | if test -f ${with_tkinclude}/tk.h ; then | |
20680 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
20681 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
20682 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
20683 | else | |
bec39cab AC |
20684 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
20685 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
20686 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20687 | fi |
20688 | fi | |
20689 | ||
20690 | # next check if it came with Tk configuration file | |
20691 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20692 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
20693 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
20694 | fi | |
20695 | fi | |
20696 | ||
20697 | # next check in private source directory | |
20698 | # | |
20699 | # since ls returns lowest version numbers first, reverse its output | |
20700 | if test x"${ac_cv_c_tkh}" = x ; then | |
20701 | for i in \ | |
20702 | ${srcdir}/../tk \ | |
20703 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
20704 | ${srcdir}/../../tk \ | |
20705 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
20706 | ${srcdir}/../../../tk \ | |
20707 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
20708 | if test -f $i/generic/tk.h ; then | |
20709 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
20710 | break | |
20711 | fi | |
20712 | done | |
20713 | fi | |
20714 | # finally check in a few common install locations | |
20715 | # | |
20716 | # since ls returns lowest version numbers first, reverse its output | |
20717 | if test x"${ac_cv_c_tkh}" = x ; then | |
20718 | for i in \ | |
20719 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
20720 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
20721 | /usr/local/src/tk \ | |
20722 | /usr/local/lib/tk \ | |
20723 | ${prefix}/include ; do | |
20724 | if test -f $i/generic/tk.h ; then | |
20725 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
20726 | break | |
20727 | fi | |
20728 | done | |
20729 | fi | |
20730 | # see if one is installed | |
20731 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab AC |
20732 | if test "${ac_cv_header_tk_h+set}" = set; then |
20733 | echo "$as_me:$LINENO: checking for tk.h" >&5 | |
20734 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
20735 | if test "${ac_cv_header_tk_h+set}" = set; then | |
20736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20737 | fi | |
20738 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 | |
20739 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
20740 | else | |
20741 | # Is the header compilable? | |
20742 | echo "$as_me:$LINENO: checking tk.h usability" >&5 | |
20743 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
20744 | cat >conftest.$ac_ext <<_ACEOF | |
20745 | /* confdefs.h. */ | |
20746 | _ACEOF | |
20747 | cat confdefs.h >>conftest.$ac_ext | |
20748 | cat >>conftest.$ac_ext <<_ACEOF | |
20749 | /* end confdefs.h. */ | |
20750 | $ac_includes_default | |
3fc11d3e | 20751 | #include <tk.h> |
bec39cab AC |
20752 | _ACEOF |
20753 | rm -f conftest.$ac_objext | |
20754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20755 | (eval $ac_compile) 2>conftest.er1 | |
20756 | ac_status=$? | |
20757 | grep -v '^ *+' conftest.er1 >conftest.err | |
20758 | rm -f conftest.er1 | |
20759 | cat conftest.err >&5 | |
20760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20761 | (exit $ac_status); } && | |
121ce6e5 | 20762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20764 | (eval $ac_try) 2>&5 | |
20765 | ac_status=$? | |
20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20767 | (exit $ac_status); }; } && | |
20768 | { ac_try='test -s conftest.$ac_objext' | |
20769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20770 | (eval $ac_try) 2>&5 | |
20771 | ac_status=$? | |
20772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20773 | (exit $ac_status); }; }; then | |
20774 | ac_header_compiler=yes | |
20775 | else | |
20776 | echo "$as_me: failed program was:" >&5 | |
20777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20778 | ||
20779 | ac_header_compiler=no | |
20780 | fi | |
20781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20782 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20783 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20784 | ||
20785 | # Is the header present? | |
20786 | echo "$as_me:$LINENO: checking tk.h presence" >&5 | |
20787 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
20788 | cat >conftest.$ac_ext <<_ACEOF | |
20789 | /* confdefs.h. */ | |
20790 | _ACEOF | |
20791 | cat confdefs.h >>conftest.$ac_ext | |
20792 | cat >>conftest.$ac_ext <<_ACEOF | |
20793 | /* end confdefs.h. */ | |
20794 | #include <tk.h> | |
20795 | _ACEOF | |
20796 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20797 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20798 | ac_status=$? | |
20799 | grep -v '^ *+' conftest.er1 >conftest.err | |
20800 | rm -f conftest.er1 | |
20801 | cat conftest.err >&5 | |
20802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20803 | (exit $ac_status); } >/dev/null; then | |
20804 | if test -s conftest.err; then | |
20805 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20806 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20807 | else | |
20808 | ac_cpp_err= | |
20809 | fi | |
20810 | else | |
20811 | ac_cpp_err=yes | |
3fc11d3e | 20812 | fi |
bec39cab AC |
20813 | if test -z "$ac_cpp_err"; then |
20814 | ac_header_preproc=yes | |
20815 | else | |
20816 | echo "$as_me: failed program was:" >&5 | |
20817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20818 | ||
20819 | ac_header_preproc=no | |
20820 | fi | |
20821 | rm -f conftest.err conftest.$ac_ext | |
20822 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20823 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20824 | ||
20825 | # So? What about this header? | |
20826 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20827 | yes:no: ) | |
20828 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20829 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20830 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
20831 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
20832 | ac_header_preproc=yes | |
20833 | ;; | |
20834 | no:yes:* ) | |
20835 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
20836 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
20837 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
20838 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
20839 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
20840 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
20841 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20842 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20843 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
20844 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
20845 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
20846 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
20847 | ( | |
20848 | cat <<\_ASBOX | |
20849 | ## ------------------------------------------ ## | |
20850 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20851 | ## ------------------------------------------ ## | |
20852 | _ASBOX | |
20853 | ) | | |
20854 | sed "s/^/$as_me: WARNING: /" >&2 | |
20855 | ;; | |
20856 | esac | |
20857 | echo "$as_me:$LINENO: checking for tk.h" >&5 | |
20858 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
20859 | if test "${ac_cv_header_tk_h+set}" = set; then | |
20860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20861 | else | |
20862 | ac_cv_header_tk_h=$ac_header_preproc | |
20863 | fi | |
20864 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 | |
20865 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
20866 | ||
3fc11d3e | 20867 | fi |
bec39cab | 20868 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
20869 | ac_cv_c_tkh=installed |
20870 | else | |
bec39cab | 20871 | ac_cv_c_tkh="" |
3fc11d3e JM |
20872 | fi |
20873 | ||
bec39cab | 20874 | |
3fc11d3e JM |
20875 | fi |
20876 | ||
20877 | fi | |
20878 | ||
20879 | if test x"${ac_cv_c_tkh}" != x ; then | |
20880 | no_tk="" | |
20881 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
bec39cab AC |
20882 | echo "$as_me:$LINENO: result: is installed" >&5 |
20883 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
20884 | TKHDIR="" |
20885 | else | |
bec39cab AC |
20886 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
20887 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
20888 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
20889 | TKHDIR="-I${ac_cv_c_tkh}" | |
20890 | fi | |
20891 | else | |
20892 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
20893 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
20894 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
20895 | no_tk=true |
20896 | fi | |
20897 | ||
20898 | ||
20899 | ||
bec39cab AC |
20900 | |
20901 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 | |
20902 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
20903 | if test x"${ac_cv_c_itclh}" = x ; then |
20904 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
20905 | if test -f $i/generic/itcl.h ; then | |
20906 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
20907 | break | |
20908 | fi | |
20909 | done | |
20910 | fi | |
20911 | if test x"${ac_cv_c_itclh}" = x ; then | |
20912 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
20913 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
20914 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
20915 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20916 | fi |
20917 | if test x"${ac_cv_c_itclh}" != x ; then | |
20918 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
20919 | fi | |
20920 | # should always be here | |
20921 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
20922 | ||
20923 | #AC_SUBST(ITCLLIB) | |
20924 | ||
bec39cab AC |
20925 | |
20926 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 | |
20927 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
20928 | if test x"${ac_cv_c_itkh}" = x ; then |
20929 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
20930 | if test -f $i/generic/itk.h ; then | |
20931 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
20932 | break | |
20933 | fi | |
20934 | done | |
20935 | fi | |
20936 | if test x"${ac_cv_c_itkh}" = x ; then | |
20937 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
20938 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
20939 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
20940 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20941 | fi |
20942 | if test x"${ac_cv_c_itkh}" != x ; then | |
20943 | ITKHDIR="-I${ac_cv_c_itkh}" | |
20944 | fi | |
20945 | # should always be here | |
20946 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
20947 | ||
20948 | #AC_SUBST(ITKLIB) | |
20949 | ||
3fc11d3e | 20950 | |
dd2504ab JM |
20951 | |
20952 | # now look for Tk library stuff | |
20953 | ||
d91670b9 | 20954 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
20955 | |
20956 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
20957 | ||
3fc11d3e JM |
20958 | # now look for Itcl library stuff |
20959 | ||
bec39cab | 20960 | |
3fc11d3e JM |
20961 | # |
20962 | # Ok, lets find the itcl configuration | |
bec39cab | 20963 | # First, look for one uninstalled. |
3fc11d3e JM |
20964 | # the alternative search directory is invoked by --with-itclconfig |
20965 | # | |
20966 | ||
20967 | if test x"${no_itcl}" = x ; then | |
20968 | # we reset no_itcl in case something fails here | |
20969 | no_itcl=true | |
bec39cab AC |
20970 | |
20971 | # Check whether --with-itclconfig or --without-itclconfig was given. | |
3fc11d3e JM |
20972 | if test "${with_itclconfig+set}" = set; then |
20973 | withval="$with_itclconfig" | |
20974 | with_itclconfig=${withval} | |
bec39cab AC |
20975 | fi; |
20976 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
20977 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
20978 | if test "${ac_cv_c_itclconfig+set}" = set; then | |
20979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20980 | else |
bec39cab | 20981 | |
3fc11d3e JM |
20982 | |
20983 | # First check to see if --with-itclconfig was specified. | |
20984 | if test x"${with_itclconfig}" != x ; then | |
20985 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
20986 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
20987 | else | |
bec39cab AC |
20988 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
20989 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
20990 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20991 | fi |
20992 | fi | |
20993 | ||
20994 | # then check for a private Itcl library | |
20995 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
20996 | for i in \ | |
20997 | ../itcl/itcl \ | |
20998 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
20999 | ../../itcl \ | |
21000 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
21001 | ../../../itcl \ | |
21002 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
21003 | if test -f "$i/itclConfig.sh" ; then | |
21004 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
21005 | break | |
21006 | fi | |
21007 | done | |
21008 | fi | |
21009 | # check in a few common install locations | |
21010 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
21011 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21012 | if test -f "$i/itclConfig.sh" ; then | |
21013 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
21014 | break | |
21015 | fi | |
21016 | done | |
21017 | fi | |
21018 | # check in a few other private locations | |
21019 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
21020 | for i in \ | |
21021 | ${srcdir}/../itcl/itcl \ | |
21022 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
21023 | if test -f "$i/itclConfig.sh" ; then | |
21024 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
21025 | break | |
21026 | fi | |
21027 | done | |
21028 | fi | |
bec39cab | 21029 | |
3fc11d3e JM |
21030 | fi |
21031 | ||
21032 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
21033 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
21034 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
21035 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
21036 | else |
21037 | no_itcl= | |
21038 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
bec39cab AC |
21039 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
21040 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
21041 | fi |
21042 | fi | |
21043 | ||
21044 | if test -z "${no_itcl}"; then | |
bec39cab | 21045 | |
3fc11d3e JM |
21046 | if test -f "$ITCLCONFIG" ; then |
21047 | . $ITCLCONFIG | |
21048 | fi | |
21049 | ||
3fc11d3e | 21050 | |
3fc11d3e JM |
21051 | |
21052 | ||
bec39cab AC |
21053 | |
21054 | ||
21055 | ||
21056 | ||
21057 | ||
21058 | ||
21059 | ||
3fc11d3e JM |
21060 | |
21061 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 21062 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
21063 | fi |
21064 | ||
bec39cab | 21065 | |
3fc11d3e | 21066 | # now look for Itk library stuff |
bec39cab | 21067 | |
3fc11d3e JM |
21068 | # |
21069 | # Ok, lets find the itk configuration | |
bec39cab | 21070 | # First, look for one uninstalled. |
3fc11d3e JM |
21071 | # the alternative search directory is invoked by --with-itkconfig |
21072 | # | |
21073 | ||
21074 | if test x"${no_itk}" = x ; then | |
21075 | # we reset no_itk in case something fails here | |
21076 | no_itk=true | |
bec39cab AC |
21077 | |
21078 | # Check whether --with-itkconfig or --without-itkconfig was given. | |
3fc11d3e JM |
21079 | if test "${with_itkconfig+set}" = set; then |
21080 | withval="$with_itkconfig" | |
21081 | with_itkconfig=${withval} | |
bec39cab AC |
21082 | fi; |
21083 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
21084 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
21085 | if test "${ac_cv_c_itkconfig+set}" = set; then | |
21086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21087 | else |
bec39cab | 21088 | |
3fc11d3e JM |
21089 | |
21090 | # First check to see if --with-itkconfig was specified. | |
21091 | if test x"${with_itkconfig}" != x ; then | |
21092 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
21093 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
21094 | else | |
bec39cab AC |
21095 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
21096 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
21097 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21098 | fi |
21099 | fi | |
21100 | ||
21101 | # then check for a private Itk library | |
21102 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21103 | for i in \ | |
21104 | ../itcl/itk \ | |
21105 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
21106 | ../../itk \ | |
21107 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
21108 | ../../../itk \ | |
21109 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
21110 | if test -f "$i/itkConfig.sh" ; then | |
21111 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
21112 | break | |
21113 | fi | |
21114 | done | |
21115 | fi | |
21116 | # check in a few common install locations | |
21117 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21118 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21119 | if test -f "$i/itkConfig.sh" ; then | |
21120 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
21121 | break | |
21122 | fi | |
21123 | done | |
21124 | fi | |
21125 | # check in a few other private locations | |
21126 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21127 | for i in \ | |
21128 | ${srcdir}/../itcl/itk \ | |
21129 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
21130 | if test -f "$i/itkConfig.sh" ; then | |
21131 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
21132 | break | |
21133 | fi | |
21134 | done | |
21135 | fi | |
bec39cab | 21136 | |
3fc11d3e JM |
21137 | fi |
21138 | ||
21139 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21140 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
21141 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
21142 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
21143 | else |
21144 | no_itk= | |
21145 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
bec39cab AC |
21146 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
21147 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
21148 | fi |
21149 | fi | |
21150 | ||
21151 | ||
bec39cab AC |
21152 | if test -z "${no_itcl}"; then |
21153 | ||
21154 | if test -f "$ITKCONFIG" ; then | |
21155 | . $ITKCONFIG | |
21156 | fi | |
21157 | ||
21158 | ||
21159 | ||
21160 | ||
21161 | ||
21162 | ||
3fc11d3e | 21163 | |
3fc11d3e | 21164 | |
3fc11d3e JM |
21165 | |
21166 | ||
3fc11d3e JM |
21167 | |
21168 | ||
3fc11d3e | 21169 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 21170 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
21171 | fi |
21172 | ||
4226a5a5 | 21173 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
21174 | |
21175 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 21176 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
21177 | # Yes, the ordering seems wrong here. But it isn't. |
21178 | # TK_LIBS is the list of libraries that need to be linked | |
21179 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
21180 | # were in LIBS then any link tests after this point would | |
21181 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
21182 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
21183 | |
21184 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
21185 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
21186 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
21187 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
21188 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
21189 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
21190 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
21191 | |
21192 | if test x$gdb_cv_os_cygwin = xyes; then | |
21193 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
21194 | WIN32LDAPP="-Wl,--subsystem,console" | |
21195 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
21196 | fi | |
21197 | fi | |
21198 | fi | |
ffc6a242 | 21199 | |
bec39cab AC |
21200 | |
21201 | ||
21202 | subdirs="$subdirs gdbtk" | |
3ace7edb | 21203 | |
3fc11d3e JM |
21204 | fi |
21205 | ||
21206 | ||
21207 | ||
21208 | ||
21209 | ||
21210 | ||
21211 | ||
21212 | ||
21213 | ||
21214 | ||
21215 | ||
21216 | ||
21217 | ||
dd2504ab | 21218 | |
bec39cab AC |
21219 | echo "$as_me:$LINENO: checking for X" >&5 |
21220 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21221 | ||
121ce6e5 | 21222 | ac_path_x_has_been_run=yes |
c906108c SS |
21223 | |
21224 | # Check whether --with-x or --without-x was given. | |
21225 | if test "${with_x+set}" = set; then | |
21226 | withval="$with_x" | |
c906108c | 21227 | |
bec39cab | 21228 | fi; |
c906108c SS |
21229 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21230 | if test "x$with_x" = xno; then | |
21231 | # The user explicitly disabled X. | |
21232 | have_x=disabled | |
21233 | else | |
21234 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21235 | # Both variables are already set. | |
21236 | have_x=yes | |
21237 | else | |
bec39cab AC |
21238 | if test "${ac_cv_have_x+set}" = set; then |
21239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
21240 | else |
21241 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab AC |
21242 | ac_x_includes=no ac_x_libraries=no |
21243 | rm -fr conftest.dir | |
21244 | if mkdir conftest.dir; then | |
21245 | cd conftest.dir | |
c906108c | 21246 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 21247 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
21248 | acfindx: |
21249 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 21250 | _ACEOF |
c906108c SS |
21251 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
21252 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
21253 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
21254 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
21255 | for ac_extension in a so sl; do | |
21256 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
21257 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21258 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
21259 | fi |
21260 | done | |
21261 | # Screen out bogus values from the imake configuration. They are | |
21262 | # bogus both because they are the default anyway, and because | |
21263 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 21264 | case $ac_im_incroot in |
c906108c | 21265 | /usr/include) ;; |
bec39cab | 21266 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 21267 | esac |
bec39cab | 21268 | case $ac_im_usrlibdir in |
c906108c | 21269 | /usr/lib | /lib) ;; |
bec39cab | 21270 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
21271 | esac |
21272 | fi | |
21273 | cd .. | |
bec39cab | 21274 | rm -fr conftest.dir |
c906108c SS |
21275 | fi |
21276 | ||
bec39cab AC |
21277 | # Standard set of common directories for X headers. |
21278 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21279 | ac_x_header_dirs=' | |
21280 | /usr/X11/include | |
21281 | /usr/X11R6/include | |
21282 | /usr/X11R5/include | |
21283 | /usr/X11R4/include | |
21284 | ||
21285 | /usr/include/X11 | |
21286 | /usr/include/X11R6 | |
21287 | /usr/include/X11R5 | |
21288 | /usr/include/X11R4 | |
21289 | ||
21290 | /usr/local/X11/include | |
21291 | /usr/local/X11R6/include | |
21292 | /usr/local/X11R5/include | |
21293 | /usr/local/X11R4/include | |
21294 | ||
21295 | /usr/local/include/X11 | |
21296 | /usr/local/include/X11R6 | |
21297 | /usr/local/include/X11R5 | |
21298 | /usr/local/include/X11R4 | |
21299 | ||
21300 | /usr/X386/include | |
21301 | /usr/x386/include | |
21302 | /usr/XFree86/include/X11 | |
21303 | ||
21304 | /usr/include | |
21305 | /usr/local/include | |
21306 | /usr/unsupported/include | |
21307 | /usr/athena/include | |
21308 | /usr/local/x11r5/include | |
21309 | /usr/lpp/Xamples/include | |
21310 | ||
21311 | /usr/openwin/include | |
21312 | /usr/openwin/share/include' | |
21313 | ||
21314 | if test "$ac_x_includes" = no; then | |
121ce6e5 | 21315 | # Guess where to find include files, by looking for a specified header file. |
c906108c | 21316 | # First, try using that file with no special directory specified. |
bec39cab AC |
21317 | cat >conftest.$ac_ext <<_ACEOF |
21318 | /* confdefs.h. */ | |
21319 | _ACEOF | |
21320 | cat confdefs.h >>conftest.$ac_ext | |
21321 | cat >>conftest.$ac_ext <<_ACEOF | |
21322 | /* end confdefs.h. */ | |
121ce6e5 | 21323 | #include <X11/Xlib.h> |
bec39cab AC |
21324 | _ACEOF |
21325 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21326 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21327 | ac_status=$? | |
21328 | grep -v '^ *+' conftest.er1 >conftest.err | |
21329 | rm -f conftest.er1 | |
21330 | cat conftest.err >&5 | |
21331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21332 | (exit $ac_status); } >/dev/null; then | |
21333 | if test -s conftest.err; then | |
21334 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21335 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21336 | else | |
21337 | ac_cpp_err= | |
21338 | fi | |
21339 | else | |
21340 | ac_cpp_err=yes | |
21341 | fi | |
21342 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
21343 | # We can compile using X headers with no special include directory. |
21344 | ac_x_includes= | |
21345 | else | |
bec39cab AC |
21346 | echo "$as_me: failed program was:" >&5 |
21347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21348 | ||
21349 | for ac_dir in $ac_x_header_dirs; do | |
121ce6e5 | 21350 | if test -r "$ac_dir/X11/Xlib.h"; then |
bec39cab AC |
21351 | ac_x_includes=$ac_dir |
21352 | break | |
21353 | fi | |
21354 | done | |
c906108c | 21355 | fi |
bec39cab AC |
21356 | rm -f conftest.err conftest.$ac_ext |
21357 | fi # $ac_x_includes = no | |
c906108c | 21358 | |
bec39cab | 21359 | if test "$ac_x_libraries" = no; then |
c906108c | 21360 | # Check for the libraries. |
c906108c SS |
21361 | # See if we find them without any special options. |
21362 | # Don't add to $LIBS permanently. | |
bec39cab | 21363 | ac_save_LIBS=$LIBS |
121ce6e5 | 21364 | LIBS="-lX11 $LIBS" |
bec39cab AC |
21365 | cat >conftest.$ac_ext <<_ACEOF |
21366 | /* confdefs.h. */ | |
21367 | _ACEOF | |
21368 | cat confdefs.h >>conftest.$ac_ext | |
21369 | cat >>conftest.$ac_ext <<_ACEOF | |
21370 | /* end confdefs.h. */ | |
121ce6e5 | 21371 | #include <X11/Xlib.h> |
bec39cab AC |
21372 | int |
21373 | main () | |
21374 | { | |
121ce6e5 | 21375 | XrmInitialize () |
bec39cab AC |
21376 | ; |
21377 | return 0; | |
21378 | } | |
21379 | _ACEOF | |
21380 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21382 | (eval $ac_link) 2>conftest.er1 | |
21383 | ac_status=$? | |
21384 | grep -v '^ *+' conftest.er1 >conftest.err | |
21385 | rm -f conftest.er1 | |
21386 | cat conftest.err >&5 | |
21387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21388 | (exit $ac_status); } && | |
121ce6e5 | 21389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21391 | (eval $ac_try) 2>&5 | |
21392 | ac_status=$? | |
21393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21394 | (exit $ac_status); }; } && | |
21395 | { ac_try='test -s conftest$ac_exeext' | |
21396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21397 | (eval $ac_try) 2>&5 | |
21398 | ac_status=$? | |
21399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21400 | (exit $ac_status); }; }; then | |
21401 | LIBS=$ac_save_LIBS | |
c906108c SS |
21402 | # We can link X programs with no special library path. |
21403 | ac_x_libraries= | |
21404 | else | |
bec39cab AC |
21405 | echo "$as_me: failed program was:" >&5 |
21406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21407 | ||
21408 | LIBS=$ac_save_LIBS | |
21409 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
c906108c | 21410 | do |
bec39cab | 21411 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 21412 | for ac_extension in a so sl; do |
121ce6e5 | 21413 | if test -r $ac_dir/libX11.$ac_extension; then |
c906108c SS |
21414 | ac_x_libraries=$ac_dir |
21415 | break 2 | |
21416 | fi | |
21417 | done | |
21418 | done | |
21419 | fi | |
bec39cab AC |
21420 | rm -f conftest.err conftest.$ac_objext \ |
21421 | conftest$ac_exeext conftest.$ac_ext | |
21422 | fi # $ac_x_libraries = no | |
c906108c | 21423 | |
bec39cab | 21424 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
21425 | # Didn't find X anywhere. Cache the known absence of X. |
21426 | ac_cv_have_x="have_x=no" | |
21427 | else | |
21428 | # Record where we found X for the cache. | |
21429 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 21430 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
21431 | fi |
21432 | fi | |
bec39cab | 21433 | |
c906108c SS |
21434 | fi |
21435 | eval "$ac_cv_have_x" | |
21436 | fi # $with_x != no | |
21437 | ||
21438 | if test "$have_x" != yes; then | |
bec39cab AC |
21439 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21440 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
21441 | no_x=yes |
21442 | else | |
21443 | # If each of the values was on the command line, it overrides each guess. | |
21444 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21445 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21446 | # Update the cache value to reflect the command line values. | |
21447 | ac_cv_have_x="have_x=yes \ | |
21448 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
121ce6e5 DJ |
21449 | # It might be that x_includes is empty (headers are found in the |
21450 | # standard search path. Then output the corresponding message | |
21451 | ac_out_x_includes=$x_includes | |
21452 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
21453 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
21454 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
c906108c SS |
21455 | fi |
21456 | ||
21457 | ||
9cc52bde MK |
21458 | # Check whether we should enable the TUI, but only do so if we really |
21459 | # can. | |
21460 | if test x"$enable_tui" = xyes; then | |
21461 | if test -d $srcdir/tui; then | |
21462 | if test "$ac_cv_search_waddstr" != no; then | |
21463 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
21464 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
21465 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
21466 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
21467 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
21468 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
21469 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
21470 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
21471 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
21472 | else | |
bec39cab AC |
21473 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
21474 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
21475 | fi |
21476 | fi | |
21477 | fi | |
21478 | ||
bec39cab AC |
21479 | # Unlike the sim directory, whether a simulator is linked is controlled by |
21480 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
21481 | # This code just checks for a few cases where we'd like to ignore those |
21482 | # definitions, even when they're present in the '.mt' file. These cases | |
21483 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 21484 | # not part of the source tree. |
7a292a7a SS |
21485 | # |
21486 | # Check whether --enable-sim or --disable-sim was given. | |
21487 | if test "${enable_sim+set}" = set; then | |
21488 | enableval="$enable_sim" | |
21489 | echo "enable_sim = $enable_sim"; | |
21490 | echo "enableval = ${enableval}"; | |
21491 | case "${enableval}" in | |
21492 | yes) ignore_sim=false ;; | |
21493 | no) ignore_sim=true ;; | |
21494 | *) ignore_sim=false ;; | |
21495 | esac | |
21496 | else | |
21497 | ignore_sim=false | |
bec39cab | 21498 | fi; |
7a292a7a SS |
21499 | |
21500 | if test ! -d "${srcdir}/../sim"; then | |
21501 | ignore_sim=true | |
21502 | fi | |
21503 | ||
21504 | if test "${ignore_sim}" = "true"; then | |
21505 | IGNORE_SIM="SIM=" | |
21506 | IGNORE_SIM_OBS="SIM_OBS=" | |
21507 | else | |
21508 | IGNORE_SIM="" | |
21509 | IGNORE_SIM_OBS="" | |
60ca704f SE |
21510 | |
21511 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 21512 | #define WITH_SIM 1 |
bec39cab | 21513 | _ACEOF |
7a292a7a SS |
21514 | |
21515 | fi | |
21516 | ||
21517 | ||
21518 | ||
c906108c SS |
21519 | |
21520 | ||
21521 | ||
21522 | ||
21523 | ||
21524 | ||
dfcd3bfb | 21525 | |
e56ac5c3 AC |
21526 | |
21527 | ||
b3a90332 AC |
21528 | |
21529 | ||
c35f4ffc | 21530 | # List of host floatformats. |
bec39cab AC |
21531 | |
21532 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21533 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 21534 | _ACEOF |
c35f4ffc | 21535 | |
bec39cab AC |
21536 | |
21537 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21538 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
21539 | _ACEOF |
21540 | ||
c35f4ffc | 21541 | |
bec39cab | 21542 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 21543 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 21544 | _ACEOF |
c35f4ffc AC |
21545 | |
21546 | ||
c906108c SS |
21547 | # target_subdir is used by the testsuite to find the target libraries. |
21548 | target_subdir= | |
21549 | if test "${host}" != "${target}"; then | |
21550 | target_subdir="${target_alias}/" | |
21551 | fi | |
21552 | ||
21553 | ||
21554 | frags= | |
0dad8a66 MK |
21555 | if test "${target}" = "${host}"; then |
21556 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh | |
21557 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
21558 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
21559 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
21560 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
21561 | fi |
21562 | frags="$frags $host_makefile_frag" | |
21563 | else | |
21564 | host_makefile_frag=/dev/null | |
c906108c | 21565 | fi |
c906108c SS |
21566 | |
21567 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
21568 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
21569 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
21570 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
21571 | { (exit 1); exit 1; }; } | |
c906108c SS |
21572 | fi |
21573 | frags="$frags $target_makefile_frag" | |
21574 | ||
21575 | ||
21576 | ||
21577 | ||
21578 | ||
21579 | hostfile=`sed -n ' | |
21580 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
21581 | ' ${host_makefile_frag}` | |
21582 | ||
21583 | targetfile=`sed -n ' | |
2c0fc042 | 21584 | s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
21585 | ' ${target_makefile_frag}` |
21586 | ||
c906108c | 21587 | if test "${target}" = "${host}"; then |
a85f51e7 DJ |
21588 | # We pick this up from the host configuration file (.mh) because we |
21589 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
21590 | nativefile=`sed -n ' |
21591 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
21592 | ' ${host_makefile_frag}` | |
c906108c SS |
21593 | fi |
21594 | ||
21595 | ||
b00a8037 | 21596 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
21597 | |
21598 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 21599 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 21600 | _ACEOF |
b00a8037 DJ |
21601 | |
21602 | fi | |
21603 | ||
8dcde887 MK |
21604 | # Enable multi-ice-gdb-server. |
21605 | # Check whether --enable-multi-ice or --disable-multi-ice was given. | |
21606 | if test "${enable_multi_ice+set}" = set; then | |
21607 | enableval="$enable_multi_ice" | |
21608 | case $enableval in | |
21609 | yes | no) | |
21610 | ;; | |
bec39cab AC |
21611 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
21612 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
21613 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 21614 | esac |
bec39cab | 21615 | fi; |
8dcde887 | 21616 | if test "x$enable_multi_ice" = xyes; then |
bec39cab AC |
21617 | |
21618 | ||
21619 | subdirs="$subdirs multi-ice" | |
3ace7edb | 21620 | |
a85f51e7 DJ |
21621 | fi |
21622 | ||
8dcde887 MK |
21623 | # We only build gdbserver automatically if host and target are the same. |
21624 | if test "x$target" = "x$host"; then | |
bec39cab AC |
21625 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
21626 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 21627 | if test "x$build_gdbserver" = xyes; then |
bec39cab AC |
21628 | echo "$as_me:$LINENO: result: yes" >&5 |
21629 | echo "${ECHO_T}yes" >&6 | |
21630 | ||
21631 | ||
21632 | subdirs="$subdirs gdbserver" | |
3ace7edb | 21633 | |
8dcde887 | 21634 | else |
bec39cab AC |
21635 | echo "$as_me:$LINENO: result: no" >&5 |
21636 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
21637 | fi |
21638 | fi | |
21639 | ||
2c0fc042 AC |
21640 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
21641 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
21642 | # to an empty version. | |
c906108c SS |
21643 | |
21644 | files= | |
21645 | links= | |
5a2402b8 | 21646 | |
c906108c | 21647 | rm -f xm.h |
5a2402b8 | 21648 | xm_h="" |
c906108c | 21649 | if test "${hostfile}" != ""; then |
5a2402b8 | 21650 | xm_h=xm.h |
0f475e27 AC |
21651 | case "${hostfile}" in |
21652 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
21653 | * ) GDB_XM_FILE="${hostfile}" | |
21654 | esac | |
5a2402b8 AC |
21655 | files="${files} ${GDB_XM_FILE}" |
21656 | links="${links} xm.h" | |
60ca704f SE |
21657 | |
21658 | cat >>confdefs.h <<_ACEOF | |
b78960be | 21659 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 21660 | _ACEOF |
5a2402b8 | 21661 | |
c906108c | 21662 | fi |
5a2402b8 AC |
21663 | |
21664 | ||
c906108c | 21665 | rm -f tm.h |
5a2402b8 | 21666 | tm_h="" |
c906108c | 21667 | if test "${targetfile}" != ""; then |
5a2402b8 | 21668 | tm_h=tm.h |
0f475e27 | 21669 | case "${targetfile}" in |
b8c4aece | 21670 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
21671 | * ) GDB_TM_FILE="${targetfile}" |
21672 | esac | |
5a2402b8 AC |
21673 | files="${files} ${GDB_TM_FILE}" |
21674 | links="${links} tm.h" | |
60ca704f SE |
21675 | |
21676 | cat >>confdefs.h <<_ACEOF | |
b78960be | 21677 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 21678 | _ACEOF |
5a2402b8 | 21679 | |
c906108c | 21680 | fi |
5a2402b8 AC |
21681 | |
21682 | ||
c906108c | 21683 | rm -f nm.h |
5a2402b8 | 21684 | nm_h="" |
c906108c | 21685 | if test "${nativefile}" != ""; then |
5a2402b8 | 21686 | nm_h=nm.h |
0f475e27 AC |
21687 | case "${nativefile}" in |
21688 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
21689 | * ) GDB_NM_FILE="${nativefile}" | |
21690 | esac | |
5a2402b8 AC |
21691 | files="${files} ${GDB_NM_FILE}" |
21692 | links="${links} nm.h" | |
60ca704f SE |
21693 | |
21694 | cat >>confdefs.h <<_ACEOF | |
b78960be | 21695 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 21696 | _ACEOF |
5a2402b8 | 21697 | |
c906108c | 21698 | fi |
5a2402b8 AC |
21699 | |
21700 | ||
bec39cab AC |
21701 | ac_sources="$files" |
21702 | ac_dests="$links" | |
21703 | while test -n "$ac_sources"; do | |
21704 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
21705 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
21706 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
21707 | done | |
21708 | ac_config_links="$ac_config_links $ac_config_links_1" | |
c906108c SS |
21709 | |
21710 | ||
c906108c SS |
21711 | |
21712 | ||
c906108c | 21713 | |
c906108c | 21714 | |
bec39cab AC |
21715 | cat >>confdefs.h <<\_ACEOF |
21716 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
21717 | _ACEOF | |
c906108c | 21718 | |
234b45d4 | 21719 | |
234b45d4 KB |
21720 | |
21721 | ||
21722 | ||
bec39cab | 21723 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 KB |
21724 | if test "${with_libiconv_prefix+set}" = set; then |
21725 | withval="$with_libiconv_prefix" | |
bec39cab | 21726 | |
234b45d4 KB |
21727 | for dir in `echo "$withval" | tr : ' '`; do |
21728 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
21729 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
21730 | done | |
234b45d4 | 21731 | |
bec39cab | 21732 | fi; |
234b45d4 | 21733 | |
bec39cab AC |
21734 | echo "$as_me:$LINENO: checking for iconv" >&5 |
21735 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
21736 | if test "${am_cv_func_iconv+set}" = set; then | |
21737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 21738 | else |
bec39cab | 21739 | |
234b45d4 KB |
21740 | am_cv_func_iconv="no, consider installing GNU libiconv" |
21741 | am_cv_lib_iconv=no | |
bec39cab AC |
21742 | cat >conftest.$ac_ext <<_ACEOF |
21743 | /* confdefs.h. */ | |
21744 | _ACEOF | |
21745 | cat confdefs.h >>conftest.$ac_ext | |
21746 | cat >>conftest.$ac_ext <<_ACEOF | |
21747 | /* end confdefs.h. */ | |
234b45d4 KB |
21748 | #include <stdlib.h> |
21749 | #include <iconv.h> | |
bec39cab AC |
21750 | int |
21751 | main () | |
21752 | { | |
234b45d4 KB |
21753 | iconv_t cd = iconv_open("",""); |
21754 | iconv(cd,NULL,NULL,NULL,NULL); | |
21755 | iconv_close(cd); | |
bec39cab AC |
21756 | ; |
21757 | return 0; | |
21758 | } | |
21759 | _ACEOF | |
21760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21762 | (eval $ac_link) 2>conftest.er1 | |
21763 | ac_status=$? | |
21764 | grep -v '^ *+' conftest.er1 >conftest.err | |
21765 | rm -f conftest.er1 | |
21766 | cat conftest.err >&5 | |
21767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21768 | (exit $ac_status); } && | |
121ce6e5 | 21769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21771 | (eval $ac_try) 2>&5 | |
21772 | ac_status=$? | |
21773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21774 | (exit $ac_status); }; } && | |
21775 | { ac_try='test -s conftest$ac_exeext' | |
21776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21777 | (eval $ac_try) 2>&5 | |
21778 | ac_status=$? | |
21779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21780 | (exit $ac_status); }; }; then | |
234b45d4 KB |
21781 | am_cv_func_iconv=yes |
21782 | else | |
bec39cab AC |
21783 | echo "$as_me: failed program was:" >&5 |
21784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21785 | ||
234b45d4 | 21786 | fi |
bec39cab AC |
21787 | rm -f conftest.err conftest.$ac_objext \ |
21788 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
21789 | if test "$am_cv_func_iconv" != yes; then |
21790 | am_save_LIBS="$LIBS" | |
21791 | LIBS="$LIBS -liconv" | |
bec39cab AC |
21792 | cat >conftest.$ac_ext <<_ACEOF |
21793 | /* confdefs.h. */ | |
21794 | _ACEOF | |
21795 | cat confdefs.h >>conftest.$ac_ext | |
21796 | cat >>conftest.$ac_ext <<_ACEOF | |
21797 | /* end confdefs.h. */ | |
234b45d4 KB |
21798 | #include <stdlib.h> |
21799 | #include <iconv.h> | |
bec39cab AC |
21800 | int |
21801 | main () | |
21802 | { | |
234b45d4 KB |
21803 | iconv_t cd = iconv_open("",""); |
21804 | iconv(cd,NULL,NULL,NULL,NULL); | |
21805 | iconv_close(cd); | |
bec39cab AC |
21806 | ; |
21807 | return 0; | |
21808 | } | |
21809 | _ACEOF | |
21810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21812 | (eval $ac_link) 2>conftest.er1 | |
21813 | ac_status=$? | |
21814 | grep -v '^ *+' conftest.er1 >conftest.err | |
21815 | rm -f conftest.er1 | |
21816 | cat conftest.err >&5 | |
21817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21818 | (exit $ac_status); } && | |
121ce6e5 | 21819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21821 | (eval $ac_try) 2>&5 | |
21822 | ac_status=$? | |
21823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21824 | (exit $ac_status); }; } && | |
21825 | { ac_try='test -s conftest$ac_exeext' | |
21826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21827 | (eval $ac_try) 2>&5 | |
21828 | ac_status=$? | |
21829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21830 | (exit $ac_status); }; }; then | |
234b45d4 KB |
21831 | am_cv_lib_iconv=yes |
21832 | am_cv_func_iconv=yes | |
21833 | else | |
bec39cab AC |
21834 | echo "$as_me: failed program was:" >&5 |
21835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21836 | ||
234b45d4 | 21837 | fi |
bec39cab AC |
21838 | rm -f conftest.err conftest.$ac_objext \ |
21839 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
21840 | LIBS="$am_save_LIBS" |
21841 | fi | |
bec39cab AC |
21842 | |
21843 | fi | |
21844 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
21845 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
21846 | if test "$am_cv_func_iconv" = yes; then | |
21847 | ||
21848 | cat >>confdefs.h <<\_ACEOF | |
21849 | #define HAVE_ICONV 1 | |
21850 | _ACEOF | |
21851 | ||
21852 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 | |
21853 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
21854 | if test "${am_cv_proto_iconv+set}" = set; then | |
21855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21856 | else | |
21857 | ||
21858 | cat >conftest.$ac_ext <<_ACEOF | |
21859 | /* confdefs.h. */ | |
21860 | _ACEOF | |
21861 | cat confdefs.h >>conftest.$ac_ext | |
21862 | cat >>conftest.$ac_ext <<_ACEOF | |
21863 | /* end confdefs.h. */ | |
21864 | ||
21865 | #include <stdlib.h> | |
21866 | #include <iconv.h> | |
21867 | extern | |
21868 | #ifdef __cplusplus | |
21869 | "C" | |
21870 | #endif | |
21871 | #if defined(__STDC__) || defined(__cplusplus) | |
21872 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
21873 | #else | |
21874 | size_t iconv(); | |
21875 | #endif | |
21876 | ||
21877 | int | |
21878 | main () | |
21879 | { | |
21880 | ||
21881 | ; | |
21882 | return 0; | |
21883 | } | |
21884 | _ACEOF | |
21885 | rm -f conftest.$ac_objext | |
21886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21887 | (eval $ac_compile) 2>conftest.er1 | |
21888 | ac_status=$? | |
21889 | grep -v '^ *+' conftest.er1 >conftest.err | |
21890 | rm -f conftest.er1 | |
21891 | cat conftest.err >&5 | |
21892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21893 | (exit $ac_status); } && | |
121ce6e5 | 21894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21896 | (eval $ac_try) 2>&5 | |
21897 | ac_status=$? | |
21898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21899 | (exit $ac_status); }; } && | |
21900 | { ac_try='test -s conftest.$ac_objext' | |
21901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21902 | (eval $ac_try) 2>&5 | |
21903 | ac_status=$? | |
21904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21905 | (exit $ac_status); }; }; then | |
21906 | am_cv_proto_iconv_arg1="" | |
21907 | else | |
21908 | echo "$as_me: failed program was:" >&5 | |
21909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21910 | ||
21911 | am_cv_proto_iconv_arg1="const" | |
21912 | fi | |
21913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21914 | 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);" | |
21915 | fi | |
21916 | ||
21917 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
21918 | echo "$as_me:$LINENO: result: ${ac_t:- | |
21919 | }$am_cv_proto_iconv" >&5 | |
21920 | echo "${ECHO_T}${ac_t:- | |
21921 | }$am_cv_proto_iconv" >&6 | |
21922 | ||
21923 | cat >>confdefs.h <<_ACEOF | |
21924 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
21925 | _ACEOF | |
21926 | ||
21927 | fi | |
21928 | LIBICONV= | |
21929 | if test "$am_cv_lib_iconv" = yes; then | |
21930 | LIBICONV="-liconv" | |
21931 | fi | |
21932 | ||
21933 | ||
21934 | ||
21935 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" | |
21936 | ac_config_commands="$ac_config_commands default" | |
21937 | cat >confcache <<\_ACEOF | |
21938 | # This file is a shell script that caches the results of configure | |
21939 | # tests run on this system so they can be shared between configure | |
21940 | # scripts and configure runs, see configure's option --config-cache. | |
21941 | # It is not useful on other systems. If it contains results you don't | |
21942 | # want to keep, you may remove or edit it. | |
21943 | # | |
21944 | # config.status only pays attention to the cache file if you give it | |
21945 | # the --recheck option to rerun configure. | |
21946 | # | |
21947 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21948 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21949 | # following values. | |
21950 | ||
21951 | _ACEOF | |
21952 | ||
21953 | # The following way of writing the cache mishandles newlines in values, | |
21954 | # but we know of no workaround that is simple, portable, and efficient. | |
21955 | # So, don't put newlines in cache variables' values. | |
21956 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21957 | # and sets the high bit in the cache file unless we assign to the vars. | |
21958 | { | |
21959 | (set) 2>&1 | | |
21960 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21961 | *ac_space=\ *) | |
21962 | # `set' does not quote correctly, so add quotes (double-quote | |
21963 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21964 | sed -n \ | |
21965 | "s/'/'\\\\''/g; | |
21966 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21967 | ;; | |
21968 | *) | |
21969 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21970 | sed -n \ | |
21971 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
21972 | ;; | |
21973 | esac; | |
21974 | } | | |
21975 | sed ' | |
21976 | t clear | |
21977 | : clear | |
21978 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21979 | t end | |
21980 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21981 | : end' >>confcache | |
21982 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21983 | if test -w $cache_file; then | |
21984 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21985 | cat confcache >$cache_file | |
21986 | else | |
21987 | echo "not updating unwritable cache $cache_file" | |
21988 | fi | |
21989 | fi | |
21990 | rm -f confcache | |
21991 | ||
21992 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21993 | # Let make expand exec_prefix. | |
21994 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21995 | ||
21996 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
21997 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21998 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21999 | # (actually we leave an empty line to preserve line numbers). | |
22000 | if test "x$srcdir" = x.; then | |
22001 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
22002 | s/:*\$(srcdir):*/:/; | |
22003 | s/:*\${srcdir}:*/:/; | |
22004 | s/:*@srcdir@:*/:/; | |
22005 | s/^\([^=]*=[ ]*\):*/\1/; | |
22006 | s/:*$//; | |
22007 | s/^[^=]*=[ ]*$//; | |
22008 | }' | |
22009 | fi | |
22010 | ||
22011 | DEFS=-DHAVE_CONFIG_H | |
22012 | ||
22013 | ac_libobjs= | |
22014 | ac_ltlibobjs= | |
22015 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
22016 | # 1. Remove the extension, and $U if already installed. | |
22017 | ac_i=`echo "$ac_i" | | |
22018 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
22019 | # 2. Add them. | |
22020 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
22021 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
22022 | done | |
22023 | LIBOBJS=$ac_libobjs | |
22024 | ||
22025 | LTLIBOBJS=$ac_ltlibobjs | |
22026 | ||
22027 | ||
85981d60 AC |
22028 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22029 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
22030 | Usually this means the macro was only invoked conditionally." >&5 | |
22031 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
22032 | Usually this means the macro was only invoked conditionally." >&2;} | |
22033 | { (exit 1); exit 1; }; } | |
22034 | fi | |
bec39cab AC |
22035 | |
22036 | : ${CONFIG_STATUS=./config.status} | |
22037 | ac_clean_files_save=$ac_clean_files | |
22038 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
22039 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
22040 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
22041 | cat >$CONFIG_STATUS <<_ACEOF | |
22042 | #! $SHELL | |
22043 | # Generated by $as_me. | |
22044 | # Run this file to recreate the current configuration. | |
22045 | # Compiler output produced by configure, useful for debugging | |
22046 | # configure, is in config.log if it exists. | |
22047 | ||
22048 | debug=false | |
22049 | ac_cs_recheck=false | |
22050 | ac_cs_silent=false | |
22051 | SHELL=\${CONFIG_SHELL-$SHELL} | |
22052 | _ACEOF | |
22053 | ||
22054 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22055 | ## --------------------- ## | |
22056 | ## M4sh Initialization. ## | |
22057 | ## --------------------- ## | |
22058 | ||
22059 | # Be Bourne compatible | |
22060 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
22061 | emulate sh | |
22062 | NULLCMD=: | |
22063 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
22064 | # is contrary to our usage. Disable this feature. | |
22065 | alias -g '${1+"$@"}'='"$@"' | |
22066 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
22067 | set -o posix | |
22068 | fi | |
22069 | DUALCASE=1; export DUALCASE # for MKS sh | |
22070 | ||
22071 | # Support unset when possible. | |
22072 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
22073 | as_unset=unset | |
22074 | else | |
22075 | as_unset=false | |
22076 | fi | |
22077 | ||
22078 | ||
22079 | # Work around bugs in pre-3.0 UWIN ksh. | |
22080 | $as_unset ENV MAIL MAILPATH | |
22081 | PS1='$ ' | |
22082 | PS2='> ' | |
22083 | PS4='+ ' | |
22084 | ||
22085 | # NLS nuisances. | |
22086 | for as_var in \ | |
22087 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
22088 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
22089 | LC_TELEPHONE LC_TIME | |
22090 | do | |
22091 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
22092 | eval $as_var=C; export $as_var | |
22093 | else | |
22094 | $as_unset $as_var | |
22095 | fi | |
22096 | done | |
22097 | ||
22098 | # Required to use basename. | |
22099 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
22100 | as_expr=expr | |
22101 | else | |
22102 | as_expr=false | |
22103 | fi | |
22104 | ||
22105 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
22106 | as_basename=basename | |
22107 | else | |
22108 | as_basename=false | |
22109 | fi | |
22110 | ||
22111 | ||
22112 | # Name of the executable. | |
22113 | as_me=`$as_basename "$0" || | |
22114 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
22115 | X"$0" : 'X\(//\)$' \| \ | |
22116 | X"$0" : 'X\(/\)$' \| \ | |
22117 | . : '\(.\)' 2>/dev/null || | |
22118 | echo X/"$0" | | |
22119 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
22120 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
22121 | /^X\/\(\/\).*/{ s//\1/; q; } | |
22122 | s/.*/./; q'` | |
22123 | ||
22124 | ||
22125 | # PATH needs CR, and LINENO needs CR and PATH. | |
22126 | # Avoid depending upon Character Ranges. | |
22127 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
22128 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
22129 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
22130 | as_cr_digits='0123456789' | |
22131 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
22132 | ||
22133 | # The user is always right. | |
22134 | if test "${PATH_SEPARATOR+set}" != set; then | |
22135 | echo "#! /bin/sh" >conf$$.sh | |
22136 | echo "exit 0" >>conf$$.sh | |
22137 | chmod +x conf$$.sh | |
22138 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
22139 | PATH_SEPARATOR=';' | |
22140 | else | |
22141 | PATH_SEPARATOR=: | |
22142 | fi | |
22143 | rm -f conf$$.sh | |
22144 | fi | |
22145 | ||
22146 | ||
22147 | as_lineno_1=$LINENO | |
22148 | as_lineno_2=$LINENO | |
22149 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
22150 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
22151 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
22152 | # Find who we are. Look in the path if we contain no path at all | |
22153 | # relative or not. | |
22154 | case $0 in | |
22155 | *[\\/]* ) as_myself=$0 ;; | |
22156 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22157 | for as_dir in $PATH | |
22158 | do | |
22159 | IFS=$as_save_IFS | |
22160 | test -z "$as_dir" && as_dir=. | |
22161 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
22162 | done | |
22163 | ||
22164 | ;; | |
22165 | esac | |
22166 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
22167 | # in which case we are not to be found in the path. | |
22168 | if test "x$as_myself" = x; then | |
22169 | as_myself=$0 | |
22170 | fi | |
22171 | if test ! -f "$as_myself"; then | |
22172 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
22173 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
22174 | { (exit 1); exit 1; }; } | |
22175 | fi | |
22176 | case $CONFIG_SHELL in | |
22177 | '') | |
22178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22179 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
22180 | do | |
22181 | IFS=$as_save_IFS | |
22182 | test -z "$as_dir" && as_dir=. | |
22183 | for as_base in sh bash ksh sh5; do | |
22184 | case $as_dir in | |
22185 | /*) | |
22186 | if ("$as_dir/$as_base" -c ' | |
22187 | as_lineno_1=$LINENO | |
22188 | as_lineno_2=$LINENO | |
22189 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
22190 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
22191 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
22192 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
22193 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
22194 | CONFIG_SHELL=$as_dir/$as_base | |
22195 | export CONFIG_SHELL | |
22196 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
22197 | fi;; | |
22198 | esac | |
22199 | done | |
22200 | done | |
22201 | ;; | |
22202 | esac | |
22203 | ||
22204 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
22205 | # uniformly replaced by the line number. The first 'sed' inserts a | |
22206 | # line-number line before each line; the second 'sed' does the real | |
22207 | # work. The second script uses 'N' to pair each line-number line | |
22208 | # with the numbered line, and appends trailing '-' during | |
22209 | # substitution so that $LINENO is not a special case at line end. | |
22210 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
22211 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
22212 | sed '=' <$as_myself | | |
22213 | sed ' | |
22214 | N | |
22215 | s,$,-, | |
22216 | : loop | |
22217 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
22218 | t loop | |
22219 | s,-$,, | |
22220 | s,^['$as_cr_digits']*\n,, | |
22221 | ' >$as_me.lineno && | |
22222 | chmod +x $as_me.lineno || | |
22223 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
22224 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
22225 | { (exit 1); exit 1; }; } | |
22226 | ||
22227 | # Don't try to exec as it changes $[0], causing all sort of problems | |
22228 | # (the dirname of $[0] is not the place where we might find the | |
22229 | # original and so on. Autoconf is especially sensible to this). | |
22230 | . ./$as_me.lineno | |
22231 | # Exit status is that of the last command. | |
22232 | exit | |
22233 | } | |
22234 | ||
22235 | ||
22236 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
22237 | *c*,-n*) ECHO_N= ECHO_C=' | |
22238 | ' ECHO_T=' ' ;; | |
22239 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
22240 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
22241 | esac | |
22242 | ||
22243 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
22244 | as_expr=expr | |
22245 | else | |
22246 | as_expr=false | |
22247 | fi | |
22248 | ||
22249 | rm -f conf$$ conf$$.exe conf$$.file | |
22250 | echo >conf$$.file | |
22251 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
22252 | # We could just check for DJGPP; but this test a) works b) is more generic | |
22253 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
22254 | if test -f conf$$.exe; then | |
22255 | # Don't use ln at all; we don't have any links | |
22256 | as_ln_s='cp -p' | |
22257 | else | |
22258 | as_ln_s='ln -s' | |
22259 | fi | |
22260 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
22261 | as_ln_s=ln | |
22262 | else | |
22263 | as_ln_s='cp -p' | |
22264 | fi | |
22265 | rm -f conf$$ conf$$.exe conf$$.file | |
22266 | ||
22267 | if mkdir -p . 2>/dev/null; then | |
22268 | as_mkdir_p=: | |
22269 | else | |
22270 | test -d ./-p && rmdir ./-p | |
22271 | as_mkdir_p=false | |
22272 | fi | |
22273 | ||
22274 | as_executable_p="test -f" | |
22275 | ||
22276 | # Sed expression to map a string onto a valid CPP name. | |
22277 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22278 | ||
22279 | # Sed expression to map a string onto a valid variable name. | |
22280 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22281 | ||
22282 | ||
22283 | # IFS | |
22284 | # We need space, tab and new line, in precisely that order. | |
22285 | as_nl=' | |
22286 | ' | |
22287 | IFS=" $as_nl" | |
22288 | ||
22289 | # CDPATH. | |
22290 | $as_unset CDPATH | |
22291 | ||
22292 | exec 6>&1 | |
22293 | ||
22294 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
22295 | # report actual input values of CONFIG_FILES etc. instead of their | |
22296 | # values after options handling. Logging --version etc. is OK. | |
22297 | exec 5>>config.log | |
22298 | { | |
22299 | echo | |
22300 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22301 | ## Running $as_me. ## | |
22302 | _ASBOX | |
22303 | } >&5 | |
22304 | cat >&5 <<_CSEOF | |
22305 | ||
22306 | This file was extended by $as_me, which was | |
22307 | generated by GNU Autoconf 2.59. Invocation command line was | |
22308 | ||
22309 | CONFIG_FILES = $CONFIG_FILES | |
22310 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22311 | CONFIG_LINKS = $CONFIG_LINKS | |
22312 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22313 | $ $0 $@ | |
22314 | ||
22315 | _CSEOF | |
22316 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
22317 | echo >&5 | |
22318 | _ACEOF | |
22319 | ||
22320 | # Files that config.status was made for. | |
22321 | if test -n "$ac_config_files"; then | |
22322 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
22323 | fi | |
22324 | ||
22325 | if test -n "$ac_config_headers"; then | |
22326 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
22327 | fi | |
22328 | ||
22329 | if test -n "$ac_config_links"; then | |
22330 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
234b45d4 KB |
22331 | fi |
22332 | ||
bec39cab AC |
22333 | if test -n "$ac_config_commands"; then |
22334 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
22335 | fi | |
234b45d4 | 22336 | |
bec39cab | 22337 | cat >>$CONFIG_STATUS <<\_ACEOF |
234b45d4 | 22338 | |
bec39cab AC |
22339 | ac_cs_usage="\ |
22340 | \`$as_me' instantiates files from templates according to the | |
22341 | current configuration. | |
234b45d4 | 22342 | |
bec39cab | 22343 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 22344 | |
bec39cab AC |
22345 | -h, --help print this help, then exit |
22346 | -V, --version print version number, then exit | |
22347 | -q, --quiet do not print progress messages | |
22348 | -d, --debug don't remove temporary files | |
22349 | --recheck update $as_me by reconfiguring in the same conditions | |
22350 | --file=FILE[:TEMPLATE] | |
22351 | instantiate the configuration file FILE | |
22352 | --header=FILE[:TEMPLATE] | |
22353 | instantiate the configuration header FILE | |
234b45d4 | 22354 | |
bec39cab AC |
22355 | Configuration files: |
22356 | $config_files | |
234b45d4 | 22357 | |
bec39cab AC |
22358 | Configuration headers: |
22359 | $config_headers | |
234b45d4 | 22360 | |
bec39cab AC |
22361 | Configuration links: |
22362 | $config_links | |
234b45d4 | 22363 | |
bec39cab AC |
22364 | Configuration commands: |
22365 | $config_commands | |
22366 | ||
22367 | Report bugs to <bug-autoconf@gnu.org>." | |
22368 | _ACEOF | |
22369 | ||
22370 | cat >>$CONFIG_STATUS <<_ACEOF | |
22371 | ac_cs_version="\\ | |
22372 | config.status | |
22373 | configured by $0, generated by GNU Autoconf 2.59, | |
22374 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
22375 | ||
22376 | Copyright (C) 2003 Free Software Foundation, Inc. | |
22377 | This config.status script is free software; the Free Software Foundation | |
22378 | gives unlimited permission to copy, distribute and modify it." | |
22379 | srcdir=$srcdir | |
22380 | INSTALL="$INSTALL" | |
22381 | _ACEOF | |
22382 | ||
22383 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22384 | # If no file are specified by the user, then we need to provide default | |
22385 | # value. By we need to know if files were specified by the user. | |
22386 | ac_need_defaults=: | |
22387 | while test $# != 0 | |
22388 | do | |
22389 | case $1 in | |
22390 | --*=*) | |
22391 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
22392 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
22393 | ac_shift=: | |
c906108c | 22394 | ;; |
bec39cab AC |
22395 | -*) |
22396 | ac_option=$1 | |
22397 | ac_optarg=$2 | |
22398 | ac_shift=shift | |
c906108c | 22399 | ;; |
bec39cab AC |
22400 | *) # This is not an option, so the user has probably given explicit |
22401 | # arguments. | |
22402 | ac_option=$1 | |
22403 | ac_need_defaults=false;; | |
22404 | esac | |
c906108c | 22405 | |
bec39cab AC |
22406 | case $ac_option in |
22407 | # Handling of the options. | |
22408 | _ACEOF | |
22409 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22410 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22411 | ac_cs_recheck=: ;; | |
22412 | --version | --vers* | -V ) | |
22413 | echo "$ac_cs_version"; exit 0 ;; | |
22414 | --he | --h) | |
22415 | # Conflict between --help and --header | |
22416 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
22417 | Try \`$0 --help' for more information." >&5 | |
22418 | echo "$as_me: error: ambiguous option: $1 | |
22419 | Try \`$0 --help' for more information." >&2;} | |
22420 | { (exit 1); exit 1; }; };; | |
22421 | --help | --hel | -h ) | |
22422 | echo "$ac_cs_usage"; exit 0 ;; | |
22423 | --debug | --d* | -d ) | |
22424 | debug=: ;; | |
22425 | --file | --fil | --fi | --f ) | |
22426 | $ac_shift | |
22427 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
22428 | ac_need_defaults=false;; | |
22429 | --header | --heade | --head | --hea ) | |
22430 | $ac_shift | |
22431 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
22432 | ac_need_defaults=false;; | |
22433 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22434 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22435 | ac_cs_silent=: ;; | |
c906108c | 22436 | |
bec39cab AC |
22437 | # This is an error. |
22438 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
22439 | Try \`$0 --help' for more information." >&5 | |
22440 | echo "$as_me: error: unrecognized option: $1 | |
22441 | Try \`$0 --help' for more information." >&2;} | |
22442 | { (exit 1); exit 1; }; } ;; | |
c906108c | 22443 | |
bec39cab | 22444 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 22445 | |
bec39cab AC |
22446 | esac |
22447 | shift | |
22448 | done | |
c906108c | 22449 | |
bec39cab | 22450 | ac_configure_extra_args= |
c906108c | 22451 | |
bec39cab AC |
22452 | if $ac_cs_silent; then |
22453 | exec 6>/dev/null | |
22454 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22455 | fi | |
c906108c | 22456 | |
bec39cab AC |
22457 | _ACEOF |
22458 | cat >>$CONFIG_STATUS <<_ACEOF | |
22459 | if \$ac_cs_recheck; then | |
22460 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
22461 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22462 | fi | |
22463 | ||
22464 | _ACEOF | |
22465 | ||
22466 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 22467 | # |
bec39cab | 22468 | # INIT-COMMANDS section. |
c906108c | 22469 | # |
c906108c | 22470 | |
bec39cab AC |
22471 | |
22472 | gdb_host_cpu=$gdb_host_cpu | |
22473 | gdb_target_cpu=$gdb_target_cpu | |
22474 | nativefile=$nativefile | |
22475 | ||
22476 | ||
22477 | _ACEOF | |
22478 | ||
22479 | ||
22480 | ||
22481 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22482 | for ac_config_target in $ac_config_targets | |
c906108c | 22483 | do |
bec39cab AC |
22484 | case "$ac_config_target" in |
22485 | # Handling of arguments. | |
22486 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22487 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
22488 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
22489 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
22490 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
22491 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
22492 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
22493 | { (exit 1); exit 1; }; };; | |
c906108c SS |
22494 | esac |
22495 | done | |
22496 | ||
bec39cab AC |
22497 | # If the user did not use the arguments to specify the items to instantiate, |
22498 | # then the envvar interface is used. Set only those that are not. | |
22499 | # We use the long form for the default assignment because of an extremely | |
22500 | # bizarre bug on SunOS 4.1.3. | |
22501 | if $ac_need_defaults; then | |
22502 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22503 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22504 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
22505 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22506 | fi | |
22507 | ||
22508 | # Have a temporary directory for convenience. Make it in the build tree | |
22509 | # simply because there is no reason to put it here, and in addition, | |
22510 | # creating and moving files from /tmp can sometimes cause problems. | |
22511 | # Create a temporary directory, and hook for its removal unless debugging. | |
22512 | $debug || | |
22513 | { | |
22514 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
22515 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
22516 | } | |
c906108c | 22517 | |
bec39cab | 22518 | # Create a (secure) tmp directory for tmp files. |
c906108c | 22519 | |
bec39cab AC |
22520 | { |
22521 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
22522 | test -n "$tmp" && test -d "$tmp" | |
22523 | } || | |
22524 | { | |
22525 | tmp=./confstat$$-$RANDOM | |
22526 | (umask 077 && mkdir $tmp) | |
22527 | } || | |
22528 | { | |
22529 | echo "$me: cannot create a temporary directory in ." >&2 | |
22530 | { (exit 1); exit 1; } | |
22531 | } | |
22532 | ||
22533 | _ACEOF | |
22534 | ||
22535 | cat >>$CONFIG_STATUS <<_ACEOF | |
22536 | ||
22537 | # | |
22538 | # CONFIG_FILES section. | |
22539 | # | |
22540 | ||
22541 | # No need to generate the scripts if there are no CONFIG_FILES. | |
22542 | # This happens for instance when ./config.status config.h | |
22543 | if test -n "\$CONFIG_FILES"; then | |
22544 | # Protect against being on the right side of a sed subst in config.status. | |
22545 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
22546 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
22547 | s,@SHELL@,$SHELL,;t t | |
22548 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
22549 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
22550 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
22551 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
22552 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
22553 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
22554 | s,@exec_prefix@,$exec_prefix,;t t | |
22555 | s,@prefix@,$prefix,;t t | |
22556 | s,@program_transform_name@,$program_transform_name,;t t | |
22557 | s,@bindir@,$bindir,;t t | |
22558 | s,@sbindir@,$sbindir,;t t | |
22559 | s,@libexecdir@,$libexecdir,;t t | |
22560 | s,@datadir@,$datadir,;t t | |
22561 | s,@sysconfdir@,$sysconfdir,;t t | |
22562 | s,@sharedstatedir@,$sharedstatedir,;t t | |
22563 | s,@localstatedir@,$localstatedir,;t t | |
22564 | s,@libdir@,$libdir,;t t | |
22565 | s,@includedir@,$includedir,;t t | |
22566 | s,@oldincludedir@,$oldincludedir,;t t | |
22567 | s,@infodir@,$infodir,;t t | |
22568 | s,@mandir@,$mandir,;t t | |
22569 | s,@build_alias@,$build_alias,;t t | |
22570 | s,@host_alias@,$host_alias,;t t | |
22571 | s,@target_alias@,$target_alias,;t t | |
22572 | s,@DEFS@,$DEFS,;t t | |
22573 | s,@ECHO_C@,$ECHO_C,;t t | |
22574 | s,@ECHO_N@,$ECHO_N,;t t | |
22575 | s,@ECHO_T@,$ECHO_T,;t t | |
22576 | s,@LIBS@,$LIBS,;t t | |
22577 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
22578 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
22579 | s,@MAINT@,$MAINT,;t t | |
22580 | s,@CC@,$CC,;t t | |
22581 | s,@CFLAGS@,$CFLAGS,;t t | |
22582 | s,@LDFLAGS@,$LDFLAGS,;t t | |
22583 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
22584 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
22585 | s,@EXEEXT@,$EXEEXT,;t t | |
22586 | s,@OBJEXT@,$OBJEXT,;t t | |
22587 | s,@CPP@,$CPP,;t t | |
22588 | s,@EGREP@,$EGREP,;t t | |
22589 | s,@build@,$build,;t t | |
22590 | s,@build_cpu@,$build_cpu,;t t | |
22591 | s,@build_vendor@,$build_vendor,;t t | |
22592 | s,@build_os@,$build_os,;t t | |
22593 | s,@host@,$host,;t t | |
22594 | s,@host_cpu@,$host_cpu,;t t | |
22595 | s,@host_vendor@,$host_vendor,;t t | |
22596 | s,@host_os@,$host_os,;t t | |
22597 | s,@target@,$target,;t t | |
22598 | s,@target_cpu@,$target_cpu,;t t | |
22599 | s,@target_vendor@,$target_vendor,;t t | |
22600 | s,@target_os@,$target_os,;t t | |
c21a4eee | 22601 | s,@SET_MAKE@,$SET_MAKE,;t t |
bec39cab AC |
22602 | s,@RANLIB@,$RANLIB,;t t |
22603 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
bec39cab AC |
22604 | s,@ALLOCA@,$ALLOCA,;t t |
22605 | s,@USE_NLS@,$USE_NLS,;t t | |
22606 | s,@MSGFMT@,$MSGFMT,;t t | |
22607 | s,@GMSGFMT@,$GMSGFMT,;t t | |
22608 | s,@XGETTEXT@,$XGETTEXT,;t t | |
22609 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
22610 | s,@CATALOGS@,$CATALOGS,;t t | |
22611 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
22612 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
22613 | s,@GMOFILES@,$GMOFILES,;t t | |
22614 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
22615 | s,@INTLDEPS@,$INTLDEPS,;t t | |
22616 | s,@INTLLIBS@,$INTLLIBS,;t t | |
22617 | s,@INTLOBJS@,$INTLOBJS,;t t | |
22618 | s,@POFILES@,$POFILES,;t t | |
22619 | s,@POSUB@,$POSUB,;t t | |
22620 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
22621 | s,@GT_NO@,$GT_NO,;t t | |
22622 | s,@GT_YES@,$GT_YES,;t t | |
22623 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
22624 | s,@l@,$l,;t t | |
22625 | s,@localedir@,$localedir,;t t | |
22626 | s,@PACKAGE@,$PACKAGE,;t t | |
22627 | s,@subdirs@,$subdirs,;t t | |
22628 | s,@AWK@,$AWK,;t t | |
22629 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
22630 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22631 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
22632 | s,@LN_S@,$LN_S,;t t | |
22633 | s,@YACC@,$YACC,;t t | |
22634 | s,@AR@,$AR,;t t | |
22635 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
22636 | s,@DLLTOOL@,$DLLTOOL,;t t | |
22637 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
22638 | s,@WINDRES@,$WINDRES,;t t | |
22639 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
22640 | s,@MIG@,$MIG,;t t | |
22641 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
22642 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t | |
22643 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
22644 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
22645 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
22646 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
22647 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
22648 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
22649 | s,@LIBGUI@,$LIBGUI,;t t | |
22650 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
22651 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
22652 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
22653 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
22654 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
22655 | s,@TCL_CC@,$TCL_CC,;t t | |
22656 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
22657 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
22658 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
22659 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
22660 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
22661 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
22662 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
22663 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
22664 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
22665 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
22666 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
22667 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
22668 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
22669 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
22670 | s,@TK_VERSION@,$TK_VERSION,;t t | |
22671 | s,@TK_DEFS@,$TK_DEFS,;t t | |
22672 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
22673 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
22674 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
22675 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
22676 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
22677 | s,@TCLHDIR@,$TCLHDIR,;t t | |
22678 | s,@TKHDIR@,$TKHDIR,;t t | |
22679 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
22680 | s,@ITKHDIR@,$ITKHDIR,;t t | |
22681 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
22682 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
22683 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
22684 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
22685 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
22686 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
22687 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
22688 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
22689 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
22690 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
22691 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
22692 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
22693 | s,@X_LIBS@,$X_LIBS,;t t | |
22694 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
22695 | s,@TK_DEPS@,$TK_DEPS,;t t | |
22696 | s,@ITCLLIB@,$ITCLLIB,;t t | |
22697 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
22698 | s,@ITKLIB@,$ITKLIB,;t t | |
22699 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
22700 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
22701 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
22702 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
22703 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t | |
22704 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t | |
22705 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t | |
22706 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
22707 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
22708 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
22709 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
22710 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
22711 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
22712 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
22713 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
22714 | s,@target_subdir@,$target_subdir,;t t | |
22715 | s,@frags@,$frags,;t t | |
22716 | s,@xm_h@,$xm_h,;t t | |
22717 | s,@tm_h@,$tm_h,;t t | |
22718 | s,@nm_h@,$nm_h,;t t | |
22719 | s,@LIBICONV@,$LIBICONV,;t t | |
22720 | s,@LIBOBJS@,$LIBOBJS,;t t | |
22721 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
c906108c | 22722 | /@host_makefile_frag@/r $host_makefile_frag |
bec39cab | 22723 | s,@host_makefile_frag@,,;t t |
c906108c | 22724 | /@target_makefile_frag@/r $target_makefile_frag |
bec39cab | 22725 | s,@target_makefile_frag@,,;t t |
c906108c | 22726 | CEOF |
bec39cab AC |
22727 | |
22728 | _ACEOF | |
22729 | ||
22730 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22731 | # Split the substitutions into bite-sized pieces for seds with | |
22732 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22733 | ac_max_sed_lines=48 | |
22734 | ac_sed_frag=1 # Number of current file. | |
22735 | ac_beg=1 # First line for current file. | |
22736 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22737 | ac_more_lines=: | |
22738 | ac_sed_cmds= | |
22739 | while $ac_more_lines; do | |
22740 | if test $ac_beg -gt 1; then | |
22741 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22742 | else | |
22743 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22744 | fi | |
22745 | if test ! -s $tmp/subs.frag; then | |
22746 | ac_more_lines=false | |
c906108c | 22747 | else |
bec39cab AC |
22748 | # The purpose of the label and of the branching condition is to |
22749 | # speed up the sed processing (if there are no `@' at all, there | |
22750 | # is no need to browse any of the substitutions). | |
22751 | # These are the two extra sed commands mentioned above. | |
22752 | (echo ':t | |
22753 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22754 | if test -z "$ac_sed_cmds"; then | |
22755 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
22756 | else | |
22757 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
22758 | fi | |
22759 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22760 | ac_beg=$ac_end | |
22761 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
c906108c | 22762 | fi |
bec39cab AC |
22763 | done |
22764 | if test -z "$ac_sed_cmds"; then | |
22765 | ac_sed_cmds=cat | |
c906108c | 22766 | fi |
bec39cab | 22767 | fi # test -n "$CONFIG_FILES" |
c906108c | 22768 | |
bec39cab AC |
22769 | _ACEOF |
22770 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22771 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c906108c | 22772 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
bec39cab AC |
22773 | case $ac_file in |
22774 | - | *:- | *:-:* ) # input from stdin | |
22775 | cat >$tmp/stdin | |
22776 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22777 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22778 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22779 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22780 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
22781 | esac |
22782 | ||
bec39cab AC |
22783 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
22784 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22785 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22786 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22787 | X"$ac_file" : 'X\(//\)$' \| \ | |
22788 | X"$ac_file" : 'X\(/\)' \| \ | |
22789 | . : '\(.\)' 2>/dev/null || | |
22790 | echo X"$ac_file" | | |
22791 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22792 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22793 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22794 | /^X\(\/\).*/{ s//\1/; q; } | |
22795 | s/.*/./; q'` | |
22796 | { if $as_mkdir_p; then | |
22797 | mkdir -p "$ac_dir" | |
c906108c | 22798 | else |
bec39cab AC |
22799 | as_dir="$ac_dir" |
22800 | as_dirs= | |
22801 | while test ! -d "$as_dir"; do | |
22802 | as_dirs="$as_dir $as_dirs" | |
22803 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22804 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22805 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22806 | X"$as_dir" : 'X\(//\)$' \| \ | |
22807 | X"$as_dir" : 'X\(/\)' \| \ | |
22808 | . : '\(.\)' 2>/dev/null || | |
22809 | echo X"$as_dir" | | |
22810 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22811 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22812 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22813 | /^X\(\/\).*/{ s//\1/; q; } | |
22814 | s/.*/./; q'` | |
22815 | done | |
22816 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22817 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22818 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22819 | { (exit 1); exit 1; }; }; } | |
c906108c | 22820 | |
bec39cab AC |
22821 | ac_builddir=. |
22822 | ||
22823 | if test "$ac_dir" != .; then | |
22824 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22825 | # A "../" for each directory in $ac_dir_suffix. | |
22826 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22827 | else | |
22828 | ac_dir_suffix= ac_top_builddir= | |
22829 | fi | |
22830 | ||
22831 | case $srcdir in | |
22832 | .) # No --srcdir option. We are building in place. | |
22833 | ac_srcdir=. | |
22834 | if test -z "$ac_top_builddir"; then | |
22835 | ac_top_srcdir=. | |
22836 | else | |
22837 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22838 | fi ;; | |
22839 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22840 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22841 | ac_top_srcdir=$srcdir ;; | |
c906108c | 22842 | *) # Relative path. |
bec39cab AC |
22843 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
22844 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22845 | esac | |
22846 | ||
22847 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22848 | # the directories may not exist. | |
22849 | case `pwd` in | |
22850 | .) ac_abs_builddir="$ac_dir";; | |
22851 | *) | |
22852 | case "$ac_dir" in | |
22853 | .) ac_abs_builddir=`pwd`;; | |
22854 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22855 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22856 | esac;; | |
22857 | esac | |
22858 | case $ac_abs_builddir in | |
22859 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22860 | *) | |
22861 | case ${ac_top_builddir}. in | |
22862 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22863 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22864 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22865 | esac;; | |
22866 | esac | |
22867 | case $ac_abs_builddir in | |
22868 | .) ac_abs_srcdir=$ac_srcdir;; | |
22869 | *) | |
22870 | case $ac_srcdir in | |
22871 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22872 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22873 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22874 | esac;; | |
22875 | esac | |
22876 | case $ac_abs_builddir in | |
22877 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22878 | *) | |
22879 | case $ac_top_srcdir in | |
22880 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22881 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22882 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22883 | esac;; | |
22884 | esac | |
c906108c | 22885 | |
c906108c | 22886 | |
bec39cab AC |
22887 | case $INSTALL in |
22888 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22889 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
22890 | esac |
22891 | ||
bec39cab AC |
22892 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
22893 | # use $as_me), people would be surprised to read: | |
22894 | # /* config.h. Generated by config.status. */ | |
22895 | if test x"$ac_file" = x-; then | |
22896 | configure_input= | |
22897 | else | |
22898 | configure_input="$ac_file. " | |
22899 | fi | |
22900 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
22901 | sed 's,.*/,,'` by configure." | |
22902 | ||
22903 | # First look for the input files in the build tree, otherwise in the | |
22904 | # src tree. | |
22905 | ac_file_inputs=`IFS=: | |
22906 | for f in $ac_file_in; do | |
22907 | case $f in | |
22908 | -) echo $tmp/stdin ;; | |
22909 | [\\/$]*) | |
22910 | # Absolute (can't be DOS-style, as IFS=:) | |
22911 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22912 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22913 | { (exit 1); exit 1; }; } | |
22914 | echo "$f";; | |
22915 | *) # Relative | |
22916 | if test -f "$f"; then | |
22917 | # Build tree | |
22918 | echo "$f" | |
22919 | elif test -f "$srcdir/$f"; then | |
22920 | # Source tree | |
22921 | echo "$srcdir/$f" | |
22922 | else | |
22923 | # /dev/null tree | |
22924 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22925 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22926 | { (exit 1); exit 1; }; } | |
22927 | fi;; | |
22928 | esac | |
22929 | done` || { (exit 1); exit 1; } | |
121ce6e5 DJ |
22930 | |
22931 | if test x"$ac_file" != x-; then | |
22932 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22933 | echo "$as_me: creating $ac_file" >&6;} | |
22934 | rm -f "$ac_file" | |
22935 | fi | |
bec39cab AC |
22936 | _ACEOF |
22937 | cat >>$CONFIG_STATUS <<_ACEOF | |
22938 | sed "$ac_vpsub | |
22939 | $extrasub | |
22940 | _ACEOF | |
22941 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22942 | :t | |
22943 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22944 | s,@configure_input@,$configure_input,;t t | |
22945 | s,@srcdir@,$ac_srcdir,;t t | |
22946 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
22947 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
22948 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
22949 | s,@builddir@,$ac_builddir,;t t | |
22950 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
22951 | s,@top_builddir@,$ac_top_builddir,;t t | |
22952 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
22953 | s,@INSTALL@,$ac_INSTALL,;t t | |
22954 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22955 | rm -f $tmp/stdin | |
22956 | if test x"$ac_file" != x-; then | |
22957 | mv $tmp/out $ac_file | |
22958 | else | |
22959 | cat $tmp/out | |
22960 | rm -f $tmp/out | |
22961 | fi | |
22962 | ||
22963 | done | |
22964 | _ACEOF | |
22965 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22966 | ||
22967 | # | |
22968 | # CONFIG_HEADER section. | |
22969 | # | |
c906108c SS |
22970 | |
22971 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22972 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22973 | # | |
22974 | # ac_d sets the value in "#define NAME VALUE" lines. | |
bec39cab AC |
22975 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22976 | ac_dB='[ ].*$,\1#\2' | |
22977 | ac_dC=' ' | |
22978 | ac_dD=',;t' | |
22979 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22980 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22981 | ac_uB='$,\1#\2define\3' | |
c906108c | 22982 | ac_uC=' ' |
bec39cab AC |
22983 | ac_uD=',;t' |
22984 | ||
22985 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 22986 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
bec39cab AC |
22987 | case $ac_file in |
22988 | - | *:- | *:-:* ) # input from stdin | |
22989 | cat >$tmp/stdin | |
22990 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22991 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22992 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22993 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22994 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
22995 | esac |
22996 | ||
bec39cab AC |
22997 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
22998 | echo "$as_me: creating $ac_file" >&6;} | |
22999 | ||
23000 | # First look for the input files in the build tree, otherwise in the | |
23001 | # src tree. | |
23002 | ac_file_inputs=`IFS=: | |
23003 | for f in $ac_file_in; do | |
23004 | case $f in | |
23005 | -) echo $tmp/stdin ;; | |
23006 | [\\/$]*) | |
23007 | # Absolute (can't be DOS-style, as IFS=:) | |
23008 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23009 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23010 | { (exit 1); exit 1; }; } | |
23011 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
23012 | echo "$f";; | |
23013 | *) # Relative | |
23014 | if test -f "$f"; then | |
23015 | # Build tree | |
23016 | echo "$f" | |
23017 | elif test -f "$srcdir/$f"; then | |
23018 | # Source tree | |
23019 | echo "$srcdir/$f" | |
23020 | else | |
23021 | # /dev/null tree | |
23022 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23023 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23024 | { (exit 1); exit 1; }; } | |
23025 | fi;; | |
23026 | esac | |
23027 | done` || { (exit 1); exit 1; } | |
23028 | # Remove the trailing spaces. | |
23029 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
23030 | ||
23031 | _ACEOF | |
23032 | ||
23033 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
23034 | # `conftest.undefs', that substitutes the proper values into | |
23035 | # config.h.in to produce config.h. The first handles `#define' | |
23036 | # templates, and the second `#undef' templates. | |
23037 | # And first: Protect against being on the right side of a sed subst in | |
23038 | # config.status. Protect against being in an unquoted here document | |
23039 | # in config.status. | |
23040 | rm -f conftest.defines conftest.undefs | |
23041 | # Using a here document instead of a string reduces the quoting nightmare. | |
23042 | # Putting comments in sed scripts is not portable. | |
23043 | # | |
23044 | # `end' is used to avoid that the second main sed command (meant for | |
23045 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
23046 | # See the Autoconf documentation for `clear'. | |
23047 | cat >confdef2sed.sed <<\_ACEOF | |
23048 | s/[\\&,]/\\&/g | |
23049 | s,[\\$`],\\&,g | |
23050 | t clear | |
23051 | : clear | |
23052 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
23053 | t end | |
23054 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
23055 | : end | |
23056 | _ACEOF | |
23057 | # If some macros were called several times there might be several times | |
23058 | # the same #defines, which is useless. Nevertheless, we may not want to | |
23059 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
23060 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
23061 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
23062 | rm -f confdef2sed.sed | |
c906108c SS |
23063 | |
23064 | # This sed command replaces #undef with comments. This is necessary, for | |
23065 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
23066 | # on some systems where configure will not decide to define it. | |
bec39cab AC |
23067 | cat >>conftest.undefs <<\_ACEOF |
23068 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
23069 | _ACEOF | |
23070 | ||
23071 | # Break up conftest.defines because some shells have a limit on the size | |
23072 | # of here documents, and old seds have small limits too (100 cmds). | |
23073 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
23074 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
23075 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
23076 | echo ' :' >>$CONFIG_STATUS | |
23077 | rm -f conftest.tail | |
23078 | while grep . conftest.defines >/dev/null | |
23079 | do | |
23080 | # Write a limited-size here document to $tmp/defines.sed. | |
23081 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
23082 | # Speed up: don't consider the non `#define' lines. | |
23083 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
23084 | # Work around the forget-to-reset-the-flag bug. | |
23085 | echo 't clr' >>$CONFIG_STATUS | |
23086 | echo ': clr' >>$CONFIG_STATUS | |
23087 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
23088 | echo 'CEOF | |
23089 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
23090 | rm -f $tmp/in | |
23091 | mv $tmp/out $tmp/in | |
23092 | ' >>$CONFIG_STATUS | |
23093 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
23094 | rm -f conftest.defines | |
23095 | mv conftest.tail conftest.defines | |
23096 | done | |
23097 | rm -f conftest.defines | |
23098 | echo ' fi # grep' >>$CONFIG_STATUS | |
23099 | echo >>$CONFIG_STATUS | |
c906108c | 23100 | |
bec39cab AC |
23101 | # Break up conftest.undefs because some shells have a limit on the size |
23102 | # of here documents, and old seds have small limits too (100 cmds). | |
23103 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 23104 | rm -f conftest.tail |
bec39cab | 23105 | while grep . conftest.undefs >/dev/null |
c906108c | 23106 | do |
bec39cab AC |
23107 | # Write a limited-size here document to $tmp/undefs.sed. |
23108 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
23109 | # Speed up: don't consider the non `#undef' | |
23110 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
23111 | # Work around the forget-to-reset-the-flag bug. | |
23112 | echo 't clr' >>$CONFIG_STATUS | |
23113 | echo ': clr' >>$CONFIG_STATUS | |
23114 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 23115 | echo 'CEOF |
bec39cab AC |
23116 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
23117 | rm -f $tmp/in | |
23118 | mv $tmp/out $tmp/in | |
23119 | ' >>$CONFIG_STATUS | |
23120 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
23121 | rm -f conftest.undefs | |
23122 | mv conftest.tail conftest.undefs | |
23123 | done | |
23124 | rm -f conftest.undefs | |
23125 | ||
23126 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23127 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23128 | # use $as_me), people would be surprised to read: | |
23129 | # /* config.h. Generated by config.status. */ | |
23130 | if test x"$ac_file" = x-; then | |
23131 | echo "/* Generated by configure. */" >$tmp/config.h | |
c906108c | 23132 | else |
bec39cab | 23133 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
c906108c | 23134 | fi |
bec39cab AC |
23135 | cat $tmp/in >>$tmp/config.h |
23136 | rm -f $tmp/in | |
23137 | if test x"$ac_file" != x-; then | |
23138 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
23139 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
23140 | echo "$as_me: $ac_file is unchanged" >&6;} | |
23141 | else | |
23142 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
23143 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23144 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23145 | X"$ac_file" : 'X\(//\)$' \| \ | |
23146 | X"$ac_file" : 'X\(/\)' \| \ | |
23147 | . : '\(.\)' 2>/dev/null || | |
23148 | echo X"$ac_file" | | |
23149 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23150 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23151 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23152 | /^X\(\/\).*/{ s//\1/; q; } | |
23153 | s/.*/./; q'` | |
23154 | { if $as_mkdir_p; then | |
23155 | mkdir -p "$ac_dir" | |
23156 | else | |
23157 | as_dir="$ac_dir" | |
23158 | as_dirs= | |
23159 | while test ! -d "$as_dir"; do | |
23160 | as_dirs="$as_dir $as_dirs" | |
23161 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23162 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23163 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23164 | X"$as_dir" : 'X\(//\)$' \| \ | |
23165 | X"$as_dir" : 'X\(/\)' \| \ | |
23166 | . : '\(.\)' 2>/dev/null || | |
23167 | echo X"$as_dir" | | |
23168 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23169 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23170 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23171 | /^X\(\/\).*/{ s//\1/; q; } | |
23172 | s/.*/./; q'` | |
23173 | done | |
23174 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23175 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23176 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23177 | { (exit 1); exit 1; }; }; } | |
c906108c | 23178 | |
bec39cab AC |
23179 | rm -f $ac_file |
23180 | mv $tmp/config.h $ac_file | |
23181 | fi | |
23182 | else | |
23183 | cat $tmp/config.h | |
23184 | rm -f $tmp/config.h | |
23185 | fi | |
23186 | done | |
23187 | _ACEOF | |
23188 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 23189 | |
bec39cab AC |
23190 | # |
23191 | # CONFIG_LINKS section. | |
23192 | # | |
c906108c | 23193 | |
bec39cab AC |
23194 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
23195 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
23196 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 23197 | |
bec39cab AC |
23198 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
23199 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
23200 | |
23201 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
23202 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
23203 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
23204 | { (exit 1); exit 1; }; } | |
c906108c SS |
23205 | fi |
23206 | rm -f $ac_dest | |
23207 | ||
23208 | # Make relative symlinks. | |
bec39cab AC |
23209 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
23210 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23211 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
23212 | X"$ac_dest" : 'X\(//\)$' \| \ | |
23213 | X"$ac_dest" : 'X\(/\)' \| \ | |
23214 | . : '\(.\)' 2>/dev/null || | |
23215 | echo X"$ac_dest" | | |
23216 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23217 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23218 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23219 | /^X\(\/\).*/{ s//\1/; q; } | |
23220 | s/.*/./; q'` | |
23221 | { if $as_mkdir_p; then | |
23222 | mkdir -p "$ac_dest_dir" | |
c906108c | 23223 | else |
bec39cab AC |
23224 | as_dir="$ac_dest_dir" |
23225 | as_dirs= | |
23226 | while test ! -d "$as_dir"; do | |
23227 | as_dirs="$as_dir $as_dirs" | |
23228 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23229 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23230 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23231 | X"$as_dir" : 'X\(//\)$' \| \ | |
23232 | X"$as_dir" : 'X\(/\)' \| \ | |
23233 | . : '\(.\)' 2>/dev/null || | |
23234 | echo X"$as_dir" | | |
23235 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23236 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23237 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23238 | /^X\(\/\).*/{ s//\1/; q; } | |
23239 | s/.*/./; q'` | |
23240 | done | |
23241 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23242 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
23243 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
23244 | { (exit 1); exit 1; }; }; } | |
23245 | ||
23246 | ac_builddir=. | |
23247 | ||
23248 | if test "$ac_dest_dir" != .; then | |
23249 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
23250 | # A "../" for each directory in $ac_dir_suffix. | |
23251 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23252 | else | |
23253 | ac_dir_suffix= ac_top_builddir= | |
23254 | fi | |
23255 | ||
23256 | case $srcdir in | |
23257 | .) # No --srcdir option. We are building in place. | |
23258 | ac_srcdir=. | |
23259 | if test -z "$ac_top_builddir"; then | |
23260 | ac_top_srcdir=. | |
23261 | else | |
23262 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23263 | fi ;; | |
23264 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23265 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23266 | ac_top_srcdir=$srcdir ;; | |
23267 | *) # Relative path. | |
23268 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23269 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23270 | esac | |
23271 | ||
23272 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
23273 | # the directories may not exist. | |
23274 | case `pwd` in | |
23275 | .) ac_abs_builddir="$ac_dest_dir";; | |
23276 | *) | |
23277 | case "$ac_dest_dir" in | |
23278 | .) ac_abs_builddir=`pwd`;; | |
23279 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
23280 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
23281 | esac;; | |
23282 | esac | |
23283 | case $ac_abs_builddir in | |
23284 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23285 | *) | |
23286 | case ${ac_top_builddir}. in | |
23287 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23288 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23289 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23290 | esac;; | |
23291 | esac | |
23292 | case $ac_abs_builddir in | |
23293 | .) ac_abs_srcdir=$ac_srcdir;; | |
23294 | *) | |
23295 | case $ac_srcdir in | |
23296 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23297 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23298 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23299 | esac;; | |
23300 | esac | |
23301 | case $ac_abs_builddir in | |
23302 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23303 | *) | |
23304 | case $ac_top_srcdir in | |
23305 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23306 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23307 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23308 | esac;; | |
23309 | esac | |
c906108c | 23310 | |
bec39cab AC |
23311 | |
23312 | case $srcdir in | |
23313 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
23314 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
c906108c SS |
23315 | esac |
23316 | ||
bec39cab AC |
23317 | # Try a symlink, then a hard link, then a copy. |
23318 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
23319 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
23320 | cp -p $srcdir/$ac_source $ac_dest || | |
23321 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
23322 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
23323 | { (exit 1); exit 1; }; } | |
c906108c | 23324 | done |
bec39cab AC |
23325 | _ACEOF |
23326 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 23327 | |
bec39cab AC |
23328 | # |
23329 | # CONFIG_COMMANDS section. | |
23330 | # | |
23331 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
23332 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
23333 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23334 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
23335 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23336 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
23337 | X"$ac_dest" : 'X\(//\)$' \| \ | |
23338 | X"$ac_dest" : 'X\(/\)' \| \ | |
23339 | . : '\(.\)' 2>/dev/null || | |
23340 | echo X"$ac_dest" | | |
23341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23342 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23343 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23344 | /^X\(\/\).*/{ s//\1/; q; } | |
23345 | s/.*/./; q'` | |
23346 | { if $as_mkdir_p; then | |
23347 | mkdir -p "$ac_dir" | |
23348 | else | |
23349 | as_dir="$ac_dir" | |
23350 | as_dirs= | |
23351 | while test ! -d "$as_dir"; do | |
23352 | as_dirs="$as_dir $as_dirs" | |
23353 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23354 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23355 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23356 | X"$as_dir" : 'X\(//\)$' \| \ | |
23357 | X"$as_dir" : 'X\(/\)' \| \ | |
23358 | . : '\(.\)' 2>/dev/null || | |
23359 | echo X"$as_dir" | | |
23360 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23361 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23362 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23363 | /^X\(\/\).*/{ s//\1/; q; } | |
23364 | s/.*/./; q'` | |
23365 | done | |
23366 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23367 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23368 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23369 | { (exit 1); exit 1; }; }; } | |
23370 | ||
23371 | ac_builddir=. | |
23372 | ||
23373 | if test "$ac_dir" != .; then | |
23374 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23375 | # A "../" for each directory in $ac_dir_suffix. | |
23376 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23377 | else | |
23378 | ac_dir_suffix= ac_top_builddir= | |
23379 | fi | |
23380 | ||
23381 | case $srcdir in | |
23382 | .) # No --srcdir option. We are building in place. | |
23383 | ac_srcdir=. | |
23384 | if test -z "$ac_top_builddir"; then | |
23385 | ac_top_srcdir=. | |
23386 | else | |
23387 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23388 | fi ;; | |
23389 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23390 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23391 | ac_top_srcdir=$srcdir ;; | |
23392 | *) # Relative path. | |
23393 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23394 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23395 | esac | |
23396 | ||
23397 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
23398 | # the directories may not exist. | |
23399 | case `pwd` in | |
23400 | .) ac_abs_builddir="$ac_dir";; | |
23401 | *) | |
23402 | case "$ac_dir" in | |
23403 | .) ac_abs_builddir=`pwd`;; | |
23404 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23405 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23406 | esac;; | |
23407 | esac | |
23408 | case $ac_abs_builddir in | |
23409 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23410 | *) | |
23411 | case ${ac_top_builddir}. in | |
23412 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23413 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23414 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23415 | esac;; | |
23416 | esac | |
23417 | case $ac_abs_builddir in | |
23418 | .) ac_abs_srcdir=$ac_srcdir;; | |
23419 | *) | |
23420 | case $ac_srcdir in | |
23421 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23422 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23423 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23424 | esac;; | |
23425 | esac | |
23426 | case $ac_abs_builddir in | |
23427 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23428 | *) | |
23429 | case $ac_top_srcdir in | |
23430 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23431 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23432 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23433 | esac;; | |
23434 | esac | |
c906108c | 23435 | |
c906108c | 23436 | |
bec39cab AC |
23437 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
23438 | echo "$as_me: executing $ac_dest commands" >&6;} | |
23439 | case $ac_dest in | |
23440 | default ) | |
c906108c | 23441 | |
2c0fc042 | 23442 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
23443 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
23444 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
23445 | mv -f Makefile.tmp Makefile | |
23446 | ||
2acceee2 | 23447 | |
c906108c SS |
23448 | case x$CONFIG_HEADERS in |
23449 | xconfig.h:config.in) | |
23450 | echo > stamp-h ;; | |
23451 | esac | |
bec39cab AC |
23452 | ;; |
23453 | esac | |
23454 | done | |
23455 | _ACEOF | |
c906108c | 23456 | |
bec39cab AC |
23457 | cat >>$CONFIG_STATUS <<\_ACEOF |
23458 | ||
23459 | { (exit 0); exit 0; } | |
23460 | _ACEOF | |
c906108c | 23461 | chmod +x $CONFIG_STATUS |
bec39cab AC |
23462 | ac_clean_files=$ac_clean_files_save |
23463 | ||
23464 | ||
23465 | # configure is writing to config.log, and then calls config.status. | |
23466 | # config.status does its own redirection, appending to config.log. | |
23467 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23468 | # by configure, so config.status won't be able to write to it; its | |
23469 | # output is simply discarded. So we exec the FD to /dev/null, | |
23470 | # effectively closing config.log, so it can be properly (re)opened and | |
23471 | # appended to by config.status. When coming back to configure, we | |
23472 | # need to make the FD available again. | |
23473 | if test "$no_create" != yes; then | |
23474 | ac_cs_success=: | |
23475 | ac_config_status_args= | |
23476 | test "$silent" = yes && | |
23477 | ac_config_status_args="$ac_config_status_args --quiet" | |
23478 | exec 5>/dev/null | |
23479 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23480 | exec 5>>config.log | |
23481 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23482 | # would make configure fail if this is the last instruction. | |
23483 | $ac_cs_success || { (exit 1); exit 1; } | |
23484 | fi | |
c906108c | 23485 | |
bec39cab AC |
23486 | # |
23487 | # CONFIG_SUBDIRS section. | |
23488 | # | |
c906108c SS |
23489 | if test "$no_recursion" != yes; then |
23490 | ||
23491 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23492 | ac_sub_configure_args= | |
23493 | ac_prev= | |
23494 | for ac_arg in $ac_configure_args; do | |
23495 | if test -n "$ac_prev"; then | |
23496 | ac_prev= | |
23497 | continue | |
23498 | fi | |
bec39cab | 23499 | case $ac_arg in |
c906108c SS |
23500 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23501 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23502 | ac_prev=cache_file ;; | |
23503 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
23504 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
23505 | | --c=*) | |
23506 | ;; | |
23507 | --config-cache | -C) | |
c906108c SS |
23508 | ;; |
23509 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23510 | ac_prev=srcdir ;; | |
23511 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23512 | ;; | |
bec39cab AC |
23513 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
23514 | ac_prev=prefix ;; | |
23515 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
23516 | ;; | |
c906108c SS |
23517 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
23518 | esac | |
23519 | done | |
23520 | ||
bec39cab AC |
23521 | # Always prepend --prefix to ensure using the same prefix |
23522 | # in subdir configurations. | |
23523 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
23524 | ||
23525 | ac_popdir=`pwd` | |
23526 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
23527 | |
23528 | # Do not complain, so a configure script can configure whichever | |
23529 | # parts of a large source tree are present. | |
bec39cab | 23530 | test -d $srcdir/$ac_dir || continue |
c906108c | 23531 | |
bec39cab AC |
23532 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
23533 | echo "$as_me: configuring in $ac_dir" >&6;} | |
23534 | { if $as_mkdir_p; then | |
23535 | mkdir -p "$ac_dir" | |
23536 | else | |
23537 | as_dir="$ac_dir" | |
23538 | as_dirs= | |
23539 | while test ! -d "$as_dir"; do | |
23540 | as_dirs="$as_dir $as_dirs" | |
23541 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23542 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23543 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23544 | X"$as_dir" : 'X\(//\)$' \| \ | |
23545 | X"$as_dir" : 'X\(/\)' \| \ | |
23546 | . : '\(.\)' 2>/dev/null || | |
23547 | echo X"$as_dir" | | |
23548 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23549 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23550 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23551 | /^X\(\/\).*/{ s//\1/; q; } | |
23552 | s/.*/./; q'` | |
23553 | done | |
23554 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23555 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23556 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23557 | { (exit 1); exit 1; }; }; } | |
c906108c | 23558 | |
bec39cab AC |
23559 | ac_builddir=. |
23560 | ||
23561 | if test "$ac_dir" != .; then | |
23562 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23563 | # A "../" for each directory in $ac_dir_suffix. | |
23564 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23565 | else | |
23566 | ac_dir_suffix= ac_top_builddir= | |
23567 | fi | |
23568 | ||
23569 | case $srcdir in | |
23570 | .) # No --srcdir option. We are building in place. | |
23571 | ac_srcdir=. | |
23572 | if test -z "$ac_top_builddir"; then | |
23573 | ac_top_srcdir=. | |
23574 | else | |
23575 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23576 | fi ;; | |
23577 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23578 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23579 | ac_top_srcdir=$srcdir ;; | |
23580 | *) # Relative path. | |
23581 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23582 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23583 | esac | |
c906108c | 23584 | |
bec39cab AC |
23585 | # Do not use `cd foo && pwd` to compute absolute paths, because |
23586 | # the directories may not exist. | |
23587 | case `pwd` in | |
23588 | .) ac_abs_builddir="$ac_dir";; | |
23589 | *) | |
23590 | case "$ac_dir" in | |
23591 | .) ac_abs_builddir=`pwd`;; | |
23592 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23593 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23594 | esac;; | |
23595 | esac | |
23596 | case $ac_abs_builddir in | |
23597 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23598 | *) | |
23599 | case ${ac_top_builddir}. in | |
23600 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23601 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23602 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23603 | esac;; | |
23604 | esac | |
23605 | case $ac_abs_builddir in | |
23606 | .) ac_abs_srcdir=$ac_srcdir;; | |
23607 | *) | |
23608 | case $ac_srcdir in | |
23609 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23610 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23611 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23612 | esac;; | |
23613 | esac | |
23614 | case $ac_abs_builddir in | |
23615 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23616 | *) | |
23617 | case $ac_top_srcdir in | |
23618 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23619 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23620 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23621 | esac;; | |
23622 | esac | |
c906108c | 23623 | |
c906108c | 23624 | |
bec39cab | 23625 | cd $ac_dir |
c906108c SS |
23626 | |
23627 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
23628 | if test -f $ac_srcdir/configure.gnu; then |
23629 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
23630 | elif test -f $ac_srcdir/configure; then | |
23631 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
23632 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
23633 | ac_sub_configure=$ac_configure |
23634 | else | |
bec39cab AC |
23635 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
23636 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
23637 | ac_sub_configure= |
23638 | fi | |
23639 | ||
23640 | # The recursion is here. | |
23641 | if test -n "$ac_sub_configure"; then | |
c906108c | 23642 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
23643 | case $cache_file in |
23644 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
c906108c | 23645 | *) # Relative path. |
bec39cab | 23646 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
c906108c | 23647 | esac |
c906108c | 23648 | |
bec39cab AC |
23649 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
23650 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 23651 | # The eval makes quoting arguments work. |
bec39cab AC |
23652 | eval $ac_sub_configure $ac_sub_configure_args \ |
23653 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
23654 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
23655 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
23656 | { (exit 1); exit 1; }; } | |
c906108c SS |
23657 | fi |
23658 | ||
121ce6e5 | 23659 | cd "$ac_popdir" |
c906108c SS |
23660 | done |
23661 | fi | |
23662 | ||
23663 | ||
23664 | exit 0 |