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" | |
065a1afc | 316 | ac_subdirs_all="$ac_subdirs_all nlm" |
c21a4eee | 317 | 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 | 318 | ac_subst_files='host_makefile_frag target_makefile_frag' |
c906108c SS |
319 | |
320 | # Initialize some variables set by options. | |
bec39cab AC |
321 | ac_init_help= |
322 | ac_init_version=false | |
c906108c SS |
323 | # The variables have the same names as the options, with |
324 | # dashes changed to underlines. | |
bec39cab | 325 | cache_file=/dev/null |
c906108c | 326 | exec_prefix=NONE |
c906108c | 327 | no_create= |
c906108c SS |
328 | no_recursion= |
329 | prefix=NONE | |
330 | program_prefix=NONE | |
331 | program_suffix=NONE | |
332 | program_transform_name=s,x,x, | |
333 | silent= | |
334 | site= | |
335 | srcdir= | |
c906108c SS |
336 | verbose= |
337 | x_includes=NONE | |
338 | x_libraries=NONE | |
bec39cab AC |
339 | |
340 | # Installation directory options. | |
341 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
342 | # and all the variables that are supposed to be based on exec_prefix | |
343 | # by default will actually change. | |
344 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
345 | bindir='${exec_prefix}/bin' |
346 | sbindir='${exec_prefix}/sbin' | |
347 | libexecdir='${exec_prefix}/libexec' | |
348 | datadir='${prefix}/share' | |
349 | sysconfdir='${prefix}/etc' | |
350 | sharedstatedir='${prefix}/com' | |
351 | localstatedir='${prefix}/var' | |
352 | libdir='${exec_prefix}/lib' | |
353 | includedir='${prefix}/include' | |
354 | oldincludedir='/usr/include' | |
355 | infodir='${prefix}/info' | |
356 | mandir='${prefix}/man' | |
357 | ||
c906108c SS |
358 | ac_prev= |
359 | for ac_option | |
360 | do | |
c906108c SS |
361 | # If the previous option needs an argument, assign it. |
362 | if test -n "$ac_prev"; then | |
363 | eval "$ac_prev=\$ac_option" | |
364 | ac_prev= | |
365 | continue | |
366 | fi | |
367 | ||
bec39cab | 368 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
369 | |
370 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
371 | ||
bec39cab | 372 | case $ac_option in |
c906108c SS |
373 | |
374 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
375 | ac_prev=bindir ;; | |
376 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 377 | bindir=$ac_optarg ;; |
c906108c SS |
378 | |
379 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 380 | ac_prev=build_alias ;; |
c906108c | 381 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 382 | build_alias=$ac_optarg ;; |
c906108c SS |
383 | |
384 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
385 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
386 | ac_prev=cache_file ;; | |
387 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
388 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
389 | cache_file=$ac_optarg ;; |
390 | ||
391 | --config-cache | -C) | |
392 | cache_file=config.cache ;; | |
c906108c SS |
393 | |
394 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
395 | ac_prev=datadir ;; | |
396 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
397 | | --da=*) | |
bec39cab | 398 | datadir=$ac_optarg ;; |
c906108c SS |
399 | |
400 | -disable-* | --disable-*) | |
bec39cab | 401 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 402 | # Reject names that are not valid shell variable names. |
bec39cab AC |
403 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
404 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
405 | { (exit 1); exit 1; }; } | |
406 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
407 | eval "enable_$ac_feature=no" ;; | |
c906108c SS |
408 | |
409 | -enable-* | --enable-*) | |
bec39cab | 410 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 411 | # Reject names that are not valid shell variable names. |
bec39cab AC |
412 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
413 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
414 | { (exit 1); exit 1; }; } | |
415 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
416 | case $ac_option in | |
417 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
418 | *) ac_optarg=yes ;; |
419 | esac | |
bec39cab | 420 | eval "enable_$ac_feature='$ac_optarg'" ;; |
c906108c SS |
421 | |
422 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
423 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
424 | | --exec | --exe | --ex) | |
425 | ac_prev=exec_prefix ;; | |
426 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
427 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
428 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 429 | exec_prefix=$ac_optarg ;; |
c906108c SS |
430 | |
431 | -gas | --gas | --ga | --g) | |
432 | # Obsolete; use --with-gas. | |
433 | with_gas=yes ;; | |
434 | ||
bec39cab AC |
435 | -help | --help | --hel | --he | -h) |
436 | ac_init_help=long ;; | |
437 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
438 | ac_init_help=recursive ;; | |
439 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
440 | ac_init_help=short ;; | |
c906108c SS |
441 | |
442 | -host | --host | --hos | --ho) | |
bec39cab | 443 | ac_prev=host_alias ;; |
c906108c | 444 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 445 | host_alias=$ac_optarg ;; |
c906108c SS |
446 | |
447 | -includedir | --includedir | --includedi | --included | --include \ | |
448 | | --includ | --inclu | --incl | --inc) | |
449 | ac_prev=includedir ;; | |
450 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
451 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 452 | includedir=$ac_optarg ;; |
c906108c SS |
453 | |
454 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
455 | ac_prev=infodir ;; | |
456 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 457 | infodir=$ac_optarg ;; |
c906108c SS |
458 | |
459 | -libdir | --libdir | --libdi | --libd) | |
460 | ac_prev=libdir ;; | |
461 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 462 | libdir=$ac_optarg ;; |
c906108c SS |
463 | |
464 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
465 | | --libexe | --libex | --libe) | |
466 | ac_prev=libexecdir ;; | |
467 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
468 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 469 | libexecdir=$ac_optarg ;; |
c906108c SS |
470 | |
471 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
472 | | --localstate | --localstat | --localsta | --localst \ | |
473 | | --locals | --local | --loca | --loc | --lo) | |
474 | ac_prev=localstatedir ;; | |
475 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
476 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
477 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
bec39cab | 478 | localstatedir=$ac_optarg ;; |
c906108c SS |
479 | |
480 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
481 | ac_prev=mandir ;; | |
482 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 483 | mandir=$ac_optarg ;; |
c906108c SS |
484 | |
485 | -nfp | --nfp | --nf) | |
486 | # Obsolete; use --without-fp. | |
487 | with_fp=no ;; | |
488 | ||
489 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 490 | | --no-cr | --no-c | -n) |
c906108c SS |
491 | no_create=yes ;; |
492 | ||
493 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
494 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
495 | no_recursion=yes ;; | |
496 | ||
497 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
498 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
499 | | --oldin | --oldi | --old | --ol | --o) | |
500 | ac_prev=oldincludedir ;; | |
501 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
502 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
503 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 504 | oldincludedir=$ac_optarg ;; |
c906108c SS |
505 | |
506 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
507 | ac_prev=prefix ;; | |
508 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 509 | prefix=$ac_optarg ;; |
c906108c SS |
510 | |
511 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
512 | | --program-pre | --program-pr | --program-p) | |
513 | ac_prev=program_prefix ;; | |
514 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
515 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 516 | program_prefix=$ac_optarg ;; |
c906108c SS |
517 | |
518 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
519 | | --program-suf | --program-su | --program-s) | |
520 | ac_prev=program_suffix ;; | |
521 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
522 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 523 | program_suffix=$ac_optarg ;; |
c906108c SS |
524 | |
525 | -program-transform-name | --program-transform-name \ | |
526 | | --program-transform-nam | --program-transform-na \ | |
527 | | --program-transform-n | --program-transform- \ | |
528 | | --program-transform | --program-transfor \ | |
529 | | --program-transfo | --program-transf \ | |
530 | | --program-trans | --program-tran \ | |
531 | | --progr-tra | --program-tr | --program-t) | |
532 | ac_prev=program_transform_name ;; | |
533 | -program-transform-name=* | --program-transform-name=* \ | |
534 | | --program-transform-nam=* | --program-transform-na=* \ | |
535 | | --program-transform-n=* | --program-transform-=* \ | |
536 | | --program-transform=* | --program-transfor=* \ | |
537 | | --program-transfo=* | --program-transf=* \ | |
538 | | --program-trans=* | --program-tran=* \ | |
539 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 540 | program_transform_name=$ac_optarg ;; |
c906108c SS |
541 | |
542 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
543 | | -silent | --silent | --silen | --sile | --sil) | |
544 | silent=yes ;; | |
545 | ||
546 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
547 | ac_prev=sbindir ;; | |
548 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
549 | | --sbi=* | --sb=*) | |
bec39cab | 550 | sbindir=$ac_optarg ;; |
c906108c SS |
551 | |
552 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
553 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
554 | | --sharedst | --shareds | --shared | --share | --shar \ | |
555 | | --sha | --sh) | |
556 | ac_prev=sharedstatedir ;; | |
557 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
558 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
559 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
560 | | --sha=* | --sh=*) | |
bec39cab | 561 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
562 | |
563 | -site | --site | --sit) | |
564 | ac_prev=site ;; | |
565 | -site=* | --site=* | --sit=*) | |
bec39cab | 566 | site=$ac_optarg ;; |
3ace7edb | 567 | |
c906108c SS |
568 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
569 | ac_prev=srcdir ;; | |
570 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 571 | srcdir=$ac_optarg ;; |
c906108c SS |
572 | |
573 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
574 | | --syscon | --sysco | --sysc | --sys | --sy) | |
575 | ac_prev=sysconfdir ;; | |
576 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
577 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 578 | sysconfdir=$ac_optarg ;; |
c906108c SS |
579 | |
580 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 581 | ac_prev=target_alias ;; |
c906108c | 582 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 583 | target_alias=$ac_optarg ;; |
c906108c SS |
584 | |
585 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
586 | verbose=yes ;; | |
587 | ||
bec39cab AC |
588 | -version | --version | --versio | --versi | --vers | -V) |
589 | ac_init_version=: ;; | |
c906108c SS |
590 | |
591 | -with-* | --with-*) | |
bec39cab | 592 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 593 | # Reject names that are not valid shell variable names. |
bec39cab AC |
594 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
595 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
596 | { (exit 1); exit 1; }; } | |
c906108c | 597 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
bec39cab AC |
598 | case $ac_option in |
599 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
600 | *) ac_optarg=yes ;; |
601 | esac | |
bec39cab | 602 | eval "with_$ac_package='$ac_optarg'" ;; |
c906108c SS |
603 | |
604 | -without-* | --without-*) | |
bec39cab | 605 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 606 | # Reject names that are not valid shell variable names. |
bec39cab AC |
607 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
608 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
609 | { (exit 1); exit 1; }; } | |
610 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
611 | eval "with_$ac_package=no" ;; | |
c906108c SS |
612 | |
613 | --x) | |
614 | # Obsolete; use --with-x. | |
615 | with_x=yes ;; | |
616 | ||
617 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
618 | | --x-incl | --x-inc | --x-in | --x-i) | |
619 | ac_prev=x_includes ;; | |
620 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
621 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 622 | x_includes=$ac_optarg ;; |
c906108c SS |
623 | |
624 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
625 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
626 | ac_prev=x_libraries ;; | |
627 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
628 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 629 | x_libraries=$ac_optarg ;; |
c906108c | 630 | |
bec39cab AC |
631 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
632 | Try \`$0 --help' for more information." >&2 | |
633 | { (exit 1); exit 1; }; } | |
c906108c SS |
634 | ;; |
635 | ||
bec39cab AC |
636 | *=*) |
637 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
638 | # Reject names that are not valid shell variable names. | |
639 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
640 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
641 | { (exit 1); exit 1; }; } | |
642 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
643 | eval "$ac_envvar='$ac_optarg'" | |
644 | export $ac_envvar ;; | |
645 | ||
c906108c | 646 | *) |
bec39cab AC |
647 | # FIXME: should be removed in autoconf 3.0. |
648 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
649 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
650 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
651 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
652 | ;; |
653 | ||
654 | esac | |
655 | done | |
656 | ||
657 | if test -n "$ac_prev"; then | |
bec39cab AC |
658 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
659 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
660 | { (exit 1); exit 1; }; } | |
c906108c | 661 | fi |
c906108c | 662 | |
bec39cab AC |
663 | # Be sure to have absolute paths. |
664 | for ac_var in exec_prefix prefix | |
665 | do | |
666 | eval ac_val=$`echo $ac_var` | |
667 | case $ac_val in | |
668 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
669 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
670 | { (exit 1); exit 1; }; };; | |
671 | esac | |
672 | done | |
c906108c | 673 | |
bec39cab AC |
674 | # Be sure to have absolute paths. |
675 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
676 | localstatedir libdir includedir oldincludedir infodir mandir | |
c906108c | 677 | do |
bec39cab AC |
678 | eval ac_val=$`echo $ac_var` |
679 | case $ac_val in | |
680 | [\\/$]* | ?:[\\/]* ) ;; | |
681 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
682 | { (exit 1); exit 1; }; };; | |
c906108c SS |
683 | esac |
684 | done | |
685 | ||
bec39cab AC |
686 | # There might be people who depend on the old broken behavior: `$host' |
687 | # used to hold the argument of --host etc. | |
688 | # FIXME: To remove some day. | |
689 | build=$build_alias | |
690 | host=$host_alias | |
691 | target=$target_alias | |
692 | ||
693 | # FIXME: To remove some day. | |
694 | if test "x$host_alias" != x; then | |
695 | if test "x$build_alias" = x; then | |
696 | cross_compiling=maybe | |
697 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
698 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
699 | elif test "x$build_alias" != "x$host_alias"; then | |
700 | cross_compiling=yes | |
701 | fi | |
702 | fi | |
c906108c | 703 | |
bec39cab AC |
704 | ac_tool_prefix= |
705 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
706 | ||
707 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 708 | |
c906108c SS |
709 | |
710 | # Find the source files, if location was not specified. | |
711 | if test -z "$srcdir"; then | |
712 | ac_srcdir_defaulted=yes | |
713 | # Try the directory containing this script, then its parent. | |
bec39cab AC |
714 | ac_confdir=`(dirname "$0") 2>/dev/null || |
715 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
716 | X"$0" : 'X\(//\)[^/]' \| \ | |
717 | X"$0" : 'X\(//\)$' \| \ | |
718 | X"$0" : 'X\(/\)' \| \ | |
719 | . : '\(.\)' 2>/dev/null || | |
720 | echo X"$0" | | |
721 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
722 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
723 | /^X\(\/\/\)$/{ s//\1/; q; } | |
724 | /^X\(\/\).*/{ s//\1/; q; } | |
725 | s/.*/./; q'` | |
c906108c SS |
726 | srcdir=$ac_confdir |
727 | if test ! -r $srcdir/$ac_unique_file; then | |
728 | srcdir=.. | |
729 | fi | |
730 | else | |
731 | ac_srcdir_defaulted=no | |
732 | fi | |
733 | if test ! -r $srcdir/$ac_unique_file; then | |
734 | if test "$ac_srcdir_defaulted" = yes; then | |
bec39cab AC |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
736 | { (exit 1); exit 1; }; } | |
c906108c | 737 | else |
bec39cab AC |
738 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
739 | { (exit 1); exit 1; }; } | |
c906108c SS |
740 | fi |
741 | fi | |
bec39cab AC |
742 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
743 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
744 | { (exit 1); exit 1; }; } | |
745 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
746 | ac_env_build_alias_set=${build_alias+set} | |
747 | ac_env_build_alias_value=$build_alias | |
748 | ac_cv_env_build_alias_set=${build_alias+set} | |
749 | ac_cv_env_build_alias_value=$build_alias | |
750 | ac_env_host_alias_set=${host_alias+set} | |
751 | ac_env_host_alias_value=$host_alias | |
752 | ac_cv_env_host_alias_set=${host_alias+set} | |
753 | ac_cv_env_host_alias_value=$host_alias | |
754 | ac_env_target_alias_set=${target_alias+set} | |
755 | ac_env_target_alias_value=$target_alias | |
756 | ac_cv_env_target_alias_set=${target_alias+set} | |
757 | ac_cv_env_target_alias_value=$target_alias | |
758 | ac_env_CC_set=${CC+set} | |
759 | ac_env_CC_value=$CC | |
760 | ac_cv_env_CC_set=${CC+set} | |
761 | ac_cv_env_CC_value=$CC | |
762 | ac_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_env_CFLAGS_value=$CFLAGS | |
764 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
765 | ac_cv_env_CFLAGS_value=$CFLAGS | |
766 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
769 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
770 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
773 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
774 | ac_env_CPP_set=${CPP+set} | |
775 | ac_env_CPP_value=$CPP | |
776 | ac_cv_env_CPP_set=${CPP+set} | |
777 | ac_cv_env_CPP_value=$CPP | |
c906108c | 778 | |
bec39cab AC |
779 | # |
780 | # Report the --help message. | |
781 | # | |
782 | if test "$ac_init_help" = "long"; then | |
783 | # Omit some internal or obsolete options to make the list less imposing. | |
784 | # This message is too long to be a string in the A/UX 3.1 sh. | |
785 | cat <<_ACEOF | |
786 | \`configure' configures this package to adapt to many kinds of systems. | |
787 | ||
788 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
789 | ||
790 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
791 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
792 | ||
793 | Defaults for the options are specified in brackets. | |
794 | ||
795 | Configuration: | |
796 | -h, --help display this help and exit | |
797 | --help=short display options specific to this package | |
798 | --help=recursive display the short help of all the included packages | |
799 | -V, --version display version information and exit | |
800 | -q, --quiet, --silent do not print \`checking...' messages | |
801 | --cache-file=FILE cache test results in FILE [disabled] | |
802 | -C, --config-cache alias for \`--cache-file=config.cache' | |
803 | -n, --no-create do not create output files | |
804 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
805 | ||
806 | _ACEOF | |
807 | ||
808 | cat <<_ACEOF | |
809 | Installation directories: | |
810 | --prefix=PREFIX install architecture-independent files in PREFIX | |
811 | [$ac_default_prefix] | |
812 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
813 | [PREFIX] | |
814 | ||
815 | By default, \`make install' will install all the files in | |
816 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
817 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
818 | for instance \`--prefix=\$HOME'. | |
819 | ||
820 | For better control, use the options below. | |
821 | ||
822 | Fine tuning of the installation directories: | |
823 | --bindir=DIR user executables [EPREFIX/bin] | |
824 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
825 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
826 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
827 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
828 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
829 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
830 | --libdir=DIR object code libraries [EPREFIX/lib] | |
831 | --includedir=DIR C header files [PREFIX/include] | |
832 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
833 | --infodir=DIR info documentation [PREFIX/info] | |
834 | --mandir=DIR man documentation [PREFIX/man] | |
835 | _ACEOF | |
836 | ||
837 | cat <<\_ACEOF | |
838 | ||
839 | Program names: | |
840 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
841 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
842 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
843 | ||
844 | X features: | |
845 | --x-includes=DIR X include files are in DIR | |
846 | --x-libraries=DIR X library files are in DIR | |
847 | ||
848 | System types: | |
849 | --build=BUILD configure for building on BUILD [guessed] | |
850 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
851 | --target=TARGET configure for building compilers for TARGET [HOST] | |
852 | _ACEOF | |
853 | fi | |
854 | ||
855 | if test -n "$ac_init_help"; then | |
856 | ||
857 | cat <<\_ACEOF | |
858 | ||
859 | Optional Features: | |
860 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
861 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85981d60 AC |
862 | --enable-maintainer-mode enable make rules and dependencies not useful |
863 | (and sometimes confusing) to the casual installer | |
bec39cab AC |
864 | --disable-nls do not use Native Language Support |
865 | --disable-gdbcli disable command-line interface (CLI) | |
866 | --disable-gdbmi disable machine-interface (MI) | |
867 | --enable-tui enable full-screen terminal user interface (TUI) | |
868 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
869 | --enable-profiling enable profiling of GDB | |
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 | |
994 | cd $ac_popdir | |
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); } && | |
1936 | { ac_try='test -z "$ac_c_werror_flag" | |
1937 | || test ! -s conftest.err' | |
1938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1939 | (eval $ac_try) 2>&5 | |
1940 | ac_status=$? | |
1941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1942 | (exit $ac_status); }; } && | |
1943 | { ac_try='test -s conftest.$ac_objext' | |
1944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1945 | (eval $ac_try) 2>&5 | |
1946 | ac_status=$? | |
1947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1948 | (exit $ac_status); }; }; then | |
1949 | ac_compiler_gnu=yes | |
1950 | else | |
1951 | echo "$as_me: failed program was:" >&5 | |
1952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1953 | ||
1954 | ac_compiler_gnu=no | |
1955 | fi | |
1956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1957 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1958 | ||
1959 | fi | |
1960 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
1961 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1962 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1963 | ac_test_CFLAGS=${CFLAGS+set} | |
1964 | ac_save_CFLAGS=$CFLAGS | |
1965 | CFLAGS="-g" | |
1966 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1967 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1968 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1970 | else | |
1971 | cat >conftest.$ac_ext <<_ACEOF | |
1972 | /* confdefs.h. */ | |
1973 | _ACEOF | |
1974 | cat confdefs.h >>conftest.$ac_ext | |
1975 | cat >>conftest.$ac_ext <<_ACEOF | |
1976 | /* end confdefs.h. */ | |
1977 | ||
1978 | int | |
1979 | main () | |
1980 | { | |
1981 | ||
1982 | ; | |
1983 | return 0; | |
1984 | } | |
1985 | _ACEOF | |
1986 | rm -f conftest.$ac_objext | |
1987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1988 | (eval $ac_compile) 2>conftest.er1 | |
1989 | ac_status=$? | |
1990 | grep -v '^ *+' conftest.er1 >conftest.err | |
1991 | rm -f conftest.er1 | |
1992 | cat conftest.err >&5 | |
1993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1994 | (exit $ac_status); } && | |
1995 | { ac_try='test -z "$ac_c_werror_flag" | |
1996 | || test ! -s conftest.err' | |
1997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1998 | (eval $ac_try) 2>&5 | |
1999 | ac_status=$? | |
2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2001 | (exit $ac_status); }; } && | |
2002 | { ac_try='test -s conftest.$ac_objext' | |
2003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2004 | (eval $ac_try) 2>&5 | |
2005 | ac_status=$? | |
2006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2007 | (exit $ac_status); }; }; then | |
c906108c SS |
2008 | ac_cv_prog_cc_g=yes |
2009 | else | |
bec39cab AC |
2010 | echo "$as_me: failed program was:" >&5 |
2011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2012 | |
bec39cab | 2013 | ac_cv_prog_cc_g=no |
c906108c | 2014 | fi |
bec39cab AC |
2015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2016 | fi | |
2017 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2018 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2019 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2020 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2021 | elif test $ac_cv_prog_cc_g = yes; then |
2022 | if test "$GCC" = yes; then | |
2023 | CFLAGS="-g -O2" | |
2024 | else | |
2025 | CFLAGS="-g" | |
2026 | fi | |
2027 | else | |
2028 | if test "$GCC" = yes; then | |
2029 | CFLAGS="-O2" | |
2030 | else | |
2031 | CFLAGS= | |
2032 | fi | |
2033 | fi | |
bec39cab AC |
2034 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2035 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2036 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2038 | else | |
2039 | ac_cv_prog_cc_stdc=no | |
2040 | ac_save_CC=$CC | |
2041 | cat >conftest.$ac_ext <<_ACEOF | |
2042 | /* confdefs.h. */ | |
2043 | _ACEOF | |
2044 | cat confdefs.h >>conftest.$ac_ext | |
2045 | cat >>conftest.$ac_ext <<_ACEOF | |
2046 | /* end confdefs.h. */ | |
c906108c SS |
2047 | #include <stdarg.h> |
2048 | #include <stdio.h> | |
2049 | #include <sys/types.h> | |
2050 | #include <sys/stat.h> | |
2051 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2052 | struct buf { int x; }; | |
2053 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2054 | static char *e (p, i) | |
2055 | char **p; | |
2056 | int i; | |
2057 | { | |
2058 | return p[i]; | |
2059 | } | |
2060 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2061 | { | |
2062 | char *s; | |
2063 | va_list v; | |
2064 | va_start (v,p); | |
2065 | s = g (p, va_arg (v,int)); | |
2066 | va_end (v); | |
2067 | return s; | |
2068 | } | |
bec39cab AC |
2069 | |
2070 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2071 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2072 | These don't provoke an error unfortunately, instead are silently treated | |
2073 | as 'x'. The following induces an error, until -std1 is added to get | |
2074 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2075 | array size at least. It's necessary to write '\x00'==0 to get something | |
2076 | that's true only with -std1. */ | |
2077 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2078 | ||
c906108c SS |
2079 | int test (int i, double x); |
2080 | struct s1 {int (*f) (int a);}; | |
2081 | struct s2 {int (*f) (double a);}; | |
2082 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2083 | int argc; | |
2084 | char **argv; | |
bec39cab AC |
2085 | int |
2086 | main () | |
2087 | { | |
c906108c | 2088 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2089 | ; |
2090 | return 0; | |
2091 | } | |
2092 | _ACEOF | |
2093 | # Don't try gcc -ansi; that turns off useful extensions and | |
2094 | # breaks some systems' header files. | |
2095 | # AIX -qlanglvl=ansi | |
2096 | # Ultrix and OSF/1 -std1 | |
2097 | # HP-UX 10.20 and later -Ae | |
2098 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2099 | # SVR4 -Xc -D__EXTENSIONS__ | |
2100 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2101 | do | |
2102 | CC="$ac_save_CC $ac_arg" | |
2103 | rm -f conftest.$ac_objext | |
2104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2105 | (eval $ac_compile) 2>conftest.er1 | |
2106 | ac_status=$? | |
2107 | grep -v '^ *+' conftest.er1 >conftest.err | |
2108 | rm -f conftest.er1 | |
2109 | cat conftest.err >&5 | |
2110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2111 | (exit $ac_status); } && | |
2112 | { ac_try='test -z "$ac_c_werror_flag" | |
2113 | || test ! -s conftest.err' | |
2114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2115 | (eval $ac_try) 2>&5 | |
2116 | ac_status=$? | |
2117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2118 | (exit $ac_status); }; } && | |
2119 | { ac_try='test -s conftest.$ac_objext' | |
2120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2121 | (eval $ac_try) 2>&5 | |
2122 | ac_status=$? | |
2123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2124 | (exit $ac_status); }; }; then | |
2125 | ac_cv_prog_cc_stdc=$ac_arg | |
2126 | break | |
c906108c | 2127 | else |
bec39cab AC |
2128 | echo "$as_me: failed program was:" >&5 |
2129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2130 | ||
c906108c | 2131 | fi |
bec39cab | 2132 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2133 | done |
bec39cab AC |
2134 | rm -f conftest.$ac_ext conftest.$ac_objext |
2135 | CC=$ac_save_CC | |
c906108c SS |
2136 | |
2137 | fi | |
2138 | ||
bec39cab AC |
2139 | case "x$ac_cv_prog_cc_stdc" in |
2140 | x|xno) | |
2141 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2142 | echo "${ECHO_T}none needed" >&6 ;; | |
2143 | *) | |
2144 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2145 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2146 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2147 | esac |
2148 | ||
bec39cab AC |
2149 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2150 | # in C++ we need to declare it. In case someone uses the same compiler | |
2151 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2152 | # the declaration of exit, since it's the most demanding environment. | |
2153 | cat >conftest.$ac_ext <<_ACEOF | |
2154 | #ifndef __cplusplus | |
2155 | choke me | |
2156 | #endif | |
2157 | _ACEOF | |
2158 | rm -f conftest.$ac_objext | |
2159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2160 | (eval $ac_compile) 2>conftest.er1 | |
2161 | ac_status=$? | |
2162 | grep -v '^ *+' conftest.er1 >conftest.err | |
2163 | rm -f conftest.er1 | |
2164 | cat conftest.err >&5 | |
2165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2166 | (exit $ac_status); } && | |
2167 | { ac_try='test -z "$ac_c_werror_flag" | |
2168 | || test ! -s conftest.err' | |
2169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2170 | (eval $ac_try) 2>&5 | |
2171 | ac_status=$? | |
2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2173 | (exit $ac_status); }; } && | |
2174 | { ac_try='test -s conftest.$ac_objext' | |
2175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2176 | (eval $ac_try) 2>&5 | |
2177 | ac_status=$? | |
2178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2179 | (exit $ac_status); }; }; then | |
2180 | for ac_declaration in \ | |
2181 | '' \ | |
2182 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2183 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2184 | 'extern "C" void exit (int) throw ();' \ | |
2185 | 'extern "C" void exit (int);' \ | |
2186 | 'void exit (int);' | |
2187 | do | |
2188 | cat >conftest.$ac_ext <<_ACEOF | |
2189 | /* confdefs.h. */ | |
2190 | _ACEOF | |
2191 | cat confdefs.h >>conftest.$ac_ext | |
2192 | cat >>conftest.$ac_ext <<_ACEOF | |
2193 | /* end confdefs.h. */ | |
2194 | $ac_declaration | |
2195 | #include <stdlib.h> | |
2196 | int | |
2197 | main () | |
2198 | { | |
2199 | exit (42); | |
2200 | ; | |
2201 | return 0; | |
2202 | } | |
2203 | _ACEOF | |
2204 | rm -f conftest.$ac_objext | |
2205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2206 | (eval $ac_compile) 2>conftest.er1 | |
2207 | ac_status=$? | |
2208 | grep -v '^ *+' conftest.er1 >conftest.err | |
2209 | rm -f conftest.er1 | |
2210 | cat conftest.err >&5 | |
2211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2212 | (exit $ac_status); } && | |
2213 | { ac_try='test -z "$ac_c_werror_flag" | |
2214 | || test ! -s conftest.err' | |
2215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2216 | (eval $ac_try) 2>&5 | |
2217 | ac_status=$? | |
2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2219 | (exit $ac_status); }; } && | |
2220 | { ac_try='test -s conftest.$ac_objext' | |
2221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2222 | (eval $ac_try) 2>&5 | |
2223 | ac_status=$? | |
2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2225 | (exit $ac_status); }; }; then | |
2226 | : | |
2227 | else | |
2228 | echo "$as_me: failed program was:" >&5 | |
2229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2230 | |
bec39cab | 2231 | continue |
c906108c | 2232 | fi |
bec39cab AC |
2233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2234 | cat >conftest.$ac_ext <<_ACEOF | |
2235 | /* confdefs.h. */ | |
2236 | _ACEOF | |
2237 | cat confdefs.h >>conftest.$ac_ext | |
2238 | cat >>conftest.$ac_ext <<_ACEOF | |
2239 | /* end confdefs.h. */ | |
2240 | $ac_declaration | |
2241 | int | |
2242 | main () | |
2243 | { | |
2244 | exit (42); | |
2245 | ; | |
2246 | return 0; | |
2247 | } | |
2248 | _ACEOF | |
2249 | rm -f conftest.$ac_objext | |
2250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2251 | (eval $ac_compile) 2>conftest.er1 | |
2252 | ac_status=$? | |
2253 | grep -v '^ *+' conftest.er1 >conftest.err | |
2254 | rm -f conftest.er1 | |
2255 | cat conftest.err >&5 | |
2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2257 | (exit $ac_status); } && | |
2258 | { ac_try='test -z "$ac_c_werror_flag" | |
2259 | || test ! -s conftest.err' | |
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); }; } && | |
2265 | { ac_try='test -s conftest.$ac_objext' | |
2266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2267 | (eval $ac_try) 2>&5 | |
2268 | ac_status=$? | |
2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2270 | (exit $ac_status); }; }; then | |
2271 | break | |
2272 | else | |
2273 | echo "$as_me: failed program was:" >&5 | |
2274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2275 | |
bec39cab AC |
2276 | fi |
2277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2278 | done | |
2279 | rm -f conftest* | |
2280 | if test -n "$ac_declaration"; then | |
2281 | echo '#ifdef __cplusplus' >>confdefs.h | |
2282 | echo $ac_declaration >>confdefs.h | |
2283 | echo '#endif' >>confdefs.h | |
c906108c SS |
2284 | fi |
2285 | ||
bec39cab AC |
2286 | else |
2287 | echo "$as_me: failed program was:" >&5 | |
2288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2289 | |
bec39cab AC |
2290 | fi |
2291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2292 | ac_ext=c | |
2293 | ac_cpp='$CPP $CPPFLAGS' | |
2294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2297 | |
60ca704f | 2298 | |
bec39cab AC |
2299 | cat >>confdefs.h <<\_ACEOF |
2300 | #define _GNU_SOURCE 1 | |
2301 | _ACEOF | |
c906108c SS |
2302 | |
2303 | ||
8bb2c122 | 2304 | |
bec39cab AC |
2305 | ac_ext=c |
2306 | ac_cpp='$CPP $CPPFLAGS' | |
2307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2310 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2311 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2312 | # On Suns, sometimes $CPP names a directory. | |
2313 | if test -n "$CPP" && test -d "$CPP"; then | |
2314 | CPP= | |
8bb2c122 | 2315 | fi |
bec39cab AC |
2316 | if test -z "$CPP"; then |
2317 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2319 | else | |
2320 | # Double quotes because CPP needs to be expanded | |
2321 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2322 | do | |
2323 | ac_preproc_ok=false | |
2324 | for ac_c_preproc_warn_flag in '' yes | |
2325 | do | |
2326 | # Use a header file that comes with gcc, so configuring glibc | |
2327 | # with a fresh cross-compiler works. | |
2328 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2329 | # <limits.h> exists even on freestanding compilers. | |
2330 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2331 | # not just through cpp. "Syntax error" is here to catch this case. | |
2332 | cat >conftest.$ac_ext <<_ACEOF | |
2333 | /* confdefs.h. */ | |
2334 | _ACEOF | |
2335 | cat confdefs.h >>conftest.$ac_ext | |
2336 | cat >>conftest.$ac_ext <<_ACEOF | |
2337 | /* end confdefs.h. */ | |
2338 | #ifdef __STDC__ | |
2339 | # include <limits.h> | |
2340 | #else | |
2341 | # include <assert.h> | |
2342 | #endif | |
2343 | Syntax error | |
2344 | _ACEOF | |
2345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2347 | ac_status=$? | |
2348 | grep -v '^ *+' conftest.er1 >conftest.err | |
2349 | rm -f conftest.er1 | |
2350 | cat conftest.err >&5 | |
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2352 | (exit $ac_status); } >/dev/null; then | |
2353 | if test -s conftest.err; then | |
2354 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2356 | else | |
2357 | ac_cpp_err= | |
2358 | fi | |
8bb2c122 | 2359 | else |
bec39cab | 2360 | ac_cpp_err=yes |
8bb2c122 | 2361 | fi |
bec39cab AC |
2362 | if test -z "$ac_cpp_err"; then |
2363 | : | |
8bb2c122 | 2364 | else |
bec39cab AC |
2365 | echo "$as_me: failed program was:" >&5 |
2366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2367 | ||
2368 | # Broken: fails on valid input. | |
2369 | continue | |
2370 | fi | |
2371 | rm -f conftest.err conftest.$ac_ext | |
2372 | ||
2373 | # OK, works on sane cases. Now check whether non-existent headers | |
2374 | # can be detected and how. | |
2375 | cat >conftest.$ac_ext <<_ACEOF | |
2376 | /* confdefs.h. */ | |
2377 | _ACEOF | |
2378 | cat confdefs.h >>conftest.$ac_ext | |
2379 | cat >>conftest.$ac_ext <<_ACEOF | |
2380 | /* end confdefs.h. */ | |
2381 | #include <ac_nonexistent.h> | |
2382 | _ACEOF | |
2383 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2384 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2385 | ac_status=$? | |
2386 | grep -v '^ *+' conftest.er1 >conftest.err | |
2387 | rm -f conftest.er1 | |
2388 | cat conftest.err >&5 | |
2389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2390 | (exit $ac_status); } >/dev/null; then | |
2391 | if test -s conftest.err; then | |
2392 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2393 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2394 | else | |
2395 | ac_cpp_err= | |
2396 | fi | |
8bb2c122 | 2397 | else |
bec39cab | 2398 | ac_cpp_err=yes |
8bb2c122 | 2399 | fi |
bec39cab AC |
2400 | if test -z "$ac_cpp_err"; then |
2401 | # Broken: success on invalid input. | |
2402 | continue | |
8bb2c122 | 2403 | else |
bec39cab AC |
2404 | echo "$as_me: failed program was:" >&5 |
2405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2406 | |
bec39cab AC |
2407 | # Passes both tests. |
2408 | ac_preproc_ok=: | |
2409 | break | |
8bb2c122 | 2410 | fi |
bec39cab | 2411 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2412 | |
bec39cab AC |
2413 | done |
2414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2415 | rm -f conftest.err conftest.$ac_ext | |
2416 | if $ac_preproc_ok; then | |
2417 | break | |
2418 | fi | |
8bb2c122 | 2419 | |
bec39cab AC |
2420 | done |
2421 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2422 | |
c906108c | 2423 | fi |
bec39cab AC |
2424 | CPP=$ac_cv_prog_CPP |
2425 | else | |
2426 | ac_cv_prog_CPP=$CPP | |
c906108c | 2427 | fi |
bec39cab AC |
2428 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2429 | echo "${ECHO_T}$CPP" >&6 | |
2430 | ac_preproc_ok=false | |
2431 | for ac_c_preproc_warn_flag in '' yes | |
2432 | do | |
2433 | # Use a header file that comes with gcc, so configuring glibc | |
2434 | # with a fresh cross-compiler works. | |
2435 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2436 | # <limits.h> exists even on freestanding compilers. | |
2437 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2438 | # not just through cpp. "Syntax error" is here to catch this case. | |
2439 | cat >conftest.$ac_ext <<_ACEOF | |
2440 | /* confdefs.h. */ | |
2441 | _ACEOF | |
2442 | cat confdefs.h >>conftest.$ac_ext | |
2443 | cat >>conftest.$ac_ext <<_ACEOF | |
2444 | /* end confdefs.h. */ | |
2445 | #ifdef __STDC__ | |
2446 | # include <limits.h> | |
2447 | #else | |
2448 | # include <assert.h> | |
2449 | #endif | |
2450 | Syntax error | |
2451 | _ACEOF | |
2452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2454 | ac_status=$? | |
2455 | grep -v '^ *+' conftest.er1 >conftest.err | |
2456 | rm -f conftest.er1 | |
2457 | cat conftest.err >&5 | |
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2459 | (exit $ac_status); } >/dev/null; then | |
2460 | if test -s conftest.err; then | |
2461 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2462 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2463 | else | |
2464 | ac_cpp_err= | |
2465 | fi | |
c906108c | 2466 | else |
bec39cab | 2467 | ac_cpp_err=yes |
c906108c | 2468 | fi |
bec39cab AC |
2469 | if test -z "$ac_cpp_err"; then |
2470 | : | |
c906108c | 2471 | else |
bec39cab AC |
2472 | echo "$as_me: failed program was:" >&5 |
2473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2474 | ||
2475 | # Broken: fails on valid input. | |
2476 | continue | |
2477 | fi | |
2478 | rm -f conftest.err conftest.$ac_ext | |
2479 | ||
2480 | # OK, works on sane cases. Now check whether non-existent headers | |
2481 | # can be detected and how. | |
2482 | cat >conftest.$ac_ext <<_ACEOF | |
2483 | /* confdefs.h. */ | |
2484 | _ACEOF | |
2485 | cat confdefs.h >>conftest.$ac_ext | |
2486 | cat >>conftest.$ac_ext <<_ACEOF | |
2487 | /* end confdefs.h. */ | |
2488 | #include <ac_nonexistent.h> | |
2489 | _ACEOF | |
2490 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2491 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2492 | ac_status=$? | |
2493 | grep -v '^ *+' conftest.er1 >conftest.err | |
2494 | rm -f conftest.er1 | |
2495 | cat conftest.err >&5 | |
2496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2497 | (exit $ac_status); } >/dev/null; then | |
2498 | if test -s conftest.err; then | |
2499 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2500 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2501 | else | |
2502 | ac_cpp_err= | |
2503 | fi | |
c906108c | 2504 | else |
bec39cab | 2505 | ac_cpp_err=yes |
c906108c | 2506 | fi |
bec39cab AC |
2507 | if test -z "$ac_cpp_err"; then |
2508 | # Broken: success on invalid input. | |
2509 | continue | |
c906108c | 2510 | else |
bec39cab AC |
2511 | echo "$as_me: failed program was:" >&5 |
2512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2513 | |
bec39cab AC |
2514 | # Passes both tests. |
2515 | ac_preproc_ok=: | |
2516 | break | |
c906108c | 2517 | fi |
bec39cab | 2518 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2519 | |
bec39cab AC |
2520 | done |
2521 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2522 | rm -f conftest.err conftest.$ac_ext | |
2523 | if $ac_preproc_ok; then | |
c906108c SS |
2524 | : |
2525 | else | |
bec39cab AC |
2526 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2527 | See \`config.log' for more details." >&5 | |
2528 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2529 | See \`config.log' for more details." >&2;} | |
2530 | { (exit 1); exit 1; }; } | |
c906108c | 2531 | fi |
c906108c | 2532 | |
bec39cab AC |
2533 | ac_ext=c |
2534 | ac_cpp='$CPP $CPPFLAGS' | |
2535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2538 | ||
2539 | ||
2540 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2541 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2542 | if test "${ac_cv_prog_egrep+set}" = set; then | |
2543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2544 | else | |
2545 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2546 | then ac_cv_prog_egrep='grep -E' | |
2547 | else ac_cv_prog_egrep='egrep' | |
2548 | fi | |
c906108c | 2549 | fi |
bec39cab AC |
2550 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2551 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2552 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2553 | |
bec39cab AC |
2554 | |
2555 | ||
2556 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
2557 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
2558 | cat >conftest.$ac_ext <<_ACEOF | |
2559 | /* confdefs.h. */ | |
2560 | _ACEOF | |
2561 | cat confdefs.h >>conftest.$ac_ext | |
2562 | cat >>conftest.$ac_ext <<_ACEOF | |
2563 | /* end confdefs.h. */ | |
2564 | #ifdef _AIX | |
2565 | yes | |
2566 | #endif | |
2567 | ||
2568 | _ACEOF | |
c906108c | 2569 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab AC |
2570 | $EGREP "yes" >/dev/null 2>&1; then |
2571 | echo "$as_me:$LINENO: result: yes" >&5 | |
2572 | echo "${ECHO_T}yes" >&6 | |
2573 | cat >>confdefs.h <<\_ACEOF | |
2574 | #define _ALL_SOURCE 1 | |
2575 | _ACEOF | |
2576 | ||
c906108c | 2577 | else |
bec39cab AC |
2578 | echo "$as_me:$LINENO: result: no" >&5 |
2579 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2580 | fi |
2581 | rm -f conftest* | |
2582 | ||
c906108c | 2583 | |
bec39cab AC |
2584 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2585 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2586 | if test "${ac_cv_search_strerror+set}" = set; then | |
2587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2588 | else |
bec39cab AC |
2589 | ac_func_search_save_LIBS=$LIBS |
2590 | ac_cv_search_strerror=no | |
2591 | cat >conftest.$ac_ext <<_ACEOF | |
2592 | /* confdefs.h. */ | |
2593 | _ACEOF | |
2594 | cat confdefs.h >>conftest.$ac_ext | |
2595 | cat >>conftest.$ac_ext <<_ACEOF | |
2596 | /* end confdefs.h. */ | |
c906108c | 2597 | |
bec39cab AC |
2598 | /* Override any gcc2 internal prototype to avoid an error. */ |
2599 | #ifdef __cplusplus | |
2600 | extern "C" | |
2601 | #endif | |
2602 | /* We use char because int might match the return type of a gcc2 | |
2603 | builtin and then its argument prototype would still apply. */ | |
2604 | char strerror (); | |
2605 | int | |
2606 | main () | |
2607 | { | |
2608 | strerror (); | |
2609 | ; | |
2610 | return 0; | |
2611 | } | |
2612 | _ACEOF | |
2613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2615 | (eval $ac_link) 2>conftest.er1 | |
2616 | ac_status=$? | |
2617 | grep -v '^ *+' conftest.er1 >conftest.err | |
2618 | rm -f conftest.er1 | |
2619 | cat conftest.err >&5 | |
2620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2621 | (exit $ac_status); } && | |
2622 | { ac_try='test -z "$ac_c_werror_flag" | |
2623 | || test ! -s conftest.err' | |
2624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2625 | (eval $ac_try) 2>&5 | |
2626 | ac_status=$? | |
2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2628 | (exit $ac_status); }; } && | |
2629 | { ac_try='test -s conftest$ac_exeext' | |
2630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2631 | (eval $ac_try) 2>&5 | |
2632 | ac_status=$? | |
2633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2634 | (exit $ac_status); }; }; then | |
2635 | ac_cv_search_strerror="none required" | |
2636 | else | |
2637 | echo "$as_me: failed program was:" >&5 | |
2638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2639 | ||
2640 | fi | |
2641 | rm -f conftest.err conftest.$ac_objext \ | |
2642 | conftest$ac_exeext conftest.$ac_ext | |
2643 | if test "$ac_cv_search_strerror" = no; then | |
2644 | for ac_lib in cposix; do | |
2645 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2646 | cat >conftest.$ac_ext <<_ACEOF | |
2647 | /* confdefs.h. */ | |
2648 | _ACEOF | |
2649 | cat confdefs.h >>conftest.$ac_ext | |
2650 | cat >>conftest.$ac_ext <<_ACEOF | |
2651 | /* end confdefs.h. */ | |
2652 | ||
2653 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2654 | #ifdef __cplusplus | |
2655 | extern "C" | |
2656 | #endif | |
2657 | /* We use char because int might match the return type of a gcc2 | |
2658 | builtin and then its argument prototype would still apply. */ | |
2659 | char strerror (); | |
2660 | int | |
2661 | main () | |
2662 | { | |
2663 | strerror (); | |
2664 | ; | |
2665 | return 0; | |
2666 | } | |
2667 | _ACEOF | |
2668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2670 | (eval $ac_link) 2>conftest.er1 | |
2671 | ac_status=$? | |
2672 | grep -v '^ *+' conftest.er1 >conftest.err | |
2673 | rm -f conftest.er1 | |
2674 | cat conftest.err >&5 | |
2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2676 | (exit $ac_status); } && | |
2677 | { ac_try='test -z "$ac_c_werror_flag" | |
2678 | || test ! -s conftest.err' | |
2679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2680 | (eval $ac_try) 2>&5 | |
2681 | ac_status=$? | |
2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2683 | (exit $ac_status); }; } && | |
2684 | { ac_try='test -s conftest$ac_exeext' | |
2685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2686 | (eval $ac_try) 2>&5 | |
2687 | ac_status=$? | |
2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2689 | (exit $ac_status); }; }; then | |
2690 | ac_cv_search_strerror="-l$ac_lib" | |
2691 | break | |
c906108c | 2692 | else |
bec39cab AC |
2693 | echo "$as_me: failed program was:" >&5 |
2694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2695 | |
2696 | fi | |
bec39cab AC |
2697 | rm -f conftest.err conftest.$ac_objext \ |
2698 | conftest$ac_exeext conftest.$ac_ext | |
2699 | done | |
c906108c | 2700 | fi |
bec39cab | 2701 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2702 | fi |
bec39cab AC |
2703 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2704 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2705 | if test "$ac_cv_search_strerror" != no; then | |
2706 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2707 | ||
c906108c SS |
2708 | fi |
2709 | ||
c906108c | 2710 | |
c906108c | 2711 | |
bec39cab AC |
2712 | |
2713 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 | |
2714 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
2715 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
2716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2717 | else |
bec39cab AC |
2718 | am_cv_prog_cc_stdc=no |
2719 | ac_save_CC="$CC" | |
2720 | # Don't try gcc -ansi; that turns off useful extensions and | |
2721 | # breaks some systems' header files. | |
2722 | # AIX -qlanglvl=ansi | |
2723 | # Ultrix and OSF/1 -std1 | |
2724 | # HP-UX 10.20 and later -Ae | |
2725 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2726 | # SVR4 -Xc -D__EXTENSIONS__ | |
2727 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2728 | do | |
2729 | CC="$ac_save_CC $ac_arg" | |
2730 | cat >conftest.$ac_ext <<_ACEOF | |
2731 | /* confdefs.h. */ | |
2732 | _ACEOF | |
2733 | cat confdefs.h >>conftest.$ac_ext | |
2734 | cat >>conftest.$ac_ext <<_ACEOF | |
2735 | /* end confdefs.h. */ | |
2736 | #include <stdarg.h> | |
2737 | #include <stdio.h> | |
2738 | #include <sys/types.h> | |
2739 | #include <sys/stat.h> | |
2740 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2741 | struct buf { int x; }; | |
2742 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2743 | static char *e (p, i) | |
2744 | char **p; | |
2745 | int i; | |
2746 | { | |
2747 | return p[i]; | |
2748 | } | |
2749 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2750 | { | |
2751 | char *s; | |
2752 | va_list v; | |
2753 | va_start (v,p); | |
2754 | s = g (p, va_arg (v,int)); | |
2755 | va_end (v); | |
2756 | return s; | |
2757 | } | |
2758 | int test (int i, double x); | |
2759 | struct s1 {int (*f) (int a);}; | |
2760 | struct s2 {int (*f) (double a);}; | |
2761 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2762 | int argc; | |
2763 | char **argv; | |
c906108c | 2764 | |
bec39cab AC |
2765 | int |
2766 | main () | |
2767 | { | |
c906108c | 2768 | |
bec39cab | 2769 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 2770 | |
bec39cab AC |
2771 | ; |
2772 | return 0; | |
2773 | } | |
2774 | _ACEOF | |
2775 | rm -f conftest.$ac_objext | |
2776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2777 | (eval $ac_compile) 2>conftest.er1 | |
2778 | ac_status=$? | |
2779 | grep -v '^ *+' conftest.er1 >conftest.err | |
2780 | rm -f conftest.er1 | |
2781 | cat conftest.err >&5 | |
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2783 | (exit $ac_status); } && | |
2784 | { ac_try='test -z "$ac_c_werror_flag" | |
2785 | || test ! -s conftest.err' | |
2786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2787 | (eval $ac_try) 2>&5 | |
2788 | ac_status=$? | |
2789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2790 | (exit $ac_status); }; } && | |
2791 | { ac_try='test -s conftest.$ac_objext' | |
2792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2793 | (eval $ac_try) 2>&5 | |
2794 | ac_status=$? | |
2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2796 | (exit $ac_status); }; }; then | |
2797 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 2798 | else |
bec39cab AC |
2799 | echo "$as_me: failed program was:" >&5 |
2800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2801 | |
2802 | fi | |
bec39cab AC |
2803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2804 | done | |
2805 | CC="$ac_save_CC" | |
c906108c SS |
2806 | |
2807 | fi | |
2808 | ||
bec39cab AC |
2809 | if test -z "$am_cv_prog_cc_stdc"; then |
2810 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2811 | echo "${ECHO_T}none needed" >&6 | |
c906108c | 2812 | else |
bec39cab AC |
2813 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
2814 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
c906108c | 2815 | fi |
bec39cab AC |
2816 | case "x$am_cv_prog_cc_stdc" in |
2817 | x|xno) ;; | |
2818 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2819 | esac | |
c906108c | 2820 | |
c906108c | 2821 | |
bec39cab AC |
2822 | ac_aux_dir= |
2823 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
2824 | if test -f $ac_dir/install-sh; then | |
2825 | ac_aux_dir=$ac_dir | |
2826 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2827 | break | |
2828 | elif test -f $ac_dir/install.sh; then | |
2829 | ac_aux_dir=$ac_dir | |
2830 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2831 | break | |
2832 | elif test -f $ac_dir/shtool; then | |
2833 | ac_aux_dir=$ac_dir | |
2834 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2835 | break | |
2836 | fi | |
2837 | done | |
2838 | if test -z "$ac_aux_dir"; then | |
2839 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
2840 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
2841 | { (exit 1); exit 1; }; } | |
c906108c | 2842 | fi |
bec39cab AC |
2843 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2844 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2845 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 2846 | |
bec39cab AC |
2847 | # Make sure we can run config.sub. |
2848 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2849 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2850 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2851 | { (exit 1); exit 1; }; } | |
2852 | ||
2853 | echo "$as_me:$LINENO: checking build system type" >&5 | |
2854 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
2855 | if test "${ac_cv_build+set}" = set; then | |
2856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2857 | else | |
2858 | ac_cv_build_alias=$build_alias | |
2859 | test -z "$ac_cv_build_alias" && | |
2860 | ac_cv_build_alias=`$ac_config_guess` | |
2861 | test -z "$ac_cv_build_alias" && | |
2862 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2863 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2864 | { (exit 1); exit 1; }; } | |
2865 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
2866 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2867 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
2868 | { (exit 1); exit 1; }; } | |
2869 | ||
2870 | fi | |
2871 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2872 | echo "${ECHO_T}$ac_cv_build" >&6 | |
2873 | build=$ac_cv_build | |
2874 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2875 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2876 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2877 | ||
2878 | ||
2879 | echo "$as_me:$LINENO: checking host system type" >&5 | |
2880 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
2881 | if test "${ac_cv_host+set}" = set; then | |
2882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2883 | else | |
2884 | ac_cv_host_alias=$host_alias | |
2885 | test -z "$ac_cv_host_alias" && | |
2886 | ac_cv_host_alias=$ac_cv_build_alias | |
2887 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2888 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2889 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
2890 | { (exit 1); exit 1; }; } | |
2891 | ||
2892 | fi | |
2893 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2894 | echo "${ECHO_T}$ac_cv_host" >&6 | |
2895 | host=$ac_cv_host | |
2896 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2897 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2898 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2899 | ||
2900 | ||
2901 | echo "$as_me:$LINENO: checking target system type" >&5 | |
2902 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
2903 | if test "${ac_cv_target+set}" = set; then | |
2904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2905 | else | |
2906 | ac_cv_target_alias=$target_alias | |
2907 | test "x$ac_cv_target_alias" = "x" && | |
2908 | ac_cv_target_alias=$ac_cv_host_alias | |
2909 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2910 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2911 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
2912 | { (exit 1); exit 1; }; } | |
2913 | ||
2914 | fi | |
2915 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
2916 | echo "${ECHO_T}$ac_cv_target" >&6 | |
2917 | target=$ac_cv_target | |
2918 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2919 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2920 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2921 | |
c906108c | 2922 | |
bec39cab AC |
2923 | # The aliases save the names the user supplied, while $host etc. |
2924 | # will get canonicalized. | |
2925 | test -n "$target_alias" && | |
2926 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2927 | NONENONEs,x,x, && | |
2928 | program_prefix=${target_alias}- | |
c906108c | 2929 | |
c906108c | 2930 | |
bec39cab AC |
2931 | CONFIG_OBS= |
2932 | CONFIG_DEPS= | |
2933 | CONFIG_SRCS= | |
2934 | ENABLE_CFLAGS= | |
c906108c | 2935 | |
bec39cab AC |
2936 | CONFIG_ALL= |
2937 | CONFIG_CLEAN= | |
2938 | CONFIG_INSTALL= | |
2939 | CONFIG_UNINSTALL= | |
2940 | ||
2941 | ||
2942 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2943 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2944 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2945 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2947 | else | |
2948 | cat >conftest.make <<\_ACEOF | |
2949 | all: | |
2950 | @echo 'ac_maketemp="$(MAKE)"' | |
2951 | _ACEOF | |
2952 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2953 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2954 | if test -n "$ac_maketemp"; then | |
2955 | eval ac_cv_prog_make_${ac_make}_set=yes | |
c906108c | 2956 | else |
bec39cab | 2957 | eval ac_cv_prog_make_${ac_make}_set=no |
c906108c | 2958 | fi |
bec39cab AC |
2959 | rm -f conftest.make |
2960 | fi | |
2961 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2962 | echo "$as_me:$LINENO: result: yes" >&5 | |
2963 | echo "${ECHO_T}yes" >&6 | |
2964 | SET_MAKE= | |
2965 | else | |
2966 | echo "$as_me:$LINENO: result: no" >&5 | |
2967 | echo "${ECHO_T}no" >&6 | |
2968 | SET_MAKE="MAKE=${MAKE-make}" | |
c906108c SS |
2969 | fi |
2970 | ||
bec39cab AC |
2971 | if test -n "$ac_tool_prefix"; then |
2972 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2973 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2976 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2978 | else | |
2979 | if test -n "$RANLIB"; then | |
2980 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2981 | else | |
2982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2983 | for as_dir in $PATH | |
2984 | do | |
2985 | IFS=$as_save_IFS | |
2986 | test -z "$as_dir" && as_dir=. | |
2987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2988 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2989 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2991 | break 2 | |
2992 | fi | |
2993 | done | |
2994 | done | |
c906108c | 2995 | |
bec39cab AC |
2996 | fi |
2997 | fi | |
2998 | RANLIB=$ac_cv_prog_RANLIB | |
2999 | if test -n "$RANLIB"; then | |
3000 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3001 | echo "${ECHO_T}$RANLIB" >&6 | |
c906108c | 3002 | else |
bec39cab AC |
3003 | echo "$as_me:$LINENO: result: no" >&5 |
3004 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3005 | fi |
3006 | ||
bec39cab AC |
3007 | fi |
3008 | if test -z "$ac_cv_prog_RANLIB"; then | |
3009 | ac_ct_RANLIB=$RANLIB | |
3010 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3011 | set dummy ranlib; ac_word=$2 | |
3012 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3013 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3014 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3016 | else | |
3017 | if test -n "$ac_ct_RANLIB"; then | |
3018 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3019 | else | |
3020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3021 | for as_dir in $PATH | |
3022 | do | |
3023 | IFS=$as_save_IFS | |
3024 | test -z "$as_dir" && as_dir=. | |
3025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3026 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3027 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3029 | break 2 | |
3030 | fi | |
3031 | done | |
c906108c | 3032 | done |
bec39cab AC |
3033 | |
3034 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3035 | fi | |
3036 | fi | |
3037 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3038 | if test -n "$ac_ct_RANLIB"; then | |
3039 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3040 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3041 | else | |
3042 | echo "$as_me:$LINENO: result: no" >&5 | |
3043 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3044 | fi |
3045 | ||
bec39cab | 3046 | RANLIB=$ac_ct_RANLIB |
c906108c | 3047 | else |
bec39cab AC |
3048 | RANLIB="$ac_cv_prog_RANLIB" |
3049 | fi | |
3050 | ||
3051 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3052 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3053 | if test "${ac_cv_header_stdc+set}" = set; then | |
3054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3055 | else |
bec39cab AC |
3056 | cat >conftest.$ac_ext <<_ACEOF |
3057 | /* confdefs.h. */ | |
3058 | _ACEOF | |
3059 | cat confdefs.h >>conftest.$ac_ext | |
3060 | cat >>conftest.$ac_ext <<_ACEOF | |
3061 | /* end confdefs.h. */ | |
3062 | #include <stdlib.h> | |
3063 | #include <stdarg.h> | |
3064 | #include <string.h> | |
3065 | #include <float.h> | |
3066 | ||
3067 | int | |
c906108c SS |
3068 | main () |
3069 | { | |
bec39cab AC |
3070 | |
3071 | ; | |
3072 | return 0; | |
c906108c | 3073 | } |
bec39cab AC |
3074 | _ACEOF |
3075 | rm -f conftest.$ac_objext | |
3076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3077 | (eval $ac_compile) 2>conftest.er1 | |
3078 | ac_status=$? | |
3079 | grep -v '^ *+' conftest.er1 >conftest.err | |
3080 | rm -f conftest.er1 | |
3081 | cat conftest.err >&5 | |
3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3083 | (exit $ac_status); } && | |
3084 | { ac_try='test -z "$ac_c_werror_flag" | |
3085 | || test ! -s conftest.err' | |
3086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3087 | (eval $ac_try) 2>&5 | |
3088 | ac_status=$? | |
3089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3090 | (exit $ac_status); }; } && | |
3091 | { ac_try='test -s conftest.$ac_objext' | |
3092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3093 | (eval $ac_try) 2>&5 | |
3094 | ac_status=$? | |
3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3096 | (exit $ac_status); }; }; then | |
3097 | ac_cv_header_stdc=yes | |
c906108c | 3098 | else |
bec39cab AC |
3099 | echo "$as_me: failed program was:" >&5 |
3100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3101 | |
bec39cab | 3102 | ac_cv_header_stdc=no |
c906108c | 3103 | fi |
bec39cab | 3104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3105 | |
bec39cab AC |
3106 | if test $ac_cv_header_stdc = yes; then |
3107 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3108 | cat >conftest.$ac_ext <<_ACEOF | |
3109 | /* confdefs.h. */ | |
3110 | _ACEOF | |
3111 | cat confdefs.h >>conftest.$ac_ext | |
3112 | cat >>conftest.$ac_ext <<_ACEOF | |
3113 | /* end confdefs.h. */ | |
3114 | #include <string.h> | |
c906108c | 3115 | |
bec39cab AC |
3116 | _ACEOF |
3117 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3118 | $EGREP "memchr" >/dev/null 2>&1; then | |
3119 | : | |
c906108c | 3120 | else |
bec39cab | 3121 | ac_cv_header_stdc=no |
c906108c | 3122 | fi |
bec39cab | 3123 | rm -f conftest* |
c906108c | 3124 | |
bec39cab | 3125 | fi |
c906108c | 3126 | |
bec39cab AC |
3127 | if test $ac_cv_header_stdc = yes; then |
3128 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3129 | cat >conftest.$ac_ext <<_ACEOF | |
3130 | /* confdefs.h. */ | |
3131 | _ACEOF | |
3132 | cat confdefs.h >>conftest.$ac_ext | |
3133 | cat >>conftest.$ac_ext <<_ACEOF | |
3134 | /* end confdefs.h. */ | |
3135 | #include <stdlib.h> | |
c906108c | 3136 | |
bec39cab AC |
3137 | _ACEOF |
3138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3139 | $EGREP "free" >/dev/null 2>&1; then | |
3140 | : | |
c906108c | 3141 | else |
bec39cab | 3142 | ac_cv_header_stdc=no |
c906108c SS |
3143 | fi |
3144 | rm -f conftest* | |
c906108c | 3145 | |
c906108c | 3146 | fi |
c906108c | 3147 | |
bec39cab AC |
3148 | if test $ac_cv_header_stdc = yes; then |
3149 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
c906108c | 3150 | if test "$cross_compiling" = yes; then |
bec39cab | 3151 | : |
c906108c | 3152 | else |
bec39cab AC |
3153 | cat >conftest.$ac_ext <<_ACEOF |
3154 | /* confdefs.h. */ | |
3155 | _ACEOF | |
3156 | cat confdefs.h >>conftest.$ac_ext | |
3157 | cat >>conftest.$ac_ext <<_ACEOF | |
3158 | /* end confdefs.h. */ | |
3159 | #include <ctype.h> | |
3160 | #if ((' ' & 0x0FF) == 0x020) | |
3161 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3162 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3163 | #else | |
3164 | # define ISLOWER(c) \ | |
3165 | (('a' <= (c) && (c) <= 'i') \ | |
3166 | || ('j' <= (c) && (c) <= 'r') \ | |
3167 | || ('s' <= (c) && (c) <= 'z')) | |
3168 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3169 | #endif | |
c906108c | 3170 | |
bec39cab AC |
3171 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3172 | int | |
3173 | main () | |
3174 | { | |
3175 | int i; | |
3176 | for (i = 0; i < 256; i++) | |
3177 | if (XOR (islower (i), ISLOWER (i)) | |
3178 | || toupper (i) != TOUPPER (i)) | |
3179 | exit(2); | |
3180 | exit (0); | |
3181 | } | |
3182 | _ACEOF | |
3183 | rm -f conftest$ac_exeext | |
3184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3185 | (eval $ac_link) 2>&5 | |
3186 | ac_status=$? | |
3187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3188 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3190 | (eval $ac_try) 2>&5 | |
3191 | ac_status=$? | |
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3193 | (exit $ac_status); }; }; then | |
3194 | : | |
3195 | else | |
3196 | echo "$as_me: program exited with status $ac_status" >&5 | |
3197 | echo "$as_me: failed program was:" >&5 | |
3198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3199 | |
bec39cab AC |
3200 | ( exit $ac_status ) |
3201 | ac_cv_header_stdc=no | |
3202 | fi | |
3203 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3204 | fi | |
3205 | fi | |
3206 | fi | |
3207 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3208 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3209 | if test $ac_cv_header_stdc = yes; then | |
c906108c | 3210 | |
bec39cab AC |
3211 | cat >>confdefs.h <<\_ACEOF |
3212 | #define STDC_HEADERS 1 | |
3213 | _ACEOF | |
c906108c | 3214 | |
bec39cab | 3215 | fi |
c906108c | 3216 | |
bec39cab AC |
3217 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3218 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3219 | if test "${ac_cv_c_const+set}" = set; then | |
3220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3221 | else | |
3222 | cat >conftest.$ac_ext <<_ACEOF | |
3223 | /* confdefs.h. */ | |
3224 | _ACEOF | |
3225 | cat confdefs.h >>conftest.$ac_ext | |
3226 | cat >>conftest.$ac_ext <<_ACEOF | |
3227 | /* end confdefs.h. */ | |
c906108c | 3228 | |
bec39cab AC |
3229 | int |
3230 | main () | |
3231 | { | |
3232 | /* FIXME: Include the comments suggested by Paul. */ | |
3233 | #ifndef __cplusplus | |
3234 | /* Ultrix mips cc rejects this. */ | |
3235 | typedef int charset[2]; | |
3236 | const charset x; | |
3237 | /* SunOS 4.1.1 cc rejects this. */ | |
3238 | char const *const *ccp; | |
3239 | char **p; | |
3240 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3241 | struct point {int x, y;}; | |
3242 | static struct point const zero = {0,0}; | |
3243 | /* AIX XL C 1.02.0.0 rejects this. | |
3244 | It does not let you subtract one const X* pointer from another in | |
3245 | an arm of an if-expression whose if-part is not a constant | |
3246 | expression */ | |
3247 | const char *g = "string"; | |
3248 | ccp = &g + (g ? g-g : 0); | |
3249 | /* HPUX 7.0 cc rejects these. */ | |
3250 | ++ccp; | |
3251 | p = (char**) ccp; | |
3252 | ccp = (char const *const *) p; | |
3253 | { /* SCO 3.2v4 cc rejects this. */ | |
3254 | char *t; | |
3255 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3256 | ||
3257 | *t++ = 0; | |
3258 | } | |
3259 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3260 | int x[] = {25, 17}; | |
3261 | const int *foo = &x[0]; | |
3262 | ++foo; | |
3263 | } | |
3264 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3265 | typedef const int *iptr; | |
3266 | iptr p = 0; | |
3267 | ++p; | |
3268 | } | |
3269 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3270 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3271 | struct s { int j; const int *ap[3]; }; | |
3272 | struct s *b; b->j = 5; | |
3273 | } | |
3274 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3275 | const int foo = 10; | |
3276 | } | |
3277 | #endif | |
c906108c | 3278 | |
bec39cab AC |
3279 | ; |
3280 | return 0; | |
3281 | } | |
3282 | _ACEOF | |
3283 | rm -f conftest.$ac_objext | |
3284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3285 | (eval $ac_compile) 2>conftest.er1 | |
3286 | ac_status=$? | |
3287 | grep -v '^ *+' conftest.er1 >conftest.err | |
3288 | rm -f conftest.er1 | |
3289 | cat conftest.err >&5 | |
3290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3291 | (exit $ac_status); } && | |
3292 | { ac_try='test -z "$ac_c_werror_flag" | |
3293 | || test ! -s conftest.err' | |
3294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3295 | (eval $ac_try) 2>&5 | |
3296 | ac_status=$? | |
3297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3298 | (exit $ac_status); }; } && | |
3299 | { ac_try='test -s conftest.$ac_objext' | |
3300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3301 | (eval $ac_try) 2>&5 | |
3302 | ac_status=$? | |
3303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3304 | (exit $ac_status); }; }; then | |
3305 | ac_cv_c_const=yes | |
c906108c | 3306 | else |
bec39cab AC |
3307 | echo "$as_me: failed program was:" >&5 |
3308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3309 | |
bec39cab AC |
3310 | ac_cv_c_const=no |
3311 | fi | |
3312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3313 | fi |
bec39cab AC |
3314 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3315 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3316 | if test $ac_cv_c_const = no; then | |
c906108c | 3317 | |
bec39cab AC |
3318 | cat >>confdefs.h <<\_ACEOF |
3319 | #define const | |
3320 | _ACEOF | |
c906108c SS |
3321 | |
3322 | fi | |
3323 | ||
bec39cab AC |
3324 | echo "$as_me:$LINENO: checking for inline" >&5 |
3325 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3326 | if test "${ac_cv_c_inline+set}" = set; then | |
3327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3328 | else |
bec39cab AC |
3329 | ac_cv_c_inline=no |
3330 | for ac_kw in inline __inline__ __inline; do | |
3331 | cat >conftest.$ac_ext <<_ACEOF | |
3332 | /* confdefs.h. */ | |
3333 | _ACEOF | |
3334 | cat confdefs.h >>conftest.$ac_ext | |
3335 | cat >>conftest.$ac_ext <<_ACEOF | |
3336 | /* end confdefs.h. */ | |
3337 | #ifndef __cplusplus | |
3338 | typedef int foo_t; | |
3339 | static $ac_kw foo_t static_foo () {return 0; } | |
3340 | $ac_kw foo_t foo () {return 0; } | |
c906108c SS |
3341 | #endif |
3342 | ||
bec39cab AC |
3343 | _ACEOF |
3344 | rm -f conftest.$ac_objext | |
3345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3346 | (eval $ac_compile) 2>conftest.er1 | |
3347 | ac_status=$? | |
3348 | grep -v '^ *+' conftest.er1 >conftest.err | |
3349 | rm -f conftest.er1 | |
3350 | cat conftest.err >&5 | |
3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3352 | (exit $ac_status); } && | |
3353 | { ac_try='test -z "$ac_c_werror_flag" | |
3354 | || test ! -s conftest.err' | |
3355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3356 | (eval $ac_try) 2>&5 | |
3357 | ac_status=$? | |
3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3359 | (exit $ac_status); }; } && | |
3360 | { ac_try='test -s conftest.$ac_objext' | |
3361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3362 | (eval $ac_try) 2>&5 | |
3363 | ac_status=$? | |
3364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3365 | (exit $ac_status); }; }; then | |
3366 | ac_cv_c_inline=$ac_kw; break | |
c906108c | 3367 | else |
bec39cab AC |
3368 | echo "$as_me: failed program was:" >&5 |
3369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3370 | |
c906108c | 3371 | fi |
bec39cab | 3372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
3373 | done |
3374 | ||
bec39cab AC |
3375 | fi |
3376 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3377 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
c906108c | 3378 | |
c906108c | 3379 | |
bec39cab AC |
3380 | case $ac_cv_c_inline in |
3381 | inline | yes) ;; | |
3382 | *) | |
3383 | case $ac_cv_c_inline in | |
3384 | no) ac_val=;; | |
3385 | *) ac_val=$ac_cv_c_inline;; | |
3386 | esac | |
3387 | cat >>confdefs.h <<_ACEOF | |
3388 | #ifndef __cplusplus | |
3389 | #define inline $ac_val | |
c906108c | 3390 | #endif |
bec39cab AC |
3391 | _ACEOF |
3392 | ;; | |
3393 | esac | |
c906108c | 3394 | |
bec39cab | 3395 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
c906108c | 3396 | |
c906108c | 3397 | |
c906108c | 3398 | |
c906108c | 3399 | |
c906108c | 3400 | |
c906108c | 3401 | |
c906108c | 3402 | |
c906108c | 3403 | |
c906108c | 3404 | |
bec39cab AC |
3405 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3406 | inttypes.h stdint.h unistd.h | |
3407 | do | |
3408 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3409 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3410 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3413 | else | |
3414 | cat >conftest.$ac_ext <<_ACEOF | |
3415 | /* confdefs.h. */ | |
3416 | _ACEOF | |
3417 | cat confdefs.h >>conftest.$ac_ext | |
3418 | cat >>conftest.$ac_ext <<_ACEOF | |
3419 | /* end confdefs.h. */ | |
3420 | $ac_includes_default | |
3421 | ||
3422 | #include <$ac_header> | |
3423 | _ACEOF | |
3424 | rm -f conftest.$ac_objext | |
3425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3426 | (eval $ac_compile) 2>conftest.er1 | |
3427 | ac_status=$? | |
3428 | grep -v '^ *+' conftest.er1 >conftest.err | |
3429 | rm -f conftest.er1 | |
3430 | cat conftest.err >&5 | |
3431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3432 | (exit $ac_status); } && | |
3433 | { ac_try='test -z "$ac_c_werror_flag" | |
3434 | || test ! -s conftest.err' | |
3435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3436 | (eval $ac_try) 2>&5 | |
3437 | ac_status=$? | |
3438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3439 | (exit $ac_status); }; } && | |
3440 | { ac_try='test -s conftest.$ac_objext' | |
3441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3442 | (eval $ac_try) 2>&5 | |
3443 | ac_status=$? | |
3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3445 | (exit $ac_status); }; }; then | |
3446 | eval "$as_ac_Header=yes" | |
3447 | else | |
3448 | echo "$as_me: failed program was:" >&5 | |
3449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3450 | ||
3451 | eval "$as_ac_Header=no" | |
3452 | fi | |
3453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3454 | fi | |
3455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3456 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3457 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3458 | cat >>confdefs.h <<_ACEOF | |
3459 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3460 | _ACEOF | |
c906108c | 3461 | |
c906108c SS |
3462 | fi |
3463 | ||
bec39cab | 3464 | done |
c906108c | 3465 | |
c906108c | 3466 | |
bec39cab AC |
3467 | echo "$as_me:$LINENO: checking for off_t" >&5 |
3468 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
3469 | if test "${ac_cv_type_off_t+set}" = set; then | |
3470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3471 | else |
bec39cab AC |
3472 | cat >conftest.$ac_ext <<_ACEOF |
3473 | /* confdefs.h. */ | |
3474 | _ACEOF | |
3475 | cat confdefs.h >>conftest.$ac_ext | |
3476 | cat >>conftest.$ac_ext <<_ACEOF | |
3477 | /* end confdefs.h. */ | |
3478 | $ac_includes_default | |
3479 | int | |
3480 | main () | |
3481 | { | |
3482 | if ((off_t *) 0) | |
3483 | return 0; | |
3484 | if (sizeof (off_t)) | |
3485 | return 0; | |
3486 | ; | |
3487 | return 0; | |
3488 | } | |
3489 | _ACEOF | |
3490 | rm -f conftest.$ac_objext | |
3491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3492 | (eval $ac_compile) 2>conftest.er1 | |
3493 | ac_status=$? | |
3494 | grep -v '^ *+' conftest.er1 >conftest.err | |
3495 | rm -f conftest.er1 | |
3496 | cat conftest.err >&5 | |
3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3498 | (exit $ac_status); } && | |
3499 | { ac_try='test -z "$ac_c_werror_flag" | |
3500 | || test ! -s conftest.err' | |
3501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3502 | (eval $ac_try) 2>&5 | |
3503 | ac_status=$? | |
3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3505 | (exit $ac_status); }; } && | |
3506 | { ac_try='test -s conftest.$ac_objext' | |
3507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3508 | (eval $ac_try) 2>&5 | |
3509 | ac_status=$? | |
3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3511 | (exit $ac_status); }; }; then | |
3512 | ac_cv_type_off_t=yes | |
3513 | else | |
3514 | echo "$as_me: failed program was:" >&5 | |
3515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3516 | ||
3517 | ac_cv_type_off_t=no | |
c906108c | 3518 | fi |
bec39cab | 3519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3520 | fi |
bec39cab AC |
3521 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
3522 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
3523 | if test $ac_cv_type_off_t = yes; then | |
3524 | : | |
c906108c | 3525 | else |
bec39cab AC |
3526 | |
3527 | cat >>confdefs.h <<_ACEOF | |
3528 | #define off_t long | |
3529 | _ACEOF | |
3530 | ||
3531 | fi | |
3532 | ||
3533 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
3534 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
3535 | if test "${ac_cv_type_size_t+set}" = set; then | |
3536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3537 | else | |
3538 | cat >conftest.$ac_ext <<_ACEOF | |
3539 | /* confdefs.h. */ | |
3540 | _ACEOF | |
3541 | cat confdefs.h >>conftest.$ac_ext | |
3542 | cat >>conftest.$ac_ext <<_ACEOF | |
3543 | /* end confdefs.h. */ | |
3544 | $ac_includes_default | |
3545 | int | |
3546 | main () | |
3547 | { | |
3548 | if ((size_t *) 0) | |
3549 | return 0; | |
3550 | if (sizeof (size_t)) | |
3551 | return 0; | |
3552 | ; | |
3553 | return 0; | |
3554 | } | |
3555 | _ACEOF | |
3556 | rm -f conftest.$ac_objext | |
3557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3558 | (eval $ac_compile) 2>conftest.er1 | |
3559 | ac_status=$? | |
3560 | grep -v '^ *+' conftest.er1 >conftest.err | |
3561 | rm -f conftest.er1 | |
3562 | cat conftest.err >&5 | |
3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3564 | (exit $ac_status); } && | |
3565 | { ac_try='test -z "$ac_c_werror_flag" | |
3566 | || test ! -s conftest.err' | |
3567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3568 | (eval $ac_try) 2>&5 | |
3569 | ac_status=$? | |
3570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3571 | (exit $ac_status); }; } && | |
3572 | { ac_try='test -s conftest.$ac_objext' | |
3573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3574 | (eval $ac_try) 2>&5 | |
3575 | ac_status=$? | |
3576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3577 | (exit $ac_status); }; }; then | |
3578 | ac_cv_type_size_t=yes | |
c906108c | 3579 | else |
bec39cab AC |
3580 | echo "$as_me: failed program was:" >&5 |
3581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3582 | ||
3583 | ac_cv_type_size_t=no | |
c906108c | 3584 | fi |
bec39cab | 3585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3586 | fi |
bec39cab AC |
3587 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
3588 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
3589 | if test $ac_cv_type_size_t = yes; then | |
3590 | : | |
3591 | else | |
c906108c | 3592 | |
bec39cab AC |
3593 | cat >>confdefs.h <<_ACEOF |
3594 | #define size_t unsigned | |
3595 | _ACEOF | |
c906108c | 3596 | |
c906108c | 3597 | fi |
bec39cab AC |
3598 | |
3599 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3600 | # for constant arguments. Useless! | |
3601 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
3602 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
3603 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3605 | else | |
3606 | cat >conftest.$ac_ext <<_ACEOF | |
3607 | /* confdefs.h. */ | |
3608 | _ACEOF | |
3609 | cat confdefs.h >>conftest.$ac_ext | |
3610 | cat >>conftest.$ac_ext <<_ACEOF | |
3611 | /* end confdefs.h. */ | |
3612 | #include <alloca.h> | |
3613 | int | |
3614 | main () | |
3615 | { | |
3616 | char *p = (char *) alloca (2 * sizeof (int)); | |
3617 | ; | |
3618 | return 0; | |
3619 | } | |
3620 | _ACEOF | |
3621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3623 | (eval $ac_link) 2>conftest.er1 | |
3624 | ac_status=$? | |
3625 | grep -v '^ *+' conftest.er1 >conftest.err | |
3626 | rm -f conftest.er1 | |
3627 | cat conftest.err >&5 | |
3628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3629 | (exit $ac_status); } && | |
3630 | { ac_try='test -z "$ac_c_werror_flag" | |
3631 | || test ! -s conftest.err' | |
3632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3633 | (eval $ac_try) 2>&5 | |
3634 | ac_status=$? | |
3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3636 | (exit $ac_status); }; } && | |
3637 | { ac_try='test -s conftest$ac_exeext' | |
3638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3639 | (eval $ac_try) 2>&5 | |
3640 | ac_status=$? | |
3641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3642 | (exit $ac_status); }; }; then | |
3643 | ac_cv_working_alloca_h=yes | |
3644 | else | |
3645 | echo "$as_me: failed program was:" >&5 | |
3646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3647 | ||
3648 | ac_cv_working_alloca_h=no | |
3649 | fi | |
3650 | rm -f conftest.err conftest.$ac_objext \ | |
3651 | conftest$ac_exeext conftest.$ac_ext | |
3652 | fi | |
3653 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
3654 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
3655 | if test $ac_cv_working_alloca_h = yes; then | |
3656 | ||
3657 | cat >>confdefs.h <<\_ACEOF | |
3658 | #define HAVE_ALLOCA_H 1 | |
3659 | _ACEOF | |
c906108c SS |
3660 | |
3661 | fi | |
bec39cab AC |
3662 | |
3663 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
3664 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
3665 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3667 | else |
bec39cab AC |
3668 | cat >conftest.$ac_ext <<_ACEOF |
3669 | /* confdefs.h. */ | |
3670 | _ACEOF | |
3671 | cat confdefs.h >>conftest.$ac_ext | |
3672 | cat >>conftest.$ac_ext <<_ACEOF | |
3673 | /* end confdefs.h. */ | |
3674 | #ifdef __GNUC__ | |
3675 | # define alloca __builtin_alloca | |
3676 | #else | |
3677 | # ifdef _MSC_VER | |
3678 | # include <malloc.h> | |
3679 | # define alloca _alloca | |
3680 | # else | |
3681 | # if HAVE_ALLOCA_H | |
3682 | # include <alloca.h> | |
3683 | # else | |
3684 | # ifdef _AIX | |
3685 | #pragma alloca | |
3686 | # else | |
3687 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3688 | char *alloca (); | |
3689 | # endif | |
3690 | # endif | |
3691 | # endif | |
3692 | # endif | |
3693 | #endif | |
c906108c | 3694 | |
bec39cab AC |
3695 | int |
3696 | main () | |
3697 | { | |
3698 | char *p = (char *) alloca (1); | |
3699 | ; | |
3700 | return 0; | |
3701 | } | |
3702 | _ACEOF | |
3703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3705 | (eval $ac_link) 2>conftest.er1 | |
3706 | ac_status=$? | |
3707 | grep -v '^ *+' conftest.er1 >conftest.err | |
3708 | rm -f conftest.er1 | |
3709 | cat conftest.err >&5 | |
3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3711 | (exit $ac_status); } && | |
3712 | { ac_try='test -z "$ac_c_werror_flag" | |
3713 | || test ! -s conftest.err' | |
3714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3715 | (eval $ac_try) 2>&5 | |
3716 | ac_status=$? | |
3717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3718 | (exit $ac_status); }; } && | |
3719 | { ac_try='test -s conftest$ac_exeext' | |
3720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3721 | (eval $ac_try) 2>&5 | |
3722 | ac_status=$? | |
3723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3724 | (exit $ac_status); }; }; then | |
3725 | ac_cv_func_alloca_works=yes | |
c906108c | 3726 | else |
bec39cab AC |
3727 | echo "$as_me: failed program was:" >&5 |
3728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3729 | ||
3730 | ac_cv_func_alloca_works=no | |
c906108c | 3731 | fi |
bec39cab AC |
3732 | rm -f conftest.err conftest.$ac_objext \ |
3733 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 3734 | fi |
bec39cab AC |
3735 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
3736 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
3737 | ||
3738 | if test $ac_cv_func_alloca_works = yes; then | |
3739 | ||
3740 | cat >>confdefs.h <<\_ACEOF | |
3741 | #define HAVE_ALLOCA 1 | |
3742 | _ACEOF | |
c906108c | 3743 | |
c906108c | 3744 | else |
bec39cab AC |
3745 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
3746 | # that cause trouble. Some versions do not even contain alloca or | |
3747 | # contain a buggy version. If you still want to use their alloca, | |
3748 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
c906108c | 3749 | |
bec39cab | 3750 | ALLOCA=alloca.$ac_objext |
c906108c | 3751 | |
bec39cab AC |
3752 | cat >>confdefs.h <<\_ACEOF |
3753 | #define C_ALLOCA 1 | |
3754 | _ACEOF | |
c906108c | 3755 | |
bec39cab AC |
3756 | |
3757 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
3758 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
3759 | if test "${ac_cv_os_cray+set}" = set; then | |
3760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3761 | else |
bec39cab AC |
3762 | cat >conftest.$ac_ext <<_ACEOF |
3763 | /* confdefs.h. */ | |
3764 | _ACEOF | |
3765 | cat confdefs.h >>conftest.$ac_ext | |
3766 | cat >>conftest.$ac_ext <<_ACEOF | |
3767 | /* end confdefs.h. */ | |
3768 | #if defined(CRAY) && ! defined(CRAY2) | |
3769 | webecray | |
3770 | #else | |
3771 | wenotbecray | |
3772 | #endif | |
3773 | ||
3774 | _ACEOF | |
3775 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3776 | $EGREP "webecray" >/dev/null 2>&1; then | |
3777 | ac_cv_os_cray=yes | |
c906108c | 3778 | else |
bec39cab | 3779 | ac_cv_os_cray=no |
c906108c | 3780 | fi |
bec39cab AC |
3781 | rm -f conftest* |
3782 | ||
3783 | fi | |
3784 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
3785 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
3786 | if test $ac_cv_os_cray = yes; then | |
3787 | for ac_func in _getb67 GETB67 getb67; do | |
3788 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3789 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3790 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3791 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3793 | else | |
3794 | cat >conftest.$ac_ext <<_ACEOF | |
3795 | /* confdefs.h. */ | |
3796 | _ACEOF | |
3797 | cat confdefs.h >>conftest.$ac_ext | |
3798 | cat >>conftest.$ac_ext <<_ACEOF | |
3799 | /* end confdefs.h. */ | |
3800 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3801 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3802 | #define $ac_func innocuous_$ac_func | |
3803 | ||
c906108c | 3804 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
3805 | which can conflict with char $ac_func (); below. |
3806 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3807 | <limits.h> exists even on freestanding compilers. */ | |
3808 | ||
3809 | #ifdef __STDC__ | |
3810 | # include <limits.h> | |
3811 | #else | |
3812 | # include <assert.h> | |
3813 | #endif | |
c906108c | 3814 | |
bec39cab | 3815 | #undef $ac_func |
c906108c | 3816 | |
bec39cab AC |
3817 | /* Override any gcc2 internal prototype to avoid an error. */ |
3818 | #ifdef __cplusplus | |
3819 | extern "C" | |
3820 | { | |
3821 | #endif | |
3822 | /* We use char because int might match the return type of a gcc2 | |
3823 | builtin and then its argument prototype would still apply. */ | |
3824 | char $ac_func (); | |
c906108c SS |
3825 | /* The GNU C library defines this for functions which it implements |
3826 | to always fail with ENOSYS. Some functions are actually named | |
3827 | something starting with __ and the normal name is an alias. */ | |
3828 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3829 | choke me | |
3830 | #else | |
bec39cab AC |
3831 | char (*f) () = $ac_func; |
3832 | #endif | |
3833 | #ifdef __cplusplus | |
3834 | } | |
c906108c SS |
3835 | #endif |
3836 | ||
bec39cab AC |
3837 | int |
3838 | main () | |
3839 | { | |
3840 | return f != $ac_func; | |
3841 | ; | |
3842 | return 0; | |
3843 | } | |
3844 | _ACEOF | |
3845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3847 | (eval $ac_link) 2>conftest.er1 | |
3848 | ac_status=$? | |
3849 | grep -v '^ *+' conftest.er1 >conftest.err | |
3850 | rm -f conftest.er1 | |
3851 | cat conftest.err >&5 | |
3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3853 | (exit $ac_status); } && | |
3854 | { ac_try='test -z "$ac_c_werror_flag" | |
3855 | || test ! -s conftest.err' | |
3856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3857 | (eval $ac_try) 2>&5 | |
3858 | ac_status=$? | |
3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3860 | (exit $ac_status); }; } && | |
3861 | { ac_try='test -s conftest$ac_exeext' | |
3862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3863 | (eval $ac_try) 2>&5 | |
3864 | ac_status=$? | |
3865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3866 | (exit $ac_status); }; }; then | |
3867 | eval "$as_ac_var=yes" | |
3868 | else | |
3869 | echo "$as_me: failed program was:" >&5 | |
3870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3871 | ||
3872 | eval "$as_ac_var=no" | |
3873 | fi | |
3874 | rm -f conftest.err conftest.$ac_objext \ | |
3875 | conftest$ac_exeext conftest.$ac_ext | |
3876 | fi | |
3877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3878 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3879 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3880 | ||
3881 | cat >>confdefs.h <<_ACEOF | |
3882 | #define CRAY_STACKSEG_END $ac_func | |
3883 | _ACEOF | |
c906108c | 3884 | |
bec39cab | 3885 | break |
c906108c | 3886 | fi |
c906108c | 3887 | |
c906108c | 3888 | done |
c906108c | 3889 | fi |
bec39cab AC |
3890 | |
3891 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
3892 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
3893 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3895 | else |
bec39cab AC |
3896 | if test "$cross_compiling" = yes; then |
3897 | ac_cv_c_stack_direction=0 | |
3898 | else | |
3899 | cat >conftest.$ac_ext <<_ACEOF | |
3900 | /* confdefs.h. */ | |
3901 | _ACEOF | |
3902 | cat confdefs.h >>conftest.$ac_ext | |
3903 | cat >>conftest.$ac_ext <<_ACEOF | |
3904 | /* end confdefs.h. */ | |
3905 | int | |
3906 | find_stack_direction () | |
3907 | { | |
3908 | static char *addr = 0; | |
3909 | auto char dummy; | |
3910 | if (addr == 0) | |
3911 | { | |
3912 | addr = &dummy; | |
3913 | return find_stack_direction (); | |
3914 | } | |
3915 | else | |
3916 | return (&dummy > addr) ? 1 : -1; | |
3917 | } | |
c906108c | 3918 | |
bec39cab AC |
3919 | int |
3920 | main () | |
3921 | { | |
3922 | exit (find_stack_direction () < 0); | |
3923 | } | |
3924 | _ACEOF | |
3925 | rm -f conftest$ac_exeext | |
3926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3927 | (eval $ac_link) 2>&5 | |
3928 | ac_status=$? | |
3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3932 | (eval $ac_try) 2>&5 | |
3933 | ac_status=$? | |
3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3935 | (exit $ac_status); }; }; then | |
3936 | ac_cv_c_stack_direction=1 | |
c906108c | 3937 | else |
bec39cab AC |
3938 | echo "$as_me: program exited with status $ac_status" >&5 |
3939 | echo "$as_me: failed program was:" >&5 | |
3940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3941 | ||
3942 | ( exit $ac_status ) | |
3943 | ac_cv_c_stack_direction=-1 | |
3944 | fi | |
3945 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3946 | fi |
c906108c | 3947 | fi |
bec39cab AC |
3948 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
3949 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
3950 | ||
3951 | cat >>confdefs.h <<_ACEOF | |
3952 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3953 | _ACEOF | |
c906108c | 3954 | |
c906108c | 3955 | |
c906108c SS |
3956 | fi |
3957 | ||
3958 | ||
c906108c | 3959 | |
bec39cab AC |
3960 | for ac_header in stdlib.h unistd.h |
3961 | do | |
3962 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3964 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3965 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3966 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3968 | fi | |
3969 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3970 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3971 | else | |
3972 | # Is the header compilable? | |
3973 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3974 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3975 | cat >conftest.$ac_ext <<_ACEOF | |
3976 | /* confdefs.h. */ | |
3977 | _ACEOF | |
3978 | cat confdefs.h >>conftest.$ac_ext | |
3979 | cat >>conftest.$ac_ext <<_ACEOF | |
3980 | /* end confdefs.h. */ | |
3981 | $ac_includes_default | |
3982 | #include <$ac_header> | |
3983 | _ACEOF | |
3984 | rm -f conftest.$ac_objext | |
3985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3986 | (eval $ac_compile) 2>conftest.er1 | |
3987 | ac_status=$? | |
3988 | grep -v '^ *+' conftest.er1 >conftest.err | |
3989 | rm -f conftest.er1 | |
3990 | cat conftest.err >&5 | |
3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3992 | (exit $ac_status); } && | |
3993 | { ac_try='test -z "$ac_c_werror_flag" | |
3994 | || test ! -s conftest.err' | |
3995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3996 | (eval $ac_try) 2>&5 | |
3997 | ac_status=$? | |
3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3999 | (exit $ac_status); }; } && | |
4000 | { ac_try='test -s conftest.$ac_objext' | |
4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4002 | (eval $ac_try) 2>&5 | |
4003 | ac_status=$? | |
4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4005 | (exit $ac_status); }; }; then | |
4006 | ac_header_compiler=yes | |
4007 | else | |
4008 | echo "$as_me: failed program was:" >&5 | |
4009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4010 | ||
4011 | ac_header_compiler=no | |
4012 | fi | |
4013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4014 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4015 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4016 | ||
4017 | # Is the header present? | |
4018 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4019 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4020 | cat >conftest.$ac_ext <<_ACEOF | |
4021 | /* confdefs.h. */ | |
4022 | _ACEOF | |
4023 | cat confdefs.h >>conftest.$ac_ext | |
4024 | cat >>conftest.$ac_ext <<_ACEOF | |
4025 | /* end confdefs.h. */ | |
4026 | #include <$ac_header> | |
4027 | _ACEOF | |
4028 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4029 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4030 | ac_status=$? | |
4031 | grep -v '^ *+' conftest.er1 >conftest.err | |
4032 | rm -f conftest.er1 | |
4033 | cat conftest.err >&5 | |
4034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4035 | (exit $ac_status); } >/dev/null; then | |
4036 | if test -s conftest.err; then | |
4037 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4038 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4039 | else | |
4040 | ac_cpp_err= | |
4041 | fi | |
c906108c | 4042 | else |
bec39cab | 4043 | ac_cpp_err=yes |
c906108c | 4044 | fi |
bec39cab AC |
4045 | if test -z "$ac_cpp_err"; then |
4046 | ac_header_preproc=yes | |
c906108c | 4047 | else |
bec39cab AC |
4048 | echo "$as_me: failed program was:" >&5 |
4049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4050 | ||
4051 | ac_header_preproc=no | |
c906108c | 4052 | fi |
bec39cab AC |
4053 | rm -f conftest.err conftest.$ac_ext |
4054 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4055 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 4056 | |
bec39cab AC |
4057 | # So? What about this header? |
4058 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4059 | yes:no: ) | |
4060 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4061 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4062 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4063 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4064 | ac_header_preproc=yes | |
4065 | ;; | |
4066 | no:yes:* ) | |
4067 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4068 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4069 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4070 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4071 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4072 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4073 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4074 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4075 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4076 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4077 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4078 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4079 | ( | |
4080 | cat <<\_ASBOX | |
4081 | ## ------------------------------------------ ## | |
4082 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4083 | ## ------------------------------------------ ## | |
4084 | _ASBOX | |
4085 | ) | | |
4086 | sed "s/^/$as_me: WARNING: /" >&2 | |
4087 | ;; | |
4088 | esac | |
4089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4093 | else | |
4094 | eval "$as_ac_Header=\$ac_header_preproc" | |
4095 | fi | |
4096 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4097 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4098 | ||
4099 | fi | |
4100 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4101 | cat >>confdefs.h <<_ACEOF | |
4102 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4103 | _ACEOF | |
4104 | ||
4105 | fi | |
4106 | ||
4107 | done | |
4108 | ||
4109 | ||
4110 | for ac_func in getpagesize | |
4111 | do | |
4112 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4113 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4114 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4115 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4117 | else | |
4118 | cat >conftest.$ac_ext <<_ACEOF | |
4119 | /* confdefs.h. */ | |
4120 | _ACEOF | |
4121 | cat confdefs.h >>conftest.$ac_ext | |
4122 | cat >>conftest.$ac_ext <<_ACEOF | |
4123 | /* end confdefs.h. */ | |
4124 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4125 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4126 | #define $ac_func innocuous_$ac_func | |
4127 | ||
4128 | /* System header to define __stub macros and hopefully few prototypes, | |
4129 | which can conflict with char $ac_func (); below. | |
4130 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4131 | <limits.h> exists even on freestanding compilers. */ | |
4132 | ||
4133 | #ifdef __STDC__ | |
4134 | # include <limits.h> | |
4135 | #else | |
4136 | # include <assert.h> | |
4137 | #endif | |
4138 | ||
4139 | #undef $ac_func | |
4140 | ||
4141 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4142 | #ifdef __cplusplus | |
4143 | extern "C" | |
4144 | { | |
4145 | #endif | |
4146 | /* We use char because int might match the return type of a gcc2 | |
4147 | builtin and then its argument prototype would still apply. */ | |
4148 | char $ac_func (); | |
4149 | /* The GNU C library defines this for functions which it implements | |
4150 | to always fail with ENOSYS. Some functions are actually named | |
4151 | something starting with __ and the normal name is an alias. */ | |
4152 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4153 | choke me | |
4154 | #else | |
4155 | char (*f) () = $ac_func; | |
4156 | #endif | |
4157 | #ifdef __cplusplus | |
4158 | } | |
4159 | #endif | |
4160 | ||
4161 | int | |
4162 | main () | |
4163 | { | |
4164 | return f != $ac_func; | |
4165 | ; | |
4166 | return 0; | |
4167 | } | |
4168 | _ACEOF | |
4169 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4171 | (eval $ac_link) 2>conftest.er1 | |
4172 | ac_status=$? | |
4173 | grep -v '^ *+' conftest.er1 >conftest.err | |
4174 | rm -f conftest.er1 | |
4175 | cat conftest.err >&5 | |
4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4177 | (exit $ac_status); } && | |
4178 | { ac_try='test -z "$ac_c_werror_flag" | |
4179 | || test ! -s conftest.err' | |
4180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4181 | (eval $ac_try) 2>&5 | |
4182 | ac_status=$? | |
4183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4184 | (exit $ac_status); }; } && | |
4185 | { ac_try='test -s conftest$ac_exeext' | |
4186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4187 | (eval $ac_try) 2>&5 | |
4188 | ac_status=$? | |
4189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4190 | (exit $ac_status); }; }; then | |
4191 | eval "$as_ac_var=yes" | |
4192 | else | |
4193 | echo "$as_me: failed program was:" >&5 | |
4194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4195 | ||
4196 | eval "$as_ac_var=no" | |
4197 | fi | |
4198 | rm -f conftest.err conftest.$ac_objext \ | |
4199 | conftest$ac_exeext conftest.$ac_ext | |
4200 | fi | |
4201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4202 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4203 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4204 | cat >>confdefs.h <<_ACEOF | |
4205 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4206 | _ACEOF | |
4207 | ||
4208 | fi | |
4209 | done | |
4210 | ||
4211 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
4212 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
4213 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4215 | else | |
4216 | if test "$cross_compiling" = yes; then | |
4217 | ac_cv_func_mmap_fixed_mapped=no | |
4218 | else | |
4219 | cat >conftest.$ac_ext <<_ACEOF | |
4220 | /* confdefs.h. */ | |
4221 | _ACEOF | |
4222 | cat confdefs.h >>conftest.$ac_ext | |
4223 | cat >>conftest.$ac_ext <<_ACEOF | |
4224 | /* end confdefs.h. */ | |
4225 | $ac_includes_default | |
4226 | /* malloc might have been renamed as rpl_malloc. */ | |
4227 | #undef malloc | |
4228 | ||
4229 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4230 | Here is a matrix of mmap possibilities: | |
4231 | mmap private not fixed | |
4232 | mmap private fixed at somewhere currently unmapped | |
4233 | mmap private fixed at somewhere already mapped | |
4234 | mmap shared not fixed | |
4235 | mmap shared fixed at somewhere currently unmapped | |
4236 | mmap shared fixed at somewhere already mapped | |
4237 | For private mappings, we should verify that changes cannot be read() | |
4238 | back from the file, nor mmap's back from the file at a different | |
4239 | address. (There have been systems where private was not correctly | |
4240 | implemented like the infamous i386 svr4.0, and systems where the | |
4241 | VM page cache was not coherent with the file system buffer cache | |
4242 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
4243 | For shared mappings, we should conversely verify that changes get | |
4244 | propagated back to all the places they're supposed to be. | |
4245 | ||
4246 | Grep wants private fixed already mapped. | |
4247 | The main things grep needs to know about mmap are: | |
4248 | * does it exist and is it safe to write into the mmap'd area | |
4249 | * how to use it (BSD variants) */ | |
4250 | ||
4251 | #include <fcntl.h> | |
4252 | #include <sys/mman.h> | |
4253 | ||
4254 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
4255 | char *malloc (); | |
4256 | #endif | |
4257 | ||
4258 | /* This mess was copied from the GNU getpagesize.h. */ | |
4259 | #if !HAVE_GETPAGESIZE | |
4260 | /* Assume that all systems that can run configure have sys/param.h. */ | |
4261 | # if !HAVE_SYS_PARAM_H | |
4262 | # define HAVE_SYS_PARAM_H 1 | |
4263 | # endif | |
4264 | ||
4265 | # ifdef _SC_PAGESIZE | |
4266 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4267 | # else /* no _SC_PAGESIZE */ | |
4268 | # if HAVE_SYS_PARAM_H | |
4269 | # include <sys/param.h> | |
4270 | # ifdef EXEC_PAGESIZE | |
4271 | # define getpagesize() EXEC_PAGESIZE | |
4272 | # else /* no EXEC_PAGESIZE */ | |
4273 | # ifdef NBPG | |
4274 | # define getpagesize() NBPG * CLSIZE | |
4275 | # ifndef CLSIZE | |
4276 | # define CLSIZE 1 | |
4277 | # endif /* no CLSIZE */ | |
4278 | # else /* no NBPG */ | |
4279 | # ifdef NBPC | |
4280 | # define getpagesize() NBPC | |
4281 | # else /* no NBPC */ | |
4282 | # ifdef PAGESIZE | |
4283 | # define getpagesize() PAGESIZE | |
4284 | # endif /* PAGESIZE */ | |
4285 | # endif /* no NBPC */ | |
4286 | # endif /* no NBPG */ | |
4287 | # endif /* no EXEC_PAGESIZE */ | |
4288 | # else /* no HAVE_SYS_PARAM_H */ | |
4289 | # define getpagesize() 8192 /* punt totally */ | |
4290 | # endif /* no HAVE_SYS_PARAM_H */ | |
4291 | # endif /* no _SC_PAGESIZE */ | |
4292 | ||
4293 | #endif /* no HAVE_GETPAGESIZE */ | |
4294 | ||
4295 | int | |
4296 | main () | |
4297 | { | |
4298 | char *data, *data2, *data3; | |
4299 | int i, pagesize; | |
4300 | int fd; | |
4301 | ||
4302 | pagesize = getpagesize (); | |
4303 | ||
4304 | /* First, make a file with some known garbage in it. */ | |
4305 | data = (char *) malloc (pagesize); | |
4306 | if (!data) | |
4307 | exit (1); | |
4308 | for (i = 0; i < pagesize; ++i) | |
4309 | *(data + i) = rand (); | |
4310 | umask (0); | |
4311 | fd = creat ("conftest.mmap", 0600); | |
4312 | if (fd < 0) | |
4313 | exit (1); | |
4314 | if (write (fd, data, pagesize) != pagesize) | |
4315 | exit (1); | |
4316 | close (fd); | |
4317 | ||
4318 | /* Next, try to mmap the file at a fixed address which already has | |
4319 | something else allocated at it. If we can, also make sure that | |
4320 | we see the same garbage. */ | |
4321 | fd = open ("conftest.mmap", O_RDWR); | |
4322 | if (fd < 0) | |
4323 | exit (1); | |
4324 | data2 = (char *) malloc (2 * pagesize); | |
4325 | if (!data2) | |
4326 | exit (1); | |
4327 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
4328 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
4329 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4330 | exit (1); | |
4331 | for (i = 0; i < pagesize; ++i) | |
4332 | if (*(data + i) != *(data2 + i)) | |
4333 | exit (1); | |
4334 | ||
4335 | /* Finally, make sure that changes to the mapped area do not | |
4336 | percolate back to the file as seen by read(). (This is a bug on | |
4337 | some variants of i386 svr4.0.) */ | |
4338 | for (i = 0; i < pagesize; ++i) | |
4339 | *(data2 + i) = *(data2 + i) + 1; | |
4340 | data3 = (char *) malloc (pagesize); | |
4341 | if (!data3) | |
4342 | exit (1); | |
4343 | if (read (fd, data3, pagesize) != pagesize) | |
4344 | exit (1); | |
4345 | for (i = 0; i < pagesize; ++i) | |
4346 | if (*(data + i) != *(data3 + i)) | |
4347 | exit (1); | |
4348 | close (fd); | |
4349 | exit (0); | |
4350 | } | |
4351 | _ACEOF | |
4352 | rm -f conftest$ac_exeext | |
4353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4354 | (eval $ac_link) 2>&5 | |
4355 | ac_status=$? | |
4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4357 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4359 | (eval $ac_try) 2>&5 | |
4360 | ac_status=$? | |
4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4362 | (exit $ac_status); }; }; then | |
4363 | ac_cv_func_mmap_fixed_mapped=yes | |
4364 | else | |
4365 | echo "$as_me: program exited with status $ac_status" >&5 | |
4366 | echo "$as_me: failed program was:" >&5 | |
4367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4368 | ||
4369 | ( exit $ac_status ) | |
4370 | ac_cv_func_mmap_fixed_mapped=no | |
4371 | fi | |
4372 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4373 | fi | |
4374 | fi | |
4375 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
4376 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
4377 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
4378 | ||
4379 | cat >>confdefs.h <<\_ACEOF | |
4380 | #define HAVE_MMAP 1 | |
4381 | _ACEOF | |
4382 | ||
4383 | fi | |
4384 | rm -f conftest.mmap | |
4385 | ||
4386 | ||
4387 | ||
4388 | ||
4389 | ||
4390 | ||
4391 | ||
4392 | ||
4393 | ||
4394 | ||
4395 | ||
4396 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
4397 | unistd.h values.h sys/param.h | |
4398 | do | |
4399 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4400 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4401 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4402 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4403 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4405 | fi | |
4406 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4407 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4408 | else | |
4409 | # Is the header compilable? | |
4410 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4411 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4412 | cat >conftest.$ac_ext <<_ACEOF | |
4413 | /* confdefs.h. */ | |
4414 | _ACEOF | |
4415 | cat confdefs.h >>conftest.$ac_ext | |
4416 | cat >>conftest.$ac_ext <<_ACEOF | |
4417 | /* end confdefs.h. */ | |
4418 | $ac_includes_default | |
4419 | #include <$ac_header> | |
4420 | _ACEOF | |
4421 | rm -f conftest.$ac_objext | |
4422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4423 | (eval $ac_compile) 2>conftest.er1 | |
4424 | ac_status=$? | |
4425 | grep -v '^ *+' conftest.er1 >conftest.err | |
4426 | rm -f conftest.er1 | |
4427 | cat conftest.err >&5 | |
4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4429 | (exit $ac_status); } && | |
4430 | { ac_try='test -z "$ac_c_werror_flag" | |
4431 | || test ! -s conftest.err' | |
4432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4433 | (eval $ac_try) 2>&5 | |
4434 | ac_status=$? | |
4435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4436 | (exit $ac_status); }; } && | |
4437 | { ac_try='test -s conftest.$ac_objext' | |
4438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4439 | (eval $ac_try) 2>&5 | |
4440 | ac_status=$? | |
4441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4442 | (exit $ac_status); }; }; then | |
4443 | ac_header_compiler=yes | |
4444 | else | |
4445 | echo "$as_me: failed program was:" >&5 | |
4446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4447 | ||
4448 | ac_header_compiler=no | |
4449 | fi | |
4450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4451 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4452 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4453 | ||
4454 | # Is the header present? | |
4455 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4456 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4457 | cat >conftest.$ac_ext <<_ACEOF | |
4458 | /* confdefs.h. */ | |
4459 | _ACEOF | |
4460 | cat confdefs.h >>conftest.$ac_ext | |
4461 | cat >>conftest.$ac_ext <<_ACEOF | |
4462 | /* end confdefs.h. */ | |
4463 | #include <$ac_header> | |
4464 | _ACEOF | |
4465 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4466 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4467 | ac_status=$? | |
4468 | grep -v '^ *+' conftest.er1 >conftest.err | |
4469 | rm -f conftest.er1 | |
4470 | cat conftest.err >&5 | |
4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4472 | (exit $ac_status); } >/dev/null; then | |
4473 | if test -s conftest.err; then | |
4474 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4475 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4476 | else | |
4477 | ac_cpp_err= | |
4478 | fi | |
4479 | else | |
4480 | ac_cpp_err=yes | |
4481 | fi | |
4482 | if test -z "$ac_cpp_err"; then | |
4483 | ac_header_preproc=yes | |
4484 | else | |
4485 | echo "$as_me: failed program was:" >&5 | |
4486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4487 | ||
4488 | ac_header_preproc=no | |
4489 | fi | |
4490 | rm -f conftest.err conftest.$ac_ext | |
4491 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4492 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4493 | ||
4494 | # So? What about this header? | |
4495 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4496 | yes:no: ) | |
4497 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4498 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4500 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4501 | ac_header_preproc=yes | |
4502 | ;; | |
4503 | no:yes:* ) | |
4504 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4505 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4506 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4507 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4508 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4509 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4510 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4511 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4513 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4514 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4515 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4516 | ( | |
4517 | cat <<\_ASBOX | |
4518 | ## ------------------------------------------ ## | |
4519 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4520 | ## ------------------------------------------ ## | |
4521 | _ASBOX | |
4522 | ) | | |
4523 | sed "s/^/$as_me: WARNING: /" >&2 | |
4524 | ;; | |
4525 | esac | |
4526 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4530 | else | |
4531 | eval "$as_ac_Header=\$ac_header_preproc" | |
4532 | fi | |
4533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4535 | ||
4536 | fi | |
4537 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4538 | cat >>confdefs.h <<_ACEOF | |
4539 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4540 | _ACEOF | |
4541 | ||
4542 | fi | |
4543 | ||
4544 | done | |
4545 | ||
4546 | ||
4547 | ||
4548 | ||
4549 | ||
4550 | ||
4551 | ||
4552 | ||
4553 | ||
4554 | ||
4555 | ||
4556 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
4557 | __argz_count __argz_stringify __argz_next | |
4558 | do | |
4559 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4560 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4561 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4562 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4564 | else | |
4565 | cat >conftest.$ac_ext <<_ACEOF | |
4566 | /* confdefs.h. */ | |
4567 | _ACEOF | |
4568 | cat confdefs.h >>conftest.$ac_ext | |
4569 | cat >>conftest.$ac_ext <<_ACEOF | |
4570 | /* end confdefs.h. */ | |
4571 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4572 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4573 | #define $ac_func innocuous_$ac_func | |
4574 | ||
4575 | /* System header to define __stub macros and hopefully few prototypes, | |
4576 | which can conflict with char $ac_func (); below. | |
4577 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4578 | <limits.h> exists even on freestanding compilers. */ | |
4579 | ||
4580 | #ifdef __STDC__ | |
4581 | # include <limits.h> | |
4582 | #else | |
4583 | # include <assert.h> | |
4584 | #endif | |
4585 | ||
4586 | #undef $ac_func | |
4587 | ||
4588 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4589 | #ifdef __cplusplus | |
4590 | extern "C" | |
4591 | { | |
4592 | #endif | |
4593 | /* We use char because int might match the return type of a gcc2 | |
4594 | builtin and then its argument prototype would still apply. */ | |
4595 | char $ac_func (); | |
4596 | /* The GNU C library defines this for functions which it implements | |
4597 | to always fail with ENOSYS. Some functions are actually named | |
4598 | something starting with __ and the normal name is an alias. */ | |
4599 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4600 | choke me | |
4601 | #else | |
4602 | char (*f) () = $ac_func; | |
4603 | #endif | |
4604 | #ifdef __cplusplus | |
4605 | } | |
4606 | #endif | |
4607 | ||
4608 | int | |
4609 | main () | |
4610 | { | |
4611 | return f != $ac_func; | |
4612 | ; | |
4613 | return 0; | |
4614 | } | |
4615 | _ACEOF | |
4616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4618 | (eval $ac_link) 2>conftest.er1 | |
4619 | ac_status=$? | |
4620 | grep -v '^ *+' conftest.er1 >conftest.err | |
4621 | rm -f conftest.er1 | |
4622 | cat conftest.err >&5 | |
4623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4624 | (exit $ac_status); } && | |
4625 | { ac_try='test -z "$ac_c_werror_flag" | |
4626 | || test ! -s conftest.err' | |
4627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4628 | (eval $ac_try) 2>&5 | |
4629 | ac_status=$? | |
4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4631 | (exit $ac_status); }; } && | |
4632 | { ac_try='test -s conftest$ac_exeext' | |
4633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4634 | (eval $ac_try) 2>&5 | |
4635 | ac_status=$? | |
4636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4637 | (exit $ac_status); }; }; then | |
4638 | eval "$as_ac_var=yes" | |
4639 | else | |
4640 | echo "$as_me: failed program was:" >&5 | |
4641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4642 | ||
4643 | eval "$as_ac_var=no" | |
4644 | fi | |
4645 | rm -f conftest.err conftest.$ac_objext \ | |
4646 | conftest$ac_exeext conftest.$ac_ext | |
4647 | fi | |
4648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4651 | cat >>confdefs.h <<_ACEOF | |
4652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4653 | _ACEOF | |
4654 | ||
4655 | fi | |
4656 | done | |
4657 | ||
4658 | ||
4659 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
4660 | ||
4661 | for ac_func in stpcpy | |
4662 | do | |
4663 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4664 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4665 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4666 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4668 | else | |
4669 | cat >conftest.$ac_ext <<_ACEOF | |
4670 | /* confdefs.h. */ | |
4671 | _ACEOF | |
4672 | cat confdefs.h >>conftest.$ac_ext | |
4673 | cat >>conftest.$ac_ext <<_ACEOF | |
4674 | /* end confdefs.h. */ | |
4675 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4676 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4677 | #define $ac_func innocuous_$ac_func | |
4678 | ||
4679 | /* System header to define __stub macros and hopefully few prototypes, | |
4680 | which can conflict with char $ac_func (); below. | |
4681 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4682 | <limits.h> exists even on freestanding compilers. */ | |
4683 | ||
4684 | #ifdef __STDC__ | |
4685 | # include <limits.h> | |
4686 | #else | |
4687 | # include <assert.h> | |
4688 | #endif | |
4689 | ||
4690 | #undef $ac_func | |
4691 | ||
4692 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4693 | #ifdef __cplusplus | |
4694 | extern "C" | |
4695 | { | |
4696 | #endif | |
4697 | /* We use char because int might match the return type of a gcc2 | |
4698 | builtin and then its argument prototype would still apply. */ | |
4699 | char $ac_func (); | |
4700 | /* The GNU C library defines this for functions which it implements | |
4701 | to always fail with ENOSYS. Some functions are actually named | |
4702 | something starting with __ and the normal name is an alias. */ | |
4703 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4704 | choke me | |
4705 | #else | |
4706 | char (*f) () = $ac_func; | |
4707 | #endif | |
4708 | #ifdef __cplusplus | |
4709 | } | |
4710 | #endif | |
4711 | ||
4712 | int | |
4713 | main () | |
4714 | { | |
4715 | return f != $ac_func; | |
4716 | ; | |
4717 | return 0; | |
4718 | } | |
4719 | _ACEOF | |
4720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4722 | (eval $ac_link) 2>conftest.er1 | |
4723 | ac_status=$? | |
4724 | grep -v '^ *+' conftest.er1 >conftest.err | |
4725 | rm -f conftest.er1 | |
4726 | cat conftest.err >&5 | |
4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4728 | (exit $ac_status); } && | |
4729 | { ac_try='test -z "$ac_c_werror_flag" | |
4730 | || test ! -s conftest.err' | |
4731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4732 | (eval $ac_try) 2>&5 | |
4733 | ac_status=$? | |
4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4735 | (exit $ac_status); }; } && | |
4736 | { ac_try='test -s conftest$ac_exeext' | |
4737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4738 | (eval $ac_try) 2>&5 | |
4739 | ac_status=$? | |
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4741 | (exit $ac_status); }; }; then | |
4742 | eval "$as_ac_var=yes" | |
4743 | else | |
4744 | echo "$as_me: failed program was:" >&5 | |
4745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4746 | ||
4747 | eval "$as_ac_var=no" | |
4748 | fi | |
4749 | rm -f conftest.err conftest.$ac_objext \ | |
4750 | conftest$ac_exeext conftest.$ac_ext | |
4751 | fi | |
4752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4753 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4754 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4755 | cat >>confdefs.h <<_ACEOF | |
4756 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4757 | _ACEOF | |
4758 | ||
4759 | fi | |
4760 | done | |
4761 | ||
4762 | fi | |
4763 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
4764 | ||
4765 | cat >>confdefs.h <<\_ACEOF | |
4766 | #define HAVE_STPCPY 1 | |
4767 | _ACEOF | |
4768 | ||
4769 | fi | |
4770 | ||
4771 | if test $ac_cv_header_locale_h = yes; then | |
4772 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 | |
4773 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4774 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4776 | else | |
4777 | cat >conftest.$ac_ext <<_ACEOF | |
4778 | /* confdefs.h. */ | |
4779 | _ACEOF | |
4780 | cat confdefs.h >>conftest.$ac_ext | |
4781 | cat >>conftest.$ac_ext <<_ACEOF | |
4782 | /* end confdefs.h. */ | |
4783 | #include <locale.h> | |
4784 | int | |
4785 | main () | |
4786 | { | |
4787 | return LC_MESSAGES | |
4788 | ; | |
4789 | return 0; | |
4790 | } | |
4791 | _ACEOF | |
4792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4794 | (eval $ac_link) 2>conftest.er1 | |
4795 | ac_status=$? | |
4796 | grep -v '^ *+' conftest.er1 >conftest.err | |
4797 | rm -f conftest.er1 | |
4798 | cat conftest.err >&5 | |
4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4800 | (exit $ac_status); } && | |
4801 | { ac_try='test -z "$ac_c_werror_flag" | |
4802 | || test ! -s conftest.err' | |
4803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4804 | (eval $ac_try) 2>&5 | |
4805 | ac_status=$? | |
4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4807 | (exit $ac_status); }; } && | |
4808 | { ac_try='test -s conftest$ac_exeext' | |
4809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4810 | (eval $ac_try) 2>&5 | |
4811 | ac_status=$? | |
4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4813 | (exit $ac_status); }; }; then | |
4814 | am_cv_val_LC_MESSAGES=yes | |
4815 | else | |
4816 | echo "$as_me: failed program was:" >&5 | |
4817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4818 | ||
4819 | am_cv_val_LC_MESSAGES=no | |
4820 | fi | |
4821 | rm -f conftest.err conftest.$ac_objext \ | |
4822 | conftest$ac_exeext conftest.$ac_ext | |
4823 | fi | |
4824 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 | |
4825 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
4826 | if test $am_cv_val_LC_MESSAGES = yes; then | |
4827 | ||
4828 | cat >>confdefs.h <<\_ACEOF | |
4829 | #define HAVE_LC_MESSAGES 1 | |
4830 | _ACEOF | |
4831 | ||
4832 | fi | |
4833 | fi | |
4834 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
4835 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
4836 | # Check whether --enable-nls or --disable-nls was given. | |
4837 | if test "${enable_nls+set}" = set; then | |
4838 | enableval="$enable_nls" | |
4839 | USE_NLS=$enableval | |
4840 | else | |
4841 | USE_NLS=yes | |
4842 | fi; | |
4843 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4844 | echo "${ECHO_T}$USE_NLS" >&6 | |
4845 | ||
4846 | ||
4847 | USE_INCLUDED_LIBINTL=no | |
4848 | ||
4849 | if test "$USE_NLS" = "yes"; then | |
bec39cab AC |
4850 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
4851 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
4852 | ||
4853 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
4854 | if test "${with_included_gettext+set}" = set; then | |
4855 | withval="$with_included_gettext" | |
4856 | nls_cv_force_use_gnu_gettext=$withval | |
4857 | else | |
4858 | nls_cv_force_use_gnu_gettext=no | |
4859 | fi; | |
4860 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4861 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
4862 | ||
4863 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4864 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4865 | nls_cv_header_intl= | |
4866 | nls_cv_header_libgt= | |
a53bf506 | 4867 | CATOBJEXT= |
bec39cab AC |
4868 | |
4869 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4870 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4871 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4872 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4874 | fi | |
4875 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4876 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4877 | else | |
4878 | # Is the header compilable? | |
4879 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4880 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4881 | cat >conftest.$ac_ext <<_ACEOF | |
4882 | /* confdefs.h. */ | |
4883 | _ACEOF | |
4884 | cat confdefs.h >>conftest.$ac_ext | |
4885 | cat >>conftest.$ac_ext <<_ACEOF | |
4886 | /* end confdefs.h. */ | |
4887 | $ac_includes_default | |
4888 | #include <libintl.h> | |
4889 | _ACEOF | |
4890 | rm -f conftest.$ac_objext | |
4891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4892 | (eval $ac_compile) 2>conftest.er1 | |
4893 | ac_status=$? | |
4894 | grep -v '^ *+' conftest.er1 >conftest.err | |
4895 | rm -f conftest.er1 | |
4896 | cat conftest.err >&5 | |
4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4898 | (exit $ac_status); } && | |
4899 | { ac_try='test -z "$ac_c_werror_flag" | |
4900 | || test ! -s conftest.err' | |
4901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4902 | (eval $ac_try) 2>&5 | |
4903 | ac_status=$? | |
4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4905 | (exit $ac_status); }; } && | |
4906 | { ac_try='test -s conftest.$ac_objext' | |
4907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4908 | (eval $ac_try) 2>&5 | |
4909 | ac_status=$? | |
4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4911 | (exit $ac_status); }; }; then | |
4912 | ac_header_compiler=yes | |
4913 | else | |
4914 | echo "$as_me: failed program was:" >&5 | |
4915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4916 | ||
4917 | ac_header_compiler=no | |
4918 | fi | |
4919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4920 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4921 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4922 | ||
4923 | # Is the header present? | |
4924 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
4925 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
4926 | cat >conftest.$ac_ext <<_ACEOF | |
4927 | /* confdefs.h. */ | |
4928 | _ACEOF | |
4929 | cat confdefs.h >>conftest.$ac_ext | |
4930 | cat >>conftest.$ac_ext <<_ACEOF | |
4931 | /* end confdefs.h. */ | |
4932 | #include <libintl.h> | |
4933 | _ACEOF | |
4934 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4935 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4936 | ac_status=$? | |
4937 | grep -v '^ *+' conftest.er1 >conftest.err | |
4938 | rm -f conftest.er1 | |
4939 | cat conftest.err >&5 | |
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4941 | (exit $ac_status); } >/dev/null; then | |
4942 | if test -s conftest.err; then | |
4943 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4944 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4945 | else | |
4946 | ac_cpp_err= | |
4947 | fi | |
4948 | else | |
4949 | ac_cpp_err=yes | |
4950 | fi | |
4951 | if test -z "$ac_cpp_err"; then | |
4952 | ac_header_preproc=yes | |
4953 | else | |
4954 | echo "$as_me: failed program was:" >&5 | |
4955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4956 | ||
4957 | ac_header_preproc=no | |
4958 | fi | |
4959 | rm -f conftest.err conftest.$ac_ext | |
4960 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4961 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4962 | ||
4963 | # So? What about this header? | |
4964 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4965 | yes:no: ) | |
4966 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4967 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4968 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
4969 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
4970 | ac_header_preproc=yes | |
4971 | ;; | |
4972 | no:yes:* ) | |
4973 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
4974 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
4975 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
4976 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
4977 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
4978 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
4979 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4980 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4981 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
4982 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
4983 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
4984 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
4985 | ( | |
4986 | cat <<\_ASBOX | |
4987 | ## ------------------------------------------ ## | |
4988 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4989 | ## ------------------------------------------ ## | |
4990 | _ASBOX | |
4991 | ) | | |
4992 | sed "s/^/$as_me: WARNING: /" >&2 | |
4993 | ;; | |
4994 | esac | |
4995 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4996 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4997 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4999 | else | |
5000 | ac_cv_header_libintl_h=$ac_header_preproc | |
5001 | fi | |
5002 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
5003 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
5004 | ||
5005 | fi | |
5006 | if test $ac_cv_header_libintl_h = yes; then | |
5007 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
5008 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
5009 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
5010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5011 | else | |
5012 | cat >conftest.$ac_ext <<_ACEOF | |
5013 | /* confdefs.h. */ | |
5014 | _ACEOF | |
5015 | cat confdefs.h >>conftest.$ac_ext | |
5016 | cat >>conftest.$ac_ext <<_ACEOF | |
5017 | /* end confdefs.h. */ | |
5018 | #include <libintl.h> | |
5019 | int | |
5020 | main () | |
5021 | { | |
5022 | return (int) gettext ("") | |
5023 | ; | |
5024 | return 0; | |
5025 | } | |
5026 | _ACEOF | |
5027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5029 | (eval $ac_link) 2>conftest.er1 | |
5030 | ac_status=$? | |
5031 | grep -v '^ *+' conftest.er1 >conftest.err | |
5032 | rm -f conftest.er1 | |
5033 | cat conftest.err >&5 | |
5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5035 | (exit $ac_status); } && | |
5036 | { ac_try='test -z "$ac_c_werror_flag" | |
5037 | || test ! -s conftest.err' | |
5038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5039 | (eval $ac_try) 2>&5 | |
5040 | ac_status=$? | |
5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5042 | (exit $ac_status); }; } && | |
5043 | { ac_try='test -s conftest$ac_exeext' | |
5044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5045 | (eval $ac_try) 2>&5 | |
5046 | ac_status=$? | |
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5048 | (exit $ac_status); }; }; then | |
5049 | gt_cv_func_gettext_libc=yes | |
5050 | else | |
5051 | echo "$as_me: failed program was:" >&5 | |
5052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5053 | ||
5054 | gt_cv_func_gettext_libc=no | |
5055 | fi | |
5056 | rm -f conftest.err conftest.$ac_objext \ | |
5057 | conftest$ac_exeext conftest.$ac_ext | |
5058 | fi | |
5059 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 | |
5060 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
5061 | ||
5062 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5063 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 | |
5064 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
5065 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
5066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5067 | else | |
5068 | ac_check_lib_save_LIBS=$LIBS | |
5069 | LIBS="-lintl $LIBS" | |
5070 | cat >conftest.$ac_ext <<_ACEOF | |
5071 | /* confdefs.h. */ | |
5072 | _ACEOF | |
5073 | cat confdefs.h >>conftest.$ac_ext | |
5074 | cat >>conftest.$ac_ext <<_ACEOF | |
5075 | /* end confdefs.h. */ | |
5076 | ||
5077 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5078 | #ifdef __cplusplus | |
5079 | extern "C" | |
5080 | #endif | |
5081 | /* We use char because int might match the return type of a gcc2 | |
5082 | builtin and then its argument prototype would still apply. */ | |
5083 | char bindtextdomain (); | |
5084 | int | |
5085 | main () | |
5086 | { | |
5087 | bindtextdomain (); | |
5088 | ; | |
5089 | return 0; | |
5090 | } | |
5091 | _ACEOF | |
5092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5094 | (eval $ac_link) 2>conftest.er1 | |
5095 | ac_status=$? | |
5096 | grep -v '^ *+' conftest.er1 >conftest.err | |
5097 | rm -f conftest.er1 | |
5098 | cat conftest.err >&5 | |
5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5100 | (exit $ac_status); } && | |
5101 | { ac_try='test -z "$ac_c_werror_flag" | |
5102 | || test ! -s conftest.err' | |
5103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5104 | (eval $ac_try) 2>&5 | |
5105 | ac_status=$? | |
5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5107 | (exit $ac_status); }; } && | |
5108 | { ac_try='test -s conftest$ac_exeext' | |
5109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5110 | (eval $ac_try) 2>&5 | |
5111 | ac_status=$? | |
5112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5113 | (exit $ac_status); }; }; then | |
5114 | ac_cv_lib_intl_bindtextdomain=yes | |
5115 | else | |
5116 | echo "$as_me: failed program was:" >&5 | |
5117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5118 | ||
5119 | ac_cv_lib_intl_bindtextdomain=no | |
5120 | fi | |
5121 | rm -f conftest.err conftest.$ac_objext \ | |
5122 | conftest$ac_exeext conftest.$ac_ext | |
5123 | LIBS=$ac_check_lib_save_LIBS | |
5124 | fi | |
5125 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5126 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5127 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5128 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5129 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5130 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5132 | else | |
5133 | cat >conftest.$ac_ext <<_ACEOF | |
5134 | /* confdefs.h. */ | |
5135 | _ACEOF | |
5136 | cat confdefs.h >>conftest.$ac_ext | |
5137 | cat >>conftest.$ac_ext <<_ACEOF | |
5138 | /* end confdefs.h. */ | |
5139 | ||
5140 | int | |
5141 | main () | |
5142 | { | |
5143 | return (int) gettext ("") | |
5144 | ; | |
5145 | return 0; | |
5146 | } | |
5147 | _ACEOF | |
5148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5150 | (eval $ac_link) 2>conftest.er1 | |
5151 | ac_status=$? | |
5152 | grep -v '^ *+' conftest.er1 >conftest.err | |
5153 | rm -f conftest.er1 | |
5154 | cat conftest.err >&5 | |
5155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5156 | (exit $ac_status); } && | |
5157 | { ac_try='test -z "$ac_c_werror_flag" | |
5158 | || test ! -s conftest.err' | |
5159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5160 | (eval $ac_try) 2>&5 | |
5161 | ac_status=$? | |
5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5163 | (exit $ac_status); }; } && | |
5164 | { ac_try='test -s conftest$ac_exeext' | |
5165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5166 | (eval $ac_try) 2>&5 | |
5167 | ac_status=$? | |
5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5169 | (exit $ac_status); }; }; then | |
5170 | gt_cv_func_gettext_libintl=yes | |
5171 | else | |
5172 | echo "$as_me: failed program was:" >&5 | |
5173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5174 | ||
5175 | gt_cv_func_gettext_libintl=no | |
5176 | fi | |
5177 | rm -f conftest.err conftest.$ac_objext \ | |
5178 | conftest$ac_exeext conftest.$ac_ext | |
5179 | fi | |
5180 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 | |
5181 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
5182 | fi | |
5183 | ||
5184 | fi | |
5185 | ||
5186 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5187 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5188 | ||
5189 | cat >>confdefs.h <<\_ACEOF | |
5190 | #define HAVE_GETTEXT 1 | |
5191 | _ACEOF | |
5192 | ||
5193 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5194 | set dummy msgfmt; ac_word=$2 | |
5195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5197 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5199 | else | |
5200 | case "$MSGFMT" in | |
5201 | /*) | |
5202 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5203 | ;; | |
5204 | *) | |
5205 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5206 | for ac_dir in $PATH; do | |
5207 | test -z "$ac_dir" && ac_dir=. | |
5208 | if test -f $ac_dir/$ac_word; then | |
5209 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5210 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5211 | break | |
5212 | fi | |
5213 | fi | |
5214 | done | |
5215 | IFS="$ac_save_ifs" | |
5216 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5217 | ;; | |
5218 | esac | |
5219 | fi | |
5220 | MSGFMT="$ac_cv_path_MSGFMT" | |
5221 | if test -n "$MSGFMT"; then | |
5222 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5223 | echo "${ECHO_T}$MSGFMT" >&6 | |
5224 | else | |
5225 | echo "$as_me:$LINENO: result: no" >&5 | |
5226 | echo "${ECHO_T}no" >&6 | |
5227 | fi | |
5228 | if test "$MSGFMT" != "no"; then | |
5229 | ||
5230 | for ac_func in dcgettext | |
5231 | do | |
5232 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5233 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5234 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5235 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5237 | else | |
5238 | cat >conftest.$ac_ext <<_ACEOF | |
5239 | /* confdefs.h. */ | |
5240 | _ACEOF | |
5241 | cat confdefs.h >>conftest.$ac_ext | |
5242 | cat >>conftest.$ac_ext <<_ACEOF | |
5243 | /* end confdefs.h. */ | |
5244 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5245 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5246 | #define $ac_func innocuous_$ac_func | |
5247 | ||
5248 | /* System header to define __stub macros and hopefully few prototypes, | |
5249 | which can conflict with char $ac_func (); below. | |
5250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5251 | <limits.h> exists even on freestanding compilers. */ | |
5252 | ||
5253 | #ifdef __STDC__ | |
5254 | # include <limits.h> | |
5255 | #else | |
5256 | # include <assert.h> | |
5257 | #endif | |
5258 | ||
5259 | #undef $ac_func | |
5260 | ||
5261 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5262 | #ifdef __cplusplus | |
5263 | extern "C" | |
5264 | { | |
5265 | #endif | |
5266 | /* We use char because int might match the return type of a gcc2 | |
5267 | builtin and then its argument prototype would still apply. */ | |
5268 | char $ac_func (); | |
5269 | /* The GNU C library defines this for functions which it implements | |
5270 | to always fail with ENOSYS. Some functions are actually named | |
5271 | something starting with __ and the normal name is an alias. */ | |
5272 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5273 | choke me | |
5274 | #else | |
5275 | char (*f) () = $ac_func; | |
5276 | #endif | |
5277 | #ifdef __cplusplus | |
5278 | } | |
5279 | #endif | |
5280 | ||
5281 | int | |
5282 | main () | |
5283 | { | |
5284 | return f != $ac_func; | |
5285 | ; | |
5286 | return 0; | |
5287 | } | |
5288 | _ACEOF | |
5289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5291 | (eval $ac_link) 2>conftest.er1 | |
5292 | ac_status=$? | |
5293 | grep -v '^ *+' conftest.er1 >conftest.err | |
5294 | rm -f conftest.er1 | |
5295 | cat conftest.err >&5 | |
5296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5297 | (exit $ac_status); } && | |
5298 | { ac_try='test -z "$ac_c_werror_flag" | |
5299 | || test ! -s conftest.err' | |
5300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5301 | (eval $ac_try) 2>&5 | |
5302 | ac_status=$? | |
5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5304 | (exit $ac_status); }; } && | |
5305 | { ac_try='test -s conftest$ac_exeext' | |
5306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5307 | (eval $ac_try) 2>&5 | |
5308 | ac_status=$? | |
5309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5310 | (exit $ac_status); }; }; then | |
5311 | eval "$as_ac_var=yes" | |
5312 | else | |
5313 | echo "$as_me: failed program was:" >&5 | |
5314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5315 | ||
5316 | eval "$as_ac_var=no" | |
5317 | fi | |
5318 | rm -f conftest.err conftest.$ac_objext \ | |
5319 | conftest$ac_exeext conftest.$ac_ext | |
5320 | fi | |
5321 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5322 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5323 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5324 | cat >>confdefs.h <<_ACEOF | |
5325 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5326 | _ACEOF | |
5327 | ||
5328 | fi | |
5329 | done | |
5330 | ||
5331 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5332 | set dummy gmsgfmt; ac_word=$2 | |
5333 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5335 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5337 | else | |
5338 | case $GMSGFMT in | |
5339 | [\\/]* | ?:[\\/]*) | |
5340 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5341 | ;; | |
5342 | *) | |
5343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5344 | for as_dir in $PATH | |
5345 | do | |
5346 | IFS=$as_save_IFS | |
5347 | test -z "$as_dir" && as_dir=. | |
5348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5349 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5350 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5351 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5352 | break 2 | |
5353 | fi | |
5354 | done | |
5355 | done | |
5356 | ||
5357 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5358 | ;; | |
5359 | esac | |
5360 | fi | |
5361 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5362 | ||
5363 | if test -n "$GMSGFMT"; then | |
5364 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5365 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5366 | else | |
5367 | echo "$as_me:$LINENO: result: no" >&5 | |
5368 | echo "${ECHO_T}no" >&6 | |
5369 | fi | |
5370 | ||
5371 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5372 | set dummy xgettext; ac_word=$2 | |
5373 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5375 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5377 | else | |
5378 | case "$XGETTEXT" in | |
5379 | /*) | |
5380 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5381 | ;; | |
5382 | *) | |
5383 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5384 | for ac_dir in $PATH; do | |
5385 | test -z "$ac_dir" && ac_dir=. | |
5386 | if test -f $ac_dir/$ac_word; then | |
5387 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5388 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5389 | break | |
5390 | fi | |
5391 | fi | |
5392 | done | |
5393 | IFS="$ac_save_ifs" | |
5394 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5395 | ;; | |
5396 | esac | |
5397 | fi | |
5398 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5399 | if test -n "$XGETTEXT"; then | |
5400 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5401 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5402 | else | |
5403 | echo "$as_me:$LINENO: result: no" >&5 | |
5404 | echo "${ECHO_T}no" >&6 | |
5405 | fi | |
5406 | ||
5407 | cat >conftest.$ac_ext <<_ACEOF | |
5408 | /* confdefs.h. */ | |
5409 | _ACEOF | |
5410 | cat confdefs.h >>conftest.$ac_ext | |
5411 | cat >>conftest.$ac_ext <<_ACEOF | |
5412 | /* end confdefs.h. */ | |
5413 | ||
5414 | int | |
5415 | main () | |
5416 | { | |
5417 | extern int _nl_msg_cat_cntr; | |
5418 | return _nl_msg_cat_cntr | |
5419 | ; | |
5420 | return 0; | |
5421 | } | |
5422 | _ACEOF | |
5423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5425 | (eval $ac_link) 2>conftest.er1 | |
5426 | ac_status=$? | |
5427 | grep -v '^ *+' conftest.er1 >conftest.err | |
5428 | rm -f conftest.er1 | |
5429 | cat conftest.err >&5 | |
5430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5431 | (exit $ac_status); } && | |
5432 | { ac_try='test -z "$ac_c_werror_flag" | |
5433 | || test ! -s conftest.err' | |
5434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5435 | (eval $ac_try) 2>&5 | |
5436 | ac_status=$? | |
5437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5438 | (exit $ac_status); }; } && | |
5439 | { ac_try='test -s conftest$ac_exeext' | |
5440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5441 | (eval $ac_try) 2>&5 | |
5442 | ac_status=$? | |
5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5444 | (exit $ac_status); }; }; then | |
5445 | CATOBJEXT=.gmo | |
5446 | DATADIRNAME=share | |
5447 | else | |
5448 | echo "$as_me: failed program was:" >&5 | |
5449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5450 | ||
5451 | CATOBJEXT=.mo | |
5452 | DATADIRNAME=lib | |
5453 | fi | |
5454 | rm -f conftest.err conftest.$ac_objext \ | |
5455 | conftest$ac_exeext conftest.$ac_ext | |
5456 | INSTOBJEXT=.mo | |
5457 | fi | |
5458 | fi | |
5459 | ||
5460 | fi | |
5461 | ||
5462 | ||
5463 | ||
5464 | ||
a53bf506 | 5465 | if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then |
45181ed1 AC |
5466 | # Neither gettext nor catgets in included in the C library. |
5467 | # Fall back on GNU gettext library (assuming it is present). | |
5468 | nls_cv_use_gnu_gettext=yes | |
bec39cab AC |
5469 | fi |
5470 | fi | |
5471 | ||
5472 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5473 | INTLOBJS="\$(GETTOBJS)" | |
5474 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5475 | set dummy msgfmt; ac_word=$2 | |
5476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5478 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5480 | else | |
5481 | case "$MSGFMT" in | |
5482 | /*) | |
5483 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5484 | ;; | |
5485 | *) | |
5486 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5487 | for ac_dir in $PATH; do | |
5488 | test -z "$ac_dir" && ac_dir=. | |
5489 | if test -f $ac_dir/$ac_word; then | |
5490 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5491 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5492 | break | |
5493 | fi | |
5494 | fi | |
5495 | done | |
5496 | IFS="$ac_save_ifs" | |
5497 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5498 | ;; | |
5499 | esac | |
5500 | fi | |
5501 | MSGFMT="$ac_cv_path_MSGFMT" | |
5502 | if test -n "$MSGFMT"; then | |
5503 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5504 | echo "${ECHO_T}$MSGFMT" >&6 | |
5505 | else | |
5506 | echo "$as_me:$LINENO: result: no" >&5 | |
5507 | echo "${ECHO_T}no" >&6 | |
5508 | fi | |
5509 | ||
5510 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
c906108c | 5511 | set dummy gmsgfmt; ac_word=$2 |
bec39cab AC |
5512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5514 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5516 | else | |
5517 | case $GMSGFMT in | |
5518 | [\\/]* | ?:[\\/]*) | |
5519 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5520 | ;; | |
5521 | *) | |
5522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5523 | for as_dir in $PATH | |
5524 | do | |
5525 | IFS=$as_save_IFS | |
5526 | test -z "$as_dir" && as_dir=. | |
5527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5529 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5531 | break 2 | |
5532 | fi | |
5533 | done | |
5534 | done | |
5535 | ||
5536 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5537 | ;; | |
5538 | esac | |
5539 | fi | |
5540 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5541 | ||
5542 | if test -n "$GMSGFMT"; then | |
5543 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5544 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5545 | else | |
5546 | echo "$as_me:$LINENO: result: no" >&5 | |
5547 | echo "${ECHO_T}no" >&6 | |
5548 | fi | |
5549 | ||
5550 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5551 | set dummy xgettext; ac_word=$2 | |
5552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5554 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5556 | else | |
5557 | case "$XGETTEXT" in | |
5558 | /*) | |
5559 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5560 | ;; | |
5561 | *) | |
5562 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5563 | for ac_dir in $PATH; do | |
5564 | test -z "$ac_dir" && ac_dir=. | |
5565 | if test -f $ac_dir/$ac_word; then | |
5566 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5567 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5568 | break | |
5569 | fi | |
5570 | fi | |
5571 | done | |
5572 | IFS="$ac_save_ifs" | |
5573 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5574 | ;; | |
5575 | esac | |
5576 | fi | |
5577 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5578 | if test -n "$XGETTEXT"; then | |
5579 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5580 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5581 | else | |
5582 | echo "$as_me:$LINENO: result: no" >&5 | |
5583 | echo "${ECHO_T}no" >&6 | |
5584 | fi | |
5585 | ||
5586 | ||
5587 | USE_INCLUDED_LIBINTL=yes | |
5588 | CATOBJEXT=.gmo | |
5589 | INSTOBJEXT=.mo | |
5590 | DATADIRNAME=share | |
5591 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5592 | INTLLIBS=$INTLDEPS | |
5593 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5594 | nls_cv_header_intl=libintl.h | |
5595 | nls_cv_header_libgt=libgettext.h | |
5596 | fi | |
5597 | ||
5598 | if test "$XGETTEXT" != ":"; then | |
5599 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5600 | : ; | |
5601 | else | |
5602 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 | |
5603 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
5604 | XGETTEXT=":" | |
5605 | fi | |
5606 | fi | |
5607 | ||
5608 | # We need to process the po/ directory. | |
5609 | POSUB=po | |
5610 | else | |
5611 | DATADIRNAME=share | |
5612 | nls_cv_header_intl=libintl.h | |
5613 | nls_cv_header_libgt=libgettext.h | |
5614 | fi | |
5615 | ||
5616 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5617 | # because some of the sources are only built for this goal. | |
5618 | if test "$PACKAGE" = gettext; then | |
5619 | USE_NLS=yes | |
5620 | USE_INCLUDED_LIBINTL=yes | |
5621 | fi | |
5622 | ||
5623 | for lang in $ALL_LINGUAS; do | |
5624 | GMOFILES="$GMOFILES $lang.gmo" | |
5625 | POFILES="$POFILES $lang.po" | |
5626 | done | |
5627 | ||
5628 | ||
5629 | ||
5630 | ||
5631 | ||
5632 | ||
5633 | ||
5634 | ||
5635 | ||
5636 | ||
5637 | ||
5638 | ||
c46f8c51 AC |
5639 | if test "x$CATOBJEXT" != "x"; then |
5640 | ||
5641 | cat >>confdefs.h <<\_ACEOF | |
5642 | #define ENABLE_NLS 1 | |
5643 | _ACEOF | |
5644 | ||
5645 | fi | |
bec39cab AC |
5646 | |
5647 | ||
5648 | if test "x$CATOBJEXT" != "x"; then | |
5649 | if test "x$ALL_LINGUAS" = "x"; then | |
5650 | LINGUAS= | |
5651 | else | |
5652 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5653 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5654 | NEW_LINGUAS= | |
5655 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5656 | case "$ALL_LINGUAS" in | |
5657 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5658 | esac | |
5659 | done | |
5660 | LINGUAS=$NEW_LINGUAS | |
5661 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5662 | echo "${ECHO_T}$LINGUAS" >&6 | |
5663 | fi | |
5664 | ||
5665 | if test -n "$LINGUAS"; then | |
5666 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5667 | fi | |
5668 | fi | |
5669 | ||
5670 | if test $ac_cv_header_locale_h = yes; then | |
5671 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5672 | else | |
5673 | INCLUDE_LOCALE_H="\ | |
5674 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5675 | fi | |
5676 | ||
5677 | ||
5678 | if test -f $srcdir/po2tbl.sed.in; then | |
5679 | if test "$CATOBJEXT" = ".cat"; then | |
5680 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5681 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5682 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5683 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5685 | fi | |
5686 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5687 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5688 | else | |
5689 | # Is the header compilable? | |
5690 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5691 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5692 | cat >conftest.$ac_ext <<_ACEOF | |
5693 | /* confdefs.h. */ | |
5694 | _ACEOF | |
5695 | cat confdefs.h >>conftest.$ac_ext | |
5696 | cat >>conftest.$ac_ext <<_ACEOF | |
5697 | /* end confdefs.h. */ | |
5698 | $ac_includes_default | |
5699 | #include <linux/version.h> | |
5700 | _ACEOF | |
5701 | rm -f conftest.$ac_objext | |
5702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5703 | (eval $ac_compile) 2>conftest.er1 | |
5704 | ac_status=$? | |
5705 | grep -v '^ *+' conftest.er1 >conftest.err | |
5706 | rm -f conftest.er1 | |
5707 | cat conftest.err >&5 | |
5708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5709 | (exit $ac_status); } && | |
5710 | { ac_try='test -z "$ac_c_werror_flag" | |
5711 | || test ! -s conftest.err' | |
5712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5713 | (eval $ac_try) 2>&5 | |
5714 | ac_status=$? | |
5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5716 | (exit $ac_status); }; } && | |
5717 | { ac_try='test -s conftest.$ac_objext' | |
5718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5719 | (eval $ac_try) 2>&5 | |
5720 | ac_status=$? | |
5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5722 | (exit $ac_status); }; }; then | |
5723 | ac_header_compiler=yes | |
5724 | else | |
5725 | echo "$as_me: failed program was:" >&5 | |
5726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5727 | ||
5728 | ac_header_compiler=no | |
5729 | fi | |
5730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5731 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5732 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5733 | ||
5734 | # Is the header present? | |
5735 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5736 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5737 | cat >conftest.$ac_ext <<_ACEOF | |
5738 | /* confdefs.h. */ | |
5739 | _ACEOF | |
5740 | cat confdefs.h >>conftest.$ac_ext | |
5741 | cat >>conftest.$ac_ext <<_ACEOF | |
5742 | /* end confdefs.h. */ | |
5743 | #include <linux/version.h> | |
5744 | _ACEOF | |
5745 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5746 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5747 | ac_status=$? | |
5748 | grep -v '^ *+' conftest.er1 >conftest.err | |
5749 | rm -f conftest.er1 | |
5750 | cat conftest.err >&5 | |
5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5752 | (exit $ac_status); } >/dev/null; then | |
5753 | if test -s conftest.err; then | |
5754 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5755 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5756 | else | |
5757 | ac_cpp_err= | |
5758 | fi | |
5759 | else | |
5760 | ac_cpp_err=yes | |
5761 | fi | |
5762 | if test -z "$ac_cpp_err"; then | |
5763 | ac_header_preproc=yes | |
5764 | else | |
5765 | echo "$as_me: failed program was:" >&5 | |
5766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5767 | ||
5768 | ac_header_preproc=no | |
5769 | fi | |
5770 | rm -f conftest.err conftest.$ac_ext | |
5771 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5772 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5773 | ||
5774 | # So? What about this header? | |
5775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5776 | yes:no: ) | |
5777 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5778 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5779 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5780 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5781 | ac_header_preproc=yes | |
5782 | ;; | |
5783 | no:yes:* ) | |
5784 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5785 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5786 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5787 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5788 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5789 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5790 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5791 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5792 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5793 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5794 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5795 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5796 | ( | |
5797 | cat <<\_ASBOX | |
5798 | ## ------------------------------------------ ## | |
5799 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5800 | ## ------------------------------------------ ## | |
5801 | _ASBOX | |
5802 | ) | | |
5803 | sed "s/^/$as_me: WARNING: /" >&2 | |
5804 | ;; | |
5805 | esac | |
5806 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5807 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5808 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5810 | else | |
5811 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5812 | fi | |
5813 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5814 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5815 | ||
5816 | fi | |
5817 | if test $ac_cv_header_linux_version_h = yes; then | |
5818 | msgformat=linux | |
5819 | else | |
5820 | msgformat=xopen | |
5821 | fi | |
5822 | ||
5823 | ||
5824 | ||
5825 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
5826 | fi | |
5827 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5828 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5829 | fi | |
5830 | ||
5831 | if test "$PACKAGE" = "gettext"; then | |
5832 | GT_NO="#NO#" | |
5833 | GT_YES= | |
5834 | else | |
5835 | GT_NO= | |
5836 | GT_YES="#YES#" | |
5837 | fi | |
5838 | ||
5839 | ||
5840 | ||
5841 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
5842 | ||
5843 | ||
5844 | l= | |
5845 | ||
5846 | ||
5847 | if test -f $srcdir/po/POTFILES.in; then | |
5848 | test -d po || mkdir po | |
5849 | if test "x$srcdir" != "x."; then | |
5850 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5851 | posrcprefix="$srcdir/" | |
5852 | else | |
5853 | posrcprefix="../$srcdir/" | |
5854 | fi | |
5855 | else | |
5856 | posrcprefix="../" | |
5857 | fi | |
5858 | rm -f po/POTFILES | |
5859 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5860 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5861 | fi | |
5862 | ||
5863 | ||
5864 | localedir='${datadir}/locale' | |
5865 | ||
5866 | ||
5867 | if test "x$POSUB" != x; then | |
5868 | ||
5869 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5870 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5871 | # Look for .po and .gmo files in the source directory. | |
5872 | CATALOGS= | |
5873 | XLINGUAS= | |
5874 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5875 | # If there aren't any .gmo files the shell will give us the | |
5876 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5877 | # weeded out. | |
5878 | case "$cat" in *\**) | |
5879 | continue;; | |
5880 | esac | |
5881 | # The quadruple backslash is collapsed to a double backslash | |
5882 | # by the backticks, then collapsed again by the double quotes, | |
5883 | # leaving us with one backslash in the sed expression (right | |
5884 | # before the dot that mustn't act as a wildcard). | |
5885 | cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"` | |
5886 | lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"` | |
5887 | # The user is allowed to set LINGUAS to a list of languages to | |
5888 | # install catalogs for. If it's empty that means "all of them." | |
5889 | if test "x$LINGUAS" = x; then | |
5890 | CATALOGS="$CATALOGS $cat" | |
5891 | XLINGUAS="$XLINGUAS $lang" | |
5892 | else | |
5893 | case "$LINGUAS" in *$lang*) | |
5894 | CATALOGS="$CATALOGS $cat" | |
5895 | XLINGUAS="$XLINGUAS $lang" | |
5896 | ;; | |
5897 | esac | |
5898 | fi | |
5899 | done | |
5900 | LINGUAS="$XLINGUAS" | |
5901 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5902 | echo "${ECHO_T}$LINGUAS" >&6 | |
5903 | ||
5904 | CONFIG_ALL="$CONFIG_ALL all-po" | |
5905 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
5906 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
5907 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
5908 | fi | |
5909 | ||
5910 | PACKAGE=gdb | |
5911 | ||
5912 | cat >>confdefs.h <<_ACEOF | |
5913 | #define PACKAGE "$PACKAGE" | |
5914 | _ACEOF | |
5915 | ||
5916 | ||
5917 | ||
5918 | debugdir=${libdir}/debug | |
5919 | ||
5920 | ||
5921 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. | |
5922 | if test "${with_separate_debug_dir+set}" = set; then | |
5923 | withval="$with_separate_debug_dir" | |
5924 | debugdir="${withval}" | |
5925 | fi; | |
5926 | ||
5927 | ||
5928 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
5929 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5930 | ac_define_dir=`eval echo $debugdir` | |
5931 | ac_define_dir=`eval echo $ac_define_dir` | |
5932 | ||
5933 | cat >>confdefs.h <<_ACEOF | |
5934 | #define DEBUGDIR "$ac_define_dir" | |
5935 | _ACEOF | |
5936 | ||
5937 | ||
5938 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
5939 | ||
5940 | ||
5941 | ||
5942 | subdirs="$subdirs doc testsuite" | |
5943 | ||
5944 | ||
5945 | . $srcdir/configure.host | |
5946 | ||
5947 | . $srcdir/configure.tgt | |
5948 | ||
5949 | # Fetch the default architecture and default target vector from BFD. | |
5950 | targ=$target; . $srcdir/../bfd/config.bfd | |
5951 | ||
5952 | # We only want the first architecture, so strip off the others if | |
5953 | # there is more than one. | |
5954 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
5955 | ||
5956 | if test "x$targ_archs" != x; then | |
5957 | ||
5958 | cat >>confdefs.h <<_ACEOF | |
5959 | #define DEFAULT_BFD_ARCH $targ_archs | |
5960 | _ACEOF | |
5961 | ||
5962 | fi | |
5963 | if test "x$targ_defvec" != x; then | |
5964 | ||
5965 | cat >>confdefs.h <<_ACEOF | |
5966 | #define DEFAULT_BFD_VEC $targ_defvec | |
5967 | _ACEOF | |
5968 | ||
5969 | fi | |
5970 | ||
5971 | test "$program_prefix" != NONE && | |
5972 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
5973 | # Use a double $ so make ignores it. | |
5974 | test "$program_suffix" != NONE && | |
5975 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
5976 | # Double any \ or $. echo might interpret backslashes. | |
5977 | # By default was `s,x,x', remove it if useless. | |
5978 | cat <<\_ACEOF >conftest.sed | |
5979 | s/[\\$]/&&/g;s/;s,x,x,$// | |
5980 | _ACEOF | |
5981 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
5982 | rm conftest.sed | |
5983 | ||
5984 | ||
5985 | # The CLI cannot be disabled yet, but may be in the future. | |
5986 | ||
5987 | # Enable CLI. | |
5988 | # Check whether --enable-gdbcli or --disable-gdbcli was given. | |
5989 | if test "${enable_gdbcli+set}" = set; then | |
5990 | enableval="$enable_gdbcli" | |
5991 | case $enableval in | |
5992 | yes) | |
5993 | ;; | |
5994 | no) | |
5995 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
5996 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
5997 | { (exit 1); exit 1; }; } ;; | |
5998 | *) | |
5999 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
6000 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
6001 | { (exit 1); exit 1; }; } ;; | |
6002 | esac | |
6003 | else | |
6004 | enable_gdbcli=yes | |
6005 | fi; | |
6006 | if test x"$enable_gdbcli" = xyes; then | |
6007 | if test -d $srcdir/cli; then | |
6008 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
6009 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
6010 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
6011 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
6012 | fi | |
6013 | fi | |
6014 | ||
6015 | # Enable MI. | |
6016 | # Check whether --enable-gdbmi or --disable-gdbmi was given. | |
6017 | if test "${enable_gdbmi+set}" = set; then | |
6018 | enableval="$enable_gdbmi" | |
6019 | case $enableval in | |
6020 | yes | no) | |
6021 | ;; | |
6022 | *) | |
6023 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
6024 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
6025 | { (exit 1); exit 1; }; } ;; | |
6026 | esac | |
6027 | else | |
6028 | enable_gdbmi=yes | |
6029 | fi; | |
6030 | if test x"$enable_gdbmi" = xyes; then | |
6031 | if test -d $srcdir/mi; then | |
6032 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
6033 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
6034 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
6035 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
6036 | fi | |
6037 | fi | |
6038 | ||
6039 | # Enable TUI. | |
6040 | # Check whether --enable-tui or --disable-tui was given. | |
6041 | if test "${enable_tui+set}" = set; then | |
6042 | enableval="$enable_tui" | |
6043 | case $enableval in | |
6044 | yes | no) | |
6045 | ;; | |
6046 | *) | |
6047 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
6048 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
6049 | { (exit 1); exit 1; }; } ;; | |
6050 | esac | |
6051 | else | |
6052 | enable_tui=yes | |
6053 | fi; | |
6054 | ||
6055 | # Enable gdbtk. | |
6056 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
6057 | if test "${enable_gdbtk+set}" = set; then | |
6058 | enableval="$enable_gdbtk" | |
6059 | case $enableval in | |
6060 | yes | no) | |
6061 | ;; | |
6062 | *) | |
6063 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
6064 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
6065 | { (exit 1); exit 1; }; } ;; | |
6066 | esac | |
6067 | else | |
04ac69aa | 6068 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
bec39cab AC |
6069 | enable_gdbtk=yes |
6070 | else | |
6071 | enable_gdbtk=no | |
6072 | fi | |
6073 | fi; | |
6074 | # We unconditionally disable gdbtk tests on selected platforms. | |
6075 | case $host_os in | |
6076 | go32* | windows*) | |
6077 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
6078 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
6079 | enable_gdbtk=no ;; | |
6080 | esac | |
6081 | ||
6082 | # Libunwind support. | |
6083 | ||
6084 | # Check whether --with-libunwind or --without-libunwind was given. | |
6085 | if test "${with_libunwind+set}" = set; then | |
6086 | withval="$with_libunwind" | |
6087 | case "${withval}" in | |
6088 | yes) enable_libunwind=yes ;; | |
6089 | no) enable_libunwind=no ;; | |
6090 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
6091 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
6092 | { (exit 1); exit 1; }; } ;; | |
6093 | esac | |
6094 | else | |
6095 | ||
6096 | ||
6097 | for ac_header in libunwind.h | |
6098 | do | |
6099 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6100 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6105 | fi | |
6106 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6107 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6108 | else | |
6109 | # Is the header compilable? | |
6110 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6111 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6112 | cat >conftest.$ac_ext <<_ACEOF | |
6113 | /* confdefs.h. */ | |
6114 | _ACEOF | |
6115 | cat confdefs.h >>conftest.$ac_ext | |
6116 | cat >>conftest.$ac_ext <<_ACEOF | |
6117 | /* end confdefs.h. */ | |
6118 | $ac_includes_default | |
6119 | #include <$ac_header> | |
6120 | _ACEOF | |
6121 | rm -f conftest.$ac_objext | |
6122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6123 | (eval $ac_compile) 2>conftest.er1 | |
6124 | ac_status=$? | |
6125 | grep -v '^ *+' conftest.er1 >conftest.err | |
6126 | rm -f conftest.er1 | |
6127 | cat conftest.err >&5 | |
6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6129 | (exit $ac_status); } && | |
6130 | { ac_try='test -z "$ac_c_werror_flag" | |
6131 | || test ! -s conftest.err' | |
6132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6133 | (eval $ac_try) 2>&5 | |
6134 | ac_status=$? | |
6135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6136 | (exit $ac_status); }; } && | |
6137 | { ac_try='test -s conftest.$ac_objext' | |
6138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6139 | (eval $ac_try) 2>&5 | |
6140 | ac_status=$? | |
6141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6142 | (exit $ac_status); }; }; then | |
6143 | ac_header_compiler=yes | |
6144 | else | |
6145 | echo "$as_me: failed program was:" >&5 | |
6146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6147 | ||
6148 | ac_header_compiler=no | |
6149 | fi | |
6150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6151 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6152 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6153 | ||
6154 | # Is the header present? | |
6155 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6156 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6157 | cat >conftest.$ac_ext <<_ACEOF | |
6158 | /* confdefs.h. */ | |
6159 | _ACEOF | |
6160 | cat confdefs.h >>conftest.$ac_ext | |
6161 | cat >>conftest.$ac_ext <<_ACEOF | |
6162 | /* end confdefs.h. */ | |
6163 | #include <$ac_header> | |
6164 | _ACEOF | |
6165 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6166 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6167 | ac_status=$? | |
6168 | grep -v '^ *+' conftest.er1 >conftest.err | |
6169 | rm -f conftest.er1 | |
6170 | cat conftest.err >&5 | |
6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6172 | (exit $ac_status); } >/dev/null; then | |
6173 | if test -s conftest.err; then | |
6174 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6175 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6176 | else | |
6177 | ac_cpp_err= | |
6178 | fi | |
6179 | else | |
6180 | ac_cpp_err=yes | |
6181 | fi | |
6182 | if test -z "$ac_cpp_err"; then | |
6183 | ac_header_preproc=yes | |
6184 | else | |
6185 | echo "$as_me: failed program was:" >&5 | |
6186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6187 | ||
6188 | ac_header_preproc=no | |
6189 | fi | |
6190 | rm -f conftest.err conftest.$ac_ext | |
6191 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6192 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6193 | ||
6194 | # So? What about this header? | |
6195 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6196 | yes:no: ) | |
6197 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6198 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6199 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6200 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6201 | ac_header_preproc=yes | |
6202 | ;; | |
6203 | no:yes:* ) | |
6204 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6205 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6206 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6207 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6208 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6209 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6210 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6211 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6212 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6213 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6214 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6215 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6216 | ( | |
6217 | cat <<\_ASBOX | |
6218 | ## ------------------------------------------ ## | |
6219 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6220 | ## ------------------------------------------ ## | |
6221 | _ASBOX | |
6222 | ) | | |
6223 | sed "s/^/$as_me: WARNING: /" >&2 | |
6224 | ;; | |
6225 | esac | |
6226 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6227 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6228 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6230 | else | |
6231 | eval "$as_ac_Header=\$ac_header_preproc" | |
6232 | fi | |
6233 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6234 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6235 | ||
6236 | fi | |
6237 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6238 | cat >>confdefs.h <<_ACEOF | |
6239 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6240 | _ACEOF | |
6241 | ||
6242 | fi | |
6243 | ||
6244 | done | |
6245 | ||
6246 | ||
6247 | for ac_header in libunwind-ia64.h | |
6248 | do | |
6249 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6251 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6255 | fi | |
6256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6257 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6258 | else | |
6259 | # Is the header compilable? | |
6260 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6261 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6262 | cat >conftest.$ac_ext <<_ACEOF | |
6263 | /* confdefs.h. */ | |
6264 | _ACEOF | |
6265 | cat confdefs.h >>conftest.$ac_ext | |
6266 | cat >>conftest.$ac_ext <<_ACEOF | |
6267 | /* end confdefs.h. */ | |
6268 | $ac_includes_default | |
6269 | #include <$ac_header> | |
6270 | _ACEOF | |
6271 | rm -f conftest.$ac_objext | |
6272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6273 | (eval $ac_compile) 2>conftest.er1 | |
6274 | ac_status=$? | |
6275 | grep -v '^ *+' conftest.er1 >conftest.err | |
6276 | rm -f conftest.er1 | |
6277 | cat conftest.err >&5 | |
6278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6279 | (exit $ac_status); } && | |
6280 | { ac_try='test -z "$ac_c_werror_flag" | |
6281 | || test ! -s conftest.err' | |
6282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6283 | (eval $ac_try) 2>&5 | |
6284 | ac_status=$? | |
6285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6286 | (exit $ac_status); }; } && | |
6287 | { ac_try='test -s conftest.$ac_objext' | |
6288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6289 | (eval $ac_try) 2>&5 | |
6290 | ac_status=$? | |
6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6292 | (exit $ac_status); }; }; then | |
6293 | ac_header_compiler=yes | |
6294 | else | |
6295 | echo "$as_me: failed program was:" >&5 | |
6296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6297 | ||
6298 | ac_header_compiler=no | |
6299 | fi | |
6300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6301 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6302 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6303 | ||
6304 | # Is the header present? | |
6305 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6306 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6307 | cat >conftest.$ac_ext <<_ACEOF | |
6308 | /* confdefs.h. */ | |
6309 | _ACEOF | |
6310 | cat confdefs.h >>conftest.$ac_ext | |
6311 | cat >>conftest.$ac_ext <<_ACEOF | |
6312 | /* end confdefs.h. */ | |
6313 | #include <$ac_header> | |
6314 | _ACEOF | |
6315 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6316 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6317 | ac_status=$? | |
6318 | grep -v '^ *+' conftest.er1 >conftest.err | |
6319 | rm -f conftest.er1 | |
6320 | cat conftest.err >&5 | |
6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6322 | (exit $ac_status); } >/dev/null; then | |
6323 | if test -s conftest.err; then | |
6324 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6325 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6326 | else | |
6327 | ac_cpp_err= | |
6328 | fi | |
6329 | else | |
6330 | ac_cpp_err=yes | |
6331 | fi | |
6332 | if test -z "$ac_cpp_err"; then | |
6333 | ac_header_preproc=yes | |
6334 | else | |
6335 | echo "$as_me: failed program was:" >&5 | |
6336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6337 | ||
6338 | ac_header_preproc=no | |
6339 | fi | |
6340 | rm -f conftest.err conftest.$ac_ext | |
6341 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6342 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6343 | ||
6344 | # So? What about this header? | |
6345 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6346 | yes:no: ) | |
6347 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6348 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6350 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6351 | ac_header_preproc=yes | |
6352 | ;; | |
6353 | no:yes:* ) | |
6354 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6355 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6356 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6357 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6358 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6359 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6360 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6361 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6362 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6363 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6364 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6365 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6366 | ( | |
6367 | cat <<\_ASBOX | |
6368 | ## ------------------------------------------ ## | |
6369 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6370 | ## ------------------------------------------ ## | |
6371 | _ASBOX | |
6372 | ) | | |
6373 | sed "s/^/$as_me: WARNING: /" >&2 | |
6374 | ;; | |
6375 | esac | |
6376 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6380 | else | |
6381 | eval "$as_ac_Header=\$ac_header_preproc" | |
6382 | fi | |
6383 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6384 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6385 | ||
6386 | fi | |
6387 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6388 | cat >>confdefs.h <<_ACEOF | |
6389 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6390 | _ACEOF | |
6391 | ||
6392 | fi | |
6393 | ||
6394 | done | |
6395 | ||
6396 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
6397 | enable_libunwind=yes; | |
6398 | fi | |
6399 | ||
6400 | fi; | |
6401 | ||
6402 | if test x"$enable_libunwind" = xyes; then | |
6403 | ||
6404 | for ac_header in libunwind.h | |
6405 | do | |
6406 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6412 | fi | |
6413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6414 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6415 | else | |
6416 | # Is the header compilable? | |
6417 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6418 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6419 | cat >conftest.$ac_ext <<_ACEOF | |
6420 | /* confdefs.h. */ | |
6421 | _ACEOF | |
6422 | cat confdefs.h >>conftest.$ac_ext | |
6423 | cat >>conftest.$ac_ext <<_ACEOF | |
6424 | /* end confdefs.h. */ | |
6425 | $ac_includes_default | |
6426 | #include <$ac_header> | |
6427 | _ACEOF | |
6428 | rm -f conftest.$ac_objext | |
6429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6430 | (eval $ac_compile) 2>conftest.er1 | |
6431 | ac_status=$? | |
6432 | grep -v '^ *+' conftest.er1 >conftest.err | |
6433 | rm -f conftest.er1 | |
6434 | cat conftest.err >&5 | |
6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6436 | (exit $ac_status); } && | |
6437 | { ac_try='test -z "$ac_c_werror_flag" | |
6438 | || test ! -s conftest.err' | |
6439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6440 | (eval $ac_try) 2>&5 | |
6441 | ac_status=$? | |
6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6443 | (exit $ac_status); }; } && | |
6444 | { ac_try='test -s conftest.$ac_objext' | |
6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6446 | (eval $ac_try) 2>&5 | |
6447 | ac_status=$? | |
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6449 | (exit $ac_status); }; }; then | |
6450 | ac_header_compiler=yes | |
6451 | else | |
6452 | echo "$as_me: failed program was:" >&5 | |
6453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6454 | ||
6455 | ac_header_compiler=no | |
6456 | fi | |
6457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6458 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6459 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6460 | ||
6461 | # Is the header present? | |
6462 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6463 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6464 | cat >conftest.$ac_ext <<_ACEOF | |
6465 | /* confdefs.h. */ | |
6466 | _ACEOF | |
6467 | cat confdefs.h >>conftest.$ac_ext | |
6468 | cat >>conftest.$ac_ext <<_ACEOF | |
6469 | /* end confdefs.h. */ | |
6470 | #include <$ac_header> | |
6471 | _ACEOF | |
6472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6474 | ac_status=$? | |
6475 | grep -v '^ *+' conftest.er1 >conftest.err | |
6476 | rm -f conftest.er1 | |
6477 | cat conftest.err >&5 | |
6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6479 | (exit $ac_status); } >/dev/null; then | |
6480 | if test -s conftest.err; then | |
6481 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6482 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6483 | else | |
6484 | ac_cpp_err= | |
6485 | fi | |
6486 | else | |
6487 | ac_cpp_err=yes | |
6488 | fi | |
6489 | if test -z "$ac_cpp_err"; then | |
6490 | ac_header_preproc=yes | |
6491 | else | |
6492 | echo "$as_me: failed program was:" >&5 | |
6493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6494 | ||
6495 | ac_header_preproc=no | |
6496 | fi | |
6497 | rm -f conftest.err conftest.$ac_ext | |
6498 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6499 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6500 | ||
6501 | # So? What about this header? | |
6502 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6503 | yes:no: ) | |
6504 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6505 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6506 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6507 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6508 | ac_header_preproc=yes | |
6509 | ;; | |
6510 | no:yes:* ) | |
6511 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6512 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6513 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6514 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6515 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6516 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6517 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6518 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6519 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6520 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6521 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6522 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6523 | ( | |
6524 | cat <<\_ASBOX | |
6525 | ## ------------------------------------------ ## | |
6526 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6527 | ## ------------------------------------------ ## | |
6528 | _ASBOX | |
6529 | ) | | |
6530 | sed "s/^/$as_me: WARNING: /" >&2 | |
6531 | ;; | |
6532 | esac | |
6533 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6537 | else | |
6538 | eval "$as_ac_Header=\$ac_header_preproc" | |
6539 | fi | |
6540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6541 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6542 | ||
6543 | fi | |
6544 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6545 | cat >>confdefs.h <<_ACEOF | |
6546 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6547 | _ACEOF | |
6548 | ||
6549 | fi | |
6550 | ||
6551 | done | |
6552 | ||
6553 | ||
6554 | for ac_header in libunwind-ia64.h | |
6555 | do | |
6556 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6562 | fi | |
6563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6565 | else | |
6566 | # Is the header compilable? | |
6567 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6568 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6569 | cat >conftest.$ac_ext <<_ACEOF | |
6570 | /* confdefs.h. */ | |
6571 | _ACEOF | |
6572 | cat confdefs.h >>conftest.$ac_ext | |
6573 | cat >>conftest.$ac_ext <<_ACEOF | |
6574 | /* end confdefs.h. */ | |
6575 | $ac_includes_default | |
6576 | #include <$ac_header> | |
6577 | _ACEOF | |
6578 | rm -f conftest.$ac_objext | |
6579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6580 | (eval $ac_compile) 2>conftest.er1 | |
6581 | ac_status=$? | |
6582 | grep -v '^ *+' conftest.er1 >conftest.err | |
6583 | rm -f conftest.er1 | |
6584 | cat conftest.err >&5 | |
6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6586 | (exit $ac_status); } && | |
6587 | { ac_try='test -z "$ac_c_werror_flag" | |
6588 | || test ! -s conftest.err' | |
6589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6590 | (eval $ac_try) 2>&5 | |
6591 | ac_status=$? | |
6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6593 | (exit $ac_status); }; } && | |
6594 | { ac_try='test -s conftest.$ac_objext' | |
6595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6596 | (eval $ac_try) 2>&5 | |
6597 | ac_status=$? | |
6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6599 | (exit $ac_status); }; }; then | |
6600 | ac_header_compiler=yes | |
6601 | else | |
6602 | echo "$as_me: failed program was:" >&5 | |
6603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6604 | ||
6605 | ac_header_compiler=no | |
6606 | fi | |
6607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6608 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6609 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6610 | ||
6611 | # Is the header present? | |
6612 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6613 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6614 | cat >conftest.$ac_ext <<_ACEOF | |
6615 | /* confdefs.h. */ | |
6616 | _ACEOF | |
6617 | cat confdefs.h >>conftest.$ac_ext | |
6618 | cat >>conftest.$ac_ext <<_ACEOF | |
6619 | /* end confdefs.h. */ | |
6620 | #include <$ac_header> | |
6621 | _ACEOF | |
6622 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6623 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6624 | ac_status=$? | |
6625 | grep -v '^ *+' conftest.er1 >conftest.err | |
6626 | rm -f conftest.er1 | |
6627 | cat conftest.err >&5 | |
6628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6629 | (exit $ac_status); } >/dev/null; then | |
6630 | if test -s conftest.err; then | |
6631 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6632 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6633 | else | |
6634 | ac_cpp_err= | |
6635 | fi | |
6636 | else | |
6637 | ac_cpp_err=yes | |
6638 | fi | |
6639 | if test -z "$ac_cpp_err"; then | |
6640 | ac_header_preproc=yes | |
6641 | else | |
6642 | echo "$as_me: failed program was:" >&5 | |
6643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6644 | ||
6645 | ac_header_preproc=no | |
6646 | fi | |
6647 | rm -f conftest.err conftest.$ac_ext | |
6648 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6649 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6650 | ||
6651 | # So? What about this header? | |
6652 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6653 | yes:no: ) | |
6654 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6655 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6656 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6657 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6658 | ac_header_preproc=yes | |
6659 | ;; | |
6660 | no:yes:* ) | |
6661 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6662 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6663 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6664 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6665 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6666 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6667 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6668 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6670 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6671 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6672 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6673 | ( | |
6674 | cat <<\_ASBOX | |
6675 | ## ------------------------------------------ ## | |
6676 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6677 | ## ------------------------------------------ ## | |
6678 | _ASBOX | |
6679 | ) | | |
6680 | sed "s/^/$as_me: WARNING: /" >&2 | |
6681 | ;; | |
6682 | esac | |
6683 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6687 | else | |
6688 | eval "$as_ac_Header=\$ac_header_preproc" | |
6689 | fi | |
6690 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6691 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6692 | ||
6693 | fi | |
6694 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6695 | cat >>confdefs.h <<_ACEOF | |
6696 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6697 | _ACEOF | |
6698 | ||
6699 | fi | |
6700 | ||
6701 | done | |
6702 | ||
60ca704f SE |
6703 | |
6704 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
6705 | #define HAVE_LIBUNWIND 1 |
6706 | _ACEOF | |
6707 | ||
6708 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
6709 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
6710 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
6711 | fi | |
6712 | ||
6713 | # Profiling support. | |
6714 | # Check whether --enable-profiling or --disable-profiling was given. | |
6715 | if test "${enable_profiling+set}" = set; then | |
6716 | enableval="$enable_profiling" | |
6717 | case $enableval in | |
6718 | yes | no) | |
6719 | ;; | |
6720 | *) | |
6721 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
6722 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
6723 | { (exit 1); exit 1; }; } ;; | |
6724 | esac | |
6725 | else | |
6726 | enable_profiling=no | |
6727 | fi; | |
6728 | ||
6729 | ||
6730 | ||
6731 | for ac_func in monstartup _mcleanup | |
6732 | do | |
6733 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6734 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6735 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6736 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6738 | else | |
6739 | cat >conftest.$ac_ext <<_ACEOF | |
6740 | /* confdefs.h. */ | |
6741 | _ACEOF | |
6742 | cat confdefs.h >>conftest.$ac_ext | |
6743 | cat >>conftest.$ac_ext <<_ACEOF | |
6744 | /* end confdefs.h. */ | |
6745 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6746 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6747 | #define $ac_func innocuous_$ac_func | |
6748 | ||
6749 | /* System header to define __stub macros and hopefully few prototypes, | |
6750 | which can conflict with char $ac_func (); below. | |
6751 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6752 | <limits.h> exists even on freestanding compilers. */ | |
6753 | ||
6754 | #ifdef __STDC__ | |
6755 | # include <limits.h> | |
6756 | #else | |
6757 | # include <assert.h> | |
6758 | #endif | |
6759 | ||
6760 | #undef $ac_func | |
6761 | ||
6762 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6763 | #ifdef __cplusplus | |
6764 | extern "C" | |
6765 | { | |
6766 | #endif | |
6767 | /* We use char because int might match the return type of a gcc2 | |
6768 | builtin and then its argument prototype would still apply. */ | |
6769 | char $ac_func (); | |
6770 | /* The GNU C library defines this for functions which it implements | |
6771 | to always fail with ENOSYS. Some functions are actually named | |
6772 | something starting with __ and the normal name is an alias. */ | |
6773 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6774 | choke me | |
6775 | #else | |
6776 | char (*f) () = $ac_func; | |
6777 | #endif | |
6778 | #ifdef __cplusplus | |
6779 | } | |
6780 | #endif | |
6781 | ||
6782 | int | |
6783 | main () | |
6784 | { | |
6785 | return f != $ac_func; | |
6786 | ; | |
6787 | return 0; | |
6788 | } | |
6789 | _ACEOF | |
6790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6792 | (eval $ac_link) 2>conftest.er1 | |
6793 | ac_status=$? | |
6794 | grep -v '^ *+' conftest.er1 >conftest.err | |
6795 | rm -f conftest.er1 | |
6796 | cat conftest.err >&5 | |
6797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6798 | (exit $ac_status); } && | |
6799 | { ac_try='test -z "$ac_c_werror_flag" | |
6800 | || test ! -s conftest.err' | |
6801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6802 | (eval $ac_try) 2>&5 | |
6803 | ac_status=$? | |
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6805 | (exit $ac_status); }; } && | |
6806 | { ac_try='test -s conftest$ac_exeext' | |
6807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6808 | (eval $ac_try) 2>&5 | |
6809 | ac_status=$? | |
6810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6811 | (exit $ac_status); }; }; then | |
6812 | eval "$as_ac_var=yes" | |
6813 | else | |
6814 | echo "$as_me: failed program was:" >&5 | |
6815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6816 | ||
6817 | eval "$as_ac_var=no" | |
6818 | fi | |
6819 | rm -f conftest.err conftest.$ac_objext \ | |
6820 | conftest$ac_exeext conftest.$ac_ext | |
6821 | fi | |
6822 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6823 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6824 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6825 | cat >>confdefs.h <<_ACEOF | |
6826 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6827 | _ACEOF | |
6828 | ||
6829 | fi | |
6830 | done | |
6831 | ||
6832 | echo "$as_me:$LINENO: checking for _etext" >&5 | |
6833 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
6834 | if test "${ac_cv_var__etext+set}" = set; then | |
6835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6836 | else | |
6837 | cat >conftest.$ac_ext <<_ACEOF | |
6838 | /* confdefs.h. */ | |
6839 | _ACEOF | |
6840 | cat confdefs.h >>conftest.$ac_ext | |
6841 | cat >>conftest.$ac_ext <<_ACEOF | |
6842 | /* end confdefs.h. */ | |
6843 | #include <stdlib.h> | |
6844 | extern char _etext; | |
6845 | ||
6846 | int | |
6847 | main () | |
6848 | { | |
6849 | free (&_etext); | |
6850 | ; | |
6851 | return 0; | |
6852 | } | |
6853 | _ACEOF | |
6854 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6856 | (eval $ac_link) 2>conftest.er1 | |
6857 | ac_status=$? | |
6858 | grep -v '^ *+' conftest.er1 >conftest.err | |
6859 | rm -f conftest.er1 | |
6860 | cat conftest.err >&5 | |
6861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6862 | (exit $ac_status); } && | |
6863 | { ac_try='test -z "$ac_c_werror_flag" | |
6864 | || test ! -s conftest.err' | |
6865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6866 | (eval $ac_try) 2>&5 | |
6867 | ac_status=$? | |
6868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6869 | (exit $ac_status); }; } && | |
6870 | { ac_try='test -s conftest$ac_exeext' | |
6871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6872 | (eval $ac_try) 2>&5 | |
6873 | ac_status=$? | |
6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6875 | (exit $ac_status); }; }; then | |
6876 | ac_cv_var__etext=yes | |
6877 | else | |
6878 | echo "$as_me: failed program was:" >&5 | |
6879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6880 | ||
6881 | ac_cv_var__etext=no | |
6882 | fi | |
6883 | rm -f conftest.err conftest.$ac_objext \ | |
6884 | conftest$ac_exeext conftest.$ac_ext | |
6885 | fi | |
6886 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 | |
6887 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
6888 | if test $ac_cv_var__etext = yes; then | |
6889 | ||
6890 | cat >>confdefs.h <<\_ACEOF | |
6891 | #define HAVE__ETEXT 1 | |
6892 | _ACEOF | |
6893 | ||
6894 | fi | |
6895 | if test "$enable_profiling" = yes ; then | |
6896 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
6897 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
6898 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
6899 | { (exit 1); exit 1; }; } | |
6900 | fi | |
6901 | PROFILE_CFLAGS=-pg | |
6902 | OLD_CFLAGS="$CFLAGS" | |
6903 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
6904 | ||
6905 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 | |
6906 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
6907 | if test "${ac_cv_cc_supports_pg+set}" = set; then | |
6908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6909 | else |
bec39cab AC |
6910 | cat >conftest.$ac_ext <<_ACEOF |
6911 | /* confdefs.h. */ | |
6912 | _ACEOF | |
6913 | cat confdefs.h >>conftest.$ac_ext | |
6914 | cat >>conftest.$ac_ext <<_ACEOF | |
6915 | /* end confdefs.h. */ | |
6916 | ||
6917 | int | |
6918 | main () | |
6919 | { | |
6920 | int x; | |
6921 | ; | |
6922 | return 0; | |
6923 | } | |
6924 | _ACEOF | |
6925 | rm -f conftest.$ac_objext | |
6926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6927 | (eval $ac_compile) 2>conftest.er1 | |
6928 | ac_status=$? | |
6929 | grep -v '^ *+' conftest.er1 >conftest.err | |
6930 | rm -f conftest.er1 | |
6931 | cat conftest.err >&5 | |
6932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6933 | (exit $ac_status); } && | |
6934 | { ac_try='test -z "$ac_c_werror_flag" | |
6935 | || test ! -s conftest.err' | |
6936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6937 | (eval $ac_try) 2>&5 | |
6938 | ac_status=$? | |
6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6940 | (exit $ac_status); }; } && | |
6941 | { ac_try='test -s conftest.$ac_objext' | |
6942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6943 | (eval $ac_try) 2>&5 | |
6944 | ac_status=$? | |
6945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6946 | (exit $ac_status); }; }; then | |
6947 | ac_cv_cc_supports_pg=yes | |
6948 | else | |
6949 | echo "$as_me: failed program was:" >&5 | |
6950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6951 | ||
6952 | ac_cv_cc_supports_pg=no | |
6953 | fi | |
6954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6955 | fi | |
6956 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 | |
6957 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
6958 | ||
6959 | if test $ac_cv_cc_supports_pg = no; then | |
6960 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
6961 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
6962 | { (exit 1); exit 1; }; } | |
6963 | fi | |
6964 | ||
6965 | CFLAGS="$OLD_CFLAGS" | |
6966 | fi | |
6967 | ||
6968 | # --------------------- # | |
6969 | # Checks for programs. # | |
6970 | # --------------------- # | |
6971 | ||
6972 | for ac_prog in gawk mawk nawk awk | |
6973 | do | |
6974 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6975 | set dummy $ac_prog; ac_word=$2 | |
6976 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6978 | if test "${ac_cv_prog_AWK+set}" = set; then | |
6979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6980 | else | |
6981 | if test -n "$AWK"; then | |
6982 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
6983 | else | |
6984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6985 | for as_dir in $PATH | |
6986 | do | |
6987 | IFS=$as_save_IFS | |
6988 | test -z "$as_dir" && as_dir=. | |
6989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6991 | ac_cv_prog_AWK="$ac_prog" | |
6992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6993 | break 2 | |
6994 | fi | |
6995 | done | |
6996 | done | |
6997 | ||
6998 | fi | |
6999 | fi | |
7000 | AWK=$ac_cv_prog_AWK | |
7001 | if test -n "$AWK"; then | |
7002 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
7003 | echo "${ECHO_T}$AWK" >&6 | |
7004 | else | |
7005 | echo "$as_me:$LINENO: result: no" >&5 | |
7006 | echo "${ECHO_T}no" >&6 | |
7007 | fi | |
7008 | ||
7009 | test -n "$AWK" && break | |
7010 | done | |
7011 | ||
7012 | # Find a good install program. We prefer a C program (faster), | |
7013 | # so one script is as good as another. But avoid the broken or | |
7014 | # incompatible versions: | |
7015 | # SysV /etc/install, /usr/sbin/install | |
7016 | # SunOS /usr/etc/install | |
7017 | # IRIX /sbin/install | |
7018 | # AIX /bin/install | |
7019 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
7020 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
7021 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
7022 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
7023 | # OS/2's system install, which has a completely different semantic | |
7024 | # ./install, which can be erroneously created by make from ./install.sh. | |
7025 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
7026 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
7027 | if test -z "$INSTALL"; then | |
7028 | if test "${ac_cv_path_install+set}" = set; then | |
7029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7030 | else | |
7031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7032 | for as_dir in $PATH | |
7033 | do | |
7034 | IFS=$as_save_IFS | |
7035 | test -z "$as_dir" && as_dir=. | |
7036 | # Account for people who put trailing slashes in PATH elements. | |
7037 | case $as_dir/ in | |
7038 | ./ | .// | /cC/* | \ | |
7039 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
7040 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
7041 | /usr/ucb/* ) ;; | |
c906108c | 7042 | *) |
bec39cab AC |
7043 | # OSF1 and SCO ODT 3.0 have their own names for install. |
7044 | # Don't use installbsd from OSF since it installs stuff as root | |
7045 | # by default. | |
7046 | for ac_prog in ginstall scoinst install; do | |
7047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7048 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
7049 | if test $ac_prog = install && | |
7050 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7051 | # AIX install. It has an incompatible calling convention. | |
7052 | : | |
7053 | elif test $ac_prog = install && | |
7054 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7055 | # program-specific install script used by HP pwplus--don't use. | |
7056 | : | |
7057 | else | |
7058 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
7059 | break 3 | |
7060 | fi | |
7061 | fi | |
7062 | done | |
7063 | done | |
7064 | ;; | |
c906108c | 7065 | esac |
bec39cab AC |
7066 | done |
7067 | ||
7068 | ||
7069 | fi | |
7070 | if test "${ac_cv_path_install+set}" = set; then | |
7071 | INSTALL=$ac_cv_path_install | |
7072 | else | |
7073 | # As a last resort, use the slow shell script. We don't cache a | |
7074 | # path for INSTALL within a source directory, because that will | |
7075 | # break other packages using the cache if that directory is | |
7076 | # removed, or if the path is relative. | |
7077 | INSTALL=$ac_install_sh | |
7078 | fi | |
7079 | fi | |
7080 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
7081 | echo "${ECHO_T}$INSTALL" >&6 | |
7082 | ||
7083 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
7084 | # It thinks the first close brace ends the variable substitution. | |
7085 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
7086 | ||
7087 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
7088 | ||
7089 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
7090 | ||
7091 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
7092 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
7093 | LN_S=$as_ln_s | |
7094 | if test "$LN_S" = "ln -s"; then | |
7095 | echo "$as_me:$LINENO: result: yes" >&5 | |
7096 | echo "${ECHO_T}yes" >&6 | |
7097 | else | |
7098 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
7099 | echo "${ECHO_T}no, using $LN_S" >&6 | |
7100 | fi | |
7101 | ||
7102 | if test -n "$ac_tool_prefix"; then | |
7103 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7104 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7107 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
7108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7109 | else | |
7110 | if test -n "$RANLIB"; then | |
7111 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7112 | else | |
7113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7114 | for as_dir in $PATH | |
7115 | do | |
7116 | IFS=$as_save_IFS | |
7117 | test -z "$as_dir" && as_dir=. | |
7118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7120 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7122 | break 2 | |
7123 | fi | |
7124 | done | |
7125 | done | |
7126 | ||
7127 | fi | |
7128 | fi | |
7129 | RANLIB=$ac_cv_prog_RANLIB | |
7130 | if test -n "$RANLIB"; then | |
7131 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
7132 | echo "${ECHO_T}$RANLIB" >&6 | |
7133 | else | |
7134 | echo "$as_me:$LINENO: result: no" >&5 | |
7135 | echo "${ECHO_T}no" >&6 | |
7136 | fi | |
7137 | ||
7138 | fi | |
7139 | if test -z "$ac_cv_prog_RANLIB"; then | |
7140 | ac_ct_RANLIB=$RANLIB | |
7141 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7142 | set dummy ranlib; ac_word=$2 | |
7143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7145 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
7146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7147 | else | |
7148 | if test -n "$ac_ct_RANLIB"; then | |
7149 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7150 | else | |
7151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7152 | for as_dir in $PATH | |
7153 | do | |
7154 | IFS=$as_save_IFS | |
7155 | test -z "$as_dir" && as_dir=. | |
7156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7158 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7160 | break 2 | |
7161 | fi | |
7162 | done | |
7163 | done | |
7164 | ||
7165 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
7166 | fi | |
7167 | fi | |
7168 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7169 | if test -n "$ac_ct_RANLIB"; then | |
7170 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
7171 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
7172 | else | |
7173 | echo "$as_me:$LINENO: result: no" >&5 | |
7174 | echo "${ECHO_T}no" >&6 | |
7175 | fi | |
7176 | ||
7177 | RANLIB=$ac_ct_RANLIB | |
7178 | else | |
7179 | RANLIB="$ac_cv_prog_RANLIB" | |
7180 | fi | |
7181 | ||
7182 | for ac_prog in 'bison -y' byacc | |
7183 | do | |
7184 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7185 | set dummy $ac_prog; ac_word=$2 | |
7186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7188 | if test "${ac_cv_prog_YACC+set}" = set; then | |
7189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7190 | else | |
7191 | if test -n "$YACC"; then | |
7192 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7193 | else | |
7194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7195 | for as_dir in $PATH | |
7196 | do | |
7197 | IFS=$as_save_IFS | |
7198 | test -z "$as_dir" && as_dir=. | |
7199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7201 | ac_cv_prog_YACC="$ac_prog" | |
7202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7203 | break 2 | |
7204 | fi | |
7205 | done | |
7206 | done | |
7207 | ||
7208 | fi | |
7209 | fi | |
7210 | YACC=$ac_cv_prog_YACC | |
7211 | if test -n "$YACC"; then | |
7212 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
7213 | echo "${ECHO_T}$YACC" >&6 | |
7214 | else | |
7215 | echo "$as_me:$LINENO: result: no" >&5 | |
7216 | echo "${ECHO_T}no" >&6 | |
7217 | fi | |
7218 | ||
7219 | test -n "$YACC" && break | |
7220 | done | |
7221 | test -n "$YACC" || YACC="yacc" | |
7222 | ||
7223 | ||
7224 | if test -n "$ac_tool_prefix"; then | |
7225 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7226 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7229 | if test "${ac_cv_prog_AR+set}" = set; then | |
7230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7231 | else | |
7232 | if test -n "$AR"; then | |
7233 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7234 | else | |
7235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7236 | for as_dir in $PATH | |
7237 | do | |
7238 | IFS=$as_save_IFS | |
7239 | test -z "$as_dir" && as_dir=. | |
7240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7242 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
7243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7244 | break 2 | |
7245 | fi | |
7246 | done | |
7247 | done | |
7248 | ||
7249 | fi | |
7250 | fi | |
7251 | AR=$ac_cv_prog_AR | |
7252 | if test -n "$AR"; then | |
7253 | echo "$as_me:$LINENO: result: $AR" >&5 | |
7254 | echo "${ECHO_T}$AR" >&6 | |
7255 | else | |
7256 | echo "$as_me:$LINENO: result: no" >&5 | |
7257 | echo "${ECHO_T}no" >&6 | |
7258 | fi | |
7259 | ||
7260 | fi | |
7261 | if test -z "$ac_cv_prog_AR"; then | |
7262 | ac_ct_AR=$AR | |
7263 | # Extract the first word of "ar", so it can be a program name with args. | |
7264 | set dummy ar; ac_word=$2 | |
7265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7267 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
7268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7269 | else | |
7270 | if test -n "$ac_ct_AR"; then | |
7271 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7272 | else | |
7273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7274 | for as_dir in $PATH | |
7275 | do | |
7276 | IFS=$as_save_IFS | |
7277 | test -z "$as_dir" && as_dir=. | |
7278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7280 | ac_cv_prog_ac_ct_AR="ar" | |
7281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7282 | break 2 | |
7283 | fi | |
7284 | done | |
7285 | done | |
7286 | ||
7287 | fi | |
7288 | fi | |
7289 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7290 | if test -n "$ac_ct_AR"; then | |
7291 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
7292 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
7293 | else | |
7294 | echo "$as_me:$LINENO: result: no" >&5 | |
7295 | echo "${ECHO_T}no" >&6 | |
7296 | fi | |
7297 | ||
7298 | AR=$ac_ct_AR | |
7299 | else | |
7300 | AR="$ac_cv_prog_AR" | |
7301 | fi | |
7302 | ||
7303 | if test -n "$ac_tool_prefix"; then | |
7304 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
7305 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
7306 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7308 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
7309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7310 | else | |
7311 | if test -n "$DLLTOOL"; then | |
7312 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7313 | else | |
7314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7315 | for as_dir in $PATH | |
7316 | do | |
7317 | IFS=$as_save_IFS | |
7318 | test -z "$as_dir" && as_dir=. | |
7319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7320 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7321 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
7322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7323 | break 2 | |
7324 | fi | |
7325 | done | |
7326 | done | |
7327 | ||
7328 | fi | |
7329 | fi | |
7330 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
7331 | if test -n "$DLLTOOL"; then | |
7332 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
7333 | echo "${ECHO_T}$DLLTOOL" >&6 | |
7334 | else | |
7335 | echo "$as_me:$LINENO: result: no" >&5 | |
7336 | echo "${ECHO_T}no" >&6 | |
7337 | fi | |
7338 | ||
7339 | fi | |
7340 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
7341 | ac_ct_DLLTOOL=$DLLTOOL | |
7342 | # Extract the first word of "dlltool", so it can be a program name with args. | |
7343 | set dummy dlltool; ac_word=$2 | |
7344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7346 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
7347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7348 | else | |
7349 | if test -n "$ac_ct_DLLTOOL"; then | |
7350 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
7351 | else | |
7352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7353 | for as_dir in $PATH | |
7354 | do | |
7355 | IFS=$as_save_IFS | |
7356 | test -z "$as_dir" && as_dir=. | |
7357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7358 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7359 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
7360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7361 | break 2 | |
7362 | fi | |
7363 | done | |
7364 | done | |
7365 | ||
7366 | fi | |
7367 | fi | |
7368 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
7369 | if test -n "$ac_ct_DLLTOOL"; then | |
7370 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
7371 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
7372 | else | |
7373 | echo "$as_me:$LINENO: result: no" >&5 | |
7374 | echo "${ECHO_T}no" >&6 | |
7375 | fi | |
7376 | ||
7377 | DLLTOOL=$ac_ct_DLLTOOL | |
7378 | else | |
7379 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
7380 | fi | |
7381 | ||
7382 | if test -n "$ac_tool_prefix"; then | |
7383 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
7384 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
7385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7387 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
7388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7389 | else | |
7390 | if test -n "$WINDRES"; then | |
7391 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7392 | else | |
7393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7394 | for as_dir in $PATH | |
7395 | do | |
7396 | IFS=$as_save_IFS | |
7397 | test -z "$as_dir" && as_dir=. | |
7398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7400 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
7401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7402 | break 2 | |
7403 | fi | |
7404 | done | |
7405 | done | |
7406 | ||
7407 | fi | |
7408 | fi | |
7409 | WINDRES=$ac_cv_prog_WINDRES | |
7410 | if test -n "$WINDRES"; then | |
7411 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
7412 | echo "${ECHO_T}$WINDRES" >&6 | |
7413 | else | |
7414 | echo "$as_me:$LINENO: result: no" >&5 | |
7415 | echo "${ECHO_T}no" >&6 | |
7416 | fi | |
7417 | ||
7418 | fi | |
7419 | if test -z "$ac_cv_prog_WINDRES"; then | |
7420 | ac_ct_WINDRES=$WINDRES | |
7421 | # Extract the first word of "windres", so it can be a program name with args. | |
7422 | set dummy windres; ac_word=$2 | |
7423 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7425 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
7426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7427 | else | |
7428 | if test -n "$ac_ct_WINDRES"; then | |
7429 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
7430 | else | |
7431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7432 | for as_dir in $PATH | |
7433 | do | |
7434 | IFS=$as_save_IFS | |
7435 | test -z "$as_dir" && as_dir=. | |
7436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7438 | ac_cv_prog_ac_ct_WINDRES="windres" | |
7439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7440 | break 2 | |
7441 | fi | |
7442 | done | |
7443 | done | |
7444 | ||
7445 | fi | |
7446 | fi | |
7447 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
7448 | if test -n "$ac_ct_WINDRES"; then | |
7449 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
7450 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
7451 | else | |
7452 | echo "$as_me:$LINENO: result: no" >&5 | |
7453 | echo "${ECHO_T}no" >&6 | |
c906108c | 7454 | fi |
bec39cab AC |
7455 | |
7456 | WINDRES=$ac_ct_WINDRES | |
c906108c | 7457 | else |
bec39cab | 7458 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
7459 | fi |
7460 | ||
bec39cab AC |
7461 | |
7462 | # Needed for GNU/Hurd. | |
7463 | if test -n "$ac_tool_prefix"; then | |
7464 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
7465 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
7466 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7468 | if test "${ac_cv_prog_MIG+set}" = set; then | |
7469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7470 | else |
bec39cab AC |
7471 | if test -n "$MIG"; then |
7472 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
7473 | else | |
7474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7475 | for as_dir in $PATH | |
7476 | do | |
7477 | IFS=$as_save_IFS | |
7478 | test -z "$as_dir" && as_dir=. | |
7479 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7480 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7481 | ac_cv_prog_MIG="${ac_tool_prefix}mig" | |
7482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7483 | break 2 | |
7484 | fi | |
7485 | done | |
7486 | done | |
7487 | ||
c906108c | 7488 | fi |
bec39cab AC |
7489 | fi |
7490 | MIG=$ac_cv_prog_MIG | |
7491 | if test -n "$MIG"; then | |
7492 | echo "$as_me:$LINENO: result: $MIG" >&5 | |
7493 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 7494 | else |
bec39cab AC |
7495 | echo "$as_me:$LINENO: result: no" >&5 |
7496 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
7497 | fi |
7498 | ||
bec39cab AC |
7499 | fi |
7500 | if test -z "$ac_cv_prog_MIG"; then | |
7501 | ac_ct_MIG=$MIG | |
7502 | # Extract the first word of "mig", so it can be a program name with args. | |
7503 | set dummy mig; ac_word=$2 | |
7504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7506 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then | |
7507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7508 | else | |
7509 | if test -n "$ac_ct_MIG"; then | |
7510 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
7511 | else | |
7512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7513 | for as_dir in $PATH | |
7514 | do | |
7515 | IFS=$as_save_IFS | |
7516 | test -z "$as_dir" && as_dir=. | |
7517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7519 | ac_cv_prog_ac_ct_MIG="mig" | |
7520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7521 | break 2 | |
7522 | fi | |
7523 | done | |
7524 | done | |
c906108c | 7525 | |
bec39cab AC |
7526 | fi |
7527 | fi | |
7528 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
7529 | if test -n "$ac_ct_MIG"; then | |
7530 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 | |
7531 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
7532 | else | |
7533 | echo "$as_me:$LINENO: result: no" >&5 | |
7534 | echo "${ECHO_T}no" >&6 | |
7535 | fi | |
c906108c | 7536 | |
bec39cab AC |
7537 | MIG=$ac_ct_MIG |
7538 | else | |
7539 | MIG="$ac_cv_prog_MIG" | |
7540 | fi | |
c906108c | 7541 | |
c906108c | 7542 | |
bec39cab AC |
7543 | # ---------------------- # |
7544 | # Checks for libraries. # | |
7545 | # ---------------------- # | |
c906108c | 7546 | |
bec39cab | 7547 | # We might need to link with -lm; most simulators need it. |
c906108c | 7548 | |
bec39cab AC |
7549 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
7550 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
7551 | if test "${ac_cv_lib_m_main+set}" = set; then | |
7552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7553 | else | |
7554 | ac_check_lib_save_LIBS=$LIBS | |
7555 | LIBS="-lm $LIBS" | |
7556 | cat >conftest.$ac_ext <<_ACEOF | |
7557 | /* confdefs.h. */ | |
7558 | _ACEOF | |
7559 | cat confdefs.h >>conftest.$ac_ext | |
7560 | cat >>conftest.$ac_ext <<_ACEOF | |
7561 | /* end confdefs.h. */ | |
c906108c | 7562 | |
c906108c | 7563 | |
bec39cab AC |
7564 | int |
7565 | main () | |
7566 | { | |
7567 | main (); | |
7568 | ; | |
7569 | return 0; | |
7570 | } | |
7571 | _ACEOF | |
7572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7574 | (eval $ac_link) 2>conftest.er1 | |
7575 | ac_status=$? | |
7576 | grep -v '^ *+' conftest.er1 >conftest.err | |
7577 | rm -f conftest.er1 | |
7578 | cat conftest.err >&5 | |
7579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7580 | (exit $ac_status); } && | |
7581 | { ac_try='test -z "$ac_c_werror_flag" | |
7582 | || test ! -s conftest.err' | |
7583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7584 | (eval $ac_try) 2>&5 | |
7585 | ac_status=$? | |
7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7587 | (exit $ac_status); }; } && | |
7588 | { ac_try='test -s conftest$ac_exeext' | |
7589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7590 | (eval $ac_try) 2>&5 | |
7591 | ac_status=$? | |
7592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7593 | (exit $ac_status); }; }; then | |
7594 | ac_cv_lib_m_main=yes | |
7595 | else | |
7596 | echo "$as_me: failed program was:" >&5 | |
7597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7598 | ||
7599 | ac_cv_lib_m_main=no | |
7600 | fi | |
7601 | rm -f conftest.err conftest.$ac_objext \ | |
7602 | conftest$ac_exeext conftest.$ac_ext | |
7603 | LIBS=$ac_check_lib_save_LIBS | |
7604 | fi | |
7605 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | |
7606 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
7607 | if test $ac_cv_lib_m_main = yes; then | |
7608 | cat >>confdefs.h <<_ACEOF | |
7609 | #define HAVE_LIBM 1 | |
7610 | _ACEOF | |
7611 | ||
7612 | LIBS="-lm $LIBS" | |
c906108c | 7613 | |
c906108c | 7614 | fi |
bec39cab AC |
7615 | |
7616 | ||
7617 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
7618 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
7619 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
7620 | # is known to have this problem). Therefore we avoid libw if we can. | |
7621 | echo "$as_me:$LINENO: checking for wctype" >&5 | |
7622 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
7623 | if test "${ac_cv_func_wctype+set}" = set; then | |
7624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7625 | else | |
7626 | cat >conftest.$ac_ext <<_ACEOF | |
7627 | /* confdefs.h. */ | |
7628 | _ACEOF | |
7629 | cat confdefs.h >>conftest.$ac_ext | |
7630 | cat >>conftest.$ac_ext <<_ACEOF | |
7631 | /* end confdefs.h. */ | |
7632 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
7633 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7634 | #define wctype innocuous_wctype | |
7635 | ||
7636 | /* System header to define __stub macros and hopefully few prototypes, | |
7637 | which can conflict with char wctype (); below. | |
7638 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7639 | <limits.h> exists even on freestanding compilers. */ | |
7640 | ||
7641 | #ifdef __STDC__ | |
7642 | # include <limits.h> | |
7643 | #else | |
7644 | # include <assert.h> | |
7645 | #endif | |
7646 | ||
7647 | #undef wctype | |
7648 | ||
7649 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7650 | #ifdef __cplusplus | |
7651 | extern "C" | |
7652 | { | |
7653 | #endif | |
7654 | /* We use char because int might match the return type of a gcc2 | |
7655 | builtin and then its argument prototype would still apply. */ | |
7656 | char wctype (); | |
7657 | /* The GNU C library defines this for functions which it implements | |
7658 | to always fail with ENOSYS. Some functions are actually named | |
7659 | something starting with __ and the normal name is an alias. */ | |
7660 | #if defined (__stub_wctype) || defined (__stub___wctype) | |
7661 | choke me | |
7662 | #else | |
7663 | char (*f) () = wctype; | |
7664 | #endif | |
7665 | #ifdef __cplusplus | |
7666 | } | |
7667 | #endif | |
7668 | ||
7669 | int | |
7670 | main () | |
7671 | { | |
7672 | return f != wctype; | |
7673 | ; | |
7674 | return 0; | |
7675 | } | |
7676 | _ACEOF | |
7677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7679 | (eval $ac_link) 2>conftest.er1 | |
7680 | ac_status=$? | |
7681 | grep -v '^ *+' conftest.er1 >conftest.err | |
7682 | rm -f conftest.er1 | |
7683 | cat conftest.err >&5 | |
7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7685 | (exit $ac_status); } && | |
7686 | { ac_try='test -z "$ac_c_werror_flag" | |
7687 | || test ! -s conftest.err' | |
7688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7689 | (eval $ac_try) 2>&5 | |
7690 | ac_status=$? | |
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7692 | (exit $ac_status); }; } && | |
7693 | { ac_try='test -s conftest$ac_exeext' | |
7694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7695 | (eval $ac_try) 2>&5 | |
7696 | ac_status=$? | |
7697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7698 | (exit $ac_status); }; }; then | |
7699 | ac_cv_func_wctype=yes | |
7700 | else | |
7701 | echo "$as_me: failed program was:" >&5 | |
7702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7703 | ||
7704 | ac_cv_func_wctype=no | |
7705 | fi | |
7706 | rm -f conftest.err conftest.$ac_objext \ | |
7707 | conftest$ac_exeext conftest.$ac_ext | |
7708 | fi | |
7709 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 | |
7710 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
7711 | if test $ac_cv_func_wctype = yes; then | |
7712 | : | |
c906108c | 7713 | else |
c906108c | 7714 | |
bec39cab AC |
7715 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
7716 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
7717 | if test "${ac_cv_lib_w_wctype+set}" = set; then | |
7718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7719 | else | |
7720 | ac_check_lib_save_LIBS=$LIBS | |
7721 | LIBS="-lw $LIBS" | |
7722 | cat >conftest.$ac_ext <<_ACEOF | |
7723 | /* confdefs.h. */ | |
7724 | _ACEOF | |
7725 | cat confdefs.h >>conftest.$ac_ext | |
7726 | cat >>conftest.$ac_ext <<_ACEOF | |
7727 | /* end confdefs.h. */ | |
c906108c | 7728 | |
bec39cab AC |
7729 | /* Override any gcc2 internal prototype to avoid an error. */ |
7730 | #ifdef __cplusplus | |
7731 | extern "C" | |
7732 | #endif | |
7733 | /* We use char because int might match the return type of a gcc2 | |
7734 | builtin and then its argument prototype would still apply. */ | |
7735 | char wctype (); | |
7736 | int | |
7737 | main () | |
7738 | { | |
7739 | wctype (); | |
7740 | ; | |
7741 | return 0; | |
7742 | } | |
7743 | _ACEOF | |
7744 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7746 | (eval $ac_link) 2>conftest.er1 | |
7747 | ac_status=$? | |
7748 | grep -v '^ *+' conftest.er1 >conftest.err | |
7749 | rm -f conftest.er1 | |
7750 | cat conftest.err >&5 | |
7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7752 | (exit $ac_status); } && | |
7753 | { ac_try='test -z "$ac_c_werror_flag" | |
7754 | || test ! -s conftest.err' | |
7755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7756 | (eval $ac_try) 2>&5 | |
7757 | ac_status=$? | |
7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7759 | (exit $ac_status); }; } && | |
7760 | { ac_try='test -s conftest$ac_exeext' | |
7761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7762 | (eval $ac_try) 2>&5 | |
7763 | ac_status=$? | |
7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7765 | (exit $ac_status); }; }; then | |
7766 | ac_cv_lib_w_wctype=yes | |
7767 | else | |
7768 | echo "$as_me: failed program was:" >&5 | |
7769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7770 | ||
7771 | ac_cv_lib_w_wctype=no | |
7772 | fi | |
7773 | rm -f conftest.err conftest.$ac_objext \ | |
7774 | conftest$ac_exeext conftest.$ac_ext | |
7775 | LIBS=$ac_check_lib_save_LIBS | |
7776 | fi | |
7777 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 | |
7778 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
7779 | if test $ac_cv_lib_w_wctype = yes; then | |
7780 | cat >>confdefs.h <<_ACEOF | |
7781 | #define HAVE_LIBW 1 | |
7782 | _ACEOF | |
c906108c | 7783 | |
bec39cab | 7784 | LIBS="-lw $LIBS" |
c906108c | 7785 | |
bec39cab | 7786 | fi |
c906108c | 7787 | |
bec39cab | 7788 | fi |
c906108c | 7789 | |
ddc9cd0f | 7790 | |
bec39cab AC |
7791 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
7792 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 | |
7793 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
7794 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
7795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7796 | else | |
7797 | ac_func_search_save_LIBS=$LIBS | |
7798 | ac_cv_search_gethostbyname=no | |
7799 | cat >conftest.$ac_ext <<_ACEOF | |
7800 | /* confdefs.h. */ | |
7801 | _ACEOF | |
7802 | cat confdefs.h >>conftest.$ac_ext | |
7803 | cat >>conftest.$ac_ext <<_ACEOF | |
7804 | /* end confdefs.h. */ | |
ddc9cd0f | 7805 | |
bec39cab AC |
7806 | /* Override any gcc2 internal prototype to avoid an error. */ |
7807 | #ifdef __cplusplus | |
7808 | extern "C" | |
7809 | #endif | |
7810 | /* We use char because int might match the return type of a gcc2 | |
7811 | builtin and then its argument prototype would still apply. */ | |
7812 | char gethostbyname (); | |
7813 | int | |
7814 | main () | |
7815 | { | |
7816 | gethostbyname (); | |
7817 | ; | |
7818 | return 0; | |
7819 | } | |
7820 | _ACEOF | |
7821 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7823 | (eval $ac_link) 2>conftest.er1 | |
7824 | ac_status=$? | |
7825 | grep -v '^ *+' conftest.er1 >conftest.err | |
7826 | rm -f conftest.er1 | |
7827 | cat conftest.err >&5 | |
7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7829 | (exit $ac_status); } && | |
7830 | { ac_try='test -z "$ac_c_werror_flag" | |
7831 | || test ! -s conftest.err' | |
7832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7833 | (eval $ac_try) 2>&5 | |
7834 | ac_status=$? | |
7835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7836 | (exit $ac_status); }; } && | |
7837 | { ac_try='test -s conftest$ac_exeext' | |
7838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7839 | (eval $ac_try) 2>&5 | |
7840 | ac_status=$? | |
7841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7842 | (exit $ac_status); }; }; then | |
7843 | ac_cv_search_gethostbyname="none required" | |
7844 | else | |
7845 | echo "$as_me: failed program was:" >&5 | |
7846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 7847 | |
bec39cab AC |
7848 | fi |
7849 | rm -f conftest.err conftest.$ac_objext \ | |
7850 | conftest$ac_exeext conftest.$ac_ext | |
7851 | if test "$ac_cv_search_gethostbyname" = no; then | |
7852 | for ac_lib in nsl; do | |
7853 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7854 | cat >conftest.$ac_ext <<_ACEOF | |
7855 | /* confdefs.h. */ | |
7856 | _ACEOF | |
7857 | cat confdefs.h >>conftest.$ac_ext | |
7858 | cat >>conftest.$ac_ext <<_ACEOF | |
7859 | /* end confdefs.h. */ | |
ddc9cd0f | 7860 | |
bec39cab AC |
7861 | /* Override any gcc2 internal prototype to avoid an error. */ |
7862 | #ifdef __cplusplus | |
7863 | extern "C" | |
7864 | #endif | |
7865 | /* We use char because int might match the return type of a gcc2 | |
7866 | builtin and then its argument prototype would still apply. */ | |
7867 | char gethostbyname (); | |
7868 | int | |
7869 | main () | |
7870 | { | |
7871 | gethostbyname (); | |
7872 | ; | |
7873 | return 0; | |
7874 | } | |
7875 | _ACEOF | |
7876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7878 | (eval $ac_link) 2>conftest.er1 | |
7879 | ac_status=$? | |
7880 | grep -v '^ *+' conftest.er1 >conftest.err | |
7881 | rm -f conftest.er1 | |
7882 | cat conftest.err >&5 | |
7883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7884 | (exit $ac_status); } && | |
7885 | { ac_try='test -z "$ac_c_werror_flag" | |
7886 | || test ! -s conftest.err' | |
7887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7888 | (eval $ac_try) 2>&5 | |
7889 | ac_status=$? | |
7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7891 | (exit $ac_status); }; } && | |
7892 | { ac_try='test -s conftest$ac_exeext' | |
7893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7894 | (eval $ac_try) 2>&5 | |
7895 | ac_status=$? | |
7896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7897 | (exit $ac_status); }; }; then | |
7898 | ac_cv_search_gethostbyname="-l$ac_lib" | |
7899 | break | |
7900 | else | |
7901 | echo "$as_me: failed program was:" >&5 | |
7902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7903 | ||
7904 | fi | |
7905 | rm -f conftest.err conftest.$ac_objext \ | |
7906 | conftest$ac_exeext conftest.$ac_ext | |
ddc9cd0f | 7907 | done |
bec39cab AC |
7908 | fi |
7909 | LIBS=$ac_func_search_save_LIBS | |
7910 | fi | |
7911 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | |
7912 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
7913 | if test "$ac_cv_search_gethostbyname" != no; then | |
7914 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
ddc9cd0f | 7915 | |
ddc9cd0f AC |
7916 | fi |
7917 | ||
0fbb3da7 | 7918 | |
bec39cab AC |
7919 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
7920 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
7921 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
7922 | if test "${ac_cv_search_socketpair+set}" = set; then | |
7923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7924 | else | |
7925 | ac_func_search_save_LIBS=$LIBS | |
7926 | ac_cv_search_socketpair=no | |
7927 | cat >conftest.$ac_ext <<_ACEOF | |
7928 | /* confdefs.h. */ | |
7929 | _ACEOF | |
7930 | cat confdefs.h >>conftest.$ac_ext | |
7931 | cat >>conftest.$ac_ext <<_ACEOF | |
7932 | /* end confdefs.h. */ | |
0fbb3da7 | 7933 | |
bec39cab AC |
7934 | /* Override any gcc2 internal prototype to avoid an error. */ |
7935 | #ifdef __cplusplus | |
7936 | extern "C" | |
7937 | #endif | |
7938 | /* We use char because int might match the return type of a gcc2 | |
7939 | builtin and then its argument prototype would still apply. */ | |
7940 | char socketpair (); | |
7941 | int | |
7942 | main () | |
7943 | { | |
7944 | socketpair (); | |
7945 | ; | |
7946 | return 0; | |
7947 | } | |
7948 | _ACEOF | |
7949 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7951 | (eval $ac_link) 2>conftest.er1 | |
7952 | ac_status=$? | |
7953 | grep -v '^ *+' conftest.er1 >conftest.err | |
7954 | rm -f conftest.er1 | |
7955 | cat conftest.err >&5 | |
7956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7957 | (exit $ac_status); } && | |
7958 | { ac_try='test -z "$ac_c_werror_flag" | |
7959 | || test ! -s conftest.err' | |
7960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7961 | (eval $ac_try) 2>&5 | |
7962 | ac_status=$? | |
7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7964 | (exit $ac_status); }; } && | |
7965 | { ac_try='test -s conftest$ac_exeext' | |
7966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7967 | (eval $ac_try) 2>&5 | |
7968 | ac_status=$? | |
7969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7970 | (exit $ac_status); }; }; then | |
7971 | ac_cv_search_socketpair="none required" | |
7972 | else | |
7973 | echo "$as_me: failed program was:" >&5 | |
7974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 7975 | |
5b5d99cf | 7976 | fi |
bec39cab AC |
7977 | rm -f conftest.err conftest.$ac_objext \ |
7978 | conftest$ac_exeext conftest.$ac_ext | |
7979 | if test "$ac_cv_search_socketpair" = no; then | |
7980 | for ac_lib in socket; do | |
7981 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7982 | cat >conftest.$ac_ext <<_ACEOF | |
7983 | /* confdefs.h. */ | |
7984 | _ACEOF | |
7985 | cat confdefs.h >>conftest.$ac_ext | |
7986 | cat >>conftest.$ac_ext <<_ACEOF | |
7987 | /* end confdefs.h. */ | |
5b5d99cf | 7988 | |
bec39cab AC |
7989 | /* Override any gcc2 internal prototype to avoid an error. */ |
7990 | #ifdef __cplusplus | |
7991 | extern "C" | |
7992 | #endif | |
7993 | /* We use char because int might match the return type of a gcc2 | |
7994 | builtin and then its argument prototype would still apply. */ | |
7995 | char socketpair (); | |
7996 | int | |
7997 | main () | |
7998 | { | |
7999 | socketpair (); | |
8000 | ; | |
8001 | return 0; | |
8002 | } | |
8003 | _ACEOF | |
8004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8006 | (eval $ac_link) 2>conftest.er1 | |
8007 | ac_status=$? | |
8008 | grep -v '^ *+' conftest.er1 >conftest.err | |
8009 | rm -f conftest.er1 | |
8010 | cat conftest.err >&5 | |
8011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8012 | (exit $ac_status); } && | |
8013 | { ac_try='test -z "$ac_c_werror_flag" | |
8014 | || test ! -s conftest.err' | |
8015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8016 | (eval $ac_try) 2>&5 | |
8017 | ac_status=$? | |
8018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8019 | (exit $ac_status); }; } && | |
8020 | { ac_try='test -s conftest$ac_exeext' | |
8021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8022 | (eval $ac_try) 2>&5 | |
8023 | ac_status=$? | |
8024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8025 | (exit $ac_status); }; }; then | |
8026 | ac_cv_search_socketpair="-l$ac_lib" | |
8027 | break | |
8028 | else | |
8029 | echo "$as_me: failed program was:" >&5 | |
8030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8031 | |
bec39cab AC |
8032 | fi |
8033 | rm -f conftest.err conftest.$ac_objext \ | |
8034 | conftest$ac_exeext conftest.$ac_ext | |
8035 | done | |
8036 | fi | |
8037 | LIBS=$ac_func_search_save_LIBS | |
8038 | fi | |
8039 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
8040 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
8041 | if test "$ac_cv_search_socketpair" != no; then | |
8042 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
96baa820 | 8043 | |
bec39cab | 8044 | fi |
96baa820 | 8045 | |
c906108c | 8046 | |
bec39cab AC |
8047 | # For the TUI, we need enhanced curses functionality. |
8048 | # | |
8049 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
8050 | # curses library because the latter might not provide all the | |
8051 | # functionality we need. However, this leads to problems on systems | |
8052 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
8053 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
8054 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
8055 | # a situation. | |
8056 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 | |
8057 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
8058 | if test "${ac_cv_search_waddstr+set}" = set; then | |
8059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8060 | else | |
8061 | ac_func_search_save_LIBS=$LIBS | |
8062 | ac_cv_search_waddstr=no | |
8063 | cat >conftest.$ac_ext <<_ACEOF | |
8064 | /* confdefs.h. */ | |
8065 | _ACEOF | |
8066 | cat confdefs.h >>conftest.$ac_ext | |
8067 | cat >>conftest.$ac_ext <<_ACEOF | |
8068 | /* end confdefs.h. */ | |
c906108c | 8069 | |
bec39cab AC |
8070 | /* Override any gcc2 internal prototype to avoid an error. */ |
8071 | #ifdef __cplusplus | |
8072 | extern "C" | |
8073 | #endif | |
8074 | /* We use char because int might match the return type of a gcc2 | |
8075 | builtin and then its argument prototype would still apply. */ | |
8076 | char waddstr (); | |
8077 | int | |
8078 | main () | |
8079 | { | |
8080 | waddstr (); | |
8081 | ; | |
8082 | return 0; | |
8083 | } | |
8084 | _ACEOF | |
8085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8087 | (eval $ac_link) 2>conftest.er1 | |
8088 | ac_status=$? | |
8089 | grep -v '^ *+' conftest.er1 >conftest.err | |
8090 | rm -f conftest.er1 | |
8091 | cat conftest.err >&5 | |
8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8093 | (exit $ac_status); } && | |
8094 | { ac_try='test -z "$ac_c_werror_flag" | |
8095 | || test ! -s conftest.err' | |
8096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8097 | (eval $ac_try) 2>&5 | |
8098 | ac_status=$? | |
8099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8100 | (exit $ac_status); }; } && | |
8101 | { ac_try='test -s conftest$ac_exeext' | |
8102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8103 | (eval $ac_try) 2>&5 | |
8104 | ac_status=$? | |
8105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8106 | (exit $ac_status); }; }; then | |
8107 | ac_cv_search_waddstr="none required" | |
8108 | else | |
8109 | echo "$as_me: failed program was:" >&5 | |
8110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8111 | |
bec39cab AC |
8112 | fi |
8113 | rm -f conftest.err conftest.$ac_objext \ | |
8114 | conftest$ac_exeext conftest.$ac_ext | |
8115 | if test "$ac_cv_search_waddstr" = no; then | |
8116 | for ac_lib in ncurses cursesX curses; do | |
8117 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8118 | cat >conftest.$ac_ext <<_ACEOF | |
8119 | /* confdefs.h. */ | |
8120 | _ACEOF | |
8121 | cat confdefs.h >>conftest.$ac_ext | |
8122 | cat >>conftest.$ac_ext <<_ACEOF | |
8123 | /* end confdefs.h. */ | |
1ba607ad | 8124 | |
bec39cab AC |
8125 | /* Override any gcc2 internal prototype to avoid an error. */ |
8126 | #ifdef __cplusplus | |
8127 | extern "C" | |
8128 | #endif | |
8129 | /* We use char because int might match the return type of a gcc2 | |
8130 | builtin and then its argument prototype would still apply. */ | |
8131 | char waddstr (); | |
8132 | int | |
8133 | main () | |
8134 | { | |
8135 | waddstr (); | |
8136 | ; | |
8137 | return 0; | |
8138 | } | |
8139 | _ACEOF | |
8140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8142 | (eval $ac_link) 2>conftest.er1 | |
8143 | ac_status=$? | |
8144 | grep -v '^ *+' conftest.er1 >conftest.err | |
8145 | rm -f conftest.er1 | |
8146 | cat conftest.err >&5 | |
8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8148 | (exit $ac_status); } && | |
8149 | { ac_try='test -z "$ac_c_werror_flag" | |
8150 | || test ! -s conftest.err' | |
8151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8152 | (eval $ac_try) 2>&5 | |
8153 | ac_status=$? | |
8154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8155 | (exit $ac_status); }; } && | |
8156 | { ac_try='test -s conftest$ac_exeext' | |
8157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8158 | (eval $ac_try) 2>&5 | |
8159 | ac_status=$? | |
8160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8161 | (exit $ac_status); }; }; then | |
8162 | ac_cv_search_waddstr="-l$ac_lib" | |
8163 | break | |
8164 | else | |
8165 | echo "$as_me: failed program was:" >&5 | |
8166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
8167 | |
8168 | fi | |
bec39cab AC |
8169 | rm -f conftest.err conftest.$ac_objext \ |
8170 | conftest$ac_exeext conftest.$ac_ext | |
8171 | done | |
1ba607ad | 8172 | fi |
bec39cab AC |
8173 | LIBS=$ac_func_search_save_LIBS |
8174 | fi | |
8175 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 | |
8176 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
8177 | if test "$ac_cv_search_waddstr" != no; then | |
8178 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 8179 | |
8bb2c122 | 8180 | fi |
8bb2c122 | 8181 | |
8bb2c122 | 8182 | |
bec39cab AC |
8183 | # Since GDB uses Readline, we need termcap functionality. In many |
8184 | # cases this will be provided by the curses library, but some systems | |
8185 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 8186 | |
bec39cab AC |
8187 | case $host_os in |
8188 | cygwin*) | |
8189 | if test -d $srcdir/libtermcap; then | |
8190 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
8191 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
8192 | fi ;; | |
8193 | go32* | *djgpp*) | |
8194 | ac_cv_search_tgetent="none required" | |
8195 | ;; | |
7ef34f2c MM |
8196 | *mingw32*) |
8197 | ac_cv_search_tgetent="none required" | |
8198 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
8199 | ;; | |
bec39cab | 8200 | esac |
627af7ea | 8201 | |
bec39cab AC |
8202 | # These are the libraries checked by Readline. |
8203 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
8204 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
8205 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8207 | else | |
8208 | ac_func_search_save_LIBS=$LIBS | |
8209 | ac_cv_search_tgetent=no | |
8210 | cat >conftest.$ac_ext <<_ACEOF | |
8211 | /* confdefs.h. */ | |
8212 | _ACEOF | |
8213 | cat confdefs.h >>conftest.$ac_ext | |
8214 | cat >>conftest.$ac_ext <<_ACEOF | |
8215 | /* end confdefs.h. */ | |
8216 | ||
8217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8218 | #ifdef __cplusplus | |
8219 | extern "C" | |
8220 | #endif | |
8221 | /* We use char because int might match the return type of a gcc2 | |
8222 | builtin and then its argument prototype would still apply. */ | |
8223 | char tgetent (); | |
8224 | int | |
8225 | main () | |
8226 | { | |
8227 | tgetent (); | |
8228 | ; | |
8229 | return 0; | |
8230 | } | |
8231 | _ACEOF | |
8232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8234 | (eval $ac_link) 2>conftest.er1 | |
8235 | ac_status=$? | |
8236 | grep -v '^ *+' conftest.er1 >conftest.err | |
8237 | rm -f conftest.er1 | |
8238 | cat conftest.err >&5 | |
8239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8240 | (exit $ac_status); } && | |
8241 | { ac_try='test -z "$ac_c_werror_flag" | |
8242 | || test ! -s conftest.err' | |
8243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8244 | (eval $ac_try) 2>&5 | |
8245 | ac_status=$? | |
8246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8247 | (exit $ac_status); }; } && | |
8248 | { ac_try='test -s conftest$ac_exeext' | |
8249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8250 | (eval $ac_try) 2>&5 | |
8251 | ac_status=$? | |
8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8253 | (exit $ac_status); }; }; then | |
8254 | ac_cv_search_tgetent="none required" | |
627af7ea | 8255 | else |
bec39cab AC |
8256 | echo "$as_me: failed program was:" >&5 |
8257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 8258 | |
627af7ea | 8259 | fi |
bec39cab AC |
8260 | rm -f conftest.err conftest.$ac_objext \ |
8261 | conftest$ac_exeext conftest.$ac_ext | |
8262 | if test "$ac_cv_search_tgetent" = no; then | |
8263 | for ac_lib in termcap tinfo curses ncurses; do | |
8264 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8265 | cat >conftest.$ac_ext <<_ACEOF | |
8266 | /* confdefs.h. */ | |
8267 | _ACEOF | |
8268 | cat confdefs.h >>conftest.$ac_ext | |
8269 | cat >>conftest.$ac_ext <<_ACEOF | |
8270 | /* end confdefs.h. */ | |
627af7ea | 8271 | |
bec39cab AC |
8272 | /* Override any gcc2 internal prototype to avoid an error. */ |
8273 | #ifdef __cplusplus | |
8274 | extern "C" | |
8275 | #endif | |
8276 | /* We use char because int might match the return type of a gcc2 | |
8277 | builtin and then its argument prototype would still apply. */ | |
8278 | char tgetent (); | |
8279 | int | |
8280 | main () | |
8281 | { | |
8282 | tgetent (); | |
8283 | ; | |
8284 | return 0; | |
8285 | } | |
8286 | _ACEOF | |
8287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8289 | (eval $ac_link) 2>conftest.er1 | |
8290 | ac_status=$? | |
8291 | grep -v '^ *+' conftest.er1 >conftest.err | |
8292 | rm -f conftest.er1 | |
8293 | cat conftest.err >&5 | |
8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8295 | (exit $ac_status); } && | |
8296 | { ac_try='test -z "$ac_c_werror_flag" | |
8297 | || test ! -s conftest.err' | |
8298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8299 | (eval $ac_try) 2>&5 | |
8300 | ac_status=$? | |
8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8302 | (exit $ac_status); }; } && | |
8303 | { ac_try='test -s conftest$ac_exeext' | |
8304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8305 | (eval $ac_try) 2>&5 | |
8306 | ac_status=$? | |
8307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8308 | (exit $ac_status); }; }; then | |
8309 | ac_cv_search_tgetent="-l$ac_lib" | |
8310 | break | |
627af7ea | 8311 | else |
bec39cab AC |
8312 | echo "$as_me: failed program was:" >&5 |
8313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 8314 | |
627af7ea | 8315 | fi |
bec39cab AC |
8316 | rm -f conftest.err conftest.$ac_objext \ |
8317 | conftest$ac_exeext conftest.$ac_ext | |
8318 | done | |
8319 | fi | |
8320 | LIBS=$ac_func_search_save_LIBS | |
8321 | fi | |
8322 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
8323 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
8324 | if test "$ac_cv_search_tgetent" != no; then | |
8325 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 8326 | |
06825bd1 MK |
8327 | fi |
8328 | ||
06825bd1 | 8329 | |
bec39cab AC |
8330 | if test "$ac_cv_search_tgetent" = no; then |
8331 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
8332 | echo "$as_me: error: no termcap library found" >&2;} | |
8333 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
8334 | fi |
8335 | ||
bec39cab AC |
8336 | # ------------------------- # |
8337 | # Checks for header files. # | |
8338 | # ------------------------- # | |
8ee53726 | 8339 | |
0e5d83e3 | 8340 | |
bec39cab AC |
8341 | |
8342 | ||
8343 | ||
8344 | ||
8345 | ac_header_dirent=no | |
8346 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
8347 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8348 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
8349 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
8350 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8352 | else | |
8353 | cat >conftest.$ac_ext <<_ACEOF | |
8354 | /* confdefs.h. */ | |
8355 | _ACEOF | |
8356 | cat confdefs.h >>conftest.$ac_ext | |
8357 | cat >>conftest.$ac_ext <<_ACEOF | |
8358 | /* end confdefs.h. */ | |
8359 | #include <sys/types.h> | |
0e5d83e3 | 8360 | #include <$ac_hdr> |
bec39cab AC |
8361 | |
8362 | int | |
8363 | main () | |
8364 | { | |
8365 | if ((DIR *) 0) | |
8366 | return 0; | |
8367 | ; | |
8368 | return 0; | |
8369 | } | |
8370 | _ACEOF | |
8371 | rm -f conftest.$ac_objext | |
8372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8373 | (eval $ac_compile) 2>conftest.er1 | |
8374 | ac_status=$? | |
8375 | grep -v '^ *+' conftest.er1 >conftest.err | |
8376 | rm -f conftest.er1 | |
8377 | cat conftest.err >&5 | |
8378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8379 | (exit $ac_status); } && | |
8380 | { ac_try='test -z "$ac_c_werror_flag" | |
8381 | || test ! -s conftest.err' | |
8382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8383 | (eval $ac_try) 2>&5 | |
8384 | ac_status=$? | |
8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8386 | (exit $ac_status); }; } && | |
8387 | { ac_try='test -s conftest.$ac_objext' | |
8388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8389 | (eval $ac_try) 2>&5 | |
8390 | ac_status=$? | |
8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8392 | (exit $ac_status); }; }; then | |
8393 | eval "$as_ac_Header=yes" | |
8394 | else | |
8395 | echo "$as_me: failed program was:" >&5 | |
8396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8397 | ||
8398 | eval "$as_ac_Header=no" | |
8399 | fi | |
8400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8401 | fi | |
8402 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8403 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8404 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8405 | cat >>confdefs.h <<_ACEOF | |
8406 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8407 | _ACEOF | |
8408 | ||
8409 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 8410 | fi |
0e5d83e3 | 8411 | |
bec39cab AC |
8412 | done |
8413 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8414 | if test $ac_header_dirent = dirent.h; then | |
8415 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
8416 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8417 | if test "${ac_cv_search_opendir+set}" = set; then | |
8418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8419 | else | |
8420 | ac_func_search_save_LIBS=$LIBS | |
8421 | ac_cv_search_opendir=no | |
8422 | cat >conftest.$ac_ext <<_ACEOF | |
8423 | /* confdefs.h. */ | |
8424 | _ACEOF | |
8425 | cat confdefs.h >>conftest.$ac_ext | |
8426 | cat >>conftest.$ac_ext <<_ACEOF | |
8427 | /* end confdefs.h. */ | |
0e5d83e3 | 8428 | |
bec39cab AC |
8429 | /* Override any gcc2 internal prototype to avoid an error. */ |
8430 | #ifdef __cplusplus | |
8431 | extern "C" | |
8432 | #endif | |
8433 | /* We use char because int might match the return type of a gcc2 | |
8434 | builtin and then its argument prototype would still apply. */ | |
8435 | char opendir (); | |
8436 | int | |
8437 | main () | |
8438 | { | |
8439 | opendir (); | |
8440 | ; | |
8441 | return 0; | |
8442 | } | |
8443 | _ACEOF | |
8444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8446 | (eval $ac_link) 2>conftest.er1 | |
8447 | ac_status=$? | |
8448 | grep -v '^ *+' conftest.er1 >conftest.err | |
8449 | rm -f conftest.er1 | |
8450 | cat conftest.err >&5 | |
8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8452 | (exit $ac_status); } && | |
8453 | { ac_try='test -z "$ac_c_werror_flag" | |
8454 | || test ! -s conftest.err' | |
8455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8456 | (eval $ac_try) 2>&5 | |
8457 | ac_status=$? | |
8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8459 | (exit $ac_status); }; } && | |
8460 | { ac_try='test -s conftest$ac_exeext' | |
8461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8462 | (eval $ac_try) 2>&5 | |
8463 | ac_status=$? | |
8464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8465 | (exit $ac_status); }; }; then | |
8466 | ac_cv_search_opendir="none required" | |
8467 | else | |
8468 | echo "$as_me: failed program was:" >&5 | |
8469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8470 | ||
8471 | fi | |
8472 | rm -f conftest.err conftest.$ac_objext \ | |
8473 | conftest$ac_exeext conftest.$ac_ext | |
8474 | if test "$ac_cv_search_opendir" = no; then | |
8475 | for ac_lib in dir; do | |
8476 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8477 | cat >conftest.$ac_ext <<_ACEOF | |
8478 | /* confdefs.h. */ | |
8479 | _ACEOF | |
8480 | cat confdefs.h >>conftest.$ac_ext | |
8481 | cat >>conftest.$ac_ext <<_ACEOF | |
8482 | /* end confdefs.h. */ | |
0e5d83e3 | 8483 | |
bec39cab AC |
8484 | /* Override any gcc2 internal prototype to avoid an error. */ |
8485 | #ifdef __cplusplus | |
8486 | extern "C" | |
8487 | #endif | |
8488 | /* We use char because int might match the return type of a gcc2 | |
8489 | builtin and then its argument prototype would still apply. */ | |
8490 | char opendir (); | |
8491 | int | |
8492 | main () | |
8493 | { | |
8494 | opendir (); | |
8495 | ; | |
8496 | return 0; | |
8497 | } | |
8498 | _ACEOF | |
8499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8501 | (eval $ac_link) 2>conftest.er1 | |
8502 | ac_status=$? | |
8503 | grep -v '^ *+' conftest.er1 >conftest.err | |
8504 | rm -f conftest.er1 | |
8505 | cat conftest.err >&5 | |
8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8507 | (exit $ac_status); } && | |
8508 | { ac_try='test -z "$ac_c_werror_flag" | |
8509 | || test ! -s conftest.err' | |
8510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8511 | (eval $ac_try) 2>&5 | |
8512 | ac_status=$? | |
8513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8514 | (exit $ac_status); }; } && | |
8515 | { ac_try='test -s conftest$ac_exeext' | |
8516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8517 | (eval $ac_try) 2>&5 | |
8518 | ac_status=$? | |
8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8520 | (exit $ac_status); }; }; then | |
8521 | ac_cv_search_opendir="-l$ac_lib" | |
8522 | break | |
0e5d83e3 | 8523 | else |
bec39cab AC |
8524 | echo "$as_me: failed program was:" >&5 |
8525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0e5d83e3 | 8526 | |
0e5d83e3 | 8527 | fi |
bec39cab AC |
8528 | rm -f conftest.err conftest.$ac_objext \ |
8529 | conftest$ac_exeext conftest.$ac_ext | |
8530 | done | |
0e5d83e3 | 8531 | fi |
bec39cab | 8532 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 8533 | fi |
bec39cab AC |
8534 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
8535 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8536 | if test "$ac_cv_search_opendir" != no; then | |
8537 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 8538 | |
0e5d83e3 JJ |
8539 | fi |
8540 | ||
d28f9cdf | 8541 | else |
bec39cab AC |
8542 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
8543 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8544 | if test "${ac_cv_search_opendir+set}" = set; then | |
8545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8546 | else | |
8547 | ac_func_search_save_LIBS=$LIBS | |
8548 | ac_cv_search_opendir=no | |
8549 | cat >conftest.$ac_ext <<_ACEOF | |
8550 | /* confdefs.h. */ | |
8551 | _ACEOF | |
8552 | cat confdefs.h >>conftest.$ac_ext | |
8553 | cat >>conftest.$ac_ext <<_ACEOF | |
8554 | /* end confdefs.h. */ | |
d28f9cdf | 8555 | |
d28f9cdf | 8556 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
8557 | #ifdef __cplusplus |
8558 | extern "C" | |
8559 | #endif | |
d28f9cdf | 8560 | /* We use char because int might match the return type of a gcc2 |
bec39cab AC |
8561 | builtin and then its argument prototype would still apply. */ |
8562 | char opendir (); | |
8563 | int | |
8564 | main () | |
8565 | { | |
8566 | opendir (); | |
8567 | ; | |
8568 | return 0; | |
8569 | } | |
8570 | _ACEOF | |
8571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8573 | (eval $ac_link) 2>conftest.er1 | |
8574 | ac_status=$? | |
8575 | grep -v '^ *+' conftest.er1 >conftest.err | |
8576 | rm -f conftest.er1 | |
8577 | cat conftest.err >&5 | |
8578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8579 | (exit $ac_status); } && | |
8580 | { ac_try='test -z "$ac_c_werror_flag" | |
8581 | || test ! -s conftest.err' | |
8582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8583 | (eval $ac_try) 2>&5 | |
8584 | ac_status=$? | |
8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8586 | (exit $ac_status); }; } && | |
8587 | { ac_try='test -s conftest$ac_exeext' | |
8588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8589 | (eval $ac_try) 2>&5 | |
8590 | ac_status=$? | |
8591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8592 | (exit $ac_status); }; }; then | |
8593 | ac_cv_search_opendir="none required" | |
8594 | else | |
8595 | echo "$as_me: failed program was:" >&5 | |
8596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8597 | ||
8598 | fi | |
8599 | rm -f conftest.err conftest.$ac_objext \ | |
8600 | conftest$ac_exeext conftest.$ac_ext | |
8601 | if test "$ac_cv_search_opendir" = no; then | |
8602 | for ac_lib in x; do | |
8603 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8604 | cat >conftest.$ac_ext <<_ACEOF | |
8605 | /* confdefs.h. */ | |
8606 | _ACEOF | |
8607 | cat confdefs.h >>conftest.$ac_ext | |
8608 | cat >>conftest.$ac_ext <<_ACEOF | |
8609 | /* end confdefs.h. */ | |
d28f9cdf | 8610 | |
bec39cab AC |
8611 | /* Override any gcc2 internal prototype to avoid an error. */ |
8612 | #ifdef __cplusplus | |
8613 | extern "C" | |
d28f9cdf | 8614 | #endif |
bec39cab AC |
8615 | /* We use char because int might match the return type of a gcc2 |
8616 | builtin and then its argument prototype would still apply. */ | |
8617 | char opendir (); | |
8618 | int | |
8619 | main () | |
8620 | { | |
8621 | opendir (); | |
8622 | ; | |
8623 | return 0; | |
8624 | } | |
8625 | _ACEOF | |
8626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8628 | (eval $ac_link) 2>conftest.er1 | |
8629 | ac_status=$? | |
8630 | grep -v '^ *+' conftest.er1 >conftest.err | |
8631 | rm -f conftest.er1 | |
8632 | cat conftest.err >&5 | |
8633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8634 | (exit $ac_status); } && | |
8635 | { ac_try='test -z "$ac_c_werror_flag" | |
8636 | || test ! -s conftest.err' | |
8637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8638 | (eval $ac_try) 2>&5 | |
8639 | ac_status=$? | |
8640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8641 | (exit $ac_status); }; } && | |
8642 | { ac_try='test -s conftest$ac_exeext' | |
8643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8644 | (eval $ac_try) 2>&5 | |
8645 | ac_status=$? | |
8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8647 | (exit $ac_status); }; }; then | |
8648 | ac_cv_search_opendir="-l$ac_lib" | |
8649 | break | |
d28f9cdf | 8650 | else |
bec39cab AC |
8651 | echo "$as_me: failed program was:" >&5 |
8652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8653 | ||
d28f9cdf | 8654 | fi |
bec39cab AC |
8655 | rm -f conftest.err conftest.$ac_objext \ |
8656 | conftest$ac_exeext conftest.$ac_ext | |
8657 | done | |
8658 | fi | |
8659 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 8660 | fi |
bec39cab AC |
8661 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
8662 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8663 | if test "$ac_cv_search_opendir" != no; then | |
8664 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 8665 | |
d28f9cdf DJ |
8666 | fi |
8667 | ||
bec39cab | 8668 | fi |
b0b1c2c0 | 8669 | |
bec39cab AC |
8670 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
8671 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
8672 | if test "${ac_cv_header_stat_broken+set}" = set; then | |
8673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 8674 | else |
bec39cab AC |
8675 | cat >conftest.$ac_ext <<_ACEOF |
8676 | /* confdefs.h. */ | |
8677 | _ACEOF | |
8678 | cat confdefs.h >>conftest.$ac_ext | |
8679 | cat >>conftest.$ac_ext <<_ACEOF | |
8680 | /* end confdefs.h. */ | |
8681 | #include <sys/types.h> | |
8682 | #include <sys/stat.h> | |
b0b1c2c0 | 8683 | |
bec39cab AC |
8684 | #if defined(S_ISBLK) && defined(S_IFDIR) |
8685 | # if S_ISBLK (S_IFDIR) | |
8686 | You lose. | |
8687 | # endif | |
8688 | #endif | |
b0b1c2c0 | 8689 | |
bec39cab AC |
8690 | #if defined(S_ISBLK) && defined(S_IFCHR) |
8691 | # if S_ISBLK (S_IFCHR) | |
8692 | You lose. | |
8693 | # endif | |
8694 | #endif | |
d28f9cdf | 8695 | |
bec39cab AC |
8696 | #if defined(S_ISLNK) && defined(S_IFREG) |
8697 | # if S_ISLNK (S_IFREG) | |
8698 | You lose. | |
8699 | # endif | |
8700 | #endif | |
d28f9cdf | 8701 | |
bec39cab AC |
8702 | #if defined(S_ISSOCK) && defined(S_IFREG) |
8703 | # if S_ISSOCK (S_IFREG) | |
8704 | You lose. | |
8705 | # endif | |
8706 | #endif | |
8707 | ||
8708 | _ACEOF | |
8709 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8710 | $EGREP "You lose" >/dev/null 2>&1; then | |
8711 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 8712 | else |
bec39cab | 8713 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
8714 | fi |
8715 | rm -f conftest* | |
d28f9cdf | 8716 | |
d28f9cdf | 8717 | fi |
bec39cab AC |
8718 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
8719 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
8720 | if test $ac_cv_header_stat_broken = yes; then | |
d28f9cdf | 8721 | |
bec39cab AC |
8722 | cat >>confdefs.h <<\_ACEOF |
8723 | #define STAT_MACROS_BROKEN 1 | |
8724 | _ACEOF | |
8bb2c122 | 8725 | |
7a292a7a | 8726 | fi |
bec39cab AC |
8727 | |
8728 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
8729 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
8730 | if test "${ac_cv_header_stdc+set}" = set; then | |
8731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 8732 | else |
bec39cab AC |
8733 | cat >conftest.$ac_ext <<_ACEOF |
8734 | /* confdefs.h. */ | |
8735 | _ACEOF | |
8736 | cat confdefs.h >>conftest.$ac_ext | |
8737 | cat >>conftest.$ac_ext <<_ACEOF | |
8738 | /* end confdefs.h. */ | |
8739 | #include <stdlib.h> | |
8740 | #include <stdarg.h> | |
8741 | #include <string.h> | |
8742 | #include <float.h> | |
7a292a7a | 8743 | |
bec39cab AC |
8744 | int |
8745 | main () | |
8746 | { | |
7a292a7a | 8747 | |
bec39cab AC |
8748 | ; |
8749 | return 0; | |
8750 | } | |
8751 | _ACEOF | |
8752 | rm -f conftest.$ac_objext | |
8753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8754 | (eval $ac_compile) 2>conftest.er1 | |
8755 | ac_status=$? | |
8756 | grep -v '^ *+' conftest.er1 >conftest.err | |
8757 | rm -f conftest.er1 | |
8758 | cat conftest.err >&5 | |
8759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8760 | (exit $ac_status); } && | |
8761 | { ac_try='test -z "$ac_c_werror_flag" | |
8762 | || test ! -s conftest.err' | |
8763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8764 | (eval $ac_try) 2>&5 | |
8765 | ac_status=$? | |
8766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8767 | (exit $ac_status); }; } && | |
8768 | { ac_try='test -s conftest.$ac_objext' | |
8769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8770 | (eval $ac_try) 2>&5 | |
8771 | ac_status=$? | |
8772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8773 | (exit $ac_status); }; }; then | |
8774 | ac_cv_header_stdc=yes | |
c906108c | 8775 | else |
bec39cab AC |
8776 | echo "$as_me: failed program was:" >&5 |
8777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8778 | |
bec39cab | 8779 | ac_cv_header_stdc=no |
c906108c | 8780 | fi |
bec39cab | 8781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 8782 | |
bec39cab AC |
8783 | if test $ac_cv_header_stdc = yes; then |
8784 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8785 | cat >conftest.$ac_ext <<_ACEOF | |
8786 | /* confdefs.h. */ | |
8787 | _ACEOF | |
8788 | cat confdefs.h >>conftest.$ac_ext | |
8789 | cat >>conftest.$ac_ext <<_ACEOF | |
8790 | /* end confdefs.h. */ | |
8791 | #include <string.h> | |
c906108c | 8792 | |
bec39cab AC |
8793 | _ACEOF |
8794 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8795 | $EGREP "memchr" >/dev/null 2>&1; then | |
8796 | : | |
8bb2c122 | 8797 | else |
bec39cab | 8798 | ac_cv_header_stdc=no |
8bb2c122 | 8799 | fi |
bec39cab AC |
8800 | rm -f conftest* |
8801 | ||
c906108c SS |
8802 | fi |
8803 | ||
bec39cab AC |
8804 | if test $ac_cv_header_stdc = yes; then |
8805 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8806 | cat >conftest.$ac_ext <<_ACEOF | |
8807 | /* confdefs.h. */ | |
8808 | _ACEOF | |
8809 | cat confdefs.h >>conftest.$ac_ext | |
8810 | cat >>conftest.$ac_ext <<_ACEOF | |
8811 | /* end confdefs.h. */ | |
8812 | #include <stdlib.h> | |
8813 | ||
8814 | _ACEOF | |
8815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8816 | $EGREP "free" >/dev/null 2>&1; then | |
8817 | : | |
c906108c | 8818 | else |
bec39cab | 8819 | ac_cv_header_stdc=no |
c906108c | 8820 | fi |
bec39cab AC |
8821 | rm -f conftest* |
8822 | ||
c906108c SS |
8823 | fi |
8824 | ||
bec39cab AC |
8825 | if test $ac_cv_header_stdc = yes; then |
8826 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8827 | if test "$cross_compiling" = yes; then | |
8828 | : | |
c906108c | 8829 | else |
bec39cab AC |
8830 | cat >conftest.$ac_ext <<_ACEOF |
8831 | /* confdefs.h. */ | |
8832 | _ACEOF | |
8833 | cat confdefs.h >>conftest.$ac_ext | |
8834 | cat >>conftest.$ac_ext <<_ACEOF | |
8835 | /* end confdefs.h. */ | |
8836 | #include <ctype.h> | |
8837 | #if ((' ' & 0x0FF) == 0x020) | |
8838 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8839 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8840 | #else | |
8841 | # define ISLOWER(c) \ | |
8842 | (('a' <= (c) && (c) <= 'i') \ | |
8843 | || ('j' <= (c) && (c) <= 'r') \ | |
8844 | || ('s' <= (c) && (c) <= 'z')) | |
8845 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8846 | #endif | |
8847 | ||
8848 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8849 | int | |
8850 | main () | |
8851 | { | |
8852 | int i; | |
8853 | for (i = 0; i < 256; i++) | |
8854 | if (XOR (islower (i), ISLOWER (i)) | |
8855 | || toupper (i) != TOUPPER (i)) | |
8856 | exit(2); | |
8857 | exit (0); | |
8858 | } | |
8859 | _ACEOF | |
8860 | rm -f conftest$ac_exeext | |
8861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8862 | (eval $ac_link) 2>&5 | |
8863 | ac_status=$? | |
8864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8865 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8867 | (eval $ac_try) 2>&5 | |
8868 | ac_status=$? | |
8869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8870 | (exit $ac_status); }; }; then | |
8871 | : | |
8872 | else | |
8873 | echo "$as_me: program exited with status $ac_status" >&5 | |
8874 | echo "$as_me: failed program was:" >&5 | |
8875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8876 | ||
8877 | ( exit $ac_status ) | |
8878 | ac_cv_header_stdc=no | |
c906108c | 8879 | fi |
bec39cab | 8880 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 8881 | fi |
c906108c | 8882 | fi |
bec39cab AC |
8883 | fi |
8884 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
8885 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
8886 | if test $ac_cv_header_stdc = yes; then | |
c906108c | 8887 | |
bec39cab AC |
8888 | cat >>confdefs.h <<\_ACEOF |
8889 | #define STDC_HEADERS 1 | |
8890 | _ACEOF | |
c906108c | 8891 | |
bec39cab | 8892 | fi |
8bb2c122 | 8893 | |
bec39cab | 8894 | |
7cb9022a | 8895 | for ac_header in nlist.h |
bec39cab AC |
8896 | do |
8897 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8903 | fi | |
8904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8906 | else | |
8907 | # Is the header compilable? | |
8908 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8909 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8910 | cat >conftest.$ac_ext <<_ACEOF | |
8911 | /* confdefs.h. */ | |
8912 | _ACEOF | |
8913 | cat confdefs.h >>conftest.$ac_ext | |
8914 | cat >>conftest.$ac_ext <<_ACEOF | |
8915 | /* end confdefs.h. */ | |
8916 | $ac_includes_default | |
8917 | #include <$ac_header> | |
8918 | _ACEOF | |
8919 | rm -f conftest.$ac_objext | |
8920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8921 | (eval $ac_compile) 2>conftest.er1 | |
8922 | ac_status=$? | |
8923 | grep -v '^ *+' conftest.er1 >conftest.err | |
8924 | rm -f conftest.er1 | |
8925 | cat conftest.err >&5 | |
8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8927 | (exit $ac_status); } && | |
8928 | { ac_try='test -z "$ac_c_werror_flag" | |
8929 | || test ! -s conftest.err' | |
8930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8931 | (eval $ac_try) 2>&5 | |
8932 | ac_status=$? | |
8933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8934 | (exit $ac_status); }; } && | |
8935 | { ac_try='test -s conftest.$ac_objext' | |
8936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8937 | (eval $ac_try) 2>&5 | |
8938 | ac_status=$? | |
8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8940 | (exit $ac_status); }; }; then | |
8941 | ac_header_compiler=yes | |
8942 | else | |
8943 | echo "$as_me: failed program was:" >&5 | |
8944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8945 | ||
8946 | ac_header_compiler=no | |
8947 | fi | |
8948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8949 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8950 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8951 | ||
8952 | # Is the header present? | |
8953 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8954 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8955 | cat >conftest.$ac_ext <<_ACEOF | |
8956 | /* confdefs.h. */ | |
8957 | _ACEOF | |
8958 | cat confdefs.h >>conftest.$ac_ext | |
8959 | cat >>conftest.$ac_ext <<_ACEOF | |
8960 | /* end confdefs.h. */ | |
8961 | #include <$ac_header> | |
8962 | _ACEOF | |
8963 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8964 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8965 | ac_status=$? | |
8966 | grep -v '^ *+' conftest.er1 >conftest.err | |
8967 | rm -f conftest.er1 | |
8968 | cat conftest.err >&5 | |
8969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8970 | (exit $ac_status); } >/dev/null; then | |
8971 | if test -s conftest.err; then | |
8972 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8973 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8974 | else | |
8975 | ac_cpp_err= | |
8976 | fi | |
c906108c | 8977 | else |
bec39cab | 8978 | ac_cpp_err=yes |
c906108c | 8979 | fi |
bec39cab AC |
8980 | if test -z "$ac_cpp_err"; then |
8981 | ac_header_preproc=yes | |
c906108c | 8982 | else |
bec39cab AC |
8983 | echo "$as_me: failed program was:" >&5 |
8984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 8985 | |
bec39cab AC |
8986 | ac_header_preproc=no |
8987 | fi | |
8988 | rm -f conftest.err conftest.$ac_ext | |
8989 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8990 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 8991 | |
bec39cab AC |
8992 | # So? What about this header? |
8993 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8994 | yes:no: ) | |
8995 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8996 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8997 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8998 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8999 | ac_header_preproc=yes | |
9000 | ;; | |
9001 | no:yes:* ) | |
9002 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9003 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9004 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9005 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9006 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9007 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9008 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9009 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9010 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9011 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9012 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9013 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9014 | ( | |
9015 | cat <<\_ASBOX | |
9016 | ## ------------------------------------------ ## | |
9017 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9018 | ## ------------------------------------------ ## | |
9019 | _ASBOX | |
9020 | ) | | |
9021 | sed "s/^/$as_me: WARNING: /" >&2 | |
9022 | ;; | |
9023 | esac | |
9024 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
95ca63c4 | 9028 | else |
bec39cab | 9029 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 9030 | fi |
bec39cab AC |
9031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9033 | ||
95ca63c4 | 9034 | fi |
bec39cab AC |
9035 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9036 | cat >>confdefs.h <<_ACEOF | |
9037 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9038 | _ACEOF | |
9039 | ||
95ca63c4 CF |
9040 | fi |
9041 | ||
bec39cab | 9042 | done |
95ca63c4 CF |
9043 | |
9044 | ||
7cb9022a | 9045 | for ac_header in link.h |
bec39cab AC |
9046 | do |
9047 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7cb9022a | 9048 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
bec39cab AC |
9049 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9050 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 9052 | else |
7cb9022a | 9053 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9054 | /* confdefs.h. */ |
9055 | _ACEOF | |
9056 | cat confdefs.h >>conftest.$ac_ext | |
9057 | cat >>conftest.$ac_ext <<_ACEOF | |
9058 | /* end confdefs.h. */ | |
7cb9022a MK |
9059 | #if HAVE_SYS_TYPES_H |
9060 | # include <sys/types.h> | |
9061 | #endif | |
9062 | #if HAVE_NLIST_H | |
9063 | # include <nlist.h> | |
9064 | #endif | |
9065 | ||
9066 | ||
bec39cab AC |
9067 | #include <$ac_header> |
9068 | _ACEOF | |
9069 | rm -f conftest.$ac_objext | |
9070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9071 | (eval $ac_compile) 2>conftest.er1 | |
9072 | ac_status=$? | |
9073 | grep -v '^ *+' conftest.er1 >conftest.err | |
9074 | rm -f conftest.er1 | |
9075 | cat conftest.err >&5 | |
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9077 | (exit $ac_status); } && | |
9078 | { ac_try='test -z "$ac_c_werror_flag" | |
9079 | || test ! -s conftest.err' | |
9080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9081 | (eval $ac_try) 2>&5 | |
9082 | ac_status=$? | |
9083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9084 | (exit $ac_status); }; } && | |
9085 | { ac_try='test -s conftest.$ac_objext' | |
9086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9087 | (eval $ac_try) 2>&5 | |
9088 | ac_status=$? | |
9089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9090 | (exit $ac_status); }; }; then | |
7cb9022a | 9091 | eval "$as_ac_Header=yes" |
bec39cab AC |
9092 | else |
9093 | echo "$as_me: failed program was:" >&5 | |
9094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9095 | ||
7cb9022a | 9096 | eval "$as_ac_Header=no" |
bec39cab AC |
9097 | fi |
9098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
9099 | fi |
9100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9101 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9102 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9103 | cat >>confdefs.h <<_ACEOF | |
9104 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9105 | _ACEOF | |
95ca63c4 | 9106 | |
bec39cab | 9107 | fi |
95ca63c4 | 9108 | |
bec39cab | 9109 | done |
95ca63c4 | 9110 | |
c906108c | 9111 | |
7cb9022a | 9112 | for ac_header in machine/reg.h |
bec39cab AC |
9113 | do |
9114 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9115 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9116 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9118 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9120 | fi | |
9121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9122 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9123 | else | |
9124 | # Is the header compilable? | |
9125 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9126 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9127 | cat >conftest.$ac_ext <<_ACEOF | |
9128 | /* confdefs.h. */ | |
9129 | _ACEOF | |
9130 | cat confdefs.h >>conftest.$ac_ext | |
9131 | cat >>conftest.$ac_ext <<_ACEOF | |
9132 | /* end confdefs.h. */ | |
9133 | $ac_includes_default | |
9134 | #include <$ac_header> | |
9135 | _ACEOF | |
9136 | rm -f conftest.$ac_objext | |
9137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9138 | (eval $ac_compile) 2>conftest.er1 | |
9139 | ac_status=$? | |
9140 | grep -v '^ *+' conftest.er1 >conftest.err | |
9141 | rm -f conftest.er1 | |
9142 | cat conftest.err >&5 | |
9143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9144 | (exit $ac_status); } && | |
9145 | { ac_try='test -z "$ac_c_werror_flag" | |
9146 | || test ! -s conftest.err' | |
9147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9148 | (eval $ac_try) 2>&5 | |
9149 | ac_status=$? | |
9150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9151 | (exit $ac_status); }; } && | |
9152 | { ac_try='test -s conftest.$ac_objext' | |
9153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9154 | (eval $ac_try) 2>&5 | |
9155 | ac_status=$? | |
9156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9157 | (exit $ac_status); }; }; then | |
9158 | ac_header_compiler=yes | |
9159 | else | |
9160 | echo "$as_me: failed program was:" >&5 | |
9161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9162 | ||
9163 | ac_header_compiler=no | |
9164 | fi | |
9165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9166 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9167 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9168 | ||
9169 | # Is the header present? | |
9170 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9171 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9172 | cat >conftest.$ac_ext <<_ACEOF | |
9173 | /* confdefs.h. */ | |
9174 | _ACEOF | |
9175 | cat confdefs.h >>conftest.$ac_ext | |
9176 | cat >>conftest.$ac_ext <<_ACEOF | |
9177 | /* end confdefs.h. */ | |
9178 | #include <$ac_header> | |
9179 | _ACEOF | |
9180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9182 | ac_status=$? | |
9183 | grep -v '^ *+' conftest.er1 >conftest.err | |
9184 | rm -f conftest.er1 | |
9185 | cat conftest.err >&5 | |
9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9187 | (exit $ac_status); } >/dev/null; then | |
9188 | if test -s conftest.err; then | |
9189 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9190 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9191 | else | |
9192 | ac_cpp_err= | |
9193 | fi | |
75c6e08a | 9194 | else |
bec39cab | 9195 | ac_cpp_err=yes |
75c6e08a | 9196 | fi |
bec39cab AC |
9197 | if test -z "$ac_cpp_err"; then |
9198 | ac_header_preproc=yes | |
9199 | else | |
9200 | echo "$as_me: failed program was:" >&5 | |
9201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9202 | ||
9203 | ac_header_preproc=no | |
75c6e08a | 9204 | fi |
bec39cab AC |
9205 | rm -f conftest.err conftest.$ac_ext |
9206 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9207 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9208 | ||
9209 | # So? What about this header? | |
9210 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9211 | yes:no: ) | |
9212 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9213 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9214 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9215 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9216 | ac_header_preproc=yes | |
9217 | ;; | |
9218 | no:yes:* ) | |
9219 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9220 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9221 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9222 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9223 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9224 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9225 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9226 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9228 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9229 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9230 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9231 | ( | |
9232 | cat <<\_ASBOX | |
9233 | ## ------------------------------------------ ## | |
9234 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9235 | ## ------------------------------------------ ## | |
9236 | _ASBOX | |
9237 | ) | | |
9238 | sed "s/^/$as_me: WARNING: /" >&2 | |
9239 | ;; | |
9240 | esac | |
9241 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9242 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
75c6e08a | 9245 | else |
bec39cab AC |
9246 | eval "$as_ac_Header=\$ac_header_preproc" |
9247 | fi | |
9248 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9249 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9250 | ||
75c6e08a | 9251 | fi |
bec39cab AC |
9252 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9253 | cat >>confdefs.h <<_ACEOF | |
9254 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9255 | _ACEOF | |
75c6e08a | 9256 | |
bec39cab | 9257 | fi |
75c6e08a | 9258 | |
bec39cab | 9259 | done |
75c6e08a MK |
9260 | |
9261 | ||
9a156167 | 9262 | |
bec39cab AC |
9263 | for ac_header in poll.h sys/poll.h |
9264 | do | |
9265 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9266 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9267 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9268 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9269 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9271 | fi | |
9272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9273 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9274 | else | |
9275 | # Is the header compilable? | |
9276 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9277 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9278 | cat >conftest.$ac_ext <<_ACEOF | |
9279 | /* confdefs.h. */ | |
9280 | _ACEOF | |
9281 | cat confdefs.h >>conftest.$ac_ext | |
9282 | cat >>conftest.$ac_ext <<_ACEOF | |
9283 | /* end confdefs.h. */ | |
9284 | $ac_includes_default | |
9285 | #include <$ac_header> | |
9286 | _ACEOF | |
9287 | rm -f conftest.$ac_objext | |
9288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9289 | (eval $ac_compile) 2>conftest.er1 | |
9290 | ac_status=$? | |
9291 | grep -v '^ *+' conftest.er1 >conftest.err | |
9292 | rm -f conftest.er1 | |
9293 | cat conftest.err >&5 | |
9294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9295 | (exit $ac_status); } && | |
9296 | { ac_try='test -z "$ac_c_werror_flag" | |
9297 | || test ! -s conftest.err' | |
9298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9299 | (eval $ac_try) 2>&5 | |
9300 | ac_status=$? | |
9301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9302 | (exit $ac_status); }; } && | |
9303 | { ac_try='test -s conftest.$ac_objext' | |
9304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9305 | (eval $ac_try) 2>&5 | |
9306 | ac_status=$? | |
9307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9308 | (exit $ac_status); }; }; then | |
9309 | ac_header_compiler=yes | |
9310 | else | |
9311 | echo "$as_me: failed program was:" >&5 | |
9312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9313 | ||
9314 | ac_header_compiler=no | |
9315 | fi | |
9316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9317 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9318 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9319 | ||
9320 | # Is the header present? | |
9321 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9322 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9323 | cat >conftest.$ac_ext <<_ACEOF | |
9324 | /* confdefs.h. */ | |
9325 | _ACEOF | |
9326 | cat confdefs.h >>conftest.$ac_ext | |
9327 | cat >>conftest.$ac_ext <<_ACEOF | |
9328 | /* end confdefs.h. */ | |
9329 | #include <$ac_header> | |
9330 | _ACEOF | |
9331 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9332 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9333 | ac_status=$? | |
9334 | grep -v '^ *+' conftest.er1 >conftest.err | |
9335 | rm -f conftest.er1 | |
9336 | cat conftest.err >&5 | |
9337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9338 | (exit $ac_status); } >/dev/null; then | |
9339 | if test -s conftest.err; then | |
9340 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9341 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9342 | else | |
9343 | ac_cpp_err= | |
9344 | fi | |
9a156167 | 9345 | else |
bec39cab | 9346 | ac_cpp_err=yes |
9a156167 | 9347 | fi |
bec39cab AC |
9348 | if test -z "$ac_cpp_err"; then |
9349 | ac_header_preproc=yes | |
9350 | else | |
9351 | echo "$as_me: failed program was:" >&5 | |
9352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9353 | |
bec39cab | 9354 | ac_header_preproc=no |
9a156167 | 9355 | fi |
bec39cab AC |
9356 | rm -f conftest.err conftest.$ac_ext |
9357 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9358 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 9359 | |
bec39cab AC |
9360 | # So? What about this header? |
9361 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9362 | yes:no: ) | |
9363 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9364 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9365 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9366 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9367 | ac_header_preproc=yes | |
9368 | ;; | |
9369 | no:yes:* ) | |
9370 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9371 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9372 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9373 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9374 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9375 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9376 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9377 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9378 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9379 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9380 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9381 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9382 | ( | |
9383 | cat <<\_ASBOX | |
9384 | ## ------------------------------------------ ## | |
9385 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9386 | ## ------------------------------------------ ## | |
9387 | _ASBOX | |
9388 | ) | | |
9389 | sed "s/^/$as_me: WARNING: /" >&2 | |
9390 | ;; | |
9391 | esac | |
9392 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9393 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9394 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9396 | else |
bec39cab | 9397 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9398 | fi |
bec39cab AC |
9399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9400 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 9401 | |
bec39cab AC |
9402 | fi |
9403 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9404 | cat >>confdefs.h <<_ACEOF | |
9405 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9406 | _ACEOF | |
9a156167 | 9407 | |
bec39cab | 9408 | fi |
9a156167 | 9409 | |
bec39cab | 9410 | done |
9a156167 | 9411 | |
9a156167 | 9412 | |
9a156167 | 9413 | |
bec39cab AC |
9414 | |
9415 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
9416 | do | |
9417 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9423 | fi | |
9424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9426 | else | |
9427 | # Is the header compilable? | |
9428 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9429 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9430 | cat >conftest.$ac_ext <<_ACEOF | |
9431 | /* confdefs.h. */ | |
9432 | _ACEOF | |
9433 | cat confdefs.h >>conftest.$ac_ext | |
9434 | cat >>conftest.$ac_ext <<_ACEOF | |
9435 | /* end confdefs.h. */ | |
9436 | $ac_includes_default | |
9437 | #include <$ac_header> | |
9438 | _ACEOF | |
9439 | rm -f conftest.$ac_objext | |
9440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9441 | (eval $ac_compile) 2>conftest.er1 | |
9442 | ac_status=$? | |
9443 | grep -v '^ *+' conftest.er1 >conftest.err | |
9444 | rm -f conftest.er1 | |
9445 | cat conftest.err >&5 | |
9446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9447 | (exit $ac_status); } && | |
9448 | { ac_try='test -z "$ac_c_werror_flag" | |
9449 | || test ! -s conftest.err' | |
9450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9451 | (eval $ac_try) 2>&5 | |
9452 | ac_status=$? | |
9453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9454 | (exit $ac_status); }; } && | |
9455 | { ac_try='test -s conftest.$ac_objext' | |
9456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9457 | (eval $ac_try) 2>&5 | |
9458 | ac_status=$? | |
9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9460 | (exit $ac_status); }; }; then | |
9461 | ac_header_compiler=yes | |
9462 | else | |
9463 | echo "$as_me: failed program was:" >&5 | |
9464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9465 | ||
9466 | ac_header_compiler=no | |
9467 | fi | |
9468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9469 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9470 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9471 | ||
9472 | # Is the header present? | |
9473 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9474 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9475 | cat >conftest.$ac_ext <<_ACEOF | |
9476 | /* confdefs.h. */ | |
9477 | _ACEOF | |
9478 | cat confdefs.h >>conftest.$ac_ext | |
9479 | cat >>conftest.$ac_ext <<_ACEOF | |
9480 | /* end confdefs.h. */ | |
9481 | #include <$ac_header> | |
9482 | _ACEOF | |
9483 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9484 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9485 | ac_status=$? | |
9486 | grep -v '^ *+' conftest.er1 >conftest.err | |
9487 | rm -f conftest.er1 | |
9488 | cat conftest.err >&5 | |
9489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9490 | (exit $ac_status); } >/dev/null; then | |
9491 | if test -s conftest.err; then | |
9492 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9493 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9494 | else | |
9495 | ac_cpp_err= | |
9496 | fi | |
9a156167 | 9497 | else |
bec39cab | 9498 | ac_cpp_err=yes |
9a156167 | 9499 | fi |
bec39cab AC |
9500 | if test -z "$ac_cpp_err"; then |
9501 | ac_header_preproc=yes | |
9502 | else | |
9503 | echo "$as_me: failed program was:" >&5 | |
9504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9505 | |
bec39cab | 9506 | ac_header_preproc=no |
9a156167 | 9507 | fi |
bec39cab AC |
9508 | rm -f conftest.err conftest.$ac_ext |
9509 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9510 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 9511 | |
bec39cab AC |
9512 | # So? What about this header? |
9513 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9514 | yes:no: ) | |
9515 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9516 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9517 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9518 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9519 | ac_header_preproc=yes | |
9520 | ;; | |
9521 | no:yes:* ) | |
9522 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9523 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9524 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9525 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9526 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9527 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9528 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9529 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9531 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9532 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9533 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9534 | ( | |
9535 | cat <<\_ASBOX | |
9536 | ## ------------------------------------------ ## | |
9537 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9538 | ## ------------------------------------------ ## | |
9539 | _ASBOX | |
9540 | ) | | |
9541 | sed "s/^/$as_me: WARNING: /" >&2 | |
9542 | ;; | |
9543 | esac | |
9544 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9548 | else |
bec39cab | 9549 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9550 | fi |
bec39cab AC |
9551 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9552 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
9553 | |
9554 | fi | |
bec39cab AC |
9555 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9556 | cat >>confdefs.h <<_ACEOF | |
9557 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9558 | _ACEOF | |
9a156167 | 9559 | |
bec39cab AC |
9560 | fi |
9561 | ||
9562 | done | |
9a156167 | 9563 | |
c890192f | 9564 | |
bec39cab AC |
9565 | for ac_header in stddef.h |
9566 | do | |
9567 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9568 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9569 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9573 | fi | |
9574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9576 | else | |
9577 | # Is the header compilable? | |
9578 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9579 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9580 | cat >conftest.$ac_ext <<_ACEOF | |
9581 | /* confdefs.h. */ | |
9582 | _ACEOF | |
9583 | cat confdefs.h >>conftest.$ac_ext | |
9584 | cat >>conftest.$ac_ext <<_ACEOF | |
9585 | /* end confdefs.h. */ | |
9586 | $ac_includes_default | |
9587 | #include <$ac_header> | |
9588 | _ACEOF | |
9589 | rm -f conftest.$ac_objext | |
9590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9591 | (eval $ac_compile) 2>conftest.er1 | |
9592 | ac_status=$? | |
9593 | grep -v '^ *+' conftest.er1 >conftest.err | |
9594 | rm -f conftest.er1 | |
9595 | cat conftest.err >&5 | |
9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9597 | (exit $ac_status); } && | |
9598 | { ac_try='test -z "$ac_c_werror_flag" | |
9599 | || test ! -s conftest.err' | |
9600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9601 | (eval $ac_try) 2>&5 | |
9602 | ac_status=$? | |
9603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9604 | (exit $ac_status); }; } && | |
9605 | { ac_try='test -s conftest.$ac_objext' | |
9606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9607 | (eval $ac_try) 2>&5 | |
9608 | ac_status=$? | |
9609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9610 | (exit $ac_status); }; }; then | |
9611 | ac_header_compiler=yes | |
9612 | else | |
9613 | echo "$as_me: failed program was:" >&5 | |
9614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9615 | ||
9616 | ac_header_compiler=no | |
9617 | fi | |
9618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9619 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9620 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9621 | ||
9622 | # Is the header present? | |
9623 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9624 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9625 | cat >conftest.$ac_ext <<_ACEOF | |
9626 | /* confdefs.h. */ | |
9627 | _ACEOF | |
9628 | cat confdefs.h >>conftest.$ac_ext | |
9629 | cat >>conftest.$ac_ext <<_ACEOF | |
9630 | /* end confdefs.h. */ | |
9631 | #include <$ac_header> | |
9632 | _ACEOF | |
9633 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9634 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9635 | ac_status=$? | |
9636 | grep -v '^ *+' conftest.er1 >conftest.err | |
9637 | rm -f conftest.er1 | |
9638 | cat conftest.err >&5 | |
9639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9640 | (exit $ac_status); } >/dev/null; then | |
9641 | if test -s conftest.err; then | |
9642 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9643 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9644 | else | |
9645 | ac_cpp_err= | |
9646 | fi | |
c890192f | 9647 | else |
bec39cab AC |
9648 | ac_cpp_err=yes |
9649 | fi | |
9650 | if test -z "$ac_cpp_err"; then | |
9651 | ac_header_preproc=yes | |
c890192f | 9652 | else |
bec39cab AC |
9653 | echo "$as_me: failed program was:" >&5 |
9654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9655 | ||
9656 | ac_header_preproc=no | |
c890192f | 9657 | fi |
bec39cab AC |
9658 | rm -f conftest.err conftest.$ac_ext |
9659 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9660 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9661 | ||
9662 | # So? What about this header? | |
9663 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9664 | yes:no: ) | |
9665 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9666 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9667 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9668 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9669 | ac_header_preproc=yes | |
9670 | ;; | |
9671 | no:yes:* ) | |
9672 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9673 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9674 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9675 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9676 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9677 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9678 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9679 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9680 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9681 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9682 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9683 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9684 | ( | |
9685 | cat <<\_ASBOX | |
9686 | ## ------------------------------------------ ## | |
9687 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9688 | ## ------------------------------------------ ## | |
9689 | _ASBOX | |
9690 | ) | | |
9691 | sed "s/^/$as_me: WARNING: /" >&2 | |
9692 | ;; | |
9693 | esac | |
9694 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9695 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c890192f | 9698 | else |
bec39cab | 9699 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 9700 | fi |
bec39cab AC |
9701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9703 | ||
c890192f | 9704 | fi |
bec39cab AC |
9705 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9706 | cat >>confdefs.h <<_ACEOF | |
9707 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9708 | _ACEOF | |
c890192f | 9709 | |
c890192f MK |
9710 | fi |
9711 | ||
bec39cab | 9712 | done |
9a156167 | 9713 | |
bec39cab AC |
9714 | |
9715 | for ac_header in stdlib.h | |
9716 | do | |
9717 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9718 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9719 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9721 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9723 | fi | |
9724 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9725 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9726 | else | |
9727 | # Is the header compilable? | |
9728 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9729 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9730 | cat >conftest.$ac_ext <<_ACEOF | |
9731 | /* confdefs.h. */ | |
9732 | _ACEOF | |
9733 | cat confdefs.h >>conftest.$ac_ext | |
9734 | cat >>conftest.$ac_ext <<_ACEOF | |
9735 | /* end confdefs.h. */ | |
9736 | $ac_includes_default | |
9737 | #include <$ac_header> | |
9738 | _ACEOF | |
9739 | rm -f conftest.$ac_objext | |
9740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9741 | (eval $ac_compile) 2>conftest.er1 | |
9742 | ac_status=$? | |
9743 | grep -v '^ *+' conftest.er1 >conftest.err | |
9744 | rm -f conftest.er1 | |
9745 | cat conftest.err >&5 | |
9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9747 | (exit $ac_status); } && | |
9748 | { ac_try='test -z "$ac_c_werror_flag" | |
9749 | || test ! -s conftest.err' | |
9750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9751 | (eval $ac_try) 2>&5 | |
9752 | ac_status=$? | |
9753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9754 | (exit $ac_status); }; } && | |
9755 | { ac_try='test -s conftest.$ac_objext' | |
9756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9757 | (eval $ac_try) 2>&5 | |
9758 | ac_status=$? | |
9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9760 | (exit $ac_status); }; }; then | |
9761 | ac_header_compiler=yes | |
9762 | else | |
9763 | echo "$as_me: failed program was:" >&5 | |
9764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9765 | ||
9766 | ac_header_compiler=no | |
9767 | fi | |
9768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9769 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9770 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9771 | ||
9772 | # Is the header present? | |
9773 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9774 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9775 | cat >conftest.$ac_ext <<_ACEOF | |
9776 | /* confdefs.h. */ | |
9777 | _ACEOF | |
9778 | cat confdefs.h >>conftest.$ac_ext | |
9779 | cat >>conftest.$ac_ext <<_ACEOF | |
9780 | /* end confdefs.h. */ | |
9781 | #include <$ac_header> | |
9782 | _ACEOF | |
9783 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9784 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9785 | ac_status=$? | |
9786 | grep -v '^ *+' conftest.er1 >conftest.err | |
9787 | rm -f conftest.er1 | |
9788 | cat conftest.err >&5 | |
9789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9790 | (exit $ac_status); } >/dev/null; then | |
9791 | if test -s conftest.err; then | |
9792 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9793 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9794 | else | |
9795 | ac_cpp_err= | |
9796 | fi | |
9a156167 | 9797 | else |
bec39cab AC |
9798 | ac_cpp_err=yes |
9799 | fi | |
9800 | if test -z "$ac_cpp_err"; then | |
9801 | ac_header_preproc=yes | |
9a156167 | 9802 | else |
bec39cab AC |
9803 | echo "$as_me: failed program was:" >&5 |
9804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9805 | ||
9806 | ac_header_preproc=no | |
9a156167 | 9807 | fi |
bec39cab AC |
9808 | rm -f conftest.err conftest.$ac_ext |
9809 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9810 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9811 | ||
9812 | # So? What about this header? | |
9813 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9814 | yes:no: ) | |
9815 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9816 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9817 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9818 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9819 | ac_header_preproc=yes | |
9820 | ;; | |
9821 | no:yes:* ) | |
9822 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9823 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9824 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9825 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9826 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9827 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9828 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9829 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9830 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9831 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9832 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9833 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9834 | ( | |
9835 | cat <<\_ASBOX | |
9836 | ## ------------------------------------------ ## | |
9837 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9838 | ## ------------------------------------------ ## | |
9839 | _ASBOX | |
9840 | ) | | |
9841 | sed "s/^/$as_me: WARNING: /" >&2 | |
9842 | ;; | |
9843 | esac | |
9844 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9848 | else |
bec39cab | 9849 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9850 | fi |
bec39cab AC |
9851 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9852 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9853 | ||
9a156167 | 9854 | fi |
bec39cab AC |
9855 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9856 | cat >>confdefs.h <<_ACEOF | |
9857 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9858 | _ACEOF | |
9a156167 | 9859 | |
9a156167 MK |
9860 | fi |
9861 | ||
bec39cab AC |
9862 | done |
9863 | ||
06825bd1 | 9864 | |
bec39cab AC |
9865 | for ac_header in stdint.h |
9866 | do | |
9867 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9873 | fi | |
9874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9876 | else | |
9877 | # Is the header compilable? | |
9878 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9879 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9880 | cat >conftest.$ac_ext <<_ACEOF | |
9881 | /* confdefs.h. */ | |
9882 | _ACEOF | |
9883 | cat confdefs.h >>conftest.$ac_ext | |
9884 | cat >>conftest.$ac_ext <<_ACEOF | |
9885 | /* end confdefs.h. */ | |
9886 | $ac_includes_default | |
9887 | #include <$ac_header> | |
9888 | _ACEOF | |
9889 | rm -f conftest.$ac_objext | |
9890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9891 | (eval $ac_compile) 2>conftest.er1 | |
9892 | ac_status=$? | |
9893 | grep -v '^ *+' conftest.er1 >conftest.err | |
9894 | rm -f conftest.er1 | |
9895 | cat conftest.err >&5 | |
9896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9897 | (exit $ac_status); } && | |
9898 | { ac_try='test -z "$ac_c_werror_flag" | |
9899 | || test ! -s conftest.err' | |
9900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9901 | (eval $ac_try) 2>&5 | |
9902 | ac_status=$? | |
9903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9904 | (exit $ac_status); }; } && | |
9905 | { ac_try='test -s conftest.$ac_objext' | |
9906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9907 | (eval $ac_try) 2>&5 | |
9908 | ac_status=$? | |
9909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9910 | (exit $ac_status); }; }; then | |
9911 | ac_header_compiler=yes | |
9912 | else | |
9913 | echo "$as_me: failed program was:" >&5 | |
9914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9915 | ||
9916 | ac_header_compiler=no | |
9917 | fi | |
9918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9919 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9920 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9921 | ||
9922 | # Is the header present? | |
9923 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9925 | cat >conftest.$ac_ext <<_ACEOF | |
9926 | /* confdefs.h. */ | |
9927 | _ACEOF | |
9928 | cat confdefs.h >>conftest.$ac_ext | |
9929 | cat >>conftest.$ac_ext <<_ACEOF | |
9930 | /* end confdefs.h. */ | |
9931 | #include <$ac_header> | |
9932 | _ACEOF | |
9933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9935 | ac_status=$? | |
9936 | grep -v '^ *+' conftest.er1 >conftest.err | |
9937 | rm -f conftest.er1 | |
9938 | cat conftest.err >&5 | |
9939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9940 | (exit $ac_status); } >/dev/null; then | |
9941 | if test -s conftest.err; then | |
9942 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9943 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9944 | else | |
9945 | ac_cpp_err= | |
9946 | fi | |
06825bd1 | 9947 | else |
bec39cab AC |
9948 | ac_cpp_err=yes |
9949 | fi | |
9950 | if test -z "$ac_cpp_err"; then | |
9951 | ac_header_preproc=yes | |
06825bd1 | 9952 | else |
bec39cab AC |
9953 | echo "$as_me: failed program was:" >&5 |
9954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9955 | ||
9956 | ac_header_preproc=no | |
06825bd1 | 9957 | fi |
bec39cab AC |
9958 | rm -f conftest.err conftest.$ac_ext |
9959 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9960 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9961 | ||
9962 | # So? What about this header? | |
9963 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9964 | yes:no: ) | |
9965 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9966 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9968 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9969 | ac_header_preproc=yes | |
9970 | ;; | |
9971 | no:yes:* ) | |
9972 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9973 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9974 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9975 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9976 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9977 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9978 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9979 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9981 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9982 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9983 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9984 | ( | |
9985 | cat <<\_ASBOX | |
9986 | ## ------------------------------------------ ## | |
9987 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9988 | ## ------------------------------------------ ## | |
9989 | _ASBOX | |
9990 | ) | | |
9991 | sed "s/^/$as_me: WARNING: /" >&2 | |
9992 | ;; | |
9993 | esac | |
9994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
06825bd1 | 9998 | else |
bec39cab | 9999 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 10000 | fi |
bec39cab AC |
10001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10003 | ||
06825bd1 | 10004 | fi |
bec39cab AC |
10005 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10006 | cat >>confdefs.h <<_ACEOF | |
10007 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10008 | _ACEOF | |
06825bd1 | 10009 | |
06825bd1 | 10010 | fi |
4f0be353 | 10011 | |
bec39cab | 10012 | done |
4f0be353 | 10013 | |
06825bd1 | 10014 | |
06825bd1 | 10015 | |
bec39cab AC |
10016 | |
10017 | for ac_header in string.h memory.h strings.h | |
10018 | do | |
10019 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10021 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10025 | fi | |
10026 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10027 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10028 | else | |
10029 | # Is the header compilable? | |
10030 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10031 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10032 | cat >conftest.$ac_ext <<_ACEOF | |
10033 | /* confdefs.h. */ | |
10034 | _ACEOF | |
10035 | cat confdefs.h >>conftest.$ac_ext | |
10036 | cat >>conftest.$ac_ext <<_ACEOF | |
10037 | /* end confdefs.h. */ | |
10038 | $ac_includes_default | |
10039 | #include <$ac_header> | |
10040 | _ACEOF | |
10041 | rm -f conftest.$ac_objext | |
10042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10043 | (eval $ac_compile) 2>conftest.er1 | |
10044 | ac_status=$? | |
10045 | grep -v '^ *+' conftest.er1 >conftest.err | |
10046 | rm -f conftest.er1 | |
10047 | cat conftest.err >&5 | |
10048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10049 | (exit $ac_status); } && | |
10050 | { ac_try='test -z "$ac_c_werror_flag" | |
10051 | || test ! -s conftest.err' | |
10052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10053 | (eval $ac_try) 2>&5 | |
10054 | ac_status=$? | |
10055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10056 | (exit $ac_status); }; } && | |
10057 | { ac_try='test -s conftest.$ac_objext' | |
10058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10059 | (eval $ac_try) 2>&5 | |
10060 | ac_status=$? | |
10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10062 | (exit $ac_status); }; }; then | |
10063 | ac_header_compiler=yes | |
10064 | else | |
10065 | echo "$as_me: failed program was:" >&5 | |
10066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10067 | ||
10068 | ac_header_compiler=no | |
10069 | fi | |
10070 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10071 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10072 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10073 | ||
10074 | # Is the header present? | |
10075 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10076 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10077 | cat >conftest.$ac_ext <<_ACEOF | |
10078 | /* confdefs.h. */ | |
10079 | _ACEOF | |
10080 | cat confdefs.h >>conftest.$ac_ext | |
10081 | cat >>conftest.$ac_ext <<_ACEOF | |
10082 | /* end confdefs.h. */ | |
10083 | #include <$ac_header> | |
10084 | _ACEOF | |
10085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10087 | ac_status=$? | |
10088 | grep -v '^ *+' conftest.er1 >conftest.err | |
10089 | rm -f conftest.er1 | |
10090 | cat conftest.err >&5 | |
10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10092 | (exit $ac_status); } >/dev/null; then | |
10093 | if test -s conftest.err; then | |
10094 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10095 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10096 | else | |
10097 | ac_cpp_err= | |
10098 | fi | |
06825bd1 | 10099 | else |
bec39cab AC |
10100 | ac_cpp_err=yes |
10101 | fi | |
10102 | if test -z "$ac_cpp_err"; then | |
10103 | ac_header_preproc=yes | |
06825bd1 | 10104 | else |
bec39cab AC |
10105 | echo "$as_me: failed program was:" >&5 |
10106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10107 | ||
10108 | ac_header_preproc=no | |
06825bd1 | 10109 | fi |
bec39cab AC |
10110 | rm -f conftest.err conftest.$ac_ext |
10111 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10112 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10113 | ||
10114 | # So? What about this header? | |
10115 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10116 | yes:no: ) | |
10117 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10118 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10120 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10121 | ac_header_preproc=yes | |
10122 | ;; | |
10123 | no:yes:* ) | |
10124 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10125 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10126 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10127 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10128 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10129 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10130 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10131 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10132 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10133 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10134 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10135 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10136 | ( | |
10137 | cat <<\_ASBOX | |
10138 | ## ------------------------------------------ ## | |
10139 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10140 | ## ------------------------------------------ ## | |
10141 | _ASBOX | |
10142 | ) | | |
10143 | sed "s/^/$as_me: WARNING: /" >&2 | |
10144 | ;; | |
10145 | esac | |
10146 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10150 | else | |
10151 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 10152 | fi |
bec39cab AC |
10153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10154 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 10155 | |
06825bd1 | 10156 | fi |
bec39cab AC |
10157 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10158 | cat >>confdefs.h <<_ACEOF | |
10159 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10160 | _ACEOF | |
06825bd1 | 10161 | |
06825bd1 MK |
10162 | fi |
10163 | ||
bec39cab | 10164 | done |
5ee754fc | 10165 | |
bec39cab AC |
10166 | |
10167 | for ac_header in sys/fault.h | |
5ee754fc | 10168 | do |
bec39cab AC |
10169 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10170 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10171 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10175 | fi | |
10176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10177 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10178 | else | |
10179 | # Is the header compilable? | |
10180 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10181 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10182 | cat >conftest.$ac_ext <<_ACEOF | |
10183 | /* confdefs.h. */ | |
10184 | _ACEOF | |
10185 | cat confdefs.h >>conftest.$ac_ext | |
10186 | cat >>conftest.$ac_ext <<_ACEOF | |
10187 | /* end confdefs.h. */ | |
10188 | $ac_includes_default | |
10189 | #include <$ac_header> | |
10190 | _ACEOF | |
10191 | rm -f conftest.$ac_objext | |
10192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10193 | (eval $ac_compile) 2>conftest.er1 | |
10194 | ac_status=$? | |
10195 | grep -v '^ *+' conftest.er1 >conftest.err | |
10196 | rm -f conftest.er1 | |
10197 | cat conftest.err >&5 | |
10198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10199 | (exit $ac_status); } && | |
10200 | { ac_try='test -z "$ac_c_werror_flag" | |
10201 | || test ! -s conftest.err' | |
10202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10203 | (eval $ac_try) 2>&5 | |
10204 | ac_status=$? | |
10205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10206 | (exit $ac_status); }; } && | |
10207 | { ac_try='test -s conftest.$ac_objext' | |
10208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10209 | (eval $ac_try) 2>&5 | |
10210 | ac_status=$? | |
10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10212 | (exit $ac_status); }; }; then | |
10213 | ac_header_compiler=yes | |
10214 | else | |
10215 | echo "$as_me: failed program was:" >&5 | |
10216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10217 | ||
10218 | ac_header_compiler=no | |
10219 | fi | |
10220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10221 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10222 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10223 | ||
10224 | # Is the header present? | |
10225 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10226 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10227 | cat >conftest.$ac_ext <<_ACEOF | |
10228 | /* confdefs.h. */ | |
10229 | _ACEOF | |
10230 | cat confdefs.h >>conftest.$ac_ext | |
10231 | cat >>conftest.$ac_ext <<_ACEOF | |
10232 | /* end confdefs.h. */ | |
10233 | #include <$ac_header> | |
10234 | _ACEOF | |
10235 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10236 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10237 | ac_status=$? | |
10238 | grep -v '^ *+' conftest.er1 >conftest.err | |
10239 | rm -f conftest.er1 | |
10240 | cat conftest.err >&5 | |
10241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10242 | (exit $ac_status); } >/dev/null; then | |
10243 | if test -s conftest.err; then | |
10244 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10245 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10246 | else | |
10247 | ac_cpp_err= | |
10248 | fi | |
5ee754fc | 10249 | else |
bec39cab | 10250 | ac_cpp_err=yes |
5ee754fc | 10251 | fi |
bec39cab AC |
10252 | if test -z "$ac_cpp_err"; then |
10253 | ac_header_preproc=yes | |
10254 | else | |
10255 | echo "$as_me: failed program was:" >&5 | |
10256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10257 | |
bec39cab | 10258 | ac_header_preproc=no |
5ee754fc | 10259 | fi |
bec39cab AC |
10260 | rm -f conftest.err conftest.$ac_ext |
10261 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10262 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10263 | ||
10264 | # So? What about this header? | |
10265 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10266 | yes:no: ) | |
10267 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10268 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10269 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10270 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10271 | ac_header_preproc=yes | |
10272 | ;; | |
10273 | no:yes:* ) | |
10274 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10275 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10276 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10277 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10278 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10279 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10280 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10281 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10282 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10283 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10284 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10285 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10286 | ( | |
10287 | cat <<\_ASBOX | |
10288 | ## ------------------------------------------ ## | |
10289 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10290 | ## ------------------------------------------ ## | |
10291 | _ASBOX | |
10292 | ) | | |
10293 | sed "s/^/$as_me: WARNING: /" >&2 | |
10294 | ;; | |
10295 | esac | |
10296 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10297 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10298 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10300 | else |
bec39cab | 10301 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 10302 | fi |
bec39cab AC |
10303 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10304 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 10305 | |
5ee754fc | 10306 | fi |
bec39cab AC |
10307 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10308 | cat >>confdefs.h <<_ACEOF | |
10309 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10310 | _ACEOF | |
c906108c | 10311 | |
5ee754fc | 10312 | fi |
bec39cab AC |
10313 | |
10314 | done | |
10315 | ||
10316 | ||
10317 | for ac_header in sys/file.h | |
10318 | do | |
10319 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10321 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10322 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10323 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10325 | fi | |
10326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10327 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10328 | else | |
10329 | # Is the header compilable? | |
10330 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10331 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10332 | cat >conftest.$ac_ext <<_ACEOF | |
10333 | /* confdefs.h. */ | |
10334 | _ACEOF | |
10335 | cat confdefs.h >>conftest.$ac_ext | |
10336 | cat >>conftest.$ac_ext <<_ACEOF | |
10337 | /* end confdefs.h. */ | |
10338 | $ac_includes_default | |
10339 | #include <$ac_header> | |
10340 | _ACEOF | |
10341 | rm -f conftest.$ac_objext | |
10342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10343 | (eval $ac_compile) 2>conftest.er1 | |
10344 | ac_status=$? | |
10345 | grep -v '^ *+' conftest.er1 >conftest.err | |
10346 | rm -f conftest.er1 | |
10347 | cat conftest.err >&5 | |
10348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10349 | (exit $ac_status); } && | |
10350 | { ac_try='test -z "$ac_c_werror_flag" | |
10351 | || test ! -s conftest.err' | |
10352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10353 | (eval $ac_try) 2>&5 | |
10354 | ac_status=$? | |
10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10356 | (exit $ac_status); }; } && | |
10357 | { ac_try='test -s conftest.$ac_objext' | |
10358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10359 | (eval $ac_try) 2>&5 | |
10360 | ac_status=$? | |
10361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10362 | (exit $ac_status); }; }; then | |
10363 | ac_header_compiler=yes | |
10364 | else | |
10365 | echo "$as_me: failed program was:" >&5 | |
10366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10367 | ||
10368 | ac_header_compiler=no | |
10369 | fi | |
10370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10371 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10372 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10373 | ||
10374 | # Is the header present? | |
10375 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10376 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10377 | cat >conftest.$ac_ext <<_ACEOF | |
10378 | /* confdefs.h. */ | |
10379 | _ACEOF | |
10380 | cat confdefs.h >>conftest.$ac_ext | |
10381 | cat >>conftest.$ac_ext <<_ACEOF | |
10382 | /* end confdefs.h. */ | |
10383 | #include <$ac_header> | |
10384 | _ACEOF | |
10385 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10386 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10387 | ac_status=$? | |
10388 | grep -v '^ *+' conftest.er1 >conftest.err | |
10389 | rm -f conftest.er1 | |
10390 | cat conftest.err >&5 | |
10391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10392 | (exit $ac_status); } >/dev/null; then | |
10393 | if test -s conftest.err; then | |
10394 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10395 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10396 | else | |
10397 | ac_cpp_err= | |
10398 | fi | |
5ee754fc | 10399 | else |
bec39cab | 10400 | ac_cpp_err=yes |
5ee754fc | 10401 | fi |
bec39cab AC |
10402 | if test -z "$ac_cpp_err"; then |
10403 | ac_header_preproc=yes | |
10404 | else | |
10405 | echo "$as_me: failed program was:" >&5 | |
10406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 10407 | |
bec39cab | 10408 | ac_header_preproc=no |
5ee754fc | 10409 | fi |
bec39cab AC |
10410 | rm -f conftest.err conftest.$ac_ext |
10411 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10412 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 10413 | |
bec39cab AC |
10414 | # So? What about this header? |
10415 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10416 | yes:no: ) | |
10417 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10418 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10419 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10420 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10421 | ac_header_preproc=yes | |
10422 | ;; | |
10423 | no:yes:* ) | |
10424 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10425 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10426 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10427 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10428 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10429 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10430 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10431 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10432 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10433 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10434 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10435 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10436 | ( | |
10437 | cat <<\_ASBOX | |
10438 | ## ------------------------------------------ ## | |
10439 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10440 | ## ------------------------------------------ ## | |
10441 | _ASBOX | |
10442 | ) | | |
10443 | sed "s/^/$as_me: WARNING: /" >&2 | |
10444 | ;; | |
10445 | esac | |
10446 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9608ab8b | 10450 | else |
bec39cab AC |
10451 | eval "$as_ac_Header=\$ac_header_preproc" |
10452 | fi | |
10453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10454 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10455 | |
bec39cab AC |
10456 | fi |
10457 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10458 | cat >>confdefs.h <<_ACEOF | |
10459 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10460 | _ACEOF | |
5ee754fc | 10461 | |
bec39cab | 10462 | fi |
5ee754fc | 10463 | |
bec39cab | 10464 | done |
5ee754fc | 10465 | |
5ee754fc | 10466 | |
bec39cab AC |
10467 | for ac_header in sys/filio.h |
10468 | do | |
10469 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10470 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10471 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10475 | fi | |
10476 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10477 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10478 | else | |
10479 | # Is the header compilable? | |
10480 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10481 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10482 | cat >conftest.$ac_ext <<_ACEOF | |
10483 | /* confdefs.h. */ | |
10484 | _ACEOF | |
10485 | cat confdefs.h >>conftest.$ac_ext | |
10486 | cat >>conftest.$ac_ext <<_ACEOF | |
10487 | /* end confdefs.h. */ | |
10488 | $ac_includes_default | |
10489 | #include <$ac_header> | |
10490 | _ACEOF | |
10491 | rm -f conftest.$ac_objext | |
10492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10493 | (eval $ac_compile) 2>conftest.er1 | |
10494 | ac_status=$? | |
10495 | grep -v '^ *+' conftest.er1 >conftest.err | |
10496 | rm -f conftest.er1 | |
10497 | cat conftest.err >&5 | |
10498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10499 | (exit $ac_status); } && | |
10500 | { ac_try='test -z "$ac_c_werror_flag" | |
10501 | || test ! -s conftest.err' | |
10502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10503 | (eval $ac_try) 2>&5 | |
10504 | ac_status=$? | |
10505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10506 | (exit $ac_status); }; } && | |
10507 | { ac_try='test -s conftest.$ac_objext' | |
10508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10509 | (eval $ac_try) 2>&5 | |
10510 | ac_status=$? | |
10511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10512 | (exit $ac_status); }; }; then | |
10513 | ac_header_compiler=yes | |
10514 | else | |
10515 | echo "$as_me: failed program was:" >&5 | |
10516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10517 | ||
10518 | ac_header_compiler=no | |
10519 | fi | |
10520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10521 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10522 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10523 | ||
10524 | # Is the header present? | |
10525 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10526 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10527 | cat >conftest.$ac_ext <<_ACEOF | |
10528 | /* confdefs.h. */ | |
10529 | _ACEOF | |
10530 | cat confdefs.h >>conftest.$ac_ext | |
10531 | cat >>conftest.$ac_ext <<_ACEOF | |
10532 | /* end confdefs.h. */ | |
10533 | #include <$ac_header> | |
10534 | _ACEOF | |
10535 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10536 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10537 | ac_status=$? | |
10538 | grep -v '^ *+' conftest.er1 >conftest.err | |
10539 | rm -f conftest.er1 | |
10540 | cat conftest.err >&5 | |
10541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10542 | (exit $ac_status); } >/dev/null; then | |
10543 | if test -s conftest.err; then | |
10544 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10545 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10546 | else | |
10547 | ac_cpp_err= | |
10548 | fi | |
5ee754fc | 10549 | else |
bec39cab | 10550 | ac_cpp_err=yes |
5ee754fc | 10551 | fi |
bec39cab AC |
10552 | if test -z "$ac_cpp_err"; then |
10553 | ac_header_preproc=yes | |
10554 | else | |
10555 | echo "$as_me: failed program was:" >&5 | |
10556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10557 | |
bec39cab | 10558 | ac_header_preproc=no |
5ee754fc | 10559 | fi |
bec39cab AC |
10560 | rm -f conftest.err conftest.$ac_ext |
10561 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10562 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10563 | |
bec39cab AC |
10564 | # So? What about this header? |
10565 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10566 | yes:no: ) | |
10567 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10568 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10569 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10570 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10571 | ac_header_preproc=yes | |
10572 | ;; | |
10573 | no:yes:* ) | |
10574 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10575 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10576 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10577 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10578 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10579 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10580 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10581 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10582 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10583 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10584 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10585 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10586 | ( | |
10587 | cat <<\_ASBOX | |
10588 | ## ------------------------------------------ ## | |
10589 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10590 | ## ------------------------------------------ ## | |
10591 | _ASBOX | |
10592 | ) | | |
10593 | sed "s/^/$as_me: WARNING: /" >&2 | |
10594 | ;; | |
10595 | esac | |
10596 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10597 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10598 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10600 | else |
bec39cab | 10601 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10602 | fi |
bec39cab AC |
10603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10604 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10605 | |
5ee754fc | 10606 | fi |
bec39cab AC |
10607 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10608 | cat >>confdefs.h <<_ACEOF | |
10609 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10610 | _ACEOF | |
5ee754fc MK |
10611 | |
10612 | fi | |
10613 | ||
bec39cab AC |
10614 | done |
10615 | ||
10616 | ||
10617 | for ac_header in sys/ioctl.h | |
10618 | do | |
10619 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10621 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10623 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10625 | fi | |
10626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10627 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10628 | else | |
10629 | # Is the header compilable? | |
10630 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10631 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10632 | cat >conftest.$ac_ext <<_ACEOF | |
10633 | /* confdefs.h. */ | |
10634 | _ACEOF | |
10635 | cat confdefs.h >>conftest.$ac_ext | |
10636 | cat >>conftest.$ac_ext <<_ACEOF | |
10637 | /* end confdefs.h. */ | |
10638 | $ac_includes_default | |
10639 | #include <$ac_header> | |
10640 | _ACEOF | |
10641 | rm -f conftest.$ac_objext | |
10642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10643 | (eval $ac_compile) 2>conftest.er1 | |
10644 | ac_status=$? | |
10645 | grep -v '^ *+' conftest.er1 >conftest.err | |
10646 | rm -f conftest.er1 | |
10647 | cat conftest.err >&5 | |
10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10649 | (exit $ac_status); } && | |
10650 | { ac_try='test -z "$ac_c_werror_flag" | |
10651 | || test ! -s conftest.err' | |
10652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10653 | (eval $ac_try) 2>&5 | |
10654 | ac_status=$? | |
10655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10656 | (exit $ac_status); }; } && | |
10657 | { ac_try='test -s conftest.$ac_objext' | |
10658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10659 | (eval $ac_try) 2>&5 | |
10660 | ac_status=$? | |
10661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10662 | (exit $ac_status); }; }; then | |
10663 | ac_header_compiler=yes | |
10664 | else | |
10665 | echo "$as_me: failed program was:" >&5 | |
10666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10667 | ||
10668 | ac_header_compiler=no | |
10669 | fi | |
10670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10671 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10672 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10673 | ||
10674 | # Is the header present? | |
10675 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10676 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10677 | cat >conftest.$ac_ext <<_ACEOF | |
10678 | /* confdefs.h. */ | |
10679 | _ACEOF | |
10680 | cat confdefs.h >>conftest.$ac_ext | |
10681 | cat >>conftest.$ac_ext <<_ACEOF | |
10682 | /* end confdefs.h. */ | |
10683 | #include <$ac_header> | |
10684 | _ACEOF | |
10685 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10686 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10687 | ac_status=$? | |
10688 | grep -v '^ *+' conftest.er1 >conftest.err | |
10689 | rm -f conftest.er1 | |
10690 | cat conftest.err >&5 | |
10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10692 | (exit $ac_status); } >/dev/null; then | |
10693 | if test -s conftest.err; then | |
10694 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10695 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10696 | else | |
10697 | ac_cpp_err= | |
10698 | fi | |
5ee754fc | 10699 | else |
bec39cab | 10700 | ac_cpp_err=yes |
5ee754fc | 10701 | fi |
bec39cab AC |
10702 | if test -z "$ac_cpp_err"; then |
10703 | ac_header_preproc=yes | |
10704 | else | |
10705 | echo "$as_me: failed program was:" >&5 | |
10706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10707 | |
bec39cab | 10708 | ac_header_preproc=no |
5ee754fc | 10709 | fi |
bec39cab AC |
10710 | rm -f conftest.err conftest.$ac_ext |
10711 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10712 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10713 | |
bec39cab AC |
10714 | # So? What about this header? |
10715 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10716 | yes:no: ) | |
10717 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10718 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10720 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10721 | ac_header_preproc=yes | |
10722 | ;; | |
10723 | no:yes:* ) | |
10724 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10725 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10726 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10727 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10728 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10729 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10730 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10731 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10732 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10733 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10734 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10735 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10736 | ( | |
10737 | cat <<\_ASBOX | |
10738 | ## ------------------------------------------ ## | |
10739 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10740 | ## ------------------------------------------ ## | |
10741 | _ASBOX | |
10742 | ) | | |
10743 | sed "s/^/$as_me: WARNING: /" >&2 | |
10744 | ;; | |
10745 | esac | |
10746 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10747 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9608ab8b | 10750 | else |
bec39cab | 10751 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10752 | fi |
bec39cab AC |
10753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
10755 | |
10756 | fi | |
bec39cab AC |
10757 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10758 | cat >>confdefs.h <<_ACEOF | |
10759 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10760 | _ACEOF | |
10761 | ||
5ee754fc MK |
10762 | fi |
10763 | ||
bec39cab | 10764 | done |
5ee754fc | 10765 | |
5ee754fc | 10766 | |
bec39cab | 10767 | for ac_header in sys/param.h |
5ee754fc | 10768 | do |
bec39cab AC |
10769 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10770 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10771 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10775 | fi | |
10776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10778 | else | |
10779 | # Is the header compilable? | |
10780 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10781 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10782 | cat >conftest.$ac_ext <<_ACEOF | |
10783 | /* confdefs.h. */ | |
10784 | _ACEOF | |
10785 | cat confdefs.h >>conftest.$ac_ext | |
10786 | cat >>conftest.$ac_ext <<_ACEOF | |
10787 | /* end confdefs.h. */ | |
10788 | $ac_includes_default | |
10789 | #include <$ac_header> | |
10790 | _ACEOF | |
10791 | rm -f conftest.$ac_objext | |
10792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10793 | (eval $ac_compile) 2>conftest.er1 | |
10794 | ac_status=$? | |
10795 | grep -v '^ *+' conftest.er1 >conftest.err | |
10796 | rm -f conftest.er1 | |
10797 | cat conftest.err >&5 | |
10798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10799 | (exit $ac_status); } && | |
10800 | { ac_try='test -z "$ac_c_werror_flag" | |
10801 | || test ! -s conftest.err' | |
10802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10803 | (eval $ac_try) 2>&5 | |
10804 | ac_status=$? | |
10805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10806 | (exit $ac_status); }; } && | |
10807 | { ac_try='test -s conftest.$ac_objext' | |
10808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10809 | (eval $ac_try) 2>&5 | |
10810 | ac_status=$? | |
10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10812 | (exit $ac_status); }; }; then | |
10813 | ac_header_compiler=yes | |
10814 | else | |
10815 | echo "$as_me: failed program was:" >&5 | |
10816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10817 | ||
10818 | ac_header_compiler=no | |
10819 | fi | |
10820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10821 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10822 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10823 | ||
10824 | # Is the header present? | |
10825 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10826 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10827 | cat >conftest.$ac_ext <<_ACEOF | |
10828 | /* confdefs.h. */ | |
10829 | _ACEOF | |
10830 | cat confdefs.h >>conftest.$ac_ext | |
10831 | cat >>conftest.$ac_ext <<_ACEOF | |
10832 | /* end confdefs.h. */ | |
10833 | #include <$ac_header> | |
10834 | _ACEOF | |
10835 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10836 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10837 | ac_status=$? | |
10838 | grep -v '^ *+' conftest.er1 >conftest.err | |
10839 | rm -f conftest.er1 | |
10840 | cat conftest.err >&5 | |
10841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10842 | (exit $ac_status); } >/dev/null; then | |
10843 | if test -s conftest.err; then | |
10844 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10845 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10846 | else | |
10847 | ac_cpp_err= | |
10848 | fi | |
5ee754fc | 10849 | else |
bec39cab | 10850 | ac_cpp_err=yes |
5ee754fc | 10851 | fi |
bec39cab AC |
10852 | if test -z "$ac_cpp_err"; then |
10853 | ac_header_preproc=yes | |
10854 | else | |
10855 | echo "$as_me: failed program was:" >&5 | |
10856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10857 | |
bec39cab | 10858 | ac_header_preproc=no |
5ee754fc | 10859 | fi |
bec39cab AC |
10860 | rm -f conftest.err conftest.$ac_ext |
10861 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10862 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10863 | ||
10864 | # So? What about this header? | |
10865 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10866 | yes:no: ) | |
10867 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10868 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10869 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10870 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10871 | ac_header_preproc=yes | |
10872 | ;; | |
10873 | no:yes:* ) | |
10874 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10875 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10876 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10877 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10878 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10879 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10880 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10881 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10882 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10883 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10884 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10885 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10886 | ( | |
10887 | cat <<\_ASBOX | |
10888 | ## ------------------------------------------ ## | |
10889 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10890 | ## ------------------------------------------ ## | |
10891 | _ASBOX | |
10892 | ) | | |
10893 | sed "s/^/$as_me: WARNING: /" >&2 | |
10894 | ;; | |
10895 | esac | |
10896 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10897 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10900 | else |
bec39cab | 10901 | eval "$as_ac_Header=\$ac_header_preproc" |
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 | |
5ee754fc | 10905 | |
5ee754fc | 10906 | fi |
bec39cab AC |
10907 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10908 | cat >>confdefs.h <<_ACEOF | |
10909 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10910 | _ACEOF | |
10911 | ||
5ee754fc | 10912 | fi |
bec39cab | 10913 | |
5ee754fc MK |
10914 | done |
10915 | ||
bec39cab AC |
10916 | |
10917 | for ac_header in sys/proc.h | |
5ee754fc | 10918 | do |
bec39cab | 10919 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7cb9022a | 10920 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
bec39cab AC |
10921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10922 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 10924 | else |
7cb9022a | 10925 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
10926 | /* confdefs.h. */ |
10927 | _ACEOF | |
10928 | cat confdefs.h >>conftest.$ac_ext | |
10929 | cat >>conftest.$ac_ext <<_ACEOF | |
10930 | /* end confdefs.h. */ | |
7cb9022a MK |
10931 | #if HAVE_SYS_PARAM_H |
10932 | # include <sys/param.h> | |
10933 | #endif | |
10934 | ||
10935 | ||
bec39cab AC |
10936 | #include <$ac_header> |
10937 | _ACEOF | |
10938 | rm -f conftest.$ac_objext | |
10939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10940 | (eval $ac_compile) 2>conftest.er1 | |
10941 | ac_status=$? | |
10942 | grep -v '^ *+' conftest.er1 >conftest.err | |
10943 | rm -f conftest.er1 | |
10944 | cat conftest.err >&5 | |
10945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10946 | (exit $ac_status); } && | |
10947 | { ac_try='test -z "$ac_c_werror_flag" | |
10948 | || test ! -s conftest.err' | |
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 | |
7cb9022a | 10960 | eval "$as_ac_Header=yes" |
bec39cab AC |
10961 | else |
10962 | echo "$as_me: failed program was:" >&5 | |
10963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10964 | ||
7cb9022a | 10965 | eval "$as_ac_Header=no" |
bec39cab AC |
10966 | fi |
10967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 10968 | fi |
bec39cab AC |
10969 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10970 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10971 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10972 | cat >>confdefs.h <<_ACEOF | |
10973 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10974 | _ACEOF | |
10975 | ||
5ee754fc | 10976 | fi |
bec39cab | 10977 | |
5ee754fc MK |
10978 | done |
10979 | ||
bec39cab AC |
10980 | |
10981 | for ac_header in sys/procfs.h | |
5ee754fc | 10982 | do |
bec39cab AC |
10983 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10985 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10987 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10989 | fi | |
10990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10991 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10992 | else | |
10993 | # Is the header compilable? | |
10994 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10995 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10996 | cat >conftest.$ac_ext <<_ACEOF | |
10997 | /* confdefs.h. */ | |
10998 | _ACEOF | |
10999 | cat confdefs.h >>conftest.$ac_ext | |
11000 | cat >>conftest.$ac_ext <<_ACEOF | |
11001 | /* end confdefs.h. */ | |
11002 | $ac_includes_default | |
11003 | #include <$ac_header> | |
11004 | _ACEOF | |
11005 | rm -f conftest.$ac_objext | |
11006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11007 | (eval $ac_compile) 2>conftest.er1 | |
11008 | ac_status=$? | |
11009 | grep -v '^ *+' conftest.er1 >conftest.err | |
11010 | rm -f conftest.er1 | |
11011 | cat conftest.err >&5 | |
11012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11013 | (exit $ac_status); } && | |
11014 | { ac_try='test -z "$ac_c_werror_flag" | |
11015 | || test ! -s conftest.err' | |
11016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11017 | (eval $ac_try) 2>&5 | |
11018 | ac_status=$? | |
11019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11020 | (exit $ac_status); }; } && | |
11021 | { ac_try='test -s conftest.$ac_objext' | |
11022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11023 | (eval $ac_try) 2>&5 | |
11024 | ac_status=$? | |
11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11026 | (exit $ac_status); }; }; then | |
11027 | ac_header_compiler=yes | |
11028 | else | |
11029 | echo "$as_me: failed program was:" >&5 | |
11030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11031 | ||
11032 | ac_header_compiler=no | |
11033 | fi | |
11034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11035 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11036 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11037 | ||
11038 | # Is the header present? | |
11039 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11040 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11041 | cat >conftest.$ac_ext <<_ACEOF | |
11042 | /* confdefs.h. */ | |
11043 | _ACEOF | |
11044 | cat confdefs.h >>conftest.$ac_ext | |
11045 | cat >>conftest.$ac_ext <<_ACEOF | |
11046 | /* end confdefs.h. */ | |
11047 | #include <$ac_header> | |
11048 | _ACEOF | |
11049 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11050 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11051 | ac_status=$? | |
11052 | grep -v '^ *+' conftest.er1 >conftest.err | |
11053 | rm -f conftest.er1 | |
11054 | cat conftest.err >&5 | |
11055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11056 | (exit $ac_status); } >/dev/null; then | |
11057 | if test -s conftest.err; then | |
11058 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11059 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11060 | else | |
11061 | ac_cpp_err= | |
11062 | fi | |
11063 | else | |
11064 | ac_cpp_err=yes | |
5ee754fc | 11065 | fi |
bec39cab AC |
11066 | if test -z "$ac_cpp_err"; then |
11067 | ac_header_preproc=yes | |
5ee754fc | 11068 | else |
bec39cab AC |
11069 | echo "$as_me: failed program was:" >&5 |
11070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11071 | ||
11072 | ac_header_preproc=no | |
5ee754fc | 11073 | fi |
bec39cab AC |
11074 | rm -f conftest.err conftest.$ac_ext |
11075 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11076 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11077 | |
bec39cab AC |
11078 | # So? What about this header? |
11079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11080 | yes:no: ) | |
11081 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11082 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11084 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11085 | ac_header_preproc=yes | |
11086 | ;; | |
11087 | no:yes:* ) | |
11088 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11089 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11090 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11091 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11092 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11093 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11094 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11095 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11096 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11097 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11098 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11099 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11100 | ( | |
11101 | cat <<\_ASBOX | |
11102 | ## ------------------------------------------ ## | |
11103 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11104 | ## ------------------------------------------ ## | |
11105 | _ASBOX | |
11106 | ) | | |
11107 | sed "s/^/$as_me: WARNING: /" >&2 | |
11108 | ;; | |
11109 | esac | |
11110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11114 | else | |
11115 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11116 | fi |
bec39cab AC |
11117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11118 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11119 | ||
5ee754fc | 11120 | fi |
bec39cab AC |
11121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11122 | cat >>confdefs.h <<_ACEOF | |
11123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11124 | _ACEOF | |
11125 | ||
5ee754fc | 11126 | fi |
bec39cab | 11127 | |
5ee754fc MK |
11128 | done |
11129 | ||
bec39cab AC |
11130 | |
11131 | ||
11132 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 11133 | do |
bec39cab AC |
11134 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11136 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11140 | fi | |
11141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11142 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11143 | else | |
11144 | # Is the header compilable? | |
11145 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11146 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11147 | cat >conftest.$ac_ext <<_ACEOF | |
11148 | /* confdefs.h. */ | |
11149 | _ACEOF | |
11150 | cat confdefs.h >>conftest.$ac_ext | |
11151 | cat >>conftest.$ac_ext <<_ACEOF | |
11152 | /* end confdefs.h. */ | |
11153 | $ac_includes_default | |
11154 | #include <$ac_header> | |
11155 | _ACEOF | |
11156 | rm -f conftest.$ac_objext | |
11157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11158 | (eval $ac_compile) 2>conftest.er1 | |
11159 | ac_status=$? | |
11160 | grep -v '^ *+' conftest.er1 >conftest.err | |
11161 | rm -f conftest.er1 | |
11162 | cat conftest.err >&5 | |
11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11164 | (exit $ac_status); } && | |
11165 | { ac_try='test -z "$ac_c_werror_flag" | |
11166 | || test ! -s conftest.err' | |
11167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11168 | (eval $ac_try) 2>&5 | |
11169 | ac_status=$? | |
11170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11171 | (exit $ac_status); }; } && | |
11172 | { ac_try='test -s conftest.$ac_objext' | |
11173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11174 | (eval $ac_try) 2>&5 | |
11175 | ac_status=$? | |
11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11177 | (exit $ac_status); }; }; then | |
11178 | ac_header_compiler=yes | |
11179 | else | |
11180 | echo "$as_me: failed program was:" >&5 | |
11181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11182 | ||
11183 | ac_header_compiler=no | |
11184 | fi | |
11185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11186 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11187 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11188 | ||
11189 | # Is the header present? | |
11190 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11191 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11192 | cat >conftest.$ac_ext <<_ACEOF | |
11193 | /* confdefs.h. */ | |
11194 | _ACEOF | |
11195 | cat confdefs.h >>conftest.$ac_ext | |
11196 | cat >>conftest.$ac_ext <<_ACEOF | |
11197 | /* end confdefs.h. */ | |
11198 | #include <$ac_header> | |
11199 | _ACEOF | |
11200 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11201 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11202 | ac_status=$? | |
11203 | grep -v '^ *+' conftest.er1 >conftest.err | |
11204 | rm -f conftest.er1 | |
11205 | cat conftest.err >&5 | |
11206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11207 | (exit $ac_status); } >/dev/null; then | |
11208 | if test -s conftest.err; then | |
11209 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11210 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11211 | else | |
11212 | ac_cpp_err= | |
11213 | fi | |
11214 | else | |
11215 | ac_cpp_err=yes | |
5ee754fc | 11216 | fi |
bec39cab AC |
11217 | if test -z "$ac_cpp_err"; then |
11218 | ac_header_preproc=yes | |
5ee754fc | 11219 | else |
bec39cab AC |
11220 | echo "$as_me: failed program was:" >&5 |
11221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11222 | ||
11223 | ac_header_preproc=no | |
5ee754fc | 11224 | fi |
bec39cab AC |
11225 | rm -f conftest.err conftest.$ac_ext |
11226 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11227 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11228 | |
bec39cab AC |
11229 | # So? What about this header? |
11230 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11231 | yes:no: ) | |
11232 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11233 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11234 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11235 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11236 | ac_header_preproc=yes | |
11237 | ;; | |
11238 | no:yes:* ) | |
11239 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11240 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11241 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11242 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11243 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11244 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11245 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11246 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11247 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11248 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11249 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11250 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11251 | ( | |
11252 | cat <<\_ASBOX | |
11253 | ## ------------------------------------------ ## | |
11254 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11255 | ## ------------------------------------------ ## | |
11256 | _ASBOX | |
11257 | ) | | |
11258 | sed "s/^/$as_me: WARNING: /" >&2 | |
11259 | ;; | |
11260 | esac | |
11261 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11262 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11263 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11265 | else | |
11266 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11267 | fi |
bec39cab AC |
11268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11270 | ||
5ee754fc | 11271 | fi |
bec39cab AC |
11272 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11273 | cat >>confdefs.h <<_ACEOF | |
11274 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11275 | _ACEOF | |
11276 | ||
5ee754fc | 11277 | fi |
bec39cab | 11278 | |
5ee754fc MK |
11279 | done |
11280 | ||
bec39cab AC |
11281 | |
11282 | ||
11283 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 11284 | do |
bec39cab AC |
11285 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11287 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11291 | fi | |
11292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11293 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11294 | else | |
11295 | # Is the header compilable? | |
11296 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11297 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11298 | cat >conftest.$ac_ext <<_ACEOF | |
11299 | /* confdefs.h. */ | |
11300 | _ACEOF | |
11301 | cat confdefs.h >>conftest.$ac_ext | |
11302 | cat >>conftest.$ac_ext <<_ACEOF | |
11303 | /* end confdefs.h. */ | |
11304 | $ac_includes_default | |
11305 | #include <$ac_header> | |
11306 | _ACEOF | |
11307 | rm -f conftest.$ac_objext | |
11308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11309 | (eval $ac_compile) 2>conftest.er1 | |
11310 | ac_status=$? | |
11311 | grep -v '^ *+' conftest.er1 >conftest.err | |
11312 | rm -f conftest.er1 | |
11313 | cat conftest.err >&5 | |
11314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11315 | (exit $ac_status); } && | |
11316 | { ac_try='test -z "$ac_c_werror_flag" | |
11317 | || test ! -s conftest.err' | |
11318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11319 | (eval $ac_try) 2>&5 | |
11320 | ac_status=$? | |
11321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11322 | (exit $ac_status); }; } && | |
11323 | { ac_try='test -s conftest.$ac_objext' | |
11324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11325 | (eval $ac_try) 2>&5 | |
11326 | ac_status=$? | |
11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11328 | (exit $ac_status); }; }; then | |
11329 | ac_header_compiler=yes | |
11330 | else | |
11331 | echo "$as_me: failed program was:" >&5 | |
11332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11333 | ||
11334 | ac_header_compiler=no | |
11335 | fi | |
11336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11337 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11338 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11339 | ||
11340 | # Is the header present? | |
11341 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11342 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11343 | cat >conftest.$ac_ext <<_ACEOF | |
11344 | /* confdefs.h. */ | |
11345 | _ACEOF | |
11346 | cat confdefs.h >>conftest.$ac_ext | |
11347 | cat >>conftest.$ac_ext <<_ACEOF | |
11348 | /* end confdefs.h. */ | |
11349 | #include <$ac_header> | |
11350 | _ACEOF | |
11351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11353 | ac_status=$? | |
11354 | grep -v '^ *+' conftest.er1 >conftest.err | |
11355 | rm -f conftest.er1 | |
11356 | cat conftest.err >&5 | |
11357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11358 | (exit $ac_status); } >/dev/null; then | |
11359 | if test -s conftest.err; then | |
11360 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11362 | else | |
11363 | ac_cpp_err= | |
11364 | fi | |
11365 | else | |
11366 | ac_cpp_err=yes | |
5ee754fc | 11367 | fi |
bec39cab AC |
11368 | if test -z "$ac_cpp_err"; then |
11369 | ac_header_preproc=yes | |
5ee754fc | 11370 | else |
bec39cab AC |
11371 | echo "$as_me: failed program was:" >&5 |
11372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11373 | ||
11374 | ac_header_preproc=no | |
5ee754fc | 11375 | fi |
bec39cab AC |
11376 | rm -f conftest.err conftest.$ac_ext |
11377 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11378 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11379 | |
bec39cab AC |
11380 | # So? What about this header? |
11381 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11382 | yes:no: ) | |
11383 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11384 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11385 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11386 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11387 | ac_header_preproc=yes | |
11388 | ;; | |
11389 | no:yes:* ) | |
11390 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11391 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11392 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11393 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11394 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11395 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11396 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11397 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11398 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11399 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11400 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11401 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11402 | ( | |
11403 | cat <<\_ASBOX | |
11404 | ## ------------------------------------------ ## | |
11405 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11406 | ## ------------------------------------------ ## | |
11407 | _ASBOX | |
11408 | ) | | |
11409 | sed "s/^/$as_me: WARNING: /" >&2 | |
11410 | ;; | |
11411 | esac | |
11412 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11416 | else | |
11417 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11418 | fi |
bec39cab AC |
11419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11421 | ||
5ee754fc | 11422 | fi |
bec39cab AC |
11423 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11424 | cat >>confdefs.h <<_ACEOF | |
11425 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11426 | _ACEOF | |
11427 | ||
5ee754fc | 11428 | fi |
bec39cab | 11429 | |
5ee754fc MK |
11430 | done |
11431 | ||
bec39cab AC |
11432 | |
11433 | for ac_header in sys/select.h | |
5ee754fc | 11434 | do |
bec39cab AC |
11435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11437 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11438 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11439 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11441 | fi | |
11442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11443 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11444 | else | |
11445 | # Is the header compilable? | |
11446 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11447 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11448 | cat >conftest.$ac_ext <<_ACEOF | |
11449 | /* confdefs.h. */ | |
11450 | _ACEOF | |
11451 | cat confdefs.h >>conftest.$ac_ext | |
11452 | cat >>conftest.$ac_ext <<_ACEOF | |
11453 | /* end confdefs.h. */ | |
11454 | $ac_includes_default | |
11455 | #include <$ac_header> | |
11456 | _ACEOF | |
11457 | rm -f conftest.$ac_objext | |
11458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11459 | (eval $ac_compile) 2>conftest.er1 | |
11460 | ac_status=$? | |
11461 | grep -v '^ *+' conftest.er1 >conftest.err | |
11462 | rm -f conftest.er1 | |
11463 | cat conftest.err >&5 | |
11464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11465 | (exit $ac_status); } && | |
11466 | { ac_try='test -z "$ac_c_werror_flag" | |
11467 | || test ! -s conftest.err' | |
11468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11469 | (eval $ac_try) 2>&5 | |
11470 | ac_status=$? | |
11471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11472 | (exit $ac_status); }; } && | |
11473 | { ac_try='test -s conftest.$ac_objext' | |
11474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11475 | (eval $ac_try) 2>&5 | |
11476 | ac_status=$? | |
11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11478 | (exit $ac_status); }; }; then | |
11479 | ac_header_compiler=yes | |
11480 | else | |
11481 | echo "$as_me: failed program was:" >&5 | |
11482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11483 | ||
11484 | ac_header_compiler=no | |
11485 | fi | |
11486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11487 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11488 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11489 | ||
11490 | # Is the header present? | |
11491 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11492 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11493 | cat >conftest.$ac_ext <<_ACEOF | |
11494 | /* confdefs.h. */ | |
11495 | _ACEOF | |
11496 | cat confdefs.h >>conftest.$ac_ext | |
11497 | cat >>conftest.$ac_ext <<_ACEOF | |
11498 | /* end confdefs.h. */ | |
11499 | #include <$ac_header> | |
11500 | _ACEOF | |
11501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11503 | ac_status=$? | |
11504 | grep -v '^ *+' conftest.er1 >conftest.err | |
11505 | rm -f conftest.er1 | |
11506 | cat conftest.err >&5 | |
11507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11508 | (exit $ac_status); } >/dev/null; then | |
11509 | if test -s conftest.err; then | |
11510 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11511 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11512 | else | |
11513 | ac_cpp_err= | |
11514 | fi | |
11515 | else | |
11516 | ac_cpp_err=yes | |
5ee754fc | 11517 | fi |
bec39cab AC |
11518 | if test -z "$ac_cpp_err"; then |
11519 | ac_header_preproc=yes | |
5ee754fc | 11520 | else |
bec39cab AC |
11521 | echo "$as_me: failed program was:" >&5 |
11522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11523 | ||
11524 | ac_header_preproc=no | |
5ee754fc | 11525 | fi |
bec39cab AC |
11526 | rm -f conftest.err conftest.$ac_ext |
11527 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11528 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11529 | |
bec39cab AC |
11530 | # So? What about this header? |
11531 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11532 | yes:no: ) | |
11533 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11534 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11535 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11536 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11537 | ac_header_preproc=yes | |
11538 | ;; | |
11539 | no:yes:* ) | |
11540 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11541 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11542 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11543 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11544 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11545 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11546 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11547 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11548 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11549 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11550 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11551 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11552 | ( | |
11553 | cat <<\_ASBOX | |
11554 | ## ------------------------------------------ ## | |
11555 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11556 | ## ------------------------------------------ ## | |
11557 | _ASBOX | |
11558 | ) | | |
11559 | sed "s/^/$as_me: WARNING: /" >&2 | |
11560 | ;; | |
11561 | esac | |
11562 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11566 | else | |
11567 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11568 | fi |
bec39cab AC |
11569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11570 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11571 | ||
5ee754fc | 11572 | fi |
bec39cab AC |
11573 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11574 | cat >>confdefs.h <<_ACEOF | |
11575 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11576 | _ACEOF | |
11577 | ||
5ee754fc | 11578 | fi |
bec39cab | 11579 | |
5ee754fc MK |
11580 | done |
11581 | ||
bec39cab AC |
11582 | |
11583 | for ac_header in sys/syscall.h | |
5ee754fc | 11584 | do |
bec39cab AC |
11585 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11587 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11588 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11589 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11591 | fi | |
11592 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11593 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11594 | else | |
11595 | # Is the header compilable? | |
11596 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11597 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11598 | cat >conftest.$ac_ext <<_ACEOF | |
11599 | /* confdefs.h. */ | |
11600 | _ACEOF | |
11601 | cat confdefs.h >>conftest.$ac_ext | |
11602 | cat >>conftest.$ac_ext <<_ACEOF | |
11603 | /* end confdefs.h. */ | |
11604 | $ac_includes_default | |
11605 | #include <$ac_header> | |
11606 | _ACEOF | |
11607 | rm -f conftest.$ac_objext | |
11608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11609 | (eval $ac_compile) 2>conftest.er1 | |
11610 | ac_status=$? | |
11611 | grep -v '^ *+' conftest.er1 >conftest.err | |
11612 | rm -f conftest.er1 | |
11613 | cat conftest.err >&5 | |
11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11615 | (exit $ac_status); } && | |
11616 | { ac_try='test -z "$ac_c_werror_flag" | |
11617 | || test ! -s conftest.err' | |
11618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11619 | (eval $ac_try) 2>&5 | |
11620 | ac_status=$? | |
11621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11622 | (exit $ac_status); }; } && | |
11623 | { ac_try='test -s conftest.$ac_objext' | |
11624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11625 | (eval $ac_try) 2>&5 | |
11626 | ac_status=$? | |
11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11628 | (exit $ac_status); }; }; then | |
11629 | ac_header_compiler=yes | |
11630 | else | |
11631 | echo "$as_me: failed program was:" >&5 | |
11632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11633 | ||
11634 | ac_header_compiler=no | |
11635 | fi | |
11636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11637 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11638 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11639 | ||
11640 | # Is the header present? | |
11641 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11642 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11643 | cat >conftest.$ac_ext <<_ACEOF | |
11644 | /* confdefs.h. */ | |
11645 | _ACEOF | |
11646 | cat confdefs.h >>conftest.$ac_ext | |
11647 | cat >>conftest.$ac_ext <<_ACEOF | |
11648 | /* end confdefs.h. */ | |
11649 | #include <$ac_header> | |
11650 | _ACEOF | |
11651 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11652 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11653 | ac_status=$? | |
11654 | grep -v '^ *+' conftest.er1 >conftest.err | |
11655 | rm -f conftest.er1 | |
11656 | cat conftest.err >&5 | |
11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11658 | (exit $ac_status); } >/dev/null; then | |
11659 | if test -s conftest.err; then | |
11660 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11661 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11662 | else | |
11663 | ac_cpp_err= | |
11664 | fi | |
11665 | else | |
11666 | ac_cpp_err=yes | |
5ee754fc | 11667 | fi |
bec39cab AC |
11668 | if test -z "$ac_cpp_err"; then |
11669 | ac_header_preproc=yes | |
5ee754fc | 11670 | else |
bec39cab AC |
11671 | echo "$as_me: failed program was:" >&5 |
11672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11673 | ||
11674 | ac_header_preproc=no | |
5ee754fc | 11675 | fi |
bec39cab AC |
11676 | rm -f conftest.err conftest.$ac_ext |
11677 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11678 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11679 | |
bec39cab AC |
11680 | # So? What about this header? |
11681 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11682 | yes:no: ) | |
11683 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11684 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11686 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11687 | ac_header_preproc=yes | |
11688 | ;; | |
11689 | no:yes:* ) | |
11690 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11691 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11692 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11693 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11694 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11695 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11696 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11697 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11699 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11700 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11701 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11702 | ( | |
11703 | cat <<\_ASBOX | |
11704 | ## ------------------------------------------ ## | |
11705 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11706 | ## ------------------------------------------ ## | |
11707 | _ASBOX | |
11708 | ) | | |
11709 | sed "s/^/$as_me: WARNING: /" >&2 | |
11710 | ;; | |
11711 | esac | |
11712 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11716 | else | |
11717 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11718 | fi |
bec39cab AC |
11719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11720 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11721 | ||
5ee754fc | 11722 | fi |
bec39cab AC |
11723 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11724 | cat >>confdefs.h <<_ACEOF | |
11725 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11726 | _ACEOF | |
11727 | ||
5ee754fc | 11728 | fi |
bec39cab | 11729 | |
5ee754fc MK |
11730 | done |
11731 | ||
bec39cab AC |
11732 | |
11733 | for ac_header in sys/types.h | |
5ee754fc | 11734 | do |
bec39cab AC |
11735 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11737 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11738 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11741 | fi | |
11742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11744 | else | |
11745 | # Is the header compilable? | |
11746 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11747 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11748 | cat >conftest.$ac_ext <<_ACEOF | |
11749 | /* confdefs.h. */ | |
11750 | _ACEOF | |
11751 | cat confdefs.h >>conftest.$ac_ext | |
11752 | cat >>conftest.$ac_ext <<_ACEOF | |
11753 | /* end confdefs.h. */ | |
11754 | $ac_includes_default | |
11755 | #include <$ac_header> | |
11756 | _ACEOF | |
11757 | rm -f conftest.$ac_objext | |
11758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11759 | (eval $ac_compile) 2>conftest.er1 | |
11760 | ac_status=$? | |
11761 | grep -v '^ *+' conftest.er1 >conftest.err | |
11762 | rm -f conftest.er1 | |
11763 | cat conftest.err >&5 | |
11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11765 | (exit $ac_status); } && | |
11766 | { ac_try='test -z "$ac_c_werror_flag" | |
11767 | || test ! -s conftest.err' | |
11768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11769 | (eval $ac_try) 2>&5 | |
11770 | ac_status=$? | |
11771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11772 | (exit $ac_status); }; } && | |
11773 | { ac_try='test -s conftest.$ac_objext' | |
11774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11775 | (eval $ac_try) 2>&5 | |
11776 | ac_status=$? | |
11777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11778 | (exit $ac_status); }; }; then | |
11779 | ac_header_compiler=yes | |
11780 | else | |
11781 | echo "$as_me: failed program was:" >&5 | |
11782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11783 | ||
11784 | ac_header_compiler=no | |
11785 | fi | |
11786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11787 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11788 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11789 | ||
11790 | # Is the header present? | |
11791 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11792 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11793 | cat >conftest.$ac_ext <<_ACEOF | |
11794 | /* confdefs.h. */ | |
11795 | _ACEOF | |
11796 | cat confdefs.h >>conftest.$ac_ext | |
11797 | cat >>conftest.$ac_ext <<_ACEOF | |
11798 | /* end confdefs.h. */ | |
11799 | #include <$ac_header> | |
11800 | _ACEOF | |
11801 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11802 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11803 | ac_status=$? | |
11804 | grep -v '^ *+' conftest.er1 >conftest.err | |
11805 | rm -f conftest.er1 | |
11806 | cat conftest.err >&5 | |
11807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11808 | (exit $ac_status); } >/dev/null; then | |
11809 | if test -s conftest.err; then | |
11810 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11811 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11812 | else | |
11813 | ac_cpp_err= | |
11814 | fi | |
11815 | else | |
11816 | ac_cpp_err=yes | |
5ee754fc | 11817 | fi |
bec39cab AC |
11818 | if test -z "$ac_cpp_err"; then |
11819 | ac_header_preproc=yes | |
5ee754fc | 11820 | else |
bec39cab AC |
11821 | echo "$as_me: failed program was:" >&5 |
11822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11823 | ||
11824 | ac_header_preproc=no | |
5ee754fc | 11825 | fi |
bec39cab AC |
11826 | rm -f conftest.err conftest.$ac_ext |
11827 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11828 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11829 | |
bec39cab AC |
11830 | # So? What about this header? |
11831 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11832 | yes:no: ) | |
11833 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11834 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11835 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11836 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11837 | ac_header_preproc=yes | |
11838 | ;; | |
11839 | no:yes:* ) | |
11840 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11841 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11842 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11843 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11844 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11845 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11846 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11847 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11848 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11849 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11850 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11851 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11852 | ( | |
11853 | cat <<\_ASBOX | |
11854 | ## ------------------------------------------ ## | |
11855 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11856 | ## ------------------------------------------ ## | |
11857 | _ASBOX | |
11858 | ) | | |
11859 | sed "s/^/$as_me: WARNING: /" >&2 | |
11860 | ;; | |
11861 | esac | |
11862 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11863 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11864 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11866 | else | |
11867 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11868 | fi |
bec39cab AC |
11869 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11870 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11871 | ||
5ee754fc | 11872 | fi |
bec39cab AC |
11873 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11874 | cat >>confdefs.h <<_ACEOF | |
11875 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11876 | _ACEOF | |
11877 | ||
5ee754fc | 11878 | fi |
bec39cab | 11879 | |
5ee754fc MK |
11880 | done |
11881 | ||
bec39cab AC |
11882 | |
11883 | for ac_header in sys/user.h | |
5ee754fc | 11884 | do |
bec39cab | 11885 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7cb9022a | 11886 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
bec39cab AC |
11887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 11890 | else |
7cb9022a | 11891 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
11892 | /* confdefs.h. */ |
11893 | _ACEOF | |
11894 | cat confdefs.h >>conftest.$ac_ext | |
11895 | cat >>conftest.$ac_ext <<_ACEOF | |
11896 | /* end confdefs.h. */ | |
7cb9022a MK |
11897 | #if HAVE_SYS_PARAM_H |
11898 | # include <sys/param.h> | |
11899 | #endif | |
11900 | ||
11901 | ||
bec39cab AC |
11902 | #include <$ac_header> |
11903 | _ACEOF | |
11904 | rm -f conftest.$ac_objext | |
11905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11906 | (eval $ac_compile) 2>conftest.er1 | |
11907 | ac_status=$? | |
11908 | grep -v '^ *+' conftest.er1 >conftest.err | |
11909 | rm -f conftest.er1 | |
11910 | cat conftest.err >&5 | |
11911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11912 | (exit $ac_status); } && | |
11913 | { ac_try='test -z "$ac_c_werror_flag" | |
11914 | || test ! -s conftest.err' | |
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); }; } && | |
11920 | { ac_try='test -s conftest.$ac_objext' | |
11921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11922 | (eval $ac_try) 2>&5 | |
11923 | ac_status=$? | |
11924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11925 | (exit $ac_status); }; }; then | |
7cb9022a | 11926 | eval "$as_ac_Header=yes" |
bec39cab AC |
11927 | else |
11928 | echo "$as_me: failed program was:" >&5 | |
11929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11930 | ||
7cb9022a | 11931 | eval "$as_ac_Header=no" |
bec39cab AC |
11932 | fi |
11933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 11934 | fi |
bec39cab AC |
11935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11937 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11938 | cat >>confdefs.h <<_ACEOF | |
11939 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11940 | _ACEOF | |
11941 | ||
5ee754fc | 11942 | fi |
bec39cab | 11943 | |
5ee754fc MK |
11944 | done |
11945 | ||
bec39cab AC |
11946 | |
11947 | ||
11948 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 11949 | do |
bec39cab AC |
11950 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11952 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11956 | fi | |
11957 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11958 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11959 | else | |
11960 | # Is the header compilable? | |
11961 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11962 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11963 | cat >conftest.$ac_ext <<_ACEOF | |
11964 | /* confdefs.h. */ | |
11965 | _ACEOF | |
11966 | cat confdefs.h >>conftest.$ac_ext | |
11967 | cat >>conftest.$ac_ext <<_ACEOF | |
11968 | /* end confdefs.h. */ | |
11969 | $ac_includes_default | |
11970 | #include <$ac_header> | |
11971 | _ACEOF | |
11972 | rm -f conftest.$ac_objext | |
11973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11974 | (eval $ac_compile) 2>conftest.er1 | |
11975 | ac_status=$? | |
11976 | grep -v '^ *+' conftest.er1 >conftest.err | |
11977 | rm -f conftest.er1 | |
11978 | cat conftest.err >&5 | |
11979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11980 | (exit $ac_status); } && | |
11981 | { ac_try='test -z "$ac_c_werror_flag" | |
11982 | || test ! -s conftest.err' | |
11983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11984 | (eval $ac_try) 2>&5 | |
11985 | ac_status=$? | |
11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11987 | (exit $ac_status); }; } && | |
11988 | { ac_try='test -s conftest.$ac_objext' | |
11989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11990 | (eval $ac_try) 2>&5 | |
11991 | ac_status=$? | |
11992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11993 | (exit $ac_status); }; }; then | |
11994 | ac_header_compiler=yes | |
11995 | else | |
11996 | echo "$as_me: failed program was:" >&5 | |
11997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11998 | ||
11999 | ac_header_compiler=no | |
12000 | fi | |
12001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12002 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12003 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12004 | ||
12005 | # Is the header present? | |
12006 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12007 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12008 | cat >conftest.$ac_ext <<_ACEOF | |
12009 | /* confdefs.h. */ | |
12010 | _ACEOF | |
12011 | cat confdefs.h >>conftest.$ac_ext | |
12012 | cat >>conftest.$ac_ext <<_ACEOF | |
12013 | /* end confdefs.h. */ | |
12014 | #include <$ac_header> | |
12015 | _ACEOF | |
12016 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12017 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12018 | ac_status=$? | |
12019 | grep -v '^ *+' conftest.er1 >conftest.err | |
12020 | rm -f conftest.er1 | |
12021 | cat conftest.err >&5 | |
12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12023 | (exit $ac_status); } >/dev/null; then | |
12024 | if test -s conftest.err; then | |
12025 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12026 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12027 | else | |
12028 | ac_cpp_err= | |
12029 | fi | |
12030 | else | |
12031 | ac_cpp_err=yes | |
5ee754fc | 12032 | fi |
bec39cab AC |
12033 | if test -z "$ac_cpp_err"; then |
12034 | ac_header_preproc=yes | |
5ee754fc | 12035 | else |
bec39cab AC |
12036 | echo "$as_me: failed program was:" >&5 |
12037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12038 | ||
12039 | ac_header_preproc=no | |
5ee754fc | 12040 | fi |
bec39cab AC |
12041 | rm -f conftest.err conftest.$ac_ext |
12042 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12043 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 12044 | |
bec39cab AC |
12045 | # So? What about this header? |
12046 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12047 | yes:no: ) | |
12048 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12049 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12051 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12052 | ac_header_preproc=yes | |
12053 | ;; | |
12054 | no:yes:* ) | |
12055 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12056 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12057 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12058 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12059 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12060 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12061 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12062 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12063 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12064 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12065 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12066 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12067 | ( | |
12068 | cat <<\_ASBOX | |
12069 | ## ------------------------------------------ ## | |
12070 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12071 | ## ------------------------------------------ ## | |
12072 | _ASBOX | |
12073 | ) | | |
12074 | sed "s/^/$as_me: WARNING: /" >&2 | |
12075 | ;; | |
12076 | esac | |
12077 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12078 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12079 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12081 | else | |
12082 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12083 | fi |
bec39cab AC |
12084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12085 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12086 | ||
9608ab8b | 12087 | fi |
bec39cab AC |
12088 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12089 | cat >>confdefs.h <<_ACEOF | |
12090 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12091 | _ACEOF | |
12092 | ||
9608ab8b | 12093 | fi |
bec39cab | 12094 | |
9608ab8b | 12095 | done |
5ee754fc | 12096 | |
bec39cab AC |
12097 | |
12098 | ||
12099 | ||
12100 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 12101 | do |
bec39cab AC |
12102 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12104 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12105 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12106 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12108 | fi | |
12109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12110 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12111 | else | |
12112 | # Is the header compilable? | |
12113 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12114 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12115 | cat >conftest.$ac_ext <<_ACEOF | |
12116 | /* confdefs.h. */ | |
12117 | _ACEOF | |
12118 | cat confdefs.h >>conftest.$ac_ext | |
12119 | cat >>conftest.$ac_ext <<_ACEOF | |
12120 | /* end confdefs.h. */ | |
12121 | $ac_includes_default | |
12122 | #include <$ac_header> | |
12123 | _ACEOF | |
12124 | rm -f conftest.$ac_objext | |
12125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12126 | (eval $ac_compile) 2>conftest.er1 | |
12127 | ac_status=$? | |
12128 | grep -v '^ *+' conftest.er1 >conftest.err | |
12129 | rm -f conftest.er1 | |
12130 | cat conftest.err >&5 | |
12131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12132 | (exit $ac_status); } && | |
12133 | { ac_try='test -z "$ac_c_werror_flag" | |
12134 | || test ! -s conftest.err' | |
12135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12136 | (eval $ac_try) 2>&5 | |
12137 | ac_status=$? | |
12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12139 | (exit $ac_status); }; } && | |
12140 | { ac_try='test -s conftest.$ac_objext' | |
12141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12142 | (eval $ac_try) 2>&5 | |
12143 | ac_status=$? | |
12144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12145 | (exit $ac_status); }; }; then | |
12146 | ac_header_compiler=yes | |
12147 | else | |
12148 | echo "$as_me: failed program was:" >&5 | |
12149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12150 | ||
12151 | ac_header_compiler=no | |
12152 | fi | |
12153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12154 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12155 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12156 | ||
12157 | # Is the header present? | |
12158 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12159 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12160 | cat >conftest.$ac_ext <<_ACEOF | |
12161 | /* confdefs.h. */ | |
12162 | _ACEOF | |
12163 | cat confdefs.h >>conftest.$ac_ext | |
12164 | cat >>conftest.$ac_ext <<_ACEOF | |
12165 | /* end confdefs.h. */ | |
12166 | #include <$ac_header> | |
12167 | _ACEOF | |
12168 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12169 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12170 | ac_status=$? | |
12171 | grep -v '^ *+' conftest.er1 >conftest.err | |
12172 | rm -f conftest.er1 | |
12173 | cat conftest.err >&5 | |
12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12175 | (exit $ac_status); } >/dev/null; then | |
12176 | if test -s conftest.err; then | |
12177 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12178 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12179 | else | |
12180 | ac_cpp_err= | |
12181 | fi | |
12182 | else | |
12183 | ac_cpp_err=yes | |
9608ab8b | 12184 | fi |
bec39cab AC |
12185 | if test -z "$ac_cpp_err"; then |
12186 | ac_header_preproc=yes | |
9608ab8b | 12187 | else |
bec39cab AC |
12188 | echo "$as_me: failed program was:" >&5 |
12189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12190 | ||
12191 | ac_header_preproc=no | |
9608ab8b | 12192 | fi |
bec39cab AC |
12193 | rm -f conftest.err conftest.$ac_ext |
12194 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12195 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 12196 | |
bec39cab AC |
12197 | # So? What about this header? |
12198 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12199 | yes:no: ) | |
12200 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12201 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12202 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12203 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12204 | ac_header_preproc=yes | |
12205 | ;; | |
12206 | no:yes:* ) | |
12207 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12208 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12209 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12210 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12211 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12212 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12213 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12214 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12215 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12216 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12217 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12218 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12219 | ( | |
12220 | cat <<\_ASBOX | |
12221 | ## ------------------------------------------ ## | |
12222 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12223 | ## ------------------------------------------ ## | |
12224 | _ASBOX | |
12225 | ) | | |
12226 | sed "s/^/$as_me: WARNING: /" >&2 | |
12227 | ;; | |
12228 | esac | |
12229 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12230 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12231 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12233 | else | |
12234 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12235 | fi |
bec39cab AC |
12236 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12237 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12238 | ||
9608ab8b | 12239 | fi |
bec39cab AC |
12240 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12241 | cat >>confdefs.h <<_ACEOF | |
12242 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12243 | _ACEOF | |
12244 | ||
9608ab8b | 12245 | fi |
bec39cab | 12246 | |
5ee754fc | 12247 | done |
9608ab8b | 12248 | |
bec39cab AC |
12249 | |
12250 | for ac_header in unistd.h | |
78434e59 | 12251 | do |
bec39cab AC |
12252 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12254 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12255 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12256 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12258 | fi | |
12259 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12260 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12261 | else | |
12262 | # Is the header compilable? | |
12263 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12264 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12265 | cat >conftest.$ac_ext <<_ACEOF | |
12266 | /* confdefs.h. */ | |
12267 | _ACEOF | |
12268 | cat confdefs.h >>conftest.$ac_ext | |
12269 | cat >>conftest.$ac_ext <<_ACEOF | |
12270 | /* end confdefs.h. */ | |
12271 | $ac_includes_default | |
12272 | #include <$ac_header> | |
12273 | _ACEOF | |
12274 | rm -f conftest.$ac_objext | |
12275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12276 | (eval $ac_compile) 2>conftest.er1 | |
12277 | ac_status=$? | |
12278 | grep -v '^ *+' conftest.er1 >conftest.err | |
12279 | rm -f conftest.er1 | |
12280 | cat conftest.err >&5 | |
12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12282 | (exit $ac_status); } && | |
12283 | { ac_try='test -z "$ac_c_werror_flag" | |
12284 | || test ! -s conftest.err' | |
12285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12286 | (eval $ac_try) 2>&5 | |
12287 | ac_status=$? | |
12288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12289 | (exit $ac_status); }; } && | |
12290 | { ac_try='test -s conftest.$ac_objext' | |
12291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12292 | (eval $ac_try) 2>&5 | |
12293 | ac_status=$? | |
12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12295 | (exit $ac_status); }; }; then | |
12296 | ac_header_compiler=yes | |
12297 | else | |
12298 | echo "$as_me: failed program was:" >&5 | |
12299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12300 | ||
12301 | ac_header_compiler=no | |
12302 | fi | |
12303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12304 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12305 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12306 | ||
12307 | # Is the header present? | |
12308 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12309 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12310 | cat >conftest.$ac_ext <<_ACEOF | |
12311 | /* confdefs.h. */ | |
12312 | _ACEOF | |
12313 | cat confdefs.h >>conftest.$ac_ext | |
12314 | cat >>conftest.$ac_ext <<_ACEOF | |
12315 | /* end confdefs.h. */ | |
12316 | #include <$ac_header> | |
12317 | _ACEOF | |
12318 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12319 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12320 | ac_status=$? | |
12321 | grep -v '^ *+' conftest.er1 >conftest.err | |
12322 | rm -f conftest.er1 | |
12323 | cat conftest.err >&5 | |
12324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12325 | (exit $ac_status); } >/dev/null; then | |
12326 | if test -s conftest.err; then | |
12327 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12328 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12329 | else | |
12330 | ac_cpp_err= | |
12331 | fi | |
12332 | else | |
12333 | ac_cpp_err=yes | |
78434e59 | 12334 | fi |
bec39cab AC |
12335 | if test -z "$ac_cpp_err"; then |
12336 | ac_header_preproc=yes | |
78434e59 | 12337 | else |
bec39cab AC |
12338 | echo "$as_me: failed program was:" >&5 |
12339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12340 | ||
12341 | ac_header_preproc=no | |
78434e59 | 12342 | fi |
bec39cab AC |
12343 | rm -f conftest.err conftest.$ac_ext |
12344 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12345 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 12346 | |
bec39cab AC |
12347 | # So? What about this header? |
12348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12349 | yes:no: ) | |
12350 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12351 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12353 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12354 | ac_header_preproc=yes | |
12355 | ;; | |
12356 | no:yes:* ) | |
12357 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12358 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12359 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12360 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12361 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12362 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12363 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12364 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12365 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12366 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12367 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12368 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12369 | ( | |
12370 | cat <<\_ASBOX | |
12371 | ## ------------------------------------------ ## | |
12372 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12373 | ## ------------------------------------------ ## | |
12374 | _ASBOX | |
12375 | ) | | |
12376 | sed "s/^/$as_me: WARNING: /" >&2 | |
12377 | ;; | |
12378 | esac | |
12379 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12381 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12383 | else | |
12384 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 12385 | fi |
bec39cab AC |
12386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12388 | ||
086ec9eb | 12389 | fi |
bec39cab AC |
12390 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12391 | cat >>confdefs.h <<_ACEOF | |
12392 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12393 | _ACEOF | |
12394 | ||
086ec9eb | 12395 | fi |
bec39cab | 12396 | |
086ec9eb MK |
12397 | done |
12398 | ||
9608ab8b | 12399 | |
b1d19a62 | 12400 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
12401 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
12402 | # think that we don't have <curses.h> if we're using GCC. | |
12403 | case $host_os in | |
b1d19a62 | 12404 | solaris2.[789]) |
5ee754fc | 12405 | if test "$GCC" = yes; then |
bec39cab AC |
12406 | |
12407 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 12408 | #define _MSE_INT_H 1 |
bec39cab | 12409 | _ACEOF |
5ee754fc MK |
12410 | |
12411 | fi ;; | |
12412 | esac | |
bec39cab AC |
12413 | |
12414 | ||
12415 | ||
12416 | ||
12417 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 12418 | do |
bec39cab AC |
12419 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12421 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12422 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12423 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12425 | fi | |
12426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12427 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12428 | else | |
12429 | # Is the header compilable? | |
12430 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12431 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12432 | cat >conftest.$ac_ext <<_ACEOF | |
12433 | /* confdefs.h. */ | |
12434 | _ACEOF | |
12435 | cat confdefs.h >>conftest.$ac_ext | |
12436 | cat >>conftest.$ac_ext <<_ACEOF | |
12437 | /* end confdefs.h. */ | |
12438 | $ac_includes_default | |
12439 | #include <$ac_header> | |
12440 | _ACEOF | |
12441 | rm -f conftest.$ac_objext | |
12442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12443 | (eval $ac_compile) 2>conftest.er1 | |
12444 | ac_status=$? | |
12445 | grep -v '^ *+' conftest.er1 >conftest.err | |
12446 | rm -f conftest.er1 | |
12447 | cat conftest.err >&5 | |
12448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12449 | (exit $ac_status); } && | |
12450 | { ac_try='test -z "$ac_c_werror_flag" | |
12451 | || test ! -s conftest.err' | |
12452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12453 | (eval $ac_try) 2>&5 | |
12454 | ac_status=$? | |
12455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12456 | (exit $ac_status); }; } && | |
12457 | { ac_try='test -s conftest.$ac_objext' | |
12458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12459 | (eval $ac_try) 2>&5 | |
12460 | ac_status=$? | |
12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12462 | (exit $ac_status); }; }; then | |
12463 | ac_header_compiler=yes | |
12464 | else | |
12465 | echo "$as_me: failed program was:" >&5 | |
12466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12467 | ||
12468 | ac_header_compiler=no | |
12469 | fi | |
12470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12471 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12472 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12473 | ||
12474 | # Is the header present? | |
12475 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12476 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12477 | cat >conftest.$ac_ext <<_ACEOF | |
12478 | /* confdefs.h. */ | |
12479 | _ACEOF | |
12480 | cat confdefs.h >>conftest.$ac_ext | |
12481 | cat >>conftest.$ac_ext <<_ACEOF | |
12482 | /* end confdefs.h. */ | |
12483 | #include <$ac_header> | |
12484 | _ACEOF | |
12485 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12486 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12487 | ac_status=$? | |
12488 | grep -v '^ *+' conftest.er1 >conftest.err | |
12489 | rm -f conftest.er1 | |
12490 | cat conftest.err >&5 | |
12491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12492 | (exit $ac_status); } >/dev/null; then | |
12493 | if test -s conftest.err; then | |
12494 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12495 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12496 | else | |
12497 | ac_cpp_err= | |
12498 | fi | |
12499 | else | |
12500 | ac_cpp_err=yes | |
c906108c | 12501 | fi |
bec39cab AC |
12502 | if test -z "$ac_cpp_err"; then |
12503 | ac_header_preproc=yes | |
12504 | else | |
12505 | echo "$as_me: failed program was:" >&5 | |
12506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12507 | ||
12508 | ac_header_preproc=no | |
c906108c | 12509 | fi |
bec39cab AC |
12510 | rm -f conftest.err conftest.$ac_ext |
12511 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12512 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12513 | ||
12514 | # So? What about this header? | |
12515 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12516 | yes:no: ) | |
12517 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12518 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12519 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12520 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12521 | ac_header_preproc=yes | |
12522 | ;; | |
12523 | no:yes:* ) | |
12524 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12525 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12526 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12527 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12528 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12529 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12530 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12531 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12532 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12533 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12534 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12535 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12536 | ( | |
12537 | cat <<\_ASBOX | |
12538 | ## ------------------------------------------ ## | |
12539 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12540 | ## ------------------------------------------ ## | |
12541 | _ASBOX | |
12542 | ) | | |
12543 | sed "s/^/$as_me: WARNING: /" >&2 | |
12544 | ;; | |
12545 | esac | |
12546 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12547 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12548 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 12550 | else |
bec39cab | 12551 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 12552 | fi |
bec39cab AC |
12553 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12554 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12555 | ||
12556 | fi | |
12557 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12558 | cat >>confdefs.h <<_ACEOF | |
12559 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12560 | _ACEOF | |
12561 | ||
12562 | fi | |
12563 | ||
5ee754fc | 12564 | done |
c906108c | 12565 | |
bec39cab | 12566 | |
065a1afc | 12567 | for ac_header in ncurses/term.h |
3b78cdbb | 12568 | do |
bec39cab AC |
12569 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12570 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12571 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12572 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12575 | fi | |
12576 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12577 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12578 | else | |
12579 | # Is the header compilable? | |
12580 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12581 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12582 | cat >conftest.$ac_ext <<_ACEOF | |
12583 | /* confdefs.h. */ | |
12584 | _ACEOF | |
12585 | cat confdefs.h >>conftest.$ac_ext | |
12586 | cat >>conftest.$ac_ext <<_ACEOF | |
12587 | /* end confdefs.h. */ | |
12588 | $ac_includes_default | |
12589 | #include <$ac_header> | |
12590 | _ACEOF | |
12591 | rm -f conftest.$ac_objext | |
12592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12593 | (eval $ac_compile) 2>conftest.er1 | |
12594 | ac_status=$? | |
12595 | grep -v '^ *+' conftest.er1 >conftest.err | |
12596 | rm -f conftest.er1 | |
12597 | cat conftest.err >&5 | |
12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12599 | (exit $ac_status); } && | |
12600 | { ac_try='test -z "$ac_c_werror_flag" | |
12601 | || test ! -s conftest.err' | |
12602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12603 | (eval $ac_try) 2>&5 | |
12604 | ac_status=$? | |
12605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12606 | (exit $ac_status); }; } && | |
12607 | { ac_try='test -s conftest.$ac_objext' | |
12608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12609 | (eval $ac_try) 2>&5 | |
12610 | ac_status=$? | |
12611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12612 | (exit $ac_status); }; }; then | |
12613 | ac_header_compiler=yes | |
12614 | else | |
12615 | echo "$as_me: failed program was:" >&5 | |
12616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12617 | ||
12618 | ac_header_compiler=no | |
12619 | fi | |
12620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12621 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12622 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12623 | ||
12624 | # Is the header present? | |
12625 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12626 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12627 | cat >conftest.$ac_ext <<_ACEOF | |
12628 | /* confdefs.h. */ | |
12629 | _ACEOF | |
12630 | cat confdefs.h >>conftest.$ac_ext | |
12631 | cat >>conftest.$ac_ext <<_ACEOF | |
12632 | /* end confdefs.h. */ | |
12633 | #include <$ac_header> | |
12634 | _ACEOF | |
12635 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12636 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12637 | ac_status=$? | |
12638 | grep -v '^ *+' conftest.er1 >conftest.err | |
12639 | rm -f conftest.er1 | |
12640 | cat conftest.err >&5 | |
12641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12642 | (exit $ac_status); } >/dev/null; then | |
12643 | if test -s conftest.err; then | |
12644 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12645 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12646 | else | |
12647 | ac_cpp_err= | |
12648 | fi | |
12649 | else | |
12650 | ac_cpp_err=yes | |
3b78cdbb | 12651 | fi |
bec39cab AC |
12652 | if test -z "$ac_cpp_err"; then |
12653 | ac_header_preproc=yes | |
12654 | else | |
12655 | echo "$as_me: failed program was:" >&5 | |
12656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12657 | ||
12658 | ac_header_preproc=no | |
3b78cdbb | 12659 | fi |
bec39cab AC |
12660 | rm -f conftest.err conftest.$ac_ext |
12661 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12662 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12663 | ||
12664 | # So? What about this header? | |
12665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12666 | yes:no: ) | |
12667 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12668 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12670 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12671 | ac_header_preproc=yes | |
12672 | ;; | |
12673 | no:yes:* ) | |
12674 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12675 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12676 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12677 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12678 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12679 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12680 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12681 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12682 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12683 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12684 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12685 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12686 | ( | |
12687 | cat <<\_ASBOX | |
12688 | ## ------------------------------------------ ## | |
12689 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12690 | ## ------------------------------------------ ## | |
12691 | _ASBOX | |
12692 | ) | | |
12693 | sed "s/^/$as_me: WARNING: /" >&2 | |
12694 | ;; | |
12695 | esac | |
12696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3b78cdbb | 12700 | else |
bec39cab AC |
12701 | eval "$as_ac_Header=\$ac_header_preproc" |
12702 | fi | |
12703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12704 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12705 | ||
3b78cdbb | 12706 | fi |
bec39cab AC |
12707 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12708 | cat >>confdefs.h <<_ACEOF | |
12709 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12710 | _ACEOF | |
12711 | ||
12712 | fi | |
12713 | ||
3b78cdbb DA |
12714 | done |
12715 | ||
c906108c | 12716 | |
065a1afc JB |
12717 | for ac_header in term.h |
12718 | do | |
12719 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12724 | else | |
12725 | cat >conftest.$ac_ext <<_ACEOF | |
12726 | /* confdefs.h. */ | |
12727 | _ACEOF | |
12728 | cat confdefs.h >>conftest.$ac_ext | |
12729 | cat >>conftest.$ac_ext <<_ACEOF | |
12730 | /* end confdefs.h. */ | |
12731 | #if HAVE_CURSES_H | |
12732 | # include <curses.h> | |
12733 | #endif | |
12734 | ||
12735 | ||
12736 | #include <$ac_header> | |
12737 | _ACEOF | |
12738 | rm -f conftest.$ac_objext | |
12739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12740 | (eval $ac_compile) 2>conftest.er1 | |
12741 | ac_status=$? | |
12742 | grep -v '^ *+' conftest.er1 >conftest.err | |
12743 | rm -f conftest.er1 | |
12744 | cat conftest.err >&5 | |
12745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12746 | (exit $ac_status); } && | |
12747 | { ac_try='test -z "$ac_c_werror_flag" | |
12748 | || test ! -s conftest.err' | |
12749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12750 | (eval $ac_try) 2>&5 | |
12751 | ac_status=$? | |
12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12753 | (exit $ac_status); }; } && | |
12754 | { ac_try='test -s conftest.$ac_objext' | |
12755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12756 | (eval $ac_try) 2>&5 | |
12757 | ac_status=$? | |
12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12759 | (exit $ac_status); }; }; then | |
12760 | eval "$as_ac_Header=yes" | |
12761 | else | |
12762 | echo "$as_me: failed program was:" >&5 | |
12763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12764 | ||
12765 | eval "$as_ac_Header=no" | |
12766 | fi | |
12767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12768 | fi | |
12769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12770 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12771 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12772 | cat >>confdefs.h <<_ACEOF | |
12773 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12774 | _ACEOF | |
12775 | ||
12776 | fi | |
12777 | ||
12778 | done | |
12779 | ||
12780 | ||
5ee754fc MK |
12781 | # FIXME: kettenis/20030102: In most cases we include these |
12782 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
12783 | |
12784 | ||
12785 | for ac_header in ctype.h time.h | |
c906108c | 12786 | do |
bec39cab AC |
12787 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12789 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12791 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12793 | fi | |
12794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12795 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12796 | else | |
12797 | # Is the header compilable? | |
12798 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12799 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12800 | cat >conftest.$ac_ext <<_ACEOF | |
12801 | /* confdefs.h. */ | |
12802 | _ACEOF | |
12803 | cat confdefs.h >>conftest.$ac_ext | |
12804 | cat >>conftest.$ac_ext <<_ACEOF | |
12805 | /* end confdefs.h. */ | |
12806 | $ac_includes_default | |
12807 | #include <$ac_header> | |
12808 | _ACEOF | |
12809 | rm -f conftest.$ac_objext | |
12810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12811 | (eval $ac_compile) 2>conftest.er1 | |
12812 | ac_status=$? | |
12813 | grep -v '^ *+' conftest.er1 >conftest.err | |
12814 | rm -f conftest.er1 | |
12815 | cat conftest.err >&5 | |
12816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12817 | (exit $ac_status); } && | |
12818 | { ac_try='test -z "$ac_c_werror_flag" | |
12819 | || test ! -s conftest.err' | |
12820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12821 | (eval $ac_try) 2>&5 | |
12822 | ac_status=$? | |
12823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12824 | (exit $ac_status); }; } && | |
12825 | { ac_try='test -s conftest.$ac_objext' | |
12826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12827 | (eval $ac_try) 2>&5 | |
12828 | ac_status=$? | |
12829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12830 | (exit $ac_status); }; }; then | |
12831 | ac_header_compiler=yes | |
12832 | else | |
12833 | echo "$as_me: failed program was:" >&5 | |
12834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12835 | ||
12836 | ac_header_compiler=no | |
12837 | fi | |
12838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12839 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12840 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12841 | ||
12842 | # Is the header present? | |
12843 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12844 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12845 | cat >conftest.$ac_ext <<_ACEOF | |
12846 | /* confdefs.h. */ | |
12847 | _ACEOF | |
12848 | cat confdefs.h >>conftest.$ac_ext | |
12849 | cat >>conftest.$ac_ext <<_ACEOF | |
12850 | /* end confdefs.h. */ | |
12851 | #include <$ac_header> | |
12852 | _ACEOF | |
12853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12855 | ac_status=$? | |
12856 | grep -v '^ *+' conftest.er1 >conftest.err | |
12857 | rm -f conftest.er1 | |
12858 | cat conftest.err >&5 | |
12859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12860 | (exit $ac_status); } >/dev/null; then | |
12861 | if test -s conftest.err; then | |
12862 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12863 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12864 | else | |
12865 | ac_cpp_err= | |
12866 | fi | |
12867 | else | |
12868 | ac_cpp_err=yes | |
c906108c | 12869 | fi |
bec39cab AC |
12870 | if test -z "$ac_cpp_err"; then |
12871 | ac_header_preproc=yes | |
12872 | else | |
12873 | echo "$as_me: failed program was:" >&5 | |
12874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12875 | ||
12876 | ac_header_preproc=no | |
c906108c | 12877 | fi |
bec39cab AC |
12878 | rm -f conftest.err conftest.$ac_ext |
12879 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12880 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12881 | ||
12882 | # So? What about this header? | |
12883 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12884 | yes:no: ) | |
12885 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12886 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12887 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12888 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12889 | ac_header_preproc=yes | |
12890 | ;; | |
12891 | no:yes:* ) | |
12892 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12893 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12894 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12895 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12896 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12897 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12898 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12899 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12900 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12901 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12902 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12903 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12904 | ( | |
12905 | cat <<\_ASBOX | |
12906 | ## ------------------------------------------ ## | |
12907 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12908 | ## ------------------------------------------ ## | |
12909 | _ASBOX | |
12910 | ) | | |
12911 | sed "s/^/$as_me: WARNING: /" >&2 | |
12912 | ;; | |
12913 | esac | |
12914 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12915 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12916 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 12918 | else |
bec39cab AC |
12919 | eval "$as_ac_Header=\$ac_header_preproc" |
12920 | fi | |
12921 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12922 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12923 | ||
12924 | fi | |
12925 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12926 | cat >>confdefs.h <<_ACEOF | |
12927 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12928 | _ACEOF | |
12929 | ||
c906108c | 12930 | fi |
bec39cab | 12931 | |
c906108c SS |
12932 | done |
12933 | ||
5ee754fc | 12934 | |
666ec76f MK |
12935 | # ------------------------- # |
12936 | # Checks for declarations. # | |
12937 | # ------------------------- # | |
12938 | ||
a3828db0 MK |
12939 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
12940 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
12941 | if test "${ac_cv_have_decl_free+set}" = set; then | |
bec39cab | 12942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 12943 | else |
bec39cab AC |
12944 | cat >conftest.$ac_ext <<_ACEOF |
12945 | /* confdefs.h. */ | |
12946 | _ACEOF | |
12947 | cat confdefs.h >>conftest.$ac_ext | |
12948 | cat >>conftest.$ac_ext <<_ACEOF | |
12949 | /* end confdefs.h. */ | |
a3828db0 | 12950 | $ac_includes_default |
bec39cab AC |
12951 | int |
12952 | main () | |
12953 | { | |
a3828db0 MK |
12954 | #ifndef free |
12955 | char *p = (char *) free; | |
666ec76f | 12956 | #endif |
a3828db0 | 12957 | |
bec39cab AC |
12958 | ; |
12959 | return 0; | |
12960 | } | |
12961 | _ACEOF | |
12962 | rm -f conftest.$ac_objext | |
12963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12964 | (eval $ac_compile) 2>conftest.er1 | |
12965 | ac_status=$? | |
12966 | grep -v '^ *+' conftest.er1 >conftest.err | |
12967 | rm -f conftest.er1 | |
12968 | cat conftest.err >&5 | |
12969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12970 | (exit $ac_status); } && | |
12971 | { ac_try='test -z "$ac_c_werror_flag" | |
12972 | || test ! -s conftest.err' | |
12973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12974 | (eval $ac_try) 2>&5 | |
12975 | ac_status=$? | |
12976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12977 | (exit $ac_status); }; } && | |
12978 | { ac_try='test -s conftest.$ac_objext' | |
12979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12980 | (eval $ac_try) 2>&5 | |
12981 | ac_status=$? | |
12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12983 | (exit $ac_status); }; }; then | |
a3828db0 | 12984 | ac_cv_have_decl_free=yes |
40a7debc | 12985 | else |
bec39cab AC |
12986 | echo "$as_me: failed program was:" >&5 |
12987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12988 | ||
a3828db0 | 12989 | ac_cv_have_decl_free=no |
40a7debc | 12990 | fi |
bec39cab | 12991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 12992 | fi |
a3828db0 MK |
12993 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
12994 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
12995 | if test $ac_cv_have_decl_free = yes; then | |
40a7debc | 12996 | |
a3828db0 MK |
12997 | cat >>confdefs.h <<_ACEOF |
12998 | #define HAVE_DECL_FREE 1 | |
666ec76f MK |
12999 | _ACEOF |
13000 | ||
a3828db0 | 13001 | |
666ec76f | 13002 | else |
a3828db0 MK |
13003 | cat >>confdefs.h <<_ACEOF |
13004 | #define HAVE_DECL_FREE 0 | |
bec39cab | 13005 | _ACEOF |
40a7debc | 13006 | |
b9362cc7 | 13007 | |
666ec76f | 13008 | fi |
a3828db0 MK |
13009 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
13010 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
13011 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
bec39cab AC |
13012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13013 | else | |
13014 | cat >conftest.$ac_ext <<_ACEOF | |
13015 | /* confdefs.h. */ | |
13016 | _ACEOF | |
13017 | cat confdefs.h >>conftest.$ac_ext | |
13018 | cat >>conftest.$ac_ext <<_ACEOF | |
13019 | /* end confdefs.h. */ | |
666ec76f MK |
13020 | $ac_includes_default |
13021 | int | |
13022 | main () | |
13023 | { | |
a3828db0 MK |
13024 | #ifndef malloc |
13025 | char *p = (char *) malloc; | |
13026 | #endif | |
13027 | ||
666ec76f MK |
13028 | ; |
13029 | return 0; | |
13030 | } | |
13031 | _ACEOF | |
13032 | rm -f conftest.$ac_objext | |
13033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13034 | (eval $ac_compile) 2>conftest.er1 | |
13035 | ac_status=$? | |
13036 | grep -v '^ *+' conftest.er1 >conftest.err | |
13037 | rm -f conftest.er1 | |
13038 | cat conftest.err >&5 | |
13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13040 | (exit $ac_status); } && | |
13041 | { ac_try='test -z "$ac_c_werror_flag" | |
13042 | || test ! -s conftest.err' | |
13043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13044 | (eval $ac_try) 2>&5 | |
13045 | ac_status=$? | |
13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13047 | (exit $ac_status); }; } && | |
13048 | { ac_try='test -s conftest.$ac_objext' | |
13049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13050 | (eval $ac_try) 2>&5 | |
13051 | ac_status=$? | |
13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13053 | (exit $ac_status); }; }; then | |
a3828db0 | 13054 | ac_cv_have_decl_malloc=yes |
666ec76f MK |
13055 | else |
13056 | echo "$as_me: failed program was:" >&5 | |
13057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 13058 | |
a3828db0 MK |
13059 | ac_cv_have_decl_malloc=no |
13060 | fi | |
13061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13062 | fi | |
13063 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 | |
13064 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
13065 | if test $ac_cv_have_decl_malloc = yes; then | |
13066 | ||
13067 | cat >>confdefs.h <<_ACEOF | |
13068 | #define HAVE_DECL_MALLOC 1 | |
13069 | _ACEOF | |
13070 | ||
13071 | ||
13072 | else | |
13073 | cat >>confdefs.h <<_ACEOF | |
13074 | #define HAVE_DECL_MALLOC 0 | |
13075 | _ACEOF | |
13076 | ||
13077 | ||
13078 | fi | |
13079 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
13080 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
13081 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
13082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13083 | else | |
13084 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
13085 | /* confdefs.h. */ |
13086 | _ACEOF | |
13087 | cat confdefs.h >>conftest.$ac_ext | |
13088 | cat >>conftest.$ac_ext <<_ACEOF | |
13089 | /* end confdefs.h. */ | |
13090 | $ac_includes_default | |
bec39cab AC |
13091 | int |
13092 | main () | |
13093 | { | |
a3828db0 MK |
13094 | #ifndef realloc |
13095 | char *p = (char *) realloc; | |
13096 | #endif | |
13097 | ||
bec39cab AC |
13098 | ; |
13099 | return 0; | |
13100 | } | |
13101 | _ACEOF | |
13102 | rm -f conftest.$ac_objext | |
13103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13104 | (eval $ac_compile) 2>conftest.er1 | |
13105 | ac_status=$? | |
13106 | grep -v '^ *+' conftest.er1 >conftest.err | |
13107 | rm -f conftest.er1 | |
13108 | cat conftest.err >&5 | |
13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13110 | (exit $ac_status); } && | |
13111 | { ac_try='test -z "$ac_c_werror_flag" | |
13112 | || test ! -s conftest.err' | |
13113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13114 | (eval $ac_try) 2>&5 | |
13115 | ac_status=$? | |
13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13117 | (exit $ac_status); }; } && | |
13118 | { ac_try='test -s conftest.$ac_objext' | |
13119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13120 | (eval $ac_try) 2>&5 | |
13121 | ac_status=$? | |
13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13123 | (exit $ac_status); }; }; then | |
a3828db0 | 13124 | ac_cv_have_decl_realloc=yes |
b9362cc7 | 13125 | else |
bec39cab AC |
13126 | echo "$as_me: failed program was:" >&5 |
13127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13128 | ||
a3828db0 | 13129 | ac_cv_have_decl_realloc=no |
b9362cc7 | 13130 | fi |
bec39cab | 13131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 13132 | fi |
a3828db0 MK |
13133 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
13134 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
13135 | if test $ac_cv_have_decl_realloc = yes; then | |
b9362cc7 | 13136 | |
666ec76f | 13137 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 13138 | #define HAVE_DECL_REALLOC 1 |
bec39cab AC |
13139 | _ACEOF |
13140 | ||
bec39cab | 13141 | |
a3828db0 MK |
13142 | else |
13143 | cat >>confdefs.h <<_ACEOF | |
13144 | #define HAVE_DECL_REALLOC 0 | |
13145 | _ACEOF | |
b9362cc7 AC |
13146 | |
13147 | ||
a3828db0 | 13148 | fi |
5ee754fc | 13149 | |
a3828db0 MK |
13150 | |
13151 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 | |
13152 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
13153 | if test "${ac_cv_have_decl_strerror+set}" = set; then | |
bec39cab AC |
13154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13155 | else | |
13156 | cat >conftest.$ac_ext <<_ACEOF | |
13157 | /* confdefs.h. */ | |
13158 | _ACEOF | |
13159 | cat confdefs.h >>conftest.$ac_ext | |
13160 | cat >>conftest.$ac_ext <<_ACEOF | |
13161 | /* end confdefs.h. */ | |
a3828db0 | 13162 | $ac_includes_default |
bec39cab AC |
13163 | int |
13164 | main () | |
13165 | { | |
a3828db0 MK |
13166 | #ifndef strerror |
13167 | char *p = (char *) strerror; | |
13168 | #endif | |
13169 | ||
bec39cab AC |
13170 | ; |
13171 | return 0; | |
13172 | } | |
13173 | _ACEOF | |
13174 | rm -f conftest.$ac_objext | |
13175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13176 | (eval $ac_compile) 2>conftest.er1 | |
13177 | ac_status=$? | |
13178 | grep -v '^ *+' conftest.er1 >conftest.err | |
13179 | rm -f conftest.er1 | |
13180 | cat conftest.err >&5 | |
13181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13182 | (exit $ac_status); } && | |
13183 | { ac_try='test -z "$ac_c_werror_flag" | |
13184 | || test ! -s conftest.err' | |
13185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13186 | (eval $ac_try) 2>&5 | |
13187 | ac_status=$? | |
13188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13189 | (exit $ac_status); }; } && | |
13190 | { ac_try='test -s conftest.$ac_objext' | |
13191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13192 | (eval $ac_try) 2>&5 | |
13193 | ac_status=$? | |
13194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13195 | (exit $ac_status); }; }; then | |
a3828db0 | 13196 | ac_cv_have_decl_strerror=yes |
c906108c | 13197 | else |
bec39cab AC |
13198 | echo "$as_me: failed program was:" >&5 |
13199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13200 | ||
a3828db0 | 13201 | ac_cv_have_decl_strerror=no |
c906108c | 13202 | fi |
bec39cab | 13203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13204 | fi |
a3828db0 MK |
13205 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
13206 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
13207 | if test $ac_cv_have_decl_strerror = yes; then | |
c906108c | 13208 | |
bec39cab | 13209 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 13210 | #define HAVE_DECL_STRERROR 1 |
bec39cab | 13211 | _ACEOF |
c906108c | 13212 | |
c906108c | 13213 | |
a3828db0 MK |
13214 | else |
13215 | cat >>confdefs.h <<_ACEOF | |
13216 | #define HAVE_DECL_STRERROR 0 | |
13217 | _ACEOF | |
c906108c | 13218 | |
5ee754fc | 13219 | |
a3828db0 MK |
13220 | fi |
13221 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 | |
13222 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
13223 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
bec39cab AC |
13224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13225 | else | |
13226 | cat >conftest.$ac_ext <<_ACEOF | |
13227 | /* confdefs.h. */ | |
13228 | _ACEOF | |
13229 | cat confdefs.h >>conftest.$ac_ext | |
13230 | cat >>conftest.$ac_ext <<_ACEOF | |
13231 | /* end confdefs.h. */ | |
a3828db0 | 13232 | $ac_includes_default |
bec39cab AC |
13233 | int |
13234 | main () | |
13235 | { | |
a3828db0 MK |
13236 | #ifndef strstr |
13237 | char *p = (char *) strstr; | |
bec39cab AC |
13238 | #endif |
13239 | ||
13240 | ; | |
13241 | return 0; | |
13242 | } | |
13243 | _ACEOF | |
13244 | rm -f conftest.$ac_objext | |
13245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13246 | (eval $ac_compile) 2>conftest.er1 | |
13247 | ac_status=$? | |
13248 | grep -v '^ *+' conftest.er1 >conftest.err | |
13249 | rm -f conftest.er1 | |
13250 | cat conftest.err >&5 | |
13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13252 | (exit $ac_status); } && | |
13253 | { ac_try='test -z "$ac_c_werror_flag" | |
13254 | || test ! -s conftest.err' | |
13255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13256 | (eval $ac_try) 2>&5 | |
13257 | ac_status=$? | |
13258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13259 | (exit $ac_status); }; } && | |
13260 | { ac_try='test -s conftest.$ac_objext' | |
13261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13262 | (eval $ac_try) 2>&5 | |
13263 | ac_status=$? | |
13264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13265 | (exit $ac_status); }; }; then | |
a3828db0 | 13266 | ac_cv_have_decl_strstr=yes |
c906108c | 13267 | else |
bec39cab AC |
13268 | echo "$as_me: failed program was:" >&5 |
13269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13270 | ||
a3828db0 | 13271 | ac_cv_have_decl_strstr=no |
c906108c | 13272 | fi |
bec39cab | 13273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13274 | fi |
a3828db0 MK |
13275 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
13276 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
13277 | if test $ac_cv_have_decl_strstr = yes; then | |
bec39cab | 13278 | |
a3828db0 MK |
13279 | cat >>confdefs.h <<_ACEOF |
13280 | #define HAVE_DECL_STRSTR 1 | |
13281 | _ACEOF | |
13282 | ||
13283 | ||
13284 | else | |
13285 | cat >>confdefs.h <<_ACEOF | |
13286 | #define HAVE_DECL_STRSTR 0 | |
bec39cab | 13287 | _ACEOF |
c906108c | 13288 | |
a3828db0 | 13289 | |
c906108c SS |
13290 | fi |
13291 | ||
a3828db0 MK |
13292 | |
13293 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 | |
13294 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
13295 | if test "${ac_cv_have_decl_getopt+set}" = set; then | |
bec39cab | 13296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 13297 | else |
bec39cab AC |
13298 | cat >conftest.$ac_ext <<_ACEOF |
13299 | /* confdefs.h. */ | |
13300 | _ACEOF | |
13301 | cat confdefs.h >>conftest.$ac_ext | |
13302 | cat >>conftest.$ac_ext <<_ACEOF | |
13303 | /* end confdefs.h. */ | |
a3828db0 MK |
13304 | $ac_includes_default |
13305 | int | |
13306 | main () | |
13307 | { | |
13308 | #ifndef getopt | |
13309 | char *p = (char *) getopt; | |
bec39cab AC |
13310 | #endif |
13311 | ||
a3828db0 MK |
13312 | ; |
13313 | return 0; | |
13314 | } | |
bec39cab AC |
13315 | _ACEOF |
13316 | rm -f conftest.$ac_objext | |
13317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13318 | (eval $ac_compile) 2>conftest.er1 | |
13319 | ac_status=$? | |
13320 | grep -v '^ *+' conftest.er1 >conftest.err | |
13321 | rm -f conftest.er1 | |
13322 | cat conftest.err >&5 | |
13323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13324 | (exit $ac_status); } && | |
13325 | { ac_try='test -z "$ac_c_werror_flag" | |
13326 | || test ! -s conftest.err' | |
13327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13328 | (eval $ac_try) 2>&5 | |
13329 | ac_status=$? | |
13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13331 | (exit $ac_status); }; } && | |
13332 | { ac_try='test -s conftest.$ac_objext' | |
13333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13334 | (eval $ac_try) 2>&5 | |
13335 | ac_status=$? | |
13336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13337 | (exit $ac_status); }; }; then | |
a3828db0 | 13338 | ac_cv_have_decl_getopt=yes |
bce58c09 | 13339 | else |
bec39cab AC |
13340 | echo "$as_me: failed program was:" >&5 |
13341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13342 | ||
a3828db0 | 13343 | ac_cv_have_decl_getopt=no |
bce58c09 | 13344 | fi |
bec39cab | 13345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 13346 | fi |
a3828db0 MK |
13347 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
13348 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
13349 | if test $ac_cv_have_decl_getopt = yes; then | |
bec39cab | 13350 | |
a3828db0 MK |
13351 | cat >>confdefs.h <<_ACEOF |
13352 | #define HAVE_DECL_GETOPT 1 | |
13353 | _ACEOF | |
bce58c09 | 13354 | |
a3828db0 MK |
13355 | |
13356 | else | |
13357 | cat >>confdefs.h <<_ACEOF | |
13358 | #define HAVE_DECL_GETOPT 0 | |
bec39cab | 13359 | _ACEOF |
bce58c09 | 13360 | |
c906108c | 13361 | |
e5a7de23 EZ |
13362 | fi |
13363 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 | |
13364 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
13365 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
13366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13367 | else | |
13368 | cat >conftest.$ac_ext <<_ACEOF | |
13369 | /* confdefs.h. */ | |
13370 | _ACEOF | |
13371 | cat confdefs.h >>conftest.$ac_ext | |
13372 | cat >>conftest.$ac_ext <<_ACEOF | |
13373 | /* end confdefs.h. */ | |
13374 | $ac_includes_default | |
13375 | int | |
13376 | main () | |
13377 | { | |
13378 | #ifndef snprintf | |
13379 | char *p = (char *) snprintf; | |
13380 | #endif | |
13381 | ||
13382 | ; | |
13383 | return 0; | |
13384 | } | |
13385 | _ACEOF | |
13386 | rm -f conftest.$ac_objext | |
13387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13388 | (eval $ac_compile) 2>conftest.er1 | |
13389 | ac_status=$? | |
13390 | grep -v '^ *+' conftest.er1 >conftest.err | |
13391 | rm -f conftest.er1 | |
13392 | cat conftest.err >&5 | |
13393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13394 | (exit $ac_status); } && | |
13395 | { ac_try='test -z "$ac_c_werror_flag" | |
13396 | || test ! -s conftest.err' | |
13397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13398 | (eval $ac_try) 2>&5 | |
13399 | ac_status=$? | |
13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13401 | (exit $ac_status); }; } && | |
13402 | { ac_try='test -s conftest.$ac_objext' | |
13403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13404 | (eval $ac_try) 2>&5 | |
13405 | ac_status=$? | |
13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13407 | (exit $ac_status); }; }; then | |
13408 | ac_cv_have_decl_snprintf=yes | |
13409 | else | |
13410 | echo "$as_me: failed program was:" >&5 | |
13411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13412 | ||
13413 | ac_cv_have_decl_snprintf=no | |
13414 | fi | |
13415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13416 | fi | |
13417 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
13418 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
13419 | if test $ac_cv_have_decl_snprintf = yes; then | |
13420 | ||
13421 | cat >>confdefs.h <<_ACEOF | |
13422 | #define HAVE_DECL_SNPRINTF 1 | |
13423 | _ACEOF | |
13424 | ||
13425 | ||
13426 | else | |
13427 | cat >>confdefs.h <<_ACEOF | |
13428 | #define HAVE_DECL_SNPRINTF 0 | |
13429 | _ACEOF | |
13430 | ||
13431 | ||
13432 | fi | |
13433 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
13434 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
13435 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
13436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13437 | else | |
13438 | cat >conftest.$ac_ext <<_ACEOF | |
13439 | /* confdefs.h. */ | |
13440 | _ACEOF | |
13441 | cat confdefs.h >>conftest.$ac_ext | |
13442 | cat >>conftest.$ac_ext <<_ACEOF | |
13443 | /* end confdefs.h. */ | |
13444 | $ac_includes_default | |
13445 | int | |
13446 | main () | |
13447 | { | |
13448 | #ifndef vsnprintf | |
13449 | char *p = (char *) vsnprintf; | |
13450 | #endif | |
13451 | ||
13452 | ; | |
13453 | return 0; | |
13454 | } | |
13455 | _ACEOF | |
13456 | rm -f conftest.$ac_objext | |
13457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13458 | (eval $ac_compile) 2>conftest.er1 | |
13459 | ac_status=$? | |
13460 | grep -v '^ *+' conftest.er1 >conftest.err | |
13461 | rm -f conftest.er1 | |
13462 | cat conftest.err >&5 | |
13463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13464 | (exit $ac_status); } && | |
13465 | { ac_try='test -z "$ac_c_werror_flag" | |
13466 | || test ! -s conftest.err' | |
13467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13468 | (eval $ac_try) 2>&5 | |
13469 | ac_status=$? | |
13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13471 | (exit $ac_status); }; } && | |
13472 | { ac_try='test -s conftest.$ac_objext' | |
13473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13474 | (eval $ac_try) 2>&5 | |
13475 | ac_status=$? | |
13476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13477 | (exit $ac_status); }; }; then | |
13478 | ac_cv_have_decl_vsnprintf=yes | |
13479 | else | |
13480 | echo "$as_me: failed program was:" >&5 | |
13481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13482 | ||
13483 | ac_cv_have_decl_vsnprintf=no | |
13484 | fi | |
13485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13486 | fi | |
13487 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
13488 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
13489 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
13490 | ||
13491 | cat >>confdefs.h <<_ACEOF | |
13492 | #define HAVE_DECL_VSNPRINTF 1 | |
13493 | _ACEOF | |
13494 | ||
13495 | ||
13496 | else | |
13497 | cat >>confdefs.h <<_ACEOF | |
13498 | #define HAVE_DECL_VSNPRINTF 0 | |
13499 | _ACEOF | |
13500 | ||
13501 | ||
a3828db0 | 13502 | fi |
5ee754fc | 13503 | |
a3828db0 MK |
13504 | |
13505 | ||
13506 | # ----------------------- # | |
13507 | # Checks for structures. # | |
13508 | # ----------------------- # | |
13509 | ||
13510 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 | |
13511 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
13512 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
bec39cab AC |
13513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13514 | else | |
13515 | cat >conftest.$ac_ext <<_ACEOF | |
13516 | /* confdefs.h. */ | |
13517 | _ACEOF | |
13518 | cat confdefs.h >>conftest.$ac_ext | |
13519 | cat >>conftest.$ac_ext <<_ACEOF | |
13520 | /* end confdefs.h. */ | |
a3828db0 | 13521 | $ac_includes_default |
bec39cab AC |
13522 | int |
13523 | main () | |
13524 | { | |
a3828db0 MK |
13525 | static struct stat ac_aggr; |
13526 | if (ac_aggr.st_blocks) | |
13527 | return 0; | |
bec39cab AC |
13528 | ; |
13529 | return 0; | |
13530 | } | |
13531 | _ACEOF | |
a3828db0 MK |
13532 | rm -f conftest.$ac_objext |
13533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13534 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
13535 | ac_status=$? |
13536 | grep -v '^ *+' conftest.er1 >conftest.err | |
13537 | rm -f conftest.er1 | |
13538 | cat conftest.err >&5 | |
13539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13540 | (exit $ac_status); } && | |
13541 | { ac_try='test -z "$ac_c_werror_flag" | |
13542 | || test ! -s conftest.err' | |
13543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13544 | (eval $ac_try) 2>&5 | |
13545 | ac_status=$? | |
13546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13547 | (exit $ac_status); }; } && | |
a3828db0 | 13548 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
13549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13550 | (eval $ac_try) 2>&5 | |
13551 | ac_status=$? | |
13552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13553 | (exit $ac_status); }; }; then | |
a3828db0 | 13554 | ac_cv_member_struct_stat_st_blocks=yes |
bec39cab AC |
13555 | else |
13556 | echo "$as_me: failed program was:" >&5 | |
13557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13558 | ||
a3828db0 MK |
13559 | cat >conftest.$ac_ext <<_ACEOF |
13560 | /* confdefs.h. */ | |
bec39cab AC |
13561 | _ACEOF |
13562 | cat confdefs.h >>conftest.$ac_ext | |
13563 | cat >>conftest.$ac_ext <<_ACEOF | |
13564 | /* end confdefs.h. */ | |
a3828db0 | 13565 | $ac_includes_default |
bec39cab AC |
13566 | int |
13567 | main () | |
13568 | { | |
a3828db0 MK |
13569 | static struct stat ac_aggr; |
13570 | if (sizeof ac_aggr.st_blocks) | |
13571 | return 0; | |
bec39cab AC |
13572 | ; |
13573 | return 0; | |
13574 | } | |
13575 | _ACEOF | |
a3828db0 MK |
13576 | rm -f conftest.$ac_objext |
13577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13578 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
13579 | ac_status=$? |
13580 | grep -v '^ *+' conftest.er1 >conftest.err | |
13581 | rm -f conftest.er1 | |
13582 | cat conftest.err >&5 | |
13583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13584 | (exit $ac_status); } && | |
13585 | { ac_try='test -z "$ac_c_werror_flag" | |
13586 | || test ! -s conftest.err' | |
13587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13588 | (eval $ac_try) 2>&5 | |
13589 | ac_status=$? | |
13590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13591 | (exit $ac_status); }; } && | |
a3828db0 | 13592 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
13593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13594 | (eval $ac_try) 2>&5 | |
13595 | ac_status=$? | |
13596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13597 | (exit $ac_status); }; }; then | |
a3828db0 | 13598 | ac_cv_member_struct_stat_st_blocks=yes |
46711df8 | 13599 | else |
bec39cab AC |
13600 | echo "$as_me: failed program was:" >&5 |
13601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13602 | ||
a3828db0 | 13603 | ac_cv_member_struct_stat_st_blocks=no |
46711df8 | 13604 | fi |
a3828db0 | 13605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 13606 | fi |
a3828db0 MK |
13607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13608 | fi | |
13609 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 | |
13610 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
13611 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
46711df8 | 13612 | |
a3828db0 MK |
13613 | cat >>confdefs.h <<_ACEOF |
13614 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
bec39cab | 13615 | _ACEOF |
46711df8 | 13616 | |
46711df8 | 13617 | |
d3ea6809 MM |
13618 | fi |
13619 | ||
13620 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | |
13621 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
13622 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
13623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13624 | else | |
13625 | cat >conftest.$ac_ext <<_ACEOF | |
13626 | /* confdefs.h. */ | |
13627 | _ACEOF | |
13628 | cat confdefs.h >>conftest.$ac_ext | |
13629 | cat >>conftest.$ac_ext <<_ACEOF | |
13630 | /* end confdefs.h. */ | |
13631 | $ac_includes_default | |
13632 | int | |
13633 | main () | |
13634 | { | |
13635 | static struct stat ac_aggr; | |
13636 | if (ac_aggr.st_blksize) | |
13637 | return 0; | |
13638 | ; | |
13639 | return 0; | |
13640 | } | |
13641 | _ACEOF | |
13642 | rm -f conftest.$ac_objext | |
13643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13644 | (eval $ac_compile) 2>conftest.er1 | |
13645 | ac_status=$? | |
13646 | grep -v '^ *+' conftest.er1 >conftest.err | |
13647 | rm -f conftest.er1 | |
13648 | cat conftest.err >&5 | |
13649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13650 | (exit $ac_status); } && | |
13651 | { ac_try='test -z "$ac_c_werror_flag" | |
13652 | || test ! -s conftest.err' | |
13653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13654 | (eval $ac_try) 2>&5 | |
13655 | ac_status=$? | |
13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13657 | (exit $ac_status); }; } && | |
13658 | { ac_try='test -s conftest.$ac_objext' | |
13659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13660 | (eval $ac_try) 2>&5 | |
13661 | ac_status=$? | |
13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13663 | (exit $ac_status); }; }; then | |
13664 | ac_cv_member_struct_stat_st_blksize=yes | |
13665 | else | |
13666 | echo "$as_me: failed program was:" >&5 | |
13667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13668 | ||
13669 | cat >conftest.$ac_ext <<_ACEOF | |
13670 | /* confdefs.h. */ | |
13671 | _ACEOF | |
13672 | cat confdefs.h >>conftest.$ac_ext | |
13673 | cat >>conftest.$ac_ext <<_ACEOF | |
13674 | /* end confdefs.h. */ | |
13675 | $ac_includes_default | |
13676 | int | |
13677 | main () | |
13678 | { | |
13679 | static struct stat ac_aggr; | |
13680 | if (sizeof ac_aggr.st_blksize) | |
13681 | return 0; | |
13682 | ; | |
13683 | return 0; | |
13684 | } | |
13685 | _ACEOF | |
13686 | rm -f conftest.$ac_objext | |
13687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13688 | (eval $ac_compile) 2>conftest.er1 | |
13689 | ac_status=$? | |
13690 | grep -v '^ *+' conftest.er1 >conftest.err | |
13691 | rm -f conftest.er1 | |
13692 | cat conftest.err >&5 | |
13693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13694 | (exit $ac_status); } && | |
13695 | { ac_try='test -z "$ac_c_werror_flag" | |
13696 | || test ! -s conftest.err' | |
13697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13698 | (eval $ac_try) 2>&5 | |
13699 | ac_status=$? | |
13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13701 | (exit $ac_status); }; } && | |
13702 | { ac_try='test -s conftest.$ac_objext' | |
13703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13704 | (eval $ac_try) 2>&5 | |
13705 | ac_status=$? | |
13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13707 | (exit $ac_status); }; }; then | |
13708 | ac_cv_member_struct_stat_st_blksize=yes | |
13709 | else | |
13710 | echo "$as_me: failed program was:" >&5 | |
13711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13712 | ||
13713 | ac_cv_member_struct_stat_st_blksize=no | |
13714 | fi | |
13715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13716 | fi | |
13717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13718 | fi | |
13719 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | |
13720 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
13721 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
13722 | ||
13723 | cat >>confdefs.h <<_ACEOF | |
13724 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
13725 | _ACEOF | |
13726 | ||
13727 | ||
a3828db0 | 13728 | fi |
46711df8 | 13729 | |
46711df8 | 13730 | |
a3828db0 MK |
13731 | # ------------------ # |
13732 | # Checks for types. # | |
13733 | # ------------------ # | |
46711df8 | 13734 | |
a3828db0 MK |
13735 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
13736 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
13737 | if test "${ac_cv_type_signal+set}" = set; then | |
bec39cab AC |
13738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13739 | else | |
13740 | cat >conftest.$ac_ext <<_ACEOF | |
13741 | /* confdefs.h. */ | |
13742 | _ACEOF | |
13743 | cat confdefs.h >>conftest.$ac_ext | |
13744 | cat >>conftest.$ac_ext <<_ACEOF | |
13745 | /* end confdefs.h. */ | |
a3828db0 MK |
13746 | #include <sys/types.h> |
13747 | #include <signal.h> | |
13748 | #ifdef signal | |
13749 | # undef signal | |
bec39cab | 13750 | #endif |
bec39cab | 13751 | #ifdef __cplusplus |
a3828db0 | 13752 | extern "C" void (*signal (int, void (*)(int)))(int); |
46711df8 | 13753 | #else |
a3828db0 | 13754 | void (*signal ()) (); |
46711df8 MK |
13755 | #endif |
13756 | ||
bec39cab AC |
13757 | int |
13758 | main () | |
13759 | { | |
a3828db0 | 13760 | int i; |
bec39cab AC |
13761 | ; |
13762 | return 0; | |
13763 | } | |
13764 | _ACEOF | |
a3828db0 MK |
13765 | rm -f conftest.$ac_objext |
13766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13767 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
13768 | ac_status=$? |
13769 | grep -v '^ *+' conftest.er1 >conftest.err | |
13770 | rm -f conftest.er1 | |
13771 | cat conftest.err >&5 | |
13772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13773 | (exit $ac_status); } && | |
13774 | { ac_try='test -z "$ac_c_werror_flag" | |
13775 | || test ! -s conftest.err' | |
13776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13777 | (eval $ac_try) 2>&5 | |
13778 | ac_status=$? | |
13779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13780 | (exit $ac_status); }; } && | |
a3828db0 | 13781 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
13782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13783 | (eval $ac_try) 2>&5 | |
13784 | ac_status=$? | |
13785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13786 | (exit $ac_status); }; }; then | |
a3828db0 | 13787 | ac_cv_type_signal=void |
bec39cab AC |
13788 | else |
13789 | echo "$as_me: failed program was:" >&5 | |
13790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13791 | ||
a3828db0 | 13792 | ac_cv_type_signal=int |
bec39cab | 13793 | fi |
a3828db0 | 13794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 13795 | fi |
a3828db0 MK |
13796 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
13797 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
bec39cab AC |
13798 | |
13799 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 13800 | #define RETSIGTYPE $ac_cv_type_signal |
bec39cab | 13801 | _ACEOF |
46711df8 | 13802 | |
46711df8 | 13803 | |
f9f87d2c MK |
13804 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
13805 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
13806 | if test "${ac_cv_type_socklen_t+set}" = set; then | |
13807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13808 | else | |
13809 | cat >conftest.$ac_ext <<_ACEOF | |
13810 | /* confdefs.h. */ | |
13811 | _ACEOF | |
13812 | cat confdefs.h >>conftest.$ac_ext | |
13813 | cat >>conftest.$ac_ext <<_ACEOF | |
13814 | /* end confdefs.h. */ | |
13815 | #include <sys/types.h> | |
13816 | #include <sys/socket.h> | |
13817 | ||
13818 | ||
13819 | int | |
13820 | main () | |
13821 | { | |
13822 | if ((socklen_t *) 0) | |
13823 | return 0; | |
13824 | if (sizeof (socklen_t)) | |
13825 | return 0; | |
13826 | ; | |
13827 | return 0; | |
13828 | } | |
13829 | _ACEOF | |
13830 | rm -f conftest.$ac_objext | |
13831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13832 | (eval $ac_compile) 2>conftest.er1 | |
13833 | ac_status=$? | |
13834 | grep -v '^ *+' conftest.er1 >conftest.err | |
13835 | rm -f conftest.er1 | |
13836 | cat conftest.err >&5 | |
13837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13838 | (exit $ac_status); } && | |
13839 | { ac_try='test -z "$ac_c_werror_flag" | |
13840 | || test ! -s conftest.err' | |
13841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13842 | (eval $ac_try) 2>&5 | |
13843 | ac_status=$? | |
13844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13845 | (exit $ac_status); }; } && | |
13846 | { ac_try='test -s conftest.$ac_objext' | |
13847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13848 | (eval $ac_try) 2>&5 | |
13849 | ac_status=$? | |
13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13851 | (exit $ac_status); }; }; then | |
13852 | ac_cv_type_socklen_t=yes | |
13853 | else | |
13854 | echo "$as_me: failed program was:" >&5 | |
13855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13856 | ||
13857 | ac_cv_type_socklen_t=no | |
13858 | fi | |
13859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13860 | fi | |
13861 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | |
13862 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
13863 | if test $ac_cv_type_socklen_t = yes; then | |
13864 | ||
13865 | cat >>confdefs.h <<_ACEOF | |
13866 | #define HAVE_SOCKLEN_T 1 | |
13867 | _ACEOF | |
13868 | ||
13869 | ||
3be60c3d MK |
13870 | fi |
13871 | ||
13872 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
13873 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
13874 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
13875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13876 | else | |
13877 | cat >conftest.$ac_ext <<_ACEOF | |
13878 | /* confdefs.h. */ | |
13879 | _ACEOF | |
13880 | cat confdefs.h >>conftest.$ac_ext | |
13881 | cat >>conftest.$ac_ext <<_ACEOF | |
13882 | /* end confdefs.h. */ | |
13883 | #include <stdint.h> | |
13884 | ||
13885 | int | |
13886 | main () | |
13887 | { | |
13888 | if ((uintptr_t *) 0) | |
13889 | return 0; | |
13890 | if (sizeof (uintptr_t)) | |
13891 | return 0; | |
13892 | ; | |
13893 | return 0; | |
13894 | } | |
13895 | _ACEOF | |
13896 | rm -f conftest.$ac_objext | |
13897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13898 | (eval $ac_compile) 2>conftest.er1 | |
13899 | ac_status=$? | |
13900 | grep -v '^ *+' conftest.er1 >conftest.err | |
13901 | rm -f conftest.er1 | |
13902 | cat conftest.err >&5 | |
13903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13904 | (exit $ac_status); } && | |
13905 | { ac_try='test -z "$ac_c_werror_flag" | |
13906 | || test ! -s conftest.err' | |
13907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13908 | (eval $ac_try) 2>&5 | |
13909 | ac_status=$? | |
13910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13911 | (exit $ac_status); }; } && | |
13912 | { ac_try='test -s conftest.$ac_objext' | |
13913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13914 | (eval $ac_try) 2>&5 | |
13915 | ac_status=$? | |
13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13917 | (exit $ac_status); }; }; then | |
13918 | ac_cv_type_uintptr_t=yes | |
13919 | else | |
13920 | echo "$as_me: failed program was:" >&5 | |
13921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13922 | ||
13923 | ac_cv_type_uintptr_t=no | |
13924 | fi | |
13925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13926 | fi | |
13927 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
13928 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
13929 | if test $ac_cv_type_uintptr_t = yes; then | |
13930 | ||
13931 | cat >>confdefs.h <<_ACEOF | |
13932 | #define HAVE_UINTPTR_T 1 | |
13933 | _ACEOF | |
13934 | ||
13935 | ||
f9f87d2c MK |
13936 | fi |
13937 | ||
46711df8 | 13938 | |
a3828db0 MK |
13939 | # ------------------------------------- # |
13940 | # Checks for compiler characteristics. # | |
13941 | # ------------------------------------- # | |
13942 | ||
13943 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
13944 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13945 | if test "${ac_cv_c_const+set}" = set; then | |
bec39cab | 13946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 13947 | else |
bec39cab AC |
13948 | cat >conftest.$ac_ext <<_ACEOF |
13949 | /* confdefs.h. */ | |
13950 | _ACEOF | |
13951 | cat confdefs.h >>conftest.$ac_ext | |
13952 | cat >>conftest.$ac_ext <<_ACEOF | |
13953 | /* end confdefs.h. */ | |
bec39cab AC |
13954 | |
13955 | int | |
46711df8 MK |
13956 | main () |
13957 | { | |
a3828db0 MK |
13958 | /* FIXME: Include the comments suggested by Paul. */ |
13959 | #ifndef __cplusplus | |
13960 | /* Ultrix mips cc rejects this. */ | |
13961 | typedef int charset[2]; | |
13962 | const charset x; | |
13963 | /* SunOS 4.1.1 cc rejects this. */ | |
13964 | char const *const *ccp; | |
13965 | char **p; | |
13966 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13967 | struct point {int x, y;}; | |
13968 | static struct point const zero = {0,0}; | |
13969 | /* AIX XL C 1.02.0.0 rejects this. | |
13970 | It does not let you subtract one const X* pointer from another in | |
13971 | an arm of an if-expression whose if-part is not a constant | |
13972 | expression */ | |
13973 | const char *g = "string"; | |
13974 | ccp = &g + (g ? g-g : 0); | |
13975 | /* HPUX 7.0 cc rejects these. */ | |
13976 | ++ccp; | |
13977 | p = (char**) ccp; | |
13978 | ccp = (char const *const *) p; | |
13979 | { /* SCO 3.2v4 cc rejects this. */ | |
13980 | char *t; | |
13981 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13982 | ||
13983 | *t++ = 0; | |
13984 | } | |
13985 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13986 | int x[] = {25, 17}; | |
13987 | const int *foo = &x[0]; | |
13988 | ++foo; | |
13989 | } | |
13990 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13991 | typedef const int *iptr; | |
13992 | iptr p = 0; | |
13993 | ++p; | |
13994 | } | |
13995 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13996 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13997 | struct s { int j; const int *ap[3]; }; | |
13998 | struct s *b; b->j = 5; | |
13999 | } | |
14000 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14001 | const int foo = 10; | |
14002 | } | |
14003 | #endif | |
14004 | ||
14005 | ; | |
14006 | return 0; | |
46711df8 | 14007 | } |
bec39cab | 14008 | _ACEOF |
a3828db0 MK |
14009 | rm -f conftest.$ac_objext |
14010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14011 | (eval $ac_compile) 2>conftest.er1 | |
14012 | ac_status=$? | |
14013 | grep -v '^ *+' conftest.er1 >conftest.err | |
14014 | rm -f conftest.er1 | |
14015 | cat conftest.err >&5 | |
14016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14017 | (exit $ac_status); } && | |
14018 | { ac_try='test -z "$ac_c_werror_flag" | |
14019 | || test ! -s conftest.err' | |
14020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14021 | (eval $ac_try) 2>&5 | |
bec39cab AC |
14022 | ac_status=$? |
14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
14024 | (exit $ac_status); }; } && |
14025 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
14026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14027 | (eval $ac_try) 2>&5 | |
14028 | ac_status=$? | |
14029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14030 | (exit $ac_status); }; }; then | |
a3828db0 | 14031 | ac_cv_c_const=yes |
46711df8 | 14032 | else |
a3828db0 | 14033 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
14034 | sed 's/^/| /' conftest.$ac_ext >&5 |
14035 | ||
a3828db0 | 14036 | ac_cv_c_const=no |
46711df8 | 14037 | fi |
a3828db0 | 14038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 14039 | fi |
a3828db0 MK |
14040 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
14041 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14042 | if test $ac_cv_c_const = no; then | |
46711df8 | 14043 | |
a3828db0 MK |
14044 | cat >>confdefs.h <<\_ACEOF |
14045 | #define const | |
bec39cab AC |
14046 | _ACEOF |
14047 | ||
46711df8 MK |
14048 | fi |
14049 | ||
a3828db0 MK |
14050 | echo "$as_me:$LINENO: checking for inline" >&5 |
14051 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14052 | if test "${ac_cv_c_inline+set}" = set; then | |
bec39cab | 14053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 14054 | else |
a3828db0 MK |
14055 | ac_cv_c_inline=no |
14056 | for ac_kw in inline __inline__ __inline; do | |
14057 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
14058 | /* confdefs.h. */ |
14059 | _ACEOF | |
14060 | cat confdefs.h >>conftest.$ac_ext | |
14061 | cat >>conftest.$ac_ext <<_ACEOF | |
14062 | /* end confdefs.h. */ | |
a3828db0 MK |
14063 | #ifndef __cplusplus |
14064 | typedef int foo_t; | |
14065 | static $ac_kw foo_t static_foo () {return 0; } | |
14066 | $ac_kw foo_t foo () {return 0; } | |
14067 | #endif | |
14068 | ||
bec39cab AC |
14069 | _ACEOF |
14070 | rm -f conftest.$ac_objext | |
14071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14072 | (eval $ac_compile) 2>conftest.er1 | |
14073 | ac_status=$? | |
14074 | grep -v '^ *+' conftest.er1 >conftest.err | |
14075 | rm -f conftest.er1 | |
14076 | cat conftest.err >&5 | |
14077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14078 | (exit $ac_status); } && | |
14079 | { ac_try='test -z "$ac_c_werror_flag" | |
14080 | || test ! -s conftest.err' | |
14081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14082 | (eval $ac_try) 2>&5 | |
14083 | ac_status=$? | |
14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14085 | (exit $ac_status); }; } && | |
14086 | { ac_try='test -s conftest.$ac_objext' | |
14087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14088 | (eval $ac_try) 2>&5 | |
14089 | ac_status=$? | |
14090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14091 | (exit $ac_status); }; }; then | |
a3828db0 | 14092 | ac_cv_c_inline=$ac_kw; break |
bec39cab AC |
14093 | else |
14094 | echo "$as_me: failed program was:" >&5 | |
14095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14096 | ||
bec39cab AC |
14097 | fi |
14098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
a3828db0 | 14099 | done |
bec39cab | 14100 | |
74c1b268 | 14101 | fi |
a3828db0 MK |
14102 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
14103 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 14104 | |
bec39cab | 14105 | |
a3828db0 MK |
14106 | case $ac_cv_c_inline in |
14107 | inline | yes) ;; | |
14108 | *) | |
14109 | case $ac_cv_c_inline in | |
14110 | no) ac_val=;; | |
14111 | *) ac_val=$ac_cv_c_inline;; | |
14112 | esac | |
14113 | cat >>confdefs.h <<_ACEOF | |
14114 | #ifndef __cplusplus | |
14115 | #define inline $ac_val | |
14116 | #endif | |
14117 | _ACEOF | |
bec39cab AC |
14118 | ;; |
14119 | esac | |
bec39cab | 14120 | |
74c1b268 | 14121 | |
a3828db0 MK |
14122 | # ------------------------------ # |
14123 | # Checks for library functions. # | |
14124 | # ------------------------------ # | |
bec39cab | 14125 | |
a3828db0 MK |
14126 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
14127 | # for constant arguments. Useless! | |
14128 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
14129 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
14130 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
bec39cab AC |
14131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14132 | else | |
14133 | cat >conftest.$ac_ext <<_ACEOF | |
14134 | /* confdefs.h. */ | |
14135 | _ACEOF | |
14136 | cat confdefs.h >>conftest.$ac_ext | |
14137 | cat >>conftest.$ac_ext <<_ACEOF | |
14138 | /* end confdefs.h. */ | |
a3828db0 | 14139 | #include <alloca.h> |
bec39cab AC |
14140 | int |
14141 | main () | |
14142 | { | |
a3828db0 | 14143 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
14144 | ; |
14145 | return 0; | |
14146 | } | |
14147 | _ACEOF | |
14148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14150 | (eval $ac_link) 2>conftest.er1 | |
14151 | ac_status=$? | |
14152 | grep -v '^ *+' conftest.er1 >conftest.err | |
14153 | rm -f conftest.er1 | |
14154 | cat conftest.err >&5 | |
14155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14156 | (exit $ac_status); } && | |
14157 | { ac_try='test -z "$ac_c_werror_flag" | |
14158 | || test ! -s conftest.err' | |
14159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14160 | (eval $ac_try) 2>&5 | |
14161 | ac_status=$? | |
14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14163 | (exit $ac_status); }; } && | |
14164 | { ac_try='test -s conftest$ac_exeext' | |
14165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14166 | (eval $ac_try) 2>&5 | |
14167 | ac_status=$? | |
14168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14169 | (exit $ac_status); }; }; then | |
a3828db0 | 14170 | ac_cv_working_alloca_h=yes |
bec39cab AC |
14171 | else |
14172 | echo "$as_me: failed program was:" >&5 | |
14173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14174 | ||
a3828db0 | 14175 | ac_cv_working_alloca_h=no |
bec39cab AC |
14176 | fi |
14177 | rm -f conftest.err conftest.$ac_objext \ | |
14178 | conftest$ac_exeext conftest.$ac_ext | |
14179 | fi | |
a3828db0 MK |
14180 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
14181 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
14182 | if test $ac_cv_working_alloca_h = yes; then | |
14183 | ||
14184 | cat >>confdefs.h <<\_ACEOF | |
14185 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 14186 | _ACEOF |
74c1b268 | 14187 | |
74c1b268 AC |
14188 | fi |
14189 | ||
a3828db0 MK |
14190 | echo "$as_me:$LINENO: checking for alloca" >&5 |
14191 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
14192 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
bec39cab | 14193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 14194 | else |
bec39cab AC |
14195 | cat >conftest.$ac_ext <<_ACEOF |
14196 | /* confdefs.h. */ | |
14197 | _ACEOF | |
14198 | cat confdefs.h >>conftest.$ac_ext | |
14199 | cat >>conftest.$ac_ext <<_ACEOF | |
14200 | /* end confdefs.h. */ | |
a3828db0 MK |
14201 | #ifdef __GNUC__ |
14202 | # define alloca __builtin_alloca | |
14203 | #else | |
14204 | # ifdef _MSC_VER | |
14205 | # include <malloc.h> | |
14206 | # define alloca _alloca | |
14207 | # else | |
14208 | # if HAVE_ALLOCA_H | |
14209 | # include <alloca.h> | |
14210 | # else | |
14211 | # ifdef _AIX | |
14212 | #pragma alloca | |
14213 | # else | |
14214 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
14215 | char *alloca (); | |
14216 | # endif | |
14217 | # endif | |
14218 | # endif | |
97bf5e38 | 14219 | # endif |
a3828db0 | 14220 | #endif |
97bf5e38 | 14221 | |
bec39cab AC |
14222 | int |
14223 | main () | |
14224 | { | |
a3828db0 | 14225 | char *p = (char *) alloca (1); |
bec39cab AC |
14226 | ; |
14227 | return 0; | |
14228 | } | |
14229 | _ACEOF | |
a3828db0 MK |
14230 | rm -f conftest.$ac_objext conftest$ac_exeext |
14231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14232 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
14233 | ac_status=$? |
14234 | grep -v '^ *+' conftest.er1 >conftest.err | |
14235 | rm -f conftest.er1 | |
14236 | cat conftest.err >&5 | |
14237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14238 | (exit $ac_status); } && | |
14239 | { ac_try='test -z "$ac_c_werror_flag" | |
14240 | || test ! -s conftest.err' | |
14241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14242 | (eval $ac_try) 2>&5 | |
14243 | ac_status=$? | |
14244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14245 | (exit $ac_status); }; } && | |
a3828db0 | 14246 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
14247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14248 | (eval $ac_try) 2>&5 | |
14249 | ac_status=$? | |
14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14251 | (exit $ac_status); }; }; then | |
a3828db0 | 14252 | ac_cv_func_alloca_works=yes |
0200359f | 14253 | else |
bec39cab AC |
14254 | echo "$as_me: failed program was:" >&5 |
14255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 14256 | |
a3828db0 | 14257 | ac_cv_func_alloca_works=no |
0200359f | 14258 | fi |
a3828db0 MK |
14259 | rm -f conftest.err conftest.$ac_objext \ |
14260 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 14261 | fi |
a3828db0 MK |
14262 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
14263 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 14264 | |
a3828db0 MK |
14265 | if test $ac_cv_func_alloca_works = yes; then |
14266 | ||
14267 | cat >>confdefs.h <<\_ACEOF | |
14268 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
14269 | _ACEOF |
14270 | ||
a3828db0 MK |
14271 | else |
14272 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
14273 | # that cause trouble. Some versions do not even contain alloca or | |
14274 | # contain a buggy version. If you still want to use their alloca, | |
14275 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 14276 | |
a3828db0 | 14277 | ALLOCA=alloca.$ac_objext |
bec39cab | 14278 | |
a3828db0 MK |
14279 | cat >>confdefs.h <<\_ACEOF |
14280 | #define C_ALLOCA 1 | |
14281 | _ACEOF | |
bec39cab | 14282 | |
a3828db0 MK |
14283 | |
14284 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
14285 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
14286 | if test "${ac_cv_os_cray+set}" = set; then | |
bec39cab | 14287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 14288 | else |
a3828db0 | 14289 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
14290 | /* confdefs.h. */ |
14291 | _ACEOF | |
14292 | cat confdefs.h >>conftest.$ac_ext | |
14293 | cat >>conftest.$ac_ext <<_ACEOF | |
14294 | /* end confdefs.h. */ | |
a3828db0 MK |
14295 | #if defined(CRAY) && ! defined(CRAY2) |
14296 | webecray | |
14297 | #else | |
14298 | wenotbecray | |
14299 | #endif | |
14300 | ||
14301 | _ACEOF | |
14302 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14303 | $EGREP "webecray" >/dev/null 2>&1; then | |
14304 | ac_cv_os_cray=yes | |
14305 | else | |
14306 | ac_cv_os_cray=no | |
14307 | fi | |
14308 | rm -f conftest* | |
14309 | ||
14310 | fi | |
14311 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
14312 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
14313 | if test $ac_cv_os_cray = yes; then | |
14314 | for ac_func in _getb67 GETB67 getb67; do | |
14315 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14316 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14317 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14318 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14320 | else | |
14321 | cat >conftest.$ac_ext <<_ACEOF | |
14322 | /* confdefs.h. */ | |
14323 | _ACEOF | |
14324 | cat confdefs.h >>conftest.$ac_ext | |
14325 | cat >>conftest.$ac_ext <<_ACEOF | |
14326 | /* end confdefs.h. */ | |
14327 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14328 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14329 | #define $ac_func innocuous_$ac_func | |
14330 | ||
14331 | /* System header to define __stub macros and hopefully few prototypes, | |
14332 | which can conflict with char $ac_func (); below. | |
14333 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14334 | <limits.h> exists even on freestanding compilers. */ | |
14335 | ||
14336 | #ifdef __STDC__ | |
14337 | # include <limits.h> | |
14338 | #else | |
14339 | # include <assert.h> | |
14340 | #endif | |
14341 | ||
14342 | #undef $ac_func | |
14343 | ||
14344 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14345 | #ifdef __cplusplus | |
14346 | extern "C" | |
14347 | { | |
14348 | #endif | |
14349 | /* We use char because int might match the return type of a gcc2 | |
14350 | builtin and then its argument prototype would still apply. */ | |
14351 | char $ac_func (); | |
14352 | /* The GNU C library defines this for functions which it implements | |
14353 | to always fail with ENOSYS. Some functions are actually named | |
14354 | something starting with __ and the normal name is an alias. */ | |
14355 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14356 | choke me | |
14357 | #else | |
14358 | char (*f) () = $ac_func; | |
14359 | #endif | |
14360 | #ifdef __cplusplus | |
14361 | } | |
14362 | #endif | |
14363 | ||
14364 | int | |
14365 | main () | |
14366 | { | |
14367 | return f != $ac_func; | |
14368 | ; | |
14369 | return 0; | |
14370 | } | |
14371 | _ACEOF | |
14372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14374 | (eval $ac_link) 2>conftest.er1 | |
14375 | ac_status=$? | |
14376 | grep -v '^ *+' conftest.er1 >conftest.err | |
14377 | rm -f conftest.er1 | |
14378 | cat conftest.err >&5 | |
14379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14380 | (exit $ac_status); } && | |
14381 | { ac_try='test -z "$ac_c_werror_flag" | |
14382 | || test ! -s conftest.err' | |
14383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14384 | (eval $ac_try) 2>&5 | |
14385 | ac_status=$? | |
14386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14387 | (exit $ac_status); }; } && | |
14388 | { ac_try='test -s conftest$ac_exeext' | |
14389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14390 | (eval $ac_try) 2>&5 | |
14391 | ac_status=$? | |
14392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14393 | (exit $ac_status); }; }; then | |
14394 | eval "$as_ac_var=yes" | |
14395 | else | |
14396 | echo "$as_me: failed program was:" >&5 | |
14397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14398 | ||
14399 | eval "$as_ac_var=no" | |
14400 | fi | |
14401 | rm -f conftest.err conftest.$ac_objext \ | |
14402 | conftest$ac_exeext conftest.$ac_ext | |
14403 | fi | |
14404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14405 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14406 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14407 | ||
14408 | cat >>confdefs.h <<_ACEOF | |
14409 | #define CRAY_STACKSEG_END $ac_func | |
14410 | _ACEOF | |
14411 | ||
14412 | break | |
14413 | fi | |
14414 | ||
14415 | done | |
14416 | fi | |
14417 | ||
14418 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
14419 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
14420 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
14421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14422 | else | |
14423 | if test "$cross_compiling" = yes; then | |
14424 | ac_cv_c_stack_direction=0 | |
14425 | else | |
14426 | cat >conftest.$ac_ext <<_ACEOF | |
14427 | /* confdefs.h. */ | |
14428 | _ACEOF | |
14429 | cat confdefs.h >>conftest.$ac_ext | |
14430 | cat >>conftest.$ac_ext <<_ACEOF | |
14431 | /* end confdefs.h. */ | |
14432 | int | |
14433 | find_stack_direction () | |
14434 | { | |
14435 | static char *addr = 0; | |
14436 | auto char dummy; | |
14437 | if (addr == 0) | |
14438 | { | |
14439 | addr = &dummy; | |
14440 | return find_stack_direction (); | |
14441 | } | |
14442 | else | |
14443 | return (&dummy > addr) ? 1 : -1; | |
14444 | } | |
14445 | ||
14446 | int | |
14447 | main () | |
14448 | { | |
14449 | exit (find_stack_direction () < 0); | |
14450 | } | |
14451 | _ACEOF | |
14452 | rm -f conftest$ac_exeext | |
14453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14454 | (eval $ac_link) 2>&5 | |
14455 | ac_status=$? | |
14456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14457 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14459 | (eval $ac_try) 2>&5 | |
14460 | ac_status=$? | |
14461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14462 | (exit $ac_status); }; }; then | |
14463 | ac_cv_c_stack_direction=1 | |
14464 | else | |
14465 | echo "$as_me: program exited with status $ac_status" >&5 | |
14466 | echo "$as_me: failed program was:" >&5 | |
14467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14468 | ||
14469 | ( exit $ac_status ) | |
14470 | ac_cv_c_stack_direction=-1 | |
14471 | fi | |
14472 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14473 | fi | |
14474 | fi | |
14475 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
14476 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
14477 | ||
14478 | cat >>confdefs.h <<_ACEOF | |
14479 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
14480 | _ACEOF | |
14481 | ||
14482 | ||
14483 | fi | |
14484 | ||
14485 | ||
14486 | ||
14487 | for ac_header in stdlib.h unistd.h | |
14488 | do | |
14489 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14491 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14492 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14495 | fi | |
14496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14497 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14498 | else | |
14499 | # Is the header compilable? | |
14500 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14501 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14502 | cat >conftest.$ac_ext <<_ACEOF | |
14503 | /* confdefs.h. */ | |
14504 | _ACEOF | |
14505 | cat confdefs.h >>conftest.$ac_ext | |
14506 | cat >>conftest.$ac_ext <<_ACEOF | |
14507 | /* end confdefs.h. */ | |
14508 | $ac_includes_default | |
14509 | #include <$ac_header> | |
14510 | _ACEOF | |
14511 | rm -f conftest.$ac_objext | |
14512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14513 | (eval $ac_compile) 2>conftest.er1 | |
14514 | ac_status=$? | |
bec39cab AC |
14515 | grep -v '^ *+' conftest.er1 >conftest.err |
14516 | rm -f conftest.er1 | |
14517 | cat conftest.err >&5 | |
14518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14519 | (exit $ac_status); } && | |
14520 | { ac_try='test -z "$ac_c_werror_flag" | |
14521 | || test ! -s conftest.err' | |
14522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14523 | (eval $ac_try) 2>&5 | |
14524 | ac_status=$? | |
14525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14526 | (exit $ac_status); }; } && | |
14527 | { ac_try='test -s conftest.$ac_objext' | |
14528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14529 | (eval $ac_try) 2>&5 | |
14530 | ac_status=$? | |
14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14532 | (exit $ac_status); }; }; then | |
14533 | ac_header_compiler=yes | |
14534 | else | |
14535 | echo "$as_me: failed program was:" >&5 | |
14536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14537 | ||
14538 | ac_header_compiler=no | |
14539 | fi | |
14540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14541 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14542 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14543 | ||
14544 | # Is the header present? | |
14545 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14546 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14547 | cat >conftest.$ac_ext <<_ACEOF | |
14548 | /* confdefs.h. */ | |
14549 | _ACEOF | |
14550 | cat confdefs.h >>conftest.$ac_ext | |
14551 | cat >>conftest.$ac_ext <<_ACEOF | |
14552 | /* end confdefs.h. */ | |
14553 | #include <$ac_header> | |
14554 | _ACEOF | |
14555 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14556 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14557 | ac_status=$? | |
14558 | grep -v '^ *+' conftest.er1 >conftest.err | |
14559 | rm -f conftest.er1 | |
14560 | cat conftest.err >&5 | |
14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14562 | (exit $ac_status); } >/dev/null; then | |
14563 | if test -s conftest.err; then | |
14564 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14565 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14566 | else | |
14567 | ac_cpp_err= | |
14568 | fi | |
14569 | else | |
14570 | ac_cpp_err=yes | |
14571 | fi | |
14572 | if test -z "$ac_cpp_err"; then | |
14573 | ac_header_preproc=yes | |
97bf5e38 | 14574 | else |
bec39cab AC |
14575 | echo "$as_me: failed program was:" >&5 |
14576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14577 | ||
14578 | ac_header_preproc=no | |
72473524 | 14579 | fi |
bec39cab AC |
14580 | rm -f conftest.err conftest.$ac_ext |
14581 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14582 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 14583 | |
bec39cab AC |
14584 | # So? What about this header? |
14585 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14586 | yes:no: ) | |
14587 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14588 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14590 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14591 | ac_header_preproc=yes | |
14592 | ;; | |
14593 | no:yes:* ) | |
14594 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14595 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14596 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14597 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14598 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14599 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14600 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14601 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14603 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14604 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14605 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14606 | ( | |
14607 | cat <<\_ASBOX | |
14608 | ## ------------------------------------------ ## | |
14609 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14610 | ## ------------------------------------------ ## | |
14611 | _ASBOX | |
14612 | ) | | |
14613 | sed "s/^/$as_me: WARNING: /" >&2 | |
14614 | ;; | |
14615 | esac | |
14616 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14617 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14618 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 14620 | else |
bec39cab AC |
14621 | eval "$as_ac_Header=\$ac_header_preproc" |
14622 | fi | |
14623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14624 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14625 | ||
14626 | fi | |
14627 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14628 | cat >>confdefs.h <<_ACEOF | |
14629 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14630 | _ACEOF | |
14631 | ||
14632 | fi | |
14633 | ||
14634 | done | |
14635 | ||
14636 | ||
a3828db0 | 14637 | for ac_func in getpagesize |
bec39cab AC |
14638 | do |
14639 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14640 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14641 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14642 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14644 | else | |
14645 | cat >conftest.$ac_ext <<_ACEOF | |
14646 | /* confdefs.h. */ | |
14647 | _ACEOF | |
14648 | cat confdefs.h >>conftest.$ac_ext | |
14649 | cat >>conftest.$ac_ext <<_ACEOF | |
14650 | /* end confdefs.h. */ | |
14651 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14652 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14653 | #define $ac_func innocuous_$ac_func | |
14654 | ||
97bf5e38 | 14655 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14656 | which can conflict with char $ac_func (); below. |
14657 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14658 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 14659 | |
bec39cab AC |
14660 | #ifdef __STDC__ |
14661 | # include <limits.h> | |
14662 | #else | |
14663 | # include <assert.h> | |
14664 | #endif | |
97bf5e38 | 14665 | |
bec39cab AC |
14666 | #undef $ac_func |
14667 | ||
14668 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14669 | #ifdef __cplusplus | |
14670 | extern "C" | |
14671 | { | |
14672 | #endif | |
14673 | /* We use char because int might match the return type of a gcc2 | |
14674 | builtin and then its argument prototype would still apply. */ | |
14675 | char $ac_func (); | |
97bf5e38 MK |
14676 | /* The GNU C library defines this for functions which it implements |
14677 | to always fail with ENOSYS. Some functions are actually named | |
14678 | something starting with __ and the normal name is an alias. */ | |
bec39cab | 14679 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 MK |
14680 | choke me |
14681 | #else | |
bec39cab AC |
14682 | char (*f) () = $ac_func; |
14683 | #endif | |
14684 | #ifdef __cplusplus | |
14685 | } | |
97bf5e38 MK |
14686 | #endif |
14687 | ||
bec39cab AC |
14688 | int |
14689 | main () | |
14690 | { | |
14691 | return f != $ac_func; | |
14692 | ; | |
14693 | return 0; | |
14694 | } | |
14695 | _ACEOF | |
14696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14698 | (eval $ac_link) 2>conftest.er1 | |
14699 | ac_status=$? | |
14700 | grep -v '^ *+' conftest.er1 >conftest.err | |
14701 | rm -f conftest.er1 | |
14702 | cat conftest.err >&5 | |
14703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14704 | (exit $ac_status); } && | |
14705 | { ac_try='test -z "$ac_c_werror_flag" | |
14706 | || test ! -s conftest.err' | |
14707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14708 | (eval $ac_try) 2>&5 | |
14709 | ac_status=$? | |
14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14711 | (exit $ac_status); }; } && | |
14712 | { ac_try='test -s conftest$ac_exeext' | |
14713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14714 | (eval $ac_try) 2>&5 | |
14715 | ac_status=$? | |
14716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14717 | (exit $ac_status); }; }; then | |
14718 | eval "$as_ac_var=yes" | |
14719 | else | |
14720 | echo "$as_me: failed program was:" >&5 | |
14721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14722 | ||
14723 | eval "$as_ac_var=no" | |
14724 | fi | |
14725 | rm -f conftest.err conftest.$ac_objext \ | |
14726 | conftest$ac_exeext conftest.$ac_ext | |
14727 | fi | |
14728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14729 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14730 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14731 | cat >>confdefs.h <<_ACEOF | |
14732 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14733 | _ACEOF | |
14734 | ||
2b2d558c | 14735 | fi |
bec39cab | 14736 | done |
2b2d558c | 14737 | |
a3828db0 MK |
14738 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
14739 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
14740 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
bec39cab | 14741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 14742 | else |
bec39cab | 14743 | if test "$cross_compiling" = yes; then |
a3828db0 | 14744 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
14745 | else |
14746 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 14747 | /* confdefs.h. */ |
bec39cab AC |
14748 | _ACEOF |
14749 | cat confdefs.h >>conftest.$ac_ext | |
14750 | cat >>conftest.$ac_ext <<_ACEOF | |
14751 | /* end confdefs.h. */ | |
a3828db0 MK |
14752 | $ac_includes_default |
14753 | /* malloc might have been renamed as rpl_malloc. */ | |
14754 | #undef malloc | |
bec39cab | 14755 | |
a3828db0 MK |
14756 | /* Thanks to Mike Haertel and Jim Avera for this test. |
14757 | Here is a matrix of mmap possibilities: | |
14758 | mmap private not fixed | |
14759 | mmap private fixed at somewhere currently unmapped | |
14760 | mmap private fixed at somewhere already mapped | |
14761 | mmap shared not fixed | |
14762 | mmap shared fixed at somewhere currently unmapped | |
14763 | mmap shared fixed at somewhere already mapped | |
14764 | For private mappings, we should verify that changes cannot be read() | |
14765 | back from the file, nor mmap's back from the file at a different | |
14766 | address. (There have been systems where private was not correctly | |
14767 | implemented like the infamous i386 svr4.0, and systems where the | |
14768 | VM page cache was not coherent with the file system buffer cache | |
14769 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
14770 | For shared mappings, we should conversely verify that changes get | |
14771 | propagated back to all the places they're supposed to be. | |
7dfa765c | 14772 | |
a3828db0 MK |
14773 | Grep wants private fixed already mapped. |
14774 | The main things grep needs to know about mmap are: | |
14775 | * does it exist and is it safe to write into the mmap'd area | |
14776 | * how to use it (BSD variants) */ | |
7dfa765c | 14777 | |
a3828db0 MK |
14778 | #include <fcntl.h> |
14779 | #include <sys/mman.h> | |
7dfa765c | 14780 | |
a3828db0 MK |
14781 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
14782 | char *malloc (); | |
14783 | #endif | |
7dfa765c | 14784 | |
a3828db0 MK |
14785 | /* This mess was copied from the GNU getpagesize.h. */ |
14786 | #if !HAVE_GETPAGESIZE | |
14787 | /* Assume that all systems that can run configure have sys/param.h. */ | |
14788 | # if !HAVE_SYS_PARAM_H | |
14789 | # define HAVE_SYS_PARAM_H 1 | |
14790 | # endif | |
64bb1671 | 14791 | |
a3828db0 MK |
14792 | # ifdef _SC_PAGESIZE |
14793 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14794 | # else /* no _SC_PAGESIZE */ | |
14795 | # if HAVE_SYS_PARAM_H | |
14796 | # include <sys/param.h> | |
14797 | # ifdef EXEC_PAGESIZE | |
14798 | # define getpagesize() EXEC_PAGESIZE | |
14799 | # else /* no EXEC_PAGESIZE */ | |
14800 | # ifdef NBPG | |
14801 | # define getpagesize() NBPG * CLSIZE | |
14802 | # ifndef CLSIZE | |
14803 | # define CLSIZE 1 | |
14804 | # endif /* no CLSIZE */ | |
14805 | # else /* no NBPG */ | |
14806 | # ifdef NBPC | |
14807 | # define getpagesize() NBPC | |
14808 | # else /* no NBPC */ | |
14809 | # ifdef PAGESIZE | |
14810 | # define getpagesize() PAGESIZE | |
14811 | # endif /* PAGESIZE */ | |
14812 | # endif /* no NBPC */ | |
14813 | # endif /* no NBPG */ | |
14814 | # endif /* no EXEC_PAGESIZE */ | |
14815 | # else /* no HAVE_SYS_PARAM_H */ | |
14816 | # define getpagesize() 8192 /* punt totally */ | |
14817 | # endif /* no HAVE_SYS_PARAM_H */ | |
14818 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 14819 | |
a3828db0 | 14820 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 14821 | |
a3828db0 MK |
14822 | int |
14823 | main () | |
14824 | { | |
14825 | char *data, *data2, *data3; | |
14826 | int i, pagesize; | |
14827 | int fd; | |
97bf5e38 | 14828 | |
a3828db0 MK |
14829 | pagesize = getpagesize (); |
14830 | ||
14831 | /* First, make a file with some known garbage in it. */ | |
14832 | data = (char *) malloc (pagesize); | |
14833 | if (!data) | |
14834 | exit (1); | |
14835 | for (i = 0; i < pagesize; ++i) | |
14836 | *(data + i) = rand (); | |
14837 | umask (0); | |
14838 | fd = creat ("conftest.mmap", 0600); | |
14839 | if (fd < 0) | |
14840 | exit (1); | |
14841 | if (write (fd, data, pagesize) != pagesize) | |
14842 | exit (1); | |
14843 | close (fd); | |
14844 | ||
14845 | /* Next, try to mmap the file at a fixed address which already has | |
14846 | something else allocated at it. If we can, also make sure that | |
14847 | we see the same garbage. */ | |
14848 | fd = open ("conftest.mmap", O_RDWR); | |
14849 | if (fd < 0) | |
14850 | exit (1); | |
14851 | data2 = (char *) malloc (2 * pagesize); | |
14852 | if (!data2) | |
14853 | exit (1); | |
14854 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
14855 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
14856 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
14857 | exit (1); | |
14858 | for (i = 0; i < pagesize; ++i) | |
14859 | if (*(data + i) != *(data2 + i)) | |
14860 | exit (1); | |
14861 | ||
14862 | /* Finally, make sure that changes to the mapped area do not | |
14863 | percolate back to the file as seen by read(). (This is a bug on | |
14864 | some variants of i386 svr4.0.) */ | |
14865 | for (i = 0; i < pagesize; ++i) | |
14866 | *(data2 + i) = *(data2 + i) + 1; | |
14867 | data3 = (char *) malloc (pagesize); | |
14868 | if (!data3) | |
14869 | exit (1); | |
14870 | if (read (fd, data3, pagesize) != pagesize) | |
14871 | exit (1); | |
14872 | for (i = 0; i < pagesize; ++i) | |
14873 | if (*(data + i) != *(data3 + i)) | |
14874 | exit (1); | |
14875 | close (fd); | |
14876 | exit (0); | |
97bf5e38 | 14877 | } |
bec39cab AC |
14878 | _ACEOF |
14879 | rm -f conftest$ac_exeext | |
14880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14881 | (eval $ac_link) 2>&5 | |
14882 | ac_status=$? | |
14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14884 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14886 | (eval $ac_try) 2>&5 | |
14887 | ac_status=$? | |
14888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14889 | (exit $ac_status); }; }; then | |
a3828db0 | 14890 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 14891 | else |
bec39cab AC |
14892 | echo "$as_me: program exited with status $ac_status" >&5 |
14893 | echo "$as_me: failed program was:" >&5 | |
14894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14895 | ||
14896 | ( exit $ac_status ) | |
a3828db0 | 14897 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 14898 | fi |
a3828db0 | 14899 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 14900 | fi |
a3828db0 MK |
14901 | fi |
14902 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
14903 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
14904 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
bec39cab AC |
14905 | |
14906 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 14907 | #define HAVE_MMAP 1 |
bec39cab | 14908 | _ACEOF |
0afdd437 MK |
14909 | |
14910 | fi | |
a3828db0 | 14911 | rm -f conftest.mmap |
0afdd437 | 14912 | |
a3828db0 MK |
14913 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
14914 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
14915 | if test "${ac_cv_type_pid_t+set}" = set; then | |
bec39cab AC |
14916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14917 | else | |
14918 | cat >conftest.$ac_ext <<_ACEOF | |
14919 | /* confdefs.h. */ | |
14920 | _ACEOF | |
14921 | cat confdefs.h >>conftest.$ac_ext | |
14922 | cat >>conftest.$ac_ext <<_ACEOF | |
14923 | /* end confdefs.h. */ | |
a3828db0 | 14924 | $ac_includes_default |
bec39cab AC |
14925 | int |
14926 | main () | |
14927 | { | |
a3828db0 MK |
14928 | if ((pid_t *) 0) |
14929 | return 0; | |
14930 | if (sizeof (pid_t)) | |
14931 | return 0; | |
bec39cab AC |
14932 | ; |
14933 | return 0; | |
14934 | } | |
14935 | _ACEOF | |
a3828db0 MK |
14936 | rm -f conftest.$ac_objext |
14937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14938 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
14939 | ac_status=$? |
14940 | grep -v '^ *+' conftest.er1 >conftest.err | |
14941 | rm -f conftest.er1 | |
14942 | cat conftest.err >&5 | |
14943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14944 | (exit $ac_status); } && | |
14945 | { ac_try='test -z "$ac_c_werror_flag" | |
14946 | || test ! -s conftest.err' | |
14947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14948 | (eval $ac_try) 2>&5 | |
14949 | ac_status=$? | |
14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14951 | (exit $ac_status); }; } && | |
a3828db0 | 14952 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
14953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14954 | (eval $ac_try) 2>&5 | |
14955 | ac_status=$? | |
14956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14957 | (exit $ac_status); }; }; then | |
a3828db0 | 14958 | ac_cv_type_pid_t=yes |
bec39cab AC |
14959 | else |
14960 | echo "$as_me: failed program was:" >&5 | |
14961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14962 | ||
a3828db0 | 14963 | ac_cv_type_pid_t=no |
bec39cab | 14964 | fi |
a3828db0 | 14965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 14966 | fi |
a3828db0 MK |
14967 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
14968 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
14969 | if test $ac_cv_type_pid_t = yes; then | |
14970 | : | |
14971 | else | |
14972 | ||
14973 | cat >>confdefs.h <<_ACEOF | |
14974 | #define pid_t int | |
bec39cab | 14975 | _ACEOF |
7e89e357 | 14976 | |
7e89e357 JT |
14977 | fi |
14978 | ||
bec39cab | 14979 | |
a3828db0 MK |
14980 | |
14981 | for ac_header in unistd.h vfork.h | |
7be570e7 | 14982 | do |
a3828db0 MK |
14983 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
14984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14985 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14987 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 14988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
14989 | fi |
14990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14991 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 14992 | else |
a3828db0 MK |
14993 | # Is the header compilable? |
14994 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14995 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14996 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
14997 | /* confdefs.h. */ |
14998 | _ACEOF | |
14999 | cat confdefs.h >>conftest.$ac_ext | |
15000 | cat >>conftest.$ac_ext <<_ACEOF | |
15001 | /* end confdefs.h. */ | |
a3828db0 MK |
15002 | $ac_includes_default |
15003 | #include <$ac_header> | |
bec39cab | 15004 | _ACEOF |
a3828db0 MK |
15005 | rm -f conftest.$ac_objext |
15006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15007 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
15008 | ac_status=$? |
15009 | grep -v '^ *+' conftest.er1 >conftest.err | |
15010 | rm -f conftest.er1 | |
15011 | cat conftest.err >&5 | |
15012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15013 | (exit $ac_status); } && | |
15014 | { ac_try='test -z "$ac_c_werror_flag" | |
15015 | || test ! -s conftest.err' | |
15016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15017 | (eval $ac_try) 2>&5 | |
15018 | ac_status=$? | |
15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15020 | (exit $ac_status); }; } && | |
a3828db0 | 15021 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
15022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15023 | (eval $ac_try) 2>&5 | |
15024 | ac_status=$? | |
15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15026 | (exit $ac_status); }; }; then | |
a3828db0 | 15027 | ac_header_compiler=yes |
bec39cab AC |
15028 | else |
15029 | echo "$as_me: failed program was:" >&5 | |
15030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15031 | ||
a3828db0 | 15032 | ac_header_compiler=no |
bec39cab | 15033 | fi |
a3828db0 MK |
15034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15035 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15036 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15037 | ||
15038 | # Is the header present? | |
15039 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15040 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15041 | cat >conftest.$ac_ext <<_ACEOF | |
15042 | /* confdefs.h. */ | |
15043 | _ACEOF | |
15044 | cat confdefs.h >>conftest.$ac_ext | |
15045 | cat >>conftest.$ac_ext <<_ACEOF | |
15046 | /* end confdefs.h. */ | |
15047 | #include <$ac_header> | |
15048 | _ACEOF | |
15049 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15050 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15051 | ac_status=$? | |
15052 | grep -v '^ *+' conftest.er1 >conftest.err | |
15053 | rm -f conftest.er1 | |
15054 | cat conftest.err >&5 | |
15055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15056 | (exit $ac_status); } >/dev/null; then | |
15057 | if test -s conftest.err; then | |
15058 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15059 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15060 | else | |
15061 | ac_cpp_err= | |
15062 | fi | |
15063 | else | |
15064 | ac_cpp_err=yes | |
15065 | fi | |
15066 | if test -z "$ac_cpp_err"; then | |
15067 | ac_header_preproc=yes | |
15068 | else | |
15069 | echo "$as_me: failed program was:" >&5 | |
15070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15071 | ||
15072 | ac_header_preproc=no | |
15073 | fi | |
15074 | rm -f conftest.err conftest.$ac_ext | |
15075 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15076 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15077 | ||
15078 | # So? What about this header? | |
15079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15080 | yes:no: ) | |
15081 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15082 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15084 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15085 | ac_header_preproc=yes | |
15086 | ;; | |
15087 | no:yes:* ) | |
15088 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15089 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15090 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15091 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15092 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15093 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15094 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15095 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15096 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15097 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15098 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15099 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15100 | ( | |
15101 | cat <<\_ASBOX | |
15102 | ## ------------------------------------------ ## | |
15103 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15104 | ## ------------------------------------------ ## | |
15105 | _ASBOX | |
15106 | ) | | |
15107 | sed "s/^/$as_me: WARNING: /" >&2 | |
15108 | ;; | |
15109 | esac | |
15110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15114 | else | |
15115 | eval "$as_ac_Header=\$ac_header_preproc" | |
15116 | fi | |
15117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15118 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15119 | ||
bec39cab | 15120 | fi |
a3828db0 | 15121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 15122 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 15123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 15124 | _ACEOF |
14abd0fb | 15125 | |
14abd0fb | 15126 | fi |
a3828db0 | 15127 | |
14abd0fb MK |
15128 | done |
15129 | ||
bec39cab | 15130 | |
a3828db0 MK |
15131 | |
15132 | for ac_func in fork vfork | |
14abd0fb | 15133 | do |
bec39cab AC |
15134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15135 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15137 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15139 | else | |
15140 | cat >conftest.$ac_ext <<_ACEOF | |
15141 | /* confdefs.h. */ | |
15142 | _ACEOF | |
15143 | cat confdefs.h >>conftest.$ac_ext | |
15144 | cat >>conftest.$ac_ext <<_ACEOF | |
15145 | /* end confdefs.h. */ | |
15146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15148 | #define $ac_func innocuous_$ac_func | |
15149 | ||
14abd0fb | 15150 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15151 | which can conflict with char $ac_func (); below. |
15152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15153 | <limits.h> exists even on freestanding compilers. */ | |
15154 | ||
15155 | #ifdef __STDC__ | |
15156 | # include <limits.h> | |
15157 | #else | |
15158 | # include <assert.h> | |
15159 | #endif | |
14abd0fb | 15160 | |
bec39cab | 15161 | #undef $ac_func |
14abd0fb | 15162 | |
bec39cab AC |
15163 | /* Override any gcc2 internal prototype to avoid an error. */ |
15164 | #ifdef __cplusplus | |
15165 | extern "C" | |
15166 | { | |
15167 | #endif | |
15168 | /* We use char because int might match the return type of a gcc2 | |
15169 | builtin and then its argument prototype would still apply. */ | |
15170 | char $ac_func (); | |
14abd0fb MK |
15171 | /* The GNU C library defines this for functions which it implements |
15172 | to always fail with ENOSYS. Some functions are actually named | |
15173 | something starting with __ and the normal name is an alias. */ | |
15174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15175 | choke me | |
15176 | #else | |
bec39cab AC |
15177 | char (*f) () = $ac_func; |
15178 | #endif | |
15179 | #ifdef __cplusplus | |
15180 | } | |
14abd0fb MK |
15181 | #endif |
15182 | ||
bec39cab AC |
15183 | int |
15184 | main () | |
15185 | { | |
15186 | return f != $ac_func; | |
15187 | ; | |
15188 | return 0; | |
15189 | } | |
15190 | _ACEOF | |
15191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15193 | (eval $ac_link) 2>conftest.er1 | |
15194 | ac_status=$? | |
15195 | grep -v '^ *+' conftest.er1 >conftest.err | |
15196 | rm -f conftest.er1 | |
15197 | cat conftest.err >&5 | |
15198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15199 | (exit $ac_status); } && | |
15200 | { ac_try='test -z "$ac_c_werror_flag" | |
15201 | || test ! -s conftest.err' | |
15202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15203 | (eval $ac_try) 2>&5 | |
15204 | ac_status=$? | |
15205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15206 | (exit $ac_status); }; } && | |
15207 | { ac_try='test -s conftest$ac_exeext' | |
15208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15209 | (eval $ac_try) 2>&5 | |
15210 | ac_status=$? | |
15211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15212 | (exit $ac_status); }; }; then | |
15213 | eval "$as_ac_var=yes" | |
15214 | else | |
15215 | echo "$as_me: failed program was:" >&5 | |
15216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15217 | ||
15218 | eval "$as_ac_var=no" | |
15219 | fi | |
15220 | rm -f conftest.err conftest.$ac_objext \ | |
15221 | conftest$ac_exeext conftest.$ac_ext | |
15222 | fi | |
15223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15224 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15225 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15226 | cat >>confdefs.h <<_ACEOF | |
15227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15228 | _ACEOF | |
7be570e7 | 15229 | |
7be570e7 JM |
15230 | fi |
15231 | done | |
15232 | ||
a3828db0 MK |
15233 | if test "x$ac_cv_func_fork" = xyes; then |
15234 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
15235 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
15236 | if test "${ac_cv_func_fork_works+set}" = set; then | |
15237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15238 | else | |
15239 | if test "$cross_compiling" = yes; then | |
15240 | ac_cv_func_fork_works=cross | |
15241 | else | |
15242 | cat >conftest.$ac_ext <<_ACEOF | |
15243 | /* By Ruediger Kuhlmann. */ | |
15244 | #include <sys/types.h> | |
15245 | #if HAVE_UNISTD_H | |
15246 | # include <unistd.h> | |
15247 | #endif | |
15248 | /* Some systems only have a dummy stub for fork() */ | |
15249 | int main () | |
15250 | { | |
15251 | if (fork() < 0) | |
15252 | exit (1); | |
15253 | exit (0); | |
15254 | } | |
15255 | _ACEOF | |
15256 | rm -f conftest$ac_exeext | |
15257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15258 | (eval $ac_link) 2>&5 | |
15259 | ac_status=$? | |
15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15261 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15263 | (eval $ac_try) 2>&5 | |
15264 | ac_status=$? | |
15265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15266 | (exit $ac_status); }; }; then | |
15267 | ac_cv_func_fork_works=yes | |
15268 | else | |
15269 | echo "$as_me: program exited with status $ac_status" >&5 | |
15270 | echo "$as_me: failed program was:" >&5 | |
15271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 15272 | |
a3828db0 MK |
15273 | ( exit $ac_status ) |
15274 | ac_cv_func_fork_works=no | |
15275 | fi | |
15276 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15277 | fi | |
15278 | fi | |
15279 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
15280 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
15281 | ||
15282 | else | |
15283 | ac_cv_func_fork_works=$ac_cv_func_fork | |
15284 | fi | |
15285 | if test "x$ac_cv_func_fork_works" = xcross; then | |
15286 | case $host in | |
15287 | *-*-amigaos* | *-*-msdosdjgpp*) | |
15288 | # Override, as these systems have only a dummy fork() stub | |
15289 | ac_cv_func_fork_works=no | |
15290 | ;; | |
15291 | *) | |
15292 | ac_cv_func_fork_works=yes | |
15293 | ;; | |
15294 | esac | |
15295 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
15296 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
15297 | fi | |
15298 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
15299 | if test "x$ac_cv_func_vfork" = xyes; then | |
15300 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
15301 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
15302 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
bec39cab | 15303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
15304 | else |
15305 | if test "$cross_compiling" = yes; then | |
15306 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
15307 | else |
15308 | cat >conftest.$ac_ext <<_ACEOF | |
15309 | /* confdefs.h. */ | |
15310 | _ACEOF | |
15311 | cat confdefs.h >>conftest.$ac_ext | |
15312 | cat >>conftest.$ac_ext <<_ACEOF | |
15313 | /* end confdefs.h. */ | |
a3828db0 MK |
15314 | /* Thanks to Paul Eggert for this test. */ |
15315 | #include <stdio.h> | |
15316 | #include <stdlib.h> | |
15317 | #include <sys/types.h> | |
15318 | #include <sys/stat.h> | |
15319 | #include <sys/wait.h> | |
15320 | #if HAVE_UNISTD_H | |
15321 | # include <unistd.h> | |
bec39cab | 15322 | #endif |
a3828db0 MK |
15323 | #if HAVE_VFORK_H |
15324 | # include <vfork.h> | |
bec39cab | 15325 | #endif |
a3828db0 MK |
15326 | /* On some sparc systems, changes by the child to local and incoming |
15327 | argument registers are propagated back to the parent. The compiler | |
15328 | is told about this with #include <vfork.h>, but some compilers | |
15329 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
15330 | static variable whose address is put into a register that is | |
15331 | clobbered by the vfork. */ | |
15332 | static void | |
bec39cab | 15333 | #ifdef __cplusplus |
a3828db0 MK |
15334 | sparc_address_test (int arg) |
15335 | # else | |
15336 | sparc_address_test (arg) int arg; | |
c906108c | 15337 | #endif |
a3828db0 MK |
15338 | { |
15339 | static pid_t child; | |
15340 | if (!child) { | |
15341 | child = vfork (); | |
15342 | if (child < 0) { | |
15343 | perror ("vfork"); | |
15344 | _exit(2); | |
15345 | } | |
15346 | if (!child) { | |
15347 | arg = getpid(); | |
15348 | write(-1, "", 0); | |
15349 | _exit (arg); | |
15350 | } | |
15351 | } | |
15352 | } | |
97bf5e38 | 15353 | |
bec39cab AC |
15354 | int |
15355 | main () | |
15356 | { | |
a3828db0 MK |
15357 | pid_t parent = getpid (); |
15358 | pid_t child; | |
15359 | ||
15360 | sparc_address_test (0); | |
15361 | ||
15362 | child = vfork (); | |
15363 | ||
15364 | if (child == 0) { | |
15365 | /* Here is another test for sparc vfork register problems. This | |
15366 | test uses lots of local variables, at least as many local | |
15367 | variables as main has allocated so far including compiler | |
15368 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
15369 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
15370 | reuse the register of parent for one of the local variables, | |
15371 | since it will think that parent can't possibly be used any more | |
15372 | in this routine. Assigning to the local variable will thus | |
15373 | munge parent in the parent process. */ | |
15374 | pid_t | |
15375 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
15376 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
15377 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
15378 | use the same hardware register for all 8 local variables. */ | |
15379 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
15380 | || p != p5 || p != p6 || p != p7) | |
15381 | _exit(1); | |
15382 | ||
15383 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
15384 | from child file descriptors. If the child closes a descriptor | |
15385 | before it execs or exits, this munges the parent's descriptor | |
15386 | as well. Test for this by closing stdout in the child. */ | |
15387 | _exit(close(fileno(stdout)) != 0); | |
15388 | } else { | |
15389 | int status; | |
15390 | struct stat st; | |
15391 | ||
15392 | while (wait(&status) != child) | |
15393 | ; | |
15394 | exit( | |
15395 | /* Was there some problem with vforking? */ | |
15396 | child < 0 | |
15397 | ||
15398 | /* Did the child fail? (This shouldn't happen.) */ | |
15399 | || status | |
15400 | ||
15401 | /* Did the vfork/compiler bug occur? */ | |
15402 | || parent != getpid() | |
15403 | ||
15404 | /* Did the file descriptor bug occur? */ | |
15405 | || fstat(fileno(stdout), &st) != 0 | |
15406 | ); | |
15407 | } | |
bec39cab AC |
15408 | } |
15409 | _ACEOF | |
a3828db0 | 15410 | rm -f conftest$ac_exeext |
bec39cab | 15411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 15412 | (eval $ac_link) 2>&5 |
bec39cab AC |
15413 | ac_status=$? |
15414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 15415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
15416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15417 | (eval $ac_try) 2>&5 | |
15418 | ac_status=$? | |
15419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15420 | (exit $ac_status); }; }; then | |
a3828db0 MK |
15421 | ac_cv_func_vfork_works=yes |
15422 | else | |
15423 | echo "$as_me: program exited with status $ac_status" >&5 | |
15424 | echo "$as_me: failed program was:" >&5 | |
15425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15426 | ||
15427 | ( exit $ac_status ) | |
15428 | ac_cv_func_vfork_works=no | |
15429 | fi | |
15430 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15431 | fi | |
15432 | fi | |
15433 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
15434 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
15435 | ||
15436 | fi; | |
15437 | if test "x$ac_cv_func_fork_works" = xcross; then | |
15438 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
15439 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
15440 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
15441 | fi | |
15442 | ||
15443 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
15444 | ||
15445 | cat >>confdefs.h <<\_ACEOF | |
15446 | #define HAVE_WORKING_VFORK 1 | |
15447 | _ACEOF | |
15448 | ||
bec39cab | 15449 | else |
bec39cab | 15450 | |
a3828db0 MK |
15451 | cat >>confdefs.h <<\_ACEOF |
15452 | #define vfork fork | |
15453 | _ACEOF | |
15454 | ||
bec39cab | 15455 | fi |
a3828db0 MK |
15456 | if test "x$ac_cv_func_fork_works" = xyes; then |
15457 | ||
15458 | cat >>confdefs.h <<\_ACEOF | |
15459 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 15460 | _ACEOF |
c906108c | 15461 | |
c906108c SS |
15462 | fi |
15463 | ||
bec39cab AC |
15464 | |
15465 | ||
a3828db0 | 15466 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 15467 | do |
bec39cab AC |
15468 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15469 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15470 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15471 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15473 | else | |
15474 | cat >conftest.$ac_ext <<_ACEOF | |
15475 | /* confdefs.h. */ | |
15476 | _ACEOF | |
15477 | cat confdefs.h >>conftest.$ac_ext | |
15478 | cat >>conftest.$ac_ext <<_ACEOF | |
15479 | /* end confdefs.h. */ | |
15480 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15481 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15482 | #define $ac_func innocuous_$ac_func | |
15483 | ||
d3ea6809 MM |
15484 | /* System header to define __stub macros and hopefully few prototypes, |
15485 | which can conflict with char $ac_func (); below. | |
15486 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15487 | <limits.h> exists even on freestanding compilers. */ | |
15488 | ||
15489 | #ifdef __STDC__ | |
15490 | # include <limits.h> | |
15491 | #else | |
15492 | # include <assert.h> | |
15493 | #endif | |
15494 | ||
15495 | #undef $ac_func | |
15496 | ||
15497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15498 | #ifdef __cplusplus | |
15499 | extern "C" | |
15500 | { | |
15501 | #endif | |
15502 | /* We use char because int might match the return type of a gcc2 | |
15503 | builtin and then its argument prototype would still apply. */ | |
15504 | char $ac_func (); | |
15505 | /* The GNU C library defines this for functions which it implements | |
15506 | to always fail with ENOSYS. Some functions are actually named | |
15507 | something starting with __ and the normal name is an alias. */ | |
15508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15509 | choke me | |
15510 | #else | |
15511 | char (*f) () = $ac_func; | |
15512 | #endif | |
15513 | #ifdef __cplusplus | |
15514 | } | |
15515 | #endif | |
15516 | ||
15517 | int | |
15518 | main () | |
15519 | { | |
15520 | return f != $ac_func; | |
15521 | ; | |
15522 | return 0; | |
15523 | } | |
15524 | _ACEOF | |
15525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15527 | (eval $ac_link) 2>conftest.er1 | |
15528 | ac_status=$? | |
15529 | grep -v '^ *+' conftest.er1 >conftest.err | |
15530 | rm -f conftest.er1 | |
15531 | cat conftest.err >&5 | |
15532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15533 | (exit $ac_status); } && | |
15534 | { ac_try='test -z "$ac_c_werror_flag" | |
15535 | || test ! -s conftest.err' | |
15536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15537 | (eval $ac_try) 2>&5 | |
15538 | ac_status=$? | |
15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15540 | (exit $ac_status); }; } && | |
15541 | { ac_try='test -s conftest$ac_exeext' | |
15542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15543 | (eval $ac_try) 2>&5 | |
15544 | ac_status=$? | |
15545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15546 | (exit $ac_status); }; }; then | |
15547 | eval "$as_ac_var=yes" | |
15548 | else | |
15549 | echo "$as_me: failed program was:" >&5 | |
15550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15551 | ||
15552 | eval "$as_ac_var=no" | |
15553 | fi | |
15554 | rm -f conftest.err conftest.$ac_objext \ | |
15555 | conftest$ac_exeext conftest.$ac_ext | |
15556 | fi | |
15557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15559 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15560 | cat >>confdefs.h <<_ACEOF | |
15561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15562 | _ACEOF | |
15563 | ||
15564 | fi | |
15565 | done | |
15566 | ||
15567 | ||
15568 | ||
15569 | for ac_func in getuid getgid | |
15570 | do | |
15571 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15572 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15573 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15574 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15576 | else | |
15577 | cat >conftest.$ac_ext <<_ACEOF | |
15578 | /* confdefs.h. */ | |
15579 | _ACEOF | |
15580 | cat confdefs.h >>conftest.$ac_ext | |
15581 | cat >>conftest.$ac_ext <<_ACEOF | |
15582 | /* end confdefs.h. */ | |
15583 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15584 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15585 | #define $ac_func innocuous_$ac_func | |
15586 | ||
97bf5e38 | 15587 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15588 | which can conflict with char $ac_func (); below. |
15589 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15590 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 15591 | |
bec39cab AC |
15592 | #ifdef __STDC__ |
15593 | # include <limits.h> | |
15594 | #else | |
15595 | # include <assert.h> | |
15596 | #endif | |
97bf5e38 | 15597 | |
bec39cab AC |
15598 | #undef $ac_func |
15599 | ||
15600 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15601 | #ifdef __cplusplus | |
15602 | extern "C" | |
15603 | { | |
15604 | #endif | |
15605 | /* We use char because int might match the return type of a gcc2 | |
15606 | builtin and then its argument prototype would still apply. */ | |
15607 | char $ac_func (); | |
97bf5e38 MK |
15608 | /* The GNU C library defines this for functions which it implements |
15609 | to always fail with ENOSYS. Some functions are actually named | |
15610 | something starting with __ and the normal name is an alias. */ | |
15611 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15612 | choke me | |
c906108c | 15613 | #else |
bec39cab AC |
15614 | char (*f) () = $ac_func; |
15615 | #endif | |
15616 | #ifdef __cplusplus | |
15617 | } | |
c906108c | 15618 | #endif |
97bf5e38 | 15619 | |
bec39cab AC |
15620 | int |
15621 | main () | |
15622 | { | |
15623 | return f != $ac_func; | |
15624 | ; | |
15625 | return 0; | |
15626 | } | |
15627 | _ACEOF | |
15628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15630 | (eval $ac_link) 2>conftest.er1 | |
15631 | ac_status=$? | |
15632 | grep -v '^ *+' conftest.er1 >conftest.err | |
15633 | rm -f conftest.er1 | |
15634 | cat conftest.err >&5 | |
15635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15636 | (exit $ac_status); } && | |
15637 | { ac_try='test -z "$ac_c_werror_flag" | |
15638 | || test ! -s conftest.err' | |
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 poll |
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); } && | |
15739 | { ac_try='test -z "$ac_c_werror_flag" | |
15740 | || test ! -s conftest.err' | |
15741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15742 | (eval $ac_try) 2>&5 | |
15743 | ac_status=$? | |
15744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15745 | (exit $ac_status); }; } && | |
15746 | { ac_try='test -s conftest$ac_exeext' | |
15747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15748 | (eval $ac_try) 2>&5 | |
15749 | ac_status=$? | |
15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15751 | (exit $ac_status); }; }; then | |
15752 | eval "$as_ac_var=yes" | |
15753 | else | |
15754 | echo "$as_me: failed program was:" >&5 | |
15755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15756 | ||
15757 | eval "$as_ac_var=no" | |
15758 | fi | |
15759 | rm -f conftest.err conftest.$ac_objext \ | |
15760 | conftest$ac_exeext conftest.$ac_ext | |
15761 | fi | |
15762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15763 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15764 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15765 | cat >>confdefs.h <<_ACEOF | |
15766 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15767 | _ACEOF | |
c906108c | 15768 | |
c906108c | 15769 | fi |
97bf5e38 | 15770 | done |
c906108c | 15771 | |
bec39cab | 15772 | |
a3828db0 | 15773 | for ac_func in pread64 |
97bf5e38 | 15774 | do |
bec39cab AC |
15775 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15776 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15777 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15778 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15780 | else | |
15781 | cat >conftest.$ac_ext <<_ACEOF | |
15782 | /* confdefs.h. */ | |
15783 | _ACEOF | |
15784 | cat confdefs.h >>conftest.$ac_ext | |
15785 | cat >>conftest.$ac_ext <<_ACEOF | |
15786 | /* end confdefs.h. */ | |
15787 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15788 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15789 | #define $ac_func innocuous_$ac_func | |
15790 | ||
97bf5e38 | 15791 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15792 | which can conflict with char $ac_func (); below. |
15793 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15794 | <limits.h> exists even on freestanding compilers. */ | |
15795 | ||
15796 | #ifdef __STDC__ | |
15797 | # include <limits.h> | |
15798 | #else | |
15799 | # include <assert.h> | |
15800 | #endif | |
c906108c | 15801 | |
bec39cab | 15802 | #undef $ac_func |
97bf5e38 | 15803 | |
bec39cab AC |
15804 | /* Override any gcc2 internal prototype to avoid an error. */ |
15805 | #ifdef __cplusplus | |
15806 | extern "C" | |
15807 | { | |
15808 | #endif | |
15809 | /* We use char because int might match the return type of a gcc2 | |
15810 | builtin and then its argument prototype would still apply. */ | |
15811 | char $ac_func (); | |
97bf5e38 MK |
15812 | /* The GNU C library defines this for functions which it implements |
15813 | to always fail with ENOSYS. Some functions are actually named | |
15814 | something starting with __ and the normal name is an alias. */ | |
15815 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15816 | choke me | |
c906108c | 15817 | #else |
bec39cab AC |
15818 | char (*f) () = $ac_func; |
15819 | #endif | |
15820 | #ifdef __cplusplus | |
15821 | } | |
c906108c | 15822 | #endif |
97bf5e38 | 15823 | |
bec39cab AC |
15824 | int |
15825 | main () | |
15826 | { | |
15827 | return f != $ac_func; | |
15828 | ; | |
15829 | return 0; | |
15830 | } | |
15831 | _ACEOF | |
15832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15834 | (eval $ac_link) 2>conftest.er1 | |
15835 | ac_status=$? | |
15836 | grep -v '^ *+' conftest.er1 >conftest.err | |
15837 | rm -f conftest.er1 | |
15838 | cat conftest.err >&5 | |
15839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15840 | (exit $ac_status); } && | |
15841 | { ac_try='test -z "$ac_c_werror_flag" | |
15842 | || test ! -s conftest.err' | |
15843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15844 | (eval $ac_try) 2>&5 | |
15845 | ac_status=$? | |
15846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15847 | (exit $ac_status); }; } && | |
15848 | { ac_try='test -s conftest$ac_exeext' | |
15849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15850 | (eval $ac_try) 2>&5 | |
15851 | ac_status=$? | |
15852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15853 | (exit $ac_status); }; }; then | |
15854 | eval "$as_ac_var=yes" | |
15855 | else | |
15856 | echo "$as_me: failed program was:" >&5 | |
15857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15858 | ||
15859 | eval "$as_ac_var=no" | |
15860 | fi | |
15861 | rm -f conftest.err conftest.$ac_objext \ | |
15862 | conftest$ac_exeext conftest.$ac_ext | |
15863 | fi | |
15864 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15865 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15866 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15867 | cat >>confdefs.h <<_ACEOF | |
15868 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15869 | _ACEOF | |
c906108c | 15870 | |
c906108c | 15871 | fi |
97bf5e38 | 15872 | done |
c906108c | 15873 | |
bec39cab | 15874 | |
a3828db0 | 15875 | for ac_func in sbrk |
b757528f | 15876 | do |
bec39cab AC |
15877 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15878 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15879 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15880 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15882 | else | |
15883 | cat >conftest.$ac_ext <<_ACEOF | |
15884 | /* confdefs.h. */ | |
15885 | _ACEOF | |
15886 | cat confdefs.h >>conftest.$ac_ext | |
15887 | cat >>conftest.$ac_ext <<_ACEOF | |
15888 | /* end confdefs.h. */ | |
15889 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15890 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15891 | #define $ac_func innocuous_$ac_func | |
15892 | ||
b757528f | 15893 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15894 | which can conflict with char $ac_func (); below. |
15895 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15896 | <limits.h> exists even on freestanding compilers. */ | |
15897 | ||
15898 | #ifdef __STDC__ | |
15899 | # include <limits.h> | |
15900 | #else | |
15901 | # include <assert.h> | |
15902 | #endif | |
b757528f | 15903 | |
bec39cab | 15904 | #undef $ac_func |
b757528f | 15905 | |
bec39cab AC |
15906 | /* Override any gcc2 internal prototype to avoid an error. */ |
15907 | #ifdef __cplusplus | |
15908 | extern "C" | |
15909 | { | |
15910 | #endif | |
15911 | /* We use char because int might match the return type of a gcc2 | |
15912 | builtin and then its argument prototype would still apply. */ | |
15913 | char $ac_func (); | |
b757528f JJ |
15914 | /* The GNU C library defines this for functions which it implements |
15915 | to always fail with ENOSYS. Some functions are actually named | |
15916 | something starting with __ and the normal name is an alias. */ | |
15917 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15918 | choke me | |
15919 | #else | |
bec39cab AC |
15920 | char (*f) () = $ac_func; |
15921 | #endif | |
15922 | #ifdef __cplusplus | |
15923 | } | |
b757528f JJ |
15924 | #endif |
15925 | ||
bec39cab AC |
15926 | int |
15927 | main () | |
15928 | { | |
15929 | return f != $ac_func; | |
15930 | ; | |
15931 | return 0; | |
15932 | } | |
15933 | _ACEOF | |
15934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15936 | (eval $ac_link) 2>conftest.er1 | |
15937 | ac_status=$? | |
15938 | grep -v '^ *+' conftest.er1 >conftest.err | |
15939 | rm -f conftest.er1 | |
15940 | cat conftest.err >&5 | |
15941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15942 | (exit $ac_status); } && | |
15943 | { ac_try='test -z "$ac_c_werror_flag" | |
15944 | || test ! -s conftest.err' | |
15945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15946 | (eval $ac_try) 2>&5 | |
15947 | ac_status=$? | |
15948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15949 | (exit $ac_status); }; } && | |
15950 | { ac_try='test -s conftest$ac_exeext' | |
15951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15952 | (eval $ac_try) 2>&5 | |
15953 | ac_status=$? | |
15954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15955 | (exit $ac_status); }; }; then | |
15956 | eval "$as_ac_var=yes" | |
15957 | else | |
15958 | echo "$as_me: failed program was:" >&5 | |
15959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15960 | ||
15961 | eval "$as_ac_var=no" | |
15962 | fi | |
15963 | rm -f conftest.err conftest.$ac_objext \ | |
15964 | conftest$ac_exeext conftest.$ac_ext | |
15965 | fi | |
15966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15967 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15968 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15969 | cat >>confdefs.h <<_ACEOF | |
15970 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15971 | _ACEOF | |
b757528f | 15972 | |
b757528f JJ |
15973 | fi |
15974 | done | |
15975 | ||
bec39cab | 15976 | |
a3828db0 MK |
15977 | |
15978 | for ac_func in setpgid setpgrp | |
bcb3dc3d | 15979 | do |
bec39cab AC |
15980 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15981 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15982 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15983 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15985 | else | |
15986 | cat >conftest.$ac_ext <<_ACEOF | |
15987 | /* confdefs.h. */ | |
15988 | _ACEOF | |
15989 | cat confdefs.h >>conftest.$ac_ext | |
15990 | cat >>conftest.$ac_ext <<_ACEOF | |
15991 | /* end confdefs.h. */ | |
15992 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15994 | #define $ac_func innocuous_$ac_func | |
15995 | ||
bcb3dc3d | 15996 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15997 | which can conflict with char $ac_func (); below. |
15998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15999 | <limits.h> exists even on freestanding compilers. */ | |
16000 | ||
16001 | #ifdef __STDC__ | |
16002 | # include <limits.h> | |
16003 | #else | |
16004 | # include <assert.h> | |
16005 | #endif | |
bcb3dc3d | 16006 | |
bec39cab | 16007 | #undef $ac_func |
bcb3dc3d | 16008 | |
bec39cab AC |
16009 | /* Override any gcc2 internal prototype to avoid an error. */ |
16010 | #ifdef __cplusplus | |
16011 | extern "C" | |
16012 | { | |
16013 | #endif | |
16014 | /* We use char because int might match the return type of a gcc2 | |
16015 | builtin and then its argument prototype would still apply. */ | |
16016 | char $ac_func (); | |
bcb3dc3d MK |
16017 | /* The GNU C library defines this for functions which it implements |
16018 | to always fail with ENOSYS. Some functions are actually named | |
16019 | something starting with __ and the normal name is an alias. */ | |
16020 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16021 | choke me | |
16022 | #else | |
bec39cab AC |
16023 | char (*f) () = $ac_func; |
16024 | #endif | |
16025 | #ifdef __cplusplus | |
16026 | } | |
bcb3dc3d MK |
16027 | #endif |
16028 | ||
bec39cab AC |
16029 | int |
16030 | main () | |
16031 | { | |
16032 | return f != $ac_func; | |
16033 | ; | |
16034 | return 0; | |
16035 | } | |
16036 | _ACEOF | |
16037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16039 | (eval $ac_link) 2>conftest.er1 | |
16040 | ac_status=$? | |
16041 | grep -v '^ *+' conftest.er1 >conftest.err | |
16042 | rm -f conftest.er1 | |
16043 | cat conftest.err >&5 | |
16044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16045 | (exit $ac_status); } && | |
16046 | { ac_try='test -z "$ac_c_werror_flag" | |
16047 | || test ! -s conftest.err' | |
16048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16049 | (eval $ac_try) 2>&5 | |
16050 | ac_status=$? | |
16051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16052 | (exit $ac_status); }; } && | |
16053 | { ac_try='test -s conftest$ac_exeext' | |
16054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16055 | (eval $ac_try) 2>&5 | |
16056 | ac_status=$? | |
16057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16058 | (exit $ac_status); }; }; then | |
16059 | eval "$as_ac_var=yes" | |
16060 | else | |
16061 | echo "$as_me: failed program was:" >&5 | |
16062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16063 | ||
16064 | eval "$as_ac_var=no" | |
16065 | fi | |
16066 | rm -f conftest.err conftest.$ac_objext \ | |
16067 | conftest$ac_exeext conftest.$ac_ext | |
16068 | fi | |
16069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16070 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16071 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16072 | cat >>confdefs.h <<_ACEOF | |
16073 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16074 | _ACEOF | |
bcb3dc3d | 16075 | |
bcb3dc3d MK |
16076 | fi |
16077 | done | |
16078 | ||
bec39cab | 16079 | |
a3828db0 MK |
16080 | |
16081 | ||
16082 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 16083 | do |
bec39cab AC |
16084 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16085 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16086 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16087 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16089 | else | |
16090 | cat >conftest.$ac_ext <<_ACEOF | |
16091 | /* confdefs.h. */ | |
16092 | _ACEOF | |
16093 | cat confdefs.h >>conftest.$ac_ext | |
16094 | cat >>conftest.$ac_ext <<_ACEOF | |
16095 | /* end confdefs.h. */ | |
16096 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16097 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16098 | #define $ac_func innocuous_$ac_func | |
16099 | ||
8b9cf735 | 16100 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16101 | which can conflict with char $ac_func (); below. |
16102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16103 | <limits.h> exists even on freestanding compilers. */ | |
16104 | ||
16105 | #ifdef __STDC__ | |
16106 | # include <limits.h> | |
16107 | #else | |
16108 | # include <assert.h> | |
16109 | #endif | |
8b9cf735 | 16110 | |
bec39cab | 16111 | #undef $ac_func |
8b9cf735 | 16112 | |
a3828db0 MK |
16113 | /* Override any gcc2 internal prototype to avoid an error. */ |
16114 | #ifdef __cplusplus | |
16115 | extern "C" | |
16116 | { | |
16117 | #endif | |
16118 | /* We use char because int might match the return type of a gcc2 | |
16119 | builtin and then its argument prototype would still apply. */ | |
16120 | char $ac_func (); | |
16121 | /* The GNU C library defines this for functions which it implements | |
16122 | to always fail with ENOSYS. Some functions are actually named | |
16123 | something starting with __ and the normal name is an alias. */ | |
16124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16125 | choke me | |
16126 | #else | |
16127 | char (*f) () = $ac_func; | |
16128 | #endif | |
16129 | #ifdef __cplusplus | |
16130 | } | |
16131 | #endif | |
16132 | ||
bec39cab AC |
16133 | int |
16134 | main () | |
16135 | { | |
a3828db0 | 16136 | return f != $ac_func; |
bec39cab AC |
16137 | ; |
16138 | return 0; | |
16139 | } | |
16140 | _ACEOF | |
a3828db0 MK |
16141 | rm -f conftest.$ac_objext conftest$ac_exeext |
16142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16143 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
16144 | ac_status=$? |
16145 | grep -v '^ *+' conftest.er1 >conftest.err | |
16146 | rm -f conftest.er1 | |
16147 | cat conftest.err >&5 | |
16148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16149 | (exit $ac_status); } && | |
16150 | { ac_try='test -z "$ac_c_werror_flag" | |
16151 | || test ! -s conftest.err' | |
16152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16153 | (eval $ac_try) 2>&5 | |
16154 | ac_status=$? | |
16155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16156 | (exit $ac_status); }; } && | |
a3828db0 | 16157 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
16158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16159 | (eval $ac_try) 2>&5 | |
16160 | ac_status=$? | |
16161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16162 | (exit $ac_status); }; }; then | |
a3828db0 | 16163 | eval "$as_ac_var=yes" |
086ec9eb | 16164 | else |
bec39cab AC |
16165 | echo "$as_me: failed program was:" >&5 |
16166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16167 | ||
a3828db0 MK |
16168 | eval "$as_ac_var=no" |
16169 | fi | |
16170 | rm -f conftest.err conftest.$ac_objext \ | |
16171 | conftest$ac_exeext conftest.$ac_ext | |
16172 | fi | |
16173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16174 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16175 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16176 | cat >>confdefs.h <<_ACEOF | |
16177 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16178 | _ACEOF | |
16179 | ||
086ec9eb | 16180 | fi |
a3828db0 MK |
16181 | done |
16182 | ||
16183 | ||
16184 | for ac_func in socketpair | |
16185 | do | |
16186 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16187 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16188 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16189 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16191 | else | |
16192 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
16193 | /* confdefs.h. */ |
16194 | _ACEOF | |
16195 | cat confdefs.h >>conftest.$ac_ext | |
16196 | cat >>conftest.$ac_ext <<_ACEOF | |
16197 | /* end confdefs.h. */ | |
a3828db0 MK |
16198 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16199 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16200 | #define $ac_func innocuous_$ac_func | |
16201 | ||
16202 | /* System header to define __stub macros and hopefully few prototypes, | |
16203 | which can conflict with char $ac_func (); below. | |
16204 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16205 | <limits.h> exists even on freestanding compilers. */ | |
16206 | ||
16207 | #ifdef __STDC__ | |
16208 | # include <limits.h> | |
16209 | #else | |
16210 | # include <assert.h> | |
16211 | #endif | |
16212 | ||
16213 | #undef $ac_func | |
16214 | ||
16215 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16216 | #ifdef __cplusplus | |
16217 | extern "C" | |
16218 | { | |
16219 | #endif | |
16220 | /* We use char because int might match the return type of a gcc2 | |
16221 | builtin and then its argument prototype would still apply. */ | |
16222 | char $ac_func (); | |
16223 | /* The GNU C library defines this for functions which it implements | |
16224 | to always fail with ENOSYS. Some functions are actually named | |
16225 | something starting with __ and the normal name is an alias. */ | |
16226 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16227 | choke me | |
16228 | #else | |
16229 | char (*f) () = $ac_func; | |
16230 | #endif | |
16231 | #ifdef __cplusplus | |
16232 | } | |
16233 | #endif | |
16234 | ||
bec39cab AC |
16235 | int |
16236 | main () | |
16237 | { | |
a3828db0 | 16238 | return f != $ac_func; |
bec39cab AC |
16239 | ; |
16240 | return 0; | |
16241 | } | |
16242 | _ACEOF | |
a3828db0 MK |
16243 | rm -f conftest.$ac_objext conftest$ac_exeext |
16244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16245 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
16246 | ac_status=$? |
16247 | grep -v '^ *+' conftest.er1 >conftest.err | |
16248 | rm -f conftest.er1 | |
16249 | cat conftest.err >&5 | |
16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16251 | (exit $ac_status); } && | |
16252 | { ac_try='test -z "$ac_c_werror_flag" | |
16253 | || test ! -s conftest.err' | |
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); }; } && | |
a3828db0 | 16259 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
16260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16261 | (eval $ac_try) 2>&5 | |
16262 | ac_status=$? | |
16263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16264 | (exit $ac_status); }; }; then | |
a3828db0 | 16265 | eval "$as_ac_var=yes" |
086ec9eb | 16266 | else |
bec39cab AC |
16267 | echo "$as_me: failed program was:" >&5 |
16268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16269 | ||
a3828db0 | 16270 | eval "$as_ac_var=no" |
086ec9eb | 16271 | fi |
a3828db0 MK |
16272 | rm -f conftest.err conftest.$ac_objext \ |
16273 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 16274 | fi |
a3828db0 MK |
16275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16276 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16277 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16278 | cat >>confdefs.h <<_ACEOF | |
16279 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 16280 | _ACEOF |
086ec9eb MK |
16281 | |
16282 | fi | |
a3828db0 | 16283 | done |
086ec9eb | 16284 | |
a3828db0 MK |
16285 | |
16286 | for ac_func in syscall | |
16287 | do | |
16288 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16289 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16290 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16291 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 16292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
16293 | else |
16294 | cat >conftest.$ac_ext <<_ACEOF | |
16295 | /* confdefs.h. */ | |
16296 | _ACEOF | |
16297 | cat confdefs.h >>conftest.$ac_ext | |
16298 | cat >>conftest.$ac_ext <<_ACEOF | |
16299 | /* end confdefs.h. */ | |
a3828db0 MK |
16300 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16301 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16302 | #define $ac_func innocuous_$ac_func | |
16303 | ||
16304 | /* System header to define __stub macros and hopefully few prototypes, | |
16305 | which can conflict with char $ac_func (); below. | |
16306 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16307 | <limits.h> exists even on freestanding compilers. */ | |
16308 | ||
16309 | #ifdef __STDC__ | |
16310 | # include <limits.h> | |
16311 | #else | |
16312 | # include <assert.h> | |
16313 | #endif | |
16314 | ||
16315 | #undef $ac_func | |
16316 | ||
16317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16318 | #ifdef __cplusplus | |
16319 | extern "C" | |
16320 | { | |
16321 | #endif | |
16322 | /* We use char because int might match the return type of a gcc2 | |
16323 | builtin and then its argument prototype would still apply. */ | |
16324 | char $ac_func (); | |
16325 | /* The GNU C library defines this for functions which it implements | |
16326 | to always fail with ENOSYS. Some functions are actually named | |
16327 | something starting with __ and the normal name is an alias. */ | |
16328 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16329 | choke me | |
16330 | #else | |
16331 | char (*f) () = $ac_func; | |
16332 | #endif | |
16333 | #ifdef __cplusplus | |
16334 | } | |
c906108c | 16335 | #endif |
97bf5e38 | 16336 | |
bec39cab AC |
16337 | int |
16338 | main () | |
97bf5e38 | 16339 | { |
a3828db0 | 16340 | return f != $ac_func; |
bec39cab AC |
16341 | ; |
16342 | return 0; | |
97bf5e38 | 16343 | } |
bec39cab | 16344 | _ACEOF |
a3828db0 | 16345 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 16346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 16347 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 16348 | ac_status=$? |
a3828db0 MK |
16349 | grep -v '^ *+' conftest.er1 >conftest.err |
16350 | rm -f conftest.er1 | |
16351 | cat conftest.err >&5 | |
bec39cab | 16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 MK |
16353 | (exit $ac_status); } && |
16354 | { ac_try='test -z "$ac_c_werror_flag" | |
16355 | || test ! -s conftest.err' | |
16356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16357 | (eval $ac_try) 2>&5 | |
16358 | ac_status=$? | |
16359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16360 | (exit $ac_status); }; } && | |
16361 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
16362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16363 | (eval $ac_try) 2>&5 | |
16364 | ac_status=$? | |
16365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16366 | (exit $ac_status); }; }; then | |
a3828db0 | 16367 | eval "$as_ac_var=yes" |
c906108c | 16368 | else |
a3828db0 | 16369 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
16370 | sed 's/^/| /' conftest.$ac_ext >&5 |
16371 | ||
a3828db0 | 16372 | eval "$as_ac_var=no" |
97bf5e38 | 16373 | fi |
a3828db0 MK |
16374 | rm -f conftest.err conftest.$ac_objext \ |
16375 | conftest$ac_exeext conftest.$ac_ext | |
16376 | fi | |
16377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16378 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16379 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16380 | cat >>confdefs.h <<_ACEOF | |
16381 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 16382 | _ACEOF |
c906108c SS |
16383 | |
16384 | fi | |
a3828db0 | 16385 | done |
c906108c | 16386 | |
a3828db0 MK |
16387 | |
16388 | for ac_func in ttrace | |
16389 | do | |
16390 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16391 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16392 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16393 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 16394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 16395 | else |
bec39cab AC |
16396 | cat >conftest.$ac_ext <<_ACEOF |
16397 | /* confdefs.h. */ | |
16398 | _ACEOF | |
16399 | cat confdefs.h >>conftest.$ac_ext | |
16400 | cat >>conftest.$ac_ext <<_ACEOF | |
16401 | /* end confdefs.h. */ | |
a3828db0 MK |
16402 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16404 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 16405 | |
a3828db0 MK |
16406 | /* System header to define __stub macros and hopefully few prototypes, |
16407 | which can conflict with char $ac_func (); below. | |
16408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16409 | <limits.h> exists even on freestanding compilers. */ | |
16410 | ||
16411 | #ifdef __STDC__ | |
16412 | # include <limits.h> | |
16413 | #else | |
16414 | # include <assert.h> | |
16415 | #endif | |
16416 | ||
16417 | #undef $ac_func | |
16418 | ||
16419 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16420 | #ifdef __cplusplus | |
16421 | extern "C" | |
16422 | { | |
16423 | #endif | |
16424 | /* We use char because int might match the return type of a gcc2 | |
16425 | builtin and then its argument prototype would still apply. */ | |
16426 | char $ac_func (); | |
16427 | /* The GNU C library defines this for functions which it implements | |
16428 | to always fail with ENOSYS. Some functions are actually named | |
16429 | something starting with __ and the normal name is an alias. */ | |
16430 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16431 | choke me | |
16432 | #else | |
16433 | char (*f) () = $ac_func; | |
16434 | #endif | |
16435 | #ifdef __cplusplus | |
16436 | } | |
16437 | #endif | |
97bf5e38 | 16438 | |
bec39cab AC |
16439 | int |
16440 | main () | |
16441 | { | |
a3828db0 | 16442 | return f != $ac_func; |
bec39cab AC |
16443 | ; |
16444 | return 0; | |
16445 | } | |
16446 | _ACEOF | |
a3828db0 MK |
16447 | rm -f conftest.$ac_objext conftest$ac_exeext |
16448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16449 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
16450 | ac_status=$? |
16451 | grep -v '^ *+' conftest.er1 >conftest.err | |
16452 | rm -f conftest.er1 | |
16453 | cat conftest.err >&5 | |
16454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16455 | (exit $ac_status); } && | |
16456 | { ac_try='test -z "$ac_c_werror_flag" | |
16457 | || test ! -s conftest.err' | |
16458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16459 | (eval $ac_try) 2>&5 | |
16460 | ac_status=$? | |
16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16462 | (exit $ac_status); }; } && | |
a3828db0 | 16463 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
16464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16465 | (eval $ac_try) 2>&5 | |
16466 | ac_status=$? | |
16467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16468 | (exit $ac_status); }; }; then | |
a3828db0 | 16469 | eval "$as_ac_var=yes" |
b83266a0 | 16470 | else |
bec39cab AC |
16471 | echo "$as_me: failed program was:" >&5 |
16472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16473 | ||
a3828db0 | 16474 | eval "$as_ac_var=no" |
b83266a0 | 16475 | fi |
a3828db0 MK |
16476 | rm -f conftest.err conftest.$ac_objext \ |
16477 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 16478 | fi |
a3828db0 MK |
16479 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16480 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16481 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16482 | cat >>confdefs.h <<_ACEOF | |
16483 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 16484 | _ACEOF |
b83266a0 | 16485 | |
97bf5e38 | 16486 | fi |
a3828db0 | 16487 | done |
b83266a0 | 16488 | |
a3828db0 MK |
16489 | |
16490 | for ac_func in wborder | |
16491 | do | |
16492 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16493 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16494 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16495 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16497 | else | |
16498 | cat >conftest.$ac_ext <<_ACEOF | |
16499 | /* confdefs.h. */ | |
16500 | _ACEOF | |
16501 | cat confdefs.h >>conftest.$ac_ext | |
16502 | cat >>conftest.$ac_ext <<_ACEOF | |
16503 | /* end confdefs.h. */ | |
a3828db0 MK |
16504 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16505 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16506 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 16507 | |
a3828db0 MK |
16508 | /* System header to define __stub macros and hopefully few prototypes, |
16509 | which can conflict with char $ac_func (); below. | |
16510 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16511 | <limits.h> exists even on freestanding compilers. */ | |
16512 | ||
16513 | #ifdef __STDC__ | |
16514 | # include <limits.h> | |
16515 | #else | |
16516 | # include <assert.h> | |
16517 | #endif | |
16518 | ||
16519 | #undef $ac_func | |
16520 | ||
16521 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16522 | #ifdef __cplusplus | |
16523 | extern "C" | |
16524 | { | |
16525 | #endif | |
16526 | /* We use char because int might match the return type of a gcc2 | |
16527 | builtin and then its argument prototype would still apply. */ | |
16528 | char $ac_func (); | |
16529 | /* The GNU C library defines this for functions which it implements | |
16530 | to always fail with ENOSYS. Some functions are actually named | |
16531 | something starting with __ and the normal name is an alias. */ | |
16532 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16533 | choke me | |
16534 | #else | |
16535 | char (*f) () = $ac_func; | |
16536 | #endif | |
16537 | #ifdef __cplusplus | |
16538 | } | |
16539 | #endif | |
97bf5e38 | 16540 | |
bec39cab AC |
16541 | int |
16542 | main () | |
16543 | { | |
a3828db0 | 16544 | return f != $ac_func; |
bec39cab AC |
16545 | ; |
16546 | return 0; | |
16547 | } | |
16548 | _ACEOF | |
a3828db0 MK |
16549 | rm -f conftest.$ac_objext conftest$ac_exeext |
16550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16551 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
16552 | ac_status=$? |
16553 | grep -v '^ *+' conftest.er1 >conftest.err | |
16554 | rm -f conftest.er1 | |
16555 | cat conftest.err >&5 | |
16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16557 | (exit $ac_status); } && | |
16558 | { ac_try='test -z "$ac_c_werror_flag" | |
16559 | || test ! -s conftest.err' | |
16560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16561 | (eval $ac_try) 2>&5 | |
16562 | ac_status=$? | |
16563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16564 | (exit $ac_status); }; } && | |
a3828db0 | 16565 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
16566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16567 | (eval $ac_try) 2>&5 | |
16568 | ac_status=$? | |
16569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16570 | (exit $ac_status); }; }; then | |
a3828db0 | 16571 | eval "$as_ac_var=yes" |
a4db0f07 | 16572 | else |
bec39cab AC |
16573 | echo "$as_me: failed program was:" >&5 |
16574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16575 | ||
a3828db0 | 16576 | eval "$as_ac_var=no" |
a4db0f07 | 16577 | fi |
a3828db0 MK |
16578 | rm -f conftest.err conftest.$ac_objext \ |
16579 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 16580 | fi |
a3828db0 MK |
16581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16582 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16583 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16584 | cat >>confdefs.h <<_ACEOF | |
16585 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 16586 | _ACEOF |
a4db0f07 RH |
16587 | |
16588 | fi | |
a3828db0 | 16589 | done |
c906108c | 16590 | |
06825bd1 | 16591 | |
a3828db0 MK |
16592 | # Check the return and argument types of ptrace. No canned test for |
16593 | # this, so roll our own. | |
16594 | gdb_ptrace_headers=' | |
16595 | #if HAVE_SYS_TYPES_H | |
16596 | # include <sys/types.h> | |
16597 | #endif | |
16598 | #if HAVE_SYS_PTRACE_H | |
16599 | # include <sys/ptrace.h> | |
16600 | #endif | |
16601 | #if HAVE_UNISTD_H | |
16602 | # include <unistd.h> | |
16603 | #endif | |
16604 | ' | |
16605 | # There is no point in checking if we don't have a prototype. | |
16606 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 | |
16607 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
16608 | if test "${ac_cv_have_decl_ptrace+set}" = set; then | |
bec39cab AC |
16609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16610 | else | |
16611 | cat >conftest.$ac_ext <<_ACEOF | |
16612 | /* confdefs.h. */ | |
16613 | _ACEOF | |
16614 | cat confdefs.h >>conftest.$ac_ext | |
16615 | cat >>conftest.$ac_ext <<_ACEOF | |
16616 | /* end confdefs.h. */ | |
a3828db0 MK |
16617 | $gdb_ptrace_headers |
16618 | ||
bec39cab AC |
16619 | int |
16620 | main () | |
16621 | { | |
a3828db0 MK |
16622 | #ifndef ptrace |
16623 | char *p = (char *) ptrace; | |
06825bd1 | 16624 | #endif |
a3828db0 | 16625 | |
bec39cab AC |
16626 | ; |
16627 | return 0; | |
16628 | } | |
16629 | _ACEOF | |
16630 | rm -f conftest.$ac_objext | |
16631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16632 | (eval $ac_compile) 2>conftest.er1 | |
16633 | ac_status=$? | |
16634 | grep -v '^ *+' conftest.er1 >conftest.err | |
16635 | rm -f conftest.er1 | |
16636 | cat conftest.err >&5 | |
16637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16638 | (exit $ac_status); } && | |
16639 | { ac_try='test -z "$ac_c_werror_flag" | |
16640 | || test ! -s conftest.err' | |
16641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16642 | (eval $ac_try) 2>&5 | |
16643 | ac_status=$? | |
16644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16645 | (exit $ac_status); }; } && | |
16646 | { ac_try='test -s conftest.$ac_objext' | |
16647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16648 | (eval $ac_try) 2>&5 | |
16649 | ac_status=$? | |
16650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16651 | (exit $ac_status); }; }; then | |
a3828db0 | 16652 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 16653 | else |
bec39cab AC |
16654 | echo "$as_me: failed program was:" >&5 |
16655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16656 | ||
a3828db0 | 16657 | ac_cv_have_decl_ptrace=no |
06825bd1 | 16658 | fi |
bec39cab | 16659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 16660 | fi |
a3828db0 MK |
16661 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
16662 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
16663 | if test $ac_cv_have_decl_ptrace = yes; then | |
06825bd1 | 16664 | |
a3828db0 MK |
16665 | cat >>confdefs.h <<_ACEOF |
16666 | #define HAVE_DECL_PTRACE 1 | |
16667 | _ACEOF | |
bec39cab | 16668 | |
bec39cab | 16669 | |
a3828db0 MK |
16670 | else |
16671 | cat >>confdefs.h <<_ACEOF | |
16672 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 16673 | _ACEOF |
06825bd1 | 16674 | |
a3828db0 MK |
16675 | |
16676 | : ${gdb_cv_func_ptrace_ret='int'} | |
16677 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
16678 | ||
06825bd1 MK |
16679 | fi |
16680 | ||
a3828db0 MK |
16681 | |
16682 | # Check return type. | |
16683 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 | |
16684 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
16685 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then | |
bec39cab AC |
16686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16687 | else | |
16688 | cat >conftest.$ac_ext <<_ACEOF | |
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 | 16698 | extern int ptrace (); |
bec39cab AC |
16699 | ; |
16700 | return 0; | |
16701 | } | |
16702 | _ACEOF | |
16703 | rm -f conftest.$ac_objext | |
16704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16705 | (eval $ac_compile) 2>conftest.er1 | |
16706 | ac_status=$? | |
16707 | grep -v '^ *+' conftest.er1 >conftest.err | |
16708 | rm -f conftest.er1 | |
16709 | cat conftest.err >&5 | |
16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16711 | (exit $ac_status); } && | |
16712 | { ac_try='test -z "$ac_c_werror_flag" | |
16713 | || test ! -s conftest.err' | |
16714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16715 | (eval $ac_try) 2>&5 | |
16716 | ac_status=$? | |
16717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16718 | (exit $ac_status); }; } && | |
16719 | { ac_try='test -s conftest.$ac_objext' | |
16720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16721 | (eval $ac_try) 2>&5 | |
16722 | ac_status=$? | |
16723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16724 | (exit $ac_status); }; }; then | |
a3828db0 | 16725 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 16726 | else |
bec39cab AC |
16727 | echo "$as_me: failed program was:" >&5 |
16728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16729 | ||
a3828db0 | 16730 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 16731 | fi |
bec39cab | 16732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 16733 | fi |
a3828db0 MK |
16734 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
16735 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 16736 | |
a3828db0 MK |
16737 | cat >>confdefs.h <<_ACEOF |
16738 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 16739 | _ACEOF |
70f9f479 | 16740 | |
a3828db0 MK |
16741 | # Check argument types. |
16742 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 | |
16743 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
16744 | if test "${gdb_cv_func_ptrace_args+set}" = set; then | |
bec39cab AC |
16745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16746 | else | |
a3828db0 MK |
16747 | |
16748 | for gdb_arg1 in 'int' 'long'; do | |
16749 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
16750 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
16751 | for gdb_arg4 in 'int' 'long'; do | |
16752 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
16753 | /* confdefs.h. */ |
16754 | _ACEOF | |
16755 | cat confdefs.h >>conftest.$ac_ext | |
16756 | cat >>conftest.$ac_ext <<_ACEOF | |
16757 | /* end confdefs.h. */ | |
a3828db0 | 16758 | $gdb_ptrace_headers |
bec39cab AC |
16759 | int |
16760 | main () | |
16761 | { | |
a3828db0 MK |
16762 | |
16763 | extern $gdb_cv_func_ptrace_ret | |
16764 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
16765 | ||
bec39cab AC |
16766 | ; |
16767 | return 0; | |
16768 | } | |
16769 | _ACEOF | |
16770 | rm -f conftest.$ac_objext | |
16771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16772 | (eval $ac_compile) 2>conftest.er1 | |
16773 | ac_status=$? | |
16774 | grep -v '^ *+' conftest.er1 >conftest.err | |
16775 | rm -f conftest.er1 | |
16776 | cat conftest.err >&5 | |
16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16778 | (exit $ac_status); } && | |
16779 | { ac_try='test -z "$ac_c_werror_flag" | |
16780 | || test ! -s conftest.err' | |
16781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16782 | (eval $ac_try) 2>&5 | |
16783 | ac_status=$? | |
16784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16785 | (exit $ac_status); }; } && | |
16786 | { ac_try='test -s conftest.$ac_objext' | |
16787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16788 | (eval $ac_try) 2>&5 | |
16789 | ac_status=$? | |
16790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16791 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16792 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
16793 | break 4; | |
5c7f2947 | 16794 | else |
bec39cab AC |
16795 | echo "$as_me: failed program was:" >&5 |
16796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16797 | ||
5c7f2947 | 16798 | fi |
bec39cab | 16799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16800 | for gdb_arg5 in 'int *' 'int' 'long'; do |
16801 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
16802 | /* confdefs.h. */ |
16803 | _ACEOF | |
16804 | cat confdefs.h >>conftest.$ac_ext | |
16805 | cat >>conftest.$ac_ext <<_ACEOF | |
16806 | /* end confdefs.h. */ | |
a3828db0 | 16807 | $gdb_ptrace_headers |
bec39cab AC |
16808 | int |
16809 | main () | |
16810 | { | |
a3828db0 MK |
16811 | |
16812 | extern $gdb_cv_func_ptrace_ret | |
16813 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
16814 | ||
bec39cab AC |
16815 | ; |
16816 | return 0; | |
16817 | } | |
16818 | _ACEOF | |
16819 | rm -f conftest.$ac_objext | |
16820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16821 | (eval $ac_compile) 2>conftest.er1 | |
16822 | ac_status=$? | |
16823 | grep -v '^ *+' conftest.er1 >conftest.err | |
16824 | rm -f conftest.er1 | |
16825 | cat conftest.err >&5 | |
16826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16827 | (exit $ac_status); } && | |
16828 | { ac_try='test -z "$ac_c_werror_flag" | |
16829 | || test ! -s conftest.err' | |
16830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16831 | (eval $ac_try) 2>&5 | |
16832 | ac_status=$? | |
16833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16834 | (exit $ac_status); }; } && | |
16835 | { ac_try='test -s conftest.$ac_objext' | |
16836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16837 | (eval $ac_try) 2>&5 | |
16838 | ac_status=$? | |
16839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16840 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16841 | |
16842 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
16843 | break 5; | |
78434e59 | 16844 | else |
bec39cab AC |
16845 | echo "$as_me: failed program was:" >&5 |
16846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16847 | ||
78434e59 | 16848 | fi |
bec39cab | 16849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16850 | done |
16851 | done | |
16852 | done | |
16853 | done | |
16854 | done | |
16855 | # Provide a safe default value. | |
16856 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
16857 | ||
78434e59 | 16858 | fi |
a3828db0 MK |
16859 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
16860 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
16861 | ac_save_IFS=$IFS; IFS=',' | |
16862 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
16863 | IFS=$ac_save_IFS | |
16864 | shift | |
bec39cab | 16865 | |
a3828db0 MK |
16866 | cat >>confdefs.h <<_ACEOF |
16867 | #define PTRACE_TYPE_ARG3 $3 | |
16868 | _ACEOF | |
16869 | ||
16870 | if test -n "$5"; then | |
16871 | ||
16872 | cat >>confdefs.h <<_ACEOF | |
16873 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 16874 | _ACEOF |
78434e59 MK |
16875 | |
16876 | fi | |
16877 | ||
a3828db0 MK |
16878 | if test "$cross_compiling" = no; then |
16879 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 | |
16880 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
16881 | if test "${ac_cv_func_setpgrp_void+set}" = set; then | |
bec39cab | 16882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
16883 | else |
16884 | if test "$cross_compiling" = yes; then | |
16885 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
16886 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
16887 | { (exit 1); exit 1; }; } | |
bec39cab AC |
16888 | else |
16889 | cat >conftest.$ac_ext <<_ACEOF | |
16890 | /* confdefs.h. */ | |
16891 | _ACEOF | |
16892 | cat confdefs.h >>conftest.$ac_ext | |
16893 | cat >>conftest.$ac_ext <<_ACEOF | |
16894 | /* end confdefs.h. */ | |
a3828db0 MK |
16895 | #if HAVE_UNISTD_H |
16896 | # include <unistd.h> | |
16897 | #endif | |
16898 | ||
bec39cab AC |
16899 | int |
16900 | main () | |
16901 | { | |
a3828db0 MK |
16902 | /* If this system has a BSD-style setpgrp which takes arguments, |
16903 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
16904 | exit successfully. */ | |
16905 | exit (setpgrp (1,1) == -1 ? 0 : 1); | |
bec39cab AC |
16906 | ; |
16907 | return 0; | |
16908 | } | |
16909 | _ACEOF | |
a3828db0 MK |
16910 | rm -f conftest$ac_exeext |
16911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16912 | (eval $ac_link) 2>&5 | |
bec39cab AC |
16913 | ac_status=$? |
16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 16915 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
16916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16917 | (eval $ac_try) 2>&5 | |
16918 | ac_status=$? | |
16919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16920 | (exit $ac_status); }; }; then | |
a3828db0 | 16921 | ac_cv_func_setpgrp_void=no |
c906108c | 16922 | else |
a3828db0 MK |
16923 | echo "$as_me: program exited with status $ac_status" >&5 |
16924 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
16925 | sed 's/^/| /' conftest.$ac_ext >&5 |
16926 | ||
a3828db0 MK |
16927 | ( exit $ac_status ) |
16928 | ac_cv_func_setpgrp_void=yes | |
c906108c | 16929 | fi |
a3828db0 | 16930 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 16931 | fi |
a3828db0 MK |
16932 | fi |
16933 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 | |
16934 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
16935 | if test $ac_cv_func_setpgrp_void = yes; then | |
16936 | ||
16937 | cat >>confdefs.h <<\_ACEOF | |
16938 | #define SETPGRP_VOID 1 | |
bec39cab | 16939 | _ACEOF |
97bf5e38 MK |
16940 | |
16941 | fi | |
a3828db0 MK |
16942 | |
16943 | else | |
16944 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 | |
16945 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
16946 | if test "${ac_cv_func_setpgrp_void+set}" = set; then | |
bec39cab | 16947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 16948 | else |
bec39cab AC |
16949 | cat >conftest.$ac_ext <<_ACEOF |
16950 | /* confdefs.h. */ | |
16951 | _ACEOF | |
16952 | cat confdefs.h >>conftest.$ac_ext | |
16953 | cat >>conftest.$ac_ext <<_ACEOF | |
16954 | /* end confdefs.h. */ | |
a3828db0 MK |
16955 | |
16956 | #include <unistd.h> | |
16957 | ||
bec39cab AC |
16958 | int |
16959 | main () | |
16960 | { | |
a3828db0 MK |
16961 | |
16962 | if (setpgrp(1,1) == -1) | |
16963 | exit (0); | |
16964 | else | |
16965 | exit (1); | |
16966 | ||
bec39cab AC |
16967 | ; |
16968 | return 0; | |
16969 | } | |
16970 | _ACEOF | |
16971 | rm -f conftest.$ac_objext | |
16972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16973 | (eval $ac_compile) 2>conftest.er1 | |
16974 | ac_status=$? | |
16975 | grep -v '^ *+' conftest.er1 >conftest.err | |
16976 | rm -f conftest.er1 | |
16977 | cat conftest.err >&5 | |
16978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16979 | (exit $ac_status); } && | |
16980 | { ac_try='test -z "$ac_c_werror_flag" | |
16981 | || test ! -s conftest.err' | |
16982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16983 | (eval $ac_try) 2>&5 | |
16984 | ac_status=$? | |
16985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16986 | (exit $ac_status); }; } && | |
16987 | { ac_try='test -s conftest.$ac_objext' | |
16988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16989 | (eval $ac_try) 2>&5 | |
16990 | ac_status=$? | |
16991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16992 | (exit $ac_status); }; }; then | |
a3828db0 | 16993 | ac_cv_func_setpgrp_void=no |
c906108c | 16994 | else |
bec39cab AC |
16995 | echo "$as_me: failed program was:" >&5 |
16996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16997 | ||
a3828db0 | 16998 | ac_cv_func_setpgrp_void=yes |
c906108c | 16999 | fi |
bec39cab | 17000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17001 | fi |
a3828db0 MK |
17002 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
17003 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
17004 | if test $ac_cv_func_setpgrp_void = yes; then | |
bec39cab | 17005 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 17006 | #define SETPGRP_VOID 1 |
bec39cab | 17007 | _ACEOF |
c3f6f71d | 17008 | |
a3828db0 | 17009 | fi |
c906108c SS |
17010 | fi |
17011 | ||
a3828db0 MK |
17012 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
17013 | # since sigsetjmp might only be defined as a macro. | |
17014 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 | |
17015 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
17016 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then | |
bec39cab AC |
17017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17018 | else | |
17019 | cat >conftest.$ac_ext <<_ACEOF | |
17020 | /* confdefs.h. */ | |
17021 | _ACEOF | |
17022 | cat confdefs.h >>conftest.$ac_ext | |
17023 | cat >>conftest.$ac_ext <<_ACEOF | |
17024 | /* end confdefs.h. */ | |
a3828db0 MK |
17025 | |
17026 | #include <setjmp.h> | |
17027 | ||
bec39cab AC |
17028 | int |
17029 | main () | |
17030 | { | |
a3828db0 | 17031 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
17032 | ; |
17033 | return 0; | |
17034 | } | |
17035 | _ACEOF | |
17036 | rm -f conftest.$ac_objext | |
17037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17038 | (eval $ac_compile) 2>conftest.er1 | |
17039 | ac_status=$? | |
17040 | grep -v '^ *+' conftest.er1 >conftest.err | |
17041 | rm -f conftest.er1 | |
17042 | cat conftest.err >&5 | |
17043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17044 | (exit $ac_status); } && | |
17045 | { ac_try='test -z "$ac_c_werror_flag" | |
17046 | || test ! -s conftest.err' | |
17047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17048 | (eval $ac_try) 2>&5 | |
17049 | ac_status=$? | |
17050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17051 | (exit $ac_status); }; } && | |
17052 | { ac_try='test -s conftest.$ac_objext' | |
17053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17054 | (eval $ac_try) 2>&5 | |
17055 | ac_status=$? | |
17056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17057 | (exit $ac_status); }; }; then | |
a3828db0 | 17058 | gdb_cv_func_sigsetjmp=yes |
c906108c | 17059 | else |
bec39cab AC |
17060 | echo "$as_me: failed program was:" >&5 |
17061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17062 | ||
a3828db0 | 17063 | gdb_cv_func_sigsetjmp=no |
c906108c | 17064 | fi |
bec39cab | 17065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17066 | fi |
a3828db0 MK |
17067 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
17068 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
17069 | if test $gdb_cv_func_sigsetjmp = yes; then | |
c906108c | 17070 | |
a3828db0 MK |
17071 | cat >>confdefs.h <<\_ACEOF |
17072 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 17073 | _ACEOF |
c906108c | 17074 | |
97bf5e38 | 17075 | fi |
c906108c | 17076 | |
a3828db0 MK |
17077 | # Assume we'll default to using the included libiberty regex. |
17078 | gdb_use_included_regex=yes | |
17079 | ||
17080 | # However, if the system regex is GNU regex, then default to *not* | |
17081 | # using the included regex. | |
17082 | echo "$as_me:$LINENO: checking for GNU regex" >&5 | |
17083 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
17084 | if test "${gdb_cv_have_gnu_regex+set}" = set; then | |
bec39cab AC |
17085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17086 | else | |
17087 | cat >conftest.$ac_ext <<_ACEOF | |
17088 | /* confdefs.h. */ | |
17089 | _ACEOF | |
17090 | cat confdefs.h >>conftest.$ac_ext | |
17091 | cat >>conftest.$ac_ext <<_ACEOF | |
17092 | /* end confdefs.h. */ | |
a3828db0 | 17093 | #include <gnu-versions.h> |
bec39cab AC |
17094 | int |
17095 | main () | |
17096 | { | |
a3828db0 MK |
17097 | #define REGEX_INTERFACE_VERSION 1 |
17098 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
17099 | # error "Version mismatch" | |
17100 | #endif | |
bec39cab AC |
17101 | ; |
17102 | return 0; | |
17103 | } | |
17104 | _ACEOF | |
17105 | rm -f conftest.$ac_objext | |
17106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17107 | (eval $ac_compile) 2>conftest.er1 | |
17108 | ac_status=$? | |
17109 | grep -v '^ *+' conftest.er1 >conftest.err | |
17110 | rm -f conftest.er1 | |
17111 | cat conftest.err >&5 | |
17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17113 | (exit $ac_status); } && | |
17114 | { ac_try='test -z "$ac_c_werror_flag" | |
17115 | || test ! -s conftest.err' | |
17116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17117 | (eval $ac_try) 2>&5 | |
17118 | ac_status=$? | |
17119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17120 | (exit $ac_status); }; } && | |
17121 | { ac_try='test -s conftest.$ac_objext' | |
17122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17123 | (eval $ac_try) 2>&5 | |
17124 | ac_status=$? | |
17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17126 | (exit $ac_status); }; }; then | |
a3828db0 | 17127 | gdb_cv_have_gnu_regex=yes |
c906108c | 17128 | else |
bec39cab AC |
17129 | echo "$as_me: failed program was:" >&5 |
17130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17131 | ||
a3828db0 | 17132 | gdb_cv_have_gnu_regex=no |
c906108c | 17133 | fi |
bec39cab | 17134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17135 | fi |
a3828db0 MK |
17136 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
17137 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
17138 | if test $gdb_cv_have_gnu_regex = yes; then | |
17139 | gdb_use_included_regex=no | |
17140 | fi | |
c906108c | 17141 | |
a3828db0 MK |
17142 | |
17143 | # Check whether --with-included-regex or --without-included-regex was given. | |
17144 | if test "${with_included_regex+set}" = set; then | |
17145 | withval="$with_included_regex" | |
17146 | gdb_with_regex=$withval | |
17147 | else | |
17148 | gdb_with_regex=$gdb_use_included_regex | |
17149 | fi; | |
17150 | if test "$gdb_with_regex" = yes; then | |
17151 | ||
17152 | cat >>confdefs.h <<\_ACEOF | |
17153 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 17154 | _ACEOF |
c906108c | 17155 | |
97bf5e38 | 17156 | fi |
c906108c | 17157 | |
5c45e068 MK |
17158 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
17159 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 | |
17160 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
17161 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then | |
bec39cab AC |
17162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17163 | else | |
17164 | cat >conftest.$ac_ext <<_ACEOF | |
17165 | /* confdefs.h. */ | |
17166 | _ACEOF | |
17167 | cat confdefs.h >>conftest.$ac_ext | |
17168 | cat >>conftest.$ac_ext <<_ACEOF | |
17169 | /* end confdefs.h. */ | |
a3828db0 MK |
17170 | #include <sys/param.h> |
17171 | #include <sys/proc.h> | |
5c45e068 MK |
17172 | |
17173 | ||
bec39cab AC |
17174 | int |
17175 | main () | |
17176 | { | |
5c45e068 MK |
17177 | static struct thread ac_aggr; |
17178 | if (ac_aggr.td_pcb) | |
17179 | return 0; | |
bec39cab AC |
17180 | ; |
17181 | return 0; | |
17182 | } | |
17183 | _ACEOF | |
17184 | rm -f conftest.$ac_objext | |
17185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17186 | (eval $ac_compile) 2>conftest.er1 | |
17187 | ac_status=$? | |
17188 | grep -v '^ *+' conftest.er1 >conftest.err | |
17189 | rm -f conftest.er1 | |
17190 | cat conftest.err >&5 | |
17191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17192 | (exit $ac_status); } && | |
17193 | { ac_try='test -z "$ac_c_werror_flag" | |
17194 | || test ! -s conftest.err' | |
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); }; } && | |
17200 | { ac_try='test -s conftest.$ac_objext' | |
17201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17202 | (eval $ac_try) 2>&5 | |
17203 | ac_status=$? | |
17204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17205 | (exit $ac_status); }; }; then | |
5c45e068 | 17206 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 17207 | else |
bec39cab AC |
17208 | echo "$as_me: failed program was:" >&5 |
17209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17210 | ||
5c45e068 MK |
17211 | cat >conftest.$ac_ext <<_ACEOF |
17212 | /* confdefs.h. */ | |
17213 | _ACEOF | |
17214 | cat confdefs.h >>conftest.$ac_ext | |
17215 | cat >>conftest.$ac_ext <<_ACEOF | |
17216 | /* end confdefs.h. */ | |
17217 | #include <sys/param.h> | |
17218 | #include <sys/proc.h> | |
17219 | ||
17220 | ||
17221 | int | |
17222 | main () | |
17223 | { | |
17224 | static struct thread ac_aggr; | |
17225 | if (sizeof ac_aggr.td_pcb) | |
17226 | return 0; | |
17227 | ; | |
17228 | return 0; | |
17229 | } | |
17230 | _ACEOF | |
17231 | rm -f conftest.$ac_objext | |
17232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17233 | (eval $ac_compile) 2>conftest.er1 | |
17234 | ac_status=$? | |
17235 | grep -v '^ *+' conftest.er1 >conftest.err | |
17236 | rm -f conftest.er1 | |
17237 | cat conftest.err >&5 | |
17238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17239 | (exit $ac_status); } && | |
17240 | { ac_try='test -z "$ac_c_werror_flag" | |
17241 | || test ! -s conftest.err' | |
17242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17243 | (eval $ac_try) 2>&5 | |
17244 | ac_status=$? | |
17245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17246 | (exit $ac_status); }; } && | |
17247 | { ac_try='test -s conftest.$ac_objext' | |
17248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17249 | (eval $ac_try) 2>&5 | |
17250 | ac_status=$? | |
17251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17252 | (exit $ac_status); }; }; then | |
17253 | ac_cv_member_struct_thread_td_pcb=yes | |
17254 | else | |
17255 | echo "$as_me: failed program was:" >&5 | |
17256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17257 | ||
17258 | ac_cv_member_struct_thread_td_pcb=no | |
17259 | fi | |
17260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 17261 | fi |
bec39cab | 17262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17263 | fi |
5c45e068 MK |
17264 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
17265 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
17266 | if test $ac_cv_member_struct_thread_td_pcb = yes; then | |
c906108c | 17267 | |
5c45e068 | 17268 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 17269 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 17270 | _ACEOF |
c906108c | 17271 | |
5c45e068 | 17272 | |
97bf5e38 | 17273 | fi |
c906108c | 17274 | |
5c45e068 | 17275 | |
a3828db0 MK |
17276 | # See if <sys/lwp.h> defines `struct lwp`. |
17277 | echo "$as_me:$LINENO: checking for struct lwp" >&5 | |
17278 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
17279 | if test "${gdb_cv_struct_lwp+set}" = set; then | |
bec39cab AC |
17280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17281 | else | |
17282 | cat >conftest.$ac_ext <<_ACEOF | |
17283 | /* confdefs.h. */ | |
17284 | _ACEOF | |
17285 | cat confdefs.h >>conftest.$ac_ext | |
17286 | cat >>conftest.$ac_ext <<_ACEOF | |
17287 | /* end confdefs.h. */ | |
a3828db0 MK |
17288 | #include <sys/param.h> |
17289 | #include <sys/lwp.h> | |
bec39cab AC |
17290 | int |
17291 | main () | |
17292 | { | |
a3828db0 | 17293 | struct lwp l; |
bec39cab AC |
17294 | ; |
17295 | return 0; | |
17296 | } | |
17297 | _ACEOF | |
17298 | rm -f conftest.$ac_objext | |
17299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17300 | (eval $ac_compile) 2>conftest.er1 | |
17301 | ac_status=$? | |
17302 | grep -v '^ *+' conftest.er1 >conftest.err | |
17303 | rm -f conftest.er1 | |
17304 | cat conftest.err >&5 | |
17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17306 | (exit $ac_status); } && | |
17307 | { ac_try='test -z "$ac_c_werror_flag" | |
17308 | || test ! -s conftest.err' | |
17309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17310 | (eval $ac_try) 2>&5 | |
17311 | ac_status=$? | |
17312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17313 | (exit $ac_status); }; } && | |
17314 | { ac_try='test -s conftest.$ac_objext' | |
17315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17316 | (eval $ac_try) 2>&5 | |
17317 | ac_status=$? | |
17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17319 | (exit $ac_status); }; }; then | |
a3828db0 | 17320 | gdb_cv_struct_lwp=yes |
c906108c | 17321 | else |
bec39cab AC |
17322 | echo "$as_me: failed program was:" >&5 |
17323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17324 | ||
a3828db0 | 17325 | gdb_cv_struct_lwp=no |
c906108c | 17326 | fi |
bec39cab | 17327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 17328 | fi |
a3828db0 MK |
17329 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
17330 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
17331 | if test $gdb_cv_struct_lwp = yes; then | |
c906108c | 17332 | |
a3828db0 MK |
17333 | cat >>confdefs.h <<\_ACEOF |
17334 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 17335 | _ACEOF |
c906108c | 17336 | |
97bf5e38 | 17337 | fi |
c906108c | 17338 | |
a3828db0 MK |
17339 | # See if <machine/reg.h> degines `struct reg'. |
17340 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 | |
17341 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
17342 | if test "${gdb_cv_struct_reg+set}" = set; then | |
bec39cab AC |
17343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17344 | else | |
17345 | cat >conftest.$ac_ext <<_ACEOF | |
17346 | /* confdefs.h. */ | |
17347 | _ACEOF | |
17348 | cat confdefs.h >>conftest.$ac_ext | |
17349 | cat >>conftest.$ac_ext <<_ACEOF | |
17350 | /* end confdefs.h. */ | |
a3828db0 MK |
17351 | #include <sys/types.h> |
17352 | #include <machine/reg.h> | |
bec39cab AC |
17353 | int |
17354 | main () | |
17355 | { | |
a3828db0 | 17356 | struct reg r; |
bec39cab AC |
17357 | ; |
17358 | return 0; | |
17359 | } | |
17360 | _ACEOF | |
17361 | rm -f conftest.$ac_objext | |
17362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17363 | (eval $ac_compile) 2>conftest.er1 | |
17364 | ac_status=$? | |
17365 | grep -v '^ *+' conftest.er1 >conftest.err | |
17366 | rm -f conftest.er1 | |
17367 | cat conftest.err >&5 | |
17368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17369 | (exit $ac_status); } && | |
17370 | { ac_try='test -z "$ac_c_werror_flag" | |
17371 | || test ! -s conftest.err' | |
17372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17373 | (eval $ac_try) 2>&5 | |
17374 | ac_status=$? | |
17375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17376 | (exit $ac_status); }; } && | |
17377 | { ac_try='test -s conftest.$ac_objext' | |
17378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17379 | (eval $ac_try) 2>&5 | |
17380 | ac_status=$? | |
17381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17382 | (exit $ac_status); }; }; then | |
a3828db0 | 17383 | gdb_cv_struct_reg=yes |
27ca5dad | 17384 | else |
bec39cab AC |
17385 | echo "$as_me: failed program was:" >&5 |
17386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17387 | ||
a3828db0 | 17388 | gdb_cv_struct_reg=no |
27ca5dad | 17389 | fi |
bec39cab | 17390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 17391 | fi |
a3828db0 MK |
17392 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
17393 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
17394 | if test $gdb_cv_struct_reg = yes; then | |
bec39cab AC |
17395 | |
17396 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17397 | #define HAVE_STRUCT_REG 1 |
bec39cab | 17398 | _ACEOF |
27ca5dad MC |
17399 | |
17400 | fi | |
97bf5e38 | 17401 | |
a3828db0 MK |
17402 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
17403 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
5c45e068 MK |
17404 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
17405 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
17406 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then | |
bec39cab | 17407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17408 | else |
bec39cab AC |
17409 | cat >conftest.$ac_ext <<_ACEOF |
17410 | /* confdefs.h. */ | |
17411 | _ACEOF | |
17412 | cat confdefs.h >>conftest.$ac_ext | |
17413 | cat >>conftest.$ac_ext <<_ACEOF | |
17414 | /* end confdefs.h. */ | |
a3828db0 | 17415 | #include <machine/reg.h> |
5c45e068 MK |
17416 | |
17417 | int | |
17418 | main () | |
17419 | { | |
17420 | static struct reg ac_aggr; | |
17421 | if (ac_aggr.r_fs) | |
17422 | return 0; | |
17423 | ; | |
17424 | return 0; | |
17425 | } | |
17426 | _ACEOF | |
17427 | rm -f conftest.$ac_objext | |
17428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17429 | (eval $ac_compile) 2>conftest.er1 | |
17430 | ac_status=$? | |
17431 | grep -v '^ *+' conftest.er1 >conftest.err | |
17432 | rm -f conftest.er1 | |
17433 | cat conftest.err >&5 | |
17434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17435 | (exit $ac_status); } && | |
17436 | { ac_try='test -z "$ac_c_werror_flag" | |
17437 | || test ! -s conftest.err' | |
17438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17439 | (eval $ac_try) 2>&5 | |
17440 | ac_status=$? | |
17441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17442 | (exit $ac_status); }; } && | |
17443 | { ac_try='test -s conftest.$ac_objext' | |
17444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17445 | (eval $ac_try) 2>&5 | |
17446 | ac_status=$? | |
17447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17448 | (exit $ac_status); }; }; then | |
17449 | ac_cv_member_struct_reg_r_fs=yes | |
17450 | else | |
17451 | echo "$as_me: failed program was:" >&5 | |
17452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17453 | ||
17454 | cat >conftest.$ac_ext <<_ACEOF | |
17455 | /* confdefs.h. */ | |
17456 | _ACEOF | |
17457 | cat confdefs.h >>conftest.$ac_ext | |
17458 | cat >>conftest.$ac_ext <<_ACEOF | |
17459 | /* end confdefs.h. */ | |
17460 | #include <machine/reg.h> | |
17461 | ||
bec39cab AC |
17462 | int |
17463 | main () | |
17464 | { | |
5c45e068 MK |
17465 | static struct reg ac_aggr; |
17466 | if (sizeof ac_aggr.r_fs) | |
17467 | return 0; | |
bec39cab AC |
17468 | ; |
17469 | return 0; | |
17470 | } | |
17471 | _ACEOF | |
17472 | rm -f conftest.$ac_objext | |
17473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17474 | (eval $ac_compile) 2>conftest.er1 | |
17475 | ac_status=$? | |
17476 | grep -v '^ *+' conftest.er1 >conftest.err | |
17477 | rm -f conftest.er1 | |
17478 | cat conftest.err >&5 | |
17479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17480 | (exit $ac_status); } && | |
17481 | { ac_try='test -z "$ac_c_werror_flag" | |
17482 | || test ! -s conftest.err' | |
17483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17484 | (eval $ac_try) 2>&5 | |
17485 | ac_status=$? | |
17486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17487 | (exit $ac_status); }; } && | |
17488 | { ac_try='test -s conftest.$ac_objext' | |
17489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17490 | (eval $ac_try) 2>&5 | |
17491 | ac_status=$? | |
17492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17493 | (exit $ac_status); }; }; then | |
5c45e068 | 17494 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 17495 | else |
bec39cab AC |
17496 | echo "$as_me: failed program was:" >&5 |
17497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17498 | ||
5c45e068 | 17499 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 17500 | fi |
bec39cab | 17501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 17502 | fi |
5c45e068 MK |
17503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17504 | fi | |
17505 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 | |
17506 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
17507 | if test $ac_cv_member_struct_reg_r_fs = yes; then | |
17508 | ||
17509 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 17510 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 17511 | _ACEOF |
3862412b | 17512 | |
5c45e068 | 17513 | |
97bf5e38 | 17514 | fi |
5c45e068 MK |
17515 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
17516 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
17517 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then | |
bec39cab | 17518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17519 | else |
bec39cab AC |
17520 | cat >conftest.$ac_ext <<_ACEOF |
17521 | /* confdefs.h. */ | |
17522 | _ACEOF | |
17523 | cat confdefs.h >>conftest.$ac_ext | |
17524 | cat >>conftest.$ac_ext <<_ACEOF | |
17525 | /* end confdefs.h. */ | |
a3828db0 | 17526 | #include <machine/reg.h> |
5c45e068 | 17527 | |
bec39cab AC |
17528 | int |
17529 | main () | |
17530 | { | |
5c45e068 MK |
17531 | static struct reg ac_aggr; |
17532 | if (ac_aggr.r_gs) | |
17533 | return 0; | |
bec39cab AC |
17534 | ; |
17535 | return 0; | |
17536 | } | |
17537 | _ACEOF | |
17538 | rm -f conftest.$ac_objext | |
17539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17540 | (eval $ac_compile) 2>conftest.er1 | |
17541 | ac_status=$? | |
17542 | grep -v '^ *+' conftest.er1 >conftest.err | |
17543 | rm -f conftest.er1 | |
17544 | cat conftest.err >&5 | |
17545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17546 | (exit $ac_status); } && | |
17547 | { ac_try='test -z "$ac_c_werror_flag" | |
17548 | || test ! -s conftest.err' | |
17549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17550 | (eval $ac_try) 2>&5 | |
17551 | ac_status=$? | |
17552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17553 | (exit $ac_status); }; } && | |
17554 | { ac_try='test -s conftest.$ac_objext' | |
17555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17556 | (eval $ac_try) 2>&5 | |
17557 | ac_status=$? | |
17558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17559 | (exit $ac_status); }; }; then | |
5c45e068 | 17560 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 17561 | else |
bec39cab AC |
17562 | echo "$as_me: failed program was:" >&5 |
17563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17564 | ||
5c45e068 MK |
17565 | cat >conftest.$ac_ext <<_ACEOF |
17566 | /* confdefs.h. */ | |
17567 | _ACEOF | |
17568 | cat confdefs.h >>conftest.$ac_ext | |
17569 | cat >>conftest.$ac_ext <<_ACEOF | |
17570 | /* end confdefs.h. */ | |
17571 | #include <machine/reg.h> | |
17572 | ||
17573 | int | |
17574 | main () | |
17575 | { | |
17576 | static struct reg ac_aggr; | |
17577 | if (sizeof ac_aggr.r_gs) | |
17578 | return 0; | |
17579 | ; | |
17580 | return 0; | |
17581 | } | |
17582 | _ACEOF | |
17583 | rm -f conftest.$ac_objext | |
17584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17585 | (eval $ac_compile) 2>conftest.er1 | |
17586 | ac_status=$? | |
17587 | grep -v '^ *+' conftest.er1 >conftest.err | |
17588 | rm -f conftest.er1 | |
17589 | cat conftest.err >&5 | |
17590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17591 | (exit $ac_status); } && | |
17592 | { ac_try='test -z "$ac_c_werror_flag" | |
17593 | || test ! -s conftest.err' | |
17594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17595 | (eval $ac_try) 2>&5 | |
17596 | ac_status=$? | |
17597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17598 | (exit $ac_status); }; } && | |
17599 | { ac_try='test -s conftest.$ac_objext' | |
17600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17601 | (eval $ac_try) 2>&5 | |
17602 | ac_status=$? | |
17603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17604 | (exit $ac_status); }; }; then | |
17605 | ac_cv_member_struct_reg_r_gs=yes | |
17606 | else | |
17607 | echo "$as_me: failed program was:" >&5 | |
17608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17609 | ||
17610 | ac_cv_member_struct_reg_r_gs=no | |
3862412b | 17611 | fi |
bec39cab | 17612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 17613 | fi |
5c45e068 MK |
17614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
17615 | fi | |
17616 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 | |
17617 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
17618 | if test $ac_cv_member_struct_reg_r_gs = yes; then | |
17619 | ||
17620 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 17621 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 17622 | _ACEOF |
3862412b | 17623 | |
5c45e068 | 17624 | |
97bf5e38 | 17625 | fi |
3862412b | 17626 | |
5c45e068 | 17627 | |
a3828db0 MK |
17628 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
17629 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 | |
17630 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
17631 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then | |
bec39cab | 17632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 17633 | else |
bec39cab AC |
17634 | cat >conftest.$ac_ext <<_ACEOF |
17635 | /* confdefs.h. */ | |
17636 | _ACEOF | |
17637 | cat confdefs.h >>conftest.$ac_ext | |
17638 | cat >>conftest.$ac_ext <<_ACEOF | |
17639 | /* end confdefs.h. */ | |
a3828db0 | 17640 | #include <sys/ptrace.h> |
bec39cab AC |
17641 | int |
17642 | main () | |
17643 | { | |
a3828db0 | 17644 | PTRACE_GETREGS; |
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); } && | |
17658 | { ac_try='test -z "$ac_c_werror_flag" | |
17659 | || test ! -s conftest.err' | |
17660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17661 | (eval $ac_try) 2>&5 | |
17662 | ac_status=$? | |
17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17664 | (exit $ac_status); }; } && | |
17665 | { ac_try='test -s conftest.$ac_objext' | |
17666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17667 | (eval $ac_try) 2>&5 | |
17668 | ac_status=$? | |
17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17670 | (exit $ac_status); }; }; then | |
a3828db0 | 17671 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 17672 | else |
bec39cab AC |
17673 | echo "$as_me: failed program was:" >&5 |
17674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17675 | ||
a3828db0 | 17676 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 17677 | fi |
bec39cab | 17678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17679 | fi |
17680 | ||
a3828db0 MK |
17681 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
17682 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
17683 | if test $gdb_cv_have_ptrace_getregs = yes; then | |
60ca704f SE |
17684 | |
17685 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17686 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 17687 | _ACEOF |
451928c5 | 17688 | |
97bf5e38 | 17689 | fi |
451928c5 | 17690 | |
a3828db0 MK |
17691 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
17692 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 | |
17693 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
17694 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then | |
bec39cab | 17695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 17696 | else |
bec39cab AC |
17697 | cat >conftest.$ac_ext <<_ACEOF |
17698 | /* confdefs.h. */ | |
17699 | _ACEOF | |
17700 | cat confdefs.h >>conftest.$ac_ext | |
17701 | cat >>conftest.$ac_ext <<_ACEOF | |
17702 | /* end confdefs.h. */ | |
a3828db0 | 17703 | #include <sys/ptrace.h> |
bec39cab AC |
17704 | int |
17705 | main () | |
17706 | { | |
a3828db0 | 17707 | PTRACE_GETFPXREGS; |
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); } && | |
17721 | { ac_try='test -z "$ac_c_werror_flag" | |
17722 | || test ! -s conftest.err' | |
17723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17724 | (eval $ac_try) 2>&5 | |
17725 | ac_status=$? | |
17726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17727 | (exit $ac_status); }; } && | |
17728 | { ac_try='test -s conftest.$ac_objext' | |
17729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17730 | (eval $ac_try) 2>&5 | |
17731 | ac_status=$? | |
17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17733 | (exit $ac_status); }; }; then | |
a3828db0 | 17734 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 17735 | else |
bec39cab AC |
17736 | echo "$as_me: failed program was:" >&5 |
17737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17738 | ||
a3828db0 | 17739 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 17740 | fi |
bec39cab | 17741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17742 | fi |
17743 | ||
a3828db0 MK |
17744 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
17745 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
17746 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then | |
60ca704f SE |
17747 | |
17748 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17749 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 17750 | _ACEOF |
451928c5 | 17751 | |
97bf5e38 | 17752 | fi |
451928c5 | 17753 | |
a3828db0 MK |
17754 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
17755 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 | |
17756 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
17757 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then | |
bec39cab | 17758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17759 | else |
bec39cab AC |
17760 | cat >conftest.$ac_ext <<_ACEOF |
17761 | /* confdefs.h. */ | |
17762 | _ACEOF | |
17763 | cat confdefs.h >>conftest.$ac_ext | |
17764 | cat >>conftest.$ac_ext <<_ACEOF | |
17765 | /* end confdefs.h. */ | |
a3828db0 MK |
17766 | #include <sys/types.h> |
17767 | #include <sys/ptrace.h> | |
bec39cab AC |
17768 | int |
17769 | main () | |
17770 | { | |
a3828db0 | 17771 | PT_GETDBREGS; |
bec39cab AC |
17772 | ; |
17773 | return 0; | |
17774 | } | |
17775 | _ACEOF | |
17776 | rm -f conftest.$ac_objext | |
17777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17778 | (eval $ac_compile) 2>conftest.er1 | |
17779 | ac_status=$? | |
17780 | grep -v '^ *+' conftest.er1 >conftest.err | |
17781 | rm -f conftest.er1 | |
17782 | cat conftest.err >&5 | |
17783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17784 | (exit $ac_status); } && | |
17785 | { ac_try='test -z "$ac_c_werror_flag" | |
17786 | || test ! -s conftest.err' | |
17787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17788 | (eval $ac_try) 2>&5 | |
17789 | ac_status=$? | |
17790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17791 | (exit $ac_status); }; } && | |
17792 | { ac_try='test -s conftest.$ac_objext' | |
17793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17794 | (eval $ac_try) 2>&5 | |
17795 | ac_status=$? | |
17796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17797 | (exit $ac_status); }; }; then | |
a3828db0 | 17798 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 17799 | else |
bec39cab AC |
17800 | echo "$as_me: failed program was:" >&5 |
17801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17802 | ||
a3828db0 | 17803 | gdb_cv_have_pt_getdbregs=no |
3862412b | 17804 | fi |
bec39cab | 17805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17806 | fi |
17807 | ||
a3828db0 MK |
17808 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
17809 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
17810 | if test $gdb_cv_have_pt_getdbregs = yes; then | |
60ca704f SE |
17811 | |
17812 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17813 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 17814 | _ACEOF |
3862412b | 17815 | |
97bf5e38 | 17816 | fi |
3862412b | 17817 | |
a3828db0 MK |
17818 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
17819 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 | |
17820 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
17821 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then | |
bec39cab | 17822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 17823 | else |
bec39cab AC |
17824 | cat >conftest.$ac_ext <<_ACEOF |
17825 | /* confdefs.h. */ | |
17826 | _ACEOF | |
17827 | cat confdefs.h >>conftest.$ac_ext | |
17828 | cat >>conftest.$ac_ext <<_ACEOF | |
17829 | /* end confdefs.h. */ | |
a3828db0 MK |
17830 | #include <sys/types.h> |
17831 | #include <sys/ptrace.h> | |
bec39cab AC |
17832 | int |
17833 | main () | |
17834 | { | |
a3828db0 | 17835 | PT_GETXMMREGS; |
bec39cab AC |
17836 | ; |
17837 | return 0; | |
17838 | } | |
17839 | _ACEOF | |
17840 | rm -f conftest.$ac_objext | |
17841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17842 | (eval $ac_compile) 2>conftest.er1 | |
17843 | ac_status=$? | |
17844 | grep -v '^ *+' conftest.er1 >conftest.err | |
17845 | rm -f conftest.er1 | |
17846 | cat conftest.err >&5 | |
17847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17848 | (exit $ac_status); } && | |
17849 | { ac_try='test -z "$ac_c_werror_flag" | |
17850 | || test ! -s conftest.err' | |
17851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17852 | (eval $ac_try) 2>&5 | |
17853 | ac_status=$? | |
17854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17855 | (exit $ac_status); }; } && | |
17856 | { ac_try='test -s conftest.$ac_objext' | |
17857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17858 | (eval $ac_try) 2>&5 | |
17859 | ac_status=$? | |
17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17861 | (exit $ac_status); }; }; then | |
a3828db0 | 17862 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 17863 | else |
bec39cab AC |
17864 | echo "$as_me: failed program was:" >&5 |
17865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17866 | ||
a3828db0 | 17867 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 17868 | fi |
bec39cab | 17869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17870 | fi |
17871 | ||
a3828db0 MK |
17872 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
17873 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
17874 | if test $gdb_cv_have_pt_getxmmregs = yes; then | |
60ca704f SE |
17875 | |
17876 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 17877 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 17878 | _ACEOF |
3862412b | 17879 | |
97bf5e38 | 17880 | fi |
3862412b | 17881 | |
97bf5e38 MK |
17882 | # If we are configured native on GNU/Linux, work around problems with |
17883 | # sys/procfs.h | |
17884 | # Also detect which type of /proc is in use, such as for Unixware or Solaris. | |
17885 | ||
17886 | if test "${target}" = "${host}"; then | |
17887 | case "${host}" in | |
17888 | i[3456]86-*-linux*) | |
60ca704f SE |
17889 | |
17890 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17891 | #define START_INFERIOR_TRAPS_EXPECTED 2 |
bec39cab | 17892 | _ACEOF |
97bf5e38 | 17893 | |
60ca704f SE |
17894 | |
17895 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17896 | #define sys_quotactl 1 |
bec39cab | 17897 | _ACEOF |
97bf5e38 MK |
17898 | |
17899 | ;; | |
97bf5e38 | 17900 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
17901 | |
17902 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17903 | #define NEW_PROC_API 1 |
bec39cab | 17904 | _ACEOF |
97bf5e38 MK |
17905 | |
17906 | ;; | |
0bbc026e | 17907 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
60ca704f SE |
17908 | |
17909 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17910 | #define NEW_PROC_API 1 |
bec39cab | 17911 | _ACEOF |
c960c18f AC |
17912 | |
17913 | ;; | |
17914 | mips-sgi-irix5*) | |
17915 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
17916 | |
17917 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 17918 | #define _KMEMUSER 1 |
bec39cab | 17919 | _ACEOF |
97bf5e38 MK |
17920 | |
17921 | ;; | |
17922 | esac | |
17923 | fi | |
17924 | ||
17925 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
bec39cab AC |
17926 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
17927 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
17928 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
17929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17930 | else | |
17931 | cat >conftest.$ac_ext <<_ACEOF | |
17932 | /* confdefs.h. */ | |
17933 | _ACEOF | |
17934 | cat confdefs.h >>conftest.$ac_ext | |
17935 | cat >>conftest.$ac_ext <<_ACEOF | |
17936 | /* end confdefs.h. */ | |
596c9d4b KB |
17937 | |
17938 | #define _SYSCALL32 | |
17939 | #include <sys/procfs.h> | |
bec39cab AC |
17940 | int |
17941 | main () | |
17942 | { | |
97bf5e38 | 17943 | pstatus_t avar |
bec39cab AC |
17944 | ; |
17945 | return 0; | |
17946 | } | |
17947 | _ACEOF | |
17948 | rm -f conftest.$ac_objext | |
17949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17950 | (eval $ac_compile) 2>conftest.er1 | |
17951 | ac_status=$? | |
17952 | grep -v '^ *+' conftest.er1 >conftest.err | |
17953 | rm -f conftest.er1 | |
17954 | cat conftest.err >&5 | |
17955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17956 | (exit $ac_status); } && | |
17957 | { ac_try='test -z "$ac_c_werror_flag" | |
17958 | || test ! -s conftest.err' | |
17959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17960 | (eval $ac_try) 2>&5 | |
17961 | ac_status=$? | |
17962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17963 | (exit $ac_status); }; } && | |
17964 | { ac_try='test -s conftest.$ac_objext' | |
17965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17966 | (eval $ac_try) 2>&5 | |
17967 | ac_status=$? | |
17968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17969 | (exit $ac_status); }; }; then | |
97bf5e38 | 17970 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 17971 | else |
bec39cab AC |
17972 | echo "$as_me: failed program was:" >&5 |
17973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17974 | ||
17975 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
17976 | ||
596c9d4b | 17977 | fi |
bec39cab | 17978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17979 | fi |
17980 | ||
97bf5e38 | 17981 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
17982 | |
17983 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17984 | #define HAVE_PSTATUS_T 1 |
bec39cab | 17985 | _ACEOF |
596c9d4b KB |
17986 | |
17987 | fi | |
bec39cab AC |
17988 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
17989 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 17990 | |
bec39cab AC |
17991 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
17992 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
17993 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then | |
17994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17995 | else |
bec39cab AC |
17996 | cat >conftest.$ac_ext <<_ACEOF |
17997 | /* confdefs.h. */ | |
17998 | _ACEOF | |
17999 | cat confdefs.h >>conftest.$ac_ext | |
18000 | cat >>conftest.$ac_ext <<_ACEOF | |
18001 | /* end confdefs.h. */ | |
596c9d4b KB |
18002 | |
18003 | #define _SYSCALL32 | |
18004 | #include <sys/procfs.h> | |
bec39cab AC |
18005 | int |
18006 | main () | |
18007 | { | |
97bf5e38 | 18008 | prrun_t avar |
bec39cab AC |
18009 | ; |
18010 | return 0; | |
18011 | } | |
18012 | _ACEOF | |
18013 | rm -f conftest.$ac_objext | |
18014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18015 | (eval $ac_compile) 2>conftest.er1 | |
18016 | ac_status=$? | |
18017 | grep -v '^ *+' conftest.er1 >conftest.err | |
18018 | rm -f conftest.er1 | |
18019 | cat conftest.err >&5 | |
18020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18021 | (exit $ac_status); } && | |
18022 | { ac_try='test -z "$ac_c_werror_flag" | |
18023 | || test ! -s conftest.err' | |
18024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18025 | (eval $ac_try) 2>&5 | |
18026 | ac_status=$? | |
18027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18028 | (exit $ac_status); }; } && | |
18029 | { ac_try='test -s conftest.$ac_objext' | |
18030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18031 | (eval $ac_try) 2>&5 | |
18032 | ac_status=$? | |
18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18034 | (exit $ac_status); }; }; then | |
97bf5e38 | 18035 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 18036 | else |
bec39cab AC |
18037 | echo "$as_me: failed program was:" >&5 |
18038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18039 | ||
18040 | bfd_cv_have_sys_procfs_type_prrun_t=no | |
18041 | ||
596c9d4b | 18042 | fi |
bec39cab | 18043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
18044 | fi |
18045 | ||
97bf5e38 | 18046 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
18047 | |
18048 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18049 | #define HAVE_PRRUN_T 1 |
bec39cab | 18050 | _ACEOF |
596c9d4b KB |
18051 | |
18052 | fi | |
bec39cab AC |
18053 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
18054 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 18055 | |
bec39cab AC |
18056 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
18057 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
18058 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then | |
18059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 18060 | else |
bec39cab AC |
18061 | cat >conftest.$ac_ext <<_ACEOF |
18062 | /* confdefs.h. */ | |
18063 | _ACEOF | |
18064 | cat confdefs.h >>conftest.$ac_ext | |
18065 | cat >>conftest.$ac_ext <<_ACEOF | |
18066 | /* end confdefs.h. */ | |
596c9d4b KB |
18067 | |
18068 | #define _SYSCALL32 | |
18069 | #include <sys/procfs.h> | |
bec39cab AC |
18070 | int |
18071 | main () | |
18072 | { | |
97bf5e38 | 18073 | gregset_t avar |
bec39cab AC |
18074 | ; |
18075 | return 0; | |
18076 | } | |
18077 | _ACEOF | |
18078 | rm -f conftest.$ac_objext | |
18079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18080 | (eval $ac_compile) 2>conftest.er1 | |
18081 | ac_status=$? | |
18082 | grep -v '^ *+' conftest.er1 >conftest.err | |
18083 | rm -f conftest.er1 | |
18084 | cat conftest.err >&5 | |
18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18086 | (exit $ac_status); } && | |
18087 | { ac_try='test -z "$ac_c_werror_flag" | |
18088 | || test ! -s conftest.err' | |
18089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18090 | (eval $ac_try) 2>&5 | |
18091 | ac_status=$? | |
18092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18093 | (exit $ac_status); }; } && | |
18094 | { ac_try='test -s conftest.$ac_objext' | |
18095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18096 | (eval $ac_try) 2>&5 | |
18097 | ac_status=$? | |
18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18099 | (exit $ac_status); }; }; then | |
97bf5e38 | 18100 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 18101 | else |
bec39cab AC |
18102 | echo "$as_me: failed program was:" >&5 |
18103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18104 | ||
18105 | bfd_cv_have_sys_procfs_type_gregset_t=no | |
18106 | ||
596c9d4b | 18107 | fi |
bec39cab | 18108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
18109 | fi |
18110 | ||
97bf5e38 | 18111 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
18112 | |
18113 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18114 | #define HAVE_GREGSET_T 1 |
bec39cab | 18115 | _ACEOF |
596c9d4b KB |
18116 | |
18117 | fi | |
bec39cab AC |
18118 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
18119 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 18120 | |
bec39cab AC |
18121 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
18122 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
18123 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then | |
18124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 18125 | else |
bec39cab AC |
18126 | cat >conftest.$ac_ext <<_ACEOF |
18127 | /* confdefs.h. */ | |
18128 | _ACEOF | |
18129 | cat confdefs.h >>conftest.$ac_ext | |
18130 | cat >>conftest.$ac_ext <<_ACEOF | |
18131 | /* end confdefs.h. */ | |
97bf5e38 MK |
18132 | |
18133 | #define _SYSCALL32 | |
d84dd0c5 | 18134 | #include <sys/procfs.h> |
bec39cab AC |
18135 | int |
18136 | main () | |
18137 | { | |
97bf5e38 | 18138 | fpregset_t avar |
bec39cab AC |
18139 | ; |
18140 | return 0; | |
18141 | } | |
18142 | _ACEOF | |
18143 | rm -f conftest.$ac_objext | |
18144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18145 | (eval $ac_compile) 2>conftest.er1 | |
18146 | ac_status=$? | |
18147 | grep -v '^ *+' conftest.er1 >conftest.err | |
18148 | rm -f conftest.er1 | |
18149 | cat conftest.err >&5 | |
18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18151 | (exit $ac_status); } && | |
18152 | { ac_try='test -z "$ac_c_werror_flag" | |
18153 | || test ! -s conftest.err' | |
18154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18155 | (eval $ac_try) 2>&5 | |
18156 | ac_status=$? | |
18157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18158 | (exit $ac_status); }; } && | |
18159 | { ac_try='test -s conftest.$ac_objext' | |
18160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18161 | (eval $ac_try) 2>&5 | |
18162 | ac_status=$? | |
18163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18164 | (exit $ac_status); }; }; then | |
97bf5e38 | 18165 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 18166 | else |
bec39cab AC |
18167 | echo "$as_me: failed program was:" >&5 |
18168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18169 | ||
18170 | bfd_cv_have_sys_procfs_type_fpregset_t=no | |
18171 | ||
d84dd0c5 | 18172 | fi |
bec39cab | 18173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
18174 | fi |
18175 | ||
97bf5e38 | 18176 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
18177 | |
18178 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18179 | #define HAVE_FPREGSET_T 1 |
bec39cab | 18180 | _ACEOF |
d84dd0c5 | 18181 | |
97bf5e38 | 18182 | fi |
bec39cab AC |
18183 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
18184 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 18185 | |
bec39cab AC |
18186 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
18187 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
18188 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then | |
18189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18190 | else |
bec39cab AC |
18191 | cat >conftest.$ac_ext <<_ACEOF |
18192 | /* confdefs.h. */ | |
18193 | _ACEOF | |
18194 | cat confdefs.h >>conftest.$ac_ext | |
18195 | cat >>conftest.$ac_ext <<_ACEOF | |
18196 | /* end confdefs.h. */ | |
c906108c | 18197 | |
97bf5e38 MK |
18198 | #define _SYSCALL32 |
18199 | #include <sys/procfs.h> | |
bec39cab AC |
18200 | int |
18201 | main () | |
18202 | { | |
97bf5e38 | 18203 | prgregset_t avar |
bec39cab AC |
18204 | ; |
18205 | return 0; | |
18206 | } | |
18207 | _ACEOF | |
18208 | rm -f conftest.$ac_objext | |
18209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18210 | (eval $ac_compile) 2>conftest.er1 | |
18211 | ac_status=$? | |
18212 | grep -v '^ *+' conftest.er1 >conftest.err | |
18213 | rm -f conftest.er1 | |
18214 | cat conftest.err >&5 | |
18215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18216 | (exit $ac_status); } && | |
18217 | { ac_try='test -z "$ac_c_werror_flag" | |
18218 | || test ! -s conftest.err' | |
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); }; } && | |
18224 | { ac_try='test -s conftest.$ac_objext' | |
18225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18226 | (eval $ac_try) 2>&5 | |
18227 | ac_status=$? | |
18228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18229 | (exit $ac_status); }; }; then | |
97bf5e38 | 18230 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 18231 | else |
bec39cab AC |
18232 | echo "$as_me: failed program was:" >&5 |
18233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18234 | ||
18235 | bfd_cv_have_sys_procfs_type_prgregset_t=no | |
18236 | ||
c906108c | 18237 | fi |
bec39cab | 18238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18239 | fi |
18240 | ||
97bf5e38 | 18241 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
18242 | |
18243 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18244 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 18245 | _ACEOF |
c906108c | 18246 | |
97bf5e38 | 18247 | fi |
bec39cab AC |
18248 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
18249 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 18250 | |
bec39cab AC |
18251 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
18252 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
18253 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then | |
18254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18255 | else |
bec39cab AC |
18256 | cat >conftest.$ac_ext <<_ACEOF |
18257 | /* confdefs.h. */ | |
18258 | _ACEOF | |
18259 | cat confdefs.h >>conftest.$ac_ext | |
18260 | cat >>conftest.$ac_ext <<_ACEOF | |
18261 | /* end confdefs.h. */ | |
97bf5e38 MK |
18262 | |
18263 | #define _SYSCALL32 | |
18264 | #include <sys/procfs.h> | |
bec39cab AC |
18265 | int |
18266 | main () | |
18267 | { | |
97bf5e38 | 18268 | prfpregset_t avar |
bec39cab AC |
18269 | ; |
18270 | return 0; | |
18271 | } | |
18272 | _ACEOF | |
18273 | rm -f conftest.$ac_objext | |
18274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18275 | (eval $ac_compile) 2>conftest.er1 | |
18276 | ac_status=$? | |
18277 | grep -v '^ *+' conftest.er1 >conftest.err | |
18278 | rm -f conftest.er1 | |
18279 | cat conftest.err >&5 | |
18280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18281 | (exit $ac_status); } && | |
18282 | { ac_try='test -z "$ac_c_werror_flag" | |
18283 | || test ! -s conftest.err' | |
18284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18285 | (eval $ac_try) 2>&5 | |
18286 | ac_status=$? | |
18287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18288 | (exit $ac_status); }; } && | |
18289 | { ac_try='test -s conftest.$ac_objext' | |
18290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18291 | (eval $ac_try) 2>&5 | |
18292 | ac_status=$? | |
18293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18294 | (exit $ac_status); }; }; then | |
97bf5e38 | 18295 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 18296 | else |
bec39cab AC |
18297 | echo "$as_me: failed program was:" >&5 |
18298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18299 | ||
18300 | bfd_cv_have_sys_procfs_type_prfpregset_t=no | |
18301 | ||
d45fe813 | 18302 | fi |
bec39cab | 18303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18304 | fi |
18305 | ||
97bf5e38 | 18306 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
18307 | |
18308 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18309 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 18310 | _ACEOF |
d45fe813 | 18311 | |
97bf5e38 | 18312 | fi |
bec39cab AC |
18313 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
18314 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 18315 | |
bec39cab AC |
18316 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
18317 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
18318 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then | |
18319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18320 | else |
bec39cab AC |
18321 | cat >conftest.$ac_ext <<_ACEOF |
18322 | /* confdefs.h. */ | |
18323 | _ACEOF | |
18324 | cat confdefs.h >>conftest.$ac_ext | |
18325 | cat >>conftest.$ac_ext <<_ACEOF | |
18326 | /* end confdefs.h. */ | |
97bf5e38 MK |
18327 | |
18328 | #define _SYSCALL32 | |
18329 | #include <sys/procfs.h> | |
bec39cab AC |
18330 | int |
18331 | main () | |
18332 | { | |
97bf5e38 | 18333 | prgregset32_t avar |
bec39cab AC |
18334 | ; |
18335 | return 0; | |
18336 | } | |
18337 | _ACEOF | |
18338 | rm -f conftest.$ac_objext | |
18339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18340 | (eval $ac_compile) 2>conftest.er1 | |
18341 | ac_status=$? | |
18342 | grep -v '^ *+' conftest.er1 >conftest.err | |
18343 | rm -f conftest.er1 | |
18344 | cat conftest.err >&5 | |
18345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18346 | (exit $ac_status); } && | |
18347 | { ac_try='test -z "$ac_c_werror_flag" | |
18348 | || test ! -s conftest.err' | |
18349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18350 | (eval $ac_try) 2>&5 | |
18351 | ac_status=$? | |
18352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18353 | (exit $ac_status); }; } && | |
18354 | { ac_try='test -s conftest.$ac_objext' | |
18355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18356 | (eval $ac_try) 2>&5 | |
18357 | ac_status=$? | |
18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18359 | (exit $ac_status); }; }; then | |
97bf5e38 | 18360 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 18361 | else |
bec39cab AC |
18362 | echo "$as_me: failed program was:" >&5 |
18363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18364 | ||
18365 | bfd_cv_have_sys_procfs_type_prgregset32_t=no | |
18366 | ||
d45fe813 | 18367 | fi |
bec39cab | 18368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18369 | fi |
18370 | ||
97bf5e38 | 18371 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
18372 | |
18373 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18374 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 18375 | _ACEOF |
d45fe813 | 18376 | |
97bf5e38 | 18377 | fi |
bec39cab AC |
18378 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
18379 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 18380 | |
bec39cab AC |
18381 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
18382 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
18383 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then | |
18384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18385 | else |
bec39cab AC |
18386 | cat >conftest.$ac_ext <<_ACEOF |
18387 | /* confdefs.h. */ | |
18388 | _ACEOF | |
18389 | cat confdefs.h >>conftest.$ac_ext | |
18390 | cat >>conftest.$ac_ext <<_ACEOF | |
18391 | /* end confdefs.h. */ | |
97bf5e38 MK |
18392 | |
18393 | #define _SYSCALL32 | |
18394 | #include <sys/procfs.h> | |
bec39cab AC |
18395 | int |
18396 | main () | |
18397 | { | |
97bf5e38 | 18398 | prfpregset32_t avar |
bec39cab AC |
18399 | ; |
18400 | return 0; | |
18401 | } | |
18402 | _ACEOF | |
18403 | rm -f conftest.$ac_objext | |
18404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18405 | (eval $ac_compile) 2>conftest.er1 | |
18406 | ac_status=$? | |
18407 | grep -v '^ *+' conftest.er1 >conftest.err | |
18408 | rm -f conftest.er1 | |
18409 | cat conftest.err >&5 | |
18410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18411 | (exit $ac_status); } && | |
18412 | { ac_try='test -z "$ac_c_werror_flag" | |
18413 | || test ! -s conftest.err' | |
18414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18415 | (eval $ac_try) 2>&5 | |
18416 | ac_status=$? | |
18417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18418 | (exit $ac_status); }; } && | |
18419 | { ac_try='test -s conftest.$ac_objext' | |
18420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18421 | (eval $ac_try) 2>&5 | |
18422 | ac_status=$? | |
18423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18424 | (exit $ac_status); }; }; then | |
97bf5e38 | 18425 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 18426 | else |
bec39cab AC |
18427 | echo "$as_me: failed program was:" >&5 |
18428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18429 | ||
18430 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no | |
18431 | ||
d45fe813 | 18432 | fi |
bec39cab | 18433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18434 | fi |
18435 | ||
97bf5e38 | 18436 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
18437 | |
18438 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18439 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 18440 | _ACEOF |
d45fe813 | 18441 | |
97bf5e38 | 18442 | fi |
bec39cab AC |
18443 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
18444 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 18445 | |
bec39cab AC |
18446 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
18447 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
18448 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then | |
18449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18450 | else |
bec39cab AC |
18451 | cat >conftest.$ac_ext <<_ACEOF |
18452 | /* confdefs.h. */ | |
18453 | _ACEOF | |
18454 | cat confdefs.h >>conftest.$ac_ext | |
18455 | cat >>conftest.$ac_ext <<_ACEOF | |
18456 | /* end confdefs.h. */ | |
97bf5e38 | 18457 | |
d45fe813 | 18458 | #define _SYSCALL32 |
97bf5e38 | 18459 | #include <sys/procfs.h> |
bec39cab AC |
18460 | int |
18461 | main () | |
18462 | { | |
97bf5e38 | 18463 | lwpid_t avar |
bec39cab AC |
18464 | ; |
18465 | return 0; | |
18466 | } | |
18467 | _ACEOF | |
18468 | rm -f conftest.$ac_objext | |
18469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18470 | (eval $ac_compile) 2>conftest.er1 | |
18471 | ac_status=$? | |
18472 | grep -v '^ *+' conftest.er1 >conftest.err | |
18473 | rm -f conftest.er1 | |
18474 | cat conftest.err >&5 | |
18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18476 | (exit $ac_status); } && | |
18477 | { ac_try='test -z "$ac_c_werror_flag" | |
18478 | || test ! -s conftest.err' | |
18479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18480 | (eval $ac_try) 2>&5 | |
18481 | ac_status=$? | |
18482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18483 | (exit $ac_status); }; } && | |
18484 | { ac_try='test -s conftest.$ac_objext' | |
18485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18486 | (eval $ac_try) 2>&5 | |
18487 | ac_status=$? | |
18488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18489 | (exit $ac_status); }; }; then | |
97bf5e38 | 18490 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 18491 | else |
bec39cab AC |
18492 | echo "$as_me: failed program was:" >&5 |
18493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18494 | ||
18495 | bfd_cv_have_sys_procfs_type_lwpid_t=no | |
18496 | ||
d45fe813 | 18497 | fi |
bec39cab | 18498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18499 | fi |
18500 | ||
97bf5e38 | 18501 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
18502 | |
18503 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18504 | #define HAVE_LWPID_T 1 |
bec39cab | 18505 | _ACEOF |
d45fe813 | 18506 | |
97bf5e38 | 18507 | fi |
bec39cab AC |
18508 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
18509 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 18510 | |
bec39cab AC |
18511 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
18512 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
18513 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then | |
18514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18515 | else |
bec39cab AC |
18516 | cat >conftest.$ac_ext <<_ACEOF |
18517 | /* confdefs.h. */ | |
18518 | _ACEOF | |
18519 | cat confdefs.h >>conftest.$ac_ext | |
18520 | cat >>conftest.$ac_ext <<_ACEOF | |
18521 | /* end confdefs.h. */ | |
c906108c | 18522 | |
97bf5e38 MK |
18523 | #define _SYSCALL32 |
18524 | #include <sys/procfs.h> | |
bec39cab AC |
18525 | int |
18526 | main () | |
18527 | { | |
97bf5e38 | 18528 | psaddr_t avar |
bec39cab AC |
18529 | ; |
18530 | return 0; | |
18531 | } | |
18532 | _ACEOF | |
18533 | rm -f conftest.$ac_objext | |
18534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18535 | (eval $ac_compile) 2>conftest.er1 | |
18536 | ac_status=$? | |
18537 | grep -v '^ *+' conftest.er1 >conftest.err | |
18538 | rm -f conftest.er1 | |
18539 | cat conftest.err >&5 | |
18540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18541 | (exit $ac_status); } && | |
18542 | { ac_try='test -z "$ac_c_werror_flag" | |
18543 | || test ! -s conftest.err' | |
18544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18545 | (eval $ac_try) 2>&5 | |
18546 | ac_status=$? | |
18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18548 | (exit $ac_status); }; } && | |
18549 | { ac_try='test -s conftest.$ac_objext' | |
18550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18551 | (eval $ac_try) 2>&5 | |
18552 | ac_status=$? | |
18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18554 | (exit $ac_status); }; }; then | |
97bf5e38 | 18555 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 18556 | else |
bec39cab AC |
18557 | echo "$as_me: failed program was:" >&5 |
18558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18559 | ||
18560 | bfd_cv_have_sys_procfs_type_psaddr_t=no | |
18561 | ||
c906108c | 18562 | fi |
bec39cab | 18563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18564 | fi |
18565 | ||
97bf5e38 | 18566 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
18567 | |
18568 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18569 | #define HAVE_PSADDR_T 1 |
bec39cab | 18570 | _ACEOF |
c906108c | 18571 | |
97bf5e38 | 18572 | fi |
bec39cab AC |
18573 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
18574 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 18575 | |
bec39cab AC |
18576 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
18577 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
18578 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then | |
18579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18580 | else |
bec39cab AC |
18581 | cat >conftest.$ac_ext <<_ACEOF |
18582 | /* confdefs.h. */ | |
18583 | _ACEOF | |
18584 | cat confdefs.h >>conftest.$ac_ext | |
18585 | cat >>conftest.$ac_ext <<_ACEOF | |
18586 | /* end confdefs.h. */ | |
c906108c | 18587 | |
97bf5e38 MK |
18588 | #define _SYSCALL32 |
18589 | #include <sys/procfs.h> | |
bec39cab AC |
18590 | int |
18591 | main () | |
18592 | { | |
97bf5e38 | 18593 | prsysent_t avar |
bec39cab AC |
18594 | ; |
18595 | return 0; | |
18596 | } | |
18597 | _ACEOF | |
18598 | rm -f conftest.$ac_objext | |
18599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18600 | (eval $ac_compile) 2>conftest.er1 | |
18601 | ac_status=$? | |
18602 | grep -v '^ *+' conftest.er1 >conftest.err | |
18603 | rm -f conftest.er1 | |
18604 | cat conftest.err >&5 | |
18605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18606 | (exit $ac_status); } && | |
18607 | { ac_try='test -z "$ac_c_werror_flag" | |
18608 | || test ! -s conftest.err' | |
18609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18610 | (eval $ac_try) 2>&5 | |
18611 | ac_status=$? | |
18612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18613 | (exit $ac_status); }; } && | |
18614 | { ac_try='test -s conftest.$ac_objext' | |
18615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18616 | (eval $ac_try) 2>&5 | |
18617 | ac_status=$? | |
18618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18619 | (exit $ac_status); }; }; then | |
97bf5e38 | 18620 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 18621 | else |
bec39cab AC |
18622 | echo "$as_me: failed program was:" >&5 |
18623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18624 | ||
18625 | bfd_cv_have_sys_procfs_type_prsysent_t=no | |
18626 | ||
c906108c | 18627 | fi |
bec39cab | 18628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18629 | fi |
18630 | ||
97bf5e38 | 18631 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
18632 | |
18633 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18634 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 18635 | _ACEOF |
c906108c | 18636 | |
97bf5e38 | 18637 | fi |
bec39cab AC |
18638 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
18639 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 18640 | |
bec39cab AC |
18641 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
18642 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
18643 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then | |
18644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18645 | else |
bec39cab AC |
18646 | cat >conftest.$ac_ext <<_ACEOF |
18647 | /* confdefs.h. */ | |
18648 | _ACEOF | |
18649 | cat confdefs.h >>conftest.$ac_ext | |
18650 | cat >>conftest.$ac_ext <<_ACEOF | |
18651 | /* end confdefs.h. */ | |
c906108c | 18652 | |
97bf5e38 MK |
18653 | #define _SYSCALL32 |
18654 | #include <sys/procfs.h> | |
bec39cab AC |
18655 | int |
18656 | main () | |
18657 | { | |
97bf5e38 | 18658 | pr_sigset_t avar |
bec39cab AC |
18659 | ; |
18660 | return 0; | |
18661 | } | |
18662 | _ACEOF | |
18663 | rm -f conftest.$ac_objext | |
18664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18665 | (eval $ac_compile) 2>conftest.er1 | |
18666 | ac_status=$? | |
18667 | grep -v '^ *+' conftest.er1 >conftest.err | |
18668 | rm -f conftest.er1 | |
18669 | cat conftest.err >&5 | |
18670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18671 | (exit $ac_status); } && | |
18672 | { ac_try='test -z "$ac_c_werror_flag" | |
18673 | || test ! -s conftest.err' | |
18674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18675 | (eval $ac_try) 2>&5 | |
18676 | ac_status=$? | |
18677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18678 | (exit $ac_status); }; } && | |
18679 | { ac_try='test -s conftest.$ac_objext' | |
18680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18681 | (eval $ac_try) 2>&5 | |
18682 | ac_status=$? | |
18683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18684 | (exit $ac_status); }; }; then | |
97bf5e38 | 18685 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 18686 | else |
bec39cab AC |
18687 | echo "$as_me: failed program was:" >&5 |
18688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18689 | ||
18690 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no | |
18691 | ||
c906108c | 18692 | fi |
bec39cab | 18693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18694 | fi |
18695 | ||
97bf5e38 | 18696 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
18697 | |
18698 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18699 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 18700 | _ACEOF |
c906108c | 18701 | |
97bf5e38 | 18702 | fi |
bec39cab AC |
18703 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
18704 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 18705 | |
bec39cab AC |
18706 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
18707 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
18708 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then | |
18709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18710 | else |
bec39cab AC |
18711 | cat >conftest.$ac_ext <<_ACEOF |
18712 | /* confdefs.h. */ | |
18713 | _ACEOF | |
18714 | cat confdefs.h >>conftest.$ac_ext | |
18715 | cat >>conftest.$ac_ext <<_ACEOF | |
18716 | /* end confdefs.h. */ | |
c906108c | 18717 | |
97bf5e38 MK |
18718 | #define _SYSCALL32 |
18719 | #include <sys/procfs.h> | |
bec39cab AC |
18720 | int |
18721 | main () | |
18722 | { | |
97bf5e38 | 18723 | pr_sigaction64_t avar |
bec39cab AC |
18724 | ; |
18725 | return 0; | |
18726 | } | |
18727 | _ACEOF | |
18728 | rm -f conftest.$ac_objext | |
18729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18730 | (eval $ac_compile) 2>conftest.er1 | |
18731 | ac_status=$? | |
18732 | grep -v '^ *+' conftest.er1 >conftest.err | |
18733 | rm -f conftest.er1 | |
18734 | cat conftest.err >&5 | |
18735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18736 | (exit $ac_status); } && | |
18737 | { ac_try='test -z "$ac_c_werror_flag" | |
18738 | || test ! -s conftest.err' | |
18739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18740 | (eval $ac_try) 2>&5 | |
18741 | ac_status=$? | |
18742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18743 | (exit $ac_status); }; } && | |
18744 | { ac_try='test -s conftest.$ac_objext' | |
18745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18746 | (eval $ac_try) 2>&5 | |
18747 | ac_status=$? | |
18748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18749 | (exit $ac_status); }; }; then | |
97bf5e38 | 18750 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 18751 | else |
bec39cab AC |
18752 | echo "$as_me: failed program was:" >&5 |
18753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18754 | ||
18755 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no | |
18756 | ||
c906108c | 18757 | fi |
bec39cab | 18758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18759 | fi |
18760 | ||
97bf5e38 | 18761 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
18762 | |
18763 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18764 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 18765 | _ACEOF |
c906108c | 18766 | |
97bf5e38 | 18767 | fi |
bec39cab AC |
18768 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
18769 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 18770 | |
bec39cab AC |
18771 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
18772 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
18773 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then | |
18774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18775 | else |
bec39cab AC |
18776 | cat >conftest.$ac_ext <<_ACEOF |
18777 | /* confdefs.h. */ | |
18778 | _ACEOF | |
18779 | cat confdefs.h >>conftest.$ac_ext | |
18780 | cat >>conftest.$ac_ext <<_ACEOF | |
18781 | /* end confdefs.h. */ | |
97bf5e38 MK |
18782 | |
18783 | #define _SYSCALL32 | |
18784 | #include <sys/procfs.h> | |
bec39cab AC |
18785 | int |
18786 | main () | |
18787 | { | |
97bf5e38 | 18788 | pr_siginfo64_t avar |
bec39cab AC |
18789 | ; |
18790 | return 0; | |
18791 | } | |
18792 | _ACEOF | |
18793 | rm -f conftest.$ac_objext | |
18794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18795 | (eval $ac_compile) 2>conftest.er1 | |
18796 | ac_status=$? | |
18797 | grep -v '^ *+' conftest.er1 >conftest.err | |
18798 | rm -f conftest.er1 | |
18799 | cat conftest.err >&5 | |
18800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18801 | (exit $ac_status); } && | |
18802 | { ac_try='test -z "$ac_c_werror_flag" | |
18803 | || test ! -s conftest.err' | |
18804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18805 | (eval $ac_try) 2>&5 | |
18806 | ac_status=$? | |
18807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18808 | (exit $ac_status); }; } && | |
18809 | { ac_try='test -s conftest.$ac_objext' | |
18810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18811 | (eval $ac_try) 2>&5 | |
18812 | ac_status=$? | |
18813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18814 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18815 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
18816 | else | |
bec39cab AC |
18817 | echo "$as_me: failed program was:" >&5 |
18818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18819 | ||
18820 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no | |
18821 | ||
97bf5e38 | 18822 | fi |
bec39cab | 18823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18824 | fi |
c906108c | 18825 | |
97bf5e38 | 18826 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
18827 | |
18828 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18829 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 18830 | _ACEOF |
c906108c | 18831 | |
97bf5e38 | 18832 | fi |
bec39cab AC |
18833 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
18834 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
18835 | ||
18836 | ||
97bf5e38 MK |
18837 | |
18838 | ||
18839 | ||
97bf5e38 | 18840 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
18841 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
18842 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
18843 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then | |
18844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
18845 | else |
18846 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 18847 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 18848 | else |
bec39cab AC |
18849 | cat >conftest.$ac_ext <<_ACEOF |
18850 | /* confdefs.h. */ | |
18851 | _ACEOF | |
18852 | cat confdefs.h >>conftest.$ac_ext | |
18853 | cat >>conftest.$ac_ext <<_ACEOF | |
18854 | /* end confdefs.h. */ | |
97bf5e38 MK |
18855 | #include <sys/procfs.h> |
18856 | int main () | |
18857 | { | |
18858 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
18859 | return 1; | |
18860 | return 0; | |
18861 | } | |
bec39cab AC |
18862 | _ACEOF |
18863 | rm -f conftest$ac_exeext | |
18864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18865 | (eval $ac_link) 2>&5 | |
18866 | ac_status=$? | |
18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18868 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18870 | (eval $ac_try) 2>&5 | |
18871 | ac_status=$? | |
18872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18873 | (exit $ac_status); }; }; then | |
97bf5e38 | 18874 | gdb_cv_prfpregset_t_broken=no |
c906108c | 18875 | else |
bec39cab AC |
18876 | echo "$as_me: program exited with status $ac_status" >&5 |
18877 | echo "$as_me: failed program was:" >&5 | |
18878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18879 | ||
18880 | ( exit $ac_status ) | |
18881 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 18882 | fi |
bec39cab | 18883 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 18884 | fi |
c906108c SS |
18885 | fi |
18886 | ||
bec39cab AC |
18887 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
18888 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 18889 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
18890 | |
18891 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18892 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 18893 | _ACEOF |
c906108c | 18894 | |
97bf5e38 MK |
18895 | fi |
18896 | fi | |
c906108c | 18897 | |
bec39cab AC |
18898 | |
18899 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 | |
18900 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
18901 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then | |
18902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18903 | else |
bec39cab AC |
18904 | cat >conftest.$ac_ext <<_ACEOF |
18905 | /* confdefs.h. */ | |
18906 | _ACEOF | |
18907 | cat confdefs.h >>conftest.$ac_ext | |
18908 | cat >>conftest.$ac_ext <<_ACEOF | |
18909 | /* end confdefs.h. */ | |
97bf5e38 MK |
18910 | #include <unistd.h> |
18911 | #include <sys/types.h> | |
18912 | #include <sys/procfs.h> | |
18913 | ||
bec39cab AC |
18914 | int |
18915 | main () | |
18916 | { | |
97bf5e38 MK |
18917 | |
18918 | int dummy;; | |
18919 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
18920 | |
18921 | ; | |
18922 | return 0; | |
18923 | } | |
18924 | _ACEOF | |
18925 | rm -f conftest.$ac_objext | |
18926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18927 | (eval $ac_compile) 2>conftest.er1 | |
18928 | ac_status=$? | |
18929 | grep -v '^ *+' conftest.er1 >conftest.err | |
18930 | rm -f conftest.er1 | |
18931 | cat conftest.err >&5 | |
18932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18933 | (exit $ac_status); } && | |
18934 | { ac_try='test -z "$ac_c_werror_flag" | |
18935 | || test ! -s conftest.err' | |
18936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18937 | (eval $ac_try) 2>&5 | |
18938 | ac_status=$? | |
18939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18940 | (exit $ac_status); }; } && | |
18941 | { ac_try='test -s conftest.$ac_objext' | |
18942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18943 | (eval $ac_try) 2>&5 | |
18944 | ac_status=$? | |
18945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18946 | (exit $ac_status); }; }; then | |
97bf5e38 | 18947 | gdb_cv_have_procfs_piocset=yes |
c906108c | 18948 | else |
bec39cab AC |
18949 | echo "$as_me: failed program was:" >&5 |
18950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18951 | ||
18952 | gdb_cv_have_procfs_piocset=no | |
c906108c | 18953 | fi |
bec39cab | 18954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18955 | fi |
97bf5e38 | 18956 | |
bec39cab AC |
18957 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
18958 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 18959 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
18960 | |
18961 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18962 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 18963 | _ACEOF |
97bf5e38 MK |
18964 | |
18965 | fi | |
c906108c | 18966 | fi |
c906108c | 18967 | |
97bf5e38 | 18968 | if test ${host} = ${target} ; then |
bec39cab AC |
18969 | |
18970 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 | |
18971 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
18972 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then | |
18973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18974 | else | |
18975 | cat >conftest.$ac_ext <<_ACEOF | |
18976 | /* confdefs.h. */ | |
18977 | _ACEOF | |
18978 | cat confdefs.h >>conftest.$ac_ext | |
18979 | cat >>conftest.$ac_ext <<_ACEOF | |
18980 | /* end confdefs.h. */ | |
97bf5e38 | 18981 | #include <link.h> |
bec39cab AC |
18982 | int |
18983 | main () | |
18984 | { | |
97bf5e38 | 18985 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
18986 | ; |
18987 | return 0; | |
18988 | } | |
18989 | _ACEOF | |
18990 | rm -f conftest.$ac_objext | |
18991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18992 | (eval $ac_compile) 2>conftest.er1 | |
18993 | ac_status=$? | |
18994 | grep -v '^ *+' conftest.er1 >conftest.err | |
18995 | rm -f conftest.er1 | |
18996 | cat conftest.err >&5 | |
18997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18998 | (exit $ac_status); } && | |
18999 | { ac_try='test -z "$ac_c_werror_flag" | |
19000 | || test ! -s conftest.err' | |
19001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19002 | (eval $ac_try) 2>&5 | |
19003 | ac_status=$? | |
19004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19005 | (exit $ac_status); }; } && | |
19006 | { ac_try='test -s conftest.$ac_objext' | |
19007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19008 | (eval $ac_try) 2>&5 | |
19009 | ac_status=$? | |
19010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19011 | (exit $ac_status); }; }; then | |
97bf5e38 | 19012 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 19013 | else |
bec39cab AC |
19014 | echo "$as_me: failed program was:" >&5 |
19015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19016 | ||
19017 | gdb_cv_have_struct_link_map_with_l_members=no | |
c906108c | 19018 | fi |
bec39cab | 19019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19020 | fi |
19021 | ||
bec39cab AC |
19022 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
19023 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 19024 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
19025 | |
19026 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19027 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 19028 | _ACEOF |
97bf5e38 MK |
19029 | |
19030 | fi | |
19031 | ||
bec39cab AC |
19032 | |
19033 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 | |
19034 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
19035 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then | |
19036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19037 | else |
bec39cab AC |
19038 | cat >conftest.$ac_ext <<_ACEOF |
19039 | /* confdefs.h. */ | |
19040 | _ACEOF | |
19041 | cat confdefs.h >>conftest.$ac_ext | |
19042 | cat >>conftest.$ac_ext <<_ACEOF | |
19043 | /* end confdefs.h. */ | |
97bf5e38 MK |
19044 | #include <sys/types.h> |
19045 | #include <link.h> | |
bec39cab AC |
19046 | int |
19047 | main () | |
19048 | { | |
97bf5e38 | 19049 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
19050 | ; |
19051 | return 0; | |
19052 | } | |
19053 | _ACEOF | |
19054 | rm -f conftest.$ac_objext | |
19055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19056 | (eval $ac_compile) 2>conftest.er1 | |
19057 | ac_status=$? | |
19058 | grep -v '^ *+' conftest.er1 >conftest.err | |
19059 | rm -f conftest.er1 | |
19060 | cat conftest.err >&5 | |
19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19062 | (exit $ac_status); } && | |
19063 | { ac_try='test -z "$ac_c_werror_flag" | |
19064 | || test ! -s conftest.err' | |
19065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19066 | (eval $ac_try) 2>&5 | |
19067 | ac_status=$? | |
19068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19069 | (exit $ac_status); }; } && | |
19070 | { ac_try='test -s conftest.$ac_objext' | |
19071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19072 | (eval $ac_try) 2>&5 | |
19073 | ac_status=$? | |
19074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19075 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19076 | gdb_cv_have_struct_link_map_with_lm_members=yes |
19077 | else | |
bec39cab AC |
19078 | echo "$as_me: failed program was:" >&5 |
19079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19080 | ||
19081 | gdb_cv_have_struct_link_map_with_lm_members=no | |
97bf5e38 | 19082 | fi |
bec39cab | 19083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19084 | fi |
c906108c | 19085 | |
bec39cab AC |
19086 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
19087 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 19088 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
19089 | |
19090 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19091 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 19092 | _ACEOF |
97bf5e38 MK |
19093 | |
19094 | fi | |
19095 | ||
bec39cab AC |
19096 | |
19097 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 | |
19098 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
19099 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then | |
19100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19101 | else |
bec39cab AC |
19102 | cat >conftest.$ac_ext <<_ACEOF |
19103 | /* confdefs.h. */ | |
19104 | _ACEOF | |
19105 | cat confdefs.h >>conftest.$ac_ext | |
19106 | cat >>conftest.$ac_ext <<_ACEOF | |
19107 | /* end confdefs.h. */ | |
97bf5e38 MK |
19108 | #include <sys/types.h> |
19109 | #ifdef HAVE_NLIST_H | |
19110 | #include <nlist.h> | |
19111 | #endif | |
19112 | #include <link.h> | |
bec39cab AC |
19113 | int |
19114 | main () | |
19115 | { | |
97bf5e38 | 19116 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
19117 | ; |
19118 | return 0; | |
19119 | } | |
19120 | _ACEOF | |
19121 | rm -f conftest.$ac_objext | |
19122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19123 | (eval $ac_compile) 2>conftest.er1 | |
19124 | ac_status=$? | |
19125 | grep -v '^ *+' conftest.er1 >conftest.err | |
19126 | rm -f conftest.er1 | |
19127 | cat conftest.err >&5 | |
19128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19129 | (exit $ac_status); } && | |
19130 | { ac_try='test -z "$ac_c_werror_flag" | |
19131 | || test ! -s conftest.err' | |
19132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19133 | (eval $ac_try) 2>&5 | |
19134 | ac_status=$? | |
19135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19136 | (exit $ac_status); }; } && | |
19137 | { ac_try='test -s conftest.$ac_objext' | |
19138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19139 | (eval $ac_try) 2>&5 | |
19140 | ac_status=$? | |
19141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19142 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19143 | gdb_cv_have_struct_so_map_with_som_members=yes |
19144 | else | |
bec39cab AC |
19145 | echo "$as_me: failed program was:" >&5 |
19146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19147 | ||
19148 | gdb_cv_have_struct_so_map_with_som_members=no | |
97bf5e38 | 19149 | fi |
bec39cab | 19150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19151 | fi |
c906108c | 19152 | |
bec39cab AC |
19153 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
19154 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 19155 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
19156 | |
19157 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19158 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 19159 | _ACEOF |
c906108c | 19160 | |
97bf5e38 | 19161 | fi |
c906108c | 19162 | |
bec39cab AC |
19163 | |
19164 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 | |
19165 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
19166 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then | |
19167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 19168 | else |
bec39cab AC |
19169 | cat >conftest.$ac_ext <<_ACEOF |
19170 | /* confdefs.h. */ | |
19171 | _ACEOF | |
19172 | cat confdefs.h >>conftest.$ac_ext | |
19173 | cat >>conftest.$ac_ext <<_ACEOF | |
19174 | /* end confdefs.h. */ | |
97bf5e38 MK |
19175 | #define _SYSCALL32 |
19176 | #include <sys/link.h> | |
bec39cab AC |
19177 | int |
19178 | main () | |
19179 | { | |
97bf5e38 | 19180 | struct link_map32 l; |
bec39cab AC |
19181 | ; |
19182 | return 0; | |
19183 | } | |
19184 | _ACEOF | |
19185 | rm -f conftest.$ac_objext | |
19186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19187 | (eval $ac_compile) 2>conftest.er1 | |
19188 | ac_status=$? | |
19189 | grep -v '^ *+' conftest.er1 >conftest.err | |
19190 | rm -f conftest.er1 | |
19191 | cat conftest.err >&5 | |
19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19193 | (exit $ac_status); } && | |
19194 | { ac_try='test -z "$ac_c_werror_flag" | |
19195 | || test ! -s conftest.err' | |
19196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19197 | (eval $ac_try) 2>&5 | |
19198 | ac_status=$? | |
19199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19200 | (exit $ac_status); }; } && | |
19201 | { ac_try='test -s conftest.$ac_objext' | |
19202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19203 | (eval $ac_try) 2>&5 | |
19204 | ac_status=$? | |
19205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19206 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19207 | gdb_cv_have_struct_link_map32=yes |
19208 | else | |
bec39cab AC |
19209 | echo "$as_me: failed program was:" >&5 |
19210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19211 | ||
19212 | gdb_cv_have_struct_link_map32=no | |
97bf5e38 | 19213 | fi |
bec39cab | 19214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19215 | fi |
c906108c | 19216 | |
bec39cab AC |
19217 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
19218 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 19219 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
19220 | |
19221 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19222 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 19223 | _ACEOF |
c906108c | 19224 | |
60ca704f SE |
19225 | |
19226 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19227 | #define _SYSCALL32 1 |
bec39cab | 19228 | _ACEOF |
c906108c | 19229 | |
97bf5e38 MK |
19230 | fi |
19231 | fi | |
c906108c | 19232 | |
bc8bcb4b | 19233 | # Check if the compiler supports the `long long' type. |
c906108c | 19234 | |
bec39cab AC |
19235 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
19236 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
19237 | if test "${gdb_cv_c_long_long+set}" = set; then | |
19238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 19239 | else |
bec39cab AC |
19240 | cat >conftest.$ac_ext <<_ACEOF |
19241 | /* confdefs.h. */ | |
19242 | _ACEOF | |
19243 | cat confdefs.h >>conftest.$ac_ext | |
19244 | cat >>conftest.$ac_ext <<_ACEOF | |
19245 | /* end confdefs.h. */ | |
bc8bcb4b | 19246 | extern long long foo; |
bec39cab AC |
19247 | int |
19248 | main () | |
19249 | { | |
bc8bcb4b | 19250 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
19251 | ; |
19252 | return 0; | |
19253 | } | |
19254 | _ACEOF | |
19255 | rm -f conftest.$ac_objext | |
19256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19257 | (eval $ac_compile) 2>conftest.er1 | |
19258 | ac_status=$? | |
19259 | grep -v '^ *+' conftest.er1 >conftest.err | |
19260 | rm -f conftest.er1 | |
19261 | cat conftest.err >&5 | |
19262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19263 | (exit $ac_status); } && | |
19264 | { ac_try='test -z "$ac_c_werror_flag" | |
19265 | || test ! -s conftest.err' | |
19266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19267 | (eval $ac_try) 2>&5 | |
19268 | ac_status=$? | |
19269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19270 | (exit $ac_status); }; } && | |
19271 | { ac_try='test -s conftest.$ac_objext' | |
19272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19273 | (eval $ac_try) 2>&5 | |
19274 | ac_status=$? | |
19275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19276 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19277 | gdb_cv_c_long_long=yes |
19278 | else | |
bec39cab AC |
19279 | echo "$as_me: failed program was:" >&5 |
19280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19281 | ||
19282 | gdb_cv_c_long_long=no | |
97bf5e38 | 19283 | fi |
bec39cab | 19284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19285 | fi |
bec39cab AC |
19286 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
19287 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 19288 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
19289 | |
19290 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19291 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 19292 | _ACEOF |
97bf5e38 MK |
19293 | |
19294 | fi | |
19295 | ||
bc8bcb4b | 19296 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 19297 | |
bec39cab AC |
19298 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
19299 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
19300 | if test "${gdb_cv_printf_has_long_long+set}" = set; then | |
19301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19302 | else |
19303 | if test "$cross_compiling" = yes; then | |
19304 | gdb_cv_printf_has_long_long=no | |
19305 | else | |
bec39cab AC |
19306 | cat >conftest.$ac_ext <<_ACEOF |
19307 | /* confdefs.h. */ | |
19308 | _ACEOF | |
19309 | cat confdefs.h >>conftest.$ac_ext | |
19310 | cat >>conftest.$ac_ext <<_ACEOF | |
19311 | /* end confdefs.h. */ | |
bc8bcb4b MK |
19312 | $ac_includes_default |
19313 | int | |
19314 | main () | |
19315 | { | |
19316 | char buf[32]; | |
97bf5e38 MK |
19317 | long long l = 0; |
19318 | l = (l << 16) + 0x0123; | |
19319 | l = (l << 16) + 0x4567; | |
19320 | l = (l << 16) + 0x89ab; | |
19321 | l = (l << 16) + 0xcdef; | |
19322 | sprintf (buf, "0x%016llx", l); | |
19323 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
19324 | ; |
19325 | return 0; | |
c906108c | 19326 | } |
bec39cab AC |
19327 | _ACEOF |
19328 | rm -f conftest$ac_exeext | |
19329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19330 | (eval $ac_link) 2>&5 | |
19331 | ac_status=$? | |
19332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19333 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19335 | (eval $ac_try) 2>&5 | |
19336 | ac_status=$? | |
19337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19338 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19339 | gdb_cv_printf_has_long_long=yes |
19340 | else | |
bec39cab AC |
19341 | echo "$as_me: program exited with status $ac_status" >&5 |
19342 | echo "$as_me: failed program was:" >&5 | |
19343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19344 | ||
19345 | ( exit $ac_status ) | |
19346 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 19347 | fi |
bec39cab | 19348 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19349 | fi |
97bf5e38 | 19350 | fi |
bc8bcb4b MK |
19351 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
19352 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 19353 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
19354 | |
19355 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19356 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 19357 | _ACEOF |
97bf5e38 MK |
19358 | |
19359 | fi | |
97bf5e38 | 19360 | |
bc8bcb4b MK |
19361 | # Check if the compiler supports the `long double' type. We can't use |
19362 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
19363 | # constants defined in <float.h> that fail on some systems, | |
19364 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 19365 | |
bec39cab AC |
19366 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
19367 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 19368 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 19369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 19370 | else |
bec39cab AC |
19371 | cat >conftest.$ac_ext <<_ACEOF |
19372 | /* confdefs.h. */ | |
19373 | _ACEOF | |
19374 | cat confdefs.h >>conftest.$ac_ext | |
19375 | cat >>conftest.$ac_ext <<_ACEOF | |
19376 | /* end confdefs.h. */ | |
97bf5e38 | 19377 | long double foo; |
bec39cab AC |
19378 | _ACEOF |
19379 | rm -f conftest.$ac_objext | |
19380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19381 | (eval $ac_compile) 2>conftest.er1 | |
19382 | ac_status=$? | |
19383 | grep -v '^ *+' conftest.er1 >conftest.err | |
19384 | rm -f conftest.er1 | |
19385 | cat conftest.err >&5 | |
19386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19387 | (exit $ac_status); } && | |
19388 | { ac_try='test -z "$ac_c_werror_flag" | |
19389 | || test ! -s conftest.err' | |
19390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19391 | (eval $ac_try) 2>&5 | |
19392 | ac_status=$? | |
19393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19394 | (exit $ac_status); }; } && | |
19395 | { ac_try='test -s conftest.$ac_objext' | |
19396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19397 | (eval $ac_try) 2>&5 | |
19398 | ac_status=$? | |
19399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19400 | (exit $ac_status); }; }; then | |
bc8bcb4b | 19401 | gdb_cv_c_long_double=yes |
97bf5e38 | 19402 | else |
bec39cab AC |
19403 | echo "$as_me: failed program was:" >&5 |
19404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19405 | ||
bc8bcb4b | 19406 | gdb_cv_c_long_double=no |
97bf5e38 | 19407 | fi |
bec39cab | 19408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19409 | fi |
bc8bcb4b MK |
19410 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
19411 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
19412 | if test $gdb_cv_c_long_double = yes; then | |
c906108c | 19413 | |
bc8bcb4b | 19414 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19415 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 19416 | _ACEOF |
97bf5e38 MK |
19417 | |
19418 | fi | |
19419 | ||
bc8bcb4b | 19420 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 19421 | |
bec39cab AC |
19422 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
19423 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
19424 | if test "${gdb_cv_printf_has_long_double+set}" = set; then | |
19425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19426 | else |
19427 | if test "$cross_compiling" = yes; then | |
19428 | gdb_cv_printf_has_long_double=no | |
19429 | else | |
bec39cab AC |
19430 | cat >conftest.$ac_ext <<_ACEOF |
19431 | /* confdefs.h. */ | |
19432 | _ACEOF | |
19433 | cat confdefs.h >>conftest.$ac_ext | |
19434 | cat >>conftest.$ac_ext <<_ACEOF | |
19435 | /* end confdefs.h. */ | |
bc8bcb4b MK |
19436 | $ac_includes_default |
19437 | int | |
19438 | main () | |
19439 | { | |
19440 | char buf[16]; | |
97bf5e38 MK |
19441 | long double f = 3.141592653; |
19442 | sprintf (buf, "%Lg", f); | |
19443 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
19444 | ; |
19445 | return 0; | |
97bf5e38 | 19446 | } |
bec39cab AC |
19447 | _ACEOF |
19448 | rm -f conftest$ac_exeext | |
19449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19450 | (eval $ac_link) 2>&5 | |
19451 | ac_status=$? | |
19452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19453 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19455 | (eval $ac_try) 2>&5 | |
19456 | ac_status=$? | |
19457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19458 | (exit $ac_status); }; }; then | |
97bf5e38 | 19459 | gdb_cv_printf_has_long_double=yes |
c906108c | 19460 | else |
bec39cab AC |
19461 | echo "$as_me: program exited with status $ac_status" >&5 |
19462 | echo "$as_me: failed program was:" >&5 | |
19463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19464 | ||
19465 | ( exit $ac_status ) | |
19466 | gdb_cv_printf_has_long_double=no | |
c906108c | 19467 | fi |
bec39cab | 19468 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 19469 | fi |
c906108c | 19470 | fi |
bc8bcb4b MK |
19471 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
19472 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 19473 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
19474 | |
19475 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19476 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 19477 | _ACEOF |
97bf5e38 MK |
19478 | |
19479 | fi | |
97bf5e38 | 19480 | |
bc8bcb4b | 19481 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 19482 | |
bec39cab AC |
19483 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
19484 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
19485 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then | |
19486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19487 | else |
19488 | if test "$cross_compiling" = yes; then | |
19489 | gdb_cv_scanf_has_long_double=no | |
19490 | else | |
bec39cab AC |
19491 | cat >conftest.$ac_ext <<_ACEOF |
19492 | /* confdefs.h. */ | |
19493 | _ACEOF | |
19494 | cat confdefs.h >>conftest.$ac_ext | |
19495 | cat >>conftest.$ac_ext <<_ACEOF | |
19496 | /* end confdefs.h. */ | |
bc8bcb4b MK |
19497 | #include <stdio.h> |
19498 | int | |
19499 | main () | |
19500 | { | |
19501 | char *buf = "3.141592653"; | |
97bf5e38 MK |
19502 | long double f = 0; |
19503 | sscanf (buf, "%Lg", &f); | |
19504 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
19505 | ; |
19506 | return 0; | |
97bf5e38 | 19507 | } |
bec39cab AC |
19508 | _ACEOF |
19509 | rm -f conftest$ac_exeext | |
19510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19511 | (eval $ac_link) 2>&5 | |
19512 | ac_status=$? | |
19513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19516 | (eval $ac_try) 2>&5 | |
19517 | ac_status=$? | |
19518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19519 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19520 | gdb_cv_scanf_has_long_double=yes |
19521 | else | |
bec39cab AC |
19522 | echo "$as_me: program exited with status $ac_status" >&5 |
19523 | echo "$as_me: failed program was:" >&5 | |
19524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19525 | ||
19526 | ( exit $ac_status ) | |
19527 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 19528 | fi |
bec39cab | 19529 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19530 | fi |
c906108c | 19531 | fi |
bc8bcb4b MK |
19532 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
19533 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 19534 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
19535 | |
19536 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19537 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 19538 | _ACEOF |
97bf5e38 MK |
19539 | |
19540 | fi | |
c906108c | 19541 | |
438013df AO |
19542 | case ${host_os} in |
19543 | aix*) | |
bec39cab AC |
19544 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
19545 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
19546 | if test "${gdb_cv_bigtoc+set}" = set; then | |
19547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 19548 | else |
bec39cab | 19549 | |
438013df AO |
19550 | SAVE_LDFLAGS=$LDFLAGS |
19551 | ||
19552 | case $GCC in | |
19553 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
19554 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
19555 | esac | |
19556 | ||
19557 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
19558 | cat >conftest.$ac_ext <<_ACEOF |
19559 | /* confdefs.h. */ | |
19560 | _ACEOF | |
19561 | cat confdefs.h >>conftest.$ac_ext | |
19562 | cat >>conftest.$ac_ext <<_ACEOF | |
19563 | /* end confdefs.h. */ | |
438013df | 19564 | |
bec39cab AC |
19565 | int |
19566 | main () | |
19567 | { | |
438013df | 19568 | int i; |
bec39cab AC |
19569 | ; |
19570 | return 0; | |
19571 | } | |
19572 | _ACEOF | |
19573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19575 | (eval $ac_link) 2>conftest.er1 | |
19576 | ac_status=$? | |
19577 | grep -v '^ *+' conftest.er1 >conftest.err | |
19578 | rm -f conftest.er1 | |
19579 | cat conftest.err >&5 | |
19580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19581 | (exit $ac_status); } && | |
19582 | { ac_try='test -z "$ac_c_werror_flag" | |
19583 | || test ! -s conftest.err' | |
19584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19585 | (eval $ac_try) 2>&5 | |
19586 | ac_status=$? | |
19587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19588 | (exit $ac_status); }; } && | |
19589 | { ac_try='test -s conftest$ac_exeext' | |
19590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19591 | (eval $ac_try) 2>&5 | |
19592 | ac_status=$? | |
19593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19594 | (exit $ac_status); }; }; then | |
438013df AO |
19595 | : |
19596 | else | |
bec39cab AC |
19597 | echo "$as_me: failed program was:" >&5 |
19598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19599 | ||
19600 | gdb_cv_bigtoc= | |
438013df | 19601 | fi |
bec39cab AC |
19602 | rm -f conftest.err conftest.$ac_objext \ |
19603 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 19604 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 19605 | |
bec39cab AC |
19606 | fi |
19607 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
19608 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
19609 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
19610 | ;; | |
19611 | esac | |
19612 | ||
c906108c SS |
19613 | |
19614 | ||
19615 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
19616 | case ${host_os} in | |
19617 | hpux*) | |
bec39cab AC |
19618 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
19619 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
19620 | if test -f /usr/include/dce/cma_config.h ; then |
19621 | if test "$GCC" = "yes" ; then | |
bec39cab AC |
19622 | echo "$as_me:$LINENO: result: yes" >&5 |
19623 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
19624 | |
19625 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19626 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 19627 | _ACEOF |
c906108c | 19628 | |
3483b318 | 19629 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
19630 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
19631 | else | |
bec39cab AC |
19632 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
19633 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
19634 | fi |
19635 | else | |
bec39cab AC |
19636 | echo "$as_me:$LINENO: result: no" >&5 |
19637 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19638 | fi |
19639 | ;; | |
19640 | solaris*) | |
d92419e5 JB |
19641 | # See if thread_db library is around for Solaris thread debugging. |
19642 | # Note that we must explicitly test for version 1 of the library | |
19643 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
19644 | # the same API. | |
bec39cab AC |
19645 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
19646 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 19647 | if test -f /usr/lib/libthread_db.so.1 ; then |
bec39cab AC |
19648 | echo "$as_me:$LINENO: result: yes" >&5 |
19649 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
19650 | |
19651 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19652 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 19653 | _ACEOF |
c906108c | 19654 | |
3483b318 | 19655 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 19656 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab AC |
19657 | |
19658 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
19659 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
19660 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
19661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19662 | else |
bec39cab | 19663 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 19664 | LIBS="-ldl $LIBS" |
bec39cab AC |
19665 | cat >conftest.$ac_ext <<_ACEOF |
19666 | /* confdefs.h. */ | |
19667 | _ACEOF | |
19668 | cat confdefs.h >>conftest.$ac_ext | |
19669 | cat >>conftest.$ac_ext <<_ACEOF | |
19670 | /* end confdefs.h. */ | |
19671 | ||
c906108c | 19672 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19673 | #ifdef __cplusplus |
19674 | extern "C" | |
19675 | #endif | |
c906108c | 19676 | /* We use char because int might match the return type of a gcc2 |
bec39cab AC |
19677 | builtin and then its argument prototype would still apply. */ |
19678 | char dlopen (); | |
19679 | int | |
19680 | main () | |
19681 | { | |
19682 | dlopen (); | |
19683 | ; | |
19684 | return 0; | |
19685 | } | |
19686 | _ACEOF | |
19687 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19689 | (eval $ac_link) 2>conftest.er1 | |
19690 | ac_status=$? | |
19691 | grep -v '^ *+' conftest.er1 >conftest.err | |
19692 | rm -f conftest.er1 | |
19693 | cat conftest.err >&5 | |
19694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19695 | (exit $ac_status); } && | |
19696 | { ac_try='test -z "$ac_c_werror_flag" | |
19697 | || test ! -s conftest.err' | |
19698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19699 | (eval $ac_try) 2>&5 | |
19700 | ac_status=$? | |
19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19702 | (exit $ac_status); }; } && | |
19703 | { ac_try='test -s conftest$ac_exeext' | |
19704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19705 | (eval $ac_try) 2>&5 | |
19706 | ac_status=$? | |
19707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19708 | (exit $ac_status); }; }; then | |
19709 | ac_cv_lib_dl_dlopen=yes | |
19710 | else | |
19711 | echo "$as_me: failed program was:" >&5 | |
19712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19713 | ||
19714 | ac_cv_lib_dl_dlopen=no | |
19715 | fi | |
19716 | rm -f conftest.err conftest.$ac_objext \ | |
19717 | conftest$ac_exeext conftest.$ac_ext | |
19718 | LIBS=$ac_check_lib_save_LIBS | |
19719 | fi | |
19720 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
19721 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
19722 | if test $ac_cv_lib_dl_dlopen = yes; then | |
19723 | cat >>confdefs.h <<_ACEOF | |
19724 | #define HAVE_LIBDL 1 | |
19725 | _ACEOF | |
c906108c SS |
19726 | |
19727 | LIBS="-ldl $LIBS" | |
19728 | ||
c906108c SS |
19729 | fi |
19730 | ||
19731 | if test "$GCC" = "yes" ; then | |
19732 | # The GNU linker requires the -export-dynamic option to make | |
19733 | # all symbols visible in the dynamic symbol table. | |
19734 | hold_ldflags=$LDFLAGS | |
bec39cab AC |
19735 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
19736 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 19737 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
19738 | cat >conftest.$ac_ext <<_ACEOF |
19739 | /* confdefs.h. */ | |
19740 | _ACEOF | |
19741 | cat confdefs.h >>conftest.$ac_ext | |
19742 | cat >>conftest.$ac_ext <<_ACEOF | |
19743 | /* end confdefs.h. */ | |
c906108c | 19744 | |
bec39cab AC |
19745 | int |
19746 | main () | |
19747 | { | |
c906108c | 19748 | int i; |
bec39cab AC |
19749 | ; |
19750 | return 0; | |
19751 | } | |
19752 | _ACEOF | |
19753 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19755 | (eval $ac_link) 2>conftest.er1 | |
19756 | ac_status=$? | |
19757 | grep -v '^ *+' conftest.er1 >conftest.err | |
19758 | rm -f conftest.er1 | |
19759 | cat conftest.err >&5 | |
19760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19761 | (exit $ac_status); } && | |
19762 | { ac_try='test -z "$ac_c_werror_flag" | |
19763 | || test ! -s conftest.err' | |
19764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19765 | (eval $ac_try) 2>&5 | |
19766 | ac_status=$? | |
19767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19768 | (exit $ac_status); }; } && | |
19769 | { ac_try='test -s conftest$ac_exeext' | |
19770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19771 | (eval $ac_try) 2>&5 | |
19772 | ac_status=$? | |
19773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19774 | (exit $ac_status); }; }; then | |
c906108c SS |
19775 | found=yes |
19776 | else | |
bec39cab AC |
19777 | echo "$as_me: failed program was:" >&5 |
19778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19779 | ||
19780 | found=no | |
c906108c | 19781 | fi |
bec39cab AC |
19782 | rm -f conftest.err conftest.$ac_objext \ |
19783 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 19784 | LDFLAGS=$hold_ldflags |
bec39cab AC |
19785 | echo "$as_me:$LINENO: result: $found" >&5 |
19786 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
19787 | if test $found = yes; then |
19788 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
19789 | fi | |
19790 | fi | |
19791 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
19792 | # at one point. | |
bec39cab AC |
19793 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
19794 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
19795 | if test "${gdb_cv_proc_service_is_old+set}" = set; then | |
19796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19797 | else |
bec39cab AC |
19798 | |
19799 | cat >conftest.$ac_ext <<_ACEOF | |
19800 | /* confdefs.h. */ | |
19801 | _ACEOF | |
19802 | cat confdefs.h >>conftest.$ac_ext | |
19803 | cat >>conftest.$ac_ext <<_ACEOF | |
19804 | /* end confdefs.h. */ | |
c906108c SS |
19805 | |
19806 | #include <proc_service.h> | |
19807 | ps_err_e ps_pdwrite | |
19808 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 19809 | |
bec39cab AC |
19810 | int |
19811 | main () | |
19812 | { | |
19813 | ||
19814 | ; | |
19815 | return 0; | |
19816 | } | |
19817 | _ACEOF | |
19818 | rm -f conftest.$ac_objext | |
19819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19820 | (eval $ac_compile) 2>conftest.er1 | |
19821 | ac_status=$? | |
19822 | grep -v '^ *+' conftest.er1 >conftest.err | |
19823 | rm -f conftest.er1 | |
19824 | cat conftest.err >&5 | |
19825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19826 | (exit $ac_status); } && | |
19827 | { ac_try='test -z "$ac_c_werror_flag" | |
19828 | || test ! -s conftest.err' | |
19829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19830 | (eval $ac_try) 2>&5 | |
19831 | ac_status=$? | |
19832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19833 | (exit $ac_status); }; } && | |
19834 | { ac_try='test -s conftest.$ac_objext' | |
19835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19836 | (eval $ac_try) 2>&5 | |
19837 | ac_status=$? | |
19838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19839 | (exit $ac_status); }; }; then | |
c906108c SS |
19840 | gdb_cv_proc_service_is_old=no |
19841 | else | |
bec39cab AC |
19842 | echo "$as_me: failed program was:" >&5 |
19843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19844 | ||
19845 | gdb_cv_proc_service_is_old=yes | |
c906108c | 19846 | fi |
bec39cab AC |
19847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19848 | ||
c906108c SS |
19849 | fi |
19850 | ||
bec39cab AC |
19851 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
19852 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 19853 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
19854 | |
19855 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19856 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 19857 | _ACEOF |
c906108c SS |
19858 | |
19859 | fi | |
19860 | else | |
bec39cab AC |
19861 | echo "$as_me:$LINENO: result: no" >&5 |
19862 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19863 | fi |
19864 | ;; | |
d92419e5 | 19865 | aix*) |
bec39cab AC |
19866 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
19867 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
19868 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then | |
19869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19870 | else | |
19871 | cat >conftest.$ac_ext <<_ACEOF | |
19872 | /* confdefs.h. */ | |
19873 | _ACEOF | |
19874 | cat confdefs.h >>conftest.$ac_ext | |
19875 | cat >>conftest.$ac_ext <<_ACEOF | |
19876 | /* end confdefs.h. */ | |
d92419e5 | 19877 | #include <sys/pthdebug.h> |
bec39cab AC |
19878 | int |
19879 | main () | |
19880 | { | |
d92419e5 JB |
19881 | #ifndef PTHDB_VERSION_3 |
19882 | #error | |
19883 | #endif | |
bec39cab AC |
19884 | ; |
19885 | return 0; | |
19886 | } | |
19887 | _ACEOF | |
19888 | rm -f conftest.$ac_objext | |
19889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19890 | (eval $ac_compile) 2>conftest.er1 | |
19891 | ac_status=$? | |
19892 | grep -v '^ *+' conftest.er1 >conftest.err | |
19893 | rm -f conftest.er1 | |
19894 | cat conftest.err >&5 | |
19895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19896 | (exit $ac_status); } && | |
19897 | { ac_try='test -z "$ac_c_werror_flag" | |
19898 | || test ! -s conftest.err' | |
19899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19900 | (eval $ac_try) 2>&5 | |
19901 | ac_status=$? | |
19902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19903 | (exit $ac_status); }; } && | |
19904 | { ac_try='test -s conftest.$ac_objext' | |
19905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19906 | (eval $ac_try) 2>&5 | |
19907 | ac_status=$? | |
19908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19909 | (exit $ac_status); }; }; then | |
d92419e5 JB |
19910 | gdb_cv_have_aix_thread_debug=yes |
19911 | else | |
bec39cab AC |
19912 | echo "$as_me: failed program was:" >&5 |
19913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19914 | ||
19915 | gdb_cv_have_aix_thread_debug=no | |
d92419e5 | 19916 | fi |
bec39cab | 19917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
19918 | fi |
19919 | ||
bec39cab AC |
19920 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
19921 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
19922 | if test $gdb_cv_have_aix_thread_debug = yes; then |
19923 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 19924 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
19925 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
19926 | fi | |
19927 | ;; | |
c906108c | 19928 | esac |
bec39cab | 19929 | |
c906108c SS |
19930 | fi |
19931 | ||
3f47be5c | 19932 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
bec39cab AC |
19933 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
19934 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
19935 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then | |
19936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19937 | else | |
19938 | cat >conftest.$ac_ext <<_ACEOF | |
19939 | /* confdefs.h. */ | |
19940 | _ACEOF | |
19941 | cat confdefs.h >>conftest.$ac_ext | |
19942 | cat >>conftest.$ac_ext <<_ACEOF | |
19943 | /* end confdefs.h. */ | |
3f47be5c | 19944 | #include <thread_db.h> |
bec39cab AC |
19945 | int |
19946 | main () | |
19947 | { | |
3f47be5c | 19948 | int i = TD_NOTALLOC; |
bec39cab AC |
19949 | ; |
19950 | return 0; | |
19951 | } | |
19952 | _ACEOF | |
19953 | rm -f conftest.$ac_objext | |
19954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19955 | (eval $ac_compile) 2>conftest.er1 | |
19956 | ac_status=$? | |
19957 | grep -v '^ *+' conftest.er1 >conftest.err | |
19958 | rm -f conftest.er1 | |
19959 | cat conftest.err >&5 | |
19960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19961 | (exit $ac_status); } && | |
19962 | { ac_try='test -z "$ac_c_werror_flag" | |
19963 | || test ! -s conftest.err' | |
19964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19965 | (eval $ac_try) 2>&5 | |
19966 | ac_status=$? | |
19967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19968 | (exit $ac_status); }; } && | |
19969 | { ac_try='test -s conftest.$ac_objext' | |
19970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19971 | (eval $ac_try) 2>&5 | |
19972 | ac_status=$? | |
19973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19974 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
19975 | gdb_cv_thread_db_h_has_td_notalloc=yes |
19976 | else | |
bec39cab AC |
19977 | echo "$as_me: failed program was:" >&5 |
19978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19979 | ||
19980 | gdb_cv_thread_db_h_has_td_notalloc=no | |
19981 | ||
3f47be5c | 19982 | fi |
bec39cab | 19983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 19984 | |
bec39cab AC |
19985 | fi |
19986 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 | |
19987 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
3f47be5c EZ |
19988 | fi |
19989 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
19990 | |
19991 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 19992 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 19993 | _ACEOF |
3f47be5c EZ |
19994 | |
19995 | fi | |
19996 | ||
b757528f | 19997 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
bec39cab AC |
19998 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
19999 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
20000 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then | |
20001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20002 | else | |
20003 | cat >conftest.$ac_ext <<_ACEOF | |
20004 | /* confdefs.h. */ | |
20005 | _ACEOF | |
20006 | cat confdefs.h >>conftest.$ac_ext | |
20007 | cat >>conftest.$ac_ext <<_ACEOF | |
20008 | /* end confdefs.h. */ | |
b757528f | 20009 | #include <sys/syscall.h> |
bec39cab AC |
20010 | int |
20011 | main () | |
20012 | { | |
b757528f | 20013 | int i = __NR_tkill; |
bec39cab AC |
20014 | ; |
20015 | return 0; | |
20016 | } | |
20017 | _ACEOF | |
20018 | rm -f conftest.$ac_objext | |
20019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20020 | (eval $ac_compile) 2>conftest.er1 | |
20021 | ac_status=$? | |
20022 | grep -v '^ *+' conftest.er1 >conftest.err | |
20023 | rm -f conftest.er1 | |
20024 | cat conftest.err >&5 | |
20025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20026 | (exit $ac_status); } && | |
20027 | { ac_try='test -z "$ac_c_werror_flag" | |
20028 | || test ! -s conftest.err' | |
20029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20030 | (eval $ac_try) 2>&5 | |
20031 | ac_status=$? | |
20032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20033 | (exit $ac_status); }; } && | |
20034 | { ac_try='test -s conftest.$ac_objext' | |
20035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20036 | (eval $ac_try) 2>&5 | |
20037 | ac_status=$? | |
20038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20039 | (exit $ac_status); }; }; then | |
b757528f JJ |
20040 | gdb_cv_sys_syscall_h_has_tkill=yes |
20041 | else | |
bec39cab AC |
20042 | echo "$as_me: failed program was:" >&5 |
20043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20044 | ||
20045 | gdb_cv_sys_syscall_h_has_tkill=no | |
20046 | ||
b757528f | 20047 | fi |
bec39cab | 20048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 20049 | |
bec39cab AC |
20050 | fi |
20051 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 | |
20052 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
20053 | fi |
20054 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
20055 | |
20056 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 20057 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 20058 | _ACEOF |
b757528f JJ |
20059 | |
20060 | fi | |
20061 | ||
fb40c209 | 20062 | |
bec39cab | 20063 | |
030292b7 DJ |
20064 | # Check whether --with-sysroot or --without-sysroot was given. |
20065 | if test "${with_sysroot+set}" = set; then | |
20066 | withval="$with_sysroot" | |
bec39cab | 20067 | |
030292b7 | 20068 | case ${with_sysroot} in |
715d1656 | 20069 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
20070 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
20071 | esac | |
20072 | ||
20073 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
20074 | ||
20075 | if test "x$exec_prefix" = xNONE; then | |
20076 | if test "x$prefix" = xNONE; then | |
20077 | test_prefix=/usr/local | |
20078 | else | |
20079 | test_prefix=$prefix | |
20080 | fi | |
20081 | else | |
20082 | test_prefix=$exec_prefix | |
20083 | fi | |
20084 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 AO |
20085 | "${test_prefix}"|"${test_prefix}/"*|\ |
20086 | '${exec_prefix}'|'${exec_prefix}/'*) | |
030292b7 DJ |
20087 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
20088 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
20089 | ;; | |
20090 | esac | |
20091 | ||
20092 | else | |
bec39cab | 20093 | |
030292b7 DJ |
20094 | TARGET_SYSTEM_ROOT= |
20095 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
20096 | ||
bec39cab | 20097 | fi; |
030292b7 DJ |
20098 | |
20099 | ||
20100 | ||
3b851bce AC |
20101 | # NOTE: Don't add -Wall or -Wunused, they both include |
20102 | # -Wunused-parameter which reports bogus warnings. | |
20103 | # NOTE: If you add to this list, remember to update | |
20104 | # gdb/doc/gdbint.texinfo. | |
1decb323 | 20105 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ |
a3b362c4 | 20106 | -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \ |
7be93b9e | 20107 | -Wunused-label -Wunused-function -Wno-pointer-sign" |
a3b362c4 JB |
20108 | |
20109 | # GCC supports -Wuninitialized only with -O or -On, n != 0. | |
ca231fcc | 20110 | if test x${CFLAGS+set} = xset; then |
a3b362c4 JB |
20111 | case "${CFLAGS}" in |
20112 | *"-O0"* ) ;; | |
20113 | *"-O"* ) | |
20114 | build_warnings="${build_warnings} -Wuninitialized" | |
20115 | ;; | |
20116 | esac | |
20117 | else | |
20118 | build_warnings="${build_warnings} -Wuninitialized" | |
20119 | fi | |
20120 | ||
d8038014 | 20121 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs |
0f0cffd2 | 20122 | # -Wunused-function -Wunused-variable -Wunused-value |
93d56215 | 20123 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual |
d8038014 AC |
20124 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes |
20125 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls | |
20126 | # -Woverloaded-virtual -Winline -Werror" | |
c906108c SS |
20127 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
20128 | if test "${enable_build_warnings+set}" = set; then | |
20129 | enableval="$enable_build_warnings" | |
1decb323 | 20130 | case "${enableval}" in |
c906108c SS |
20131 | yes) ;; |
20132 | no) build_warnings="-w";; | |
20133 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20134 | build_warnings="${build_warnings} ${t}";; | |
20135 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20136 | build_warnings="${t} ${build_warnings}";; | |
20137 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20138 | esac | |
d4f3574e | 20139 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 20140 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 20141 | fi |
bec39cab | 20142 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce AC |
20143 | if test "${enable_gdb_build_warnings+set}" = set; then |
20144 | enableval="$enable_gdb_build_warnings" | |
20145 | case "${enableval}" in | |
20146 | yes) ;; | |
20147 | no) build_warnings="-w";; | |
20148 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20149 | build_warnings="${build_warnings} ${t}";; | |
20150 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
20151 | build_warnings="${t} ${build_warnings}";; | |
20152 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20153 | esac | |
20154 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
20155 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
20156 | fi | |
bec39cab | 20157 | fi; WARN_CFLAGS="" |
104c1213 | 20158 | WERROR_CFLAGS="" |
c906108c SS |
20159 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
20160 | then | |
bec39cab AC |
20161 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
20162 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
20163 | # Separate out the -Werror flag as some files just cannot be |
20164 | # compiled with it enabled. | |
20165 | for w in ${build_warnings}; do | |
20166 | case $w in | |
20167 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
20168 | *) # Check that GCC accepts it | |
4536bbc6 AC |
20169 | saved_CFLAGS="$CFLAGS" |
20170 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
20171 | cat >conftest.$ac_ext <<_ACEOF |
20172 | /* confdefs.h. */ | |
20173 | _ACEOF | |
20174 | cat confdefs.h >>conftest.$ac_ext | |
20175 | cat >>conftest.$ac_ext <<_ACEOF | |
20176 | /* end confdefs.h. */ | |
4536bbc6 | 20177 | |
bec39cab AC |
20178 | int |
20179 | main () | |
20180 | { | |
4536bbc6 | 20181 | |
bec39cab AC |
20182 | ; |
20183 | return 0; | |
20184 | } | |
20185 | _ACEOF | |
20186 | rm -f conftest.$ac_objext | |
20187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20188 | (eval $ac_compile) 2>conftest.er1 | |
20189 | ac_status=$? | |
20190 | grep -v '^ *+' conftest.er1 >conftest.err | |
20191 | rm -f conftest.er1 | |
20192 | cat conftest.err >&5 | |
20193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20194 | (exit $ac_status); } && | |
20195 | { ac_try='test -z "$ac_c_werror_flag" | |
20196 | || test ! -s conftest.err' | |
20197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20198 | (eval $ac_try) 2>&5 | |
20199 | ac_status=$? | |
20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20201 | (exit $ac_status); }; } && | |
20202 | { ac_try='test -s conftest.$ac_objext' | |
20203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20204 | (eval $ac_try) 2>&5 | |
20205 | ac_status=$? | |
20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20207 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
20208 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
20209 | else | |
bec39cab AC |
20210 | echo "$as_me: failed program was:" >&5 |
20211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20212 | ||
4536bbc6 | 20213 | fi |
bec39cab | 20214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 20215 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
20216 | esac |
20217 | done | |
bec39cab AC |
20218 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 |
20219 | echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 | |
c906108c SS |
20220 | fi |
20221 | ||
20222 | ||
104c1213 | 20223 | |
7a292a7a | 20224 | # In the Cygwin environment, we need some additional flags. |
bec39cab AC |
20225 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
20226 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
20227 | if test "${gdb_cv_os_cygwin+set}" = set; then | |
20228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20229 | else | |
20230 | cat >conftest.$ac_ext <<_ACEOF | |
20231 | /* confdefs.h. */ | |
20232 | _ACEOF | |
20233 | cat confdefs.h >>conftest.$ac_ext | |
20234 | cat >>conftest.$ac_ext <<_ACEOF | |
20235 | /* end confdefs.h. */ | |
7a292a7a SS |
20236 | |
20237 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
20238 | lose | |
20239 | #endif | |
bec39cab | 20240 | _ACEOF |
7a292a7a | 20241 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 20242 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
20243 | gdb_cv_os_cygwin=yes |
20244 | else | |
7a292a7a SS |
20245 | gdb_cv_os_cygwin=no |
20246 | fi | |
20247 | rm -f conftest* | |
20248 | ||
20249 | fi | |
bec39cab AC |
20250 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
20251 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 20252 | |
aff38e61 | 20253 | |
3eb25fda | 20254 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 20255 | case ${host} in |
95cbc983 AC |
20256 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
20257 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
3eb25fda | 20258 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o" ;; |
aff38e61 AC |
20259 | esac |
20260 | ||
20261 | ||
cd0fc7c3 SS |
20262 | # libreadline needs libuser32.a in a cygwin environment |
20263 | WIN32LIBS= | |
20264 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
20265 | WIN32LIBS="-luser32" |
20266 | case "${target}" in | |
20267 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
20268 | ;; | |
20269 | esac | |
cd0fc7c3 | 20270 | fi |
c906108c | 20271 | |
b4505029 MM |
20272 | # The ser-tcp.c module requires sockets. |
20273 | case ${host} in | |
20274 | *mingw32*) | |
20275 | ||
20276 | cat >>confdefs.h <<\_ACEOF | |
20277 | #define USE_WIN32API 1 | |
20278 | _ACEOF | |
20279 | ||
20280 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
20281 | ;; | |
20282 | esac | |
20283 | ||
7a292a7a | 20284 | |
3fc11d3e JM |
20285 | LIBGUI="../libgui/src/libgui.a" |
20286 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
20287 | ||
20288 | ||
7a292a7a | 20289 | |
3fc11d3e JM |
20290 | WIN32LDAPP= |
20291 | ||
20292 | ||
20293 | ||
d91670b9 CV |
20294 | case "${host}" in |
20295 | *-*-cygwin*) | |
20296 | configdir="win" | |
20297 | ;; | |
20298 | *) | |
20299 | configdir="unix" | |
20300 | ;; | |
20301 | esac | |
3fc11d3e JM |
20302 | |
20303 | GDBTKLIBS= | |
20304 | if test "${enable_gdbtk}" = "yes"; then | |
20305 | ||
d1c3b63a KS |
20306 | # Gdbtk must have an absolute path to srcdir in order to run |
20307 | # properly when not installed. | |
20308 | here=`pwd` | |
20309 | cd ${srcdir} | |
20310 | GDBTK_SRC_DIR=`pwd` | |
20311 | cd $here | |
20312 | ||
bec39cab | 20313 | |
3fc11d3e JM |
20314 | # |
20315 | # Ok, lets find the tcl configuration | |
bec39cab | 20316 | # First, look for one uninstalled. |
3fc11d3e JM |
20317 | # the alternative search directory is invoked by --with-tclconfig |
20318 | # | |
20319 | ||
20320 | if test x"${no_tcl}" = x ; then | |
20321 | # we reset no_tcl in case something fails here | |
20322 | no_tcl=true | |
bec39cab AC |
20323 | |
20324 | # Check whether --with-tclconfig or --without-tclconfig was given. | |
3fc11d3e JM |
20325 | if test "${with_tclconfig+set}" = set; then |
20326 | withval="$with_tclconfig" | |
20327 | with_tclconfig=${withval} | |
bec39cab AC |
20328 | fi; |
20329 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
20330 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
20331 | if test "${ac_cv_c_tclconfig+set}" = set; then | |
20332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20333 | else |
bec39cab | 20334 | |
3fc11d3e JM |
20335 | |
20336 | # First check to see if --with-tclconfig was specified. | |
20337 | if test x"${with_tclconfig}" != x ; then | |
20338 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
20339 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
20340 | else | |
bec39cab AC |
20341 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
20342 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
20343 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20344 | fi |
20345 | fi | |
20346 | ||
20347 | # then check for a private Tcl installation | |
20348 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20349 | for i in \ | |
20350 | ../tcl \ | |
20351 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
20352 | ../../tcl \ | |
20353 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
20354 | ../../../tcl \ | |
20355 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
20356 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
20357 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
20358 | break | |
20359 | fi | |
20360 | done | |
20361 | fi | |
20362 | # check in a few common install locations | |
20363 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20364 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20365 | if test -f "$i/tclConfig.sh" ; then | |
20366 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
20367 | break | |
20368 | fi | |
20369 | done | |
20370 | fi | |
20371 | # check in a few other private locations | |
20372 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20373 | for i in \ | |
20374 | ${srcdir}/../tcl \ | |
20375 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
20376 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
20377 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
20378 | break | |
20379 | fi | |
20380 | done | |
20381 | fi | |
bec39cab | 20382 | |
3fc11d3e JM |
20383 | fi |
20384 | ||
20385 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20386 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
20387 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
20388 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
20389 | else |
20390 | no_tcl= | |
20391 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
bec39cab AC |
20392 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
20393 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
20394 | fi |
20395 | fi | |
20396 | ||
20397 | if test -z "${no_tcl}"; then | |
bec39cab | 20398 | |
3fc11d3e JM |
20399 | . $TCLCONFIG |
20400 | ||
3fc11d3e JM |
20401 | |
20402 | ||
20403 | ||
20404 | ||
3fc11d3e JM |
20405 | |
20406 | ||
20407 | ||
bec39cab AC |
20408 | |
20409 | ||
20410 | ||
20411 | ||
20412 | ||
20413 | ||
20414 | ||
20415 | ||
20416 | ||
20417 | ||
20418 | ||
20419 | ||
20420 | ||
20421 | ||
20422 | ||
20423 | ||
20424 | ||
20425 | ||
20426 | ||
3fc11d3e JM |
20427 | # |
20428 | # Ok, lets find the tk configuration | |
bec39cab | 20429 | # First, look for one uninstalled. |
3fc11d3e JM |
20430 | # the alternative search directory is invoked by --with-tkconfig |
20431 | # | |
20432 | ||
20433 | if test x"${no_tk}" = x ; then | |
20434 | # we reset no_tk in case something fails here | |
20435 | no_tk=true | |
bec39cab AC |
20436 | |
20437 | # Check whether --with-tkconfig or --without-tkconfig was given. | |
3fc11d3e JM |
20438 | if test "${with_tkconfig+set}" = set; then |
20439 | withval="$with_tkconfig" | |
20440 | with_tkconfig=${withval} | |
bec39cab AC |
20441 | fi; |
20442 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
20443 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
20444 | if test "${ac_cv_c_tkconfig+set}" = set; then | |
20445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20446 | else |
bec39cab | 20447 | |
3fc11d3e JM |
20448 | |
20449 | # First check to see if --with-tkconfig was specified. | |
20450 | if test x"${with_tkconfig}" != x ; then | |
20451 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
20452 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
20453 | else | |
bec39cab AC |
20454 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
20455 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
20456 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20457 | fi |
20458 | fi | |
20459 | ||
20460 | # then check for a private Tk library | |
20461 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20462 | for i in \ | |
20463 | ../tk \ | |
20464 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
20465 | ../../tk \ | |
20466 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
20467 | ../../../tk \ | |
20468 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
20469 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
20470 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
20471 | break | |
20472 | fi | |
20473 | done | |
20474 | fi | |
20475 | # check in a few common install locations | |
20476 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20477 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20478 | if test -f "$i/tkConfig.sh" ; then | |
20479 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
20480 | break | |
20481 | fi | |
20482 | done | |
20483 | fi | |
20484 | # check in a few other private locations | |
20485 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20486 | for i in \ | |
20487 | ${srcdir}/../tk \ | |
20488 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
20489 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
20490 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
20491 | break | |
20492 | fi | |
20493 | done | |
20494 | fi | |
bec39cab | 20495 | |
3fc11d3e JM |
20496 | fi |
20497 | ||
20498 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20499 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
20500 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
20501 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
20502 | else |
20503 | no_tk= | |
20504 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
bec39cab AC |
20505 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
20506 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
20507 | fi |
20508 | fi | |
20509 | ||
20510 | ||
20511 | ||
dd2504ab JM |
20512 | # now look for Tcl library stuff |
20513 | ||
d91670b9 | 20514 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
20515 | |
20516 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
20517 | ||
3fc11d3e JM |
20518 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
20519 | # point to doing Tcl. | |
20520 | if test -z "${no_tk}"; then | |
bec39cab | 20521 | |
3fc11d3e JM |
20522 | if test -f "$TKCONFIG" ; then |
20523 | . $TKCONFIG | |
20524 | fi | |
20525 | ||
3fc11d3e | 20526 | |
3fc11d3e JM |
20527 | |
20528 | ||
3fc11d3e | 20529 | |
bec39cab AC |
20530 | |
20531 | ||
20532 | ||
20533 | ||
20534 | ||
20535 | ||
20536 | ||
20537 | ||
20538 | ||
3fc11d3e JM |
20539 | # |
20540 | # Ok, lets find the tcl source trees so we can use the headers | |
20541 | # Warning: transition of version 9 to 10 will break this algorithm | |
20542 | # because 10 sorts before 9. We also look for just tcl. We have to | |
20543 | # be careful that we don't match stuff like tclX by accident. | |
20544 | # the alternative search directory is involked by --with-tclinclude | |
20545 | # | |
20546 | ||
20547 | no_tcl=true | |
bec39cab AC |
20548 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
20549 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
20550 | ||
3fc11d3e JM |
20551 | # Check whether --with-tclinclude or --without-tclinclude was given. |
20552 | if test "${with_tclinclude+set}" = set; then | |
20553 | withval="$with_tclinclude" | |
20554 | with_tclinclude=${withval} | |
bec39cab AC |
20555 | fi; |
20556 | if test "${ac_cv_c_tclh+set}" = set; then | |
20557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20558 | else |
bec39cab | 20559 | |
3fc11d3e JM |
20560 | # first check to see if --with-tclinclude was specified |
20561 | if test x"${with_tclinclude}" != x ; then | |
20562 | if test -f ${with_tclinclude}/tclInt.h ; then | |
20563 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
20564 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
20565 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
20566 | else | |
bec39cab AC |
20567 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
20568 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
20569 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20570 | fi |
20571 | fi | |
20572 | ||
20573 | # next check if it came with Tcl configuration file | |
20574 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20575 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
20576 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
20577 | fi | |
20578 | fi | |
20579 | ||
20580 | # next check in private source directory | |
20581 | # | |
20582 | # since ls returns lowest version numbers first, reverse its output | |
20583 | if test x"${ac_cv_c_tclh}" = x ; then | |
20584 | for i in \ | |
20585 | ${srcdir}/../tcl \ | |
20586 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
20587 | ${srcdir}/../../tcl \ | |
20588 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
20589 | ${srcdir}/../../../tcl \ | |
20590 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
20591 | if test -f $i/generic/tclInt.h ; then | |
20592 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
20593 | break | |
20594 | fi | |
20595 | done | |
20596 | fi | |
20597 | # finally check in a few common install locations | |
20598 | # | |
20599 | # since ls returns lowest version numbers first, reverse its output | |
20600 | if test x"${ac_cv_c_tclh}" = x ; then | |
20601 | for i in \ | |
20602 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
20603 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
20604 | /usr/local/src/tcl \ | |
20605 | /usr/local/lib/tcl \ | |
20606 | ${prefix}/include ; do | |
20607 | if test -f $i/generic/tclInt.h ; then | |
20608 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
20609 | break | |
20610 | fi | |
20611 | done | |
20612 | fi | |
20613 | # see if one is installed | |
20614 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab AC |
20615 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
20616 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 | |
20617 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
20618 | if test "${ac_cv_header_tclInt_h+set}" = set; then | |
20619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20620 | fi | |
20621 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 | |
20622 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
20623 | else | |
20624 | # Is the header compilable? | |
20625 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 | |
20626 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
20627 | cat >conftest.$ac_ext <<_ACEOF | |
20628 | /* confdefs.h. */ | |
20629 | _ACEOF | |
20630 | cat confdefs.h >>conftest.$ac_ext | |
20631 | cat >>conftest.$ac_ext <<_ACEOF | |
20632 | /* end confdefs.h. */ | |
20633 | $ac_includes_default | |
20634 | #include <tclInt.h> | |
20635 | _ACEOF | |
20636 | rm -f conftest.$ac_objext | |
20637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20638 | (eval $ac_compile) 2>conftest.er1 | |
20639 | ac_status=$? | |
20640 | grep -v '^ *+' conftest.er1 >conftest.err | |
20641 | rm -f conftest.er1 | |
20642 | cat conftest.err >&5 | |
20643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20644 | (exit $ac_status); } && | |
20645 | { ac_try='test -z "$ac_c_werror_flag" | |
20646 | || test ! -s conftest.err' | |
20647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20648 | (eval $ac_try) 2>&5 | |
20649 | ac_status=$? | |
20650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20651 | (exit $ac_status); }; } && | |
20652 | { ac_try='test -s conftest.$ac_objext' | |
20653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20654 | (eval $ac_try) 2>&5 | |
20655 | ac_status=$? | |
20656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20657 | (exit $ac_status); }; }; then | |
20658 | ac_header_compiler=yes | |
20659 | else | |
20660 | echo "$as_me: failed program was:" >&5 | |
20661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20662 | ||
20663 | ac_header_compiler=no | |
20664 | fi | |
20665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20666 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20667 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20668 | ||
20669 | # Is the header present? | |
20670 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 | |
20671 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
20672 | cat >conftest.$ac_ext <<_ACEOF | |
20673 | /* confdefs.h. */ | |
20674 | _ACEOF | |
20675 | cat confdefs.h >>conftest.$ac_ext | |
20676 | cat >>conftest.$ac_ext <<_ACEOF | |
20677 | /* end confdefs.h. */ | |
3fc11d3e | 20678 | #include <tclInt.h> |
bec39cab AC |
20679 | _ACEOF |
20680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20682 | ac_status=$? | |
20683 | grep -v '^ *+' conftest.er1 >conftest.err | |
20684 | rm -f conftest.er1 | |
20685 | cat conftest.err >&5 | |
20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20687 | (exit $ac_status); } >/dev/null; then | |
20688 | if test -s conftest.err; then | |
20689 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20690 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20691 | else | |
20692 | ac_cpp_err= | |
20693 | fi | |
20694 | else | |
20695 | ac_cpp_err=yes | |
3fc11d3e | 20696 | fi |
bec39cab AC |
20697 | if test -z "$ac_cpp_err"; then |
20698 | ac_header_preproc=yes | |
20699 | else | |
20700 | echo "$as_me: failed program was:" >&5 | |
20701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20702 | ||
20703 | ac_header_preproc=no | |
3fc11d3e | 20704 | fi |
bec39cab AC |
20705 | rm -f conftest.err conftest.$ac_ext |
20706 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20707 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20708 | ||
20709 | # So? What about this header? | |
20710 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20711 | yes:no: ) | |
20712 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20713 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20714 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
20715 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
20716 | ac_header_preproc=yes | |
20717 | ;; | |
20718 | no:yes:* ) | |
20719 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
20720 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
20721 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
20722 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
20723 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
20724 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
20725 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20726 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20727 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
20728 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
20729 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
20730 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
20731 | ( | |
20732 | cat <<\_ASBOX | |
20733 | ## ------------------------------------------ ## | |
20734 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20735 | ## ------------------------------------------ ## | |
20736 | _ASBOX | |
20737 | ) | | |
20738 | sed "s/^/$as_me: WARNING: /" >&2 | |
20739 | ;; | |
20740 | esac | |
20741 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 | |
20742 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
20743 | if test "${ac_cv_header_tclInt_h+set}" = set; then | |
20744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20745 | else | |
20746 | ac_cv_header_tclInt_h=$ac_header_preproc | |
20747 | fi | |
20748 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 | |
20749 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
20750 | ||
20751 | fi | |
20752 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
20753 | ac_cv_c_tclh=installed |
20754 | else | |
bec39cab | 20755 | ac_cv_c_tclh="" |
3fc11d3e JM |
20756 | fi |
20757 | ||
bec39cab | 20758 | |
3fc11d3e JM |
20759 | fi |
20760 | ||
20761 | fi | |
20762 | ||
20763 | if test x"${ac_cv_c_tclh}" = x ; then | |
20764 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
20765 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
20766 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
20767 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20768 | fi |
20769 | if test x"${ac_cv_c_tclh}" != x ; then | |
20770 | no_tcl="" | |
20771 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
bec39cab AC |
20772 | echo "$as_me:$LINENO: result: is installed" >&5 |
20773 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
20774 | TCLHDIR="" |
20775 | else | |
bec39cab AC |
20776 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
20777 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
20778 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
20779 | TCLHDIR="-I${ac_cv_c_tclh}" | |
20780 | fi | |
20781 | fi | |
20782 | ||
20783 | ||
20784 | ||
bec39cab | 20785 | |
3fc11d3e JM |
20786 | # |
20787 | # Ok, lets find the tk source trees so we can use the headers | |
20788 | # If the directory (presumably symlink) named "tk" exists, use that one | |
20789 | # in preference to any others. Same logic is used when choosing library | |
20790 | # and again with Tcl. The search order is the best place to look first, then in | |
20791 | # decreasing significance. The loop breaks if the trigger file is found. | |
20792 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
20793 | # directory. This converts the path from a relative to an absolute, so | |
20794 | # recursive cache variables for the path will work right. We check all | |
20795 | # the possible paths in one loop rather than many seperate loops to speed | |
20796 | # things up. | |
20797 | # the alternative search directory is involked by --with-tkinclude | |
20798 | # | |
20799 | no_tk=true | |
bec39cab AC |
20800 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
20801 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
20802 | ||
3fc11d3e JM |
20803 | # Check whether --with-tkinclude or --without-tkinclude was given. |
20804 | if test "${with_tkinclude+set}" = set; then | |
20805 | withval="$with_tkinclude" | |
20806 | with_tkinclude=${withval} | |
bec39cab AC |
20807 | fi; |
20808 | if test "${ac_cv_c_tkh+set}" = set; then | |
20809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20810 | else |
bec39cab | 20811 | |
3fc11d3e JM |
20812 | # first check to see if --with-tkinclude was specified |
20813 | if test x"${with_tkinclude}" != x ; then | |
20814 | if test -f ${with_tkinclude}/tk.h ; then | |
20815 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
20816 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
20817 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
20818 | else | |
bec39cab AC |
20819 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
20820 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
20821 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20822 | fi |
20823 | fi | |
20824 | ||
20825 | # next check if it came with Tk configuration file | |
20826 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20827 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
20828 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
20829 | fi | |
20830 | fi | |
20831 | ||
20832 | # next check in private source directory | |
20833 | # | |
20834 | # since ls returns lowest version numbers first, reverse its output | |
20835 | if test x"${ac_cv_c_tkh}" = x ; then | |
20836 | for i in \ | |
20837 | ${srcdir}/../tk \ | |
20838 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
20839 | ${srcdir}/../../tk \ | |
20840 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
20841 | ${srcdir}/../../../tk \ | |
20842 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
20843 | if test -f $i/generic/tk.h ; then | |
20844 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
20845 | break | |
20846 | fi | |
20847 | done | |
20848 | fi | |
20849 | # finally check in a few common install locations | |
20850 | # | |
20851 | # since ls returns lowest version numbers first, reverse its output | |
20852 | if test x"${ac_cv_c_tkh}" = x ; then | |
20853 | for i in \ | |
20854 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
20855 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
20856 | /usr/local/src/tk \ | |
20857 | /usr/local/lib/tk \ | |
20858 | ${prefix}/include ; do | |
20859 | if test -f $i/generic/tk.h ; then | |
20860 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
20861 | break | |
20862 | fi | |
20863 | done | |
20864 | fi | |
20865 | # see if one is installed | |
20866 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab AC |
20867 | if test "${ac_cv_header_tk_h+set}" = set; then |
20868 | echo "$as_me:$LINENO: checking for tk.h" >&5 | |
20869 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
20870 | if test "${ac_cv_header_tk_h+set}" = set; then | |
20871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20872 | fi | |
20873 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 | |
20874 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
20875 | else | |
20876 | # Is the header compilable? | |
20877 | echo "$as_me:$LINENO: checking tk.h usability" >&5 | |
20878 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
20879 | cat >conftest.$ac_ext <<_ACEOF | |
20880 | /* confdefs.h. */ | |
20881 | _ACEOF | |
20882 | cat confdefs.h >>conftest.$ac_ext | |
20883 | cat >>conftest.$ac_ext <<_ACEOF | |
20884 | /* end confdefs.h. */ | |
20885 | $ac_includes_default | |
3fc11d3e | 20886 | #include <tk.h> |
bec39cab AC |
20887 | _ACEOF |
20888 | rm -f conftest.$ac_objext | |
20889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20890 | (eval $ac_compile) 2>conftest.er1 | |
20891 | ac_status=$? | |
20892 | grep -v '^ *+' conftest.er1 >conftest.err | |
20893 | rm -f conftest.er1 | |
20894 | cat conftest.err >&5 | |
20895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20896 | (exit $ac_status); } && | |
20897 | { ac_try='test -z "$ac_c_werror_flag" | |
20898 | || test ! -s conftest.err' | |
20899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20900 | (eval $ac_try) 2>&5 | |
20901 | ac_status=$? | |
20902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20903 | (exit $ac_status); }; } && | |
20904 | { ac_try='test -s conftest.$ac_objext' | |
20905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20906 | (eval $ac_try) 2>&5 | |
20907 | ac_status=$? | |
20908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20909 | (exit $ac_status); }; }; then | |
20910 | ac_header_compiler=yes | |
20911 | else | |
20912 | echo "$as_me: failed program was:" >&5 | |
20913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20914 | ||
20915 | ac_header_compiler=no | |
20916 | fi | |
20917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20918 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20919 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20920 | ||
20921 | # Is the header present? | |
20922 | echo "$as_me:$LINENO: checking tk.h presence" >&5 | |
20923 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
20924 | cat >conftest.$ac_ext <<_ACEOF | |
20925 | /* confdefs.h. */ | |
20926 | _ACEOF | |
20927 | cat confdefs.h >>conftest.$ac_ext | |
20928 | cat >>conftest.$ac_ext <<_ACEOF | |
20929 | /* end confdefs.h. */ | |
20930 | #include <tk.h> | |
20931 | _ACEOF | |
20932 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20933 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20934 | ac_status=$? | |
20935 | grep -v '^ *+' conftest.er1 >conftest.err | |
20936 | rm -f conftest.er1 | |
20937 | cat conftest.err >&5 | |
20938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20939 | (exit $ac_status); } >/dev/null; then | |
20940 | if test -s conftest.err; then | |
20941 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20942 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20943 | else | |
20944 | ac_cpp_err= | |
20945 | fi | |
20946 | else | |
20947 | ac_cpp_err=yes | |
3fc11d3e | 20948 | fi |
bec39cab AC |
20949 | if test -z "$ac_cpp_err"; then |
20950 | ac_header_preproc=yes | |
20951 | else | |
20952 | echo "$as_me: failed program was:" >&5 | |
20953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20954 | ||
20955 | ac_header_preproc=no | |
20956 | fi | |
20957 | rm -f conftest.err conftest.$ac_ext | |
20958 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20959 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20960 | ||
20961 | # So? What about this header? | |
20962 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20963 | yes:no: ) | |
20964 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20965 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20966 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
20967 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
20968 | ac_header_preproc=yes | |
20969 | ;; | |
20970 | no:yes:* ) | |
20971 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
20972 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
20973 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
20974 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
20975 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
20976 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
20977 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20978 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20979 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
20980 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
20981 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
20982 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
20983 | ( | |
20984 | cat <<\_ASBOX | |
20985 | ## ------------------------------------------ ## | |
20986 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20987 | ## ------------------------------------------ ## | |
20988 | _ASBOX | |
20989 | ) | | |
20990 | sed "s/^/$as_me: WARNING: /" >&2 | |
20991 | ;; | |
20992 | esac | |
20993 | echo "$as_me:$LINENO: checking for tk.h" >&5 | |
20994 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
20995 | if test "${ac_cv_header_tk_h+set}" = set; then | |
20996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20997 | else | |
20998 | ac_cv_header_tk_h=$ac_header_preproc | |
20999 | fi | |
21000 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 | |
21001 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
21002 | ||
3fc11d3e | 21003 | fi |
bec39cab | 21004 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
21005 | ac_cv_c_tkh=installed |
21006 | else | |
bec39cab | 21007 | ac_cv_c_tkh="" |
3fc11d3e JM |
21008 | fi |
21009 | ||
bec39cab | 21010 | |
3fc11d3e JM |
21011 | fi |
21012 | ||
21013 | fi | |
21014 | ||
21015 | if test x"${ac_cv_c_tkh}" != x ; then | |
21016 | no_tk="" | |
21017 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
bec39cab AC |
21018 | echo "$as_me:$LINENO: result: is installed" >&5 |
21019 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
21020 | TKHDIR="" |
21021 | else | |
bec39cab AC |
21022 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
21023 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
21024 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
21025 | TKHDIR="-I${ac_cv_c_tkh}" | |
21026 | fi | |
21027 | else | |
21028 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
21029 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
21030 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
21031 | no_tk=true |
21032 | fi | |
21033 | ||
21034 | ||
21035 | ||
bec39cab AC |
21036 | |
21037 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 | |
21038 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
21039 | if test x"${ac_cv_c_itclh}" = x ; then |
21040 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
21041 | if test -f $i/generic/itcl.h ; then | |
21042 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
21043 | break | |
21044 | fi | |
21045 | done | |
21046 | fi | |
21047 | if test x"${ac_cv_c_itclh}" = x ; then | |
21048 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
21049 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
21050 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
21051 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21052 | fi |
21053 | if test x"${ac_cv_c_itclh}" != x ; then | |
21054 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
21055 | fi | |
21056 | # should always be here | |
21057 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
21058 | ||
21059 | #AC_SUBST(ITCLLIB) | |
21060 | ||
bec39cab AC |
21061 | |
21062 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 | |
21063 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
21064 | if test x"${ac_cv_c_itkh}" = x ; then |
21065 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
21066 | if test -f $i/generic/itk.h ; then | |
21067 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
21068 | break | |
21069 | fi | |
21070 | done | |
21071 | fi | |
21072 | if test x"${ac_cv_c_itkh}" = x ; then | |
21073 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
21074 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
21075 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
21076 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21077 | fi |
21078 | if test x"${ac_cv_c_itkh}" != x ; then | |
21079 | ITKHDIR="-I${ac_cv_c_itkh}" | |
21080 | fi | |
21081 | # should always be here | |
21082 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
21083 | ||
21084 | #AC_SUBST(ITKLIB) | |
21085 | ||
3fc11d3e | 21086 | |
dd2504ab JM |
21087 | |
21088 | # now look for Tk library stuff | |
21089 | ||
d91670b9 | 21090 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
21091 | |
21092 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
21093 | ||
3fc11d3e JM |
21094 | # now look for Itcl library stuff |
21095 | ||
bec39cab | 21096 | |
3fc11d3e JM |
21097 | # |
21098 | # Ok, lets find the itcl configuration | |
bec39cab | 21099 | # First, look for one uninstalled. |
3fc11d3e JM |
21100 | # the alternative search directory is invoked by --with-itclconfig |
21101 | # | |
21102 | ||
21103 | if test x"${no_itcl}" = x ; then | |
21104 | # we reset no_itcl in case something fails here | |
21105 | no_itcl=true | |
bec39cab AC |
21106 | |
21107 | # Check whether --with-itclconfig or --without-itclconfig was given. | |
3fc11d3e JM |
21108 | if test "${with_itclconfig+set}" = set; then |
21109 | withval="$with_itclconfig" | |
21110 | with_itclconfig=${withval} | |
bec39cab AC |
21111 | fi; |
21112 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
21113 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
21114 | if test "${ac_cv_c_itclconfig+set}" = set; then | |
21115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21116 | else |
bec39cab | 21117 | |
3fc11d3e JM |
21118 | |
21119 | # First check to see if --with-itclconfig was specified. | |
21120 | if test x"${with_itclconfig}" != x ; then | |
21121 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
21122 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
21123 | else | |
bec39cab AC |
21124 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
21125 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
21126 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21127 | fi |
21128 | fi | |
21129 | ||
21130 | # then check for a private Itcl library | |
21131 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
21132 | for i in \ | |
21133 | ../itcl/itcl \ | |
21134 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
21135 | ../../itcl \ | |
21136 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
21137 | ../../../itcl \ | |
21138 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
21139 | if test -f "$i/itclConfig.sh" ; then | |
21140 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
21141 | break | |
21142 | fi | |
21143 | done | |
21144 | fi | |
21145 | # check in a few common install locations | |
21146 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
21147 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21148 | if test -f "$i/itclConfig.sh" ; then | |
21149 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
21150 | break | |
21151 | fi | |
21152 | done | |
21153 | fi | |
21154 | # check in a few other private locations | |
21155 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
21156 | for i in \ | |
21157 | ${srcdir}/../itcl/itcl \ | |
21158 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
21159 | if test -f "$i/itclConfig.sh" ; then | |
21160 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
21161 | break | |
21162 | fi | |
21163 | done | |
21164 | fi | |
bec39cab | 21165 | |
3fc11d3e JM |
21166 | fi |
21167 | ||
21168 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
21169 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
21170 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
21171 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
21172 | else |
21173 | no_itcl= | |
21174 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
bec39cab AC |
21175 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
21176 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
21177 | fi |
21178 | fi | |
21179 | ||
21180 | if test -z "${no_itcl}"; then | |
bec39cab | 21181 | |
3fc11d3e JM |
21182 | if test -f "$ITCLCONFIG" ; then |
21183 | . $ITCLCONFIG | |
21184 | fi | |
21185 | ||
3fc11d3e | 21186 | |
3fc11d3e JM |
21187 | |
21188 | ||
bec39cab AC |
21189 | |
21190 | ||
21191 | ||
21192 | ||
21193 | ||
21194 | ||
21195 | ||
3fc11d3e JM |
21196 | |
21197 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 21198 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
21199 | fi |
21200 | ||
bec39cab | 21201 | |
3fc11d3e | 21202 | # now look for Itk library stuff |
bec39cab | 21203 | |
3fc11d3e JM |
21204 | # |
21205 | # Ok, lets find the itk configuration | |
bec39cab | 21206 | # First, look for one uninstalled. |
3fc11d3e JM |
21207 | # the alternative search directory is invoked by --with-itkconfig |
21208 | # | |
21209 | ||
21210 | if test x"${no_itk}" = x ; then | |
21211 | # we reset no_itk in case something fails here | |
21212 | no_itk=true | |
bec39cab AC |
21213 | |
21214 | # Check whether --with-itkconfig or --without-itkconfig was given. | |
3fc11d3e JM |
21215 | if test "${with_itkconfig+set}" = set; then |
21216 | withval="$with_itkconfig" | |
21217 | with_itkconfig=${withval} | |
bec39cab AC |
21218 | fi; |
21219 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
21220 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
21221 | if test "${ac_cv_c_itkconfig+set}" = set; then | |
21222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21223 | else |
bec39cab | 21224 | |
3fc11d3e JM |
21225 | |
21226 | # First check to see if --with-itkconfig was specified. | |
21227 | if test x"${with_itkconfig}" != x ; then | |
21228 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
21229 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
21230 | else | |
bec39cab AC |
21231 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
21232 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
21233 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21234 | fi |
21235 | fi | |
21236 | ||
21237 | # then check for a private Itk library | |
21238 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21239 | for i in \ | |
21240 | ../itcl/itk \ | |
21241 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
21242 | ../../itk \ | |
21243 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
21244 | ../../../itk \ | |
21245 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
21246 | if test -f "$i/itkConfig.sh" ; then | |
21247 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
21248 | break | |
21249 | fi | |
21250 | done | |
21251 | fi | |
21252 | # check in a few common install locations | |
21253 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21254 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21255 | if test -f "$i/itkConfig.sh" ; then | |
21256 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
21257 | break | |
21258 | fi | |
21259 | done | |
21260 | fi | |
21261 | # check in a few other private locations | |
21262 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21263 | for i in \ | |
21264 | ${srcdir}/../itcl/itk \ | |
21265 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
21266 | if test -f "$i/itkConfig.sh" ; then | |
21267 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
21268 | break | |
21269 | fi | |
21270 | done | |
21271 | fi | |
bec39cab | 21272 | |
3fc11d3e JM |
21273 | fi |
21274 | ||
21275 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
21276 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
21277 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
21278 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
21279 | else |
21280 | no_itk= | |
21281 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
bec39cab AC |
21282 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
21283 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
21284 | fi |
21285 | fi | |
21286 | ||
21287 | ||
bec39cab AC |
21288 | if test -z "${no_itcl}"; then |
21289 | ||
21290 | if test -f "$ITKCONFIG" ; then | |
21291 | . $ITKCONFIG | |
21292 | fi | |
21293 | ||
21294 | ||
21295 | ||
21296 | ||
21297 | ||
21298 | ||
3fc11d3e | 21299 | |
3fc11d3e | 21300 | |
3fc11d3e JM |
21301 | |
21302 | ||
3fc11d3e JM |
21303 | |
21304 | ||
3fc11d3e | 21305 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 21306 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
21307 | fi |
21308 | ||
4226a5a5 | 21309 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
21310 | |
21311 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 21312 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
21313 | # Yes, the ordering seems wrong here. But it isn't. |
21314 | # TK_LIBS is the list of libraries that need to be linked | |
21315 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
21316 | # were in LIBS then any link tests after this point would | |
21317 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
21318 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
21319 | |
21320 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
21321 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
21322 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
21323 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
21324 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
21325 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
21326 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
21327 | |
21328 | if test x$gdb_cv_os_cygwin = xyes; then | |
21329 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
21330 | WIN32LDAPP="-Wl,--subsystem,console" | |
21331 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
21332 | fi | |
21333 | fi | |
21334 | fi | |
ffc6a242 | 21335 | |
bec39cab AC |
21336 | |
21337 | ||
21338 | subdirs="$subdirs gdbtk" | |
3ace7edb | 21339 | |
3fc11d3e JM |
21340 | fi |
21341 | ||
21342 | ||
21343 | ||
21344 | ||
21345 | ||
21346 | ||
21347 | ||
21348 | ||
21349 | ||
21350 | ||
21351 | ||
21352 | ||
21353 | ||
dd2504ab | 21354 | |
bec39cab AC |
21355 | echo "$as_me:$LINENO: checking for X" >&5 |
21356 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21357 | ||
c906108c SS |
21358 | |
21359 | # Check whether --with-x or --without-x was given. | |
21360 | if test "${with_x+set}" = set; then | |
21361 | withval="$with_x" | |
c906108c | 21362 | |
bec39cab | 21363 | fi; |
c906108c SS |
21364 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21365 | if test "x$with_x" = xno; then | |
21366 | # The user explicitly disabled X. | |
21367 | have_x=disabled | |
21368 | else | |
21369 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21370 | # Both variables are already set. | |
21371 | have_x=yes | |
21372 | else | |
bec39cab AC |
21373 | if test "${ac_cv_have_x+set}" = set; then |
21374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
21375 | else |
21376 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab AC |
21377 | ac_x_includes=no ac_x_libraries=no |
21378 | rm -fr conftest.dir | |
21379 | if mkdir conftest.dir; then | |
21380 | cd conftest.dir | |
c906108c | 21381 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 21382 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
21383 | acfindx: |
21384 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 21385 | _ACEOF |
c906108c SS |
21386 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
21387 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
21388 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
21389 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
21390 | for ac_extension in a so sl; do | |
21391 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
21392 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21393 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
21394 | fi |
21395 | done | |
21396 | # Screen out bogus values from the imake configuration. They are | |
21397 | # bogus both because they are the default anyway, and because | |
21398 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 21399 | case $ac_im_incroot in |
c906108c | 21400 | /usr/include) ;; |
bec39cab | 21401 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 21402 | esac |
bec39cab | 21403 | case $ac_im_usrlibdir in |
c906108c | 21404 | /usr/lib | /lib) ;; |
bec39cab | 21405 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
21406 | esac |
21407 | fi | |
21408 | cd .. | |
bec39cab | 21409 | rm -fr conftest.dir |
c906108c SS |
21410 | fi |
21411 | ||
bec39cab AC |
21412 | # Standard set of common directories for X headers. |
21413 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21414 | ac_x_header_dirs=' | |
21415 | /usr/X11/include | |
21416 | /usr/X11R6/include | |
21417 | /usr/X11R5/include | |
21418 | /usr/X11R4/include | |
21419 | ||
21420 | /usr/include/X11 | |
21421 | /usr/include/X11R6 | |
21422 | /usr/include/X11R5 | |
21423 | /usr/include/X11R4 | |
21424 | ||
21425 | /usr/local/X11/include | |
21426 | /usr/local/X11R6/include | |
21427 | /usr/local/X11R5/include | |
21428 | /usr/local/X11R4/include | |
21429 | ||
21430 | /usr/local/include/X11 | |
21431 | /usr/local/include/X11R6 | |
21432 | /usr/local/include/X11R5 | |
21433 | /usr/local/include/X11R4 | |
21434 | ||
21435 | /usr/X386/include | |
21436 | /usr/x386/include | |
21437 | /usr/XFree86/include/X11 | |
21438 | ||
21439 | /usr/include | |
21440 | /usr/local/include | |
21441 | /usr/unsupported/include | |
21442 | /usr/athena/include | |
21443 | /usr/local/x11r5/include | |
21444 | /usr/lpp/Xamples/include | |
21445 | ||
21446 | /usr/openwin/include | |
21447 | /usr/openwin/share/include' | |
21448 | ||
21449 | if test "$ac_x_includes" = no; then | |
21450 | # Guess where to find include files, by looking for Intrinsic.h. | |
c906108c | 21451 | # First, try using that file with no special directory specified. |
bec39cab AC |
21452 | cat >conftest.$ac_ext <<_ACEOF |
21453 | /* confdefs.h. */ | |
21454 | _ACEOF | |
21455 | cat confdefs.h >>conftest.$ac_ext | |
21456 | cat >>conftest.$ac_ext <<_ACEOF | |
21457 | /* end confdefs.h. */ | |
21458 | #include <X11/Intrinsic.h> | |
21459 | _ACEOF | |
21460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21462 | ac_status=$? | |
21463 | grep -v '^ *+' conftest.er1 >conftest.err | |
21464 | rm -f conftest.er1 | |
21465 | cat conftest.err >&5 | |
21466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21467 | (exit $ac_status); } >/dev/null; then | |
21468 | if test -s conftest.err; then | |
21469 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21470 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21471 | else | |
21472 | ac_cpp_err= | |
21473 | fi | |
21474 | else | |
21475 | ac_cpp_err=yes | |
21476 | fi | |
21477 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
21478 | # We can compile using X headers with no special include directory. |
21479 | ac_x_includes= | |
21480 | else | |
bec39cab AC |
21481 | echo "$as_me: failed program was:" >&5 |
21482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21483 | ||
21484 | for ac_dir in $ac_x_header_dirs; do | |
21485 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
21486 | ac_x_includes=$ac_dir | |
21487 | break | |
21488 | fi | |
21489 | done | |
c906108c | 21490 | fi |
bec39cab AC |
21491 | rm -f conftest.err conftest.$ac_ext |
21492 | fi # $ac_x_includes = no | |
c906108c | 21493 | |
bec39cab | 21494 | if test "$ac_x_libraries" = no; then |
c906108c | 21495 | # Check for the libraries. |
c906108c SS |
21496 | # See if we find them without any special options. |
21497 | # Don't add to $LIBS permanently. | |
bec39cab AC |
21498 | ac_save_LIBS=$LIBS |
21499 | LIBS="-lXt $LIBS" | |
21500 | cat >conftest.$ac_ext <<_ACEOF | |
21501 | /* confdefs.h. */ | |
21502 | _ACEOF | |
21503 | cat confdefs.h >>conftest.$ac_ext | |
21504 | cat >>conftest.$ac_ext <<_ACEOF | |
21505 | /* end confdefs.h. */ | |
21506 | #include <X11/Intrinsic.h> | |
21507 | int | |
21508 | main () | |
21509 | { | |
21510 | XtMalloc (0) | |
21511 | ; | |
21512 | return 0; | |
21513 | } | |
21514 | _ACEOF | |
21515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21517 | (eval $ac_link) 2>conftest.er1 | |
21518 | ac_status=$? | |
21519 | grep -v '^ *+' conftest.er1 >conftest.err | |
21520 | rm -f conftest.er1 | |
21521 | cat conftest.err >&5 | |
21522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21523 | (exit $ac_status); } && | |
21524 | { ac_try='test -z "$ac_c_werror_flag" | |
21525 | || test ! -s conftest.err' | |
21526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21527 | (eval $ac_try) 2>&5 | |
21528 | ac_status=$? | |
21529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21530 | (exit $ac_status); }; } && | |
21531 | { ac_try='test -s conftest$ac_exeext' | |
21532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21533 | (eval $ac_try) 2>&5 | |
21534 | ac_status=$? | |
21535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21536 | (exit $ac_status); }; }; then | |
21537 | LIBS=$ac_save_LIBS | |
c906108c SS |
21538 | # We can link X programs with no special library path. |
21539 | ac_x_libraries= | |
21540 | else | |
bec39cab AC |
21541 | echo "$as_me: failed program was:" >&5 |
21542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21543 | ||
21544 | LIBS=$ac_save_LIBS | |
21545 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
c906108c | 21546 | do |
bec39cab | 21547 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 21548 | for ac_extension in a so sl; do |
bec39cab | 21549 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
21550 | ac_x_libraries=$ac_dir |
21551 | break 2 | |
21552 | fi | |
21553 | done | |
21554 | done | |
21555 | fi | |
bec39cab AC |
21556 | rm -f conftest.err conftest.$ac_objext \ |
21557 | conftest$ac_exeext conftest.$ac_ext | |
21558 | fi # $ac_x_libraries = no | |
c906108c | 21559 | |
bec39cab | 21560 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
21561 | # Didn't find X anywhere. Cache the known absence of X. |
21562 | ac_cv_have_x="have_x=no" | |
21563 | else | |
21564 | # Record where we found X for the cache. | |
21565 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 21566 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
21567 | fi |
21568 | fi | |
bec39cab | 21569 | |
c906108c SS |
21570 | fi |
21571 | eval "$ac_cv_have_x" | |
21572 | fi # $with_x != no | |
21573 | ||
21574 | if test "$have_x" != yes; then | |
bec39cab AC |
21575 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21576 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
21577 | no_x=yes |
21578 | else | |
21579 | # If each of the values was on the command line, it overrides each guess. | |
21580 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21581 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21582 | # Update the cache value to reflect the command line values. | |
21583 | ac_cv_have_x="have_x=yes \ | |
21584 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
bec39cab AC |
21585 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21586 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
21587 | fi |
21588 | ||
21589 | ||
9cc52bde MK |
21590 | # Check whether we should enable the TUI, but only do so if we really |
21591 | # can. | |
21592 | if test x"$enable_tui" = xyes; then | |
21593 | if test -d $srcdir/tui; then | |
21594 | if test "$ac_cv_search_waddstr" != no; then | |
21595 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
21596 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
21597 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
21598 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
21599 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
21600 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
21601 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
21602 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
21603 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
21604 | else | |
bec39cab AC |
21605 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
21606 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
21607 | fi |
21608 | fi | |
21609 | fi | |
21610 | ||
bec39cab AC |
21611 | # Unlike the sim directory, whether a simulator is linked is controlled by |
21612 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
21613 | # This code just checks for a few cases where we'd like to ignore those |
21614 | # definitions, even when they're present in the '.mt' file. These cases | |
21615 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 21616 | # not part of the source tree. |
7a292a7a SS |
21617 | # |
21618 | # Check whether --enable-sim or --disable-sim was given. | |
21619 | if test "${enable_sim+set}" = set; then | |
21620 | enableval="$enable_sim" | |
21621 | echo "enable_sim = $enable_sim"; | |
21622 | echo "enableval = ${enableval}"; | |
21623 | case "${enableval}" in | |
21624 | yes) ignore_sim=false ;; | |
21625 | no) ignore_sim=true ;; | |
21626 | *) ignore_sim=false ;; | |
21627 | esac | |
21628 | else | |
21629 | ignore_sim=false | |
bec39cab | 21630 | fi; |
7a292a7a SS |
21631 | |
21632 | if test ! -d "${srcdir}/../sim"; then | |
21633 | ignore_sim=true | |
21634 | fi | |
21635 | ||
21636 | if test "${ignore_sim}" = "true"; then | |
21637 | IGNORE_SIM="SIM=" | |
21638 | IGNORE_SIM_OBS="SIM_OBS=" | |
21639 | else | |
21640 | IGNORE_SIM="" | |
21641 | IGNORE_SIM_OBS="" | |
60ca704f SE |
21642 | |
21643 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 21644 | #define WITH_SIM 1 |
bec39cab | 21645 | _ACEOF |
7a292a7a SS |
21646 | |
21647 | fi | |
21648 | ||
21649 | ||
21650 | ||
c906108c SS |
21651 | |
21652 | ||
21653 | ||
21654 | ||
21655 | ||
21656 | ||
dfcd3bfb | 21657 | |
e56ac5c3 AC |
21658 | |
21659 | ||
b3a90332 AC |
21660 | |
21661 | ||
c35f4ffc | 21662 | # List of host floatformats. |
bec39cab AC |
21663 | |
21664 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21665 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 21666 | _ACEOF |
c35f4ffc | 21667 | |
bec39cab AC |
21668 | |
21669 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21670 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
21671 | _ACEOF |
21672 | ||
c35f4ffc | 21673 | |
bec39cab | 21674 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 21675 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 21676 | _ACEOF |
c35f4ffc AC |
21677 | |
21678 | ||
c906108c SS |
21679 | # target_subdir is used by the testsuite to find the target libraries. |
21680 | target_subdir= | |
21681 | if test "${host}" != "${target}"; then | |
21682 | target_subdir="${target_alias}/" | |
21683 | fi | |
21684 | ||
21685 | ||
21686 | frags= | |
0dad8a66 MK |
21687 | if test "${target}" = "${host}"; then |
21688 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh | |
21689 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
21690 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
21691 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
21692 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
21693 | fi |
21694 | frags="$frags $host_makefile_frag" | |
21695 | else | |
21696 | host_makefile_frag=/dev/null | |
c906108c | 21697 | fi |
c906108c SS |
21698 | |
21699 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
21700 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
21701 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
21702 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
21703 | { (exit 1); exit 1; }; } | |
c906108c SS |
21704 | fi |
21705 | frags="$frags $target_makefile_frag" | |
21706 | ||
21707 | ||
21708 | ||
21709 | ||
21710 | ||
21711 | hostfile=`sed -n ' | |
21712 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
21713 | ' ${host_makefile_frag}` | |
21714 | ||
21715 | targetfile=`sed -n ' | |
2c0fc042 | 21716 | s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
21717 | ' ${target_makefile_frag}` |
21718 | ||
c906108c | 21719 | if test "${target}" = "${host}"; then |
a85f51e7 DJ |
21720 | # We pick this up from the host configuration file (.mh) because we |
21721 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
21722 | nativefile=`sed -n ' |
21723 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
21724 | ' ${host_makefile_frag}` | |
c906108c SS |
21725 | fi |
21726 | ||
21727 | ||
b00a8037 | 21728 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
21729 | |
21730 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 21731 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 21732 | _ACEOF |
b00a8037 DJ |
21733 | |
21734 | fi | |
21735 | ||
8dcde887 MK |
21736 | # Enable multi-ice-gdb-server. |
21737 | # Check whether --enable-multi-ice or --disable-multi-ice was given. | |
21738 | if test "${enable_multi_ice+set}" = set; then | |
21739 | enableval="$enable_multi_ice" | |
21740 | case $enableval in | |
21741 | yes | no) | |
21742 | ;; | |
bec39cab AC |
21743 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
21744 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
21745 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 21746 | esac |
bec39cab | 21747 | fi; |
8dcde887 | 21748 | if test "x$enable_multi_ice" = xyes; then |
bec39cab AC |
21749 | |
21750 | ||
21751 | subdirs="$subdirs multi-ice" | |
3ace7edb | 21752 | |
a85f51e7 DJ |
21753 | fi |
21754 | ||
8dcde887 MK |
21755 | # We only build gdbserver automatically if host and target are the same. |
21756 | if test "x$target" = "x$host"; then | |
bec39cab AC |
21757 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
21758 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 21759 | if test "x$build_gdbserver" = xyes; then |
bec39cab AC |
21760 | echo "$as_me:$LINENO: result: yes" >&5 |
21761 | echo "${ECHO_T}yes" >&6 | |
21762 | ||
21763 | ||
21764 | subdirs="$subdirs gdbserver" | |
3ace7edb | 21765 | |
8dcde887 | 21766 | else |
bec39cab AC |
21767 | echo "$as_me:$LINENO: result: no" >&5 |
21768 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
21769 | fi |
21770 | fi | |
21771 | ||
065a1afc JB |
21772 | # We configure the nlm subdirectory on netware targets, as instructed |
21773 | # by configure.tgt. | |
21774 | if test "x$build_nlm" = xyes; then | |
21775 | ||
21776 | ||
21777 | subdirs="$subdirs nlm" | |
21778 | ||
21779 | fi | |
21780 | ||
2c0fc042 AC |
21781 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
21782 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
21783 | # to an empty version. | |
c906108c SS |
21784 | |
21785 | files= | |
21786 | links= | |
5a2402b8 | 21787 | |
c906108c | 21788 | rm -f xm.h |
5a2402b8 | 21789 | xm_h="" |
c906108c | 21790 | if test "${hostfile}" != ""; then |
5a2402b8 | 21791 | xm_h=xm.h |
0f475e27 AC |
21792 | case "${hostfile}" in |
21793 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
21794 | * ) GDB_XM_FILE="${hostfile}" | |
21795 | esac | |
5a2402b8 AC |
21796 | files="${files} ${GDB_XM_FILE}" |
21797 | links="${links} xm.h" | |
60ca704f SE |
21798 | |
21799 | cat >>confdefs.h <<_ACEOF | |
b78960be | 21800 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 21801 | _ACEOF |
5a2402b8 | 21802 | |
c906108c | 21803 | fi |
5a2402b8 AC |
21804 | |
21805 | ||
c906108c | 21806 | rm -f tm.h |
5a2402b8 | 21807 | tm_h="" |
c906108c | 21808 | if test "${targetfile}" != ""; then |
5a2402b8 | 21809 | tm_h=tm.h |
0f475e27 | 21810 | case "${targetfile}" in |
b8c4aece | 21811 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
21812 | * ) GDB_TM_FILE="${targetfile}" |
21813 | esac | |
5a2402b8 AC |
21814 | files="${files} ${GDB_TM_FILE}" |
21815 | links="${links} tm.h" | |
60ca704f SE |
21816 | |
21817 | cat >>confdefs.h <<_ACEOF | |
b78960be | 21818 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 21819 | _ACEOF |
5a2402b8 | 21820 | |
c906108c | 21821 | fi |
5a2402b8 AC |
21822 | |
21823 | ||
c906108c | 21824 | rm -f nm.h |
5a2402b8 | 21825 | nm_h="" |
c906108c | 21826 | if test "${nativefile}" != ""; then |
5a2402b8 | 21827 | nm_h=nm.h |
0f475e27 AC |
21828 | case "${nativefile}" in |
21829 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
21830 | * ) GDB_NM_FILE="${nativefile}" | |
21831 | esac | |
5a2402b8 AC |
21832 | files="${files} ${GDB_NM_FILE}" |
21833 | links="${links} nm.h" | |
60ca704f SE |
21834 | |
21835 | cat >>confdefs.h <<_ACEOF | |
b78960be | 21836 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 21837 | _ACEOF |
5a2402b8 | 21838 | |
c906108c | 21839 | fi |
5a2402b8 AC |
21840 | |
21841 | ||
bec39cab AC |
21842 | ac_sources="$files" |
21843 | ac_dests="$links" | |
21844 | while test -n "$ac_sources"; do | |
21845 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
21846 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
21847 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
21848 | done | |
21849 | ac_config_links="$ac_config_links $ac_config_links_1" | |
c906108c SS |
21850 | |
21851 | ||
c906108c SS |
21852 | |
21853 | ||
c906108c | 21854 | |
c906108c | 21855 | |
bec39cab AC |
21856 | cat >>confdefs.h <<\_ACEOF |
21857 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
21858 | _ACEOF | |
c906108c | 21859 | |
234b45d4 | 21860 | |
234b45d4 KB |
21861 | |
21862 | ||
21863 | ||
bec39cab | 21864 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 KB |
21865 | if test "${with_libiconv_prefix+set}" = set; then |
21866 | withval="$with_libiconv_prefix" | |
bec39cab | 21867 | |
234b45d4 KB |
21868 | for dir in `echo "$withval" | tr : ' '`; do |
21869 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
21870 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
21871 | done | |
234b45d4 | 21872 | |
bec39cab | 21873 | fi; |
234b45d4 | 21874 | |
bec39cab AC |
21875 | echo "$as_me:$LINENO: checking for iconv" >&5 |
21876 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
21877 | if test "${am_cv_func_iconv+set}" = set; then | |
21878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 21879 | else |
bec39cab | 21880 | |
234b45d4 KB |
21881 | am_cv_func_iconv="no, consider installing GNU libiconv" |
21882 | am_cv_lib_iconv=no | |
bec39cab AC |
21883 | cat >conftest.$ac_ext <<_ACEOF |
21884 | /* confdefs.h. */ | |
21885 | _ACEOF | |
21886 | cat confdefs.h >>conftest.$ac_ext | |
21887 | cat >>conftest.$ac_ext <<_ACEOF | |
21888 | /* end confdefs.h. */ | |
234b45d4 KB |
21889 | #include <stdlib.h> |
21890 | #include <iconv.h> | |
bec39cab AC |
21891 | int |
21892 | main () | |
21893 | { | |
234b45d4 KB |
21894 | iconv_t cd = iconv_open("",""); |
21895 | iconv(cd,NULL,NULL,NULL,NULL); | |
21896 | iconv_close(cd); | |
bec39cab AC |
21897 | ; |
21898 | return 0; | |
21899 | } | |
21900 | _ACEOF | |
21901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21903 | (eval $ac_link) 2>conftest.er1 | |
21904 | ac_status=$? | |
21905 | grep -v '^ *+' conftest.er1 >conftest.err | |
21906 | rm -f conftest.er1 | |
21907 | cat conftest.err >&5 | |
21908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21909 | (exit $ac_status); } && | |
21910 | { ac_try='test -z "$ac_c_werror_flag" | |
21911 | || test ! -s conftest.err' | |
21912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21913 | (eval $ac_try) 2>&5 | |
21914 | ac_status=$? | |
21915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21916 | (exit $ac_status); }; } && | |
21917 | { ac_try='test -s conftest$ac_exeext' | |
21918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21919 | (eval $ac_try) 2>&5 | |
21920 | ac_status=$? | |
21921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21922 | (exit $ac_status); }; }; then | |
234b45d4 KB |
21923 | am_cv_func_iconv=yes |
21924 | else | |
bec39cab AC |
21925 | echo "$as_me: failed program was:" >&5 |
21926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21927 | ||
234b45d4 | 21928 | fi |
bec39cab AC |
21929 | rm -f conftest.err conftest.$ac_objext \ |
21930 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
21931 | if test "$am_cv_func_iconv" != yes; then |
21932 | am_save_LIBS="$LIBS" | |
21933 | LIBS="$LIBS -liconv" | |
bec39cab AC |
21934 | cat >conftest.$ac_ext <<_ACEOF |
21935 | /* confdefs.h. */ | |
21936 | _ACEOF | |
21937 | cat confdefs.h >>conftest.$ac_ext | |
21938 | cat >>conftest.$ac_ext <<_ACEOF | |
21939 | /* end confdefs.h. */ | |
234b45d4 KB |
21940 | #include <stdlib.h> |
21941 | #include <iconv.h> | |
bec39cab AC |
21942 | int |
21943 | main () | |
21944 | { | |
234b45d4 KB |
21945 | iconv_t cd = iconv_open("",""); |
21946 | iconv(cd,NULL,NULL,NULL,NULL); | |
21947 | iconv_close(cd); | |
bec39cab AC |
21948 | ; |
21949 | return 0; | |
21950 | } | |
21951 | _ACEOF | |
21952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21954 | (eval $ac_link) 2>conftest.er1 | |
21955 | ac_status=$? | |
21956 | grep -v '^ *+' conftest.er1 >conftest.err | |
21957 | rm -f conftest.er1 | |
21958 | cat conftest.err >&5 | |
21959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21960 | (exit $ac_status); } && | |
21961 | { ac_try='test -z "$ac_c_werror_flag" | |
21962 | || test ! -s conftest.err' | |
21963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21964 | (eval $ac_try) 2>&5 | |
21965 | ac_status=$? | |
21966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21967 | (exit $ac_status); }; } && | |
21968 | { ac_try='test -s conftest$ac_exeext' | |
21969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21970 | (eval $ac_try) 2>&5 | |
21971 | ac_status=$? | |
21972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21973 | (exit $ac_status); }; }; then | |
234b45d4 KB |
21974 | am_cv_lib_iconv=yes |
21975 | am_cv_func_iconv=yes | |
21976 | else | |
bec39cab AC |
21977 | echo "$as_me: failed program was:" >&5 |
21978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21979 | ||
234b45d4 | 21980 | fi |
bec39cab AC |
21981 | rm -f conftest.err conftest.$ac_objext \ |
21982 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
21983 | LIBS="$am_save_LIBS" |
21984 | fi | |
bec39cab AC |
21985 | |
21986 | fi | |
21987 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
21988 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
21989 | if test "$am_cv_func_iconv" = yes; then | |
21990 | ||
21991 | cat >>confdefs.h <<\_ACEOF | |
21992 | #define HAVE_ICONV 1 | |
21993 | _ACEOF | |
21994 | ||
21995 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 | |
21996 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
21997 | if test "${am_cv_proto_iconv+set}" = set; then | |
21998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21999 | else | |
22000 | ||
22001 | cat >conftest.$ac_ext <<_ACEOF | |
22002 | /* confdefs.h. */ | |
22003 | _ACEOF | |
22004 | cat confdefs.h >>conftest.$ac_ext | |
22005 | cat >>conftest.$ac_ext <<_ACEOF | |
22006 | /* end confdefs.h. */ | |
22007 | ||
22008 | #include <stdlib.h> | |
22009 | #include <iconv.h> | |
22010 | extern | |
22011 | #ifdef __cplusplus | |
22012 | "C" | |
22013 | #endif | |
22014 | #if defined(__STDC__) || defined(__cplusplus) | |
22015 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
22016 | #else | |
22017 | size_t iconv(); | |
22018 | #endif | |
22019 | ||
22020 | int | |
22021 | main () | |
22022 | { | |
22023 | ||
22024 | ; | |
22025 | return 0; | |
22026 | } | |
22027 | _ACEOF | |
22028 | rm -f conftest.$ac_objext | |
22029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22030 | (eval $ac_compile) 2>conftest.er1 | |
22031 | ac_status=$? | |
22032 | grep -v '^ *+' conftest.er1 >conftest.err | |
22033 | rm -f conftest.er1 | |
22034 | cat conftest.err >&5 | |
22035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22036 | (exit $ac_status); } && | |
22037 | { ac_try='test -z "$ac_c_werror_flag" | |
22038 | || test ! -s conftest.err' | |
22039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22040 | (eval $ac_try) 2>&5 | |
22041 | ac_status=$? | |
22042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22043 | (exit $ac_status); }; } && | |
22044 | { ac_try='test -s conftest.$ac_objext' | |
22045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22046 | (eval $ac_try) 2>&5 | |
22047 | ac_status=$? | |
22048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22049 | (exit $ac_status); }; }; then | |
22050 | am_cv_proto_iconv_arg1="" | |
22051 | else | |
22052 | echo "$as_me: failed program was:" >&5 | |
22053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22054 | ||
22055 | am_cv_proto_iconv_arg1="const" | |
22056 | fi | |
22057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22058 | 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);" | |
22059 | fi | |
22060 | ||
22061 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
22062 | echo "$as_me:$LINENO: result: ${ac_t:- | |
22063 | }$am_cv_proto_iconv" >&5 | |
22064 | echo "${ECHO_T}${ac_t:- | |
22065 | }$am_cv_proto_iconv" >&6 | |
22066 | ||
22067 | cat >>confdefs.h <<_ACEOF | |
22068 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
22069 | _ACEOF | |
22070 | ||
22071 | fi | |
22072 | LIBICONV= | |
22073 | if test "$am_cv_lib_iconv" = yes; then | |
22074 | LIBICONV="-liconv" | |
22075 | fi | |
22076 | ||
22077 | ||
22078 | ||
22079 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" | |
22080 | ac_config_commands="$ac_config_commands default" | |
22081 | cat >confcache <<\_ACEOF | |
22082 | # This file is a shell script that caches the results of configure | |
22083 | # tests run on this system so they can be shared between configure | |
22084 | # scripts and configure runs, see configure's option --config-cache. | |
22085 | # It is not useful on other systems. If it contains results you don't | |
22086 | # want to keep, you may remove or edit it. | |
22087 | # | |
22088 | # config.status only pays attention to the cache file if you give it | |
22089 | # the --recheck option to rerun configure. | |
22090 | # | |
22091 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
22092 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
22093 | # following values. | |
22094 | ||
22095 | _ACEOF | |
22096 | ||
22097 | # The following way of writing the cache mishandles newlines in values, | |
22098 | # but we know of no workaround that is simple, portable, and efficient. | |
22099 | # So, don't put newlines in cache variables' values. | |
22100 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22101 | # and sets the high bit in the cache file unless we assign to the vars. | |
22102 | { | |
22103 | (set) 2>&1 | | |
22104 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22105 | *ac_space=\ *) | |
22106 | # `set' does not quote correctly, so add quotes (double-quote | |
22107 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
22108 | sed -n \ | |
22109 | "s/'/'\\\\''/g; | |
22110 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
22111 | ;; | |
22112 | *) | |
22113 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22114 | sed -n \ | |
22115 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
22116 | ;; | |
22117 | esac; | |
22118 | } | | |
22119 | sed ' | |
22120 | t clear | |
22121 | : clear | |
22122 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
22123 | t end | |
22124 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
22125 | : end' >>confcache | |
22126 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
22127 | if test -w $cache_file; then | |
22128 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
22129 | cat confcache >$cache_file | |
22130 | else | |
22131 | echo "not updating unwritable cache $cache_file" | |
22132 | fi | |
22133 | fi | |
22134 | rm -f confcache | |
22135 | ||
22136 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
22137 | # Let make expand exec_prefix. | |
22138 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22139 | ||
22140 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
22141 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
22142 | # trailing colons and then remove the whole line if VPATH becomes empty | |
22143 | # (actually we leave an empty line to preserve line numbers). | |
22144 | if test "x$srcdir" = x.; then | |
22145 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
22146 | s/:*\$(srcdir):*/:/; | |
22147 | s/:*\${srcdir}:*/:/; | |
22148 | s/:*@srcdir@:*/:/; | |
22149 | s/^\([^=]*=[ ]*\):*/\1/; | |
22150 | s/:*$//; | |
22151 | s/^[^=]*=[ ]*$//; | |
22152 | }' | |
22153 | fi | |
22154 | ||
22155 | DEFS=-DHAVE_CONFIG_H | |
22156 | ||
22157 | ac_libobjs= | |
22158 | ac_ltlibobjs= | |
22159 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
22160 | # 1. Remove the extension, and $U if already installed. | |
22161 | ac_i=`echo "$ac_i" | | |
22162 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
22163 | # 2. Add them. | |
22164 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
22165 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
22166 | done | |
22167 | LIBOBJS=$ac_libobjs | |
22168 | ||
22169 | LTLIBOBJS=$ac_ltlibobjs | |
22170 | ||
22171 | ||
85981d60 AC |
22172 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22173 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
22174 | Usually this means the macro was only invoked conditionally." >&5 | |
22175 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
22176 | Usually this means the macro was only invoked conditionally." >&2;} | |
22177 | { (exit 1); exit 1; }; } | |
22178 | fi | |
bec39cab AC |
22179 | |
22180 | : ${CONFIG_STATUS=./config.status} | |
22181 | ac_clean_files_save=$ac_clean_files | |
22182 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
22183 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
22184 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
22185 | cat >$CONFIG_STATUS <<_ACEOF | |
22186 | #! $SHELL | |
22187 | # Generated by $as_me. | |
22188 | # Run this file to recreate the current configuration. | |
22189 | # Compiler output produced by configure, useful for debugging | |
22190 | # configure, is in config.log if it exists. | |
22191 | ||
22192 | debug=false | |
22193 | ac_cs_recheck=false | |
22194 | ac_cs_silent=false | |
22195 | SHELL=\${CONFIG_SHELL-$SHELL} | |
22196 | _ACEOF | |
22197 | ||
22198 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22199 | ## --------------------- ## | |
22200 | ## M4sh Initialization. ## | |
22201 | ## --------------------- ## | |
22202 | ||
22203 | # Be Bourne compatible | |
22204 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
22205 | emulate sh | |
22206 | NULLCMD=: | |
22207 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
22208 | # is contrary to our usage. Disable this feature. | |
22209 | alias -g '${1+"$@"}'='"$@"' | |
22210 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
22211 | set -o posix | |
22212 | fi | |
22213 | DUALCASE=1; export DUALCASE # for MKS sh | |
22214 | ||
22215 | # Support unset when possible. | |
22216 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
22217 | as_unset=unset | |
22218 | else | |
22219 | as_unset=false | |
22220 | fi | |
22221 | ||
22222 | ||
22223 | # Work around bugs in pre-3.0 UWIN ksh. | |
22224 | $as_unset ENV MAIL MAILPATH | |
22225 | PS1='$ ' | |
22226 | PS2='> ' | |
22227 | PS4='+ ' | |
22228 | ||
22229 | # NLS nuisances. | |
22230 | for as_var in \ | |
22231 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
22232 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
22233 | LC_TELEPHONE LC_TIME | |
22234 | do | |
22235 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
22236 | eval $as_var=C; export $as_var | |
22237 | else | |
22238 | $as_unset $as_var | |
22239 | fi | |
22240 | done | |
22241 | ||
22242 | # Required to use basename. | |
22243 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
22244 | as_expr=expr | |
22245 | else | |
22246 | as_expr=false | |
22247 | fi | |
22248 | ||
22249 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
22250 | as_basename=basename | |
22251 | else | |
22252 | as_basename=false | |
22253 | fi | |
22254 | ||
22255 | ||
22256 | # Name of the executable. | |
22257 | as_me=`$as_basename "$0" || | |
22258 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
22259 | X"$0" : 'X\(//\)$' \| \ | |
22260 | X"$0" : 'X\(/\)$' \| \ | |
22261 | . : '\(.\)' 2>/dev/null || | |
22262 | echo X/"$0" | | |
22263 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
22264 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
22265 | /^X\/\(\/\).*/{ s//\1/; q; } | |
22266 | s/.*/./; q'` | |
22267 | ||
22268 | ||
22269 | # PATH needs CR, and LINENO needs CR and PATH. | |
22270 | # Avoid depending upon Character Ranges. | |
22271 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
22272 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
22273 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
22274 | as_cr_digits='0123456789' | |
22275 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
22276 | ||
22277 | # The user is always right. | |
22278 | if test "${PATH_SEPARATOR+set}" != set; then | |
22279 | echo "#! /bin/sh" >conf$$.sh | |
22280 | echo "exit 0" >>conf$$.sh | |
22281 | chmod +x conf$$.sh | |
22282 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
22283 | PATH_SEPARATOR=';' | |
22284 | else | |
22285 | PATH_SEPARATOR=: | |
22286 | fi | |
22287 | rm -f conf$$.sh | |
22288 | fi | |
22289 | ||
22290 | ||
22291 | as_lineno_1=$LINENO | |
22292 | as_lineno_2=$LINENO | |
22293 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
22294 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
22295 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
22296 | # Find who we are. Look in the path if we contain no path at all | |
22297 | # relative or not. | |
22298 | case $0 in | |
22299 | *[\\/]* ) as_myself=$0 ;; | |
22300 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22301 | for as_dir in $PATH | |
22302 | do | |
22303 | IFS=$as_save_IFS | |
22304 | test -z "$as_dir" && as_dir=. | |
22305 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
22306 | done | |
22307 | ||
22308 | ;; | |
22309 | esac | |
22310 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
22311 | # in which case we are not to be found in the path. | |
22312 | if test "x$as_myself" = x; then | |
22313 | as_myself=$0 | |
22314 | fi | |
22315 | if test ! -f "$as_myself"; then | |
22316 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
22317 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
22318 | { (exit 1); exit 1; }; } | |
22319 | fi | |
22320 | case $CONFIG_SHELL in | |
22321 | '') | |
22322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22323 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
22324 | do | |
22325 | IFS=$as_save_IFS | |
22326 | test -z "$as_dir" && as_dir=. | |
22327 | for as_base in sh bash ksh sh5; do | |
22328 | case $as_dir in | |
22329 | /*) | |
22330 | if ("$as_dir/$as_base" -c ' | |
22331 | as_lineno_1=$LINENO | |
22332 | as_lineno_2=$LINENO | |
22333 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
22334 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
22335 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
22336 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
22337 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
22338 | CONFIG_SHELL=$as_dir/$as_base | |
22339 | export CONFIG_SHELL | |
22340 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
22341 | fi;; | |
22342 | esac | |
22343 | done | |
22344 | done | |
22345 | ;; | |
22346 | esac | |
22347 | ||
22348 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
22349 | # uniformly replaced by the line number. The first 'sed' inserts a | |
22350 | # line-number line before each line; the second 'sed' does the real | |
22351 | # work. The second script uses 'N' to pair each line-number line | |
22352 | # with the numbered line, and appends trailing '-' during | |
22353 | # substitution so that $LINENO is not a special case at line end. | |
22354 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
22355 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
22356 | sed '=' <$as_myself | | |
22357 | sed ' | |
22358 | N | |
22359 | s,$,-, | |
22360 | : loop | |
22361 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
22362 | t loop | |
22363 | s,-$,, | |
22364 | s,^['$as_cr_digits']*\n,, | |
22365 | ' >$as_me.lineno && | |
22366 | chmod +x $as_me.lineno || | |
22367 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
22368 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
22369 | { (exit 1); exit 1; }; } | |
22370 | ||
22371 | # Don't try to exec as it changes $[0], causing all sort of problems | |
22372 | # (the dirname of $[0] is not the place where we might find the | |
22373 | # original and so on. Autoconf is especially sensible to this). | |
22374 | . ./$as_me.lineno | |
22375 | # Exit status is that of the last command. | |
22376 | exit | |
22377 | } | |
22378 | ||
22379 | ||
22380 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
22381 | *c*,-n*) ECHO_N= ECHO_C=' | |
22382 | ' ECHO_T=' ' ;; | |
22383 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
22384 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
22385 | esac | |
22386 | ||
22387 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
22388 | as_expr=expr | |
22389 | else | |
22390 | as_expr=false | |
22391 | fi | |
22392 | ||
22393 | rm -f conf$$ conf$$.exe conf$$.file | |
22394 | echo >conf$$.file | |
22395 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
22396 | # We could just check for DJGPP; but this test a) works b) is more generic | |
22397 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
22398 | if test -f conf$$.exe; then | |
22399 | # Don't use ln at all; we don't have any links | |
22400 | as_ln_s='cp -p' | |
22401 | else | |
22402 | as_ln_s='ln -s' | |
22403 | fi | |
22404 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
22405 | as_ln_s=ln | |
22406 | else | |
22407 | as_ln_s='cp -p' | |
22408 | fi | |
22409 | rm -f conf$$ conf$$.exe conf$$.file | |
22410 | ||
22411 | if mkdir -p . 2>/dev/null; then | |
22412 | as_mkdir_p=: | |
22413 | else | |
22414 | test -d ./-p && rmdir ./-p | |
22415 | as_mkdir_p=false | |
22416 | fi | |
22417 | ||
22418 | as_executable_p="test -f" | |
22419 | ||
22420 | # Sed expression to map a string onto a valid CPP name. | |
22421 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22422 | ||
22423 | # Sed expression to map a string onto a valid variable name. | |
22424 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22425 | ||
22426 | ||
22427 | # IFS | |
22428 | # We need space, tab and new line, in precisely that order. | |
22429 | as_nl=' | |
22430 | ' | |
22431 | IFS=" $as_nl" | |
22432 | ||
22433 | # CDPATH. | |
22434 | $as_unset CDPATH | |
22435 | ||
22436 | exec 6>&1 | |
22437 | ||
22438 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
22439 | # report actual input values of CONFIG_FILES etc. instead of their | |
22440 | # values after options handling. Logging --version etc. is OK. | |
22441 | exec 5>>config.log | |
22442 | { | |
22443 | echo | |
22444 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22445 | ## Running $as_me. ## | |
22446 | _ASBOX | |
22447 | } >&5 | |
22448 | cat >&5 <<_CSEOF | |
22449 | ||
22450 | This file was extended by $as_me, which was | |
22451 | generated by GNU Autoconf 2.59. Invocation command line was | |
22452 | ||
22453 | CONFIG_FILES = $CONFIG_FILES | |
22454 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22455 | CONFIG_LINKS = $CONFIG_LINKS | |
22456 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22457 | $ $0 $@ | |
22458 | ||
22459 | _CSEOF | |
22460 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
22461 | echo >&5 | |
22462 | _ACEOF | |
22463 | ||
22464 | # Files that config.status was made for. | |
22465 | if test -n "$ac_config_files"; then | |
22466 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
22467 | fi | |
22468 | ||
22469 | if test -n "$ac_config_headers"; then | |
22470 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
22471 | fi | |
22472 | ||
22473 | if test -n "$ac_config_links"; then | |
22474 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
234b45d4 KB |
22475 | fi |
22476 | ||
bec39cab AC |
22477 | if test -n "$ac_config_commands"; then |
22478 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
22479 | fi | |
234b45d4 | 22480 | |
bec39cab | 22481 | cat >>$CONFIG_STATUS <<\_ACEOF |
234b45d4 | 22482 | |
bec39cab AC |
22483 | ac_cs_usage="\ |
22484 | \`$as_me' instantiates files from templates according to the | |
22485 | current configuration. | |
234b45d4 | 22486 | |
bec39cab | 22487 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 22488 | |
bec39cab AC |
22489 | -h, --help print this help, then exit |
22490 | -V, --version print version number, then exit | |
22491 | -q, --quiet do not print progress messages | |
22492 | -d, --debug don't remove temporary files | |
22493 | --recheck update $as_me by reconfiguring in the same conditions | |
22494 | --file=FILE[:TEMPLATE] | |
22495 | instantiate the configuration file FILE | |
22496 | --header=FILE[:TEMPLATE] | |
22497 | instantiate the configuration header FILE | |
234b45d4 | 22498 | |
bec39cab AC |
22499 | Configuration files: |
22500 | $config_files | |
234b45d4 | 22501 | |
bec39cab AC |
22502 | Configuration headers: |
22503 | $config_headers | |
234b45d4 | 22504 | |
bec39cab AC |
22505 | Configuration links: |
22506 | $config_links | |
234b45d4 | 22507 | |
bec39cab AC |
22508 | Configuration commands: |
22509 | $config_commands | |
22510 | ||
22511 | Report bugs to <bug-autoconf@gnu.org>." | |
22512 | _ACEOF | |
22513 | ||
22514 | cat >>$CONFIG_STATUS <<_ACEOF | |
22515 | ac_cs_version="\\ | |
22516 | config.status | |
22517 | configured by $0, generated by GNU Autoconf 2.59, | |
22518 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
22519 | ||
22520 | Copyright (C) 2003 Free Software Foundation, Inc. | |
22521 | This config.status script is free software; the Free Software Foundation | |
22522 | gives unlimited permission to copy, distribute and modify it." | |
22523 | srcdir=$srcdir | |
22524 | INSTALL="$INSTALL" | |
22525 | _ACEOF | |
22526 | ||
22527 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22528 | # If no file are specified by the user, then we need to provide default | |
22529 | # value. By we need to know if files were specified by the user. | |
22530 | ac_need_defaults=: | |
22531 | while test $# != 0 | |
22532 | do | |
22533 | case $1 in | |
22534 | --*=*) | |
22535 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
22536 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
22537 | ac_shift=: | |
c906108c | 22538 | ;; |
bec39cab AC |
22539 | -*) |
22540 | ac_option=$1 | |
22541 | ac_optarg=$2 | |
22542 | ac_shift=shift | |
c906108c | 22543 | ;; |
bec39cab AC |
22544 | *) # This is not an option, so the user has probably given explicit |
22545 | # arguments. | |
22546 | ac_option=$1 | |
22547 | ac_need_defaults=false;; | |
22548 | esac | |
c906108c | 22549 | |
bec39cab AC |
22550 | case $ac_option in |
22551 | # Handling of the options. | |
22552 | _ACEOF | |
22553 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22554 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22555 | ac_cs_recheck=: ;; | |
22556 | --version | --vers* | -V ) | |
22557 | echo "$ac_cs_version"; exit 0 ;; | |
22558 | --he | --h) | |
22559 | # Conflict between --help and --header | |
22560 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
22561 | Try \`$0 --help' for more information." >&5 | |
22562 | echo "$as_me: error: ambiguous option: $1 | |
22563 | Try \`$0 --help' for more information." >&2;} | |
22564 | { (exit 1); exit 1; }; };; | |
22565 | --help | --hel | -h ) | |
22566 | echo "$ac_cs_usage"; exit 0 ;; | |
22567 | --debug | --d* | -d ) | |
22568 | debug=: ;; | |
22569 | --file | --fil | --fi | --f ) | |
22570 | $ac_shift | |
22571 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
22572 | ac_need_defaults=false;; | |
22573 | --header | --heade | --head | --hea ) | |
22574 | $ac_shift | |
22575 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
22576 | ac_need_defaults=false;; | |
22577 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22578 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22579 | ac_cs_silent=: ;; | |
c906108c | 22580 | |
bec39cab AC |
22581 | # This is an error. |
22582 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
22583 | Try \`$0 --help' for more information." >&5 | |
22584 | echo "$as_me: error: unrecognized option: $1 | |
22585 | Try \`$0 --help' for more information." >&2;} | |
22586 | { (exit 1); exit 1; }; } ;; | |
c906108c | 22587 | |
bec39cab | 22588 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 22589 | |
bec39cab AC |
22590 | esac |
22591 | shift | |
22592 | done | |
c906108c | 22593 | |
bec39cab | 22594 | ac_configure_extra_args= |
c906108c | 22595 | |
bec39cab AC |
22596 | if $ac_cs_silent; then |
22597 | exec 6>/dev/null | |
22598 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22599 | fi | |
c906108c | 22600 | |
bec39cab AC |
22601 | _ACEOF |
22602 | cat >>$CONFIG_STATUS <<_ACEOF | |
22603 | if \$ac_cs_recheck; then | |
22604 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
22605 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22606 | fi | |
22607 | ||
22608 | _ACEOF | |
22609 | ||
22610 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 22611 | # |
bec39cab | 22612 | # INIT-COMMANDS section. |
c906108c | 22613 | # |
c906108c | 22614 | |
bec39cab AC |
22615 | |
22616 | gdb_host_cpu=$gdb_host_cpu | |
22617 | gdb_target_cpu=$gdb_target_cpu | |
22618 | nativefile=$nativefile | |
22619 | ||
22620 | ||
22621 | _ACEOF | |
22622 | ||
22623 | ||
22624 | ||
22625 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22626 | for ac_config_target in $ac_config_targets | |
c906108c | 22627 | do |
bec39cab AC |
22628 | case "$ac_config_target" in |
22629 | # Handling of arguments. | |
22630 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22631 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
22632 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
22633 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
22634 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
22635 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
22636 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
22637 | { (exit 1); exit 1; }; };; | |
c906108c SS |
22638 | esac |
22639 | done | |
22640 | ||
bec39cab AC |
22641 | # If the user did not use the arguments to specify the items to instantiate, |
22642 | # then the envvar interface is used. Set only those that are not. | |
22643 | # We use the long form for the default assignment because of an extremely | |
22644 | # bizarre bug on SunOS 4.1.3. | |
22645 | if $ac_need_defaults; then | |
22646 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22647 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22648 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
22649 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22650 | fi | |
22651 | ||
22652 | # Have a temporary directory for convenience. Make it in the build tree | |
22653 | # simply because there is no reason to put it here, and in addition, | |
22654 | # creating and moving files from /tmp can sometimes cause problems. | |
22655 | # Create a temporary directory, and hook for its removal unless debugging. | |
22656 | $debug || | |
22657 | { | |
22658 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
22659 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
22660 | } | |
c906108c | 22661 | |
bec39cab | 22662 | # Create a (secure) tmp directory for tmp files. |
c906108c | 22663 | |
bec39cab AC |
22664 | { |
22665 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
22666 | test -n "$tmp" && test -d "$tmp" | |
22667 | } || | |
22668 | { | |
22669 | tmp=./confstat$$-$RANDOM | |
22670 | (umask 077 && mkdir $tmp) | |
22671 | } || | |
22672 | { | |
22673 | echo "$me: cannot create a temporary directory in ." >&2 | |
22674 | { (exit 1); exit 1; } | |
22675 | } | |
22676 | ||
22677 | _ACEOF | |
22678 | ||
22679 | cat >>$CONFIG_STATUS <<_ACEOF | |
22680 | ||
22681 | # | |
22682 | # CONFIG_FILES section. | |
22683 | # | |
22684 | ||
22685 | # No need to generate the scripts if there are no CONFIG_FILES. | |
22686 | # This happens for instance when ./config.status config.h | |
22687 | if test -n "\$CONFIG_FILES"; then | |
22688 | # Protect against being on the right side of a sed subst in config.status. | |
22689 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
22690 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
22691 | s,@SHELL@,$SHELL,;t t | |
22692 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
22693 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
22694 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
22695 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
22696 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
22697 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
22698 | s,@exec_prefix@,$exec_prefix,;t t | |
22699 | s,@prefix@,$prefix,;t t | |
22700 | s,@program_transform_name@,$program_transform_name,;t t | |
22701 | s,@bindir@,$bindir,;t t | |
22702 | s,@sbindir@,$sbindir,;t t | |
22703 | s,@libexecdir@,$libexecdir,;t t | |
22704 | s,@datadir@,$datadir,;t t | |
22705 | s,@sysconfdir@,$sysconfdir,;t t | |
22706 | s,@sharedstatedir@,$sharedstatedir,;t t | |
22707 | s,@localstatedir@,$localstatedir,;t t | |
22708 | s,@libdir@,$libdir,;t t | |
22709 | s,@includedir@,$includedir,;t t | |
22710 | s,@oldincludedir@,$oldincludedir,;t t | |
22711 | s,@infodir@,$infodir,;t t | |
22712 | s,@mandir@,$mandir,;t t | |
22713 | s,@build_alias@,$build_alias,;t t | |
22714 | s,@host_alias@,$host_alias,;t t | |
22715 | s,@target_alias@,$target_alias,;t t | |
22716 | s,@DEFS@,$DEFS,;t t | |
22717 | s,@ECHO_C@,$ECHO_C,;t t | |
22718 | s,@ECHO_N@,$ECHO_N,;t t | |
22719 | s,@ECHO_T@,$ECHO_T,;t t | |
22720 | s,@LIBS@,$LIBS,;t t | |
22721 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
22722 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
22723 | s,@MAINT@,$MAINT,;t t | |
22724 | s,@CC@,$CC,;t t | |
22725 | s,@CFLAGS@,$CFLAGS,;t t | |
22726 | s,@LDFLAGS@,$LDFLAGS,;t t | |
22727 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
22728 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
22729 | s,@EXEEXT@,$EXEEXT,;t t | |
22730 | s,@OBJEXT@,$OBJEXT,;t t | |
22731 | s,@CPP@,$CPP,;t t | |
22732 | s,@EGREP@,$EGREP,;t t | |
22733 | s,@build@,$build,;t t | |
22734 | s,@build_cpu@,$build_cpu,;t t | |
22735 | s,@build_vendor@,$build_vendor,;t t | |
22736 | s,@build_os@,$build_os,;t t | |
22737 | s,@host@,$host,;t t | |
22738 | s,@host_cpu@,$host_cpu,;t t | |
22739 | s,@host_vendor@,$host_vendor,;t t | |
22740 | s,@host_os@,$host_os,;t t | |
22741 | s,@target@,$target,;t t | |
22742 | s,@target_cpu@,$target_cpu,;t t | |
22743 | s,@target_vendor@,$target_vendor,;t t | |
22744 | s,@target_os@,$target_os,;t t | |
c21a4eee | 22745 | s,@SET_MAKE@,$SET_MAKE,;t t |
bec39cab AC |
22746 | s,@RANLIB@,$RANLIB,;t t |
22747 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
bec39cab AC |
22748 | s,@ALLOCA@,$ALLOCA,;t t |
22749 | s,@USE_NLS@,$USE_NLS,;t t | |
22750 | s,@MSGFMT@,$MSGFMT,;t t | |
22751 | s,@GMSGFMT@,$GMSGFMT,;t t | |
22752 | s,@XGETTEXT@,$XGETTEXT,;t t | |
22753 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
22754 | s,@CATALOGS@,$CATALOGS,;t t | |
22755 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
22756 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
22757 | s,@GMOFILES@,$GMOFILES,;t t | |
22758 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
22759 | s,@INTLDEPS@,$INTLDEPS,;t t | |
22760 | s,@INTLLIBS@,$INTLLIBS,;t t | |
22761 | s,@INTLOBJS@,$INTLOBJS,;t t | |
22762 | s,@POFILES@,$POFILES,;t t | |
22763 | s,@POSUB@,$POSUB,;t t | |
22764 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
22765 | s,@GT_NO@,$GT_NO,;t t | |
22766 | s,@GT_YES@,$GT_YES,;t t | |
22767 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
22768 | s,@l@,$l,;t t | |
22769 | s,@localedir@,$localedir,;t t | |
22770 | s,@PACKAGE@,$PACKAGE,;t t | |
22771 | s,@subdirs@,$subdirs,;t t | |
22772 | s,@AWK@,$AWK,;t t | |
22773 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
22774 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22775 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
22776 | s,@LN_S@,$LN_S,;t t | |
22777 | s,@YACC@,$YACC,;t t | |
22778 | s,@AR@,$AR,;t t | |
22779 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
22780 | s,@DLLTOOL@,$DLLTOOL,;t t | |
22781 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
22782 | s,@WINDRES@,$WINDRES,;t t | |
22783 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
22784 | s,@MIG@,$MIG,;t t | |
22785 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
22786 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t | |
22787 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
22788 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
22789 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
22790 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
22791 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
22792 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
22793 | s,@LIBGUI@,$LIBGUI,;t t | |
22794 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
22795 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
22796 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
22797 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
22798 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
22799 | s,@TCL_CC@,$TCL_CC,;t t | |
22800 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
22801 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
22802 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
22803 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
22804 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
22805 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
22806 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
22807 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
22808 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
22809 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
22810 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
22811 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
22812 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
22813 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
22814 | s,@TK_VERSION@,$TK_VERSION,;t t | |
22815 | s,@TK_DEFS@,$TK_DEFS,;t t | |
22816 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
22817 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
22818 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
22819 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
22820 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
22821 | s,@TCLHDIR@,$TCLHDIR,;t t | |
22822 | s,@TKHDIR@,$TKHDIR,;t t | |
22823 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
22824 | s,@ITKHDIR@,$ITKHDIR,;t t | |
22825 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
22826 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
22827 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
22828 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
22829 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
22830 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
22831 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
22832 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
22833 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
22834 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
22835 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
22836 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
22837 | s,@X_LIBS@,$X_LIBS,;t t | |
22838 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
22839 | s,@TK_DEPS@,$TK_DEPS,;t t | |
22840 | s,@ITCLLIB@,$ITCLLIB,;t t | |
22841 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
22842 | s,@ITKLIB@,$ITKLIB,;t t | |
22843 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
22844 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
22845 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
22846 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
22847 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t | |
22848 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t | |
22849 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t | |
22850 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
22851 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
22852 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
22853 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
22854 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
22855 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
22856 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
22857 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
22858 | s,@target_subdir@,$target_subdir,;t t | |
22859 | s,@frags@,$frags,;t t | |
22860 | s,@xm_h@,$xm_h,;t t | |
22861 | s,@tm_h@,$tm_h,;t t | |
22862 | s,@nm_h@,$nm_h,;t t | |
22863 | s,@LIBICONV@,$LIBICONV,;t t | |
22864 | s,@LIBOBJS@,$LIBOBJS,;t t | |
22865 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
c906108c | 22866 | /@host_makefile_frag@/r $host_makefile_frag |
bec39cab | 22867 | s,@host_makefile_frag@,,;t t |
c906108c | 22868 | /@target_makefile_frag@/r $target_makefile_frag |
bec39cab | 22869 | s,@target_makefile_frag@,,;t t |
c906108c | 22870 | CEOF |
bec39cab AC |
22871 | |
22872 | _ACEOF | |
22873 | ||
22874 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22875 | # Split the substitutions into bite-sized pieces for seds with | |
22876 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22877 | ac_max_sed_lines=48 | |
22878 | ac_sed_frag=1 # Number of current file. | |
22879 | ac_beg=1 # First line for current file. | |
22880 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22881 | ac_more_lines=: | |
22882 | ac_sed_cmds= | |
22883 | while $ac_more_lines; do | |
22884 | if test $ac_beg -gt 1; then | |
22885 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22886 | else | |
22887 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22888 | fi | |
22889 | if test ! -s $tmp/subs.frag; then | |
22890 | ac_more_lines=false | |
c906108c | 22891 | else |
bec39cab AC |
22892 | # The purpose of the label and of the branching condition is to |
22893 | # speed up the sed processing (if there are no `@' at all, there | |
22894 | # is no need to browse any of the substitutions). | |
22895 | # These are the two extra sed commands mentioned above. | |
22896 | (echo ':t | |
22897 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22898 | if test -z "$ac_sed_cmds"; then | |
22899 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
22900 | else | |
22901 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
22902 | fi | |
22903 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22904 | ac_beg=$ac_end | |
22905 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
c906108c | 22906 | fi |
bec39cab AC |
22907 | done |
22908 | if test -z "$ac_sed_cmds"; then | |
22909 | ac_sed_cmds=cat | |
c906108c | 22910 | fi |
bec39cab | 22911 | fi # test -n "$CONFIG_FILES" |
c906108c | 22912 | |
bec39cab AC |
22913 | _ACEOF |
22914 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22915 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c906108c | 22916 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
bec39cab AC |
22917 | case $ac_file in |
22918 | - | *:- | *:-:* ) # input from stdin | |
22919 | cat >$tmp/stdin | |
22920 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22921 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22922 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22923 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22924 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
22925 | esac |
22926 | ||
bec39cab AC |
22927 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
22928 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22929 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22930 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22931 | X"$ac_file" : 'X\(//\)$' \| \ | |
22932 | X"$ac_file" : 'X\(/\)' \| \ | |
22933 | . : '\(.\)' 2>/dev/null || | |
22934 | echo X"$ac_file" | | |
22935 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22936 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22937 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22938 | /^X\(\/\).*/{ s//\1/; q; } | |
22939 | s/.*/./; q'` | |
22940 | { if $as_mkdir_p; then | |
22941 | mkdir -p "$ac_dir" | |
c906108c | 22942 | else |
bec39cab AC |
22943 | as_dir="$ac_dir" |
22944 | as_dirs= | |
22945 | while test ! -d "$as_dir"; do | |
22946 | as_dirs="$as_dir $as_dirs" | |
22947 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22948 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22949 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22950 | X"$as_dir" : 'X\(//\)$' \| \ | |
22951 | X"$as_dir" : 'X\(/\)' \| \ | |
22952 | . : '\(.\)' 2>/dev/null || | |
22953 | echo X"$as_dir" | | |
22954 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22955 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22956 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22957 | /^X\(\/\).*/{ s//\1/; q; } | |
22958 | s/.*/./; q'` | |
22959 | done | |
22960 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22961 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22962 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22963 | { (exit 1); exit 1; }; }; } | |
c906108c | 22964 | |
bec39cab AC |
22965 | ac_builddir=. |
22966 | ||
22967 | if test "$ac_dir" != .; then | |
22968 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22969 | # A "../" for each directory in $ac_dir_suffix. | |
22970 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22971 | else | |
22972 | ac_dir_suffix= ac_top_builddir= | |
22973 | fi | |
22974 | ||
22975 | case $srcdir in | |
22976 | .) # No --srcdir option. We are building in place. | |
22977 | ac_srcdir=. | |
22978 | if test -z "$ac_top_builddir"; then | |
22979 | ac_top_srcdir=. | |
22980 | else | |
22981 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22982 | fi ;; | |
22983 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22984 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22985 | ac_top_srcdir=$srcdir ;; | |
c906108c | 22986 | *) # Relative path. |
bec39cab AC |
22987 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
22988 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22989 | esac | |
22990 | ||
22991 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22992 | # the directories may not exist. | |
22993 | case `pwd` in | |
22994 | .) ac_abs_builddir="$ac_dir";; | |
22995 | *) | |
22996 | case "$ac_dir" in | |
22997 | .) ac_abs_builddir=`pwd`;; | |
22998 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22999 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23000 | esac;; | |
23001 | esac | |
23002 | case $ac_abs_builddir in | |
23003 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23004 | *) | |
23005 | case ${ac_top_builddir}. in | |
23006 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23007 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23008 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23009 | esac;; | |
23010 | esac | |
23011 | case $ac_abs_builddir in | |
23012 | .) ac_abs_srcdir=$ac_srcdir;; | |
23013 | *) | |
23014 | case $ac_srcdir in | |
23015 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23016 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23017 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23018 | esac;; | |
23019 | esac | |
23020 | case $ac_abs_builddir in | |
23021 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23022 | *) | |
23023 | case $ac_top_srcdir in | |
23024 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23025 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23026 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23027 | esac;; | |
23028 | esac | |
c906108c | 23029 | |
c906108c | 23030 | |
bec39cab AC |
23031 | case $INSTALL in |
23032 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
23033 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
23034 | esac |
23035 | ||
bec39cab AC |
23036 | if test x"$ac_file" != x-; then |
23037 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
23038 | echo "$as_me: creating $ac_file" >&6;} | |
23039 | rm -f "$ac_file" | |
23040 | fi | |
23041 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23042 | # use $as_me), people would be surprised to read: | |
23043 | # /* config.h. Generated by config.status. */ | |
23044 | if test x"$ac_file" = x-; then | |
23045 | configure_input= | |
23046 | else | |
23047 | configure_input="$ac_file. " | |
23048 | fi | |
23049 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
23050 | sed 's,.*/,,'` by configure." | |
23051 | ||
23052 | # First look for the input files in the build tree, otherwise in the | |
23053 | # src tree. | |
23054 | ac_file_inputs=`IFS=: | |
23055 | for f in $ac_file_in; do | |
23056 | case $f in | |
23057 | -) echo $tmp/stdin ;; | |
23058 | [\\/$]*) | |
23059 | # Absolute (can't be DOS-style, as IFS=:) | |
23060 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23061 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23062 | { (exit 1); exit 1; }; } | |
23063 | echo "$f";; | |
23064 | *) # Relative | |
23065 | if test -f "$f"; then | |
23066 | # Build tree | |
23067 | echo "$f" | |
23068 | elif test -f "$srcdir/$f"; then | |
23069 | # Source tree | |
23070 | echo "$srcdir/$f" | |
23071 | else | |
23072 | # /dev/null tree | |
23073 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23074 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23075 | { (exit 1); exit 1; }; } | |
23076 | fi;; | |
23077 | esac | |
23078 | done` || { (exit 1); exit 1; } | |
23079 | _ACEOF | |
23080 | cat >>$CONFIG_STATUS <<_ACEOF | |
23081 | sed "$ac_vpsub | |
23082 | $extrasub | |
23083 | _ACEOF | |
23084 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23085 | :t | |
23086 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
23087 | s,@configure_input@,$configure_input,;t t | |
23088 | s,@srcdir@,$ac_srcdir,;t t | |
23089 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
23090 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
23091 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
23092 | s,@builddir@,$ac_builddir,;t t | |
23093 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
23094 | s,@top_builddir@,$ac_top_builddir,;t t | |
23095 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
23096 | s,@INSTALL@,$ac_INSTALL,;t t | |
23097 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
23098 | rm -f $tmp/stdin | |
23099 | if test x"$ac_file" != x-; then | |
23100 | mv $tmp/out $ac_file | |
23101 | else | |
23102 | cat $tmp/out | |
23103 | rm -f $tmp/out | |
23104 | fi | |
23105 | ||
23106 | done | |
23107 | _ACEOF | |
23108 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23109 | ||
23110 | # | |
23111 | # CONFIG_HEADER section. | |
23112 | # | |
c906108c SS |
23113 | |
23114 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
23115 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
23116 | # | |
23117 | # ac_d sets the value in "#define NAME VALUE" lines. | |
bec39cab AC |
23118 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
23119 | ac_dB='[ ].*$,\1#\2' | |
23120 | ac_dC=' ' | |
23121 | ac_dD=',;t' | |
23122 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
23123 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
23124 | ac_uB='$,\1#\2define\3' | |
c906108c | 23125 | ac_uC=' ' |
bec39cab AC |
23126 | ac_uD=',;t' |
23127 | ||
23128 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 23129 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
bec39cab AC |
23130 | case $ac_file in |
23131 | - | *:- | *:-:* ) # input from stdin | |
23132 | cat >$tmp/stdin | |
23133 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23134 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23135 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23136 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23137 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
23138 | esac |
23139 | ||
bec39cab AC |
23140 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
23141 | echo "$as_me: creating $ac_file" >&6;} | |
23142 | ||
23143 | # First look for the input files in the build tree, otherwise in the | |
23144 | # src tree. | |
23145 | ac_file_inputs=`IFS=: | |
23146 | for f in $ac_file_in; do | |
23147 | case $f in | |
23148 | -) echo $tmp/stdin ;; | |
23149 | [\\/$]*) | |
23150 | # Absolute (can't be DOS-style, as IFS=:) | |
23151 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23152 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23153 | { (exit 1); exit 1; }; } | |
23154 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
23155 | echo "$f";; | |
23156 | *) # Relative | |
23157 | if test -f "$f"; then | |
23158 | # Build tree | |
23159 | echo "$f" | |
23160 | elif test -f "$srcdir/$f"; then | |
23161 | # Source tree | |
23162 | echo "$srcdir/$f" | |
23163 | else | |
23164 | # /dev/null tree | |
23165 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23166 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23167 | { (exit 1); exit 1; }; } | |
23168 | fi;; | |
23169 | esac | |
23170 | done` || { (exit 1); exit 1; } | |
23171 | # Remove the trailing spaces. | |
23172 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
23173 | ||
23174 | _ACEOF | |
23175 | ||
23176 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
23177 | # `conftest.undefs', that substitutes the proper values into | |
23178 | # config.h.in to produce config.h. The first handles `#define' | |
23179 | # templates, and the second `#undef' templates. | |
23180 | # And first: Protect against being on the right side of a sed subst in | |
23181 | # config.status. Protect against being in an unquoted here document | |
23182 | # in config.status. | |
23183 | rm -f conftest.defines conftest.undefs | |
23184 | # Using a here document instead of a string reduces the quoting nightmare. | |
23185 | # Putting comments in sed scripts is not portable. | |
23186 | # | |
23187 | # `end' is used to avoid that the second main sed command (meant for | |
23188 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
23189 | # See the Autoconf documentation for `clear'. | |
23190 | cat >confdef2sed.sed <<\_ACEOF | |
23191 | s/[\\&,]/\\&/g | |
23192 | s,[\\$`],\\&,g | |
23193 | t clear | |
23194 | : clear | |
23195 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
23196 | t end | |
23197 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
23198 | : end | |
23199 | _ACEOF | |
23200 | # If some macros were called several times there might be several times | |
23201 | # the same #defines, which is useless. Nevertheless, we may not want to | |
23202 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
23203 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
23204 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
23205 | rm -f confdef2sed.sed | |
c906108c SS |
23206 | |
23207 | # This sed command replaces #undef with comments. This is necessary, for | |
23208 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
23209 | # on some systems where configure will not decide to define it. | |
bec39cab AC |
23210 | cat >>conftest.undefs <<\_ACEOF |
23211 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
23212 | _ACEOF | |
23213 | ||
23214 | # Break up conftest.defines because some shells have a limit on the size | |
23215 | # of here documents, and old seds have small limits too (100 cmds). | |
23216 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
23217 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
23218 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
23219 | echo ' :' >>$CONFIG_STATUS | |
23220 | rm -f conftest.tail | |
23221 | while grep . conftest.defines >/dev/null | |
23222 | do | |
23223 | # Write a limited-size here document to $tmp/defines.sed. | |
23224 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
23225 | # Speed up: don't consider the non `#define' lines. | |
23226 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
23227 | # Work around the forget-to-reset-the-flag bug. | |
23228 | echo 't clr' >>$CONFIG_STATUS | |
23229 | echo ': clr' >>$CONFIG_STATUS | |
23230 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
23231 | echo 'CEOF | |
23232 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
23233 | rm -f $tmp/in | |
23234 | mv $tmp/out $tmp/in | |
23235 | ' >>$CONFIG_STATUS | |
23236 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
23237 | rm -f conftest.defines | |
23238 | mv conftest.tail conftest.defines | |
23239 | done | |
23240 | rm -f conftest.defines | |
23241 | echo ' fi # grep' >>$CONFIG_STATUS | |
23242 | echo >>$CONFIG_STATUS | |
c906108c | 23243 | |
bec39cab AC |
23244 | # Break up conftest.undefs because some shells have a limit on the size |
23245 | # of here documents, and old seds have small limits too (100 cmds). | |
23246 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 23247 | rm -f conftest.tail |
bec39cab | 23248 | while grep . conftest.undefs >/dev/null |
c906108c | 23249 | do |
bec39cab AC |
23250 | # Write a limited-size here document to $tmp/undefs.sed. |
23251 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
23252 | # Speed up: don't consider the non `#undef' | |
23253 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
23254 | # Work around the forget-to-reset-the-flag bug. | |
23255 | echo 't clr' >>$CONFIG_STATUS | |
23256 | echo ': clr' >>$CONFIG_STATUS | |
23257 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 23258 | echo 'CEOF |
bec39cab AC |
23259 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
23260 | rm -f $tmp/in | |
23261 | mv $tmp/out $tmp/in | |
23262 | ' >>$CONFIG_STATUS | |
23263 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
23264 | rm -f conftest.undefs | |
23265 | mv conftest.tail conftest.undefs | |
23266 | done | |
23267 | rm -f conftest.undefs | |
23268 | ||
23269 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23270 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23271 | # use $as_me), people would be surprised to read: | |
23272 | # /* config.h. Generated by config.status. */ | |
23273 | if test x"$ac_file" = x-; then | |
23274 | echo "/* Generated by configure. */" >$tmp/config.h | |
c906108c | 23275 | else |
bec39cab | 23276 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
c906108c | 23277 | fi |
bec39cab AC |
23278 | cat $tmp/in >>$tmp/config.h |
23279 | rm -f $tmp/in | |
23280 | if test x"$ac_file" != x-; then | |
23281 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
23282 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
23283 | echo "$as_me: $ac_file is unchanged" >&6;} | |
23284 | else | |
23285 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
23286 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23287 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23288 | X"$ac_file" : 'X\(//\)$' \| \ | |
23289 | X"$ac_file" : 'X\(/\)' \| \ | |
23290 | . : '\(.\)' 2>/dev/null || | |
23291 | echo X"$ac_file" | | |
23292 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23293 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23294 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23295 | /^X\(\/\).*/{ s//\1/; q; } | |
23296 | s/.*/./; q'` | |
23297 | { if $as_mkdir_p; then | |
23298 | mkdir -p "$ac_dir" | |
23299 | else | |
23300 | as_dir="$ac_dir" | |
23301 | as_dirs= | |
23302 | while test ! -d "$as_dir"; do | |
23303 | as_dirs="$as_dir $as_dirs" | |
23304 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23306 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23307 | X"$as_dir" : 'X\(//\)$' \| \ | |
23308 | X"$as_dir" : 'X\(/\)' \| \ | |
23309 | . : '\(.\)' 2>/dev/null || | |
23310 | echo X"$as_dir" | | |
23311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23312 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23313 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23314 | /^X\(\/\).*/{ s//\1/; q; } | |
23315 | s/.*/./; q'` | |
23316 | done | |
23317 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23318 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23319 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23320 | { (exit 1); exit 1; }; }; } | |
c906108c | 23321 | |
bec39cab AC |
23322 | rm -f $ac_file |
23323 | mv $tmp/config.h $ac_file | |
23324 | fi | |
23325 | else | |
23326 | cat $tmp/config.h | |
23327 | rm -f $tmp/config.h | |
23328 | fi | |
23329 | done | |
23330 | _ACEOF | |
23331 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 23332 | |
bec39cab AC |
23333 | # |
23334 | # CONFIG_LINKS section. | |
23335 | # | |
c906108c | 23336 | |
bec39cab AC |
23337 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
23338 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
23339 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 23340 | |
bec39cab AC |
23341 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
23342 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
23343 | |
23344 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
23345 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
23346 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
23347 | { (exit 1); exit 1; }; } | |
c906108c SS |
23348 | fi |
23349 | rm -f $ac_dest | |
23350 | ||
23351 | # Make relative symlinks. | |
bec39cab AC |
23352 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
23353 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23354 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
23355 | X"$ac_dest" : 'X\(//\)$' \| \ | |
23356 | X"$ac_dest" : 'X\(/\)' \| \ | |
23357 | . : '\(.\)' 2>/dev/null || | |
23358 | echo X"$ac_dest" | | |
23359 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23360 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23361 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23362 | /^X\(\/\).*/{ s//\1/; q; } | |
23363 | s/.*/./; q'` | |
23364 | { if $as_mkdir_p; then | |
23365 | mkdir -p "$ac_dest_dir" | |
c906108c | 23366 | else |
bec39cab AC |
23367 | as_dir="$ac_dest_dir" |
23368 | as_dirs= | |
23369 | while test ! -d "$as_dir"; do | |
23370 | as_dirs="$as_dir $as_dirs" | |
23371 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23372 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23373 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23374 | X"$as_dir" : 'X\(//\)$' \| \ | |
23375 | X"$as_dir" : 'X\(/\)' \| \ | |
23376 | . : '\(.\)' 2>/dev/null || | |
23377 | echo X"$as_dir" | | |
23378 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23379 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23380 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23381 | /^X\(\/\).*/{ s//\1/; q; } | |
23382 | s/.*/./; q'` | |
23383 | done | |
23384 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23385 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
23386 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
23387 | { (exit 1); exit 1; }; }; } | |
23388 | ||
23389 | ac_builddir=. | |
23390 | ||
23391 | if test "$ac_dest_dir" != .; then | |
23392 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
23393 | # A "../" for each directory in $ac_dir_suffix. | |
23394 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23395 | else | |
23396 | ac_dir_suffix= ac_top_builddir= | |
23397 | fi | |
23398 | ||
23399 | case $srcdir in | |
23400 | .) # No --srcdir option. We are building in place. | |
23401 | ac_srcdir=. | |
23402 | if test -z "$ac_top_builddir"; then | |
23403 | ac_top_srcdir=. | |
23404 | else | |
23405 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23406 | fi ;; | |
23407 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23408 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23409 | ac_top_srcdir=$srcdir ;; | |
23410 | *) # Relative path. | |
23411 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23412 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23413 | esac | |
23414 | ||
23415 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
23416 | # the directories may not exist. | |
23417 | case `pwd` in | |
23418 | .) ac_abs_builddir="$ac_dest_dir";; | |
23419 | *) | |
23420 | case "$ac_dest_dir" in | |
23421 | .) ac_abs_builddir=`pwd`;; | |
23422 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
23423 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
23424 | esac;; | |
23425 | esac | |
23426 | case $ac_abs_builddir in | |
23427 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23428 | *) | |
23429 | case ${ac_top_builddir}. in | |
23430 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23431 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23432 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23433 | esac;; | |
23434 | esac | |
23435 | case $ac_abs_builddir in | |
23436 | .) ac_abs_srcdir=$ac_srcdir;; | |
23437 | *) | |
23438 | case $ac_srcdir in | |
23439 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23440 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23441 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23442 | esac;; | |
23443 | esac | |
23444 | case $ac_abs_builddir in | |
23445 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23446 | *) | |
23447 | case $ac_top_srcdir in | |
23448 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23449 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23450 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23451 | esac;; | |
23452 | esac | |
c906108c | 23453 | |
bec39cab AC |
23454 | |
23455 | case $srcdir in | |
23456 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
23457 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
c906108c SS |
23458 | esac |
23459 | ||
bec39cab AC |
23460 | # Try a symlink, then a hard link, then a copy. |
23461 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
23462 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
23463 | cp -p $srcdir/$ac_source $ac_dest || | |
23464 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
23465 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
23466 | { (exit 1); exit 1; }; } | |
c906108c | 23467 | done |
bec39cab AC |
23468 | _ACEOF |
23469 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 23470 | |
bec39cab AC |
23471 | # |
23472 | # CONFIG_COMMANDS section. | |
23473 | # | |
23474 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
23475 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
23476 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23477 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
23478 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23479 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
23480 | X"$ac_dest" : 'X\(//\)$' \| \ | |
23481 | X"$ac_dest" : 'X\(/\)' \| \ | |
23482 | . : '\(.\)' 2>/dev/null || | |
23483 | echo X"$ac_dest" | | |
23484 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23485 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23486 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23487 | /^X\(\/\).*/{ s//\1/; q; } | |
23488 | s/.*/./; q'` | |
23489 | { if $as_mkdir_p; then | |
23490 | mkdir -p "$ac_dir" | |
23491 | else | |
23492 | as_dir="$ac_dir" | |
23493 | as_dirs= | |
23494 | while test ! -d "$as_dir"; do | |
23495 | as_dirs="$as_dir $as_dirs" | |
23496 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23497 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23498 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23499 | X"$as_dir" : 'X\(//\)$' \| \ | |
23500 | X"$as_dir" : 'X\(/\)' \| \ | |
23501 | . : '\(.\)' 2>/dev/null || | |
23502 | echo X"$as_dir" | | |
23503 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23504 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23505 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23506 | /^X\(\/\).*/{ s//\1/; q; } | |
23507 | s/.*/./; q'` | |
23508 | done | |
23509 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23510 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23511 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23512 | { (exit 1); exit 1; }; }; } | |
23513 | ||
23514 | ac_builddir=. | |
23515 | ||
23516 | if test "$ac_dir" != .; then | |
23517 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23518 | # A "../" for each directory in $ac_dir_suffix. | |
23519 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23520 | else | |
23521 | ac_dir_suffix= ac_top_builddir= | |
23522 | fi | |
23523 | ||
23524 | case $srcdir in | |
23525 | .) # No --srcdir option. We are building in place. | |
23526 | ac_srcdir=. | |
23527 | if test -z "$ac_top_builddir"; then | |
23528 | ac_top_srcdir=. | |
23529 | else | |
23530 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23531 | fi ;; | |
23532 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23533 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23534 | ac_top_srcdir=$srcdir ;; | |
23535 | *) # Relative path. | |
23536 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23537 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23538 | esac | |
23539 | ||
23540 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
23541 | # the directories may not exist. | |
23542 | case `pwd` in | |
23543 | .) ac_abs_builddir="$ac_dir";; | |
23544 | *) | |
23545 | case "$ac_dir" in | |
23546 | .) ac_abs_builddir=`pwd`;; | |
23547 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23548 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23549 | esac;; | |
23550 | esac | |
23551 | case $ac_abs_builddir in | |
23552 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23553 | *) | |
23554 | case ${ac_top_builddir}. in | |
23555 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23556 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23557 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23558 | esac;; | |
23559 | esac | |
23560 | case $ac_abs_builddir in | |
23561 | .) ac_abs_srcdir=$ac_srcdir;; | |
23562 | *) | |
23563 | case $ac_srcdir in | |
23564 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23565 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23566 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23567 | esac;; | |
23568 | esac | |
23569 | case $ac_abs_builddir in | |
23570 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23571 | *) | |
23572 | case $ac_top_srcdir in | |
23573 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23574 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23575 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23576 | esac;; | |
23577 | esac | |
c906108c | 23578 | |
c906108c | 23579 | |
bec39cab AC |
23580 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
23581 | echo "$as_me: executing $ac_dest commands" >&6;} | |
23582 | case $ac_dest in | |
23583 | default ) | |
c906108c | 23584 | |
2c0fc042 | 23585 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
23586 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
23587 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
23588 | mv -f Makefile.tmp Makefile | |
23589 | ||
2acceee2 | 23590 | |
c906108c SS |
23591 | case x$CONFIG_HEADERS in |
23592 | xconfig.h:config.in) | |
23593 | echo > stamp-h ;; | |
23594 | esac | |
bec39cab AC |
23595 | ;; |
23596 | esac | |
23597 | done | |
23598 | _ACEOF | |
c906108c | 23599 | |
bec39cab AC |
23600 | cat >>$CONFIG_STATUS <<\_ACEOF |
23601 | ||
23602 | { (exit 0); exit 0; } | |
23603 | _ACEOF | |
c906108c | 23604 | chmod +x $CONFIG_STATUS |
bec39cab AC |
23605 | ac_clean_files=$ac_clean_files_save |
23606 | ||
23607 | ||
23608 | # configure is writing to config.log, and then calls config.status. | |
23609 | # config.status does its own redirection, appending to config.log. | |
23610 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23611 | # by configure, so config.status won't be able to write to it; its | |
23612 | # output is simply discarded. So we exec the FD to /dev/null, | |
23613 | # effectively closing config.log, so it can be properly (re)opened and | |
23614 | # appended to by config.status. When coming back to configure, we | |
23615 | # need to make the FD available again. | |
23616 | if test "$no_create" != yes; then | |
23617 | ac_cs_success=: | |
23618 | ac_config_status_args= | |
23619 | test "$silent" = yes && | |
23620 | ac_config_status_args="$ac_config_status_args --quiet" | |
23621 | exec 5>/dev/null | |
23622 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23623 | exec 5>>config.log | |
23624 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23625 | # would make configure fail if this is the last instruction. | |
23626 | $ac_cs_success || { (exit 1); exit 1; } | |
23627 | fi | |
c906108c | 23628 | |
bec39cab AC |
23629 | # |
23630 | # CONFIG_SUBDIRS section. | |
23631 | # | |
c906108c SS |
23632 | if test "$no_recursion" != yes; then |
23633 | ||
23634 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23635 | ac_sub_configure_args= | |
23636 | ac_prev= | |
23637 | for ac_arg in $ac_configure_args; do | |
23638 | if test -n "$ac_prev"; then | |
23639 | ac_prev= | |
23640 | continue | |
23641 | fi | |
bec39cab | 23642 | case $ac_arg in |
c906108c SS |
23643 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23644 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23645 | ac_prev=cache_file ;; | |
23646 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
23647 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
23648 | | --c=*) | |
23649 | ;; | |
23650 | --config-cache | -C) | |
c906108c SS |
23651 | ;; |
23652 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23653 | ac_prev=srcdir ;; | |
23654 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23655 | ;; | |
bec39cab AC |
23656 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
23657 | ac_prev=prefix ;; | |
23658 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
23659 | ;; | |
c906108c SS |
23660 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
23661 | esac | |
23662 | done | |
23663 | ||
bec39cab AC |
23664 | # Always prepend --prefix to ensure using the same prefix |
23665 | # in subdir configurations. | |
23666 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
23667 | ||
23668 | ac_popdir=`pwd` | |
23669 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
23670 | |
23671 | # Do not complain, so a configure script can configure whichever | |
23672 | # parts of a large source tree are present. | |
bec39cab | 23673 | test -d $srcdir/$ac_dir || continue |
c906108c | 23674 | |
bec39cab AC |
23675 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
23676 | echo "$as_me: configuring in $ac_dir" >&6;} | |
23677 | { if $as_mkdir_p; then | |
23678 | mkdir -p "$ac_dir" | |
23679 | else | |
23680 | as_dir="$ac_dir" | |
23681 | as_dirs= | |
23682 | while test ! -d "$as_dir"; do | |
23683 | as_dirs="$as_dir $as_dirs" | |
23684 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23685 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23686 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23687 | X"$as_dir" : 'X\(//\)$' \| \ | |
23688 | X"$as_dir" : 'X\(/\)' \| \ | |
23689 | . : '\(.\)' 2>/dev/null || | |
23690 | echo X"$as_dir" | | |
23691 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23692 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23693 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23694 | /^X\(\/\).*/{ s//\1/; q; } | |
23695 | s/.*/./; q'` | |
23696 | done | |
23697 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23698 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23699 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23700 | { (exit 1); exit 1; }; }; } | |
c906108c | 23701 | |
bec39cab AC |
23702 | ac_builddir=. |
23703 | ||
23704 | if test "$ac_dir" != .; then | |
23705 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23706 | # A "../" for each directory in $ac_dir_suffix. | |
23707 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23708 | else | |
23709 | ac_dir_suffix= ac_top_builddir= | |
23710 | fi | |
23711 | ||
23712 | case $srcdir in | |
23713 | .) # No --srcdir option. We are building in place. | |
23714 | ac_srcdir=. | |
23715 | if test -z "$ac_top_builddir"; then | |
23716 | ac_top_srcdir=. | |
23717 | else | |
23718 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23719 | fi ;; | |
23720 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23721 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23722 | ac_top_srcdir=$srcdir ;; | |
23723 | *) # Relative path. | |
23724 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23725 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23726 | esac | |
c906108c | 23727 | |
bec39cab AC |
23728 | # Do not use `cd foo && pwd` to compute absolute paths, because |
23729 | # the directories may not exist. | |
23730 | case `pwd` in | |
23731 | .) ac_abs_builddir="$ac_dir";; | |
23732 | *) | |
23733 | case "$ac_dir" in | |
23734 | .) ac_abs_builddir=`pwd`;; | |
23735 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23736 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23737 | esac;; | |
23738 | esac | |
23739 | case $ac_abs_builddir in | |
23740 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23741 | *) | |
23742 | case ${ac_top_builddir}. in | |
23743 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23744 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23745 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23746 | esac;; | |
23747 | esac | |
23748 | case $ac_abs_builddir in | |
23749 | .) ac_abs_srcdir=$ac_srcdir;; | |
23750 | *) | |
23751 | case $ac_srcdir in | |
23752 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23753 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23754 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23755 | esac;; | |
23756 | esac | |
23757 | case $ac_abs_builddir in | |
23758 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23759 | *) | |
23760 | case $ac_top_srcdir in | |
23761 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23762 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23763 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23764 | esac;; | |
23765 | esac | |
c906108c | 23766 | |
c906108c | 23767 | |
bec39cab | 23768 | cd $ac_dir |
c906108c SS |
23769 | |
23770 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
23771 | if test -f $ac_srcdir/configure.gnu; then |
23772 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
23773 | elif test -f $ac_srcdir/configure; then | |
23774 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
23775 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
23776 | ac_sub_configure=$ac_configure |
23777 | else | |
bec39cab AC |
23778 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
23779 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
23780 | ac_sub_configure= |
23781 | fi | |
23782 | ||
23783 | # The recursion is here. | |
23784 | if test -n "$ac_sub_configure"; then | |
c906108c | 23785 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
23786 | case $cache_file in |
23787 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
c906108c | 23788 | *) # Relative path. |
bec39cab | 23789 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
c906108c | 23790 | esac |
c906108c | 23791 | |
bec39cab AC |
23792 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
23793 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 23794 | # The eval makes quoting arguments work. |
bec39cab AC |
23795 | eval $ac_sub_configure $ac_sub_configure_args \ |
23796 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
23797 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
23798 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
23799 | { (exit 1); exit 1; }; } | |
c906108c SS |
23800 | fi |
23801 | ||
23802 | cd $ac_popdir | |
23803 | done | |
23804 | fi | |
23805 | ||
23806 | ||
23807 | exit 0 |