Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5464f5a1 | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
5464f5a1 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
252b5132 RH |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
5464f5a1 NN |
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 | ||
243 | ||
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` | |
252b5132 | 248 | |
5464f5a1 NN |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
5464f5a1 NN |
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="libbfd.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 | ||
9e9b66a9 | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP 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 HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS' |
5464f5a1 | 313 | ac_subst_files='' |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
5464f5a1 NN |
316 | ac_init_help= |
317 | ac_init_version=false | |
252b5132 RH |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
5464f5a1 | 320 | cache_file=/dev/null |
252b5132 | 321 | exec_prefix=NONE |
252b5132 | 322 | no_create= |
252b5132 RH |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
252b5132 RH |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
5464f5a1 NN |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
252b5132 RH |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
252b5132 RH |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
5464f5a1 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
5464f5a1 | 367 | case $ac_option in |
252b5132 RH |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
5464f5a1 | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
5464f5a1 | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5464f5a1 | 377 | build_alias=$ac_optarg ;; |
252b5132 RH |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
5464f5a1 NN |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
252b5132 RH |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
5464f5a1 | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
5464f5a1 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
403 | |
404 | -enable-* | --enable-*) | |
5464f5a1 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
413 | *) ac_optarg=yes ;; |
414 | esac | |
5464f5a1 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
5464f5a1 | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
5464f5a1 NN |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
252b5132 RH |
436 | |
437 | -host | --host | --hos | --ho) | |
5464f5a1 | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
5464f5a1 | 440 | host_alias=$ac_optarg ;; |
252b5132 RH |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
5464f5a1 | 447 | includedir=$ac_optarg ;; |
252b5132 RH |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
5464f5a1 | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
5464f5a1 | 457 | libdir=$ac_optarg ;; |
252b5132 RH |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
5464f5a1 | 464 | libexecdir=$ac_optarg ;; |
252b5132 RH |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
5464f5a1 | 473 | localstatedir=$ac_optarg ;; |
252b5132 RH |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
5464f5a1 | 478 | mandir=$ac_optarg ;; |
252b5132 RH |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
5464f5a1 | 485 | | --no-cr | --no-c | -n) |
252b5132 RH |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
5464f5a1 | 499 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
5464f5a1 | 504 | prefix=$ac_optarg ;; |
252b5132 RH |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
5464f5a1 | 511 | program_prefix=$ac_optarg ;; |
252b5132 RH |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
5464f5a1 | 518 | program_suffix=$ac_optarg ;; |
252b5132 RH |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
5464f5a1 | 535 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
5464f5a1 | 545 | sbindir=$ac_optarg ;; |
252b5132 RH |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
5464f5a1 | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
5464f5a1 | 561 | site=$ac_optarg ;; |
6be7c12c | 562 | |
252b5132 RH |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5464f5a1 | 566 | srcdir=$ac_optarg ;; |
252b5132 RH |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
5464f5a1 | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
5464f5a1 | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
5464f5a1 | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
5464f5a1 NN |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
5464f5a1 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
252b5132 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
5464f5a1 NN |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
5464f5a1 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
5464f5a1 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
5464f5a1 | 617 | x_includes=$ac_optarg ;; |
252b5132 RH |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
5464f5a1 | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
5464f5a1 NN |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
252b5132 RH |
629 | ;; |
630 | ||
5464f5a1 NN |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
252b5132 | 641 | *) |
5464f5a1 NN |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
5464f5a1 NN |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
252b5132 | 656 | fi |
252b5132 | 657 | |
5464f5a1 NN |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
6be7c12c | 668 | |
5464f5a1 NN |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 672 | do |
5464f5a1 NN |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
678 | esac |
679 | done | |
680 | ||
5464f5a1 NN |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
252b5132 | 698 | |
5464f5a1 NN |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 703 | |
252b5132 RH |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
5464f5a1 NN |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
252b5132 RH |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
5464f5a1 NN |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
5464f5a1 NN |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
252b5132 RH |
735 | fi |
736 | fi | |
5464f5a1 NN |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
b3baf5d0 | 773 | |
5464f5a1 NN |
774 | # |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 782 | |
5464f5a1 | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 784 | |
5464f5a1 NN |
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
6be7c12c | 787 | |
5464f5a1 | 788 | Defaults for the options are specified in brackets. |
6be7c12c | 789 | |
5464f5a1 NN |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
6be7c12c | 809 | |
5464f5a1 NN |
810 | By default, \`make install' will install all the files in |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
6be7c12c | 814 | |
5464f5a1 | 815 | For better control, use the options below. |
6be7c12c | 816 | |
5464f5a1 NN |
817 | Fine tuning of the installation directories: |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
6be7c12c | 831 | |
5464f5a1 | 832 | cat <<\_ACEOF |
6be7c12c | 833 | |
5464f5a1 NN |
834 | Program names: |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 838 | |
5464f5a1 NN |
839 | System types: |
840 | --build=BUILD configure for building on BUILD [guessed] | |
841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
842 | --target=TARGET configure for building compilers for TARGET [HOST] | |
843 | _ACEOF | |
252b5132 | 844 | fi |
252b5132 | 845 | |
5464f5a1 | 846 | if test -n "$ac_init_help"; then |
6be7c12c | 847 | |
5464f5a1 | 848 | cat <<\_ACEOF |
252b5132 | 849 | |
5464f5a1 NN |
850 | Optional Features: |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
f5385ebf AM |
853 | --disable-dependency-tracking speeds up one-time build |
854 | --enable-dependency-tracking do not reject slow dependency extractors | |
5464f5a1 NN |
855 | --enable-shared=PKGS build shared libraries default=no |
856 | --enable-static=PKGS build static libraries default=yes | |
857 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
858 | --disable-libtool-lock avoid locking (might break parallel builds) | |
859 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
860 | --enable-targets alternative target configurations | |
861 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
569acd2c | 862 | --enable-werror treat compile warnings as errors |
9e9b66a9 | 863 | --enable-build-warnings Enable build-time compiler warnings |
f5385ebf AM |
864 | --enable-maintainer-mode enable make rules and dependencies not useful |
865 | (and sometimes confusing) to the casual installer | |
5464f5a1 NN |
866 | --enable-install-libbfd controls installation of libbfd and related headers |
867 | --disable-nls do not use Native Language Support | |
868 | ||
869 | Optional Packages: | |
870 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
871 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
872 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
873 | --with-pic try to use only PIC/non-PIC objects default=use both | |
874 | --with-mmap try using mmap for BFD input files if available | |
875 | --with-included-gettext use the GNU gettext library included here | |
876 | ||
877 | Some influential environment variables: | |
878 | CC C compiler command | |
879 | CFLAGS C compiler flags | |
880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
881 | nonstandard directory <lib dir> | |
882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
883 | headers in a nonstandard directory <include dir> | |
884 | CPP C preprocessor | |
885 | ||
886 | Use these variables to override the choices made by `configure' or to help | |
887 | it to find libraries and programs with nonstandard names/locations. | |
888 | ||
889 | _ACEOF | |
890 | fi | |
891 | ||
892 | if test "$ac_init_help" = "recursive"; then | |
893 | # If there are subdirs, report their specific --help. | |
894 | ac_popdir=`pwd` | |
895 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
896 | test -d $ac_dir || continue | |
897 | ac_builddir=. | |
898 | ||
899 | if test "$ac_dir" != .; then | |
900 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
901 | # A "../" for each directory in $ac_dir_suffix. | |
902 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
903 | else | |
904 | ac_dir_suffix= ac_top_builddir= | |
905 | fi | |
906 | ||
907 | case $srcdir in | |
908 | .) # No --srcdir option. We are building in place. | |
909 | ac_srcdir=. | |
910 | if test -z "$ac_top_builddir"; then | |
911 | ac_top_srcdir=. | |
912 | else | |
913 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
914 | fi ;; | |
915 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
916 | ac_srcdir=$srcdir$ac_dir_suffix; | |
917 | ac_top_srcdir=$srcdir ;; | |
918 | *) # Relative path. | |
919 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
920 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6be7c12c AO |
921 | esac |
922 | ||
5464f5a1 NN |
923 | # Do not use `cd foo && pwd` to compute absolute paths, because |
924 | # the directories may not exist. | |
925 | case `pwd` in | |
926 | .) ac_abs_builddir="$ac_dir";; | |
927 | *) | |
928 | case "$ac_dir" in | |
929 | .) ac_abs_builddir=`pwd`;; | |
930 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
931 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
932 | esac;; | |
933 | esac | |
934 | case $ac_abs_builddir in | |
935 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
936 | *) | |
937 | case ${ac_top_builddir}. in | |
938 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
939 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
940 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
941 | esac;; | |
942 | esac | |
943 | case $ac_abs_builddir in | |
944 | .) ac_abs_srcdir=$ac_srcdir;; | |
945 | *) | |
946 | case $ac_srcdir in | |
947 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
948 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
949 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
950 | esac;; | |
951 | esac | |
952 | case $ac_abs_builddir in | |
953 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
954 | *) | |
955 | case $ac_top_srcdir in | |
956 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
957 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
958 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
959 | esac;; | |
960 | esac | |
6be7c12c | 961 | |
5464f5a1 NN |
962 | cd $ac_dir |
963 | # Check for guested configure; otherwise get Cygnus style configure. | |
964 | if test -f $ac_srcdir/configure.gnu; then | |
965 | echo | |
966 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
967 | elif test -f $ac_srcdir/configure; then | |
968 | echo | |
969 | $SHELL $ac_srcdir/configure --help=recursive | |
970 | elif test -f $ac_srcdir/configure.ac || | |
971 | test -f $ac_srcdir/configure.in; then | |
972 | echo | |
973 | $ac_configure --help | |
974 | else | |
975 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
976 | fi | |
8fb84ecc | 977 | cd $ac_popdir |
5464f5a1 | 978 | done |
6be7c12c AO |
979 | fi |
980 | ||
5464f5a1 NN |
981 | test -n "$ac_init_help" && exit 0 |
982 | if $ac_init_version; then | |
983 | cat <<\_ACEOF | |
6be7c12c | 984 | |
5464f5a1 NN |
985 | Copyright (C) 2003 Free Software Foundation, Inc. |
986 | This configure script is free software; the Free Software Foundation | |
987 | gives unlimited permission to copy, distribute and modify it. | |
988 | _ACEOF | |
989 | exit 0 | |
990 | fi | |
991 | exec 5>config.log | |
992 | cat >&5 <<_ACEOF | |
993 | This file contains any messages produced by compilers while | |
994 | running configure, to aid debugging if configure makes a mistake. | |
6be7c12c | 995 | |
5464f5a1 NN |
996 | It was created by $as_me, which was |
997 | generated by GNU Autoconf 2.59. Invocation command line was | |
6be7c12c | 998 | |
5464f5a1 | 999 | $ $0 $@ |
6be7c12c | 1000 | |
5464f5a1 NN |
1001 | _ACEOF |
1002 | { | |
1003 | cat <<_ASUNAME | |
1004 | ## --------- ## | |
1005 | ## Platform. ## | |
1006 | ## --------- ## | |
1007 | ||
1008 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1009 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1010 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1011 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1012 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1015 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1016 | ||
1017 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1018 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1019 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1020 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1021 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1022 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1023 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1024 | ||
1025 | _ASUNAME | |
1026 | ||
1027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1028 | for as_dir in $PATH | |
1029 | do | |
1030 | IFS=$as_save_IFS | |
1031 | test -z "$as_dir" && as_dir=. | |
1032 | echo "PATH: $as_dir" | |
1033 | done | |
6be7c12c | 1034 | |
5464f5a1 | 1035 | } >&5 |
66e25bab | 1036 | |
5464f5a1 | 1037 | cat >&5 <<_ACEOF |
b3baf5d0 | 1038 | |
6be7c12c | 1039 | |
5464f5a1 NN |
1040 | ## ----------- ## |
1041 | ## Core tests. ## | |
1042 | ## ----------- ## | |
252b5132 | 1043 | |
5464f5a1 | 1044 | _ACEOF |
c5d1701e | 1045 | |
6be7c12c | 1046 | |
5464f5a1 NN |
1047 | # Keep a trace of the command line. |
1048 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1049 | # Strip out --silent because we don't want to record it for future runs. | |
1050 | # Also quote any args containing shell meta-characters. | |
1051 | # Make two passes to allow for proper duplicate-argument suppression. | |
1052 | ac_configure_args= | |
1053 | ac_configure_args0= | |
1054 | ac_configure_args1= | |
1055 | ac_sep= | |
1056 | ac_must_keep_next=false | |
1057 | for ac_pass in 1 2 | |
1058 | do | |
1059 | for ac_arg | |
1060 | do | |
1061 | case $ac_arg in | |
1062 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1064 | | -silent | --silent | --silen | --sile | --sil) | |
1065 | continue ;; | |
1066 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1067 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1068 | esac | |
1069 | case $ac_pass in | |
1070 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1071 | 2) | |
1072 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1073 | if test $ac_must_keep_next = true; then | |
1074 | ac_must_keep_next=false # Got value, back to normal. | |
1075 | else | |
1076 | case $ac_arg in | |
1077 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1078 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1079 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1080 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1081 | case "$ac_configure_args0 " in | |
1082 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1083 | esac | |
1084 | ;; | |
1085 | -* ) ac_must_keep_next=true ;; | |
1086 | esac | |
1087 | fi | |
1088 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1089 | # Get rid of the leading space. | |
1090 | ac_sep=" " | |
1091 | ;; | |
1092 | esac | |
1093 | done | |
1094 | done | |
1095 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1096 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1097 | ||
1098 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1099 | # config.log. We remove comments because anyway the quotes in there | |
1100 | # would cause problems or look ugly. | |
1101 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1102 | # such as our DU 5.0 friend, will then `close' the trap. | |
1103 | trap 'exit_status=$? | |
1104 | # Save into config.log some information that might help in debugging. | |
1105 | { | |
1106 | echo | |
1107 | ||
1108 | cat <<\_ASBOX | |
1109 | ## ---------------- ## | |
1110 | ## Cache variables. ## | |
1111 | ## ---------------- ## | |
1112 | _ASBOX | |
1113 | echo | |
1114 | # The following way of writing the cache mishandles newlines in values, | |
1115 | { | |
1116 | (set) 2>&1 | | |
1117 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1118 | *ac_space=\ *) | |
1119 | sed -n \ | |
1120 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1122 | ;; | |
1123 | *) | |
1124 | sed -n \ | |
1125 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1126 | ;; | |
1127 | esac; | |
1128 | } | |
1129 | echo | |
1130 | ||
1131 | cat <<\_ASBOX | |
1132 | ## ----------------- ## | |
1133 | ## Output variables. ## | |
1134 | ## ----------------- ## | |
1135 | _ASBOX | |
1136 | echo | |
1137 | for ac_var in $ac_subst_vars | |
1138 | do | |
1139 | eval ac_val=$`echo $ac_var` | |
1140 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1141 | done | sort | |
1142 | echo | |
1143 | ||
1144 | if test -n "$ac_subst_files"; then | |
1145 | cat <<\_ASBOX | |
1146 | ## ------------- ## | |
1147 | ## Output files. ## | |
1148 | ## ------------- ## | |
1149 | _ASBOX | |
1150 | echo | |
1151 | for ac_var in $ac_subst_files | |
1152 | do | |
1153 | eval ac_val=$`echo $ac_var` | |
1154 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1155 | done | sort | |
1156 | echo | |
1157 | fi | |
1158 | ||
1159 | if test -s confdefs.h; then | |
1160 | cat <<\_ASBOX | |
1161 | ## ----------- ## | |
1162 | ## confdefs.h. ## | |
1163 | ## ----------- ## | |
1164 | _ASBOX | |
1165 | echo | |
1166 | sed "/^$/d" confdefs.h | sort | |
1167 | echo | |
1168 | fi | |
1169 | test "$ac_signal" != 0 && | |
1170 | echo "$as_me: caught signal $ac_signal" | |
1171 | echo "$as_me: exit $exit_status" | |
1172 | } >&5 | |
1173 | rm -f core *.core && | |
1174 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1175 | exit $exit_status | |
1176 | ' 0 | |
1177 | for ac_signal in 1 2 13 15; do | |
1178 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1179 | done | |
1180 | ac_signal=0 | |
1181 | ||
1182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1183 | rm -rf conftest* confdefs.h | |
1184 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1185 | echo >confdefs.h | |
1186 | ||
1187 | # Predefined preprocessor variables. | |
1188 | ||
1189 | cat >>confdefs.h <<_ACEOF | |
1190 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | # Let the site file select an alternate cache file if it wants to. | |
1215 | # Prefer explicitly selected file to automatically selected ones. | |
1216 | if test -z "$CONFIG_SITE"; then | |
1217 | if test "x$prefix" != xNONE; then | |
1218 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1219 | else | |
1220 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1221 | fi | |
1222 | fi | |
1223 | for ac_site_file in $CONFIG_SITE; do | |
1224 | if test -r "$ac_site_file"; then | |
1225 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1226 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1227 | sed 's/^/| /' "$ac_site_file" >&5 | |
1228 | . "$ac_site_file" | |
1229 | fi | |
1230 | done | |
1231 | ||
1232 | if test -r "$cache_file"; then | |
1233 | # Some versions of bash will fail to source /dev/null (special | |
1234 | # files actually), so we avoid doing that. | |
1235 | if test -f "$cache_file"; then | |
1236 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1237 | echo "$as_me: loading cache $cache_file" >&6;} | |
1238 | case $cache_file in | |
1239 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1240 | *) . ./$cache_file;; | |
1241 | esac | |
1242 | fi | |
1243 | else | |
1244 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1245 | echo "$as_me: creating cache $cache_file" >&6;} | |
1246 | >$cache_file | |
1247 | fi | |
1248 | ||
1249 | # Check that the precious variables saved in the cache have kept the same | |
1250 | # value. | |
1251 | ac_cache_corrupted=false | |
1252 | for ac_var in `(set) 2>&1 | | |
1253 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1254 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1255 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1256 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1257 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1258 | case $ac_old_set,$ac_new_set in | |
1259 | set,) | |
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1261 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1262 | ac_cache_corrupted=: ;; | |
1263 | ,set) | |
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1265 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1266 | ac_cache_corrupted=: ;; | |
1267 | ,);; | |
1268 | *) | |
1269 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1270 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1271 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1272 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1273 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1274 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1275 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1276 | ac_cache_corrupted=: | |
1277 | fi;; | |
1278 | esac | |
1279 | # Pass precious variables to config.status. | |
1280 | if test "$ac_new_set" = set; then | |
1281 | case $ac_new_val in | |
1282 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1283 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1284 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1285 | esac | |
1286 | case " $ac_configure_args " in | |
1287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1288 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1289 | esac | |
1290 | fi | |
1291 | done | |
1292 | if $ac_cache_corrupted; then | |
1293 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1294 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1295 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1296 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1297 | { (exit 1); exit 1; }; } | |
1298 | fi | |
1299 | ||
1300 | ac_ext=c | |
1301 | ac_cpp='$CPP $CPPFLAGS' | |
1302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ac_aux_dir= | |
1327 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1328 | if test -f $ac_dir/install-sh; then | |
1329 | ac_aux_dir=$ac_dir | |
1330 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1331 | break | |
1332 | elif test -f $ac_dir/install.sh; then | |
1333 | ac_aux_dir=$ac_dir | |
1334 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1335 | break | |
1336 | elif test -f $ac_dir/shtool; then | |
1337 | ac_aux_dir=$ac_dir | |
1338 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1339 | break | |
1340 | fi | |
1341 | done | |
1342 | if test -z "$ac_aux_dir"; then | |
1343 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1344 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1345 | { (exit 1); exit 1; }; } | |
1346 | fi | |
1347 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1348 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1349 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1350 | ||
1351 | # Make sure we can run config.sub. | |
1352 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1353 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1354 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1355 | { (exit 1); exit 1; }; } | |
1356 | ||
1357 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1358 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1359 | if test "${ac_cv_build+set}" = set; then | |
1360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1361 | else | |
1362 | ac_cv_build_alias=$build_alias | |
1363 | test -z "$ac_cv_build_alias" && | |
1364 | ac_cv_build_alias=`$ac_config_guess` | |
1365 | test -z "$ac_cv_build_alias" && | |
1366 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1367 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1368 | { (exit 1); exit 1; }; } | |
1369 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1370 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1371 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1372 | { (exit 1); exit 1; }; } | |
1373 | ||
1374 | fi | |
1375 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1376 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1377 | build=$ac_cv_build | |
1378 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1379 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1380 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1381 | ||
1382 | ||
1383 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1384 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1385 | if test "${ac_cv_host+set}" = set; then | |
1386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1387 | else | |
1388 | ac_cv_host_alias=$host_alias | |
1389 | test -z "$ac_cv_host_alias" && | |
1390 | ac_cv_host_alias=$ac_cv_build_alias | |
1391 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1392 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1393 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1394 | { (exit 1); exit 1; }; } | |
1395 | ||
1396 | fi | |
1397 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1398 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1399 | host=$ac_cv_host | |
1400 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1401 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1402 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1403 | ||
1404 | ||
1405 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1406 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1407 | if test "${ac_cv_target+set}" = set; then | |
1408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1409 | else | |
1410 | ac_cv_target_alias=$target_alias | |
1411 | test "x$ac_cv_target_alias" = "x" && | |
1412 | ac_cv_target_alias=$ac_cv_host_alias | |
1413 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1414 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1415 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1416 | { (exit 1); exit 1; }; } | |
1417 | ||
1418 | fi | |
1419 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1420 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1421 | target=$ac_cv_target | |
1422 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1423 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1424 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1425 | ||
1426 | ||
1427 | # The aliases save the names the user supplied, while $host etc. | |
1428 | # will get canonicalized. | |
1429 | test -n "$target_alias" && | |
1430 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1431 | NONENONEs,x,x, && | |
1432 | program_prefix=${target_alias}- | |
1433 | ac_ext=c | |
1434 | ac_cpp='$CPP $CPPFLAGS' | |
1435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1438 | if test -n "$ac_tool_prefix"; then | |
1439 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1440 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1441 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1443 | if test "${ac_cv_prog_CC+set}" = set; then | |
1444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1445 | else | |
1446 | if test -n "$CC"; then | |
1447 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1448 | else | |
1449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1450 | for as_dir in $PATH | |
1451 | do | |
1452 | IFS=$as_save_IFS | |
1453 | test -z "$as_dir" && as_dir=. | |
1454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1455 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1456 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1458 | break 2 | |
1459 | fi | |
1460 | done | |
1461 | done | |
1462 | ||
1463 | fi | |
1464 | fi | |
1465 | CC=$ac_cv_prog_CC | |
1466 | if test -n "$CC"; then | |
1467 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1468 | echo "${ECHO_T}$CC" >&6 | |
1469 | else | |
1470 | echo "$as_me:$LINENO: result: no" >&5 | |
1471 | echo "${ECHO_T}no" >&6 | |
1472 | fi | |
1473 | ||
1474 | fi | |
1475 | if test -z "$ac_cv_prog_CC"; then | |
1476 | ac_ct_CC=$CC | |
1477 | # Extract the first word of "gcc", so it can be a program name with args. | |
1478 | set dummy gcc; ac_word=$2 | |
1479 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1481 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1483 | else | |
1484 | if test -n "$ac_ct_CC"; then | |
1485 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1486 | else | |
1487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1488 | for as_dir in $PATH | |
1489 | do | |
1490 | IFS=$as_save_IFS | |
1491 | test -z "$as_dir" && as_dir=. | |
1492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1494 | ac_cv_prog_ac_ct_CC="gcc" | |
1495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1496 | break 2 | |
1497 | fi | |
1498 | done | |
1499 | done | |
1500 | ||
1501 | fi | |
1502 | fi | |
1503 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1504 | if test -n "$ac_ct_CC"; then | |
1505 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1506 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1507 | else | |
1508 | echo "$as_me:$LINENO: result: no" >&5 | |
1509 | echo "${ECHO_T}no" >&6 | |
1510 | fi | |
1511 | ||
1512 | CC=$ac_ct_CC | |
1513 | else | |
1514 | CC="$ac_cv_prog_CC" | |
1515 | fi | |
1516 | ||
1517 | if test -z "$CC"; then | |
1518 | if test -n "$ac_tool_prefix"; then | |
1519 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1520 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1521 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1523 | if test "${ac_cv_prog_CC+set}" = set; then | |
1524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1525 | else | |
1526 | if test -n "$CC"; then | |
1527 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1528 | else | |
1529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1530 | for as_dir in $PATH | |
1531 | do | |
1532 | IFS=$as_save_IFS | |
1533 | test -z "$as_dir" && as_dir=. | |
1534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1536 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1538 | break 2 | |
1539 | fi | |
1540 | done | |
1541 | done | |
1542 | ||
1543 | fi | |
1544 | fi | |
1545 | CC=$ac_cv_prog_CC | |
1546 | if test -n "$CC"; then | |
1547 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1548 | echo "${ECHO_T}$CC" >&6 | |
1549 | else | |
1550 | echo "$as_me:$LINENO: result: no" >&5 | |
1551 | echo "${ECHO_T}no" >&6 | |
1552 | fi | |
1553 | ||
1554 | fi | |
1555 | if test -z "$ac_cv_prog_CC"; then | |
1556 | ac_ct_CC=$CC | |
1557 | # Extract the first word of "cc", so it can be a program name with args. | |
1558 | set dummy cc; ac_word=$2 | |
1559 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1561 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1563 | else | |
1564 | if test -n "$ac_ct_CC"; then | |
1565 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1566 | else | |
1567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1568 | for as_dir in $PATH | |
1569 | do | |
1570 | IFS=$as_save_IFS | |
1571 | test -z "$as_dir" && as_dir=. | |
1572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1574 | ac_cv_prog_ac_ct_CC="cc" | |
1575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1576 | break 2 | |
1577 | fi | |
1578 | done | |
1579 | done | |
1580 | ||
1581 | fi | |
1582 | fi | |
1583 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1584 | if test -n "$ac_ct_CC"; then | |
1585 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1586 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1587 | else | |
1588 | echo "$as_me:$LINENO: result: no" >&5 | |
1589 | echo "${ECHO_T}no" >&6 | |
1590 | fi | |
1591 | ||
1592 | CC=$ac_ct_CC | |
1593 | else | |
1594 | CC="$ac_cv_prog_CC" | |
1595 | fi | |
1596 | ||
1597 | fi | |
1598 | if test -z "$CC"; then | |
1599 | # Extract the first word of "cc", so it can be a program name with args. | |
1600 | set dummy cc; ac_word=$2 | |
1601 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1603 | if test "${ac_cv_prog_CC+set}" = set; then | |
1604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1605 | else | |
1606 | if test -n "$CC"; then | |
1607 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1608 | else | |
1609 | ac_prog_rejected=no | |
1610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1611 | for as_dir in $PATH | |
1612 | do | |
1613 | IFS=$as_save_IFS | |
1614 | test -z "$as_dir" && as_dir=. | |
1615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1616 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1617 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1618 | ac_prog_rejected=yes | |
1619 | continue | |
1620 | fi | |
1621 | ac_cv_prog_CC="cc" | |
1622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1623 | break 2 | |
1624 | fi | |
1625 | done | |
1626 | done | |
1627 | ||
1628 | if test $ac_prog_rejected = yes; then | |
1629 | # We found a bogon in the path, so make sure we never use it. | |
1630 | set dummy $ac_cv_prog_CC | |
1631 | shift | |
1632 | if test $# != 0; then | |
1633 | # We chose a different compiler from the bogus one. | |
1634 | # However, it has the same basename, so the bogon will be chosen | |
1635 | # first if we set CC to just the basename; use the full file name. | |
1636 | shift | |
1637 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1638 | fi | |
1639 | fi | |
1640 | fi | |
1641 | fi | |
1642 | CC=$ac_cv_prog_CC | |
1643 | if test -n "$CC"; then | |
1644 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1645 | echo "${ECHO_T}$CC" >&6 | |
1646 | else | |
1647 | echo "$as_me:$LINENO: result: no" >&5 | |
1648 | echo "${ECHO_T}no" >&6 | |
1649 | fi | |
1650 | ||
1651 | fi | |
1652 | if test -z "$CC"; then | |
1653 | if test -n "$ac_tool_prefix"; then | |
1654 | for ac_prog in cl | |
1655 | do | |
1656 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1657 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1658 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1660 | if test "${ac_cv_prog_CC+set}" = set; then | |
1661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1662 | else | |
1663 | if test -n "$CC"; then | |
1664 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1665 | else | |
1666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1667 | for as_dir in $PATH | |
1668 | do | |
1669 | IFS=$as_save_IFS | |
1670 | test -z "$as_dir" && as_dir=. | |
1671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1672 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1673 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1675 | break 2 | |
1676 | fi | |
1677 | done | |
1678 | done | |
1679 | ||
1680 | fi | |
1681 | fi | |
1682 | CC=$ac_cv_prog_CC | |
1683 | if test -n "$CC"; then | |
1684 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1685 | echo "${ECHO_T}$CC" >&6 | |
1686 | else | |
1687 | echo "$as_me:$LINENO: result: no" >&5 | |
1688 | echo "${ECHO_T}no" >&6 | |
1689 | fi | |
1690 | ||
1691 | test -n "$CC" && break | |
1692 | done | |
1693 | fi | |
1694 | if test -z "$CC"; then | |
1695 | ac_ct_CC=$CC | |
1696 | for ac_prog in cl | |
1697 | do | |
1698 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1699 | set dummy $ac_prog; ac_word=$2 | |
1700 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1702 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1704 | else | |
1705 | if test -n "$ac_ct_CC"; then | |
1706 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1707 | else | |
1708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1709 | for as_dir in $PATH | |
1710 | do | |
1711 | IFS=$as_save_IFS | |
1712 | test -z "$as_dir" && as_dir=. | |
1713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1714 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1715 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1717 | break 2 | |
1718 | fi | |
1719 | done | |
1720 | done | |
1721 | ||
1722 | fi | |
1723 | fi | |
1724 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1725 | if test -n "$ac_ct_CC"; then | |
1726 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1727 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1728 | else | |
1729 | echo "$as_me:$LINENO: result: no" >&5 | |
1730 | echo "${ECHO_T}no" >&6 | |
1731 | fi | |
1732 | ||
1733 | test -n "$ac_ct_CC" && break | |
1734 | done | |
1735 | ||
1736 | CC=$ac_ct_CC | |
1737 | fi | |
1738 | ||
1739 | fi | |
1740 | ||
1741 | ||
1742 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1743 | See \`config.log' for more details." >&5 | |
1744 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1745 | See \`config.log' for more details." >&2;} | |
1746 | { (exit 1); exit 1; }; } | |
1747 | ||
1748 | # Provide some information about the compiler. | |
1749 | echo "$as_me:$LINENO:" \ | |
1750 | "checking for C compiler version" >&5 | |
1751 | ac_compiler=`set X $ac_compile; echo $2` | |
1752 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1753 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1754 | ac_status=$? | |
1755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1756 | (exit $ac_status); } | |
1757 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1758 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1759 | ac_status=$? | |
1760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1761 | (exit $ac_status); } | |
1762 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1763 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1764 | ac_status=$? | |
1765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1766 | (exit $ac_status); } | |
1767 | ||
1768 | cat >conftest.$ac_ext <<_ACEOF | |
1769 | /* confdefs.h. */ | |
1770 | _ACEOF | |
1771 | cat confdefs.h >>conftest.$ac_ext | |
1772 | cat >>conftest.$ac_ext <<_ACEOF | |
1773 | /* end confdefs.h. */ | |
1774 | ||
1775 | int | |
1776 | main () | |
1777 | { | |
1778 | ||
1779 | ; | |
1780 | return 0; | |
1781 | } | |
1782 | _ACEOF | |
1783 | ac_clean_files_save=$ac_clean_files | |
1784 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1785 | # Try to create an executable without -o first, disregard a.out. | |
1786 | # It will help us diagnose broken compilers, and finding out an intuition | |
1787 | # of exeext. | |
1788 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1789 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1790 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1791 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1792 | (eval $ac_link_default) 2>&5 | |
1793 | ac_status=$? | |
1794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1795 | (exit $ac_status); }; then | |
1796 | # Find the output, starting from the most likely. This scheme is | |
1797 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1798 | # resort. | |
1799 | ||
1800 | # Be careful to initialize this variable, since it used to be cached. | |
1801 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1802 | ac_cv_exeext= | |
1803 | # b.out is created by i960 compilers. | |
1804 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1805 | do | |
1806 | test -f "$ac_file" || continue | |
1807 | case $ac_file in | |
1808 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1809 | ;; | |
1810 | conftest.$ac_ext ) | |
1811 | # This is the source file. | |
1812 | ;; | |
1813 | [ab].out ) | |
1814 | # We found the default executable, but exeext='' is most | |
1815 | # certainly right. | |
1816 | break;; | |
1817 | *.* ) | |
1818 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1819 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1820 | # but it would be cool to find out if it's true. Does anybody | |
1821 | # maintain Libtool? --akim. | |
1822 | export ac_cv_exeext | |
1823 | break;; | |
1824 | * ) | |
1825 | break;; | |
1826 | esac | |
1827 | done | |
1828 | else | |
1829 | echo "$as_me: failed program was:" >&5 | |
1830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1831 | ||
1832 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1833 | See \`config.log' for more details." >&5 | |
1834 | echo "$as_me: error: C compiler cannot create executables | |
1835 | See \`config.log' for more details." >&2;} | |
1836 | { (exit 77); exit 77; }; } | |
1837 | fi | |
1838 | ||
1839 | ac_exeext=$ac_cv_exeext | |
1840 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1841 | echo "${ECHO_T}$ac_file" >&6 | |
1842 | ||
1843 | # Check the compiler produces executables we can run. If not, either | |
1844 | # the compiler is broken, or we cross compile. | |
1845 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1846 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1847 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1848 | # If not cross compiling, check that we can run a simple program. | |
1849 | if test "$cross_compiling" != yes; then | |
1850 | if { ac_try='./$ac_file' | |
1851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1852 | (eval $ac_try) 2>&5 | |
1853 | ac_status=$? | |
1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1855 | (exit $ac_status); }; }; then | |
1856 | cross_compiling=no | |
1857 | else | |
1858 | if test "$cross_compiling" = maybe; then | |
1859 | cross_compiling=yes | |
1860 | else | |
1861 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1862 | If you meant to cross compile, use \`--host'. | |
1863 | See \`config.log' for more details." >&5 | |
1864 | echo "$as_me: error: cannot run C compiled programs. | |
1865 | If you meant to cross compile, use \`--host'. | |
1866 | See \`config.log' for more details." >&2;} | |
1867 | { (exit 1); exit 1; }; } | |
1868 | fi | |
1869 | fi | |
1870 | fi | |
1871 | echo "$as_me:$LINENO: result: yes" >&5 | |
1872 | echo "${ECHO_T}yes" >&6 | |
1873 | ||
1874 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1875 | ac_clean_files=$ac_clean_files_save | |
1876 | # Check the compiler produces executables we can run. If not, either | |
1877 | # the compiler is broken, or we cross compile. | |
1878 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1879 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1880 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1881 | echo "${ECHO_T}$cross_compiling" >&6 | |
1882 | ||
1883 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1884 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1886 | (eval $ac_link) 2>&5 | |
1887 | ac_status=$? | |
1888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1889 | (exit $ac_status); }; then | |
1890 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1891 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1892 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1893 | # `rm'. | |
1894 | for ac_file in conftest.exe conftest conftest.*; do | |
1895 | test -f "$ac_file" || continue | |
1896 | case $ac_file in | |
1897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1898 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1899 | export ac_cv_exeext | |
1900 | break;; | |
1901 | * ) break;; | |
1902 | esac | |
1903 | done | |
1904 | else | |
1905 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1906 | See \`config.log' for more details." >&5 | |
1907 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1908 | See \`config.log' for more details." >&2;} | |
1909 | { (exit 1); exit 1; }; } | |
1910 | fi | |
1911 | ||
1912 | rm -f conftest$ac_cv_exeext | |
1913 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1914 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1915 | ||
1916 | rm -f conftest.$ac_ext | |
1917 | EXEEXT=$ac_cv_exeext | |
1918 | ac_exeext=$EXEEXT | |
1919 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1920 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1921 | if test "${ac_cv_objext+set}" = set; then | |
1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1923 | else | |
1924 | cat >conftest.$ac_ext <<_ACEOF | |
1925 | /* confdefs.h. */ | |
1926 | _ACEOF | |
1927 | cat confdefs.h >>conftest.$ac_ext | |
1928 | cat >>conftest.$ac_ext <<_ACEOF | |
1929 | /* end confdefs.h. */ | |
1930 | ||
1931 | int | |
1932 | main () | |
1933 | { | |
1934 | ||
1935 | ; | |
1936 | return 0; | |
1937 | } | |
1938 | _ACEOF | |
1939 | rm -f conftest.o conftest.obj | |
1940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1941 | (eval $ac_compile) 2>&5 | |
1942 | ac_status=$? | |
1943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1944 | (exit $ac_status); }; then | |
1945 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1946 | case $ac_file in | |
1947 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1948 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1949 | break;; | |
1950 | esac | |
1951 | done | |
1952 | else | |
1953 | echo "$as_me: failed program was:" >&5 | |
1954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1955 | ||
1956 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1957 | See \`config.log' for more details." >&5 | |
1958 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1959 | See \`config.log' for more details." >&2;} | |
1960 | { (exit 1); exit 1; }; } | |
1961 | fi | |
1962 | ||
1963 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1964 | fi | |
1965 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1966 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1967 | OBJEXT=$ac_cv_objext | |
1968 | ac_objext=$OBJEXT | |
1969 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1970 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1971 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1973 | else | |
1974 | cat >conftest.$ac_ext <<_ACEOF | |
1975 | /* confdefs.h. */ | |
1976 | _ACEOF | |
1977 | cat confdefs.h >>conftest.$ac_ext | |
1978 | cat >>conftest.$ac_ext <<_ACEOF | |
1979 | /* end confdefs.h. */ | |
1980 | ||
1981 | int | |
1982 | main () | |
1983 | { | |
1984 | #ifndef __GNUC__ | |
1985 | choke me | |
1986 | #endif | |
1987 | ||
1988 | ; | |
1989 | return 0; | |
1990 | } | |
1991 | _ACEOF | |
1992 | rm -f conftest.$ac_objext | |
1993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1994 | (eval $ac_compile) 2>conftest.er1 | |
1995 | ac_status=$? | |
1996 | grep -v '^ *+' conftest.er1 >conftest.err | |
1997 | rm -f conftest.er1 | |
1998 | cat conftest.err >&5 | |
1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2000 | (exit $ac_status); } && | |
8fb84ecc AC |
2001 | { ac_try='test -z "$ac_c_werror_flag" |
2002 | || test ! -s conftest.err' | |
5464f5a1 NN |
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); }; } && | |
2008 | { ac_try='test -s conftest.$ac_objext' | |
2009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2010 | (eval $ac_try) 2>&5 | |
2011 | ac_status=$? | |
2012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2013 | (exit $ac_status); }; }; then | |
2014 | ac_compiler_gnu=yes | |
2015 | else | |
2016 | echo "$as_me: failed program was:" >&5 | |
2017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2018 | ||
2019 | ac_compiler_gnu=no | |
2020 | fi | |
2021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2022 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2023 | ||
2024 | fi | |
2025 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2026 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2027 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2028 | ac_test_CFLAGS=${CFLAGS+set} | |
2029 | ac_save_CFLAGS=$CFLAGS | |
2030 | CFLAGS="-g" | |
2031 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2032 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2033 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2035 | else | |
2036 | cat >conftest.$ac_ext <<_ACEOF | |
2037 | /* confdefs.h. */ | |
2038 | _ACEOF | |
2039 | cat confdefs.h >>conftest.$ac_ext | |
2040 | cat >>conftest.$ac_ext <<_ACEOF | |
2041 | /* end confdefs.h. */ | |
2042 | ||
2043 | int | |
2044 | main () | |
2045 | { | |
2046 | ||
2047 | ; | |
2048 | return 0; | |
2049 | } | |
2050 | _ACEOF | |
2051 | rm -f conftest.$ac_objext | |
2052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2053 | (eval $ac_compile) 2>conftest.er1 | |
2054 | ac_status=$? | |
2055 | grep -v '^ *+' conftest.er1 >conftest.err | |
2056 | rm -f conftest.er1 | |
2057 | cat conftest.err >&5 | |
2058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2059 | (exit $ac_status); } && | |
8fb84ecc AC |
2060 | { ac_try='test -z "$ac_c_werror_flag" |
2061 | || test ! -s conftest.err' | |
5464f5a1 NN |
2062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2063 | (eval $ac_try) 2>&5 | |
2064 | ac_status=$? | |
2065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2066 | (exit $ac_status); }; } && | |
2067 | { ac_try='test -s conftest.$ac_objext' | |
2068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2069 | (eval $ac_try) 2>&5 | |
2070 | ac_status=$? | |
2071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2072 | (exit $ac_status); }; }; then | |
2073 | ac_cv_prog_cc_g=yes | |
2074 | else | |
2075 | echo "$as_me: failed program was:" >&5 | |
2076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2077 | ||
2078 | ac_cv_prog_cc_g=no | |
2079 | fi | |
2080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2081 | fi | |
2082 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2083 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2084 | if test "$ac_test_CFLAGS" = set; then | |
2085 | CFLAGS=$ac_save_CFLAGS | |
2086 | elif test $ac_cv_prog_cc_g = yes; then | |
2087 | if test "$GCC" = yes; then | |
2088 | CFLAGS="-g -O2" | |
2089 | else | |
2090 | CFLAGS="-g" | |
2091 | fi | |
2092 | else | |
2093 | if test "$GCC" = yes; then | |
2094 | CFLAGS="-O2" | |
2095 | else | |
2096 | CFLAGS= | |
2097 | fi | |
2098 | fi | |
2099 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2100 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2101 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2103 | else | |
2104 | ac_cv_prog_cc_stdc=no | |
2105 | ac_save_CC=$CC | |
2106 | cat >conftest.$ac_ext <<_ACEOF | |
2107 | /* confdefs.h. */ | |
2108 | _ACEOF | |
2109 | cat confdefs.h >>conftest.$ac_ext | |
2110 | cat >>conftest.$ac_ext <<_ACEOF | |
2111 | /* end confdefs.h. */ | |
2112 | #include <stdarg.h> | |
2113 | #include <stdio.h> | |
2114 | #include <sys/types.h> | |
2115 | #include <sys/stat.h> | |
2116 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2117 | struct buf { int x; }; | |
2118 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2119 | static char *e (p, i) | |
2120 | char **p; | |
2121 | int i; | |
2122 | { | |
2123 | return p[i]; | |
2124 | } | |
2125 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2126 | { | |
2127 | char *s; | |
2128 | va_list v; | |
2129 | va_start (v,p); | |
2130 | s = g (p, va_arg (v,int)); | |
2131 | va_end (v); | |
2132 | return s; | |
2133 | } | |
2134 | ||
2135 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2136 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2137 | These don't provoke an error unfortunately, instead are silently treated | |
2138 | as 'x'. The following induces an error, until -std1 is added to get | |
2139 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2140 | array size at least. It's necessary to write '\x00'==0 to get something | |
2141 | that's true only with -std1. */ | |
2142 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2143 | ||
2144 | int test (int i, double x); | |
2145 | struct s1 {int (*f) (int a);}; | |
2146 | struct s2 {int (*f) (double a);}; | |
2147 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2148 | int argc; | |
2149 | char **argv; | |
2150 | int | |
2151 | main () | |
2152 | { | |
2153 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2154 | ; | |
2155 | return 0; | |
2156 | } | |
2157 | _ACEOF | |
2158 | # Don't try gcc -ansi; that turns off useful extensions and | |
2159 | # breaks some systems' header files. | |
2160 | # AIX -qlanglvl=ansi | |
2161 | # Ultrix and OSF/1 -std1 | |
2162 | # HP-UX 10.20 and later -Ae | |
2163 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2164 | # SVR4 -Xc -D__EXTENSIONS__ | |
2165 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2166 | do | |
2167 | CC="$ac_save_CC $ac_arg" | |
2168 | rm -f conftest.$ac_objext | |
2169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2170 | (eval $ac_compile) 2>conftest.er1 | |
2171 | ac_status=$? | |
2172 | grep -v '^ *+' conftest.er1 >conftest.err | |
2173 | rm -f conftest.er1 | |
2174 | cat conftest.err >&5 | |
2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2176 | (exit $ac_status); } && | |
8fb84ecc AC |
2177 | { ac_try='test -z "$ac_c_werror_flag" |
2178 | || test ! -s conftest.err' | |
5464f5a1 NN |
2179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2180 | (eval $ac_try) 2>&5 | |
2181 | ac_status=$? | |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); }; } && | |
2184 | { ac_try='test -s conftest.$ac_objext' | |
2185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2186 | (eval $ac_try) 2>&5 | |
2187 | ac_status=$? | |
2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2189 | (exit $ac_status); }; }; then | |
2190 | ac_cv_prog_cc_stdc=$ac_arg | |
2191 | break | |
2192 | else | |
2193 | echo "$as_me: failed program was:" >&5 | |
2194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2195 | ||
2196 | fi | |
2197 | rm -f conftest.err conftest.$ac_objext | |
2198 | done | |
2199 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2200 | CC=$ac_save_CC | |
2201 | ||
2202 | fi | |
2203 | ||
2204 | case "x$ac_cv_prog_cc_stdc" in | |
2205 | x|xno) | |
2206 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2207 | echo "${ECHO_T}none needed" >&6 ;; | |
2208 | *) | |
2209 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2210 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2211 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2212 | esac | |
2213 | ||
2214 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2215 | # in C++ we need to declare it. In case someone uses the same compiler | |
2216 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2217 | # the declaration of exit, since it's the most demanding environment. | |
2218 | cat >conftest.$ac_ext <<_ACEOF | |
2219 | #ifndef __cplusplus | |
2220 | choke me | |
2221 | #endif | |
2222 | _ACEOF | |
2223 | rm -f conftest.$ac_objext | |
2224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2225 | (eval $ac_compile) 2>conftest.er1 | |
2226 | ac_status=$? | |
2227 | grep -v '^ *+' conftest.er1 >conftest.err | |
2228 | rm -f conftest.er1 | |
2229 | cat conftest.err >&5 | |
2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2231 | (exit $ac_status); } && | |
8fb84ecc AC |
2232 | { ac_try='test -z "$ac_c_werror_flag" |
2233 | || test ! -s conftest.err' | |
5464f5a1 NN |
2234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2235 | (eval $ac_try) 2>&5 | |
2236 | ac_status=$? | |
2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2238 | (exit $ac_status); }; } && | |
2239 | { ac_try='test -s conftest.$ac_objext' | |
2240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2241 | (eval $ac_try) 2>&5 | |
2242 | ac_status=$? | |
2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2244 | (exit $ac_status); }; }; then | |
2245 | for ac_declaration in \ | |
2246 | '' \ | |
2247 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2248 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2249 | 'extern "C" void exit (int) throw ();' \ | |
2250 | 'extern "C" void exit (int);' \ | |
2251 | 'void exit (int);' | |
2252 | do | |
2253 | cat >conftest.$ac_ext <<_ACEOF | |
2254 | /* confdefs.h. */ | |
2255 | _ACEOF | |
2256 | cat confdefs.h >>conftest.$ac_ext | |
2257 | cat >>conftest.$ac_ext <<_ACEOF | |
2258 | /* end confdefs.h. */ | |
2259 | $ac_declaration | |
2260 | #include <stdlib.h> | |
2261 | int | |
2262 | main () | |
2263 | { | |
2264 | exit (42); | |
2265 | ; | |
2266 | return 0; | |
2267 | } | |
2268 | _ACEOF | |
2269 | rm -f conftest.$ac_objext | |
2270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2271 | (eval $ac_compile) 2>conftest.er1 | |
2272 | ac_status=$? | |
2273 | grep -v '^ *+' conftest.er1 >conftest.err | |
2274 | rm -f conftest.er1 | |
2275 | cat conftest.err >&5 | |
2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2277 | (exit $ac_status); } && | |
8fb84ecc AC |
2278 | { ac_try='test -z "$ac_c_werror_flag" |
2279 | || test ! -s conftest.err' | |
5464f5a1 NN |
2280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2281 | (eval $ac_try) 2>&5 | |
2282 | ac_status=$? | |
2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2284 | (exit $ac_status); }; } && | |
2285 | { ac_try='test -s conftest.$ac_objext' | |
2286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2287 | (eval $ac_try) 2>&5 | |
2288 | ac_status=$? | |
2289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2290 | (exit $ac_status); }; }; then | |
2291 | : | |
2292 | else | |
2293 | echo "$as_me: failed program was:" >&5 | |
2294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2295 | ||
2296 | continue | |
2297 | fi | |
2298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2299 | cat >conftest.$ac_ext <<_ACEOF | |
2300 | /* confdefs.h. */ | |
2301 | _ACEOF | |
2302 | cat confdefs.h >>conftest.$ac_ext | |
2303 | cat >>conftest.$ac_ext <<_ACEOF | |
2304 | /* end confdefs.h. */ | |
2305 | $ac_declaration | |
2306 | int | |
2307 | main () | |
2308 | { | |
2309 | exit (42); | |
2310 | ; | |
2311 | return 0; | |
2312 | } | |
2313 | _ACEOF | |
2314 | rm -f conftest.$ac_objext | |
2315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2316 | (eval $ac_compile) 2>conftest.er1 | |
2317 | ac_status=$? | |
2318 | grep -v '^ *+' conftest.er1 >conftest.err | |
2319 | rm -f conftest.er1 | |
2320 | cat conftest.err >&5 | |
2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2322 | (exit $ac_status); } && | |
8fb84ecc AC |
2323 | { ac_try='test -z "$ac_c_werror_flag" |
2324 | || test ! -s conftest.err' | |
5464f5a1 NN |
2325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2326 | (eval $ac_try) 2>&5 | |
2327 | ac_status=$? | |
2328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2329 | (exit $ac_status); }; } && | |
2330 | { ac_try='test -s conftest.$ac_objext' | |
2331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2332 | (eval $ac_try) 2>&5 | |
2333 | ac_status=$? | |
2334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2335 | (exit $ac_status); }; }; then | |
2336 | break | |
2337 | else | |
2338 | echo "$as_me: failed program was:" >&5 | |
2339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2340 | ||
2341 | fi | |
2342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2343 | done | |
2344 | rm -f conftest* | |
2345 | if test -n "$ac_declaration"; then | |
2346 | echo '#ifdef __cplusplus' >>confdefs.h | |
2347 | echo $ac_declaration >>confdefs.h | |
2348 | echo '#endif' >>confdefs.h | |
2349 | fi | |
2350 | ||
2351 | else | |
2352 | echo "$as_me: failed program was:" >&5 | |
2353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2354 | ||
2355 | fi | |
2356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2357 | ac_ext=c | |
2358 | ac_cpp='$CPP $CPPFLAGS' | |
2359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2362 | ||
2363 | ||
f5385ebf AM |
2364 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2365 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2366 | if test "${ac_cv_search_strerror+set}" = set; then | |
5464f5a1 NN |
2367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2368 | else | |
f5385ebf AM |
2369 | ac_func_search_save_LIBS=$LIBS |
2370 | ac_cv_search_strerror=no | |
5464f5a1 NN |
2371 | cat >conftest.$ac_ext <<_ACEOF |
2372 | /* confdefs.h. */ | |
2373 | _ACEOF | |
2374 | cat confdefs.h >>conftest.$ac_ext | |
2375 | cat >>conftest.$ac_ext <<_ACEOF | |
2376 | /* end confdefs.h. */ | |
2377 | ||
2378 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2379 | #ifdef __cplusplus | |
2380 | extern "C" | |
2381 | #endif | |
2382 | /* We use char because int might match the return type of a gcc2 | |
2383 | builtin and then its argument prototype would still apply. */ | |
2384 | char strerror (); | |
2385 | int | |
2386 | main () | |
2387 | { | |
2388 | strerror (); | |
2389 | ; | |
2390 | return 0; | |
2391 | } | |
2392 | _ACEOF | |
2393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2395 | (eval $ac_link) 2>conftest.er1 | |
2396 | ac_status=$? | |
2397 | grep -v '^ *+' conftest.er1 >conftest.err | |
2398 | rm -f conftest.er1 | |
2399 | cat conftest.err >&5 | |
2400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2401 | (exit $ac_status); } && | |
8fb84ecc AC |
2402 | { ac_try='test -z "$ac_c_werror_flag" |
2403 | || test ! -s conftest.err' | |
5464f5a1 NN |
2404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2405 | (eval $ac_try) 2>&5 | |
2406 | ac_status=$? | |
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2408 | (exit $ac_status); }; } && | |
2409 | { ac_try='test -s conftest$ac_exeext' | |
2410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2411 | (eval $ac_try) 2>&5 | |
2412 | ac_status=$? | |
2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2414 | (exit $ac_status); }; }; then | |
f5385ebf | 2415 | ac_cv_search_strerror="none required" |
5464f5a1 NN |
2416 | else |
2417 | echo "$as_me: failed program was:" >&5 | |
2418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2419 | ||
5464f5a1 NN |
2420 | fi |
2421 | rm -f conftest.err conftest.$ac_objext \ | |
2422 | conftest$ac_exeext conftest.$ac_ext | |
f5385ebf AM |
2423 | if test "$ac_cv_search_strerror" = no; then |
2424 | for ac_lib in cposix; do | |
2425 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2426 | cat >conftest.$ac_ext <<_ACEOF | |
2427 | /* confdefs.h. */ | |
2428 | _ACEOF | |
2429 | cat confdefs.h >>conftest.$ac_ext | |
2430 | cat >>conftest.$ac_ext <<_ACEOF | |
2431 | /* end confdefs.h. */ | |
2432 | ||
2433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2434 | #ifdef __cplusplus | |
2435 | extern "C" | |
2436 | #endif | |
2437 | /* We use char because int might match the return type of a gcc2 | |
2438 | builtin and then its argument prototype would still apply. */ | |
2439 | char strerror (); | |
2440 | int | |
2441 | main () | |
2442 | { | |
2443 | strerror (); | |
2444 | ; | |
2445 | return 0; | |
2446 | } | |
2447 | _ACEOF | |
2448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2450 | (eval $ac_link) 2>conftest.er1 | |
2451 | ac_status=$? | |
2452 | grep -v '^ *+' conftest.er1 >conftest.err | |
2453 | rm -f conftest.er1 | |
2454 | cat conftest.err >&5 | |
2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2456 | (exit $ac_status); } && | |
8fb84ecc AC |
2457 | { ac_try='test -z "$ac_c_werror_flag" |
2458 | || test ! -s conftest.err' | |
f5385ebf AM |
2459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2460 | (eval $ac_try) 2>&5 | |
2461 | ac_status=$? | |
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2463 | (exit $ac_status); }; } && | |
2464 | { ac_try='test -s conftest$ac_exeext' | |
2465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2466 | (eval $ac_try) 2>&5 | |
2467 | ac_status=$? | |
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2469 | (exit $ac_status); }; }; then | |
2470 | ac_cv_search_strerror="-l$ac_lib" | |
2471 | break | |
2472 | else | |
2473 | echo "$as_me: failed program was:" >&5 | |
2474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2475 | ||
5464f5a1 | 2476 | fi |
f5385ebf AM |
2477 | rm -f conftest.err conftest.$ac_objext \ |
2478 | conftest$ac_exeext conftest.$ac_ext | |
2479 | done | |
5464f5a1 | 2480 | fi |
f5385ebf AM |
2481 | LIBS=$ac_func_search_save_LIBS |
2482 | fi | |
2483 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2484 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2485 | if test "$ac_cv_search_strerror" != no; then | |
2486 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
5464f5a1 | 2487 | |
f5385ebf | 2488 | fi |
5464f5a1 NN |
2489 | |
2490 | ||
f5385ebf | 2491 | am__api_version="1.9" |
5464f5a1 NN |
2492 | # Find a good install program. We prefer a C program (faster), |
2493 | # so one script is as good as another. But avoid the broken or | |
2494 | # incompatible versions: | |
2495 | # SysV /etc/install, /usr/sbin/install | |
2496 | # SunOS /usr/etc/install | |
2497 | # IRIX /sbin/install | |
2498 | # AIX /bin/install | |
2499 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
252b5132 RH |
2500 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2501 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2502 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 2503 | # OS/2's system install, which has a completely different semantic |
252b5132 | 2504 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
2505 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2506 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 2507 | if test -z "$INSTALL"; then |
5464f5a1 NN |
2508 | if test "${ac_cv_path_install+set}" = set; then |
2509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2510 | else |
5464f5a1 NN |
2511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2512 | for as_dir in $PATH | |
2513 | do | |
2514 | IFS=$as_save_IFS | |
2515 | test -z "$as_dir" && as_dir=. | |
2516 | # Account for people who put trailing slashes in PATH elements. | |
2517 | case $as_dir/ in | |
2518 | ./ | .// | /cC/* | \ | |
2519 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2520 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2521 | /usr/ucb/* ) ;; | |
2522 | *) | |
2523 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2524 | # Don't use installbsd from OSF since it installs stuff as root | |
2525 | # by default. | |
2526 | for ac_prog in ginstall scoinst install; do | |
2527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2528 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2529 | if test $ac_prog = install && |
5464f5a1 | 2530 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2531 | # AIX install. It has an incompatible calling convention. |
2532 | : | |
5464f5a1 NN |
2533 | elif test $ac_prog = install && |
2534 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2535 | # program-specific install script used by HP pwplus--don't use. | |
2536 | : | |
252b5132 | 2537 | else |
5464f5a1 NN |
2538 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2539 | break 3 | |
252b5132 RH |
2540 | fi |
2541 | fi | |
2542 | done | |
5464f5a1 NN |
2543 | done |
2544 | ;; | |
2545 | esac | |
2546 | done | |
2547 | ||
252b5132 RH |
2548 | |
2549 | fi | |
2550 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 2551 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2552 | else |
2553 | # As a last resort, use the slow shell script. We don't cache a | |
2554 | # path for INSTALL within a source directory, because that will | |
2555 | # break other packages using the cache if that directory is | |
2556 | # removed, or if the path is relative. | |
5464f5a1 | 2557 | INSTALL=$ac_install_sh |
252b5132 RH |
2558 | fi |
2559 | fi | |
5464f5a1 NN |
2560 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2561 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2562 | |
2563 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2564 | # It thinks the first close brace ends the variable substitution. | |
2565 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2566 | ||
5464f5a1 | 2567 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2568 | |
2569 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2570 | ||
5464f5a1 NN |
2571 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2572 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2573 | # Just in case |
2574 | sleep 1 | |
f5385ebf | 2575 | echo timestamp > conftest.file |
252b5132 RH |
2576 | # Do `set' in a subshell so we don't clobber the current shell's |
2577 | # arguments. Must try -L first in case configure is actually a | |
2578 | # symlink; some systems play weird games with the mod time of symlinks | |
2579 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2580 | # directory). | |
2581 | if ( | |
f5385ebf | 2582 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2583 | if test "$*" = "X"; then |
2584 | # -L didn't work. | |
f5385ebf | 2585 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2586 | fi |
f5385ebf AM |
2587 | rm -f conftest.file |
2588 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2589 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2590 | |
2591 | # If neither matched, then we have a broken ls. This can happen | |
2592 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2593 | # broken ls alias from the environment. This has actually | |
2594 | # happened. Such a system could not be considered "sane". | |
5464f5a1 NN |
2595 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2596 | alias in your environment" >&5 | |
2597 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2598 | alias in your environment" >&2;} | |
2599 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2600 | fi |
2601 | ||
f5385ebf | 2602 | test "$2" = conftest.file |
252b5132 RH |
2603 | ) |
2604 | then | |
2605 | # Ok. | |
2606 | : | |
2607 | else | |
5464f5a1 NN |
2608 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2609 | Check your system clock" >&5 | |
2610 | echo "$as_me: error: newly created file is older than distributed files! | |
2611 | Check your system clock" >&2;} | |
2612 | { (exit 1); exit 1; }; } | |
252b5132 | 2613 | fi |
5464f5a1 NN |
2614 | echo "$as_me:$LINENO: result: yes" >&5 |
2615 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2616 | test "$program_prefix" != NONE && |
5464f5a1 | 2617 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2618 | # Use a double $ so make ignores it. |
2619 | test "$program_suffix" != NONE && | |
5464f5a1 NN |
2620 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2621 | # Double any \ or $. echo might interpret backslashes. | |
2622 | # By default was `s,x,x', remove it if useless. | |
2623 | cat <<\_ACEOF >conftest.sed | |
2624 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2625 | _ACEOF | |
2626 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2627 | rm conftest.sed | |
2628 | ||
f5385ebf AM |
2629 | # expand $ac_aux_dir to an absolute path |
2630 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2631 | ||
2632 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2633 | # Use eval to expand $SHELL | |
2634 | if eval "$MISSING --run true"; then | |
2635 | am_missing_run="$MISSING --run " | |
2636 | else | |
2637 | am_missing_run= | |
2638 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2639 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2640 | fi | |
2641 | ||
2642 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2643 | # We used to keeping the `.' as first argument, in order to | |
2644 | # allow $(mkdir_p) to be used without argument. As in | |
2645 | # $(mkdir_p) $(somedir) | |
2646 | # where $(somedir) is conditionally defined. However this is wrong | |
2647 | # for two reasons: | |
2648 | # 1. if the package is installed by a user who cannot write `.' | |
2649 | # make install will fail, | |
2650 | # 2. the above comment should most certainly read | |
2651 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2652 | # so it does not work when $(somedir) is undefined and | |
2653 | # $(DESTDIR) is not. | |
2654 | # To support the latter case, we have to write | |
2655 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2656 | # so the `.' trick is pointless. | |
2657 | mkdir_p='mkdir -p --' | |
2658 | else | |
2659 | # On NextStep and OpenStep, the `mkdir' command does not | |
2660 | # recognize any option. It will interpret all options as | |
2661 | # directories to create, and then abort because `.' already | |
2662 | # exists. | |
2663 | for d in ./-p ./--version; | |
2664 | do | |
2665 | test -d $d && rmdir $d | |
2666 | done | |
2667 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2668 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2669 | mkdir_p='$(mkinstalldirs)' | |
2670 | else | |
2671 | mkdir_p='$(install_sh) -d' | |
2672 | fi | |
2673 | fi | |
2674 | ||
2675 | for ac_prog in gawk mawk nawk awk | |
2676 | do | |
2677 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2678 | set dummy $ac_prog; ac_word=$2 | |
2679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2681 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2683 | else | |
2684 | if test -n "$AWK"; then | |
2685 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2686 | else | |
2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2688 | for as_dir in $PATH | |
2689 | do | |
2690 | IFS=$as_save_IFS | |
2691 | test -z "$as_dir" && as_dir=. | |
2692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2694 | ac_cv_prog_AWK="$ac_prog" | |
2695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2696 | break 2 | |
2697 | fi | |
2698 | done | |
2699 | done | |
2700 | ||
2701 | fi | |
2702 | fi | |
2703 | AWK=$ac_cv_prog_AWK | |
2704 | if test -n "$AWK"; then | |
2705 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2706 | echo "${ECHO_T}$AWK" >&6 | |
2707 | else | |
2708 | echo "$as_me:$LINENO: result: no" >&5 | |
2709 | echo "${ECHO_T}no" >&6 | |
2710 | fi | |
2711 | ||
2712 | test -n "$AWK" && break | |
2713 | done | |
2714 | ||
5464f5a1 NN |
2715 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2716 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2717 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2718 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2720 | else | |
2721 | cat >conftest.make <<\_ACEOF | |
252b5132 | 2722 | all: |
5464f5a1 NN |
2723 | @echo 'ac_maketemp="$(MAKE)"' |
2724 | _ACEOF | |
252b5132 | 2725 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5464f5a1 | 2726 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2727 | if test -n "$ac_maketemp"; then |
2728 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2729 | else | |
2730 | eval ac_cv_prog_make_${ac_make}_set=no | |
2731 | fi | |
5464f5a1 | 2732 | rm -f conftest.make |
252b5132 RH |
2733 | fi |
2734 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
5464f5a1 NN |
2735 | echo "$as_me:$LINENO: result: yes" >&5 |
2736 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2737 | SET_MAKE= |
2738 | else | |
5464f5a1 NN |
2739 | echo "$as_me:$LINENO: result: no" >&5 |
2740 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2741 | SET_MAKE="MAKE=${MAKE-make}" |
2742 | fi | |
2743 | ||
f5385ebf AM |
2744 | rm -rf .tst 2>/dev/null |
2745 | mkdir .tst 2>/dev/null | |
2746 | if test -d .tst; then | |
2747 | am__leading_dot=. | |
2748 | else | |
2749 | am__leading_dot=_ | |
2750 | fi | |
2751 | rmdir .tst 2>/dev/null | |
2752 | ||
2753 | DEPDIR="${am__leading_dot}deps" | |
2754 | ||
2755 | ac_config_commands="$ac_config_commands depfiles" | |
2756 | ||
2757 | ||
2758 | am_make=${MAKE-make} | |
2759 | cat > confinc << 'END' | |
2760 | am__doit: | |
2761 | @echo done | |
2762 | .PHONY: am__doit | |
2763 | END | |
2764 | # If we don't find an include directive, just comment out the code. | |
2765 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2766 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2767 | am__include="#" | |
2768 | am__quote= | |
2769 | _am_result=none | |
2770 | # First try GNU make style include. | |
2771 | echo "include confinc" > confmf | |
2772 | # We grep out `Entering directory' and `Leaving directory' | |
2773 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2774 | # In particular we don't look at `^make:' because GNU make might | |
2775 | # be invoked under some other name (usually "gmake"), in which | |
2776 | # case it prints its new name instead of `make'. | |
2777 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2778 | am__include=include | |
2779 | am__quote= | |
2780 | _am_result=GNU | |
2781 | fi | |
2782 | # Now try BSD make style include. | |
2783 | if test "$am__include" = "#"; then | |
2784 | echo '.include "confinc"' > confmf | |
2785 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2786 | am__include=.include | |
2787 | am__quote="\"" | |
2788 | _am_result=BSD | |
2789 | fi | |
2790 | fi | |
2791 | ||
2792 | ||
2793 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2794 | echo "${ECHO_T}$_am_result" >&6 | |
2795 | rm -f confinc confmf | |
2796 | ||
2797 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2798 | if test "${enable_dependency_tracking+set}" = set; then | |
2799 | enableval="$enable_dependency_tracking" | |
2800 | ||
2801 | fi; | |
2802 | if test "x$enable_dependency_tracking" != xno; then | |
2803 | am_depcomp="$ac_aux_dir/depcomp" | |
2804 | AMDEPBACKSLASH='\' | |
2805 | fi | |
2806 | ||
2807 | ||
2808 | if test "x$enable_dependency_tracking" != xno; then | |
2809 | AMDEP_TRUE= | |
2810 | AMDEP_FALSE='#' | |
2811 | else | |
2812 | AMDEP_TRUE='#' | |
2813 | AMDEP_FALSE= | |
2814 | fi | |
6be7c12c | 2815 | |
252b5132 | 2816 | |
252b5132 | 2817 | |
f5385ebf AM |
2818 | # test to see if srcdir already configured |
2819 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2820 | test -f $srcdir/config.status; then | |
5464f5a1 NN |
2821 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2822 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2823 | { (exit 1); exit 1; }; } | |
252b5132 | 2824 | fi |
5464f5a1 | 2825 | |
f5385ebf AM |
2826 | # test whether we have cygpath |
2827 | if test -z "$CYGPATH_W"; then | |
2828 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2829 | CYGPATH_W='cygpath -w' | |
2830 | else | |
2831 | CYGPATH_W=echo | |
2832 | fi | |
2833 | fi | |
2834 | ||
2835 | ||
2836 | # Define the identity of the package. | |
2837 | PACKAGE=bfd | |
664fe1be | 2838 | VERSION=2.16.90 |
f5385ebf AM |
2839 | |
2840 | ||
5464f5a1 | 2841 | cat >>confdefs.h <<_ACEOF |
252b5132 | 2842 | #define PACKAGE "$PACKAGE" |
5464f5a1 | 2843 | _ACEOF |
252b5132 | 2844 | |
5464f5a1 NN |
2845 | |
2846 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 2847 | #define VERSION "$VERSION" |
5464f5a1 | 2848 | _ACEOF |
252b5132 | 2849 | |
f5385ebf AM |
2850 | # Some tools Automake needs. |
2851 | ||
2852 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2853 | ||
2854 | ||
2855 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2856 | ||
2857 | ||
2858 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2859 | ||
2860 | ||
2861 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2862 | ||
2863 | ||
2864 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6be7c12c | 2865 | |
f5385ebf | 2866 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
6be7c12c | 2867 | |
f5385ebf AM |
2868 | # Installed binaries are usually stripped using `strip' when the user |
2869 | # run `make install-strip'. However `strip' might not be the right | |
2870 | # tool to use in cross-compilation environments, therefore Automake | |
2871 | # will honor the `STRIP' environment variable to overrule this program. | |
2872 | if test "$cross_compiling" != no; then | |
2873 | if test -n "$ac_tool_prefix"; then | |
2874 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2875 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2878 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2880 | else | |
2881 | if test -n "$STRIP"; then | |
2882 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 2883 | else |
f5385ebf AM |
2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2885 | for as_dir in $PATH | |
2886 | do | |
2887 | IFS=$as_save_IFS | |
2888 | test -z "$as_dir" && as_dir=. | |
2889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2891 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2893 | break 2 | |
2894 | fi | |
2895 | done | |
2896 | done | |
2897 | ||
2898 | fi | |
2899 | fi | |
2900 | STRIP=$ac_cv_prog_STRIP | |
2901 | if test -n "$STRIP"; then | |
2902 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2903 | echo "${ECHO_T}$STRIP" >&6 | |
2904 | else | |
2905 | echo "$as_me:$LINENO: result: no" >&5 | |
2906 | echo "${ECHO_T}no" >&6 | |
2907 | fi | |
2908 | ||
252b5132 | 2909 | fi |
f5385ebf AM |
2910 | if test -z "$ac_cv_prog_STRIP"; then |
2911 | ac_ct_STRIP=$STRIP | |
2912 | # Extract the first word of "strip", so it can be a program name with args. | |
2913 | set dummy strip; ac_word=$2 | |
2914 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2916 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2918 | else | |
2919 | if test -n "$ac_ct_STRIP"; then | |
2920 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2921 | else | |
2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2923 | for as_dir in $PATH | |
2924 | do | |
2925 | IFS=$as_save_IFS | |
2926 | test -z "$as_dir" && as_dir=. | |
2927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2929 | ac_cv_prog_ac_ct_STRIP="strip" | |
2930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2931 | break 2 | |
2932 | fi | |
2933 | done | |
2934 | done | |
252b5132 | 2935 | |
f5385ebf AM |
2936 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
2937 | fi | |
2938 | fi | |
2939 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2940 | if test -n "$ac_ct_STRIP"; then | |
2941 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2942 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2943 | else |
f5385ebf AM |
2944 | echo "$as_me:$LINENO: result: no" >&5 |
2945 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2946 | fi |
2947 | ||
f5385ebf | 2948 | STRIP=$ac_ct_STRIP |
252b5132 | 2949 | else |
f5385ebf AM |
2950 | STRIP="$ac_cv_prog_STRIP" |
2951 | fi | |
2952 | ||
252b5132 | 2953 | fi |
f5385ebf AM |
2954 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2955 | ||
2956 | # We need awk for the "check" target. The system "awk" is bad on | |
2957 | # some platforms. | |
2958 | # Always define AMTAR for backward compatibility. | |
2959 | ||
2960 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2961 | ||
2962 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2963 | ||
252b5132 | 2964 | |
f5385ebf AM |
2965 | |
2966 | ||
2967 | depcc="$CC" am_compiler_list= | |
2968 | ||
2969 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2970 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2971 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2973 | else |
f5385ebf AM |
2974 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2975 | # We make a subdir and do the tests there. Otherwise we can end up | |
2976 | # making bogus files that we don't know about and never remove. For | |
2977 | # instance it was reported that on HP-UX the gcc test will end up | |
2978 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2979 | # in D'. | |
2980 | mkdir conftest.dir | |
2981 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2982 | # using a relative directory. | |
2983 | cp "$am_depcomp" conftest.dir | |
2984 | cd conftest.dir | |
2985 | # We will build objects and dependencies in a subdirectory because | |
2986 | # it helps to detect inapplicable dependency modes. For instance | |
2987 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2988 | # side effect of compilation, but ICC will put the dependencies in | |
2989 | # the current directory while Tru64 will put them in the object | |
2990 | # directory. | |
2991 | mkdir sub | |
2992 | ||
2993 | am_cv_CC_dependencies_compiler_type=none | |
2994 | if test "$am_compiler_list" = ""; then | |
2995 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2996 | fi | |
2997 | for depmode in $am_compiler_list; do | |
2998 | # Setup a source with many dependencies, because some compilers | |
2999 | # like to wrap large dependency lists on column 80 (with \), and | |
3000 | # we should not choose a depcomp mode which is confused by this. | |
3001 | # | |
3002 | # We need to recreate these files for each test, as the compiler may | |
3003 | # overwrite some of them when testing with obscure command lines. | |
3004 | # This happens at least with the AIX C compiler. | |
3005 | : > sub/conftest.c | |
3006 | for i in 1 2 3 4 5 6; do | |
3007 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3008 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3009 | # Solaris 8's {/usr,}/bin/sh. | |
3010 | touch sub/conftst$i.h | |
3011 | done | |
3012 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3013 | ||
3014 | case $depmode in | |
3015 | nosideeffect) | |
3016 | # after this tag, mechanisms are not by side-effect, so they'll | |
3017 | # only be used when explicitly requested | |
3018 | if test "x$enable_dependency_tracking" = xyes; then | |
3019 | continue | |
3020 | else | |
3021 | break | |
3022 | fi | |
3023 | ;; | |
3024 | none) break ;; | |
3025 | esac | |
3026 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3027 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3028 | # handle `-M -o', and we need to detect this. | |
3029 | if depmode=$depmode \ | |
3030 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3031 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3032 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3033 | >/dev/null 2>conftest.err && | |
3034 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3035 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3036 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3037 | # icc doesn't choke on unknown options, it will just issue warnings | |
3038 | # or remarks (even with -Werror). So we grep stderr for any message | |
3039 | # that says an option was ignored or not supported. | |
3040 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3041 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3042 | # The diagnosis changed in icc 8.0: | |
3043 | # icc: Command line remark: option '-MP' not supported | |
3044 | if (grep 'ignoring option' conftest.err || | |
3045 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3046 | am_cv_CC_dependencies_compiler_type=$depmode | |
3047 | break | |
3048 | fi | |
3049 | fi | |
3050 | done | |
3051 | ||
3052 | cd .. | |
3053 | rm -rf conftest.dir | |
3054 | else | |
3055 | am_cv_CC_dependencies_compiler_type=none | |
3056 | fi | |
3057 | ||
252b5132 | 3058 | fi |
f5385ebf AM |
3059 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3060 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3061 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3062 | |
f5385ebf AM |
3063 | |
3064 | ||
3065 | if | |
3066 | test "x$enable_dependency_tracking" != xno \ | |
3067 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3068 | am__fastdepCC_TRUE= | |
3069 | am__fastdepCC_FALSE='#' | |
252b5132 | 3070 | else |
f5385ebf AM |
3071 | am__fastdepCC_TRUE='#' |
3072 | am__fastdepCC_FALSE= | |
252b5132 RH |
3073 | fi |
3074 | ||
6be7c12c | 3075 | |
e43d48cc | 3076 | |
f5385ebf | 3077 | |
5464f5a1 NN |
3078 | if test -n "$ac_tool_prefix"; then |
3079 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 3080 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5464f5a1 NN |
3081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3083 | if test "${ac_cv_prog_AR+set}" = set; then | |
3084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3085 | else |
3086 | if test -n "$AR"; then | |
3087 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3088 | else | |
5464f5a1 NN |
3089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3090 | for as_dir in $PATH | |
3091 | do | |
3092 | IFS=$as_save_IFS | |
3093 | test -z "$as_dir" && as_dir=. | |
3094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3096 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3098 | break 2 | |
3099 | fi | |
3100 | done | |
3101 | done | |
3102 | ||
252b5132 RH |
3103 | fi |
3104 | fi | |
5464f5a1 | 3105 | AR=$ac_cv_prog_AR |
252b5132 | 3106 | if test -n "$AR"; then |
5464f5a1 NN |
3107 | echo "$as_me:$LINENO: result: $AR" >&5 |
3108 | echo "${ECHO_T}$AR" >&6 | |
252b5132 | 3109 | else |
5464f5a1 NN |
3110 | echo "$as_me:$LINENO: result: no" >&5 |
3111 | echo "${ECHO_T}no" >&6 | |
3112 | fi | |
3113 | ||
252b5132 | 3114 | fi |
5464f5a1 NN |
3115 | if test -z "$ac_cv_prog_AR"; then |
3116 | ac_ct_AR=$AR | |
3117 | # Extract the first word of "ar", so it can be a program name with args. | |
3118 | set dummy ar; ac_word=$2 | |
3119 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3121 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3123 | else | |
3124 | if test -n "$ac_ct_AR"; then | |
3125 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3126 | else | |
3127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3128 | for as_dir in $PATH | |
3129 | do | |
3130 | IFS=$as_save_IFS | |
3131 | test -z "$as_dir" && as_dir=. | |
3132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3133 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3134 | ac_cv_prog_ac_ct_AR="ar" | |
3135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3136 | break 2 | |
3137 | fi | |
3138 | done | |
3139 | done | |
252b5132 | 3140 | |
5464f5a1 NN |
3141 | fi |
3142 | fi | |
3143 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3144 | if test -n "$ac_ct_AR"; then | |
3145 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3146 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3147 | else | |
3148 | echo "$as_me:$LINENO: result: no" >&5 | |
3149 | echo "${ECHO_T}no" >&6 | |
3150 | fi | |
252b5132 | 3151 | |
5464f5a1 NN |
3152 | AR=$ac_ct_AR |
3153 | else | |
3154 | AR="$ac_cv_prog_AR" | |
3155 | fi | |
6be7c12c | 3156 | |
5464f5a1 NN |
3157 | if test -n "$ac_tool_prefix"; then |
3158 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 3159 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3162 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3164 | else |
3165 | if test -n "$RANLIB"; then | |
3166 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3167 | else | |
5464f5a1 NN |
3168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3169 | for as_dir in $PATH | |
3170 | do | |
3171 | IFS=$as_save_IFS | |
3172 | test -z "$as_dir" && as_dir=. | |
3173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3175 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3177 | break 2 | |
3178 | fi | |
3179 | done | |
3180 | done | |
3181 | ||
252b5132 RH |
3182 | fi |
3183 | fi | |
5464f5a1 | 3184 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 3185 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3186 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3187 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 3188 | else |
5464f5a1 NN |
3189 | echo "$as_me:$LINENO: result: no" >&5 |
3190 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3191 | fi |
3192 | ||
5464f5a1 | 3193 | fi |
252b5132 | 3194 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3195 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
3196 | # Extract the first word of "ranlib", so it can be a program name with args. |
3197 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3200 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3202 | else |
5464f5a1 NN |
3203 | if test -n "$ac_ct_RANLIB"; then |
3204 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3205 | else |
5464f5a1 NN |
3206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3207 | for as_dir in $PATH | |
3208 | do | |
3209 | IFS=$as_save_IFS | |
3210 | test -z "$as_dir" && as_dir=. | |
3211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3212 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3213 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3214 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3215 | break 2 | |
3216 | fi | |
3217 | done | |
3218 | done | |
3219 | ||
3220 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
3221 | fi |
3222 | fi | |
5464f5a1 NN |
3223 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3224 | if test -n "$ac_ct_RANLIB"; then | |
3225 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3226 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 3227 | else |
5464f5a1 NN |
3228 | echo "$as_me:$LINENO: result: no" >&5 |
3229 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3230 | fi |
3231 | ||
5464f5a1 | 3232 | RANLIB=$ac_ct_RANLIB |
252b5132 | 3233 | else |
5464f5a1 | 3234 | RANLIB="$ac_cv_prog_RANLIB" |
6be7c12c AO |
3235 | fi |
3236 | ||
252b5132 RH |
3237 | |
3238 | # Check whether --enable-shared or --disable-shared was given. | |
3239 | if test "${enable_shared+set}" = set; then | |
3240 | enableval="$enable_shared" | |
3241 | p=${PACKAGE-default} | |
55c80943 | 3242 | case $enableval in |
252b5132 RH |
3243 | yes) enable_shared=yes ;; |
3244 | no) enable_shared=no ;; | |
3245 | *) | |
3246 | enable_shared=no | |
3247 | # Look at the argument we got. We use all the common list separators. | |
3248 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3249 | for pkg in $enableval; do | |
3250 | if test "X$pkg" = "X$p"; then | |
3251 | enable_shared=yes | |
3252 | fi | |
3253 | done | |
3254 | IFS="$ac_save_ifs" | |
3255 | ;; | |
3256 | esac | |
3257 | else | |
3258 | enable_shared=no | |
5464f5a1 | 3259 | fi; |
252b5132 RH |
3260 | |
3261 | # Check whether --enable-static or --disable-static was given. | |
3262 | if test "${enable_static+set}" = set; then | |
3263 | enableval="$enable_static" | |
3264 | p=${PACKAGE-default} | |
55c80943 | 3265 | case $enableval in |
252b5132 RH |
3266 | yes) enable_static=yes ;; |
3267 | no) enable_static=no ;; | |
3268 | *) | |
3269 | enable_static=no | |
3270 | # Look at the argument we got. We use all the common list separators. | |
3271 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3272 | for pkg in $enableval; do | |
3273 | if test "X$pkg" = "X$p"; then | |
3274 | enable_static=yes | |
3275 | fi | |
3276 | done | |
3277 | IFS="$ac_save_ifs" | |
3278 | ;; | |
3279 | esac | |
3280 | else | |
3281 | enable_static=yes | |
5464f5a1 | 3282 | fi; |
b2ef150d ILT |
3283 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3284 | if test "${enable_fast_install+set}" = set; then | |
3285 | enableval="$enable_fast_install" | |
3286 | p=${PACKAGE-default} | |
55c80943 | 3287 | case $enableval in |
b2ef150d ILT |
3288 | yes) enable_fast_install=yes ;; |
3289 | no) enable_fast_install=no ;; | |
3290 | *) | |
3291 | enable_fast_install=no | |
3292 | # Look at the argument we got. We use all the common list separators. | |
3293 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3294 | for pkg in $enableval; do | |
3295 | if test "X$pkg" = "X$p"; then | |
3296 | enable_fast_install=yes | |
3297 | fi | |
3298 | done | |
3299 | IFS="$ac_save_ifs" | |
3300 | ;; | |
3301 | esac | |
3302 | else | |
3303 | enable_fast_install=yes | |
5464f5a1 | 3304 | fi; |
c5d1701e | 3305 | |
252b5132 RH |
3306 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3307 | if test "${with_gnu_ld+set}" = set; then | |
3308 | withval="$with_gnu_ld" | |
3309 | test "$withval" = no || with_gnu_ld=yes | |
3310 | else | |
3311 | with_gnu_ld=no | |
5464f5a1 | 3312 | fi; |
252b5132 | 3313 | ac_prog=ld |
55c80943 | 3314 | if test "$GCC" = yes; then |
252b5132 | 3315 | # Check if gcc -print-prog-name=ld gives a path. |
5464f5a1 NN |
3316 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3317 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3318 | case $host in |
3319 | *-*-mingw*) | |
3320 | # gcc leaves a trailing carriage return which upsets mingw | |
3321 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3322 | *) | |
3323 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3324 | esac | |
55c80943 | 3325 | case $ac_prog in |
b2ef150d | 3326 | # Accept absolute paths. |
a74801ba | 3327 | [\\/]* | [A-Za-z]:[\\/]*) |
b2ef150d ILT |
3328 | re_direlt='/[^/][^/]*/\.\./' |
3329 | # Canonicalize the path of ld | |
3330 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3331 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3332 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3333 | done | |
3334 | test -z "$LD" && LD="$ac_prog" | |
3335 | ;; | |
252b5132 RH |
3336 | "") |
3337 | # If it fails, then pretend we aren't using GCC. | |
3338 | ac_prog=ld | |
3339 | ;; | |
3340 | *) | |
3341 | # If it is relative, then search for the first ld in PATH. | |
3342 | with_gnu_ld=unknown | |
3343 | ;; | |
3344 | esac | |
3345 | elif test "$with_gnu_ld" = yes; then | |
5464f5a1 NN |
3346 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3347 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3348 | else |
5464f5a1 NN |
3349 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3350 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3351 | fi |
5464f5a1 NN |
3352 | if test "${lt_cv_path_LD+set}" = set; then |
3353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3354 | else |
3355 | if test -z "$LD"; then | |
a74801ba | 3356 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3357 | for ac_dir in $PATH; do |
3358 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 3359 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
55c80943 | 3360 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3361 | # Check to see if the program is GNU ld. I'd rather use --version, |
3362 | # but apparently some GNU ld's only accept -v. | |
3363 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
55c80943 | 3364 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3365 | test "$with_gnu_ld" != no && break |
3366 | else | |
b2ef150d | 3367 | test "$with_gnu_ld" != yes && break |
252b5132 RH |
3368 | fi |
3369 | fi | |
3370 | done | |
3371 | IFS="$ac_save_ifs" | |
3372 | else | |
55c80943 | 3373 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3374 | fi |
3375 | fi | |
3376 | ||
55c80943 | 3377 | LD="$lt_cv_path_LD" |
252b5132 | 3378 | if test -n "$LD"; then |
5464f5a1 NN |
3379 | echo "$as_me:$LINENO: result: $LD" >&5 |
3380 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3381 | else |
5464f5a1 NN |
3382 | echo "$as_me:$LINENO: result: no" >&5 |
3383 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3384 | fi |
5464f5a1 NN |
3385 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3386 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3387 | { (exit 1); exit 1; }; } | |
3388 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3389 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3390 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3392 | else |
3393 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3394 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
55c80943 | 3395 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3396 | else |
55c80943 | 3397 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3398 | fi |
3399 | fi | |
5464f5a1 NN |
3400 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3401 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
55c80943 | 3402 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 | 3403 | |
6be7c12c | 3404 | |
5464f5a1 NN |
3405 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3406 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3407 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3409 | else |
3410 | lt_cv_ld_reload_flag='-r' | |
3411 | fi | |
5464f5a1 NN |
3412 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3413 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3414 | reload_flag=$lt_cv_ld_reload_flag |
3415 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3416 | ||
5464f5a1 NN |
3417 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3418 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3419 | if test "${lt_cv_path_NM+set}" = set; then | |
3420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3421 | else |
3422 | if test -n "$NM"; then | |
3423 | # Let the user override the test. | |
55c80943 | 3424 | lt_cv_path_NM="$NM" |
252b5132 | 3425 | else |
a74801ba | 3426 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2ef150d | 3427 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
252b5132 | 3428 | test -z "$ac_dir" && ac_dir=. |
ac48eca1 AO |
3429 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3430 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3431 | # Check to see if the nm accepts a BSD-compat flag. |
3432 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3433 | # nm: unknown option "B" ignored | |
90f2472a AO |
3434 | # Tru64's nm complains that /dev/null is an invalid object file |
3435 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
55c80943 | 3436 | lt_cv_path_NM="$tmp_nm -B" |
b2ef150d | 3437 | break |
ac48eca1 | 3438 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
55c80943 | 3439 | lt_cv_path_NM="$tmp_nm -p" |
b2ef150d | 3440 | break |
252b5132 | 3441 | else |
55c80943 | 3442 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2ef150d | 3443 | continue # so that we can try to find one that supports BSD flags |
252b5132 | 3444 | fi |
252b5132 RH |
3445 | fi |
3446 | done | |
3447 | IFS="$ac_save_ifs" | |
55c80943 | 3448 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3449 | fi |
3450 | fi | |
3451 | ||
55c80943 | 3452 | NM="$lt_cv_path_NM" |
5464f5a1 NN |
3453 | echo "$as_me:$LINENO: result: $NM" >&5 |
3454 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3455 | |
5464f5a1 NN |
3456 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3457 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3458 | LN_S=$as_ln_s | |
3459 | if test "$LN_S" = "ln -s"; then | |
3460 | echo "$as_me:$LINENO: result: yes" >&5 | |
3461 | echo "${ECHO_T}yes" >&6 | |
6be7c12c | 3462 | else |
5464f5a1 NN |
3463 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3464 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3465 | fi |
3466 | ||
5464f5a1 NN |
3467 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3468 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3469 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3471 | else |
d64552c5 | 3472 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3473 | lt_cv_file_magic_test_file= |
3474 | lt_cv_deplibs_check_method='unknown' | |
3475 | # Need to set the preceding variable on all platforms that support | |
3476 | # interlibrary dependencies. | |
3477 | # 'none' -- dependencies not supported. | |
3478 | # `unknown' -- same as none, but documents that we really don't know. | |
3479 | # 'pass_all' -- all dependencies passed with no checks. | |
3480 | # 'test_compile' -- check by making test program. | |
3481 | # 'file_magic [regex]' -- check by looking for files in library path | |
3482 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3483 | # If you have `file' or equivalent on your system and you're not sure | |
3484 | # whether `pass_all' will *always* work, you probably want this one. | |
3485 | ||
55c80943 NC |
3486 | case $host_os in |
3487 | aix*) | |
ac48eca1 AO |
3488 | lt_cv_deplibs_check_method=pass_all |
3489 | ;; | |
3490 | ||
3491 | beos*) | |
3492 | lt_cv_deplibs_check_method=pass_all | |
3493 | ;; | |
3494 | ||
3495 | bsdi4*) | |
55c80943 NC |
3496 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3497 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3498 | lt_cv_file_magic_test_file=/shlib/libc.so |
3499 | ;; | |
3500 | ||
d64552c5 | 3501 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3502 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3503 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3504 | ;; |
3505 | ||
55c80943 NC |
3506 | darwin* | rhapsody*) |
3507 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
b3baf5d0 NC |
3508 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3509 | case "$host_os" in | |
3510 | rhapsody* | darwin1.012) | |
3511 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3512 | ;; | |
3513 | *) # Darwin 1.3 on | |
3514 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3515 | ;; | |
3516 | esac | |
55c80943 NC |
3517 | ;; |
3518 | ||
5464f5a1 | 3519 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3520 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
55c80943 | 3521 | case $host_cpu in |
ac48eca1 | 3522 | i*86 ) |
90f2472a AO |
3523 | # Not sure whether the presence of OpenBSD here was a mistake. |
3524 | # Let's accept both of them until this is cleared up. | |
55c80943 NC |
3525 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3526 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3527 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3528 | ;; | |
3529 | esac | |
3530 | else | |
3531 | lt_cv_deplibs_check_method=pass_all | |
3532 | fi | |
3533 | ;; | |
3534 | ||
3535 | gnu*) | |
3536 | lt_cv_deplibs_check_method=pass_all | |
3537 | ;; | |
3538 | ||
55c80943 | 3539 | hpux10.20*|hpux11*) |
4867be41 DJ |
3540 | case $host_cpu in |
3541 | hppa*) | |
3542 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3543 | lt_cv_file_magic_cmd=/usr/bin/file | |
3544 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3545 | ;; | |
3546 | ia64*) | |
3547 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3548 | lt_cv_file_magic_cmd=/usr/bin/file | |
3549 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3550 | ;; | |
3551 | esac | |
ac48eca1 AO |
3552 | ;; |
3553 | ||
3554 | irix5* | irix6*) | |
55c80943 | 3555 | case $host_os in |
ac48eca1 AO |
3556 | irix5*) |
3557 | # this will be overridden with pass_all, but let us keep it just in case | |
3558 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3559 | ;; | |
3560 | *) | |
55c80943 | 3561 | case $LD in |
ac48eca1 AO |
3562 | *-32|*"-32 ") libmagic=32-bit;; |
3563 | *-n32|*"-n32 ") libmagic=N32;; | |
3564 | *-64|*"-64 ") libmagic=64-bit;; | |
3565 | *) libmagic=never-match;; | |
3566 | esac | |
3567 | # this will be overridden with pass_all, but let us keep it just in case | |
55c80943 NC |
3568 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3569 | ;; | |
ac48eca1 AO |
3570 | esac |
3571 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3572 | lt_cv_deplibs_check_method=pass_all | |
3573 | ;; | |
3574 | ||
3575 | # This must be Linux ELF. | |
90f2472a | 3576 | linux-gnu*) |
55c80943 | 3577 | case $host_cpu in |
c5d1701e | 3578 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
3579 | lt_cv_deplibs_check_method=pass_all ;; |
3580 | *) | |
3581 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
55c80943 NC |
3582 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3583 | esac | |
ac48eca1 AO |
3584 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3585 | ;; | |
3586 | ||
5464f5a1 | 3587 | netbsd* | knetbsd*-gnu) |
55c80943 | 3588 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
b3baf5d0 | 3589 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
ac48eca1 | 3590 | else |
b3baf5d0 | 3591 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 | 3592 | fi |
55c80943 NC |
3593 | ;; |
3594 | ||
3595 | newsos6) | |
3596 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3597 | lt_cv_file_magic_cmd=/usr/bin/file | |
3598 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
ac48eca1 AO |
3599 | ;; |
3600 | ||
3601 | osf3* | osf4* | osf5*) | |
3602 | # this will be overridden with pass_all, but let us keep it just in case | |
3603 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3604 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3605 | lt_cv_deplibs_check_method=pass_all | |
3606 | ;; | |
3607 | ||
3608 | sco3.2v5*) | |
3609 | lt_cv_deplibs_check_method=pass_all | |
3610 | ;; | |
3611 | ||
3612 | solaris*) | |
3613 | lt_cv_deplibs_check_method=pass_all | |
3614 | lt_cv_file_magic_test_file=/lib/libc.so | |
3615 | ;; | |
3616 | ||
6be7c12c AO |
3617 | sysv5uw[78]* | sysv4*uw2*) |
3618 | lt_cv_deplibs_check_method=pass_all | |
3619 | ;; | |
3620 | ||
ac48eca1 | 3621 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
55c80943 | 3622 | case $host_vendor in |
ac48eca1 AO |
3623 | ncr) |
3624 | lt_cv_deplibs_check_method=pass_all | |
3625 | ;; | |
3626 | motorola) | |
55c80943 NC |
3627 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
3628 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3629 | ;; |
3630 | esac | |
3631 | ;; | |
3632 | esac | |
3633 | ||
3634 | fi | |
5464f5a1 NN |
3635 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3636 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3637 | file_magic_cmd=$lt_cv_file_magic_cmd |
3638 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3639 | ||
6be7c12c AO |
3640 | |
3641 | ||
6be7c12c AO |
3642 | |
3643 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3644 | ||
3645 | # Only perform the check for file, if the check method requires it | |
3646 | case $deplibs_check_method in | |
3647 | file_magic*) | |
3648 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5464f5a1 NN |
3649 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3650 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3651 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c AO |
3653 | else |
3654 | case $MAGIC_CMD in | |
3655 | /*) | |
3656 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3657 | ;; | |
3658 | ?:/*) | |
3659 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3660 | ;; | |
3661 | *) | |
d64552c5 | 3662 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3663 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3664 | ac_dummy="/usr/bin:$PATH" | |
3665 | for ac_dir in $ac_dummy; do | |
3666 | test -z "$ac_dir" && ac_dir=. | |
3667 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3668 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3669 | if test -n "$file_magic_test_file"; then |
55c80943 | 3670 | case $deplibs_check_method in |
ac48eca1 AO |
3671 | "file_magic "*) |
3672 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3673 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3674 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3675 | egrep "$file_magic_regex" > /dev/null; then | |
3676 | : | |
3677 | else | |
3678 | cat <<EOF 1>&2 | |
3679 | ||
3680 | *** Warning: the command libtool uses to detect shared libraries, | |
3681 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3682 | *** The result is that libtool may fail to recognize shared libraries | |
3683 | *** as such. This will affect the creation of libtool libraries that | |
3684 | *** depend on shared libraries, but programs linked with such libtool | |
3685 | *** libraries will work regardless of this problem. Nevertheless, you | |
3686 | *** may want to report the problem to your system manager and/or to | |
3687 | *** bug-libtool@gnu.org | |
3688 | ||
3689 | EOF | |
3690 | fi ;; | |
3691 | esac | |
3692 | fi | |
3693 | break | |
3694 | fi | |
3695 | done | |
3696 | IFS="$ac_save_ifs" | |
d64552c5 | 3697 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3698 | ;; |
3699 | esac | |
3700 | fi | |
3701 | ||
d64552c5 AO |
3702 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3703 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3704 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3705 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3706 | else |
5464f5a1 NN |
3707 | echo "$as_me:$LINENO: result: no" >&5 |
3708 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3709 | fi |
3710 | ||
d64552c5 | 3711 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3712 | if test -n "$ac_tool_prefix"; then |
5464f5a1 NN |
3713 | echo "$as_me:$LINENO: checking for file" >&5 |
3714 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3715 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3717 | else |
55c80943 | 3718 | case $MAGIC_CMD in |
ac48eca1 | 3719 | /*) |
d64552c5 | 3720 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3721 | ;; |
3722 | ?:/*) | |
d64552c5 | 3723 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3724 | ;; |
3725 | *) | |
d64552c5 | 3726 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3727 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3728 | ac_dummy="/usr/bin:$PATH" | |
3729 | for ac_dir in $ac_dummy; do | |
3730 | test -z "$ac_dir" && ac_dir=. | |
3731 | if test -f $ac_dir/file; then | |
d64552c5 | 3732 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3733 | if test -n "$file_magic_test_file"; then |
55c80943 | 3734 | case $deplibs_check_method in |
ac48eca1 AO |
3735 | "file_magic "*) |
3736 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3737 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3738 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3739 | egrep "$file_magic_regex" > /dev/null; then | |
3740 | : | |
3741 | else | |
3742 | cat <<EOF 1>&2 | |
3743 | ||
3744 | *** Warning: the command libtool uses to detect shared libraries, | |
3745 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3746 | *** The result is that libtool may fail to recognize shared libraries | |
3747 | *** as such. This will affect the creation of libtool libraries that | |
3748 | *** depend on shared libraries, but programs linked with such libtool | |
3749 | *** libraries will work regardless of this problem. Nevertheless, you | |
3750 | *** may want to report the problem to your system manager and/or to | |
3751 | *** bug-libtool@gnu.org | |
3752 | ||
3753 | EOF | |
3754 | fi ;; | |
3755 | esac | |
3756 | fi | |
3757 | break | |
3758 | fi | |
3759 | done | |
3760 | IFS="$ac_save_ifs" | |
d64552c5 | 3761 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3762 | ;; |
3763 | esac | |
3764 | fi | |
3765 | ||
d64552c5 AO |
3766 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3767 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3768 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3769 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3770 | else |
5464f5a1 NN |
3771 | echo "$as_me:$LINENO: result: no" >&5 |
3772 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3773 | fi |
3774 | ||
3775 | else | |
d64552c5 | 3776 | MAGIC_CMD=: |
ac48eca1 AO |
3777 | fi |
3778 | fi | |
3779 | ||
3780 | fi | |
3781 | ;; | |
3782 | esac | |
3783 | ||
5464f5a1 NN |
3784 | if test -n "$ac_tool_prefix"; then |
3785 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3786 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3789 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3791 | else |
3792 | if test -n "$RANLIB"; then | |
3793 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3794 | else | |
5464f5a1 NN |
3795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3796 | for as_dir in $PATH | |
3797 | do | |
3798 | IFS=$as_save_IFS | |
3799 | test -z "$as_dir" && as_dir=. | |
3800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3802 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3804 | break 2 | |
3805 | fi | |
3806 | done | |
3807 | done | |
3808 | ||
ac48eca1 AO |
3809 | fi |
3810 | fi | |
5464f5a1 | 3811 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3812 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3813 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3814 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3815 | else |
5464f5a1 NN |
3816 | echo "$as_me:$LINENO: result: no" >&5 |
3817 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3818 | fi |
3819 | ||
5464f5a1 | 3820 | fi |
ac48eca1 | 3821 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3822 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3823 | # Extract the first word of "ranlib", so it can be a program name with args. |
3824 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3827 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3829 | else |
5464f5a1 NN |
3830 | if test -n "$ac_ct_RANLIB"; then |
3831 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3832 | else |
5464f5a1 NN |
3833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3834 | for as_dir in $PATH | |
3835 | do | |
3836 | IFS=$as_save_IFS | |
3837 | test -z "$as_dir" && as_dir=. | |
3838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3840 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3842 | break 2 | |
3843 | fi | |
3844 | done | |
3845 | done | |
3846 | ||
3847 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3848 | fi |
3849 | fi | |
5464f5a1 NN |
3850 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3851 | if test -n "$ac_ct_RANLIB"; then | |
3852 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3853 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3854 | else |
5464f5a1 NN |
3855 | echo "$as_me:$LINENO: result: no" >&5 |
3856 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3857 | fi |
3858 | ||
5464f5a1 | 3859 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3860 | else |
5464f5a1 | 3861 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3862 | fi |
3863 | ||
5464f5a1 NN |
3864 | if test -n "$ac_tool_prefix"; then |
3865 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3866 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5464f5a1 NN |
3867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3869 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3871 | else |
3872 | if test -n "$STRIP"; then | |
3873 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3874 | else | |
5464f5a1 NN |
3875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3876 | for as_dir in $PATH | |
3877 | do | |
3878 | IFS=$as_save_IFS | |
3879 | test -z "$as_dir" && as_dir=. | |
3880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3882 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3884 | break 2 | |
3885 | fi | |
3886 | done | |
3887 | done | |
3888 | ||
ac48eca1 AO |
3889 | fi |
3890 | fi | |
5464f5a1 | 3891 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3892 | if test -n "$STRIP"; then |
5464f5a1 NN |
3893 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3894 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3895 | else |
5464f5a1 NN |
3896 | echo "$as_me:$LINENO: result: no" >&5 |
3897 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3898 | fi |
3899 | ||
5464f5a1 | 3900 | fi |
ac48eca1 | 3901 | if test -z "$ac_cv_prog_STRIP"; then |
5464f5a1 | 3902 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3903 | # Extract the first word of "strip", so it can be a program name with args. |
3904 | set dummy strip; ac_word=$2 | |
5464f5a1 NN |
3905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3907 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3909 | else |
5464f5a1 NN |
3910 | if test -n "$ac_ct_STRIP"; then |
3911 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6be7c12c | 3912 | else |
5464f5a1 NN |
3913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3914 | for as_dir in $PATH | |
3915 | do | |
3916 | IFS=$as_save_IFS | |
3917 | test -z "$as_dir" && as_dir=. | |
3918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3920 | ac_cv_prog_ac_ct_STRIP="strip" | |
3921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3922 | break 2 | |
3923 | fi | |
3924 | done | |
3925 | done | |
3926 | ||
3927 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3928 | fi |
3929 | fi | |
5464f5a1 NN |
3930 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3931 | if test -n "$ac_ct_STRIP"; then | |
3932 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3933 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3934 | else |
5464f5a1 NN |
3935 | echo "$as_me:$LINENO: result: no" >&5 |
3936 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3937 | fi |
3938 | ||
5464f5a1 | 3939 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3940 | else |
5464f5a1 | 3941 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 | 3942 | fi |
252b5132 | 3943 | |
6be7c12c | 3944 | |
252b5132 | 3945 | # Check for any special flags to pass to ltconfig. |
b2ef150d | 3946 | libtool_flags="--cache-file=$cache_file" |
252b5132 RH |
3947 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
3948 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
b2ef150d | 3949 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
55c80943 NC |
3950 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3951 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3952 | |
6be7c12c | 3953 | |
a74801ba ILT |
3954 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3955 | if test "${enable_libtool_lock+set}" = set; then | |
3956 | enableval="$enable_libtool_lock" | |
a74801ba | 3957 | |
5464f5a1 | 3958 | fi; |
a74801ba ILT |
3959 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3960 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3961 | ||
5464f5a1 | 3962 | |
ac48eca1 AO |
3963 | # Check whether --with-pic or --without-pic was given. |
3964 | if test "${with_pic+set}" = set; then | |
3965 | withval="$with_pic" | |
3966 | pic_mode="$withval" | |
3967 | else | |
5464f5a1 NN |
3968 | pic_mode=default |
3969 | fi; | |
ac48eca1 AO |
3970 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3971 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3972 | ||
252b5132 RH |
3973 | # Some flags need to be propagated to the compiler or linker for good |
3974 | # libtool support. | |
55c80943 | 3975 | case $host in |
252b5132 RH |
3976 | *-*-irix6*) |
3977 | # Find out which ABI we are using. | |
1ad12f97 | 3978 | echo '#line 3978 "configure"' > conftest.$ac_ext |
5464f5a1 NN |
3979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3980 | (eval $ac_compile) 2>&5 | |
3981 | ac_status=$? | |
3982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3983 | (exit $ac_status); }; then | |
6a457e5c NC |
3984 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3985 | case `/usr/bin/file conftest.$ac_objext` in | |
3986 | *32-bit*) | |
3987 | LD="${LD-ld} -melf32bsmip" | |
3988 | ;; | |
3989 | *N32*) | |
3990 | LD="${LD-ld} -melf32bmipn32" | |
3991 | ;; | |
3992 | *64-bit*) | |
3993 | LD="${LD-ld} -melf64bmip" | |
3994 | ;; | |
3995 | esac | |
3996 | else | |
55c80943 | 3997 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3998 | *32-bit*) |
3999 | LD="${LD-ld} -32" | |
4000 | ;; | |
4001 | *N32*) | |
4002 | LD="${LD-ld} -n32" | |
4003 | ;; | |
4004 | *64-bit*) | |
4005 | LD="${LD-ld} -64" | |
4006 | ;; | |
4007 | esac | |
6a457e5c | 4008 | fi |
252b5132 RH |
4009 | fi |
4010 | rm -rf conftest* | |
4011 | ;; | |
4012 | ||
4867be41 DJ |
4013 | ia64-*-hpux*) |
4014 | # Find out which ABI we are using. | |
4015 | echo 'int i;' > conftest.$ac_ext | |
5464f5a1 NN |
4016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4017 | (eval $ac_compile) 2>&5 | |
4018 | ac_status=$? | |
4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4020 | (exit $ac_status); }; then | |
4867be41 DJ |
4021 | case "`/usr/bin/file conftest.o`" in |
4022 | *ELF-32*) | |
4023 | HPUX_IA64_MODE="32" | |
4024 | ;; | |
4025 | *ELF-64*) | |
4026 | HPUX_IA64_MODE="64" | |
4027 | ;; | |
4028 | esac | |
4029 | fi | |
4030 | rm -rf conftest* | |
4031 | ;; | |
4032 | ||
252b5132 RH |
4033 | *-*-sco3.2v5*) |
4034 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
b2ef150d | 4035 | SAVE_CFLAGS="$CFLAGS" |
252b5132 | 4036 | CFLAGS="$CFLAGS -belf" |
5464f5a1 NN |
4037 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4038 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4039 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2ef150d | 4041 | else |
5464f5a1 NN |
4042 | |
4043 | ||
ac48eca1 | 4044 | ac_ext=c |
ac48eca1 | 4045 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4049 | |
5464f5a1 NN |
4050 | cat >conftest.$ac_ext <<_ACEOF |
4051 | /* confdefs.h. */ | |
4052 | _ACEOF | |
4053 | cat confdefs.h >>conftest.$ac_ext | |
4054 | cat >>conftest.$ac_ext <<_ACEOF | |
4055 | /* end confdefs.h. */ | |
b2ef150d | 4056 | |
5464f5a1 NN |
4057 | int |
4058 | main () | |
4059 | { | |
b2ef150d | 4060 | |
5464f5a1 NN |
4061 | ; |
4062 | return 0; | |
4063 | } | |
4064 | _ACEOF | |
4065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4067 | (eval $ac_link) 2>conftest.er1 | |
4068 | ac_status=$? | |
4069 | grep -v '^ *+' conftest.er1 >conftest.err | |
4070 | rm -f conftest.er1 | |
4071 | cat conftest.err >&5 | |
4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4073 | (exit $ac_status); } && | |
8fb84ecc AC |
4074 | { ac_try='test -z "$ac_c_werror_flag" |
4075 | || test ! -s conftest.err' | |
5464f5a1 NN |
4076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4077 | (eval $ac_try) 2>&5 | |
4078 | ac_status=$? | |
4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4080 | (exit $ac_status); }; } && | |
4081 | { ac_try='test -s conftest$ac_exeext' | |
4082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4083 | (eval $ac_try) 2>&5 | |
4084 | ac_status=$? | |
4085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4086 | (exit $ac_status); }; }; then | |
b2ef150d ILT |
4087 | lt_cv_cc_needs_belf=yes |
4088 | else | |
5464f5a1 NN |
4089 | echo "$as_me: failed program was:" >&5 |
4090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4091 | ||
4092 | lt_cv_cc_needs_belf=no | |
b2ef150d | 4093 | fi |
5464f5a1 NN |
4094 | rm -f conftest.err conftest.$ac_objext \ |
4095 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 4096 | ac_ext=c |
ac48eca1 | 4097 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4101 | |
b2ef150d | 4102 | fi |
5464f5a1 NN |
4103 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4104 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2ef150d ILT |
4105 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4106 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4107 | CFLAGS="$SAVE_CFLAGS" | |
4108 | fi | |
252b5132 RH |
4109 | ;; |
4110 | ||
6be7c12c | 4111 | |
252b5132 RH |
4112 | esac |
4113 | ||
6be7c12c | 4114 | |
b2ef150d | 4115 | # Save cache, so that ltconfig can load it |
5464f5a1 | 4116 | cat >confcache <<\_ACEOF |
b2ef150d ILT |
4117 | # This file is a shell script that caches the results of configure |
4118 | # tests run on this system so they can be shared between configure | |
5464f5a1 NN |
4119 | # scripts and configure runs, see configure's option --config-cache. |
4120 | # It is not useful on other systems. If it contains results you don't | |
4121 | # want to keep, you may remove or edit it. | |
b2ef150d | 4122 | # |
5464f5a1 NN |
4123 | # config.status only pays attention to the cache file if you give it |
4124 | # the --recheck option to rerun configure. | |
b2ef150d | 4125 | # |
5464f5a1 NN |
4126 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4127 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4128 | # following values. | |
4129 | ||
4130 | _ACEOF | |
4131 | ||
b2ef150d ILT |
4132 | # The following way of writing the cache mishandles newlines in values, |
4133 | # but we know of no workaround that is simple, portable, and efficient. | |
4134 | # So, don't put newlines in cache variables' values. | |
4135 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4136 | # and sets the high bit in the cache file unless we assign to the vars. | |
5464f5a1 NN |
4137 | { |
4138 | (set) 2>&1 | | |
4139 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4140 | *ac_space=\ *) | |
4141 | # `set' does not quote correctly, so add quotes (double-quote | |
4142 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4143 | sed -n \ | |
4144 | "s/'/'\\\\''/g; | |
4145 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4146 | ;; | |
4147 | *) | |
4148 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4149 | sed -n \ | |
4150 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4151 | ;; | |
4152 | esac; | |
4153 | } | | |
4154 | sed ' | |
4155 | t clear | |
4156 | : clear | |
4157 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4158 | t end | |
4159 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4160 | : end' >>confcache | |
4161 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
b2ef150d | 4162 | if test -w $cache_file; then |
5464f5a1 NN |
4163 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4164 | cat confcache >$cache_file | |
b2ef150d ILT |
4165 | else |
4166 | echo "not updating unwritable cache $cache_file" | |
4167 | fi | |
4168 | fi | |
4169 | rm -f confcache | |
4170 | ||
252b5132 | 4171 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4172 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4173 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4174 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4175 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4176 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4177 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4178 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4179 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
5464f5a1 NN |
4180 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4181 | echo "$as_me: error: libtool configure failed" >&2;} | |
4182 | { (exit 1); exit 1; }; } | |
252b5132 | 4183 | |
b2ef150d ILT |
4184 | # Reload cache, that may have been modified by ltconfig |
4185 | if test -r "$cache_file"; then | |
5464f5a1 NN |
4186 | # Some versions of bash will fail to source /dev/null (special |
4187 | # files actually), so we avoid doing that. | |
4188 | if test -f "$cache_file"; then | |
4189 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4190 | echo "$as_me: loading cache $cache_file" >&6;} | |
4191 | case $cache_file in | |
4192 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4193 | *) . ./$cache_file;; | |
4194 | esac | |
4195 | fi | |
b2ef150d | 4196 | else |
5464f5a1 NN |
4197 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4198 | echo "$as_me: creating cache $cache_file" >&6;} | |
4199 | >$cache_file | |
b2ef150d ILT |
4200 | fi |
4201 | ||
6be7c12c | 4202 | |
b2ef150d | 4203 | # This can be used to rebuild libtool when needed |
ac48eca1 | 4204 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2ef150d ILT |
4205 | |
4206 | # Always use our own libtool. | |
4207 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4208 | ||
252b5132 RH |
4209 | # Redirect the config.log output again, so that the ltconfig log is not |
4210 | # clobbered by the next message. | |
4211 | exec 5>>./config.log | |
4212 | ||
6be7c12c | 4213 | |
5464f5a1 NN |
4214 | |
4215 | ||
4216 | ||
4217 | ||
6be7c12c | 4218 | |
252b5132 RH |
4219 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
4220 | if test "${enable_64_bit_bfd+set}" = set; then | |
4221 | enableval="$enable_64_bit_bfd" | |
4222 | case "${enableval}" in | |
4223 | yes) want64=true ;; | |
4224 | no) want64=false ;; | |
5464f5a1 NN |
4225 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
4226 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
4227 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4228 | esac |
4229 | else | |
4230 | want64=false | |
5464f5a1 | 4231 | fi; # Check whether --enable-targets or --disable-targets was given. |
252b5132 RH |
4232 | if test "${enable_targets+set}" = set; then |
4233 | enableval="$enable_targets" | |
4234 | case "${enableval}" in | |
5464f5a1 NN |
4235 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
4236 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
4237 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4238 | ;; |
4239 | no) enable_targets= ;; | |
4240 | *) enable_targets=$enableval ;; | |
4241 | esac | |
5464f5a1 | 4242 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
4243 | if test "${enable_commonbfdlib+set}" = set; then |
4244 | enableval="$enable_commonbfdlib" | |
4245 | case "${enableval}" in | |
4246 | yes) commonbfdlib=true ;; | |
4247 | no) commonbfdlib=false ;; | |
5464f5a1 NN |
4248 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
4249 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
4250 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 4251 | esac |
5464f5a1 | 4252 | fi; |
252b5132 RH |
4253 | # Check whether --with-mmap or --without-mmap was given. |
4254 | if test "${with_mmap+set}" = set; then | |
4255 | withval="$with_mmap" | |
4256 | case "${withval}" in | |
4257 | yes) want_mmap=true ;; | |
4258 | no) want_mmap=false ;; | |
5464f5a1 NN |
4259 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5 |
4260 | echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} | |
4261 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4262 | esac |
4263 | else | |
4264 | want_mmap=false | |
5464f5a1 | 4265 | fi; |
9e9b66a9 AM |
4266 | |
4267 | WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
1ad12f97 | 4268 | |
569acd2c NC |
4269 | # Check whether --enable-werror or --disable-werror was given. |
4270 | if test "${enable_werror+set}" = set; then | |
4271 | enableval="$enable_werror" | |
1ad12f97 NC |
4272 | case "${enableval}" in |
4273 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4274 | no | n) ERROR_ON_WARNING="no" ;; | |
569acd2c NC |
4275 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
4276 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
1ad12f97 NC |
4277 | { (exit 1); exit 1; }; } ;; |
4278 | esac | |
4279 | fi; | |
4280 | ||
9e9b66a9 AM |
4281 | # Enable -Werror by default when using gcc |
4282 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4283 | ERROR_ON_WARNING=yes | |
4284 | fi | |
4285 | ||
4286 | NO_WERROR= | |
4287 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4288 | WARN_CFLAGS="$WARN_CFLAGS -Werror" | |
4289 | NO_WERROR="-Wno-error" | |
1ad12f97 NC |
4290 | fi |
4291 | ||
a2d91340 AC |
4292 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
4293 | if test "${enable_build_warnings+set}" = set; then | |
4294 | enableval="$enable_build_warnings" | |
4295 | case "${enableval}" in | |
4296 | yes) ;; | |
9e9b66a9 | 4297 | no) WARN_CFLAGS="-w";; |
a2d91340 | 4298 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 | 4299 | WARN_CFLAGS="${WARN_CFLAGS} ${t}";; |
a2d91340 | 4300 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 AM |
4301 | WARN_CFLAGS="${t} ${WARN_CFLAGS}";; |
4302 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
a2d91340 | 4303 | esac |
9e9b66a9 AM |
4304 | fi; |
4305 | ||
4306 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4307 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
a2d91340 AC |
4308 | fi |
4309 | ||
4310 | ||
9e9b66a9 AM |
4311 | |
4312 | ||
4313 | ||
5464f5a1 | 4314 | ac_config_headers="$ac_config_headers config.h:config.in" |
6be7c12c | 4315 | |
252b5132 RH |
4316 | |
4317 | if test -z "$target" ; then | |
5464f5a1 NN |
4318 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
4319 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
4320 | { (exit 1); exit 1; }; } | |
252b5132 | 4321 | fi |
252b5132 | 4322 | |
5464f5a1 NN |
4323 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4324 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
4325 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
4326 | if test "${enable_maintainer_mode+set}" = set; then | |
4327 | enableval="$enable_maintainer_mode" | |
4328 | USE_MAINTAINER_MODE=$enableval | |
4329 | else | |
4330 | USE_MAINTAINER_MODE=no | |
5464f5a1 NN |
4331 | fi; |
4332 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4333 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
6be7c12c | 4334 | |
252b5132 RH |
4335 | |
4336 | if test $USE_MAINTAINER_MODE = yes; then | |
4337 | MAINTAINER_MODE_TRUE= | |
4338 | MAINTAINER_MODE_FALSE='#' | |
4339 | else | |
4340 | MAINTAINER_MODE_TRUE='#' | |
4341 | MAINTAINER_MODE_FALSE= | |
4342 | fi | |
f5385ebf | 4343 | |
252b5132 | 4344 | MAINT=$MAINTAINER_MODE_TRUE |
252b5132 | 4345 | |
5464f5a1 | 4346 | |
24443139 AS |
4347 | case ${build_alias} in |
4348 | "") build_noncanonical=${build} ;; | |
4349 | *) build_noncanonical=${build_alias} ;; | |
4350 | esac | |
4351 | ||
4352 | case ${host_alias} in | |
4353 | "") host_noncanonical=${build_noncanonical} ;; | |
4354 | *) host_noncanonical=${host_alias} ;; | |
4355 | esac | |
4356 | ||
4357 | case ${target_alias} in | |
4358 | "") target_noncanonical=${host_noncanonical} ;; | |
4359 | *) target_noncanonical=${target_alias} ;; | |
4360 | esac | |
4361 | ||
5464f5a1 NN |
4362 | echo "$as_me:$LINENO: checking whether to install libbfd" >&5 |
4363 | echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 | |
a703a6ea AM |
4364 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. |
4365 | if test "${enable_install_libbfd+set}" = set; then | |
4366 | enableval="$enable_install_libbfd" | |
4367 | install_libbfd_p=$enableval | |
4368 | else | |
66e25bab | 4369 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
a703a6ea AM |
4370 | install_libbfd_p=yes |
4371 | else | |
4372 | install_libbfd_p=no | |
4373 | fi | |
5464f5a1 NN |
4374 | fi; |
4375 | echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 | |
4376 | echo "${ECHO_T}$install_libbfd_p" >&6 | |
a703a6ea | 4377 | |
a703a6ea AM |
4378 | |
4379 | if test $install_libbfd_p = yes; then | |
4380 | INSTALL_LIBBFD_TRUE= | |
4381 | INSTALL_LIBBFD_FALSE='#' | |
4382 | else | |
4383 | INSTALL_LIBBFD_TRUE='#' | |
4384 | INSTALL_LIBBFD_FALSE= | |
4385 | fi | |
f5385ebf | 4386 | |
5464f5a1 | 4387 | # Need _noncanonical variables for this. |
24443139 AS |
4388 | |
4389 | ||
4390 | ||
4391 | ||
a703a6ea AM |
4392 | # libbfd.a is a host library containing target dependent code |
4393 | bfdlibdir='$(libdir)' | |
4394 | bfdincludedir='$(includedir)' | |
4395 | if test "${host}" != "${target}"; then | |
5464f5a1 NN |
4396 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' |
4397 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
a703a6ea | 4398 | fi |
a703a6ea AM |
4399 | |
4400 | ||
252b5132 RH |
4401 | |
4402 | ||
5464f5a1 NN |
4403 | |
4404 | ||
4405 | host64=false | |
4406 | target64=false | |
4407 | bfd_default_target_size=32 | |
4408 | ||
4409 | # host stuff: | |
4410 | ||
4411 | ac_ext=c | |
4412 | ac_cpp='$CPP $CPPFLAGS' | |
4413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4416 | if test -n "$ac_tool_prefix"; then | |
4417 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4418 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4419 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4421 | if test "${ac_cv_prog_CC+set}" = set; then | |
4422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4423 | else |
5464f5a1 NN |
4424 | if test -n "$CC"; then |
4425 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4426 | else |
5464f5a1 NN |
4427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4428 | for as_dir in $PATH | |
4429 | do | |
4430 | IFS=$as_save_IFS | |
4431 | test -z "$as_dir" && as_dir=. | |
4432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4433 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4434 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4435 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4436 | break 2 | |
6be7c12c | 4437 | fi |
5464f5a1 NN |
4438 | done |
4439 | done | |
4440 | ||
252b5132 | 4441 | fi |
b3baf5d0 | 4442 | fi |
5464f5a1 NN |
4443 | CC=$ac_cv_prog_CC |
4444 | if test -n "$CC"; then | |
4445 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4446 | echo "${ECHO_T}$CC" >&6 | |
4447 | else | |
4448 | echo "$as_me:$LINENO: result: no" >&5 | |
4449 | echo "${ECHO_T}no" >&6 | |
4450 | fi | |
252b5132 | 4451 | |
5464f5a1 NN |
4452 | fi |
4453 | if test -z "$ac_cv_prog_CC"; then | |
4454 | ac_ct_CC=$CC | |
4455 | # Extract the first word of "gcc", so it can be a program name with args. | |
4456 | set dummy gcc; ac_word=$2 | |
4457 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4459 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4461 | else | |
4462 | if test -n "$ac_ct_CC"; then | |
4463 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4464 | else | |
4465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4466 | for as_dir in $PATH | |
4467 | do | |
4468 | IFS=$as_save_IFS | |
4469 | test -z "$as_dir" && as_dir=. | |
4470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4471 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4472 | ac_cv_prog_ac_ct_CC="gcc" | |
4473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4474 | break 2 | |
4475 | fi | |
4476 | done | |
4477 | done | |
252b5132 | 4478 | |
5464f5a1 NN |
4479 | fi |
4480 | fi | |
4481 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4482 | if test -n "$ac_ct_CC"; then | |
4483 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4484 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4485 | else | |
4486 | echo "$as_me:$LINENO: result: no" >&5 | |
4487 | echo "${ECHO_T}no" >&6 | |
4488 | fi | |
252b5132 | 4489 | |
5464f5a1 NN |
4490 | CC=$ac_ct_CC |
4491 | else | |
4492 | CC="$ac_cv_prog_CC" | |
4493 | fi | |
252b5132 | 4494 | |
5464f5a1 NN |
4495 | if test -z "$CC"; then |
4496 | if test -n "$ac_tool_prefix"; then | |
4497 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4498 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4499 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4500 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4501 | if test "${ac_cv_prog_CC+set}" = set; then | |
4502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4503 | else | |
4504 | if test -n "$CC"; then | |
4505 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4506 | else | |
4507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4508 | for as_dir in $PATH | |
4509 | do | |
4510 | IFS=$as_save_IFS | |
4511 | test -z "$as_dir" && as_dir=. | |
4512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4513 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4514 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4515 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4516 | break 2 | |
4517 | fi | |
4518 | done | |
4519 | done | |
6be7c12c | 4520 | |
5464f5a1 NN |
4521 | fi |
4522 | fi | |
4523 | CC=$ac_cv_prog_CC | |
4524 | if test -n "$CC"; then | |
4525 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4526 | echo "${ECHO_T}$CC" >&6 | |
4527 | else | |
4528 | echo "$as_me:$LINENO: result: no" >&5 | |
4529 | echo "${ECHO_T}no" >&6 | |
4530 | fi | |
4531 | ||
4532 | fi | |
4533 | if test -z "$ac_cv_prog_CC"; then | |
4534 | ac_ct_CC=$CC | |
4535 | # Extract the first word of "cc", so it can be a program name with args. | |
4536 | set dummy cc; ac_word=$2 | |
4537 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4539 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4541 | else | |
4542 | if test -n "$ac_ct_CC"; then | |
4543 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4544 | else | |
4545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4546 | for as_dir in $PATH | |
4547 | do | |
4548 | IFS=$as_save_IFS | |
4549 | test -z "$as_dir" && as_dir=. | |
4550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4551 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4552 | ac_cv_prog_ac_ct_CC="cc" | |
4553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4554 | break 2 | |
4555 | fi | |
4556 | done | |
4557 | done | |
4558 | ||
4559 | fi | |
4560 | fi | |
4561 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4562 | if test -n "$ac_ct_CC"; then | |
4563 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4564 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4565 | else | |
4566 | echo "$as_me:$LINENO: result: no" >&5 | |
4567 | echo "${ECHO_T}no" >&6 | |
4568 | fi | |
4569 | ||
4570 | CC=$ac_ct_CC | |
4571 | else | |
4572 | CC="$ac_cv_prog_CC" | |
4573 | fi | |
4574 | ||
4575 | fi | |
4576 | if test -z "$CC"; then | |
4577 | # Extract the first word of "cc", so it can be a program name with args. | |
4578 | set dummy cc; ac_word=$2 | |
4579 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4580 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4581 | if test "${ac_cv_prog_CC+set}" = set; then | |
4582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4583 | else |
4584 | if test -n "$CC"; then | |
4585 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4586 | else | |
5464f5a1 NN |
4587 | ac_prog_rejected=no |
4588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4589 | for as_dir in $PATH | |
4590 | do | |
4591 | IFS=$as_save_IFS | |
4592 | test -z "$as_dir" && as_dir=. | |
4593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4594 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4595 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4596 | ac_prog_rejected=yes | |
4597 | continue | |
4598 | fi | |
4599 | ac_cv_prog_CC="cc" | |
4600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4601 | break 2 | |
4602 | fi | |
4603 | done | |
4604 | done | |
4605 | ||
4606 | if test $ac_prog_rejected = yes; then | |
4607 | # We found a bogon in the path, so make sure we never use it. | |
4608 | set dummy $ac_cv_prog_CC | |
4609 | shift | |
4610 | if test $# != 0; then | |
4611 | # We chose a different compiler from the bogus one. | |
4612 | # However, it has the same basename, so the bogon will be chosen | |
4613 | # first if we set CC to just the basename; use the full file name. | |
4614 | shift | |
4615 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4616 | fi | |
4617 | fi | |
4618 | fi | |
4619 | fi | |
4620 | CC=$ac_cv_prog_CC | |
4621 | if test -n "$CC"; then | |
4622 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4623 | echo "${ECHO_T}$CC" >&6 | |
4624 | else | |
4625 | echo "$as_me:$LINENO: result: no" >&5 | |
4626 | echo "${ECHO_T}no" >&6 | |
4627 | fi | |
4628 | ||
4629 | fi | |
4630 | if test -z "$CC"; then | |
4631 | if test -n "$ac_tool_prefix"; then | |
4632 | for ac_prog in cl | |
4633 | do | |
4634 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4635 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4636 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4638 | if test "${ac_cv_prog_CC+set}" = set; then | |
4639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4640 | else | |
4641 | if test -n "$CC"; then | |
4642 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4643 | else | |
4644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4645 | for as_dir in $PATH | |
4646 | do | |
4647 | IFS=$as_save_IFS | |
4648 | test -z "$as_dir" && as_dir=. | |
4649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4651 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4653 | break 2 | |
4654 | fi | |
4655 | done | |
4656 | done | |
4657 | ||
4658 | fi | |
4659 | fi | |
4660 | CC=$ac_cv_prog_CC | |
4661 | if test -n "$CC"; then | |
4662 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4663 | echo "${ECHO_T}$CC" >&6 | |
4664 | else | |
4665 | echo "$as_me:$LINENO: result: no" >&5 | |
4666 | echo "${ECHO_T}no" >&6 | |
4667 | fi | |
4668 | ||
4669 | test -n "$CC" && break | |
6be7c12c | 4670 | done |
252b5132 | 4671 | fi |
5464f5a1 NN |
4672 | if test -z "$CC"; then |
4673 | ac_ct_CC=$CC | |
4674 | for ac_prog in cl | |
4675 | do | |
4676 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4677 | set dummy $ac_prog; ac_word=$2 | |
4678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4680 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4682 | else | |
4683 | if test -n "$ac_ct_CC"; then | |
4684 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4685 | else | |
4686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4687 | for as_dir in $PATH | |
4688 | do | |
4689 | IFS=$as_save_IFS | |
4690 | test -z "$as_dir" && as_dir=. | |
4691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4692 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4693 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4695 | break 2 | |
4696 | fi | |
4697 | done | |
4698 | done | |
4699 | ||
4700 | fi | |
4701 | fi | |
4702 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4703 | if test -n "$ac_ct_CC"; then | |
4704 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4705 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4706 | else | |
4707 | echo "$as_me:$LINENO: result: no" >&5 | |
4708 | echo "${ECHO_T}no" >&6 | |
4709 | fi | |
4710 | ||
4711 | test -n "$ac_ct_CC" && break | |
4712 | done | |
4713 | ||
4714 | CC=$ac_ct_CC | |
4715 | fi | |
4716 | ||
4717 | fi | |
4718 | ||
4719 | ||
4720 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4721 | See \`config.log' for more details." >&5 | |
4722 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4723 | See \`config.log' for more details." >&2;} | |
4724 | { (exit 1); exit 1; }; } | |
4725 | ||
4726 | # Provide some information about the compiler. | |
4727 | echo "$as_me:$LINENO:" \ | |
4728 | "checking for C compiler version" >&5 | |
4729 | ac_compiler=`set X $ac_compile; echo $2` | |
4730 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4731 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4732 | ac_status=$? | |
4733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4734 | (exit $ac_status); } | |
4735 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4736 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4737 | ac_status=$? | |
4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4739 | (exit $ac_status); } | |
4740 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4741 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4742 | ac_status=$? | |
4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4744 | (exit $ac_status); } | |
4745 | ||
4746 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4747 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4748 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4750 | else | |
4751 | cat >conftest.$ac_ext <<_ACEOF | |
4752 | /* confdefs.h. */ | |
4753 | _ACEOF | |
4754 | cat confdefs.h >>conftest.$ac_ext | |
4755 | cat >>conftest.$ac_ext <<_ACEOF | |
4756 | /* end confdefs.h. */ | |
4757 | ||
4758 | int | |
4759 | main () | |
4760 | { | |
4761 | #ifndef __GNUC__ | |
4762 | choke me | |
4763 | #endif | |
4764 | ||
4765 | ; | |
4766 | return 0; | |
4767 | } | |
4768 | _ACEOF | |
4769 | rm -f conftest.$ac_objext | |
4770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4771 | (eval $ac_compile) 2>conftest.er1 | |
4772 | ac_status=$? | |
4773 | grep -v '^ *+' conftest.er1 >conftest.err | |
4774 | rm -f conftest.er1 | |
4775 | cat conftest.err >&5 | |
4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4777 | (exit $ac_status); } && | |
8fb84ecc AC |
4778 | { ac_try='test -z "$ac_c_werror_flag" |
4779 | || test ! -s conftest.err' | |
5464f5a1 NN |
4780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4781 | (eval $ac_try) 2>&5 | |
4782 | ac_status=$? | |
4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4784 | (exit $ac_status); }; } && | |
4785 | { ac_try='test -s conftest.$ac_objext' | |
4786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4787 | (eval $ac_try) 2>&5 | |
4788 | ac_status=$? | |
4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4790 | (exit $ac_status); }; }; then | |
4791 | ac_compiler_gnu=yes | |
4792 | else | |
4793 | echo "$as_me: failed program was:" >&5 | |
4794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4795 | ||
4796 | ac_compiler_gnu=no | |
4797 | fi | |
4798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4799 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4800 | ||
4801 | fi | |
4802 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4803 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4804 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4805 | ac_test_CFLAGS=${CFLAGS+set} | |
4806 | ac_save_CFLAGS=$CFLAGS | |
4807 | CFLAGS="-g" | |
4808 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4809 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4810 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4812 | else | |
4813 | cat >conftest.$ac_ext <<_ACEOF | |
4814 | /* confdefs.h. */ | |
4815 | _ACEOF | |
4816 | cat confdefs.h >>conftest.$ac_ext | |
4817 | cat >>conftest.$ac_ext <<_ACEOF | |
4818 | /* end confdefs.h. */ | |
4819 | ||
4820 | int | |
4821 | main () | |
4822 | { | |
4823 | ||
4824 | ; | |
4825 | return 0; | |
4826 | } | |
4827 | _ACEOF | |
4828 | rm -f conftest.$ac_objext | |
4829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4830 | (eval $ac_compile) 2>conftest.er1 | |
4831 | ac_status=$? | |
4832 | grep -v '^ *+' conftest.er1 >conftest.err | |
4833 | rm -f conftest.er1 | |
4834 | cat conftest.err >&5 | |
4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4836 | (exit $ac_status); } && | |
8fb84ecc AC |
4837 | { ac_try='test -z "$ac_c_werror_flag" |
4838 | || test ! -s conftest.err' | |
5464f5a1 NN |
4839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4840 | (eval $ac_try) 2>&5 | |
4841 | ac_status=$? | |
4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4843 | (exit $ac_status); }; } && | |
4844 | { ac_try='test -s conftest.$ac_objext' | |
4845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4846 | (eval $ac_try) 2>&5 | |
4847 | ac_status=$? | |
4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4849 | (exit $ac_status); }; }; then | |
4850 | ac_cv_prog_cc_g=yes | |
4851 | else | |
4852 | echo "$as_me: failed program was:" >&5 | |
4853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4854 | ||
4855 | ac_cv_prog_cc_g=no | |
4856 | fi | |
4857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4858 | fi | |
4859 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4860 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
4861 | if test "$ac_test_CFLAGS" = set; then | |
4862 | CFLAGS=$ac_save_CFLAGS | |
4863 | elif test $ac_cv_prog_cc_g = yes; then | |
4864 | if test "$GCC" = yes; then | |
4865 | CFLAGS="-g -O2" | |
4866 | else | |
4867 | CFLAGS="-g" | |
4868 | fi | |
4869 | else | |
4870 | if test "$GCC" = yes; then | |
4871 | CFLAGS="-O2" | |
4872 | else | |
4873 | CFLAGS= | |
4874 | fi | |
4875 | fi | |
4876 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
4877 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4878 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4880 | else | |
4881 | ac_cv_prog_cc_stdc=no | |
4882 | ac_save_CC=$CC | |
4883 | cat >conftest.$ac_ext <<_ACEOF | |
4884 | /* confdefs.h. */ | |
4885 | _ACEOF | |
4886 | cat confdefs.h >>conftest.$ac_ext | |
4887 | cat >>conftest.$ac_ext <<_ACEOF | |
4888 | /* end confdefs.h. */ | |
4889 | #include <stdarg.h> | |
4890 | #include <stdio.h> | |
4891 | #include <sys/types.h> | |
4892 | #include <sys/stat.h> | |
4893 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4894 | struct buf { int x; }; | |
4895 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4896 | static char *e (p, i) | |
4897 | char **p; | |
4898 | int i; | |
4899 | { | |
4900 | return p[i]; | |
4901 | } | |
4902 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4903 | { | |
4904 | char *s; | |
4905 | va_list v; | |
4906 | va_start (v,p); | |
4907 | s = g (p, va_arg (v,int)); | |
4908 | va_end (v); | |
4909 | return s; | |
4910 | } | |
4911 | ||
4912 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4913 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4914 | These don't provoke an error unfortunately, instead are silently treated | |
4915 | as 'x'. The following induces an error, until -std1 is added to get | |
4916 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4917 | array size at least. It's necessary to write '\x00'==0 to get something | |
4918 | that's true only with -std1. */ | |
4919 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4920 | ||
4921 | int test (int i, double x); | |
4922 | struct s1 {int (*f) (int a);}; | |
4923 | struct s2 {int (*f) (double a);}; | |
4924 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4925 | int argc; | |
4926 | char **argv; | |
4927 | int | |
4928 | main () | |
4929 | { | |
4930 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4931 | ; | |
4932 | return 0; | |
4933 | } | |
4934 | _ACEOF | |
4935 | # Don't try gcc -ansi; that turns off useful extensions and | |
4936 | # breaks some systems' header files. | |
4937 | # AIX -qlanglvl=ansi | |
4938 | # Ultrix and OSF/1 -std1 | |
4939 | # HP-UX 10.20 and later -Ae | |
4940 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4941 | # SVR4 -Xc -D__EXTENSIONS__ | |
4942 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4943 | do | |
4944 | CC="$ac_save_CC $ac_arg" | |
4945 | rm -f conftest.$ac_objext | |
4946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4947 | (eval $ac_compile) 2>conftest.er1 | |
4948 | ac_status=$? | |
4949 | grep -v '^ *+' conftest.er1 >conftest.err | |
4950 | rm -f conftest.er1 | |
4951 | cat conftest.err >&5 | |
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4953 | (exit $ac_status); } && | |
8fb84ecc AC |
4954 | { ac_try='test -z "$ac_c_werror_flag" |
4955 | || test ! -s conftest.err' | |
5464f5a1 NN |
4956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4957 | (eval $ac_try) 2>&5 | |
4958 | ac_status=$? | |
4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4960 | (exit $ac_status); }; } && | |
4961 | { ac_try='test -s conftest.$ac_objext' | |
4962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4963 | (eval $ac_try) 2>&5 | |
4964 | ac_status=$? | |
4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4966 | (exit $ac_status); }; }; then | |
4967 | ac_cv_prog_cc_stdc=$ac_arg | |
4968 | break | |
4969 | else | |
4970 | echo "$as_me: failed program was:" >&5 | |
4971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4972 | ||
4973 | fi | |
4974 | rm -f conftest.err conftest.$ac_objext | |
4975 | done | |
4976 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4977 | CC=$ac_save_CC | |
4978 | ||
4979 | fi | |
4980 | ||
4981 | case "x$ac_cv_prog_cc_stdc" in | |
4982 | x|xno) | |
4983 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4984 | echo "${ECHO_T}none needed" >&6 ;; | |
4985 | *) | |
4986 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4987 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4988 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4989 | esac | |
4990 | ||
4991 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
4992 | # in C++ we need to declare it. In case someone uses the same compiler | |
4993 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4994 | # the declaration of exit, since it's the most demanding environment. | |
4995 | cat >conftest.$ac_ext <<_ACEOF | |
4996 | #ifndef __cplusplus | |
4997 | choke me | |
4998 | #endif | |
4999 | _ACEOF | |
5000 | rm -f conftest.$ac_objext | |
5001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5002 | (eval $ac_compile) 2>conftest.er1 | |
5003 | ac_status=$? | |
5004 | grep -v '^ *+' conftest.er1 >conftest.err | |
5005 | rm -f conftest.er1 | |
5006 | cat conftest.err >&5 | |
5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5008 | (exit $ac_status); } && | |
8fb84ecc AC |
5009 | { ac_try='test -z "$ac_c_werror_flag" |
5010 | || test ! -s conftest.err' | |
5464f5a1 NN |
5011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5012 | (eval $ac_try) 2>&5 | |
5013 | ac_status=$? | |
5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5015 | (exit $ac_status); }; } && | |
5016 | { ac_try='test -s conftest.$ac_objext' | |
5017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5018 | (eval $ac_try) 2>&5 | |
5019 | ac_status=$? | |
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5021 | (exit $ac_status); }; }; then | |
5022 | for ac_declaration in \ | |
5023 | '' \ | |
5024 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
5025 | 'extern "C" void std::exit (int); using std::exit;' \ | |
5026 | 'extern "C" void exit (int) throw ();' \ | |
5027 | 'extern "C" void exit (int);' \ | |
5028 | 'void exit (int);' | |
5029 | do | |
5030 | cat >conftest.$ac_ext <<_ACEOF | |
5031 | /* confdefs.h. */ | |
5032 | _ACEOF | |
5033 | cat confdefs.h >>conftest.$ac_ext | |
5034 | cat >>conftest.$ac_ext <<_ACEOF | |
5035 | /* end confdefs.h. */ | |
5036 | $ac_declaration | |
5037 | #include <stdlib.h> | |
5038 | int | |
5039 | main () | |
5040 | { | |
5041 | exit (42); | |
5042 | ; | |
5043 | return 0; | |
5044 | } | |
5045 | _ACEOF | |
5046 | rm -f conftest.$ac_objext | |
5047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5048 | (eval $ac_compile) 2>conftest.er1 | |
5049 | ac_status=$? | |
5050 | grep -v '^ *+' conftest.er1 >conftest.err | |
5051 | rm -f conftest.er1 | |
5052 | cat conftest.err >&5 | |
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5054 | (exit $ac_status); } && | |
8fb84ecc AC |
5055 | { ac_try='test -z "$ac_c_werror_flag" |
5056 | || test ! -s conftest.err' | |
5464f5a1 NN |
5057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5058 | (eval $ac_try) 2>&5 | |
5059 | ac_status=$? | |
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5061 | (exit $ac_status); }; } && | |
5062 | { ac_try='test -s conftest.$ac_objext' | |
5063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5064 | (eval $ac_try) 2>&5 | |
5065 | ac_status=$? | |
5066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5067 | (exit $ac_status); }; }; then | |
5068 | : | |
5069 | else | |
5070 | echo "$as_me: failed program was:" >&5 | |
5071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5072 | ||
5073 | continue | |
5074 | fi | |
5075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5076 | cat >conftest.$ac_ext <<_ACEOF | |
5077 | /* confdefs.h. */ | |
5078 | _ACEOF | |
5079 | cat confdefs.h >>conftest.$ac_ext | |
5080 | cat >>conftest.$ac_ext <<_ACEOF | |
5081 | /* end confdefs.h. */ | |
5082 | $ac_declaration | |
5083 | int | |
5084 | main () | |
5085 | { | |
5086 | exit (42); | |
5087 | ; | |
5088 | return 0; | |
5089 | } | |
5090 | _ACEOF | |
5091 | rm -f conftest.$ac_objext | |
5092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5093 | (eval $ac_compile) 2>conftest.er1 | |
5094 | ac_status=$? | |
5095 | grep -v '^ *+' conftest.er1 >conftest.err | |
5096 | rm -f conftest.er1 | |
5097 | cat conftest.err >&5 | |
5098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5099 | (exit $ac_status); } && | |
8fb84ecc AC |
5100 | { ac_try='test -z "$ac_c_werror_flag" |
5101 | || test ! -s conftest.err' | |
5464f5a1 NN |
5102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5103 | (eval $ac_try) 2>&5 | |
5104 | ac_status=$? | |
5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5106 | (exit $ac_status); }; } && | |
5107 | { ac_try='test -s conftest.$ac_objext' | |
5108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5109 | (eval $ac_try) 2>&5 | |
5110 | ac_status=$? | |
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5112 | (exit $ac_status); }; }; then | |
5113 | break | |
5114 | else | |
5115 | echo "$as_me: failed program was:" >&5 | |
5116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5117 | ||
5118 | fi | |
5119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5120 | done | |
5121 | rm -f conftest* | |
5122 | if test -n "$ac_declaration"; then | |
5123 | echo '#ifdef __cplusplus' >>confdefs.h | |
5124 | echo $ac_declaration >>confdefs.h | |
5125 | echo '#endif' >>confdefs.h | |
252b5132 | 5126 | fi |
5464f5a1 | 5127 | |
b3baf5d0 | 5128 | else |
5464f5a1 NN |
5129 | echo "$as_me: failed program was:" >&5 |
5130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5131 | ||
b3baf5d0 | 5132 | fi |
5464f5a1 NN |
5133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5134 | ac_ext=c | |
5135 | ac_cpp='$CPP $CPPFLAGS' | |
5136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3baf5d0 | 5139 | |
5464f5a1 | 5140 | |
429cc0ae | 5141 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw" |
5464f5a1 NN |
5142 | if test -n "$ac_tool_prefix"; then |
5143 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5144 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5147 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5149 | else |
5464f5a1 NN |
5150 | if test -n "$RANLIB"; then |
5151 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
252b5132 | 5152 | else |
5464f5a1 NN |
5153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5154 | for as_dir in $PATH | |
5155 | do | |
5156 | IFS=$as_save_IFS | |
5157 | test -z "$as_dir" && as_dir=. | |
5158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5160 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5162 | break 2 | |
252b5132 | 5163 | fi |
5464f5a1 NN |
5164 | done |
5165 | done | |
5166 | ||
252b5132 RH |
5167 | fi |
5168 | fi | |
5464f5a1 NN |
5169 | RANLIB=$ac_cv_prog_RANLIB |
5170 | if test -n "$RANLIB"; then | |
5171 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5172 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 5173 | else |
5464f5a1 NN |
5174 | echo "$as_me:$LINENO: result: no" >&5 |
5175 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5176 | fi |
5177 | ||
5464f5a1 NN |
5178 | fi |
5179 | if test -z "$ac_cv_prog_RANLIB"; then | |
5180 | ac_ct_RANLIB=$RANLIB | |
5181 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5182 | set dummy ranlib; ac_word=$2 | |
5183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5185 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5187 | else |
5464f5a1 NN |
5188 | if test -n "$ac_ct_RANLIB"; then |
5189 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
252b5132 | 5190 | else |
5464f5a1 NN |
5191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5192 | for as_dir in $PATH | |
5193 | do | |
5194 | IFS=$as_save_IFS | |
5195 | test -z "$as_dir" && as_dir=. | |
5196 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5197 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5198 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5200 | break 2 | |
5201 | fi | |
5202 | done | |
5203 | done | |
5204 | ||
5205 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
5206 | fi |
5207 | fi | |
5464f5a1 NN |
5208 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5209 | if test -n "$ac_ct_RANLIB"; then | |
5210 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5211 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 5212 | else |
5464f5a1 NN |
5213 | echo "$as_me:$LINENO: result: no" >&5 |
5214 | echo "${ECHO_T}no" >&6 | |
b3baf5d0 | 5215 | fi |
252b5132 | 5216 | |
5464f5a1 | 5217 | RANLIB=$ac_ct_RANLIB |
6be7c12c | 5218 | else |
5464f5a1 | 5219 | RANLIB="$ac_cv_prog_RANLIB" |
252b5132 | 5220 | fi |
5464f5a1 | 5221 | |
6be7c12c | 5222 | ac_ext=c |
6be7c12c | 5223 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
5224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5227 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5228 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5229 | # On Suns, sometimes $CPP names a directory. | |
5230 | if test -n "$CPP" && test -d "$CPP"; then | |
5231 | CPP= | |
6be7c12c | 5232 | fi |
5464f5a1 NN |
5233 | if test -z "$CPP"; then |
5234 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5236 | else |
5464f5a1 NN |
5237 | # Double quotes because CPP needs to be expanded |
5238 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5239 | do | |
5240 | ac_preproc_ok=false | |
5241 | for ac_c_preproc_warn_flag in '' yes | |
5242 | do | |
5243 | # Use a header file that comes with gcc, so configuring glibc | |
5244 | # with a fresh cross-compiler works. | |
5245 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5246 | # <limits.h> exists even on freestanding compilers. | |
5247 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5248 | # not just through cpp. "Syntax error" is here to catch this case. | |
5249 | cat >conftest.$ac_ext <<_ACEOF | |
5250 | /* confdefs.h. */ | |
5251 | _ACEOF | |
5252 | cat confdefs.h >>conftest.$ac_ext | |
5253 | cat >>conftest.$ac_ext <<_ACEOF | |
5254 | /* end confdefs.h. */ | |
5255 | #ifdef __STDC__ | |
5256 | # include <limits.h> | |
5257 | #else | |
5258 | # include <assert.h> | |
252b5132 | 5259 | #endif |
5464f5a1 NN |
5260 | Syntax error |
5261 | _ACEOF | |
5262 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5263 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5264 | ac_status=$? | |
5265 | grep -v '^ *+' conftest.er1 >conftest.err | |
5266 | rm -f conftest.er1 | |
5267 | cat conftest.err >&5 | |
5268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5269 | (exit $ac_status); } >/dev/null; then | |
5270 | if test -s conftest.err; then | |
5271 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5272 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5273 | else | |
5274 | ac_cpp_err= | |
5275 | fi | |
6be7c12c | 5276 | else |
5464f5a1 | 5277 | ac_cpp_err=yes |
6be7c12c | 5278 | fi |
5464f5a1 NN |
5279 | if test -z "$ac_cpp_err"; then |
5280 | : | |
6be7c12c | 5281 | else |
5464f5a1 NN |
5282 | echo "$as_me: failed program was:" >&5 |
5283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5284 | ||
5285 | # Broken: fails on valid input. | |
5286 | continue | |
5287 | fi | |
5288 | rm -f conftest.err conftest.$ac_ext | |
5289 | ||
5290 | # OK, works on sane cases. Now check whether non-existent headers | |
5291 | # can be detected and how. | |
5292 | cat >conftest.$ac_ext <<_ACEOF | |
5293 | /* confdefs.h. */ | |
5294 | _ACEOF | |
5295 | cat confdefs.h >>conftest.$ac_ext | |
5296 | cat >>conftest.$ac_ext <<_ACEOF | |
5297 | /* end confdefs.h. */ | |
5298 | #include <ac_nonexistent.h> | |
5299 | _ACEOF | |
5300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5302 | ac_status=$? | |
5303 | grep -v '^ *+' conftest.er1 >conftest.err | |
5304 | rm -f conftest.er1 | |
5305 | cat conftest.err >&5 | |
5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5307 | (exit $ac_status); } >/dev/null; then | |
5308 | if test -s conftest.err; then | |
5309 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5311 | else | |
5312 | ac_cpp_err= | |
5313 | fi | |
252b5132 | 5314 | else |
5464f5a1 | 5315 | ac_cpp_err=yes |
252b5132 | 5316 | fi |
5464f5a1 NN |
5317 | if test -z "$ac_cpp_err"; then |
5318 | # Broken: success on invalid input. | |
5319 | continue | |
5320 | else | |
5321 | echo "$as_me: failed program was:" >&5 | |
5322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6be7c12c | 5323 | |
5464f5a1 NN |
5324 | # Passes both tests. |
5325 | ac_preproc_ok=: | |
5326 | break | |
252b5132 | 5327 | fi |
5464f5a1 | 5328 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5329 | |
5464f5a1 NN |
5330 | done |
5331 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5332 | rm -f conftest.err conftest.$ac_ext | |
5333 | if $ac_preproc_ok; then | |
5334 | break | |
252b5132 RH |
5335 | fi |
5336 | ||
5464f5a1 NN |
5337 | done |
5338 | ac_cv_prog_CPP=$CPP | |
252b5132 | 5339 | |
252b5132 | 5340 | fi |
5464f5a1 | 5341 | CPP=$ac_cv_prog_CPP |
6be7c12c | 5342 | else |
5464f5a1 NN |
5343 | ac_cv_prog_CPP=$CPP |
5344 | fi | |
5345 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5346 | echo "${ECHO_T}$CPP" >&6 | |
5347 | ac_preproc_ok=false | |
5348 | for ac_c_preproc_warn_flag in '' yes | |
5349 | do | |
5350 | # Use a header file that comes with gcc, so configuring glibc | |
5351 | # with a fresh cross-compiler works. | |
5352 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5353 | # <limits.h> exists even on freestanding compilers. | |
6be7c12c | 5354 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5464f5a1 NN |
5355 | # not just through cpp. "Syntax error" is here to catch this case. |
5356 | cat >conftest.$ac_ext <<_ACEOF | |
5357 | /* confdefs.h. */ | |
5358 | _ACEOF | |
5359 | cat confdefs.h >>conftest.$ac_ext | |
5360 | cat >>conftest.$ac_ext <<_ACEOF | |
5361 | /* end confdefs.h. */ | |
5362 | #ifdef __STDC__ | |
5363 | # include <limits.h> | |
5364 | #else | |
5365 | # include <assert.h> | |
5366 | #endif | |
5367 | Syntax error | |
5368 | _ACEOF | |
5369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5371 | ac_status=$? | |
5372 | grep -v '^ *+' conftest.er1 >conftest.err | |
5373 | rm -f conftest.er1 | |
5374 | cat conftest.err >&5 | |
5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5376 | (exit $ac_status); } >/dev/null; then | |
5377 | if test -s conftest.err; then | |
5378 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5379 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5380 | else | |
5381 | ac_cpp_err= | |
5382 | fi | |
252b5132 | 5383 | else |
5464f5a1 NN |
5384 | ac_cpp_err=yes |
5385 | fi | |
5386 | if test -z "$ac_cpp_err"; then | |
6be7c12c | 5387 | : |
252b5132 | 5388 | else |
5464f5a1 NN |
5389 | echo "$as_me: failed program was:" >&5 |
5390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5391 | ||
5392 | # Broken: fails on valid input. | |
5393 | continue | |
5394 | fi | |
5395 | rm -f conftest.err conftest.$ac_ext | |
5396 | ||
5397 | # OK, works on sane cases. Now check whether non-existent headers | |
5398 | # can be detected and how. | |
5399 | cat >conftest.$ac_ext <<_ACEOF | |
5400 | /* confdefs.h. */ | |
5401 | _ACEOF | |
5402 | cat confdefs.h >>conftest.$ac_ext | |
5403 | cat >>conftest.$ac_ext <<_ACEOF | |
5404 | /* end confdefs.h. */ | |
5405 | #include <ac_nonexistent.h> | |
5406 | _ACEOF | |
5407 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5408 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5409 | ac_status=$? | |
5410 | grep -v '^ *+' conftest.er1 >conftest.err | |
5411 | rm -f conftest.er1 | |
5412 | cat conftest.err >&5 | |
5413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5414 | (exit $ac_status); } >/dev/null; then | |
5415 | if test -s conftest.err; then | |
5416 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5418 | else | |
5419 | ac_cpp_err= | |
5420 | fi | |
b3baf5d0 | 5421 | else |
5464f5a1 | 5422 | ac_cpp_err=yes |
6be7c12c | 5423 | fi |
5464f5a1 NN |
5424 | if test -z "$ac_cpp_err"; then |
5425 | # Broken: success on invalid input. | |
5426 | continue | |
ac48eca1 | 5427 | else |
5464f5a1 NN |
5428 | echo "$as_me: failed program was:" >&5 |
5429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5430 | ||
5431 | # Passes both tests. | |
5432 | ac_preproc_ok=: | |
5433 | break | |
b3baf5d0 | 5434 | fi |
5464f5a1 | 5435 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5436 | |
5464f5a1 NN |
5437 | done |
5438 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5439 | rm -f conftest.err conftest.$ac_ext | |
5440 | if $ac_preproc_ok; then | |
5441 | : | |
6be7c12c | 5442 | else |
5464f5a1 NN |
5443 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5444 | See \`config.log' for more details." >&5 | |
5445 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5446 | See \`config.log' for more details." >&2;} | |
5447 | { (exit 1); exit 1; }; } | |
ac48eca1 | 5448 | fi |
5464f5a1 NN |
5449 | |
5450 | ac_ext=c | |
5451 | ac_cpp='$CPP $CPPFLAGS' | |
5452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5455 | ||
5456 | ||
5457 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5458 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5459 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 5461 | else |
5464f5a1 NN |
5462 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
5463 | then ac_cv_prog_egrep='grep -E' | |
5464 | else ac_cv_prog_egrep='egrep' | |
5465 | fi | |
b3baf5d0 | 5466 | fi |
5464f5a1 NN |
5467 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5468 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5469 | EGREP=$ac_cv_prog_egrep | |
5470 | ||
ac48eca1 | 5471 | |
5464f5a1 NN |
5472 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5473 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5474 | if test "${ac_cv_header_stdc+set}" = set; then | |
5475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5476 | else |
5464f5a1 NN |
5477 | cat >conftest.$ac_ext <<_ACEOF |
5478 | /* confdefs.h. */ | |
5479 | _ACEOF | |
5480 | cat confdefs.h >>conftest.$ac_ext | |
5481 | cat >>conftest.$ac_ext <<_ACEOF | |
5482 | /* end confdefs.h. */ | |
252b5132 RH |
5483 | #include <stdlib.h> |
5484 | #include <stdarg.h> | |
5485 | #include <string.h> | |
5486 | #include <float.h> | |
5464f5a1 NN |
5487 | |
5488 | int | |
5489 | main () | |
5490 | { | |
5491 | ||
5492 | ; | |
5493 | return 0; | |
5494 | } | |
5495 | _ACEOF | |
5496 | rm -f conftest.$ac_objext | |
5497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5498 | (eval $ac_compile) 2>conftest.er1 | |
5499 | ac_status=$? | |
5500 | grep -v '^ *+' conftest.er1 >conftest.err | |
5501 | rm -f conftest.er1 | |
5502 | cat conftest.err >&5 | |
5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5504 | (exit $ac_status); } && | |
8fb84ecc AC |
5505 | { ac_try='test -z "$ac_c_werror_flag" |
5506 | || test ! -s conftest.err' | |
5464f5a1 NN |
5507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5508 | (eval $ac_try) 2>&5 | |
5509 | ac_status=$? | |
5510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5511 | (exit $ac_status); }; } && | |
5512 | { ac_try='test -s conftest.$ac_objext' | |
5513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5514 | (eval $ac_try) 2>&5 | |
5515 | ac_status=$? | |
5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5517 | (exit $ac_status); }; }; then | |
252b5132 RH |
5518 | ac_cv_header_stdc=yes |
5519 | else | |
5464f5a1 NN |
5520 | echo "$as_me: failed program was:" >&5 |
5521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5522 | ||
5523 | ac_cv_header_stdc=no | |
252b5132 | 5524 | fi |
5464f5a1 | 5525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5526 | |
5527 | if test $ac_cv_header_stdc = yes; then | |
5528 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5464f5a1 NN |
5529 | cat >conftest.$ac_ext <<_ACEOF |
5530 | /* confdefs.h. */ | |
5531 | _ACEOF | |
5532 | cat confdefs.h >>conftest.$ac_ext | |
5533 | cat >>conftest.$ac_ext <<_ACEOF | |
5534 | /* end confdefs.h. */ | |
252b5132 | 5535 | #include <string.h> |
5464f5a1 NN |
5536 | |
5537 | _ACEOF | |
252b5132 | 5538 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5539 | $EGREP "memchr" >/dev/null 2>&1; then |
252b5132 RH |
5540 | : |
5541 | else | |
252b5132 RH |
5542 | ac_cv_header_stdc=no |
5543 | fi | |
5544 | rm -f conftest* | |
5545 | ||
5546 | fi | |
5547 | ||
5548 | if test $ac_cv_header_stdc = yes; then | |
5549 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5464f5a1 NN |
5550 | cat >conftest.$ac_ext <<_ACEOF |
5551 | /* confdefs.h. */ | |
5552 | _ACEOF | |
5553 | cat confdefs.h >>conftest.$ac_ext | |
5554 | cat >>conftest.$ac_ext <<_ACEOF | |
5555 | /* end confdefs.h. */ | |
252b5132 | 5556 | #include <stdlib.h> |
5464f5a1 NN |
5557 | |
5558 | _ACEOF | |
252b5132 | 5559 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5560 | $EGREP "free" >/dev/null 2>&1; then |
252b5132 RH |
5561 | : |
5562 | else | |
252b5132 RH |
5563 | ac_cv_header_stdc=no |
5564 | fi | |
5565 | rm -f conftest* | |
5566 | ||
5567 | fi | |
5568 | ||
5569 | if test $ac_cv_header_stdc = yes; then | |
5570 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5464f5a1 | 5571 | if test "$cross_compiling" = yes; then |
252b5132 RH |
5572 | : |
5573 | else | |
5464f5a1 NN |
5574 | cat >conftest.$ac_ext <<_ACEOF |
5575 | /* confdefs.h. */ | |
5576 | _ACEOF | |
5577 | cat confdefs.h >>conftest.$ac_ext | |
5578 | cat >>conftest.$ac_ext <<_ACEOF | |
5579 | /* end confdefs.h. */ | |
252b5132 | 5580 | #include <ctype.h> |
5464f5a1 NN |
5581 | #if ((' ' & 0x0FF) == 0x020) |
5582 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5583 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5584 | #else | |
5585 | # define ISLOWER(c) \ | |
5586 | (('a' <= (c) && (c) <= 'i') \ | |
5587 | || ('j' <= (c) && (c) <= 'r') \ | |
5588 | || ('s' <= (c) && (c) <= 'z')) | |
5589 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5590 | #endif | |
6be7c12c | 5591 | |
5464f5a1 NN |
5592 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5593 | int | |
5594 | main () | |
5595 | { | |
5596 | int i; | |
5597 | for (i = 0; i < 256; i++) | |
5598 | if (XOR (islower (i), ISLOWER (i)) | |
5599 | || toupper (i) != TOUPPER (i)) | |
5600 | exit(2); | |
5601 | exit (0); | |
5602 | } | |
5603 | _ACEOF | |
5604 | rm -f conftest$ac_exeext | |
5605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5606 | (eval $ac_link) 2>&5 | |
5607 | ac_status=$? | |
5608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5609 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5611 | (eval $ac_try) 2>&5 | |
5612 | ac_status=$? | |
5613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5614 | (exit $ac_status); }; }; then | |
252b5132 RH |
5615 | : |
5616 | else | |
5464f5a1 NN |
5617 | echo "$as_me: program exited with status $ac_status" >&5 |
5618 | echo "$as_me: failed program was:" >&5 | |
5619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5620 | ||
5621 | ( exit $ac_status ) | |
5622 | ac_cv_header_stdc=no | |
252b5132 | 5623 | fi |
5464f5a1 | 5624 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5625 | fi |
252b5132 RH |
5626 | fi |
5627 | fi | |
5464f5a1 NN |
5628 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5629 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6be7c12c | 5630 | if test $ac_cv_header_stdc = yes; then |
5464f5a1 NN |
5631 | |
5632 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5633 | #define STDC_HEADERS 1 |
5464f5a1 | 5634 | _ACEOF |
252b5132 RH |
5635 | |
5636 | fi | |
5637 | ||
5464f5a1 NN |
5638 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5639 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
5640 | if test "${ac_cv_c_const+set}" = set; then | |
5641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5642 | else |
5464f5a1 NN |
5643 | cat >conftest.$ac_ext <<_ACEOF |
5644 | /* confdefs.h. */ | |
5645 | _ACEOF | |
5646 | cat confdefs.h >>conftest.$ac_ext | |
5647 | cat >>conftest.$ac_ext <<_ACEOF | |
5648 | /* end confdefs.h. */ | |
6be7c12c | 5649 | |
5464f5a1 NN |
5650 | int |
5651 | main () | |
5652 | { | |
5653 | /* FIXME: Include the comments suggested by Paul. */ | |
5654 | #ifndef __cplusplus | |
5655 | /* Ultrix mips cc rejects this. */ | |
5656 | typedef int charset[2]; | |
5657 | const charset x; | |
5658 | /* SunOS 4.1.1 cc rejects this. */ | |
5659 | char const *const *ccp; | |
5660 | char **p; | |
5661 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5662 | struct point {int x, y;}; | |
5663 | static struct point const zero = {0,0}; | |
5664 | /* AIX XL C 1.02.0.0 rejects this. | |
5665 | It does not let you subtract one const X* pointer from another in | |
5666 | an arm of an if-expression whose if-part is not a constant | |
5667 | expression */ | |
5668 | const char *g = "string"; | |
5669 | ccp = &g + (g ? g-g : 0); | |
5670 | /* HPUX 7.0 cc rejects these. */ | |
5671 | ++ccp; | |
5672 | p = (char**) ccp; | |
5673 | ccp = (char const *const *) p; | |
5674 | { /* SCO 3.2v4 cc rejects this. */ | |
5675 | char *t; | |
5676 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5677 | ||
5678 | *t++ = 0; | |
5679 | } | |
5680 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5681 | int x[] = {25, 17}; | |
5682 | const int *foo = &x[0]; | |
5683 | ++foo; | |
5684 | } | |
5685 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5686 | typedef const int *iptr; | |
5687 | iptr p = 0; | |
5688 | ++p; | |
5689 | } | |
5690 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5691 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5692 | struct s { int j; const int *ap[3]; }; | |
5693 | struct s *b; b->j = 5; | |
5694 | } | |
5695 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5696 | const int foo = 10; | |
5697 | } | |
5698 | #endif | |
6be7c12c | 5699 | |
5464f5a1 NN |
5700 | ; |
5701 | return 0; | |
5702 | } | |
5703 | _ACEOF | |
5704 | rm -f conftest.$ac_objext | |
5705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5706 | (eval $ac_compile) 2>conftest.er1 | |
5707 | ac_status=$? | |
5708 | grep -v '^ *+' conftest.er1 >conftest.err | |
5709 | rm -f conftest.er1 | |
5710 | cat conftest.err >&5 | |
5711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5712 | (exit $ac_status); } && | |
8fb84ecc AC |
5713 | { ac_try='test -z "$ac_c_werror_flag" |
5714 | || test ! -s conftest.err' | |
5464f5a1 NN |
5715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5716 | (eval $ac_try) 2>&5 | |
5717 | ac_status=$? | |
5718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5719 | (exit $ac_status); }; } && | |
5720 | { ac_try='test -s conftest.$ac_objext' | |
5721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5722 | (eval $ac_try) 2>&5 | |
5723 | ac_status=$? | |
5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5725 | (exit $ac_status); }; }; then | |
252b5132 RH |
5726 | ac_cv_c_const=yes |
5727 | else | |
5464f5a1 NN |
5728 | echo "$as_me: failed program was:" >&5 |
5729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5730 | ||
5731 | ac_cv_c_const=no | |
252b5132 | 5732 | fi |
5464f5a1 | 5733 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5734 | fi |
5464f5a1 NN |
5735 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5736 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
6be7c12c | 5737 | if test $ac_cv_c_const = no; then |
5464f5a1 NN |
5738 | |
5739 | cat >>confdefs.h <<\_ACEOF | |
5740 | #define const | |
5741 | _ACEOF | |
252b5132 RH |
5742 | |
5743 | fi | |
5744 | ||
5464f5a1 NN |
5745 | echo "$as_me:$LINENO: checking for inline" >&5 |
5746 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
5747 | if test "${ac_cv_c_inline+set}" = set; then | |
5748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5749 | else |
5750 | ac_cv_c_inline=no | |
5751 | for ac_kw in inline __inline__ __inline; do | |
5464f5a1 NN |
5752 | cat >conftest.$ac_ext <<_ACEOF |
5753 | /* confdefs.h. */ | |
5754 | _ACEOF | |
5755 | cat confdefs.h >>conftest.$ac_ext | |
5756 | cat >>conftest.$ac_ext <<_ACEOF | |
5757 | /* end confdefs.h. */ | |
5758 | #ifndef __cplusplus | |
5759 | typedef int foo_t; | |
5760 | static $ac_kw foo_t static_foo () {return 0; } | |
5761 | $ac_kw foo_t foo () {return 0; } | |
5762 | #endif | |
252b5132 | 5763 | |
5464f5a1 NN |
5764 | _ACEOF |
5765 | rm -f conftest.$ac_objext | |
5766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5767 | (eval $ac_compile) 2>conftest.er1 | |
5768 | ac_status=$? | |
5769 | grep -v '^ *+' conftest.er1 >conftest.err | |
5770 | rm -f conftest.er1 | |
5771 | cat conftest.err >&5 | |
5772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5773 | (exit $ac_status); } && | |
8fb84ecc AC |
5774 | { ac_try='test -z "$ac_c_werror_flag" |
5775 | || test ! -s conftest.err' | |
5464f5a1 NN |
5776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5777 | (eval $ac_try) 2>&5 | |
5778 | ac_status=$? | |
5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5780 | (exit $ac_status); }; } && | |
5781 | { ac_try='test -s conftest.$ac_objext' | |
5782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5783 | (eval $ac_try) 2>&5 | |
5784 | ac_status=$? | |
5785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5786 | (exit $ac_status); }; }; then | |
252b5132 RH |
5787 | ac_cv_c_inline=$ac_kw; break |
5788 | else | |
5464f5a1 NN |
5789 | echo "$as_me: failed program was:" >&5 |
5790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5791 | ||
252b5132 | 5792 | fi |
5464f5a1 | 5793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5794 | done |
5795 | ||
5464f5a1 NN |
5796 | fi |
5797 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
5798 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
5799 | ||
5800 | ||
5801 | case $ac_cv_c_inline in | |
5802 | inline | yes) ;; | |
5803 | *) | |
5804 | case $ac_cv_c_inline in | |
5805 | no) ac_val=;; | |
5806 | *) ac_val=$ac_cv_c_inline;; | |
5807 | esac | |
5808 | cat >>confdefs.h <<_ACEOF | |
5809 | #ifndef __cplusplus | |
5810 | #define inline $ac_val | |
5811 | #endif | |
5812 | _ACEOF | |
5813 | ;; | |
5814 | esac | |
5815 | ||
5816 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5817 | ||
5818 | ||
5819 | ||
5820 | ||
5821 | ||
5822 | ||
5823 | ||
5824 | ||
5825 | ||
5826 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5827 | inttypes.h stdint.h unistd.h | |
5828 | do | |
5829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5830 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5834 | else | |
5835 | cat >conftest.$ac_ext <<_ACEOF | |
5836 | /* confdefs.h. */ | |
5837 | _ACEOF | |
5838 | cat confdefs.h >>conftest.$ac_ext | |
5839 | cat >>conftest.$ac_ext <<_ACEOF | |
5840 | /* end confdefs.h. */ | |
5841 | $ac_includes_default | |
5842 | ||
5843 | #include <$ac_header> | |
5844 | _ACEOF | |
5845 | rm -f conftest.$ac_objext | |
5846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5847 | (eval $ac_compile) 2>conftest.er1 | |
5848 | ac_status=$? | |
5849 | grep -v '^ *+' conftest.er1 >conftest.err | |
5850 | rm -f conftest.er1 | |
5851 | cat conftest.err >&5 | |
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5853 | (exit $ac_status); } && | |
8fb84ecc AC |
5854 | { ac_try='test -z "$ac_c_werror_flag" |
5855 | || test ! -s conftest.err' | |
5464f5a1 NN |
5856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5857 | (eval $ac_try) 2>&5 | |
5858 | ac_status=$? | |
5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5860 | (exit $ac_status); }; } && | |
5861 | { ac_try='test -s conftest.$ac_objext' | |
5862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5863 | (eval $ac_try) 2>&5 | |
5864 | ac_status=$? | |
5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5866 | (exit $ac_status); }; }; then | |
5867 | eval "$as_ac_Header=yes" | |
5868 | else | |
5869 | echo "$as_me: failed program was:" >&5 | |
5870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5871 | ||
5872 | eval "$as_ac_Header=no" | |
5873 | fi | |
5874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5875 | fi | |
5876 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5877 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5879 | cat >>confdefs.h <<_ACEOF | |
5880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5881 | _ACEOF | |
5882 | ||
252b5132 | 5883 | fi |
6be7c12c | 5884 | |
5464f5a1 | 5885 | done |
252b5132 | 5886 | |
5464f5a1 NN |
5887 | |
5888 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
5889 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5890 | if test "${ac_cv_type_off_t+set}" = set; then | |
5891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3baf5d0 | 5892 | else |
5464f5a1 NN |
5893 | cat >conftest.$ac_ext <<_ACEOF |
5894 | /* confdefs.h. */ | |
5895 | _ACEOF | |
5896 | cat confdefs.h >>conftest.$ac_ext | |
5897 | cat >>conftest.$ac_ext <<_ACEOF | |
5898 | /* end confdefs.h. */ | |
5899 | $ac_includes_default | |
5900 | int | |
5901 | main () | |
5902 | { | |
5903 | if ((off_t *) 0) | |
5904 | return 0; | |
5905 | if (sizeof (off_t)) | |
5906 | return 0; | |
5907 | ; | |
5908 | return 0; | |
5909 | } | |
5910 | _ACEOF | |
5911 | rm -f conftest.$ac_objext | |
5912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5913 | (eval $ac_compile) 2>conftest.er1 | |
5914 | ac_status=$? | |
5915 | grep -v '^ *+' conftest.er1 >conftest.err | |
5916 | rm -f conftest.er1 | |
5917 | cat conftest.err >&5 | |
5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5919 | (exit $ac_status); } && | |
8fb84ecc AC |
5920 | { ac_try='test -z "$ac_c_werror_flag" |
5921 | || test ! -s conftest.err' | |
5464f5a1 NN |
5922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5923 | (eval $ac_try) 2>&5 | |
5924 | ac_status=$? | |
5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5926 | (exit $ac_status); }; } && | |
5927 | { ac_try='test -s conftest.$ac_objext' | |
5928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5929 | (eval $ac_try) 2>&5 | |
5930 | ac_status=$? | |
5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5932 | (exit $ac_status); }; }; then | |
653f71ca | 5933 | ac_cv_type_off_t=yes |
252b5132 | 5934 | else |
5464f5a1 NN |
5935 | echo "$as_me: failed program was:" >&5 |
5936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 5937 | |
5464f5a1 | 5938 | ac_cv_type_off_t=no |
6be7c12c | 5939 | fi |
5464f5a1 NN |
5940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5941 | fi | |
5942 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5943 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5944 | if test $ac_cv_type_off_t = yes; then | |
5945 | : | |
5946 | else | |
5947 | ||
5948 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5949 | #define off_t long |
5464f5a1 | 5950 | _ACEOF |
252b5132 RH |
5951 | |
5952 | fi | |
5953 | ||
5464f5a1 NN |
5954 | echo "$as_me:$LINENO: checking for size_t" >&5 |
5955 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
5956 | if test "${ac_cv_type_size_t+set}" = set; then | |
5957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5958 | else |
5464f5a1 NN |
5959 | cat >conftest.$ac_ext <<_ACEOF |
5960 | /* confdefs.h. */ | |
5961 | _ACEOF | |
5962 | cat confdefs.h >>conftest.$ac_ext | |
5963 | cat >>conftest.$ac_ext <<_ACEOF | |
5964 | /* end confdefs.h. */ | |
5965 | $ac_includes_default | |
5966 | int | |
5967 | main () | |
5968 | { | |
5969 | if ((size_t *) 0) | |
5970 | return 0; | |
5971 | if (sizeof (size_t)) | |
5972 | return 0; | |
5973 | ; | |
5974 | return 0; | |
5975 | } | |
5976 | _ACEOF | |
5977 | rm -f conftest.$ac_objext | |
5978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5979 | (eval $ac_compile) 2>conftest.er1 | |
5980 | ac_status=$? | |
5981 | grep -v '^ *+' conftest.er1 >conftest.err | |
5982 | rm -f conftest.er1 | |
5983 | cat conftest.err >&5 | |
5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5985 | (exit $ac_status); } && | |
8fb84ecc AC |
5986 | { ac_try='test -z "$ac_c_werror_flag" |
5987 | || test ! -s conftest.err' | |
5464f5a1 NN |
5988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5989 | (eval $ac_try) 2>&5 | |
5990 | ac_status=$? | |
5991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5992 | (exit $ac_status); }; } && | |
5993 | { ac_try='test -s conftest.$ac_objext' | |
5994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5995 | (eval $ac_try) 2>&5 | |
5996 | ac_status=$? | |
5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5998 | (exit $ac_status); }; }; then | |
653f71ca | 5999 | ac_cv_type_size_t=yes |
252b5132 | 6000 | else |
5464f5a1 NN |
6001 | echo "$as_me: failed program was:" >&5 |
6002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 6003 | |
5464f5a1 | 6004 | ac_cv_type_size_t=no |
6be7c12c | 6005 | fi |
5464f5a1 NN |
6006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6007 | fi | |
6008 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6009 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
6010 | if test $ac_cv_type_size_t = yes; then | |
6011 | : | |
6012 | else | |
6013 | ||
6014 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6015 | #define size_t unsigned |
5464f5a1 | 6016 | _ACEOF |
252b5132 RH |
6017 | |
6018 | fi | |
6019 | ||
6020 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6021 | # for constant arguments. Useless! | |
5464f5a1 NN |
6022 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6023 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
6024 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
6025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6026 | else | |
6027 | cat >conftest.$ac_ext <<_ACEOF | |
6028 | /* confdefs.h. */ | |
6029 | _ACEOF | |
6030 | cat confdefs.h >>conftest.$ac_ext | |
6031 | cat >>conftest.$ac_ext <<_ACEOF | |
6032 | /* end confdefs.h. */ | |
252b5132 | 6033 | #include <alloca.h> |
5464f5a1 NN |
6034 | int |
6035 | main () | |
6036 | { | |
6037 | char *p = (char *) alloca (2 * sizeof (int)); | |
6038 | ; | |
6039 | return 0; | |
6040 | } | |
6041 | _ACEOF | |
6042 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6044 | (eval $ac_link) 2>conftest.er1 | |
6045 | ac_status=$? | |
6046 | grep -v '^ *+' conftest.er1 >conftest.err | |
6047 | rm -f conftest.er1 | |
6048 | cat conftest.err >&5 | |
6049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6050 | (exit $ac_status); } && | |
8fb84ecc AC |
6051 | { ac_try='test -z "$ac_c_werror_flag" |
6052 | || test ! -s conftest.err' | |
5464f5a1 NN |
6053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6054 | (eval $ac_try) 2>&5 | |
6055 | ac_status=$? | |
6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6057 | (exit $ac_status); }; } && | |
6058 | { ac_try='test -s conftest$ac_exeext' | |
6059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6060 | (eval $ac_try) 2>&5 | |
6061 | ac_status=$? | |
6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6063 | (exit $ac_status); }; }; then | |
6064 | ac_cv_working_alloca_h=yes | |
6065 | else | |
6066 | echo "$as_me: failed program was:" >&5 | |
6067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6068 | ||
6069 | ac_cv_working_alloca_h=no | |
6070 | fi | |
6071 | rm -f conftest.err conftest.$ac_objext \ | |
6072 | conftest$ac_exeext conftest.$ac_ext | |
6073 | fi | |
6074 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
6075 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
6076 | if test $ac_cv_working_alloca_h = yes; then | |
6077 | ||
6078 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6079 | #define HAVE_ALLOCA_H 1 |
5464f5a1 | 6080 | _ACEOF |
252b5132 RH |
6081 | |
6082 | fi | |
6083 | ||
5464f5a1 NN |
6084 | echo "$as_me:$LINENO: checking for alloca" >&5 |
6085 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
6086 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
6087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6088 | else |
5464f5a1 NN |
6089 | cat >conftest.$ac_ext <<_ACEOF |
6090 | /* confdefs.h. */ | |
6091 | _ACEOF | |
6092 | cat confdefs.h >>conftest.$ac_ext | |
6093 | cat >>conftest.$ac_ext <<_ACEOF | |
6094 | /* end confdefs.h. */ | |
252b5132 RH |
6095 | #ifdef __GNUC__ |
6096 | # define alloca __builtin_alloca | |
6097 | #else | |
6098 | # ifdef _MSC_VER | |
6099 | # include <malloc.h> | |
6100 | # define alloca _alloca | |
6101 | # else | |
6102 | # if HAVE_ALLOCA_H | |
6103 | # include <alloca.h> | |
6104 | # else | |
6105 | # ifdef _AIX | |
6106 | #pragma alloca | |
6107 | # else | |
6108 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6109 | char *alloca (); | |
6110 | # endif | |
6111 | # endif | |
6112 | # endif | |
6113 | # endif | |
6114 | #endif | |
6115 | ||
5464f5a1 NN |
6116 | int |
6117 | main () | |
6118 | { | |
6119 | char *p = (char *) alloca (1); | |
6120 | ; | |
6121 | return 0; | |
6122 | } | |
6123 | _ACEOF | |
6124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6126 | (eval $ac_link) 2>conftest.er1 | |
6127 | ac_status=$? | |
6128 | grep -v '^ *+' conftest.er1 >conftest.err | |
6129 | rm -f conftest.er1 | |
6130 | cat conftest.err >&5 | |
6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6132 | (exit $ac_status); } && | |
8fb84ecc AC |
6133 | { ac_try='test -z "$ac_c_werror_flag" |
6134 | || test ! -s conftest.err' | |
5464f5a1 NN |
6135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6136 | (eval $ac_try) 2>&5 | |
6137 | ac_status=$? | |
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6139 | (exit $ac_status); }; } && | |
6140 | { ac_try='test -s conftest$ac_exeext' | |
6141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6142 | (eval $ac_try) 2>&5 | |
6143 | ac_status=$? | |
6144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6145 | (exit $ac_status); }; }; then | |
252b5132 RH |
6146 | ac_cv_func_alloca_works=yes |
6147 | else | |
5464f5a1 NN |
6148 | echo "$as_me: failed program was:" >&5 |
6149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6150 | ||
6151 | ac_cv_func_alloca_works=no | |
252b5132 | 6152 | fi |
5464f5a1 NN |
6153 | rm -f conftest.err conftest.$ac_objext \ |
6154 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 6155 | fi |
5464f5a1 NN |
6156 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6157 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 6158 | |
252b5132 | 6159 | if test $ac_cv_func_alloca_works = yes; then |
252b5132 | 6160 | |
5464f5a1 NN |
6161 | cat >>confdefs.h <<\_ACEOF |
6162 | #define HAVE_ALLOCA 1 | |
6163 | _ACEOF | |
b3baf5d0 | 6164 | |
5464f5a1 | 6165 | else |
6be7c12c | 6166 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5464f5a1 NN |
6167 | # that cause trouble. Some versions do not even contain alloca or |
6168 | # contain a buggy version. If you still want to use their alloca, | |
6169 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6170 | ||
6171 | ALLOCA=alloca.$ac_objext | |
6172 | ||
6173 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6174 | #define C_ALLOCA 1 |
5464f5a1 | 6175 | _ACEOF |
252b5132 | 6176 | |
6be7c12c | 6177 | |
5464f5a1 NN |
6178 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6179 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
6180 | if test "${ac_cv_os_cray+set}" = set; then | |
6181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6182 | else |
5464f5a1 NN |
6183 | cat >conftest.$ac_ext <<_ACEOF |
6184 | /* confdefs.h. */ | |
6185 | _ACEOF | |
6186 | cat confdefs.h >>conftest.$ac_ext | |
6187 | cat >>conftest.$ac_ext <<_ACEOF | |
6188 | /* end confdefs.h. */ | |
252b5132 RH |
6189 | #if defined(CRAY) && ! defined(CRAY2) |
6190 | webecray | |
6191 | #else | |
6192 | wenotbecray | |
6193 | #endif | |
6194 | ||
5464f5a1 | 6195 | _ACEOF |
252b5132 | 6196 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 6197 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
6198 | ac_cv_os_cray=yes |
6199 | else | |
252b5132 RH |
6200 | ac_cv_os_cray=no |
6201 | fi | |
6202 | rm -f conftest* | |
6203 | ||
6204 | fi | |
5464f5a1 NN |
6205 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6206 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 6207 | if test $ac_cv_os_cray = yes; then |
5464f5a1 NN |
6208 | for ac_func in _getb67 GETB67 getb67; do |
6209 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6210 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6211 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6212 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6214 | else | |
6215 | cat >conftest.$ac_ext <<_ACEOF | |
6216 | /* confdefs.h. */ | |
6217 | _ACEOF | |
6218 | cat confdefs.h >>conftest.$ac_ext | |
6219 | cat >>conftest.$ac_ext <<_ACEOF | |
6220 | /* end confdefs.h. */ | |
6221 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6222 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6223 | #define $ac_func innocuous_$ac_func | |
6224 | ||
252b5132 | 6225 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6226 | which can conflict with char $ac_func (); below. |
6227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6228 | <limits.h> exists even on freestanding compilers. */ | |
6229 | ||
6230 | #ifdef __STDC__ | |
6231 | # include <limits.h> | |
6232 | #else | |
6233 | # include <assert.h> | |
6234 | #endif | |
6be7c12c | 6235 | |
5464f5a1 | 6236 | #undef $ac_func |
252b5132 | 6237 | |
5464f5a1 NN |
6238 | /* Override any gcc2 internal prototype to avoid an error. */ |
6239 | #ifdef __cplusplus | |
6240 | extern "C" | |
6241 | { | |
6242 | #endif | |
6243 | /* We use char because int might match the return type of a gcc2 | |
6244 | builtin and then its argument prototype would still apply. */ | |
6245 | char $ac_func (); | |
252b5132 RH |
6246 | /* The GNU C library defines this for functions which it implements |
6247 | to always fail with ENOSYS. Some functions are actually named | |
6248 | something starting with __ and the normal name is an alias. */ | |
6249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6250 | choke me | |
6251 | #else | |
5464f5a1 NN |
6252 | char (*f) () = $ac_func; |
6253 | #endif | |
6254 | #ifdef __cplusplus | |
6255 | } | |
252b5132 RH |
6256 | #endif |
6257 | ||
5464f5a1 NN |
6258 | int |
6259 | main () | |
6260 | { | |
6261 | return f != $ac_func; | |
6262 | ; | |
6263 | return 0; | |
6264 | } | |
6265 | _ACEOF | |
6266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6268 | (eval $ac_link) 2>conftest.er1 | |
6269 | ac_status=$? | |
6270 | grep -v '^ *+' conftest.er1 >conftest.err | |
6271 | rm -f conftest.er1 | |
6272 | cat conftest.err >&5 | |
6273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6274 | (exit $ac_status); } && | |
8fb84ecc AC |
6275 | { ac_try='test -z "$ac_c_werror_flag" |
6276 | || test ! -s conftest.err' | |
5464f5a1 NN |
6277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6278 | (eval $ac_try) 2>&5 | |
6279 | ac_status=$? | |
6280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6281 | (exit $ac_status); }; } && | |
6282 | { ac_try='test -s conftest$ac_exeext' | |
6283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6284 | (eval $ac_try) 2>&5 | |
6285 | ac_status=$? | |
6286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6287 | (exit $ac_status); }; }; then | |
6288 | eval "$as_ac_var=yes" | |
6289 | else | |
6290 | echo "$as_me: failed program was:" >&5 | |
6291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6292 | ||
6293 | eval "$as_ac_var=no" | |
6294 | fi | |
6295 | rm -f conftest.err conftest.$ac_objext \ | |
6296 | conftest$ac_exeext conftest.$ac_ext | |
6297 | fi | |
6298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6299 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6300 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6301 | ||
6302 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6303 | #define CRAY_STACKSEG_END $ac_func |
5464f5a1 | 6304 | _ACEOF |
252b5132 | 6305 | |
5464f5a1 | 6306 | break |
252b5132 RH |
6307 | fi |
6308 | ||
5464f5a1 | 6309 | done |
252b5132 RH |
6310 | fi |
6311 | ||
5464f5a1 NN |
6312 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6313 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
6314 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6316 | else |
6317 | if test "$cross_compiling" = yes; then | |
6318 | ac_cv_c_stack_direction=0 | |
6319 | else | |
5464f5a1 NN |
6320 | cat >conftest.$ac_ext <<_ACEOF |
6321 | /* confdefs.h. */ | |
6322 | _ACEOF | |
6323 | cat confdefs.h >>conftest.$ac_ext | |
6324 | cat >>conftest.$ac_ext <<_ACEOF | |
6325 | /* end confdefs.h. */ | |
6326 | int | |
252b5132 RH |
6327 | find_stack_direction () |
6328 | { | |
6329 | static char *addr = 0; | |
6330 | auto char dummy; | |
6331 | if (addr == 0) | |
6332 | { | |
6333 | addr = &dummy; | |
6334 | return find_stack_direction (); | |
6335 | } | |
6336 | else | |
6337 | return (&dummy > addr) ? 1 : -1; | |
6338 | } | |
5464f5a1 NN |
6339 | |
6340 | int | |
252b5132 RH |
6341 | main () |
6342 | { | |
5464f5a1 | 6343 | exit (find_stack_direction () < 0); |
252b5132 | 6344 | } |
5464f5a1 NN |
6345 | _ACEOF |
6346 | rm -f conftest$ac_exeext | |
6347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6348 | (eval $ac_link) 2>&5 | |
6349 | ac_status=$? | |
6350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6351 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6353 | (eval $ac_try) 2>&5 | |
6354 | ac_status=$? | |
6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6356 | (exit $ac_status); }; }; then | |
252b5132 RH |
6357 | ac_cv_c_stack_direction=1 |
6358 | else | |
5464f5a1 NN |
6359 | echo "$as_me: program exited with status $ac_status" >&5 |
6360 | echo "$as_me: failed program was:" >&5 | |
6361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6362 | ||
6363 | ( exit $ac_status ) | |
6364 | ac_cv_c_stack_direction=-1 | |
252b5132 | 6365 | fi |
5464f5a1 | 6366 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6367 | fi |
252b5132 | 6368 | fi |
5464f5a1 NN |
6369 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6370 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 6371 | |
5464f5a1 | 6372 | cat >>confdefs.h <<_ACEOF |
252b5132 | 6373 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
5464f5a1 NN |
6374 | _ACEOF |
6375 | ||
252b5132 RH |
6376 | |
6377 | fi | |
6378 | ||
5464f5a1 NN |
6379 | |
6380 | ||
6381 | for ac_header in stdlib.h unistd.h | |
252b5132 | 6382 | do |
5464f5a1 NN |
6383 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6384 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6385 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6386 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6387 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6389 | fi | |
6390 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6391 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6392 | else | |
6393 | # Is the header compilable? | |
6394 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6395 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6396 | cat >conftest.$ac_ext <<_ACEOF | |
6397 | /* confdefs.h. */ | |
6398 | _ACEOF | |
6399 | cat confdefs.h >>conftest.$ac_ext | |
6400 | cat >>conftest.$ac_ext <<_ACEOF | |
6401 | /* end confdefs.h. */ | |
6402 | $ac_includes_default | |
6403 | #include <$ac_header> | |
6404 | _ACEOF | |
6405 | rm -f conftest.$ac_objext | |
6406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6407 | (eval $ac_compile) 2>conftest.er1 | |
6408 | ac_status=$? | |
6409 | grep -v '^ *+' conftest.er1 >conftest.err | |
6410 | rm -f conftest.er1 | |
6411 | cat conftest.err >&5 | |
6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6413 | (exit $ac_status); } && | |
8fb84ecc AC |
6414 | { ac_try='test -z "$ac_c_werror_flag" |
6415 | || test ! -s conftest.err' | |
5464f5a1 NN |
6416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6417 | (eval $ac_try) 2>&5 | |
6418 | ac_status=$? | |
6419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6420 | (exit $ac_status); }; } && | |
6421 | { ac_try='test -s conftest.$ac_objext' | |
6422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6423 | (eval $ac_try) 2>&5 | |
6424 | ac_status=$? | |
6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6426 | (exit $ac_status); }; }; then | |
6427 | ac_header_compiler=yes | |
6428 | else | |
6429 | echo "$as_me: failed program was:" >&5 | |
6430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6431 | ||
6432 | ac_header_compiler=no | |
6433 | fi | |
6434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6435 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6436 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6437 | ||
6438 | # Is the header present? | |
6439 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6440 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6441 | cat >conftest.$ac_ext <<_ACEOF | |
6442 | /* confdefs.h. */ | |
6443 | _ACEOF | |
6444 | cat confdefs.h >>conftest.$ac_ext | |
6445 | cat >>conftest.$ac_ext <<_ACEOF | |
6446 | /* end confdefs.h. */ | |
6447 | #include <$ac_header> | |
6448 | _ACEOF | |
6449 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6450 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6451 | ac_status=$? | |
6452 | grep -v '^ *+' conftest.er1 >conftest.err | |
6453 | rm -f conftest.er1 | |
6454 | cat conftest.err >&5 | |
6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6456 | (exit $ac_status); } >/dev/null; then | |
6457 | if test -s conftest.err; then | |
6458 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6459 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6460 | else | |
6461 | ac_cpp_err= | |
6462 | fi | |
252b5132 | 6463 | else |
5464f5a1 | 6464 | ac_cpp_err=yes |
252b5132 | 6465 | fi |
5464f5a1 NN |
6466 | if test -z "$ac_cpp_err"; then |
6467 | ac_header_preproc=yes | |
6468 | else | |
6469 | echo "$as_me: failed program was:" >&5 | |
6470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6471 | ||
6472 | ac_header_preproc=no | |
252b5132 | 6473 | fi |
5464f5a1 NN |
6474 | rm -f conftest.err conftest.$ac_ext |
6475 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6476 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6477 | ||
6478 | # So? What about this header? | |
6479 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6480 | yes:no: ) | |
6481 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6482 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6483 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6484 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6485 | ac_header_preproc=yes | |
6486 | ;; | |
6487 | no:yes:* ) | |
6488 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6489 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6490 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6491 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6492 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6493 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6494 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6495 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6496 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6497 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6498 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6499 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6500 | ( | |
6501 | cat <<\_ASBOX | |
6502 | ## ------------------------------------------ ## | |
6503 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6504 | ## ------------------------------------------ ## | |
6505 | _ASBOX | |
6506 | ) | | |
6507 | sed "s/^/$as_me: WARNING: /" >&2 | |
6508 | ;; | |
6509 | esac | |
6510 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6514 | else |
5464f5a1 NN |
6515 | eval "$as_ac_Header=\$ac_header_preproc" |
6516 | fi | |
6517 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6518 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6519 | ||
252b5132 | 6520 | fi |
5464f5a1 NN |
6521 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6522 | cat >>confdefs.h <<_ACEOF | |
6523 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6524 | _ACEOF | |
6525 | ||
6526 | fi | |
6527 | ||
252b5132 RH |
6528 | done |
6529 | ||
5464f5a1 | 6530 | |
252b5132 RH |
6531 | for ac_func in getpagesize |
6532 | do | |
5464f5a1 NN |
6533 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6534 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6535 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6536 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6538 | else | |
6539 | cat >conftest.$ac_ext <<_ACEOF | |
6540 | /* confdefs.h. */ | |
6541 | _ACEOF | |
6542 | cat confdefs.h >>conftest.$ac_ext | |
6543 | cat >>conftest.$ac_ext <<_ACEOF | |
6544 | /* end confdefs.h. */ | |
6545 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6546 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6547 | #define $ac_func innocuous_$ac_func | |
6548 | ||
252b5132 | 6549 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6550 | which can conflict with char $ac_func (); below. |
6551 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6552 | <limits.h> exists even on freestanding compilers. */ | |
6553 | ||
6554 | #ifdef __STDC__ | |
6555 | # include <limits.h> | |
6556 | #else | |
6557 | # include <assert.h> | |
6558 | #endif | |
6be7c12c | 6559 | |
5464f5a1 | 6560 | #undef $ac_func |
252b5132 | 6561 | |
5464f5a1 NN |
6562 | /* Override any gcc2 internal prototype to avoid an error. */ |
6563 | #ifdef __cplusplus | |
6564 | extern "C" | |
6565 | { | |
6566 | #endif | |
6567 | /* We use char because int might match the return type of a gcc2 | |
6568 | builtin and then its argument prototype would still apply. */ | |
6569 | char $ac_func (); | |
252b5132 RH |
6570 | /* The GNU C library defines this for functions which it implements |
6571 | to always fail with ENOSYS. Some functions are actually named | |
6572 | something starting with __ and the normal name is an alias. */ | |
6573 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6574 | choke me | |
6575 | #else | |
5464f5a1 NN |
6576 | char (*f) () = $ac_func; |
6577 | #endif | |
6578 | #ifdef __cplusplus | |
6579 | } | |
252b5132 RH |
6580 | #endif |
6581 | ||
5464f5a1 NN |
6582 | int |
6583 | main () | |
6584 | { | |
6585 | return f != $ac_func; | |
6586 | ; | |
6587 | return 0; | |
6588 | } | |
6589 | _ACEOF | |
6590 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6592 | (eval $ac_link) 2>conftest.er1 | |
6593 | ac_status=$? | |
6594 | grep -v '^ *+' conftest.er1 >conftest.err | |
6595 | rm -f conftest.er1 | |
6596 | cat conftest.err >&5 | |
6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6598 | (exit $ac_status); } && | |
8fb84ecc AC |
6599 | { ac_try='test -z "$ac_c_werror_flag" |
6600 | || test ! -s conftest.err' | |
5464f5a1 NN |
6601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6602 | (eval $ac_try) 2>&5 | |
6603 | ac_status=$? | |
6604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6605 | (exit $ac_status); }; } && | |
6606 | { ac_try='test -s conftest$ac_exeext' | |
6607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6608 | (eval $ac_try) 2>&5 | |
6609 | ac_status=$? | |
6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6611 | (exit $ac_status); }; }; then | |
6612 | eval "$as_ac_var=yes" | |
6613 | else | |
6614 | echo "$as_me: failed program was:" >&5 | |
6615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6616 | ||
6617 | eval "$as_ac_var=no" | |
6618 | fi | |
6619 | rm -f conftest.err conftest.$ac_objext \ | |
6620 | conftest$ac_exeext conftest.$ac_ext | |
6621 | fi | |
6622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6623 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6624 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6625 | cat >>confdefs.h <<_ACEOF | |
6626 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6627 | _ACEOF | |
252b5132 | 6628 | |
252b5132 RH |
6629 | fi |
6630 | done | |
6631 | ||
5464f5a1 NN |
6632 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
6633 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6634 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6636 | else |
6637 | if test "$cross_compiling" = yes; then | |
6638 | ac_cv_func_mmap_fixed_mapped=no | |
6639 | else | |
5464f5a1 NN |
6640 | cat >conftest.$ac_ext <<_ACEOF |
6641 | /* confdefs.h. */ | |
6642 | _ACEOF | |
6643 | cat confdefs.h >>conftest.$ac_ext | |
6644 | cat >>conftest.$ac_ext <<_ACEOF | |
6645 | /* end confdefs.h. */ | |
6646 | $ac_includes_default | |
6647 | /* malloc might have been renamed as rpl_malloc. */ | |
6648 | #undef malloc | |
6be7c12c | 6649 | |
252b5132 RH |
6650 | /* Thanks to Mike Haertel and Jim Avera for this test. |
6651 | Here is a matrix of mmap possibilities: | |
6652 | mmap private not fixed | |
6653 | mmap private fixed at somewhere currently unmapped | |
6654 | mmap private fixed at somewhere already mapped | |
6655 | mmap shared not fixed | |
6656 | mmap shared fixed at somewhere currently unmapped | |
6657 | mmap shared fixed at somewhere already mapped | |
6658 | For private mappings, we should verify that changes cannot be read() | |
6659 | back from the file, nor mmap's back from the file at a different | |
6660 | address. (There have been systems where private was not correctly | |
6661 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 6662 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
6663 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6664 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 6665 | propagated back to all the places they're supposed to be. |
252b5132 RH |
6666 | |
6667 | Grep wants private fixed already mapped. | |
6668 | The main things grep needs to know about mmap are: | |
6669 | * does it exist and is it safe to write into the mmap'd area | |
6670 | * how to use it (BSD variants) */ | |
5464f5a1 | 6671 | |
252b5132 RH |
6672 | #include <fcntl.h> |
6673 | #include <sys/mman.h> | |
6674 | ||
5464f5a1 NN |
6675 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
6676 | char *malloc (); | |
6677 | #endif | |
6be7c12c | 6678 | |
5464f5a1 NN |
6679 | /* This mess was copied from the GNU getpagesize.h. */ |
6680 | #if !HAVE_GETPAGESIZE | |
252b5132 | 6681 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 6682 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
6683 | # define HAVE_SYS_PARAM_H 1 |
6684 | # endif | |
6685 | ||
6686 | # ifdef _SC_PAGESIZE | |
6687 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6688 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 6689 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
6690 | # include <sys/param.h> |
6691 | # ifdef EXEC_PAGESIZE | |
6692 | # define getpagesize() EXEC_PAGESIZE | |
6693 | # else /* no EXEC_PAGESIZE */ | |
6694 | # ifdef NBPG | |
6695 | # define getpagesize() NBPG * CLSIZE | |
6696 | # ifndef CLSIZE | |
6697 | # define CLSIZE 1 | |
6698 | # endif /* no CLSIZE */ | |
6699 | # else /* no NBPG */ | |
6700 | # ifdef NBPC | |
6701 | # define getpagesize() NBPC | |
6702 | # else /* no NBPC */ | |
6703 | # ifdef PAGESIZE | |
6704 | # define getpagesize() PAGESIZE | |
6705 | # endif /* PAGESIZE */ | |
6706 | # endif /* no NBPC */ | |
6707 | # endif /* no NBPG */ | |
6708 | # endif /* no EXEC_PAGESIZE */ | |
6709 | # else /* no HAVE_SYS_PARAM_H */ | |
6710 | # define getpagesize() 8192 /* punt totally */ | |
6711 | # endif /* no HAVE_SYS_PARAM_H */ | |
6712 | # endif /* no _SC_PAGESIZE */ | |
6713 | ||
6714 | #endif /* no HAVE_GETPAGESIZE */ | |
6715 | ||
252b5132 | 6716 | int |
5464f5a1 | 6717 | main () |
252b5132 | 6718 | { |
5464f5a1 NN |
6719 | char *data, *data2, *data3; |
6720 | int i, pagesize; | |
6721 | int fd; | |
6722 | ||
6723 | pagesize = getpagesize (); | |
6724 | ||
6725 | /* First, make a file with some known garbage in it. */ | |
6726 | data = (char *) malloc (pagesize); | |
6727 | if (!data) | |
6728 | exit (1); | |
6729 | for (i = 0; i < pagesize; ++i) | |
6730 | *(data + i) = rand (); | |
6731 | umask (0); | |
6732 | fd = creat ("conftest.mmap", 0600); | |
6733 | if (fd < 0) | |
6734 | exit (1); | |
6735 | if (write (fd, data, pagesize) != pagesize) | |
6736 | exit (1); | |
6737 | close (fd); | |
6738 | ||
6739 | /* Next, try to mmap the file at a fixed address which already has | |
6740 | something else allocated at it. If we can, also make sure that | |
6741 | we see the same garbage. */ | |
6742 | fd = open ("conftest.mmap", O_RDWR); | |
6743 | if (fd < 0) | |
6744 | exit (1); | |
6745 | data2 = (char *) malloc (2 * pagesize); | |
6746 | if (!data2) | |
6747 | exit (1); | |
6748 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
6749 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6750 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6751 | exit (1); | |
6752 | for (i = 0; i < pagesize; ++i) | |
6753 | if (*(data + i) != *(data2 + i)) | |
6754 | exit (1); | |
6755 | ||
6756 | /* Finally, make sure that changes to the mapped area do not | |
6757 | percolate back to the file as seen by read(). (This is a bug on | |
6758 | some variants of i386 svr4.0.) */ | |
6759 | for (i = 0; i < pagesize; ++i) | |
6760 | *(data2 + i) = *(data2 + i) + 1; | |
6761 | data3 = (char *) malloc (pagesize); | |
6762 | if (!data3) | |
6763 | exit (1); | |
6764 | if (read (fd, data3, pagesize) != pagesize) | |
6765 | exit (1); | |
6766 | for (i = 0; i < pagesize; ++i) | |
6767 | if (*(data + i) != *(data3 + i)) | |
6768 | exit (1); | |
6769 | close (fd); | |
6770 | exit (0); | |
252b5132 | 6771 | } |
5464f5a1 NN |
6772 | _ACEOF |
6773 | rm -f conftest$ac_exeext | |
6774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6775 | (eval $ac_link) 2>&5 | |
6776 | ac_status=$? | |
6777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6778 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6780 | (eval $ac_try) 2>&5 | |
6781 | ac_status=$? | |
6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6783 | (exit $ac_status); }; }; then | |
252b5132 RH |
6784 | ac_cv_func_mmap_fixed_mapped=yes |
6785 | else | |
5464f5a1 NN |
6786 | echo "$as_me: program exited with status $ac_status" >&5 |
6787 | echo "$as_me: failed program was:" >&5 | |
6788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6789 | ||
6790 | ( exit $ac_status ) | |
6791 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 6792 | fi |
5464f5a1 | 6793 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6794 | fi |
252b5132 | 6795 | fi |
5464f5a1 NN |
6796 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6797 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6be7c12c | 6798 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
5464f5a1 NN |
6799 | |
6800 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6801 | #define HAVE_MMAP 1 |
5464f5a1 | 6802 | _ACEOF |
252b5132 RH |
6803 | |
6804 | fi | |
5464f5a1 NN |
6805 | rm -f conftest.mmap |
6806 | ||
6807 | ||
252b5132 | 6808 | |
5464f5a1 NN |
6809 | |
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
6818 | unistd.h values.h sys/param.h |
6819 | do | |
5464f5a1 NN |
6820 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6822 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6823 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6826 | fi | |
6827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6828 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6829 | else | |
6830 | # Is the header compilable? | |
6831 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6832 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6833 | cat >conftest.$ac_ext <<_ACEOF | |
6834 | /* confdefs.h. */ | |
6835 | _ACEOF | |
6836 | cat confdefs.h >>conftest.$ac_ext | |
6837 | cat >>conftest.$ac_ext <<_ACEOF | |
6838 | /* end confdefs.h. */ | |
6839 | $ac_includes_default | |
6840 | #include <$ac_header> | |
6841 | _ACEOF | |
6842 | rm -f conftest.$ac_objext | |
6843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6844 | (eval $ac_compile) 2>conftest.er1 | |
6845 | ac_status=$? | |
6846 | grep -v '^ *+' conftest.er1 >conftest.err | |
6847 | rm -f conftest.er1 | |
6848 | cat conftest.err >&5 | |
6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6850 | (exit $ac_status); } && | |
8fb84ecc AC |
6851 | { ac_try='test -z "$ac_c_werror_flag" |
6852 | || test ! -s conftest.err' | |
5464f5a1 NN |
6853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6854 | (eval $ac_try) 2>&5 | |
6855 | ac_status=$? | |
6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6857 | (exit $ac_status); }; } && | |
6858 | { ac_try='test -s conftest.$ac_objext' | |
6859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6860 | (eval $ac_try) 2>&5 | |
6861 | ac_status=$? | |
6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6863 | (exit $ac_status); }; }; then | |
6864 | ac_header_compiler=yes | |
6865 | else | |
6866 | echo "$as_me: failed program was:" >&5 | |
6867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6868 | ||
6869 | ac_header_compiler=no | |
6870 | fi | |
6871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6872 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6873 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6874 | ||
6875 | # Is the header present? | |
6876 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6877 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6878 | cat >conftest.$ac_ext <<_ACEOF | |
6879 | /* confdefs.h. */ | |
6880 | _ACEOF | |
6881 | cat confdefs.h >>conftest.$ac_ext | |
6882 | cat >>conftest.$ac_ext <<_ACEOF | |
6883 | /* end confdefs.h. */ | |
6884 | #include <$ac_header> | |
6885 | _ACEOF | |
6886 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6887 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6888 | ac_status=$? | |
6889 | grep -v '^ *+' conftest.er1 >conftest.err | |
6890 | rm -f conftest.er1 | |
6891 | cat conftest.err >&5 | |
6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6893 | (exit $ac_status); } >/dev/null; then | |
6894 | if test -s conftest.err; then | |
6895 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6896 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6897 | else | |
6898 | ac_cpp_err= | |
6899 | fi | |
252b5132 | 6900 | else |
5464f5a1 | 6901 | ac_cpp_err=yes |
252b5132 | 6902 | fi |
5464f5a1 NN |
6903 | if test -z "$ac_cpp_err"; then |
6904 | ac_header_preproc=yes | |
6905 | else | |
6906 | echo "$as_me: failed program was:" >&5 | |
6907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6908 | ||
6909 | ac_header_preproc=no | |
252b5132 | 6910 | fi |
5464f5a1 NN |
6911 | rm -f conftest.err conftest.$ac_ext |
6912 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6913 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6914 | ||
6915 | # So? What about this header? | |
6916 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6917 | yes:no: ) | |
6918 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6919 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6921 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6922 | ac_header_preproc=yes | |
6923 | ;; | |
6924 | no:yes:* ) | |
6925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6929 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6930 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6931 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6932 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6934 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6935 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6936 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6937 | ( | |
6938 | cat <<\_ASBOX | |
6939 | ## ------------------------------------------ ## | |
6940 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6941 | ## ------------------------------------------ ## | |
6942 | _ASBOX | |
6943 | ) | | |
6944 | sed "s/^/$as_me: WARNING: /" >&2 | |
6945 | ;; | |
6946 | esac | |
6947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6951 | else |
5464f5a1 NN |
6952 | eval "$as_ac_Header=\$ac_header_preproc" |
6953 | fi | |
6954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6956 | ||
6957 | fi | |
6958 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6959 | cat >>confdefs.h <<_ACEOF | |
6960 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6961 | _ACEOF | |
6962 | ||
252b5132 | 6963 | fi |
5464f5a1 | 6964 | |
252b5132 RH |
6965 | done |
6966 | ||
5464f5a1 NN |
6967 | |
6968 | ||
6969 | ||
6970 | ||
6971 | ||
6972 | ||
6973 | ||
6974 | ||
6975 | ||
6976 | ||
6977 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
252b5132 RH |
6978 | __argz_count __argz_stringify __argz_next |
6979 | do | |
5464f5a1 NN |
6980 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6981 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6982 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6983 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6985 | else | |
6986 | cat >conftest.$ac_ext <<_ACEOF | |
6987 | /* confdefs.h. */ | |
6988 | _ACEOF | |
6989 | cat confdefs.h >>conftest.$ac_ext | |
6990 | cat >>conftest.$ac_ext <<_ACEOF | |
6991 | /* end confdefs.h. */ | |
6992 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6994 | #define $ac_func innocuous_$ac_func | |
6995 | ||
252b5132 | 6996 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6997 | which can conflict with char $ac_func (); below. |
6998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6999 | <limits.h> exists even on freestanding compilers. */ | |
7000 | ||
7001 | #ifdef __STDC__ | |
7002 | # include <limits.h> | |
7003 | #else | |
7004 | # include <assert.h> | |
7005 | #endif | |
7006 | ||
7007 | #undef $ac_func | |
7008 | ||
252b5132 | 7009 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
7010 | #ifdef __cplusplus |
7011 | extern "C" | |
7012 | { | |
7013 | #endif | |
252b5132 | 7014 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
7015 | builtin and then its argument prototype would still apply. */ |
7016 | char $ac_func (); | |
252b5132 RH |
7017 | /* The GNU C library defines this for functions which it implements |
7018 | to always fail with ENOSYS. Some functions are actually named | |
7019 | something starting with __ and the normal name is an alias. */ | |
7020 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7021 | choke me | |
7022 | #else | |
5464f5a1 NN |
7023 | char (*f) () = $ac_func; |
7024 | #endif | |
7025 | #ifdef __cplusplus | |
7026 | } | |
252b5132 RH |
7027 | #endif |
7028 | ||
5464f5a1 NN |
7029 | int |
7030 | main () | |
7031 | { | |
7032 | return f != $ac_func; | |
7033 | ; | |
7034 | return 0; | |
7035 | } | |
7036 | _ACEOF | |
7037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7039 | (eval $ac_link) 2>conftest.er1 | |
7040 | ac_status=$? | |
7041 | grep -v '^ *+' conftest.er1 >conftest.err | |
7042 | rm -f conftest.er1 | |
7043 | cat conftest.err >&5 | |
7044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7045 | (exit $ac_status); } && | |
8fb84ecc AC |
7046 | { ac_try='test -z "$ac_c_werror_flag" |
7047 | || test ! -s conftest.err' | |
5464f5a1 NN |
7048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7049 | (eval $ac_try) 2>&5 | |
7050 | ac_status=$? | |
7051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7052 | (exit $ac_status); }; } && | |
7053 | { ac_try='test -s conftest$ac_exeext' | |
7054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7055 | (eval $ac_try) 2>&5 | |
7056 | ac_status=$? | |
7057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7058 | (exit $ac_status); }; }; then | |
7059 | eval "$as_ac_var=yes" | |
7060 | else | |
7061 | echo "$as_me: failed program was:" >&5 | |
7062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7063 | ||
7064 | eval "$as_ac_var=no" | |
7065 | fi | |
7066 | rm -f conftest.err conftest.$ac_objext \ | |
7067 | conftest$ac_exeext conftest.$ac_ext | |
7068 | fi | |
7069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7070 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7071 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7072 | cat >>confdefs.h <<_ACEOF | |
7073 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7074 | _ACEOF | |
252b5132 | 7075 | |
252b5132 RH |
7076 | fi |
7077 | done | |
7078 | ||
b3baf5d0 | 7079 | |
6be7c12c | 7080 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
5464f5a1 NN |
7081 | |
7082 | for ac_func in stpcpy | |
252b5132 | 7083 | do |
5464f5a1 NN |
7084 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7085 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7086 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7087 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7089 | else | |
7090 | cat >conftest.$ac_ext <<_ACEOF | |
7091 | /* confdefs.h. */ | |
7092 | _ACEOF | |
7093 | cat confdefs.h >>conftest.$ac_ext | |
7094 | cat >>conftest.$ac_ext <<_ACEOF | |
7095 | /* end confdefs.h. */ | |
7096 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7097 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7098 | #define $ac_func innocuous_$ac_func | |
7099 | ||
252b5132 | 7100 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7101 | which can conflict with char $ac_func (); below. |
7102 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7103 | <limits.h> exists even on freestanding compilers. */ | |
7104 | ||
7105 | #ifdef __STDC__ | |
7106 | # include <limits.h> | |
7107 | #else | |
7108 | # include <assert.h> | |
7109 | #endif | |
6be7c12c | 7110 | |
5464f5a1 | 7111 | #undef $ac_func |
252b5132 | 7112 | |
5464f5a1 NN |
7113 | /* Override any gcc2 internal prototype to avoid an error. */ |
7114 | #ifdef __cplusplus | |
7115 | extern "C" | |
7116 | { | |
7117 | #endif | |
7118 | /* We use char because int might match the return type of a gcc2 | |
7119 | builtin and then its argument prototype would still apply. */ | |
7120 | char $ac_func (); | |
252b5132 RH |
7121 | /* The GNU C library defines this for functions which it implements |
7122 | to always fail with ENOSYS. Some functions are actually named | |
7123 | something starting with __ and the normal name is an alias. */ | |
7124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7125 | choke me | |
7126 | #else | |
5464f5a1 NN |
7127 | char (*f) () = $ac_func; |
7128 | #endif | |
7129 | #ifdef __cplusplus | |
7130 | } | |
252b5132 RH |
7131 | #endif |
7132 | ||
5464f5a1 NN |
7133 | int |
7134 | main () | |
7135 | { | |
7136 | return f != $ac_func; | |
7137 | ; | |
7138 | return 0; | |
7139 | } | |
7140 | _ACEOF | |
7141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7143 | (eval $ac_link) 2>conftest.er1 | |
7144 | ac_status=$? | |
7145 | grep -v '^ *+' conftest.er1 >conftest.err | |
7146 | rm -f conftest.er1 | |
7147 | cat conftest.err >&5 | |
7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7149 | (exit $ac_status); } && | |
8fb84ecc AC |
7150 | { ac_try='test -z "$ac_c_werror_flag" |
7151 | || test ! -s conftest.err' | |
5464f5a1 NN |
7152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7153 | (eval $ac_try) 2>&5 | |
7154 | ac_status=$? | |
7155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7156 | (exit $ac_status); }; } && | |
7157 | { ac_try='test -s conftest$ac_exeext' | |
7158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7159 | (eval $ac_try) 2>&5 | |
7160 | ac_status=$? | |
7161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7162 | (exit $ac_status); }; }; then | |
7163 | eval "$as_ac_var=yes" | |
7164 | else | |
7165 | echo "$as_me: failed program was:" >&5 | |
7166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7167 | ||
7168 | eval "$as_ac_var=no" | |
7169 | fi | |
7170 | rm -f conftest.err conftest.$ac_objext \ | |
7171 | conftest$ac_exeext conftest.$ac_ext | |
7172 | fi | |
7173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7174 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7175 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7176 | cat >>confdefs.h <<_ACEOF | |
7177 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7178 | _ACEOF | |
252b5132 | 7179 | |
252b5132 RH |
7180 | fi |
7181 | done | |
7182 | ||
7183 | fi | |
7184 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
5464f5a1 NN |
7185 | |
7186 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7187 | #define HAVE_STPCPY 1 |
5464f5a1 | 7188 | _ACEOF |
252b5132 RH |
7189 | |
7190 | fi | |
7191 | ||
7192 | if test $ac_cv_header_locale_h = yes; then | |
5464f5a1 NN |
7193 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
7194 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
7195 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
7196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7197 | else | |
7198 | cat >conftest.$ac_ext <<_ACEOF | |
7199 | /* confdefs.h. */ | |
7200 | _ACEOF | |
7201 | cat confdefs.h >>conftest.$ac_ext | |
7202 | cat >>conftest.$ac_ext <<_ACEOF | |
7203 | /* end confdefs.h. */ | |
252b5132 | 7204 | #include <locale.h> |
5464f5a1 NN |
7205 | int |
7206 | main () | |
7207 | { | |
252b5132 | 7208 | return LC_MESSAGES |
5464f5a1 NN |
7209 | ; |
7210 | return 0; | |
7211 | } | |
7212 | _ACEOF | |
7213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7215 | (eval $ac_link) 2>conftest.er1 | |
7216 | ac_status=$? | |
7217 | grep -v '^ *+' conftest.er1 >conftest.err | |
7218 | rm -f conftest.er1 | |
7219 | cat conftest.err >&5 | |
7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7221 | (exit $ac_status); } && | |
8fb84ecc AC |
7222 | { ac_try='test -z "$ac_c_werror_flag" |
7223 | || test ! -s conftest.err' | |
5464f5a1 NN |
7224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7225 | (eval $ac_try) 2>&5 | |
7226 | ac_status=$? | |
7227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7228 | (exit $ac_status); }; } && | |
7229 | { ac_try='test -s conftest$ac_exeext' | |
7230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7231 | (eval $ac_try) 2>&5 | |
7232 | ac_status=$? | |
7233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7234 | (exit $ac_status); }; }; then | |
252b5132 RH |
7235 | am_cv_val_LC_MESSAGES=yes |
7236 | else | |
5464f5a1 NN |
7237 | echo "$as_me: failed program was:" >&5 |
7238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7239 | ||
7240 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 7241 | fi |
5464f5a1 NN |
7242 | rm -f conftest.err conftest.$ac_objext \ |
7243 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7244 | fi |
5464f5a1 NN |
7245 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
7246 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
6be7c12c | 7247 | if test $am_cv_val_LC_MESSAGES = yes; then |
5464f5a1 NN |
7248 | |
7249 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7250 | #define HAVE_LC_MESSAGES 1 |
5464f5a1 | 7251 | _ACEOF |
252b5132 RH |
7252 | |
7253 | fi | |
7254 | fi | |
5464f5a1 NN |
7255 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7256 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
7257 | # Check whether --enable-nls or --disable-nls was given. |
7258 | if test "${enable_nls+set}" = set; then | |
7259 | enableval="$enable_nls" | |
7260 | USE_NLS=$enableval | |
7261 | else | |
7262 | USE_NLS=yes | |
5464f5a1 NN |
7263 | fi; |
7264 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7265 | echo "${ECHO_T}$USE_NLS" >&6 | |
6be7c12c | 7266 | |
252b5132 RH |
7267 | |
7268 | USE_INCLUDED_LIBINTL=no | |
7269 | ||
7270 | if test "$USE_NLS" = "yes"; then | |
5464f5a1 NN |
7271 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
7272 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
7273 | ||
7274 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
252b5132 RH |
7275 | if test "${with_included_gettext+set}" = set; then |
7276 | withval="$with_included_gettext" | |
7277 | nls_cv_force_use_gnu_gettext=$withval | |
7278 | else | |
7279 | nls_cv_force_use_gnu_gettext=no | |
5464f5a1 NN |
7280 | fi; |
7281 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
7282 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
7283 | |
7284 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7285 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7286 | nls_cv_header_intl= | |
7287 | nls_cv_header_libgt= | |
a53bf506 | 7288 | CATOBJEXT= |
252b5132 | 7289 | |
5464f5a1 NN |
7290 | if test "${ac_cv_header_libintl_h+set}" = set; then |
7291 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7292 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7293 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7295 | fi | |
7296 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7297 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7298 | else | |
7299 | # Is the header compilable? | |
7300 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
7301 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
7302 | cat >conftest.$ac_ext <<_ACEOF | |
7303 | /* confdefs.h. */ | |
7304 | _ACEOF | |
7305 | cat confdefs.h >>conftest.$ac_ext | |
7306 | cat >>conftest.$ac_ext <<_ACEOF | |
7307 | /* end confdefs.h. */ | |
7308 | $ac_includes_default | |
252b5132 | 7309 | #include <libintl.h> |
5464f5a1 NN |
7310 | _ACEOF |
7311 | rm -f conftest.$ac_objext | |
7312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7313 | (eval $ac_compile) 2>conftest.er1 | |
7314 | ac_status=$? | |
7315 | grep -v '^ *+' conftest.er1 >conftest.err | |
7316 | rm -f conftest.er1 | |
7317 | cat conftest.err >&5 | |
7318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7319 | (exit $ac_status); } && | |
8fb84ecc AC |
7320 | { ac_try='test -z "$ac_c_werror_flag" |
7321 | || test ! -s conftest.err' | |
5464f5a1 NN |
7322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7323 | (eval $ac_try) 2>&5 | |
7324 | ac_status=$? | |
7325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7326 | (exit $ac_status); }; } && | |
7327 | { ac_try='test -s conftest.$ac_objext' | |
7328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7329 | (eval $ac_try) 2>&5 | |
7330 | ac_status=$? | |
7331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7332 | (exit $ac_status); }; }; then | |
7333 | ac_header_compiler=yes | |
7334 | else | |
7335 | echo "$as_me: failed program was:" >&5 | |
7336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7337 | ||
7338 | ac_header_compiler=no | |
7339 | fi | |
7340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7341 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7342 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7343 | ||
7344 | # Is the header present? | |
7345 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
7346 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
7347 | cat >conftest.$ac_ext <<_ACEOF | |
7348 | /* confdefs.h. */ | |
7349 | _ACEOF | |
7350 | cat confdefs.h >>conftest.$ac_ext | |
7351 | cat >>conftest.$ac_ext <<_ACEOF | |
7352 | /* end confdefs.h. */ | |
7353 | #include <libintl.h> | |
7354 | _ACEOF | |
7355 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7356 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7357 | ac_status=$? | |
7358 | grep -v '^ *+' conftest.er1 >conftest.err | |
7359 | rm -f conftest.er1 | |
7360 | cat conftest.err >&5 | |
7361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7362 | (exit $ac_status); } >/dev/null; then | |
7363 | if test -s conftest.err; then | |
7364 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7365 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7366 | else | |
7367 | ac_cpp_err= | |
7368 | fi | |
252b5132 | 7369 | else |
5464f5a1 | 7370 | ac_cpp_err=yes |
252b5132 | 7371 | fi |
5464f5a1 NN |
7372 | if test -z "$ac_cpp_err"; then |
7373 | ac_header_preproc=yes | |
7374 | else | |
7375 | echo "$as_me: failed program was:" >&5 | |
7376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7377 | ||
7378 | ac_header_preproc=no | |
252b5132 | 7379 | fi |
5464f5a1 NN |
7380 | rm -f conftest.err conftest.$ac_ext |
7381 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7382 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7383 | ||
7384 | # So? What about this header? | |
7385 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7386 | yes:no: ) | |
7387 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7388 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7389 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
7390 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
7391 | ac_header_preproc=yes | |
7392 | ;; | |
7393 | no:yes:* ) | |
7394 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
7395 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
7396 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
7397 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
7398 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
7399 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
7400 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7401 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7402 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7403 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
7404 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
7405 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
7406 | ( | |
7407 | cat <<\_ASBOX | |
7408 | ## ------------------------------------------ ## | |
7409 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7410 | ## ------------------------------------------ ## | |
7411 | _ASBOX | |
7412 | ) | | |
7413 | sed "s/^/$as_me: WARNING: /" >&2 | |
7414 | ;; | |
7415 | esac | |
7416 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7417 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7418 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7420 | else |
5464f5a1 NN |
7421 | ac_cv_header_libintl_h=$ac_header_preproc |
7422 | fi | |
7423 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7424 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7425 | ||
7426 | fi | |
7427 | if test $ac_cv_header_libintl_h = yes; then | |
7428 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
7429 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
7430 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
7431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7432 | else | |
7433 | cat >conftest.$ac_ext <<_ACEOF | |
7434 | /* confdefs.h. */ | |
7435 | _ACEOF | |
7436 | cat confdefs.h >>conftest.$ac_ext | |
7437 | cat >>conftest.$ac_ext <<_ACEOF | |
7438 | /* end confdefs.h. */ | |
252b5132 | 7439 | #include <libintl.h> |
5464f5a1 NN |
7440 | int |
7441 | main () | |
7442 | { | |
252b5132 | 7443 | return (int) gettext ("") |
5464f5a1 NN |
7444 | ; |
7445 | return 0; | |
7446 | } | |
7447 | _ACEOF | |
7448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7450 | (eval $ac_link) 2>conftest.er1 | |
7451 | ac_status=$? | |
7452 | grep -v '^ *+' conftest.er1 >conftest.err | |
7453 | rm -f conftest.er1 | |
7454 | cat conftest.err >&5 | |
7455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7456 | (exit $ac_status); } && | |
8fb84ecc AC |
7457 | { ac_try='test -z "$ac_c_werror_flag" |
7458 | || test ! -s conftest.err' | |
5464f5a1 NN |
7459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7460 | (eval $ac_try) 2>&5 | |
7461 | ac_status=$? | |
7462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7463 | (exit $ac_status); }; } && | |
7464 | { ac_try='test -s conftest$ac_exeext' | |
7465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7466 | (eval $ac_try) 2>&5 | |
7467 | ac_status=$? | |
7468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7469 | (exit $ac_status); }; }; then | |
252b5132 RH |
7470 | gt_cv_func_gettext_libc=yes |
7471 | else | |
5464f5a1 NN |
7472 | echo "$as_me: failed program was:" >&5 |
7473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7474 | ||
7475 | gt_cv_func_gettext_libc=no | |
252b5132 | 7476 | fi |
5464f5a1 NN |
7477 | rm -f conftest.err conftest.$ac_objext \ |
7478 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7479 | fi |
5464f5a1 NN |
7480 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
7481 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
7482 | |
7483 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5464f5a1 NN |
7484 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
7485 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
7486 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7488 | else |
5464f5a1 | 7489 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 7490 | LIBS="-lintl $LIBS" |
5464f5a1 NN |
7491 | cat >conftest.$ac_ext <<_ACEOF |
7492 | /* confdefs.h. */ | |
7493 | _ACEOF | |
7494 | cat confdefs.h >>conftest.$ac_ext | |
7495 | cat >>conftest.$ac_ext <<_ACEOF | |
7496 | /* end confdefs.h. */ | |
7497 | ||
252b5132 | 7498 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
7499 | #ifdef __cplusplus |
7500 | extern "C" | |
7501 | #endif | |
252b5132 | 7502 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
7503 | builtin and then its argument prototype would still apply. */ |
7504 | char bindtextdomain (); | |
7505 | int | |
7506 | main () | |
7507 | { | |
7508 | bindtextdomain (); | |
7509 | ; | |
7510 | return 0; | |
7511 | } | |
7512 | _ACEOF | |
7513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7515 | (eval $ac_link) 2>conftest.er1 | |
7516 | ac_status=$? | |
7517 | grep -v '^ *+' conftest.er1 >conftest.err | |
7518 | rm -f conftest.er1 | |
7519 | cat conftest.err >&5 | |
7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7521 | (exit $ac_status); } && | |
8fb84ecc AC |
7522 | { ac_try='test -z "$ac_c_werror_flag" |
7523 | || test ! -s conftest.err' | |
5464f5a1 NN |
7524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7525 | (eval $ac_try) 2>&5 | |
7526 | ac_status=$? | |
7527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7528 | (exit $ac_status); }; } && | |
7529 | { ac_try='test -s conftest$ac_exeext' | |
7530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7531 | (eval $ac_try) 2>&5 | |
7532 | ac_status=$? | |
7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7534 | (exit $ac_status); }; }; then | |
7535 | ac_cv_lib_intl_bindtextdomain=yes | |
7536 | else | |
7537 | echo "$as_me: failed program was:" >&5 | |
7538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7539 | ||
7540 | ac_cv_lib_intl_bindtextdomain=no | |
7541 | fi | |
7542 | rm -f conftest.err conftest.$ac_objext \ | |
7543 | conftest$ac_exeext conftest.$ac_ext | |
7544 | LIBS=$ac_check_lib_save_LIBS | |
7545 | fi | |
7546 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
7547 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
7548 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
7549 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
7550 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
7551 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
7552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7553 | else | |
7554 | cat >conftest.$ac_ext <<_ACEOF | |
7555 | /* confdefs.h. */ | |
7556 | _ACEOF | |
7557 | cat confdefs.h >>conftest.$ac_ext | |
7558 | cat >>conftest.$ac_ext <<_ACEOF | |
7559 | /* end confdefs.h. */ | |
252b5132 | 7560 | |
5464f5a1 NN |
7561 | int |
7562 | main () | |
7563 | { | |
252b5132 | 7564 | return (int) gettext ("") |
5464f5a1 NN |
7565 | ; |
7566 | return 0; | |
7567 | } | |
7568 | _ACEOF | |
7569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7571 | (eval $ac_link) 2>conftest.er1 | |
7572 | ac_status=$? | |
7573 | grep -v '^ *+' conftest.er1 >conftest.err | |
7574 | rm -f conftest.er1 | |
7575 | cat conftest.err >&5 | |
7576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7577 | (exit $ac_status); } && | |
8fb84ecc AC |
7578 | { ac_try='test -z "$ac_c_werror_flag" |
7579 | || test ! -s conftest.err' | |
5464f5a1 NN |
7580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7581 | (eval $ac_try) 2>&5 | |
7582 | ac_status=$? | |
7583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7584 | (exit $ac_status); }; } && | |
7585 | { ac_try='test -s conftest$ac_exeext' | |
7586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7587 | (eval $ac_try) 2>&5 | |
7588 | ac_status=$? | |
7589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7590 | (exit $ac_status); }; }; then | |
252b5132 RH |
7591 | gt_cv_func_gettext_libintl=yes |
7592 | else | |
5464f5a1 NN |
7593 | echo "$as_me: failed program was:" >&5 |
7594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7595 | ||
7596 | gt_cv_func_gettext_libintl=no | |
252b5132 | 7597 | fi |
5464f5a1 NN |
7598 | rm -f conftest.err conftest.$ac_objext \ |
7599 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7600 | fi |
5464f5a1 NN |
7601 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
7602 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
7603 | fi |
7604 | ||
7605 | fi | |
7606 | ||
7607 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7608 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5464f5a1 NN |
7609 | |
7610 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7611 | #define HAVE_GETTEXT 1 |
5464f5a1 | 7612 | _ACEOF |
252b5132 RH |
7613 | |
7614 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7615 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7618 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7620 | else |
7621 | case "$MSGFMT" in | |
7622 | /*) | |
7623 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7624 | ;; | |
7625 | *) | |
7626 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7627 | for ac_dir in $PATH; do | |
7628 | test -z "$ac_dir" && ac_dir=. | |
7629 | if test -f $ac_dir/$ac_word; then | |
7630 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7631 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7632 | break | |
7633 | fi | |
7634 | fi | |
7635 | done | |
7636 | IFS="$ac_save_ifs" | |
7637 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7638 | ;; | |
7639 | esac | |
7640 | fi | |
7641 | MSGFMT="$ac_cv_path_MSGFMT" | |
7642 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7643 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7644 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7645 | else |
5464f5a1 NN |
7646 | echo "$as_me:$LINENO: result: no" >&5 |
7647 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7648 | fi |
7649 | if test "$MSGFMT" != "no"; then | |
5464f5a1 NN |
7650 | |
7651 | for ac_func in dcgettext | |
252b5132 | 7652 | do |
5464f5a1 NN |
7653 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7654 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7655 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7656 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7658 | else | |
7659 | cat >conftest.$ac_ext <<_ACEOF | |
7660 | /* confdefs.h. */ | |
7661 | _ACEOF | |
7662 | cat confdefs.h >>conftest.$ac_ext | |
7663 | cat >>conftest.$ac_ext <<_ACEOF | |
7664 | /* end confdefs.h. */ | |
7665 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7666 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7667 | #define $ac_func innocuous_$ac_func | |
7668 | ||
252b5132 | 7669 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7670 | which can conflict with char $ac_func (); below. |
7671 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7672 | <limits.h> exists even on freestanding compilers. */ | |
7673 | ||
7674 | #ifdef __STDC__ | |
7675 | # include <limits.h> | |
7676 | #else | |
7677 | # include <assert.h> | |
7678 | #endif | |
6be7c12c | 7679 | |
5464f5a1 | 7680 | #undef $ac_func |
252b5132 | 7681 | |
5464f5a1 NN |
7682 | /* Override any gcc2 internal prototype to avoid an error. */ |
7683 | #ifdef __cplusplus | |
7684 | extern "C" | |
7685 | { | |
7686 | #endif | |
7687 | /* We use char because int might match the return type of a gcc2 | |
7688 | builtin and then its argument prototype would still apply. */ | |
7689 | char $ac_func (); | |
252b5132 RH |
7690 | /* The GNU C library defines this for functions which it implements |
7691 | to always fail with ENOSYS. Some functions are actually named | |
7692 | something starting with __ and the normal name is an alias. */ | |
7693 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7694 | choke me | |
7695 | #else | |
5464f5a1 NN |
7696 | char (*f) () = $ac_func; |
7697 | #endif | |
7698 | #ifdef __cplusplus | |
7699 | } | |
252b5132 RH |
7700 | #endif |
7701 | ||
5464f5a1 NN |
7702 | int |
7703 | main () | |
7704 | { | |
7705 | return f != $ac_func; | |
7706 | ; | |
7707 | return 0; | |
7708 | } | |
7709 | _ACEOF | |
7710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7712 | (eval $ac_link) 2>conftest.er1 | |
7713 | ac_status=$? | |
7714 | grep -v '^ *+' conftest.er1 >conftest.err | |
7715 | rm -f conftest.er1 | |
7716 | cat conftest.err >&5 | |
7717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7718 | (exit $ac_status); } && | |
8fb84ecc AC |
7719 | { ac_try='test -z "$ac_c_werror_flag" |
7720 | || test ! -s conftest.err' | |
5464f5a1 NN |
7721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7722 | (eval $ac_try) 2>&5 | |
7723 | ac_status=$? | |
7724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7725 | (exit $ac_status); }; } && | |
7726 | { ac_try='test -s conftest$ac_exeext' | |
7727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7728 | (eval $ac_try) 2>&5 | |
7729 | ac_status=$? | |
7730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7731 | (exit $ac_status); }; }; then | |
7732 | eval "$as_ac_var=yes" | |
7733 | else | |
7734 | echo "$as_me: failed program was:" >&5 | |
7735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7736 | ||
7737 | eval "$as_ac_var=no" | |
7738 | fi | |
7739 | rm -f conftest.err conftest.$ac_objext \ | |
7740 | conftest$ac_exeext conftest.$ac_ext | |
7741 | fi | |
7742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7743 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7744 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7745 | cat >>confdefs.h <<_ACEOF | |
7746 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7747 | _ACEOF | |
252b5132 | 7748 | |
252b5132 RH |
7749 | fi |
7750 | done | |
7751 | ||
7752 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7753 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7754 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7756 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7758 | else |
5464f5a1 NN |
7759 | case $GMSGFMT in |
7760 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7761 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7762 | ;; | |
252b5132 | 7763 | *) |
5464f5a1 NN |
7764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7765 | for as_dir in $PATH | |
7766 | do | |
7767 | IFS=$as_save_IFS | |
7768 | test -z "$as_dir" && as_dir=. | |
7769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7771 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7773 | break 2 | |
7774 | fi | |
7775 | done | |
7776 | done | |
7777 | ||
252b5132 RH |
7778 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7779 | ;; | |
7780 | esac | |
7781 | fi | |
5464f5a1 NN |
7782 | GMSGFMT=$ac_cv_path_GMSGFMT |
7783 | ||
252b5132 | 7784 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7785 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7786 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7787 | else |
5464f5a1 NN |
7788 | echo "$as_me:$LINENO: result: no" >&5 |
7789 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7790 | fi |
7791 | ||
7792 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7793 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
7794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7796 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7798 | else |
7799 | case "$XGETTEXT" in | |
7800 | /*) | |
7801 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7802 | ;; | |
7803 | *) | |
7804 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7805 | for ac_dir in $PATH; do | |
7806 | test -z "$ac_dir" && ac_dir=. | |
7807 | if test -f $ac_dir/$ac_word; then | |
7808 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7809 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7810 | break | |
7811 | fi | |
7812 | fi | |
7813 | done | |
7814 | IFS="$ac_save_ifs" | |
7815 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7816 | ;; | |
7817 | esac | |
7818 | fi | |
7819 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7820 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
7821 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7822 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7823 | else |
5464f5a1 NN |
7824 | echo "$as_me:$LINENO: result: no" >&5 |
7825 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7826 | fi |
7827 | ||
5464f5a1 NN |
7828 | cat >conftest.$ac_ext <<_ACEOF |
7829 | /* confdefs.h. */ | |
7830 | _ACEOF | |
7831 | cat confdefs.h >>conftest.$ac_ext | |
7832 | cat >>conftest.$ac_ext <<_ACEOF | |
7833 | /* end confdefs.h. */ | |
252b5132 | 7834 | |
5464f5a1 NN |
7835 | int |
7836 | main () | |
7837 | { | |
252b5132 RH |
7838 | extern int _nl_msg_cat_cntr; |
7839 | return _nl_msg_cat_cntr | |
5464f5a1 NN |
7840 | ; |
7841 | return 0; | |
7842 | } | |
7843 | _ACEOF | |
7844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7846 | (eval $ac_link) 2>conftest.er1 | |
7847 | ac_status=$? | |
7848 | grep -v '^ *+' conftest.er1 >conftest.err | |
7849 | rm -f conftest.er1 | |
7850 | cat conftest.err >&5 | |
7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7852 | (exit $ac_status); } && | |
8fb84ecc AC |
7853 | { ac_try='test -z "$ac_c_werror_flag" |
7854 | || test ! -s conftest.err' | |
5464f5a1 NN |
7855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7856 | (eval $ac_try) 2>&5 | |
7857 | ac_status=$? | |
7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7859 | (exit $ac_status); }; } && | |
7860 | { ac_try='test -s conftest$ac_exeext' | |
7861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7862 | (eval $ac_try) 2>&5 | |
7863 | ac_status=$? | |
7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7865 | (exit $ac_status); }; }; then | |
252b5132 RH |
7866 | CATOBJEXT=.gmo |
7867 | DATADIRNAME=share | |
7868 | else | |
5464f5a1 NN |
7869 | echo "$as_me: failed program was:" >&5 |
7870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7871 | ||
7872 | CATOBJEXT=.mo | |
252b5132 RH |
7873 | DATADIRNAME=lib |
7874 | fi | |
5464f5a1 NN |
7875 | rm -f conftest.err conftest.$ac_objext \ |
7876 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 RH |
7877 | INSTOBJEXT=.mo |
7878 | fi | |
7879 | fi | |
5464f5a1 | 7880 | |
b3baf5d0 | 7881 | fi |
252b5132 | 7882 | |
6be7c12c | 7883 | |
5464f5a1 NN |
7884 | |
7885 | ||
a53bf506 | 7886 | if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then |
45181ed1 AC |
7887 | # Neither gettext nor catgets in included in the C library. |
7888 | # Fall back on GNU gettext library (assuming it is present). | |
7889 | nls_cv_use_gnu_gettext=yes | |
252b5132 RH |
7890 | fi |
7891 | fi | |
7892 | ||
7893 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7894 | INTLOBJS="\$(GETTOBJS)" | |
7895 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7896 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7899 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7901 | else |
7902 | case "$MSGFMT" in | |
7903 | /*) | |
7904 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7905 | ;; | |
7906 | *) | |
7907 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7908 | for ac_dir in $PATH; do | |
7909 | test -z "$ac_dir" && ac_dir=. | |
7910 | if test -f $ac_dir/$ac_word; then | |
7911 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7912 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7913 | break | |
7914 | fi | |
7915 | fi | |
7916 | done | |
7917 | IFS="$ac_save_ifs" | |
7918 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7919 | ;; | |
7920 | esac | |
7921 | fi | |
7922 | MSGFMT="$ac_cv_path_MSGFMT" | |
7923 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7924 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7925 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7926 | else |
5464f5a1 NN |
7927 | echo "$as_me:$LINENO: result: no" >&5 |
7928 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7929 | fi |
7930 | ||
7931 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7932 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7933 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7935 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7937 | else |
5464f5a1 NN |
7938 | case $GMSGFMT in |
7939 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7940 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7941 | ;; | |
252b5132 | 7942 | *) |
5464f5a1 NN |
7943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7944 | for as_dir in $PATH | |
7945 | do | |
7946 | IFS=$as_save_IFS | |
7947 | test -z "$as_dir" && as_dir=. | |
7948 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7949 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7950 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7952 | break 2 | |
7953 | fi | |
7954 | done | |
7955 | done | |
7956 | ||
252b5132 RH |
7957 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7958 | ;; | |
7959 | esac | |
7960 | fi | |
5464f5a1 NN |
7961 | GMSGFMT=$ac_cv_path_GMSGFMT |
7962 | ||
252b5132 | 7963 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7964 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7965 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7966 | else |
5464f5a1 NN |
7967 | echo "$as_me:$LINENO: result: no" >&5 |
7968 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7969 | fi |
7970 | ||
7971 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7972 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
7973 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7974 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7975 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7977 | else |
7978 | case "$XGETTEXT" in | |
7979 | /*) | |
7980 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7981 | ;; | |
7982 | *) | |
7983 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7984 | for ac_dir in $PATH; do | |
7985 | test -z "$ac_dir" && ac_dir=. | |
7986 | if test -f $ac_dir/$ac_word; then | |
7987 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7988 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7989 | break | |
7990 | fi | |
7991 | fi | |
7992 | done | |
7993 | IFS="$ac_save_ifs" | |
7994 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7995 | ;; | |
7996 | esac | |
7997 | fi | |
7998 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7999 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
8000 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
8001 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 8002 | else |
5464f5a1 NN |
8003 | echo "$as_me:$LINENO: result: no" >&5 |
8004 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
8005 | fi |
8006 | ||
5464f5a1 | 8007 | |
252b5132 RH |
8008 | USE_INCLUDED_LIBINTL=yes |
8009 | CATOBJEXT=.gmo | |
8010 | INSTOBJEXT=.mo | |
8011 | DATADIRNAME=share | |
8012 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
8013 | INTLLIBS=$INTLDEPS | |
8014 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8015 | nls_cv_header_intl=libintl.h | |
8016 | nls_cv_header_libgt=libgettext.h | |
8017 | fi | |
8018 | ||
8019 | if test "$XGETTEXT" != ":"; then | |
8020 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
8021 | : ; | |
8022 | else | |
5464f5a1 NN |
8023 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
8024 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
8025 | XGETTEXT=":" |
8026 | fi | |
8027 | fi | |
8028 | ||
8029 | # We need to process the po/ directory. | |
8030 | POSUB=po | |
8031 | else | |
8032 | DATADIRNAME=share | |
8033 | nls_cv_header_intl=libintl.h | |
8034 | nls_cv_header_libgt=libgettext.h | |
8035 | fi | |
8036 | ||
8037 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8038 | # because some of the sources are only built for this goal. | |
8039 | if test "$PACKAGE" = gettext; then | |
8040 | USE_NLS=yes | |
8041 | USE_INCLUDED_LIBINTL=yes | |
8042 | fi | |
8043 | ||
8044 | for lang in $ALL_LINGUAS; do | |
8045 | GMOFILES="$GMOFILES $lang.gmo" | |
8046 | POFILES="$POFILES $lang.po" | |
8047 | done | |
8048 | ||
5464f5a1 NN |
8049 | |
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | ||
8055 | ||
8056 | ||
8057 | ||
8058 | ||
8059 | ||
c46f8c51 AC |
8060 | if test "x$CATOBJEXT" != "x"; then |
8061 | ||
8062 | cat >>confdefs.h <<\_ACEOF | |
8063 | #define ENABLE_NLS 1 | |
8064 | _ACEOF | |
8065 | ||
8066 | fi | |
5464f5a1 | 8067 | |
6be7c12c | 8068 | |
252b5132 RH |
8069 | if test "x$CATOBJEXT" != "x"; then |
8070 | if test "x$ALL_LINGUAS" = "x"; then | |
8071 | LINGUAS= | |
8072 | else | |
5464f5a1 NN |
8073 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
8074 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
8075 | NEW_LINGUAS= |
8076 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8077 | case "$ALL_LINGUAS" in | |
8078 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8079 | esac | |
8080 | done | |
8081 | LINGUAS=$NEW_LINGUAS | |
5464f5a1 NN |
8082 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
8083 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
8084 | fi |
8085 | ||
8086 | if test -n "$LINGUAS"; then | |
8087 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8088 | fi | |
8089 | fi | |
8090 | ||
8091 | if test $ac_cv_header_locale_h = yes; then | |
8092 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8093 | else | |
8094 | INCLUDE_LOCALE_H="\ | |
8095 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8096 | fi | |
5464f5a1 | 8097 | |
252b5132 RH |
8098 | |
8099 | if test -f $srcdir/po2tbl.sed.in; then | |
8100 | if test "$CATOBJEXT" = ".cat"; then | |
5464f5a1 NN |
8101 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
8102 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8103 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8104 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8106 | fi | |
8107 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8108 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8109 | else | |
8110 | # Is the header compilable? | |
8111 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
8112 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
8113 | cat >conftest.$ac_ext <<_ACEOF | |
8114 | /* confdefs.h. */ | |
8115 | _ACEOF | |
8116 | cat confdefs.h >>conftest.$ac_ext | |
8117 | cat >>conftest.$ac_ext <<_ACEOF | |
8118 | /* end confdefs.h. */ | |
8119 | $ac_includes_default | |
252b5132 | 8120 | #include <linux/version.h> |
5464f5a1 NN |
8121 | _ACEOF |
8122 | rm -f conftest.$ac_objext | |
8123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8124 | (eval $ac_compile) 2>conftest.er1 | |
8125 | ac_status=$? | |
8126 | grep -v '^ *+' conftest.er1 >conftest.err | |
8127 | rm -f conftest.er1 | |
8128 | cat conftest.err >&5 | |
8129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8130 | (exit $ac_status); } && | |
8fb84ecc AC |
8131 | { ac_try='test -z "$ac_c_werror_flag" |
8132 | || test ! -s conftest.err' | |
5464f5a1 NN |
8133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8134 | (eval $ac_try) 2>&5 | |
8135 | ac_status=$? | |
8136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8137 | (exit $ac_status); }; } && | |
8138 | { ac_try='test -s conftest.$ac_objext' | |
8139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8140 | (eval $ac_try) 2>&5 | |
8141 | ac_status=$? | |
8142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8143 | (exit $ac_status); }; }; then | |
8144 | ac_header_compiler=yes | |
8145 | else | |
8146 | echo "$as_me: failed program was:" >&5 | |
8147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8148 | ||
8149 | ac_header_compiler=no | |
8150 | fi | |
8151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8152 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8153 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8154 | ||
8155 | # Is the header present? | |
8156 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
8157 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
8158 | cat >conftest.$ac_ext <<_ACEOF | |
8159 | /* confdefs.h. */ | |
8160 | _ACEOF | |
8161 | cat confdefs.h >>conftest.$ac_ext | |
8162 | cat >>conftest.$ac_ext <<_ACEOF | |
8163 | /* end confdefs.h. */ | |
8164 | #include <linux/version.h> | |
8165 | _ACEOF | |
8166 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8167 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8168 | ac_status=$? | |
8169 | grep -v '^ *+' conftest.er1 >conftest.err | |
8170 | rm -f conftest.er1 | |
8171 | cat conftest.err >&5 | |
8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8173 | (exit $ac_status); } >/dev/null; then | |
8174 | if test -s conftest.err; then | |
8175 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8176 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8177 | else | |
8178 | ac_cpp_err= | |
8179 | fi | |
252b5132 | 8180 | else |
5464f5a1 | 8181 | ac_cpp_err=yes |
252b5132 | 8182 | fi |
5464f5a1 NN |
8183 | if test -z "$ac_cpp_err"; then |
8184 | ac_header_preproc=yes | |
8185 | else | |
8186 | echo "$as_me: failed program was:" >&5 | |
8187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8188 | ||
8189 | ac_header_preproc=no | |
8190 | fi | |
8191 | rm -f conftest.err conftest.$ac_ext | |
8192 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8193 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8194 | ||
8195 | # So? What about this header? | |
8196 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8197 | yes:no: ) | |
8198 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8199 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8200 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
8201 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
8202 | ac_header_preproc=yes | |
8203 | ;; | |
8204 | no:yes:* ) | |
8205 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
8206 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
8207 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
8208 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
8209 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
8210 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
8211 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
8212 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
8213 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
8214 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
8215 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
8216 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
8217 | ( | |
8218 | cat <<\_ASBOX | |
8219 | ## ------------------------------------------ ## | |
8220 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8221 | ## ------------------------------------------ ## | |
8222 | _ASBOX | |
8223 | ) | | |
8224 | sed "s/^/$as_me: WARNING: /" >&2 | |
8225 | ;; | |
8226 | esac | |
8227 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8228 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8229 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8231 | else | |
8232 | ac_cv_header_linux_version_h=$ac_header_preproc | |
8233 | fi | |
8234 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8235 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8236 | ||
252b5132 | 8237 | fi |
5464f5a1 | 8238 | if test $ac_cv_header_linux_version_h = yes; then |
252b5132 RH |
8239 | msgformat=linux |
8240 | else | |
5464f5a1 | 8241 | msgformat=xopen |
252b5132 RH |
8242 | fi |
8243 | ||
6be7c12c | 8244 | |
5464f5a1 | 8245 | |
252b5132 RH |
8246 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
8247 | fi | |
8248 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8249 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
8250 | fi | |
8251 | ||
8252 | if test "$PACKAGE" = "gettext"; then | |
8253 | GT_NO="#NO#" | |
8254 | GT_YES= | |
8255 | else | |
8256 | GT_NO= | |
8257 | GT_YES="#YES#" | |
8258 | fi | |
5464f5a1 NN |
8259 | |
8260 | ||
252b5132 RH |
8261 | |
8262 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
5464f5a1 | 8263 | |
252b5132 RH |
8264 | |
8265 | l= | |
5464f5a1 | 8266 | |
252b5132 | 8267 | |
3c3bdf30 | 8268 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
8269 | test -d po || mkdir po |
8270 | if test "x$srcdir" != "x."; then | |
8271 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8272 | posrcprefix="$srcdir/" | |
8273 | else | |
8274 | posrcprefix="../$srcdir/" | |
8275 | fi | |
8276 | else | |
8277 | posrcprefix="../" | |
8278 | fi | |
8279 | rm -f po/POTFILES | |
8280 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8281 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8282 | fi | |
5464f5a1 | 8283 | |
252b5132 RH |
8284 | |
8285 | # Permit host specific settings. | |
8286 | . ${srcdir}/configure.host | |
8287 | ||
6be7c12c | 8288 | |
252b5132 RH |
8289 | # Find a good install program. We prefer a C program (faster), |
8290 | # so one script is as good as another. But avoid the broken or | |
8291 | # incompatible versions: | |
8292 | # SysV /etc/install, /usr/sbin/install | |
8293 | # SunOS /usr/etc/install | |
8294 | # IRIX /sbin/install | |
8295 | # AIX /bin/install | |
5464f5a1 | 8296 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
8297 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
8298 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8299 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 8300 | # OS/2's system install, which has a completely different semantic |
252b5132 | 8301 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
8302 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8303 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 8304 | if test -z "$INSTALL"; then |
5464f5a1 NN |
8305 | if test "${ac_cv_path_install+set}" = set; then |
8306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8307 | else |
5464f5a1 NN |
8308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8309 | for as_dir in $PATH | |
8310 | do | |
8311 | IFS=$as_save_IFS | |
8312 | test -z "$as_dir" && as_dir=. | |
8313 | # Account for people who put trailing slashes in PATH elements. | |
8314 | case $as_dir/ in | |
8315 | ./ | .// | /cC/* | \ | |
8316 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8317 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8318 | /usr/ucb/* ) ;; | |
8319 | *) | |
8320 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8321 | # Don't use installbsd from OSF since it installs stuff as root | |
8322 | # by default. | |
8323 | for ac_prog in ginstall scoinst install; do | |
8324 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8325 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 8326 | if test $ac_prog = install && |
5464f5a1 | 8327 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
8328 | # AIX install. It has an incompatible calling convention. |
8329 | : | |
5464f5a1 NN |
8330 | elif test $ac_prog = install && |
8331 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8332 | # program-specific install script used by HP pwplus--don't use. | |
8333 | : | |
252b5132 | 8334 | else |
5464f5a1 NN |
8335 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
8336 | break 3 | |
252b5132 RH |
8337 | fi |
8338 | fi | |
8339 | done | |
5464f5a1 NN |
8340 | done |
8341 | ;; | |
8342 | esac | |
8343 | done | |
8344 | ||
252b5132 RH |
8345 | |
8346 | fi | |
8347 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 8348 | INSTALL=$ac_cv_path_install |
252b5132 RH |
8349 | else |
8350 | # As a last resort, use the slow shell script. We don't cache a | |
8351 | # path for INSTALL within a source directory, because that will | |
8352 | # break other packages using the cache if that directory is | |
8353 | # removed, or if the path is relative. | |
5464f5a1 | 8354 | INSTALL=$ac_install_sh |
252b5132 RH |
8355 | fi |
8356 | fi | |
5464f5a1 NN |
8357 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8358 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
8359 | |
8360 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8361 | # It thinks the first close brace ends the variable substitution. | |
8362 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8363 | ||
5464f5a1 | 8364 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
8365 | |
8366 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8367 | ||
6be7c12c | 8368 | |
252b5132 | 8369 | BFD_HOST_64BIT_LONG=0 |
ec317fb1 | 8370 | BFD_HOST_LONG_LONG=0 |
252b5132 RH |
8371 | BFD_HOST_64_BIT_DEFINED=0 |
8372 | BFD_HOST_64_BIT= | |
8373 | BFD_HOST_U_64_BIT= | |
252b5132 | 8374 | |
5464f5a1 NN |
8375 | echo "$as_me:$LINENO: checking for long long" >&5 |
8376 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
8377 | if test "${bfd_cv_has_long_long+set}" = set; then | |
8378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ec317fb1 | 8379 | else |
5464f5a1 NN |
8380 | cat >conftest.$ac_ext <<_ACEOF |
8381 | /* confdefs.h. */ | |
8382 | _ACEOF | |
8383 | cat confdefs.h >>conftest.$ac_ext | |
8384 | cat >>conftest.$ac_ext <<_ACEOF | |
8385 | /* end confdefs.h. */ | |
ec317fb1 | 8386 | |
5464f5a1 NN |
8387 | int |
8388 | main () | |
8389 | { | |
ec317fb1 | 8390 | unsigned long long ll = 18446744073709551615ULL; |
5464f5a1 NN |
8391 | ; |
8392 | return 0; | |
8393 | } | |
8394 | _ACEOF | |
8395 | rm -f conftest.$ac_objext | |
8396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8397 | (eval $ac_compile) 2>conftest.er1 | |
8398 | ac_status=$? | |
8399 | grep -v '^ *+' conftest.er1 >conftest.err | |
8400 | rm -f conftest.er1 | |
8401 | cat conftest.err >&5 | |
8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8403 | (exit $ac_status); } && | |
8fb84ecc AC |
8404 | { ac_try='test -z "$ac_c_werror_flag" |
8405 | || test ! -s conftest.err' | |
5464f5a1 NN |
8406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8407 | (eval $ac_try) 2>&5 | |
8408 | ac_status=$? | |
8409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8410 | (exit $ac_status); }; } && | |
8411 | { ac_try='test -s conftest.$ac_objext' | |
8412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8413 | (eval $ac_try) 2>&5 | |
8414 | ac_status=$? | |
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8416 | (exit $ac_status); }; }; then | |
ec317fb1 ILT |
8417 | bfd_cv_has_long_long=yes |
8418 | else | |
5464f5a1 NN |
8419 | echo "$as_me: failed program was:" >&5 |
8420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8421 | ||
8422 | bfd_cv_has_long_long=no | |
ec317fb1 | 8423 | fi |
5464f5a1 | 8424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ec317fb1 ILT |
8425 | fi |
8426 | ||
5464f5a1 NN |
8427 | echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5 |
8428 | echo "${ECHO_T}$bfd_cv_has_long_long" >&6 | |
ec317fb1 ILT |
8429 | if test $bfd_cv_has_long_long = yes; then |
8430 | BFD_HOST_LONG_LONG=1 | |
5464f5a1 NN |
8431 | echo "$as_me:$LINENO: checking size of long long" >&5 |
8432 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
8433 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
8434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6726e1ea L |
8435 | else |
8436 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. | |
5464f5a1 NN |
8437 | cat >conftest.$ac_ext <<_ACEOF |
8438 | /* confdefs.h. */ | |
8439 | _ACEOF | |
8440 | cat confdefs.h >>conftest.$ac_ext | |
8441 | cat >>conftest.$ac_ext <<_ACEOF | |
8442 | /* end confdefs.h. */ | |
6726e1ea L |
8443 | #include "confdefs.h" |
8444 | #include <sys/types.h> | |
8445 | ||
8446 | ||
5464f5a1 NN |
8447 | int |
8448 | main () | |
8449 | { | |
6726e1ea | 8450 | switch (0) case 0: case (sizeof (long long) == $ac_size):; |
5464f5a1 NN |
8451 | ; |
8452 | return 0; | |
8453 | } | |
8454 | _ACEOF | |
8455 | rm -f conftest.$ac_objext | |
8456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8457 | (eval $ac_compile) 2>conftest.er1 | |
8458 | ac_status=$? | |
8459 | grep -v '^ *+' conftest.er1 >conftest.err | |
8460 | rm -f conftest.er1 | |
8461 | cat conftest.err >&5 | |
8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8463 | (exit $ac_status); } && | |
8fb84ecc AC |
8464 | { ac_try='test -z "$ac_c_werror_flag" |
8465 | || test ! -s conftest.err' | |
5464f5a1 NN |
8466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8467 | (eval $ac_try) 2>&5 | |
8468 | ac_status=$? | |
8469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8470 | (exit $ac_status); }; } && | |
8471 | { ac_try='test -s conftest.$ac_objext' | |
8472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8473 | (eval $ac_try) 2>&5 | |
8474 | ac_status=$? | |
8475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8476 | (exit $ac_status); }; }; then | |
6726e1ea L |
8477 | ac_cv_sizeof_long_long=$ac_size |
8478 | else | |
5464f5a1 NN |
8479 | echo "$as_me: failed program was:" >&5 |
8480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8481 | ||
6726e1ea | 8482 | fi |
5464f5a1 | 8483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea L |
8484 | if test x$ac_cv_sizeof_long_long != x ; then break; fi |
8485 | done | |
8486 | ||
8487 | fi | |
8488 | ||
8489 | if test x$ac_cv_sizeof_long_long = x ; then | |
5464f5a1 NN |
8490 | { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5 |
8491 | echo "$as_me: error: cannot determine a size for long long" >&2;} | |
8492 | { (exit 1); exit 1; }; } | |
6726e1ea | 8493 | fi |
5464f5a1 NN |
8494 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
8495 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
8496 | ||
8497 | cat >>confdefs.h <<_ACEOF | |
6726e1ea | 8498 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
5464f5a1 | 8499 | _ACEOF |
6726e1ea L |
8500 | |
8501 | ||
8502 | fi | |
8503 | ||
5464f5a1 NN |
8504 | echo "$as_me:$LINENO: checking size of long" >&5 |
8505 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
8506 | if test "${ac_cv_sizeof_long+set}" = set; then | |
8507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6726e1ea L |
8508 | else |
8509 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. | |
5464f5a1 NN |
8510 | cat >conftest.$ac_ext <<_ACEOF |
8511 | /* confdefs.h. */ | |
8512 | _ACEOF | |
8513 | cat confdefs.h >>conftest.$ac_ext | |
8514 | cat >>conftest.$ac_ext <<_ACEOF | |
8515 | /* end confdefs.h. */ | |
6726e1ea L |
8516 | #include "confdefs.h" |
8517 | #include <sys/types.h> | |
8518 | ||
8519 | ||
5464f5a1 NN |
8520 | int |
8521 | main () | |
8522 | { | |
6726e1ea | 8523 | switch (0) case 0: case (sizeof (long) == $ac_size):; |
5464f5a1 NN |
8524 | ; |
8525 | return 0; | |
8526 | } | |
8527 | _ACEOF | |
8528 | rm -f conftest.$ac_objext | |
8529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8530 | (eval $ac_compile) 2>conftest.er1 | |
8531 | ac_status=$? | |
8532 | grep -v '^ *+' conftest.er1 >conftest.err | |
8533 | rm -f conftest.er1 | |
8534 | cat conftest.err >&5 | |
8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8536 | (exit $ac_status); } && | |
8fb84ecc AC |
8537 | { ac_try='test -z "$ac_c_werror_flag" |
8538 | || test ! -s conftest.err' | |
5464f5a1 NN |
8539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8540 | (eval $ac_try) 2>&5 | |
8541 | ac_status=$? | |
8542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8543 | (exit $ac_status); }; } && | |
8544 | { ac_try='test -s conftest.$ac_objext' | |
8545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8546 | (eval $ac_try) 2>&5 | |
8547 | ac_status=$? | |
8548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8549 | (exit $ac_status); }; }; then | |
6726e1ea L |
8550 | ac_cv_sizeof_long=$ac_size |
8551 | else | |
5464f5a1 NN |
8552 | echo "$as_me: failed program was:" >&5 |
8553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8554 | ||
6726e1ea | 8555 | fi |
5464f5a1 | 8556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea L |
8557 | if test x$ac_cv_sizeof_long != x ; then break; fi |
8558 | done | |
8559 | ||
8560 | fi | |
8561 | ||
8562 | if test x$ac_cv_sizeof_long = x ; then | |
5464f5a1 NN |
8563 | { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5 |
8564 | echo "$as_me: error: cannot determine a size for long" >&2;} | |
8565 | { (exit 1); exit 1; }; } | |
6726e1ea | 8566 | fi |
5464f5a1 NN |
8567 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
8568 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
8569 | ||
8570 | cat >>confdefs.h <<_ACEOF | |
6726e1ea | 8571 | #define SIZEOF_LONG $ac_cv_sizeof_long |
5464f5a1 | 8572 | _ACEOF |
6726e1ea L |
8573 | |
8574 | ||
8575 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
8576 | host64=true | |
ccba357f AM |
8577 | BFD_HOST_64BIT_LONG=1 |
8578 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
8579 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
6726e1ea | 8580 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then |
ccba357f AM |
8581 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" |
8582 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
6726e1ea L |
8583 | fi |
8584 | ||
ccba357f | 8585 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then |
6726e1ea | 8586 | BFD_HOST_64_BIT_DEFINED=1 |
ccba357f AM |
8587 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" |
8588 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
ec317fb1 ILT |
8589 | fi |
8590 | ||
8591 | ||
8592 | ||
6be7c12c AO |
8593 | |
8594 | ||
8595 | ||
8596 | ||
252b5132 RH |
8597 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
8598 | if test -z "$CC_FOR_BUILD"; then | |
8599 | if test "x$cross_compiling" = "xno"; then | |
8600 | CC_FOR_BUILD='$(CC)' | |
8601 | else | |
8602 | CC_FOR_BUILD=gcc | |
8603 | fi | |
8604 | fi | |
8605 | ||
8606 | # Also set EXEEXT_FOR_BUILD. | |
8607 | if test "x$cross_compiling" = "xno"; then | |
8608 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
8609 | else | |
5464f5a1 NN |
8610 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 |
8611 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
8612 | if test "${bfd_cv_build_exeext+set}" = set; then | |
8613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8614 | else |
aab08431 ILT |
8615 | rm -f conftest* |
8616 | echo 'int main () { return 0; }' > conftest.c | |
8617 | bfd_cv_build_exeext= | |
8618 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
8619 | for file in conftest.*; do | |
8620 | case $file in | |
8621 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
8622 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
8623 | esac | |
8624 | done | |
8625 | rm -f conftest* | |
8626 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 8627 | fi |
5464f5a1 NN |
8628 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 |
8629 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
252b5132 RH |
8630 | EXEEXT_FOR_BUILD="" |
8631 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
8632 | fi | |
8633 | ||
6be7c12c | 8634 | |
5464f5a1 NN |
8635 | |
8636 | ||
8637 | ||
8638 | ||
8639 | ||
8640 | ||
8641 | for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h | |
252b5132 | 8642 | do |
5464f5a1 NN |
8643 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8649 | fi | |
8650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8651 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8652 | else | |
8653 | # Is the header compilable? | |
8654 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8655 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8656 | cat >conftest.$ac_ext <<_ACEOF | |
8657 | /* confdefs.h. */ | |
8658 | _ACEOF | |
8659 | cat confdefs.h >>conftest.$ac_ext | |
8660 | cat >>conftest.$ac_ext <<_ACEOF | |
8661 | /* end confdefs.h. */ | |
8662 | $ac_includes_default | |
8663 | #include <$ac_header> | |
8664 | _ACEOF | |
8665 | rm -f conftest.$ac_objext | |
8666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8667 | (eval $ac_compile) 2>conftest.er1 | |
8668 | ac_status=$? | |
8669 | grep -v '^ *+' conftest.er1 >conftest.err | |
8670 | rm -f conftest.er1 | |
8671 | cat conftest.err >&5 | |
8672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8673 | (exit $ac_status); } && | |
8fb84ecc AC |
8674 | { ac_try='test -z "$ac_c_werror_flag" |
8675 | || test ! -s conftest.err' | |
5464f5a1 NN |
8676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8677 | (eval $ac_try) 2>&5 | |
8678 | ac_status=$? | |
8679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8680 | (exit $ac_status); }; } && | |
8681 | { ac_try='test -s conftest.$ac_objext' | |
8682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8683 | (eval $ac_try) 2>&5 | |
8684 | ac_status=$? | |
8685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8686 | (exit $ac_status); }; }; then | |
8687 | ac_header_compiler=yes | |
8688 | else | |
8689 | echo "$as_me: failed program was:" >&5 | |
8690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8691 | ||
8692 | ac_header_compiler=no | |
8693 | fi | |
8694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8695 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8696 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8697 | ||
8698 | # Is the header present? | |
8699 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8700 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8701 | cat >conftest.$ac_ext <<_ACEOF | |
8702 | /* confdefs.h. */ | |
8703 | _ACEOF | |
8704 | cat confdefs.h >>conftest.$ac_ext | |
8705 | cat >>conftest.$ac_ext <<_ACEOF | |
8706 | /* end confdefs.h. */ | |
8707 | #include <$ac_header> | |
8708 | _ACEOF | |
8709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8711 | ac_status=$? | |
8712 | grep -v '^ *+' conftest.er1 >conftest.err | |
8713 | rm -f conftest.er1 | |
8714 | cat conftest.err >&5 | |
8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8716 | (exit $ac_status); } >/dev/null; then | |
8717 | if test -s conftest.err; then | |
8718 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8719 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8720 | else | |
8721 | ac_cpp_err= | |
8722 | fi | |
252b5132 | 8723 | else |
5464f5a1 | 8724 | ac_cpp_err=yes |
252b5132 | 8725 | fi |
5464f5a1 NN |
8726 | if test -z "$ac_cpp_err"; then |
8727 | ac_header_preproc=yes | |
8728 | else | |
8729 | echo "$as_me: failed program was:" >&5 | |
8730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8731 | ||
8732 | ac_header_preproc=no | |
252b5132 | 8733 | fi |
5464f5a1 NN |
8734 | rm -f conftest.err conftest.$ac_ext |
8735 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8736 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8737 | ||
8738 | # So? What about this header? | |
8739 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8740 | yes:no: ) | |
8741 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8742 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8743 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8744 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8745 | ac_header_preproc=yes | |
8746 | ;; | |
8747 | no:yes:* ) | |
8748 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8749 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8750 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8751 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8752 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8753 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8754 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8755 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8757 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8758 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8759 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8760 | ( | |
8761 | cat <<\_ASBOX | |
8762 | ## ------------------------------------------ ## | |
8763 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8764 | ## ------------------------------------------ ## | |
8765 | _ASBOX | |
8766 | ) | | |
8767 | sed "s/^/$as_me: WARNING: /" >&2 | |
8768 | ;; | |
8769 | esac | |
8770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 8774 | else |
5464f5a1 NN |
8775 | eval "$as_ac_Header=\$ac_header_preproc" |
8776 | fi | |
8777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8779 | ||
252b5132 | 8780 | fi |
5464f5a1 NN |
8781 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8782 | cat >>confdefs.h <<_ACEOF | |
8783 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8784 | _ACEOF | |
8785 | ||
8786 | fi | |
8787 | ||
252b5132 RH |
8788 | done |
8789 | ||
5464f5a1 NN |
8790 | |
8791 | ||
8792 | ||
8793 | for ac_header in fcntl.h sys/file.h sys/time.h | |
252b5132 | 8794 | do |
5464f5a1 NN |
8795 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8801 | fi | |
8802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8804 | else | |
8805 | # Is the header compilable? | |
8806 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8807 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8808 | cat >conftest.$ac_ext <<_ACEOF | |
8809 | /* confdefs.h. */ | |
8810 | _ACEOF | |
8811 | cat confdefs.h >>conftest.$ac_ext | |
8812 | cat >>conftest.$ac_ext <<_ACEOF | |
8813 | /* end confdefs.h. */ | |
8814 | $ac_includes_default | |
8815 | #include <$ac_header> | |
8816 | _ACEOF | |
8817 | rm -f conftest.$ac_objext | |
8818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8819 | (eval $ac_compile) 2>conftest.er1 | |
8820 | ac_status=$? | |
8821 | grep -v '^ *+' conftest.er1 >conftest.err | |
8822 | rm -f conftest.er1 | |
8823 | cat conftest.err >&5 | |
8824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8825 | (exit $ac_status); } && | |
8fb84ecc AC |
8826 | { ac_try='test -z "$ac_c_werror_flag" |
8827 | || test ! -s conftest.err' | |
5464f5a1 NN |
8828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8829 | (eval $ac_try) 2>&5 | |
8830 | ac_status=$? | |
8831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8832 | (exit $ac_status); }; } && | |
8833 | { ac_try='test -s conftest.$ac_objext' | |
8834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8835 | (eval $ac_try) 2>&5 | |
8836 | ac_status=$? | |
8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8838 | (exit $ac_status); }; }; then | |
8839 | ac_header_compiler=yes | |
8840 | else | |
8841 | echo "$as_me: failed program was:" >&5 | |
8842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8843 | ||
8844 | ac_header_compiler=no | |
8845 | fi | |
8846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8847 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8848 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8849 | ||
8850 | # Is the header present? | |
8851 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8852 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8853 | cat >conftest.$ac_ext <<_ACEOF | |
8854 | /* confdefs.h. */ | |
8855 | _ACEOF | |
8856 | cat confdefs.h >>conftest.$ac_ext | |
8857 | cat >>conftest.$ac_ext <<_ACEOF | |
8858 | /* end confdefs.h. */ | |
8859 | #include <$ac_header> | |
8860 | _ACEOF | |
8861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8863 | ac_status=$? | |
8864 | grep -v '^ *+' conftest.er1 >conftest.err | |
8865 | rm -f conftest.er1 | |
8866 | cat conftest.err >&5 | |
8867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8868 | (exit $ac_status); } >/dev/null; then | |
8869 | if test -s conftest.err; then | |
8870 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8871 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8872 | else | |
8873 | ac_cpp_err= | |
8874 | fi | |
252b5132 | 8875 | else |
5464f5a1 | 8876 | ac_cpp_err=yes |
252b5132 | 8877 | fi |
5464f5a1 NN |
8878 | if test -z "$ac_cpp_err"; then |
8879 | ac_header_preproc=yes | |
8880 | else | |
8881 | echo "$as_me: failed program was:" >&5 | |
8882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8883 | ||
8884 | ac_header_preproc=no | |
252b5132 | 8885 | fi |
5464f5a1 NN |
8886 | rm -f conftest.err conftest.$ac_ext |
8887 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8888 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8889 | ||
8890 | # So? What about this header? | |
8891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8892 | yes:no: ) | |
8893 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8894 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8896 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8897 | ac_header_preproc=yes | |
8898 | ;; | |
8899 | no:yes:* ) | |
8900 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8901 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8902 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8903 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8904 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8905 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8906 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8907 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8910 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8911 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8912 | ( | |
8913 | cat <<\_ASBOX | |
8914 | ## ------------------------------------------ ## | |
8915 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8916 | ## ------------------------------------------ ## | |
8917 | _ASBOX | |
8918 | ) | | |
8919 | sed "s/^/$as_me: WARNING: /" >&2 | |
8920 | ;; | |
8921 | esac | |
8922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 8926 | else |
5464f5a1 NN |
8927 | eval "$as_ac_Header=\$ac_header_preproc" |
8928 | fi | |
8929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8931 | ||
8932 | fi | |
8933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8934 | cat >>confdefs.h <<_ACEOF | |
8935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8936 | _ACEOF | |
8937 | ||
252b5132 | 8938 | fi |
5464f5a1 | 8939 | |
252b5132 RH |
8940 | done |
8941 | ||
5464f5a1 NN |
8942 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
8943 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
8944 | if test "${ac_cv_header_time+set}" = set; then | |
8945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8946 | else | |
8947 | cat >conftest.$ac_ext <<_ACEOF | |
8948 | /* confdefs.h. */ | |
8949 | _ACEOF | |
8950 | cat confdefs.h >>conftest.$ac_ext | |
8951 | cat >>conftest.$ac_ext <<_ACEOF | |
8952 | /* end confdefs.h. */ | |
252b5132 RH |
8953 | #include <sys/types.h> |
8954 | #include <sys/time.h> | |
8955 | #include <time.h> | |
5464f5a1 NN |
8956 | |
8957 | int | |
8958 | main () | |
8959 | { | |
8960 | if ((struct tm *) 0) | |
8961 | return 0; | |
8962 | ; | |
8963 | return 0; | |
8964 | } | |
8965 | _ACEOF | |
8966 | rm -f conftest.$ac_objext | |
8967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8968 | (eval $ac_compile) 2>conftest.er1 | |
8969 | ac_status=$? | |
8970 | grep -v '^ *+' conftest.er1 >conftest.err | |
8971 | rm -f conftest.er1 | |
8972 | cat conftest.err >&5 | |
8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8974 | (exit $ac_status); } && | |
8fb84ecc AC |
8975 | { ac_try='test -z "$ac_c_werror_flag" |
8976 | || test ! -s conftest.err' | |
5464f5a1 NN |
8977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8978 | (eval $ac_try) 2>&5 | |
8979 | ac_status=$? | |
8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8981 | (exit $ac_status); }; } && | |
8982 | { ac_try='test -s conftest.$ac_objext' | |
8983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8984 | (eval $ac_try) 2>&5 | |
8985 | ac_status=$? | |
8986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8987 | (exit $ac_status); }; }; then | |
252b5132 RH |
8988 | ac_cv_header_time=yes |
8989 | else | |
5464f5a1 NN |
8990 | echo "$as_me: failed program was:" >&5 |
8991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8992 | ||
8993 | ac_cv_header_time=no | |
252b5132 | 8994 | fi |
5464f5a1 | 8995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8996 | fi |
5464f5a1 NN |
8997 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
8998 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
6be7c12c | 8999 | if test $ac_cv_header_time = yes; then |
5464f5a1 NN |
9000 | |
9001 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9002 | #define TIME_WITH_SYS_TIME 1 |
5464f5a1 | 9003 | _ACEOF |
252b5132 RH |
9004 | |
9005 | fi | |
9006 | ||
5464f5a1 NN |
9007 | |
9008 | ||
9009 | ||
9010 | ||
9011 | ||
252b5132 | 9012 | ac_header_dirent=no |
5464f5a1 NN |
9013 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
9014 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
9015 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
9016 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
9017 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9019 | else | |
9020 | cat >conftest.$ac_ext <<_ACEOF | |
9021 | /* confdefs.h. */ | |
9022 | _ACEOF | |
9023 | cat confdefs.h >>conftest.$ac_ext | |
9024 | cat >>conftest.$ac_ext <<_ACEOF | |
9025 | /* end confdefs.h. */ | |
252b5132 RH |
9026 | #include <sys/types.h> |
9027 | #include <$ac_hdr> | |
5464f5a1 NN |
9028 | |
9029 | int | |
9030 | main () | |
9031 | { | |
9032 | if ((DIR *) 0) | |
9033 | return 0; | |
9034 | ; | |
9035 | return 0; | |
9036 | } | |
9037 | _ACEOF | |
9038 | rm -f conftest.$ac_objext | |
9039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9040 | (eval $ac_compile) 2>conftest.er1 | |
9041 | ac_status=$? | |
9042 | grep -v '^ *+' conftest.er1 >conftest.err | |
9043 | rm -f conftest.er1 | |
9044 | cat conftest.err >&5 | |
9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9046 | (exit $ac_status); } && | |
8fb84ecc AC |
9047 | { ac_try='test -z "$ac_c_werror_flag" |
9048 | || test ! -s conftest.err' | |
5464f5a1 NN |
9049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9050 | (eval $ac_try) 2>&5 | |
9051 | ac_status=$? | |
9052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9053 | (exit $ac_status); }; } && | |
9054 | { ac_try='test -s conftest.$ac_objext' | |
9055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9056 | (eval $ac_try) 2>&5 | |
9057 | ac_status=$? | |
9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9059 | (exit $ac_status); }; }; then | |
9060 | eval "$as_ac_Header=yes" | |
9061 | else | |
9062 | echo "$as_me: failed program was:" >&5 | |
9063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9064 | ||
9065 | eval "$as_ac_Header=no" | |
9066 | fi | |
9067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9068 | fi | |
9069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9070 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9071 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9072 | cat >>confdefs.h <<_ACEOF | |
9073 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
9074 | _ACEOF | |
9075 | ||
9076 | ac_header_dirent=$ac_hdr; break | |
252b5132 | 9077 | fi |
5464f5a1 | 9078 | |
252b5132 RH |
9079 | done |
9080 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
9081 | if test $ac_header_dirent = dirent.h; then | |
5464f5a1 NN |
9082 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
9083 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9084 | if test "${ac_cv_search_opendir+set}" = set; then | |
9085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9086 | else | |
9087 | ac_func_search_save_LIBS=$LIBS | |
9088 | ac_cv_search_opendir=no | |
9089 | cat >conftest.$ac_ext <<_ACEOF | |
9090 | /* confdefs.h. */ | |
9091 | _ACEOF | |
9092 | cat confdefs.h >>conftest.$ac_ext | |
9093 | cat >>conftest.$ac_ext <<_ACEOF | |
9094 | /* end confdefs.h. */ | |
9095 | ||
252b5132 | 9096 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
9097 | #ifdef __cplusplus |
9098 | extern "C" | |
9099 | #endif | |
252b5132 | 9100 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
9101 | builtin and then its argument prototype would still apply. */ |
9102 | char opendir (); | |
9103 | int | |
9104 | main () | |
9105 | { | |
9106 | opendir (); | |
9107 | ; | |
9108 | return 0; | |
9109 | } | |
9110 | _ACEOF | |
9111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9113 | (eval $ac_link) 2>conftest.er1 | |
9114 | ac_status=$? | |
9115 | grep -v '^ *+' conftest.er1 >conftest.err | |
9116 | rm -f conftest.er1 | |
9117 | cat conftest.err >&5 | |
9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9119 | (exit $ac_status); } && | |
8fb84ecc AC |
9120 | { ac_try='test -z "$ac_c_werror_flag" |
9121 | || test ! -s conftest.err' | |
5464f5a1 NN |
9122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9123 | (eval $ac_try) 2>&5 | |
9124 | ac_status=$? | |
9125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9126 | (exit $ac_status); }; } && | |
9127 | { ac_try='test -s conftest$ac_exeext' | |
9128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9129 | (eval $ac_try) 2>&5 | |
9130 | ac_status=$? | |
9131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9132 | (exit $ac_status); }; }; then | |
9133 | ac_cv_search_opendir="none required" | |
9134 | else | |
9135 | echo "$as_me: failed program was:" >&5 | |
9136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9137 | ||
9138 | fi | |
9139 | rm -f conftest.err conftest.$ac_objext \ | |
9140 | conftest$ac_exeext conftest.$ac_ext | |
9141 | if test "$ac_cv_search_opendir" = no; then | |
9142 | for ac_lib in dir; do | |
9143 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9144 | cat >conftest.$ac_ext <<_ACEOF | |
9145 | /* confdefs.h. */ | |
9146 | _ACEOF | |
9147 | cat confdefs.h >>conftest.$ac_ext | |
9148 | cat >>conftest.$ac_ext <<_ACEOF | |
9149 | /* end confdefs.h. */ | |
6be7c12c | 9150 | |
5464f5a1 NN |
9151 | /* Override any gcc2 internal prototype to avoid an error. */ |
9152 | #ifdef __cplusplus | |
9153 | extern "C" | |
9154 | #endif | |
9155 | /* We use char because int might match the return type of a gcc2 | |
9156 | builtin and then its argument prototype would still apply. */ | |
9157 | char opendir (); | |
9158 | int | |
9159 | main () | |
9160 | { | |
9161 | opendir (); | |
9162 | ; | |
9163 | return 0; | |
9164 | } | |
9165 | _ACEOF | |
9166 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9168 | (eval $ac_link) 2>conftest.er1 | |
9169 | ac_status=$? | |
9170 | grep -v '^ *+' conftest.er1 >conftest.err | |
9171 | rm -f conftest.er1 | |
9172 | cat conftest.err >&5 | |
9173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9174 | (exit $ac_status); } && | |
8fb84ecc AC |
9175 | { ac_try='test -z "$ac_c_werror_flag" |
9176 | || test ! -s conftest.err' | |
5464f5a1 NN |
9177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9178 | (eval $ac_try) 2>&5 | |
9179 | ac_status=$? | |
9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9181 | (exit $ac_status); }; } && | |
9182 | { ac_try='test -s conftest$ac_exeext' | |
9183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9184 | (eval $ac_try) 2>&5 | |
9185 | ac_status=$? | |
9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9187 | (exit $ac_status); }; }; then | |
9188 | ac_cv_search_opendir="-l$ac_lib" | |
9189 | break | |
9190 | else | |
9191 | echo "$as_me: failed program was:" >&5 | |
9192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9193 | ||
9194 | fi | |
9195 | rm -f conftest.err conftest.$ac_objext \ | |
9196 | conftest$ac_exeext conftest.$ac_ext | |
9197 | done | |
6be7c12c | 9198 | fi |
5464f5a1 | 9199 | LIBS=$ac_func_search_save_LIBS |
6be7c12c | 9200 | fi |
5464f5a1 NN |
9201 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
9202 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9203 | if test "$ac_cv_search_opendir" != no; then | |
9204 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9205 | ||
252b5132 RH |
9206 | fi |
9207 | ||
9208 | else | |
5464f5a1 NN |
9209 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
9210 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9211 | if test "${ac_cv_search_opendir+set}" = set; then | |
9212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3baf5d0 | 9213 | else |
5464f5a1 NN |
9214 | ac_func_search_save_LIBS=$LIBS |
9215 | ac_cv_search_opendir=no | |
9216 | cat >conftest.$ac_ext <<_ACEOF | |
9217 | /* confdefs.h. */ | |
9218 | _ACEOF | |
9219 | cat confdefs.h >>conftest.$ac_ext | |
9220 | cat >>conftest.$ac_ext <<_ACEOF | |
9221 | /* end confdefs.h. */ | |
9222 | ||
6be7c12c | 9223 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
9224 | #ifdef __cplusplus |
9225 | extern "C" | |
9226 | #endif | |
6be7c12c | 9227 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
9228 | builtin and then its argument prototype would still apply. */ |
9229 | char opendir (); | |
9230 | int | |
9231 | main () | |
9232 | { | |
9233 | opendir (); | |
9234 | ; | |
9235 | return 0; | |
9236 | } | |
9237 | _ACEOF | |
9238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9240 | (eval $ac_link) 2>conftest.er1 | |
9241 | ac_status=$? | |
9242 | grep -v '^ *+' conftest.er1 >conftest.err | |
9243 | rm -f conftest.er1 | |
9244 | cat conftest.err >&5 | |
9245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9246 | (exit $ac_status); } && | |
8fb84ecc AC |
9247 | { ac_try='test -z "$ac_c_werror_flag" |
9248 | || test ! -s conftest.err' | |
5464f5a1 NN |
9249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9250 | (eval $ac_try) 2>&5 | |
9251 | ac_status=$? | |
9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9253 | (exit $ac_status); }; } && | |
9254 | { ac_try='test -s conftest$ac_exeext' | |
9255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9256 | (eval $ac_try) 2>&5 | |
9257 | ac_status=$? | |
9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9259 | (exit $ac_status); }; }; then | |
9260 | ac_cv_search_opendir="none required" | |
9261 | else | |
9262 | echo "$as_me: failed program was:" >&5 | |
9263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9264 | ||
9265 | fi | |
9266 | rm -f conftest.err conftest.$ac_objext \ | |
9267 | conftest$ac_exeext conftest.$ac_ext | |
9268 | if test "$ac_cv_search_opendir" = no; then | |
9269 | for ac_lib in x; do | |
9270 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9271 | cat >conftest.$ac_ext <<_ACEOF | |
9272 | /* confdefs.h. */ | |
9273 | _ACEOF | |
9274 | cat confdefs.h >>conftest.$ac_ext | |
9275 | cat >>conftest.$ac_ext <<_ACEOF | |
9276 | /* end confdefs.h. */ | |
6be7c12c | 9277 | |
5464f5a1 NN |
9278 | /* Override any gcc2 internal prototype to avoid an error. */ |
9279 | #ifdef __cplusplus | |
9280 | extern "C" | |
9281 | #endif | |
9282 | /* We use char because int might match the return type of a gcc2 | |
9283 | builtin and then its argument prototype would still apply. */ | |
9284 | char opendir (); | |
9285 | int | |
9286 | main () | |
9287 | { | |
9288 | opendir (); | |
9289 | ; | |
9290 | return 0; | |
9291 | } | |
9292 | _ACEOF | |
9293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9295 | (eval $ac_link) 2>conftest.er1 | |
9296 | ac_status=$? | |
9297 | grep -v '^ *+' conftest.er1 >conftest.err | |
9298 | rm -f conftest.er1 | |
9299 | cat conftest.err >&5 | |
9300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9301 | (exit $ac_status); } && | |
8fb84ecc AC |
9302 | { ac_try='test -z "$ac_c_werror_flag" |
9303 | || test ! -s conftest.err' | |
5464f5a1 NN |
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); }; } && | |
9309 | { ac_try='test -s conftest$ac_exeext' | |
9310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9311 | (eval $ac_try) 2>&5 | |
9312 | ac_status=$? | |
9313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9314 | (exit $ac_status); }; }; then | |
9315 | ac_cv_search_opendir="-l$ac_lib" | |
9316 | break | |
9317 | else | |
9318 | echo "$as_me: failed program was:" >&5 | |
9319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9320 | ||
9321 | fi | |
9322 | rm -f conftest.err conftest.$ac_objext \ | |
9323 | conftest$ac_exeext conftest.$ac_ext | |
9324 | done | |
6be7c12c | 9325 | fi |
5464f5a1 | 9326 | LIBS=$ac_func_search_save_LIBS |
6be7c12c | 9327 | fi |
5464f5a1 NN |
9328 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
9329 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9330 | if test "$ac_cv_search_opendir" != no; then | |
9331 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9332 | ||
252b5132 RH |
9333 | fi |
9334 | ||
9335 | fi | |
9336 | ||
5464f5a1 NN |
9337 | |
9338 | ||
9339 | ||
9340 | ||
9341 | ||
9342 | ||
9343 | ||
633fd09f | 9344 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 | 9345 | do |
5464f5a1 NN |
9346 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9347 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9348 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9349 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9351 | else | |
9352 | cat >conftest.$ac_ext <<_ACEOF | |
9353 | /* confdefs.h. */ | |
9354 | _ACEOF | |
9355 | cat confdefs.h >>conftest.$ac_ext | |
9356 | cat >>conftest.$ac_ext <<_ACEOF | |
9357 | /* end confdefs.h. */ | |
9358 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9359 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9360 | #define $ac_func innocuous_$ac_func | |
9361 | ||
252b5132 | 9362 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
9363 | which can conflict with char $ac_func (); below. |
9364 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9365 | <limits.h> exists even on freestanding compilers. */ | |
9366 | ||
9367 | #ifdef __STDC__ | |
9368 | # include <limits.h> | |
9369 | #else | |
9370 | # include <assert.h> | |
9371 | #endif | |
6be7c12c | 9372 | |
5464f5a1 | 9373 | #undef $ac_func |
252b5132 | 9374 | |
5464f5a1 NN |
9375 | /* Override any gcc2 internal prototype to avoid an error. */ |
9376 | #ifdef __cplusplus | |
9377 | extern "C" | |
9378 | { | |
9379 | #endif | |
9380 | /* We use char because int might match the return type of a gcc2 | |
9381 | builtin and then its argument prototype would still apply. */ | |
9382 | char $ac_func (); | |
252b5132 RH |
9383 | /* The GNU C library defines this for functions which it implements |
9384 | to always fail with ENOSYS. Some functions are actually named | |
9385 | something starting with __ and the normal name is an alias. */ | |
9386 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9387 | choke me | |
9388 | #else | |
5464f5a1 NN |
9389 | char (*f) () = $ac_func; |
9390 | #endif | |
9391 | #ifdef __cplusplus | |
9392 | } | |
252b5132 RH |
9393 | #endif |
9394 | ||
5464f5a1 NN |
9395 | int |
9396 | main () | |
9397 | { | |
9398 | return f != $ac_func; | |
9399 | ; | |
9400 | return 0; | |
9401 | } | |
9402 | _ACEOF | |
9403 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9405 | (eval $ac_link) 2>conftest.er1 | |
9406 | ac_status=$? | |
9407 | grep -v '^ *+' conftest.er1 >conftest.err | |
9408 | rm -f conftest.er1 | |
9409 | cat conftest.err >&5 | |
9410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9411 | (exit $ac_status); } && | |
8fb84ecc AC |
9412 | { ac_try='test -z "$ac_c_werror_flag" |
9413 | || test ! -s conftest.err' | |
5464f5a1 NN |
9414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9415 | (eval $ac_try) 2>&5 | |
9416 | ac_status=$? | |
9417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9418 | (exit $ac_status); }; } && | |
9419 | { ac_try='test -s conftest$ac_exeext' | |
9420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9421 | (eval $ac_try) 2>&5 | |
9422 | ac_status=$? | |
9423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9424 | (exit $ac_status); }; }; then | |
9425 | eval "$as_ac_var=yes" | |
9426 | else | |
9427 | echo "$as_me: failed program was:" >&5 | |
9428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9429 | ||
9430 | eval "$as_ac_var=no" | |
9431 | fi | |
9432 | rm -f conftest.err conftest.$ac_objext \ | |
9433 | conftest$ac_exeext conftest.$ac_ext | |
9434 | fi | |
9435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9436 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9437 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9438 | cat >>confdefs.h <<_ACEOF | |
9439 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9440 | _ACEOF | |
252b5132 | 9441 | |
252b5132 RH |
9442 | fi |
9443 | done | |
9444 | ||
5464f5a1 | 9445 | |
49c97a80 ILT |
9446 | for ac_func in strtoull |
9447 | do | |
5464f5a1 NN |
9448 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9449 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9450 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9451 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9453 | else | |
9454 | cat >conftest.$ac_ext <<_ACEOF | |
9455 | /* confdefs.h. */ | |
9456 | _ACEOF | |
9457 | cat confdefs.h >>conftest.$ac_ext | |
9458 | cat >>conftest.$ac_ext <<_ACEOF | |
9459 | /* end confdefs.h. */ | |
9460 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9461 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9462 | #define $ac_func innocuous_$ac_func | |
9463 | ||
49c97a80 | 9464 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
9465 | which can conflict with char $ac_func (); below. |
9466 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9467 | <limits.h> exists even on freestanding compilers. */ | |
9468 | ||
9469 | #ifdef __STDC__ | |
9470 | # include <limits.h> | |
9471 | #else | |
9472 | # include <assert.h> | |
9473 | #endif | |
49c97a80 | 9474 | |
5464f5a1 | 9475 | #undef $ac_func |
49c97a80 | 9476 | |
5464f5a1 NN |
9477 | /* Override any gcc2 internal prototype to avoid an error. */ |
9478 | #ifdef __cplusplus | |
9479 | extern "C" | |
9480 | { | |
9481 | #endif | |
9482 | /* We use char because int might match the return type of a gcc2 | |
9483 | builtin and then its argument prototype would still apply. */ | |
9484 | char $ac_func (); | |
49c97a80 ILT |
9485 | /* The GNU C library defines this for functions which it implements |
9486 | to always fail with ENOSYS. Some functions are actually named | |
9487 | something starting with __ and the normal name is an alias. */ | |
9488 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9489 | choke me | |
9490 | #else | |
5464f5a1 NN |
9491 | char (*f) () = $ac_func; |
9492 | #endif | |
9493 | #ifdef __cplusplus | |
9494 | } | |
49c97a80 ILT |
9495 | #endif |
9496 | ||
5464f5a1 NN |
9497 | int |
9498 | main () | |
9499 | { | |
9500 | return f != $ac_func; | |
9501 | ; | |
9502 | return 0; | |
9503 | } | |
9504 | _ACEOF | |
9505 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9507 | (eval $ac_link) 2>conftest.er1 | |
9508 | ac_status=$? | |
9509 | grep -v '^ *+' conftest.er1 >conftest.err | |
9510 | rm -f conftest.er1 | |
9511 | cat conftest.err >&5 | |
9512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9513 | (exit $ac_status); } && | |
8fb84ecc AC |
9514 | { ac_try='test -z "$ac_c_werror_flag" |
9515 | || test ! -s conftest.err' | |
5464f5a1 NN |
9516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9517 | (eval $ac_try) 2>&5 | |
9518 | ac_status=$? | |
9519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9520 | (exit $ac_status); }; } && | |
9521 | { ac_try='test -s conftest$ac_exeext' | |
9522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9523 | (eval $ac_try) 2>&5 | |
9524 | ac_status=$? | |
9525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9526 | (exit $ac_status); }; }; then | |
9527 | eval "$as_ac_var=yes" | |
9528 | else | |
9529 | echo "$as_me: failed program was:" >&5 | |
9530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9531 | ||
9532 | eval "$as_ac_var=no" | |
9533 | fi | |
9534 | rm -f conftest.err conftest.$ac_objext \ | |
9535 | conftest$ac_exeext conftest.$ac_ext | |
9536 | fi | |
9537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9538 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9539 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9540 | cat >>confdefs.h <<_ACEOF | |
9541 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9542 | _ACEOF | |
49c97a80 | 9543 | |
49c97a80 ILT |
9544 | fi |
9545 | done | |
9546 | ||
6be7c12c | 9547 | |
2e9ebff5 JG |
9548 | echo "$as_me:$LINENO: checking whether basename is declared" >&5 |
9549 | echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 | |
9550 | if test "${ac_cv_have_decl_basename+set}" = set; then | |
9551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9552 | else | |
9553 | cat >conftest.$ac_ext <<_ACEOF | |
9554 | /* confdefs.h. */ | |
9555 | _ACEOF | |
9556 | cat confdefs.h >>conftest.$ac_ext | |
9557 | cat >>conftest.$ac_ext <<_ACEOF | |
9558 | /* end confdefs.h. */ | |
9559 | #include "sysdep.h" | |
9560 | ||
9561 | int | |
9562 | main () | |
9563 | { | |
9564 | #ifndef basename | |
9565 | char *p = (char *) basename; | |
9566 | #endif | |
9567 | ||
9568 | ; | |
9569 | return 0; | |
9570 | } | |
9571 | _ACEOF | |
9572 | rm -f conftest.$ac_objext | |
9573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9574 | (eval $ac_compile) 2>conftest.er1 | |
9575 | ac_status=$? | |
9576 | grep -v '^ *+' conftest.er1 >conftest.err | |
9577 | rm -f conftest.er1 | |
9578 | cat conftest.err >&5 | |
9579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9580 | (exit $ac_status); } && | |
9581 | { ac_try='test -z "$ac_c_werror_flag" | |
9582 | || test ! -s conftest.err' | |
9583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9584 | (eval $ac_try) 2>&5 | |
9585 | ac_status=$? | |
9586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9587 | (exit $ac_status); }; } && | |
9588 | { ac_try='test -s conftest.$ac_objext' | |
9589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9590 | (eval $ac_try) 2>&5 | |
9591 | ac_status=$? | |
9592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9593 | (exit $ac_status); }; }; then | |
9594 | ac_cv_have_decl_basename=yes | |
9595 | else | |
9596 | echo "$as_me: failed program was:" >&5 | |
9597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9598 | ||
9599 | ac_cv_have_decl_basename=no | |
9600 | fi | |
9601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9602 | fi | |
9603 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 | |
9604 | echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 | |
9605 | if test $ac_cv_have_decl_basename = yes; then | |
9606 | ||
9607 | cat >>confdefs.h <<_ACEOF | |
9608 | #define HAVE_DECL_BASENAME 1 | |
9609 | _ACEOF | |
9610 | ||
9611 | ||
9612 | else | |
9613 | cat >>confdefs.h <<_ACEOF | |
9614 | #define HAVE_DECL_BASENAME 0 | |
9615 | _ACEOF | |
9616 | ||
9617 | ||
9618 | fi | |
9619 | ||
9620 | ||
9621 | ||
6be7c12c | 9622 | |
252b5132 | 9623 | case "${host}" in |
855b0be7 | 9624 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
5464f5a1 NN |
9625 | |
9626 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9627 | #define USE_BINARY_FOPEN 1 |
5464f5a1 | 9628 | _ACEOF |
252b5132 RH |
9629 | ;; |
9630 | esac | |
9631 | ||
efa9bda4 AL |
9632 | echo "$as_me:$LINENO: checking whether ffs must be declared" >&5 |
9633 | echo $ECHO_N "checking whether ffs must be declared... $ECHO_C" >&6 | |
9634 | if test "${bfd_cv_decl_needed_ffs+set}" = set; then | |
5464f5a1 | 9635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 9636 | else |
5464f5a1 NN |
9637 | cat >conftest.$ac_ext <<_ACEOF |
9638 | /* confdefs.h. */ | |
9639 | _ACEOF | |
9640 | cat confdefs.h >>conftest.$ac_ext | |
9641 | cat >>conftest.$ac_ext <<_ACEOF | |
9642 | /* end confdefs.h. */ | |
252b5132 RH |
9643 | |
9644 | #include <stdio.h> | |
9645 | #ifdef HAVE_STRING_H | |
9646 | #include <string.h> | |
9647 | #else | |
9648 | #ifdef HAVE_STRINGS_H | |
9649 | #include <strings.h> | |
9650 | #endif | |
9651 | #endif | |
9652 | #ifdef HAVE_STDLIB_H | |
9653 | #include <stdlib.h> | |
9654 | #endif | |
9655 | #ifdef HAVE_UNISTD_H | |
9656 | #include <unistd.h> | |
9657 | #endif | |
5464f5a1 NN |
9658 | int |
9659 | main () | |
9660 | { | |
efa9bda4 | 9661 | char *(*pfn) = (char *(*)) ffs |
5464f5a1 NN |
9662 | ; |
9663 | return 0; | |
9664 | } | |
9665 | _ACEOF | |
9666 | rm -f conftest.$ac_objext | |
9667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9668 | (eval $ac_compile) 2>conftest.er1 | |
9669 | ac_status=$? | |
9670 | grep -v '^ *+' conftest.er1 >conftest.err | |
9671 | rm -f conftest.er1 | |
9672 | cat conftest.err >&5 | |
9673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9674 | (exit $ac_status); } && | |
8fb84ecc AC |
9675 | { ac_try='test -z "$ac_c_werror_flag" |
9676 | || test ! -s conftest.err' | |
5464f5a1 NN |
9677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9678 | (eval $ac_try) 2>&5 | |
9679 | ac_status=$? | |
9680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9681 | (exit $ac_status); }; } && | |
9682 | { ac_try='test -s conftest.$ac_objext' | |
9683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9684 | (eval $ac_try) 2>&5 | |
9685 | ac_status=$? | |
9686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9687 | (exit $ac_status); }; }; then | |
efa9bda4 | 9688 | bfd_cv_decl_needed_ffs=no |
252b5132 | 9689 | else |
5464f5a1 NN |
9690 | echo "$as_me: failed program was:" >&5 |
9691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9692 | ||
efa9bda4 | 9693 | bfd_cv_decl_needed_ffs=yes |
252b5132 | 9694 | fi |
5464f5a1 | 9695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9696 | fi |
9697 | ||
efa9bda4 AL |
9698 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_ffs" >&5 |
9699 | echo "${ECHO_T}$bfd_cv_decl_needed_ffs" >&6 | |
9700 | if test $bfd_cv_decl_needed_ffs = yes; then | |
5464f5a1 NN |
9701 | |
9702 | cat >>confdefs.h <<\_ACEOF | |
efa9bda4 | 9703 | #define NEED_DECLARATION_FFS 1 |
5464f5a1 | 9704 | _ACEOF |
252b5132 RH |
9705 | |
9706 | fi | |
9707 | ||
efa9bda4 AL |
9708 | echo "$as_me:$LINENO: checking whether free must be declared" >&5 |
9709 | echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6 | |
9710 | if test "${bfd_cv_decl_needed_free+set}" = set; then | |
5464f5a1 | 9711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 9712 | else |
5464f5a1 NN |
9713 | cat >conftest.$ac_ext <<_ACEOF |
9714 | /* confdefs.h. */ | |
9715 | _ACEOF | |
9716 | cat confdefs.h >>conftest.$ac_ext | |
9717 | cat >>conftest.$ac_ext <<_ACEOF | |
9718 | /* end confdefs.h. */ | |
252b5132 RH |
9719 | |
9720 | #include <stdio.h> | |
9721 | #ifdef HAVE_STRING_H | |
9722 | #include <string.h> | |
9723 | #else | |
9724 | #ifdef HAVE_STRINGS_H | |
9725 | #include <strings.h> | |
9726 | #endif | |
9727 | #endif | |
9728 | #ifdef HAVE_STDLIB_H | |
9729 | #include <stdlib.h> | |
9730 | #endif | |
9731 | #ifdef HAVE_UNISTD_H | |
9732 | #include <unistd.h> | |
9733 | #endif | |
5464f5a1 NN |
9734 | int |
9735 | main () | |
9736 | { | |
efa9bda4 | 9737 | char *(*pfn) = (char *(*)) free |
5464f5a1 NN |
9738 | ; |
9739 | return 0; | |
9740 | } | |
9741 | _ACEOF | |
9742 | rm -f conftest.$ac_objext | |
9743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9744 | (eval $ac_compile) 2>conftest.er1 | |
9745 | ac_status=$? | |
9746 | grep -v '^ *+' conftest.er1 >conftest.err | |
9747 | rm -f conftest.er1 | |
9748 | cat conftest.err >&5 | |
9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9750 | (exit $ac_status); } && | |
8fb84ecc AC |
9751 | { ac_try='test -z "$ac_c_werror_flag" |
9752 | || test ! -s conftest.err' | |
5464f5a1 NN |
9753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9754 | (eval $ac_try) 2>&5 | |
9755 | ac_status=$? | |
9756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9757 | (exit $ac_status); }; } && | |
9758 | { ac_try='test -s conftest.$ac_objext' | |
9759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9760 | (eval $ac_try) 2>&5 | |
9761 | ac_status=$? | |
9762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9763 | (exit $ac_status); }; }; then | |
efa9bda4 | 9764 | bfd_cv_decl_needed_free=no |
252b5132 | 9765 | else |
5464f5a1 NN |
9766 | echo "$as_me: failed program was:" >&5 |
9767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9768 | ||
efa9bda4 | 9769 | bfd_cv_decl_needed_free=yes |
252b5132 | 9770 | fi |
5464f5a1 | 9771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9772 | fi |
9773 | ||
efa9bda4 AL |
9774 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5 |
9775 | echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6 | |
9776 | if test $bfd_cv_decl_needed_free = yes; then | |
5464f5a1 NN |
9777 | |
9778 | cat >>confdefs.h <<\_ACEOF | |
efa9bda4 | 9779 | #define NEED_DECLARATION_FREE 1 |
5464f5a1 | 9780 | _ACEOF |
252b5132 RH |
9781 | |
9782 | fi | |
9783 | ||
efa9bda4 AL |
9784 | echo "$as_me:$LINENO: checking whether getenv must be declared" >&5 |
9785 | echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6 | |
9786 | if test "${bfd_cv_decl_needed_getenv+set}" = set; then | |
5464f5a1 | 9787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 9788 | else |
5464f5a1 NN |
9789 | cat >conftest.$ac_ext <<_ACEOF |
9790 | /* confdefs.h. */ | |
9791 | _ACEOF | |
9792 | cat confdefs.h >>conftest.$ac_ext | |
9793 | cat >>conftest.$ac_ext <<_ACEOF | |
9794 | /* end confdefs.h. */ | |
252b5132 RH |
9795 | |
9796 | #include <stdio.h> | |
9797 | #ifdef HAVE_STRING_H | |
9798 | #include <string.h> | |
9799 | #else | |
9800 | #ifdef HAVE_STRINGS_H | |
9801 | #include <strings.h> | |
9802 | #endif | |
9803 | #endif | |
9804 | #ifdef HAVE_STDLIB_H | |
9805 | #include <stdlib.h> | |
9806 | #endif | |
9807 | #ifdef HAVE_UNISTD_H | |
9808 | #include <unistd.h> | |
9809 | #endif | |
5464f5a1 NN |
9810 | int |
9811 | main () | |
9812 | { | |
efa9bda4 | 9813 | char *(*pfn) = (char *(*)) getenv |
5464f5a1 NN |
9814 | ; |
9815 | return 0; | |
9816 | } | |
9817 | _ACEOF | |
9818 | rm -f conftest.$ac_objext | |
9819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9820 | (eval $ac_compile) 2>conftest.er1 | |
9821 | ac_status=$? | |
9822 | grep -v '^ *+' conftest.er1 >conftest.err | |
9823 | rm -f conftest.er1 | |
9824 | cat conftest.err >&5 | |
9825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9826 | (exit $ac_status); } && | |
8fb84ecc AC |
9827 | { ac_try='test -z "$ac_c_werror_flag" |
9828 | || test ! -s conftest.err' | |
5464f5a1 NN |
9829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9830 | (eval $ac_try) 2>&5 | |
9831 | ac_status=$? | |
9832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9833 | (exit $ac_status); }; } && | |
9834 | { ac_try='test -s conftest.$ac_objext' | |
9835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9836 | (eval $ac_try) 2>&5 | |
9837 | ac_status=$? | |
9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9839 | (exit $ac_status); }; }; then | |
efa9bda4 | 9840 | bfd_cv_decl_needed_getenv=no |
252b5132 | 9841 | else |
5464f5a1 NN |
9842 | echo "$as_me: failed program was:" >&5 |
9843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9844 | ||
efa9bda4 | 9845 | bfd_cv_decl_needed_getenv=yes |
252b5132 | 9846 | fi |
5464f5a1 | 9847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9848 | fi |
9849 | ||
efa9bda4 AL |
9850 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5 |
9851 | echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6 | |
9852 | if test $bfd_cv_decl_needed_getenv = yes; then | |
5464f5a1 NN |
9853 | |
9854 | cat >>confdefs.h <<\_ACEOF | |
efa9bda4 | 9855 | #define NEED_DECLARATION_GETENV 1 |
5464f5a1 | 9856 | _ACEOF |
252b5132 RH |
9857 | |
9858 | fi | |
9859 | ||
efa9bda4 AL |
9860 | echo "$as_me:$LINENO: checking whether malloc must be declared" >&5 |
9861 | echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6 | |
9862 | if test "${bfd_cv_decl_needed_malloc+set}" = set; then | |
5464f5a1 | 9863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 9864 | else |
5464f5a1 NN |
9865 | cat >conftest.$ac_ext <<_ACEOF |
9866 | /* confdefs.h. */ | |
9867 | _ACEOF | |
9868 | cat confdefs.h >>conftest.$ac_ext | |
9869 | cat >>conftest.$ac_ext <<_ACEOF | |
9870 | /* end confdefs.h. */ | |
252b5132 RH |
9871 | |
9872 | #include <stdio.h> | |
9873 | #ifdef HAVE_STRING_H | |
9874 | #include <string.h> | |
9875 | #else | |
9876 | #ifdef HAVE_STRINGS_H | |
9877 | #include <strings.h> | |
9878 | #endif | |
9879 | #endif | |
9880 | #ifdef HAVE_STDLIB_H | |
9881 | #include <stdlib.h> | |
9882 | #endif | |
9883 | #ifdef HAVE_UNISTD_H | |
9884 | #include <unistd.h> | |
9885 | #endif | |
5464f5a1 NN |
9886 | int |
9887 | main () | |
9888 | { | |
efa9bda4 | 9889 | char *(*pfn) = (char *(*)) malloc |
5464f5a1 NN |
9890 | ; |
9891 | return 0; | |
9892 | } | |
9893 | _ACEOF | |
9894 | rm -f conftest.$ac_objext | |
9895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9896 | (eval $ac_compile) 2>conftest.er1 | |
9897 | ac_status=$? | |
9898 | grep -v '^ *+' conftest.er1 >conftest.err | |
9899 | rm -f conftest.er1 | |
9900 | cat conftest.err >&5 | |
9901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9902 | (exit $ac_status); } && | |
8fb84ecc AC |
9903 | { ac_try='test -z "$ac_c_werror_flag" |
9904 | || test ! -s conftest.err' | |
5464f5a1 NN |
9905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9906 | (eval $ac_try) 2>&5 | |
9907 | ac_status=$? | |
9908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9909 | (exit $ac_status); }; } && | |
9910 | { ac_try='test -s conftest.$ac_objext' | |
9911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9912 | (eval $ac_try) 2>&5 | |
9913 | ac_status=$? | |
9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9915 | (exit $ac_status); }; }; then | |
efa9bda4 | 9916 | bfd_cv_decl_needed_malloc=no |
252b5132 | 9917 | else |
5464f5a1 NN |
9918 | echo "$as_me: failed program was:" >&5 |
9919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9920 | ||
efa9bda4 | 9921 | bfd_cv_decl_needed_malloc=yes |
252b5132 | 9922 | fi |
5464f5a1 | 9923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9924 | fi |
9925 | ||
efa9bda4 AL |
9926 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5 |
9927 | echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6 | |
9928 | if test $bfd_cv_decl_needed_malloc = yes; then | |
5464f5a1 NN |
9929 | |
9930 | cat >>confdefs.h <<\_ACEOF | |
efa9bda4 | 9931 | #define NEED_DECLARATION_MALLOC 1 |
5464f5a1 | 9932 | _ACEOF |
252b5132 RH |
9933 | |
9934 | fi | |
9935 | ||
efa9bda4 AL |
9936 | echo "$as_me:$LINENO: checking whether realloc must be declared" >&5 |
9937 | echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6 | |
9938 | if test "${bfd_cv_decl_needed_realloc+set}" = set; then | |
5464f5a1 | 9939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 9940 | else |
5464f5a1 NN |
9941 | cat >conftest.$ac_ext <<_ACEOF |
9942 | /* confdefs.h. */ | |
9943 | _ACEOF | |
9944 | cat confdefs.h >>conftest.$ac_ext | |
9945 | cat >>conftest.$ac_ext <<_ACEOF | |
9946 | /* end confdefs.h. */ | |
252b5132 RH |
9947 | |
9948 | #include <stdio.h> | |
9949 | #ifdef HAVE_STRING_H | |
9950 | #include <string.h> | |
9951 | #else | |
9952 | #ifdef HAVE_STRINGS_H | |
9953 | #include <strings.h> | |
9954 | #endif | |
9955 | #endif | |
9956 | #ifdef HAVE_STDLIB_H | |
9957 | #include <stdlib.h> | |
9958 | #endif | |
9959 | #ifdef HAVE_UNISTD_H | |
9960 | #include <unistd.h> | |
9961 | #endif | |
5464f5a1 NN |
9962 | int |
9963 | main () | |
9964 | { | |
efa9bda4 | 9965 | char *(*pfn) = (char *(*)) realloc |
5464f5a1 NN |
9966 | ; |
9967 | return 0; | |
9968 | } | |
9969 | _ACEOF | |
9970 | rm -f conftest.$ac_objext | |
9971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9972 | (eval $ac_compile) 2>conftest.er1 | |
9973 | ac_status=$? | |
9974 | grep -v '^ *+' conftest.er1 >conftest.err | |
9975 | rm -f conftest.er1 | |
9976 | cat conftest.err >&5 | |
9977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9978 | (exit $ac_status); } && | |
8fb84ecc AC |
9979 | { ac_try='test -z "$ac_c_werror_flag" |
9980 | || test ! -s conftest.err' | |
5464f5a1 NN |
9981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9982 | (eval $ac_try) 2>&5 | |
9983 | ac_status=$? | |
9984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9985 | (exit $ac_status); }; } && | |
9986 | { ac_try='test -s conftest.$ac_objext' | |
9987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9988 | (eval $ac_try) 2>&5 | |
9989 | ac_status=$? | |
9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9991 | (exit $ac_status); }; }; then | |
efa9bda4 | 9992 | bfd_cv_decl_needed_realloc=no |
252b5132 | 9993 | else |
5464f5a1 NN |
9994 | echo "$as_me: failed program was:" >&5 |
9995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9996 | ||
efa9bda4 | 9997 | bfd_cv_decl_needed_realloc=yes |
252b5132 | 9998 | fi |
5464f5a1 | 9999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10000 | fi |
10001 | ||
efa9bda4 AL |
10002 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5 |
10003 | echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6 | |
10004 | if test $bfd_cv_decl_needed_realloc = yes; then | |
5464f5a1 NN |
10005 | |
10006 | cat >>confdefs.h <<\_ACEOF | |
efa9bda4 AL |
10007 | #define NEED_DECLARATION_REALLOC 1 |
10008 | _ACEOF | |
10009 | ||
10010 | fi | |
10011 | ||
10012 | echo "$as_me:$LINENO: checking whether strstr must be declared" >&5 | |
10013 | echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6 | |
10014 | if test "${bfd_cv_decl_needed_strstr+set}" = set; then | |
10015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10016 | else | |
10017 | cat >conftest.$ac_ext <<_ACEOF | |
10018 | /* confdefs.h. */ | |
10019 | _ACEOF | |
10020 | cat confdefs.h >>conftest.$ac_ext | |
10021 | cat >>conftest.$ac_ext <<_ACEOF | |
10022 | /* end confdefs.h. */ | |
10023 | ||
10024 | #include <stdio.h> | |
10025 | #ifdef HAVE_STRING_H | |
10026 | #include <string.h> | |
10027 | #else | |
10028 | #ifdef HAVE_STRINGS_H | |
10029 | #include <strings.h> | |
10030 | #endif | |
10031 | #endif | |
10032 | #ifdef HAVE_STDLIB_H | |
10033 | #include <stdlib.h> | |
10034 | #endif | |
10035 | #ifdef HAVE_UNISTD_H | |
10036 | #include <unistd.h> | |
10037 | #endif | |
10038 | int | |
10039 | main () | |
10040 | { | |
10041 | char *(*pfn) = (char *(*)) strstr | |
10042 | ; | |
10043 | return 0; | |
10044 | } | |
10045 | _ACEOF | |
10046 | rm -f conftest.$ac_objext | |
10047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10048 | (eval $ac_compile) 2>conftest.er1 | |
10049 | ac_status=$? | |
10050 | grep -v '^ *+' conftest.er1 >conftest.err | |
10051 | rm -f conftest.er1 | |
10052 | cat conftest.err >&5 | |
10053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10054 | (exit $ac_status); } && | |
10055 | { ac_try='test -z "$ac_c_werror_flag" | |
10056 | || test ! -s conftest.err' | |
10057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10058 | (eval $ac_try) 2>&5 | |
10059 | ac_status=$? | |
10060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10061 | (exit $ac_status); }; } && | |
10062 | { ac_try='test -s conftest.$ac_objext' | |
10063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10064 | (eval $ac_try) 2>&5 | |
10065 | ac_status=$? | |
10066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10067 | (exit $ac_status); }; }; then | |
10068 | bfd_cv_decl_needed_strstr=no | |
10069 | else | |
10070 | echo "$as_me: failed program was:" >&5 | |
10071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10072 | ||
10073 | bfd_cv_decl_needed_strstr=yes | |
10074 | fi | |
10075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10076 | fi | |
10077 | ||
10078 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5 | |
10079 | echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6 | |
10080 | if test $bfd_cv_decl_needed_strstr = yes; then | |
10081 | ||
10082 | cat >>confdefs.h <<\_ACEOF | |
10083 | #define NEED_DECLARATION_STRSTR 1 | |
5464f5a1 | 10084 | _ACEOF |
252b5132 RH |
10085 | |
10086 | fi | |
10087 | ||
6be7c12c | 10088 | |
252b5132 RH |
10089 | # If we are configured native, pick a core file support file. |
10090 | COREFILE= | |
10091 | COREFLAG= | |
10092 | TRAD_HEADER= | |
10093 | if test "${target}" = "${host}"; then | |
10094 | case "${host}" in | |
13dfd2d0 | 10095 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
46d59bfa DB |
10096 | COREFILE='' |
10097 | ;; | |
ed84e695 | 10098 | alpha*-*-linux-*) |
252b5132 RH |
10099 | COREFILE=trad-core.lo |
10100 | TRAD_HEADER='"hosts/alphalinux.h"' | |
10101 | ;; | |
690cc98b NC |
10102 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
10103 | COREFILE=netbsd-core.lo | |
10104 | ;; | |
252b5132 | 10105 | alpha*-*-*) COREFILE=osf-core.lo ;; |
13dfd2d0 NC |
10106 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
10107 | COREFILE='' ;; | |
61d0bc33 | 10108 | arm-*-netbsd*) COREFILE=netbsd-core.lo ;; |
252b5132 RH |
10109 | arm-*-riscix) COREFILE=trad-core.lo ;; |
10110 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
10111 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
10112 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
10113 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
10114 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
10115 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
10116 | COREFILE=netbsd-core.lo | |
10117 | ;; | |
10118 | ||
dc810e39 | 10119 | i370-*-*) |
5b93d8bb AM |
10120 | COREFILE=trad-core.lo |
10121 | TRAD_HEADER='"hosts/i370linux.h"' | |
10122 | ;; | |
10123 | ||
80c7c40a | 10124 | i[3-7]86-sequent-bsd*) |
5b93d8bb | 10125 | COREFILE=trad-core.lo |
252b5132 RH |
10126 | TRAD_HEADER='"hosts/symmetry.h"' |
10127 | ;; | |
80c7c40a NC |
10128 | i[3-7]86-sequent-sysv4*) ;; |
10129 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
10130 | COREFILE=trad-core.lo |
10131 | TRAD_HEADER='"hosts/symmetry.h"' | |
10132 | ;; | |
80c7c40a | 10133 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
10134 | COREFILE= |
10135 | ;; | |
d2bef492 | 10136 | i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*) |
252b5132 RH |
10137 | COREFILE=trad-core.lo |
10138 | TRAD_HEADER='"hosts/i386bsd.h"' | |
10139 | ;; | |
13dfd2d0 | 10140 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) |
d4af9775 DB |
10141 | COREFILE='' |
10142 | TRAD_HEADER='"hosts/i386bsd.h"' | |
10143 | ;; | |
4615568e | 10144 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
10145 | COREFILE=netbsd-core.lo |
10146 | ;; | |
80c7c40a | 10147 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
10148 | COREFILE=trad-core.lo |
10149 | TRAD_HEADER='"hosts/esix.h"' | |
10150 | ;; | |
80c7c40a | 10151 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
10152 | COREFILE=sco5-core.lo |
10153 | ;; | |
80c7c40a | 10154 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
10155 | COREFILE=trad-core.lo |
10156 | TRAD_HEADER='"hosts/i386sco.h"' | |
10157 | ;; | |
80c7c40a | 10158 | i[3-7]86-*-mach3*) |
252b5132 RH |
10159 | COREFILE=trad-core.lo |
10160 | TRAD_HEADER='"hosts/i386mach3.h"' | |
10161 | ;; | |
ed84e695 | 10162 | i[3-7]86-*-linux-*) |
252b5132 RH |
10163 | COREFILE=trad-core.lo |
10164 | TRAD_HEADER='"hosts/i386linux.h"' | |
10165 | ;; | |
80c7c40a NC |
10166 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
10167 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
10168 | i860-*-mach3* | i860-*-osf1*) |
10169 | COREFILE=trad-core.lo | |
10170 | TRAD_HEADER='"hosts/i860mach3.h"' | |
10171 | ;; | |
252b5132 RH |
10172 | mips-*-netbsd* | mips*-*-openbsd*) |
10173 | COREFILE=netbsd-core.lo | |
10174 | ;; | |
10175 | mips-dec-*) | |
10176 | COREFILE=trad-core.lo | |
10177 | TRAD_HEADER='"hosts/decstation.h"' | |
10178 | ;; | |
10179 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
10180 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
10181 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
10182 | mips-*-sysv4*) ;; |
10183 | mips-*-sysv* | mips-*-riscos*) | |
10184 | COREFILE=trad-core.lo | |
10185 | TRAD_HEADER='"hosts/riscos.h"' | |
10186 | ;; | |
10187 | mips-sony-bsd*) | |
10188 | COREFILE=trad-core.lo | |
10189 | TRAD_HEADER='"hosts/news-mips.h"' | |
10190 | ;; | |
10191 | m68*-bull*-sysv*) | |
10192 | COREFILE=trad-core.lo | |
10193 | TRAD_HEADER='"hosts/dpx2.h"' | |
10194 | ;; | |
10195 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
10196 | m68*-hp-bsd*) | |
10197 | COREFILE=trad-core.lo | |
10198 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
10199 | ;; | |
ed84e695 | 10200 | m68*-*-linux-*) |
252b5132 RH |
10201 | COREFILE=trad-core.lo |
10202 | TRAD_HEADER='"hosts/m68klinux.h"' | |
10203 | ;; | |
10204 | m68*-motorola-sysv*) | |
10205 | COREFILE=trad-core.lo | |
10206 | TRAD_HEADER='"hosts/delta68.h"' | |
10207 | ;; | |
10208 | m68*-sony-*) | |
10209 | COREFILE=trad-core.lo | |
10210 | TRAD_HEADER='"hosts/news.h"' | |
10211 | ;; | |
10212 | m68*-*-netbsd* | m68*-*-openbsd*) | |
10213 | COREFILE=netbsd-core.lo | |
10214 | ;; | |
10215 | m68*-apple-aux*) | |
10216 | COREFILE=trad-core.lo | |
10217 | TRAD_HEADER='"hosts/m68kaux.h"' | |
10218 | ;; | |
eb1e0e80 NC |
10219 | m88*-*-sysv4*) |
10220 | ;; | |
10221 | m88*-motorola-sysv*) | |
10222 | COREFILE=ptrace-core.lo | |
10223 | ;; | |
252b5132 RH |
10224 | m88*-*-mach3*) |
10225 | COREFILE=trad-core.lo | |
10226 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
10227 | ;; | |
c6f8758f NC |
10228 | m88*-*-openbsd*) |
10229 | COREFILE=netbsd-core.lo | |
10230 | ;; | |
252b5132 RH |
10231 | ns32k-pc532-mach) |
10232 | COREFILE=trad-core.lo | |
10233 | TRAD_HEADER='"hosts/pc532mach.h"' | |
10234 | ;; | |
10235 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
10236 | COREFILE=netbsd-core.lo | |
10237 | ;; | |
eb1e0e80 NC |
10238 | rs6000-*-lynx*) |
10239 | COREFILE=lynx-core.lo | |
10240 | ;; | |
10241 | rs6000-*-aix5.* | powerpc-*-aix5.*) | |
10242 | COREFILE=rs6000-core.lo | |
10243 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
10244 | ;; | |
83954261 | 10245 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
10246 | COREFILE=rs6000-core.lo |
10247 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
10248 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
10249 | # have c_impl as a member of struct core_dumpx | |
5464f5a1 NN |
10250 | echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5 |
10251 | echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6 | |
10252 | cat >conftest.$ac_ext <<_ACEOF | |
10253 | /* confdefs.h. */ | |
10254 | _ACEOF | |
10255 | cat confdefs.h >>conftest.$ac_ext | |
10256 | cat >>conftest.$ac_ext <<_ACEOF | |
10257 | /* end confdefs.h. */ | |
83954261 | 10258 | #include <core.h> |
5464f5a1 NN |
10259 | int |
10260 | main () | |
10261 | { | |
83954261 | 10262 | struct core_dumpx c; c.c_impl = 0; |
5464f5a1 NN |
10263 | ; |
10264 | return 0; | |
10265 | } | |
10266 | _ACEOF | |
10267 | rm -f conftest.$ac_objext | |
10268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10269 | (eval $ac_compile) 2>conftest.er1 | |
10270 | ac_status=$? | |
10271 | grep -v '^ *+' conftest.er1 >conftest.err | |
10272 | rm -f conftest.er1 | |
10273 | cat conftest.err >&5 | |
10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10275 | (exit $ac_status); } && | |
8fb84ecc AC |
10276 | { ac_try='test -z "$ac_c_werror_flag" |
10277 | || test ! -s conftest.err' | |
5464f5a1 NN |
10278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10279 | (eval $ac_try) 2>&5 | |
10280 | ac_status=$? | |
10281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10282 | (exit $ac_status); }; } && | |
10283 | { ac_try='test -s conftest.$ac_objext' | |
10284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10285 | (eval $ac_try) 2>&5 | |
10286 | ac_status=$? | |
10287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10288 | (exit $ac_status); }; }; then | |
10289 | ||
10290 | cat >>confdefs.h <<\_ACEOF | |
83954261 | 10291 | #define HAVE_ST_C_IMPL 1 |
5464f5a1 | 10292 | _ACEOF |
83954261 | 10293 | |
5464f5a1 NN |
10294 | echo "$as_me:$LINENO: result: yes" >&5 |
10295 | echo "${ECHO_T}yes" >&6 | |
83954261 | 10296 | else |
5464f5a1 NN |
10297 | echo "$as_me: failed program was:" >&5 |
10298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10299 | ||
10300 | echo "$as_me:$LINENO: result: no" >&5 | |
10301 | echo "${ECHO_T}no" >&6 | |
83954261 | 10302 | fi |
5464f5a1 | 10303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
653f71ca | 10304 | ;; |
252b5132 RH |
10305 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
10306 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
10307 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
10308 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
10309 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
10310 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
10311 | COREFILE='' ;; | |
252b5132 | 10312 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 10313 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 10314 | s390*-*-*) COREFILE=trad-core.lo ;; |
8d05742f | 10315 | sh*-*-netbsd*) COREFILE=netbsd-core.lo ;; |
a9bf1154 | 10316 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
10317 | COREFILE=netbsd-core.lo |
10318 | ;; | |
10319 | tahoe-*-*) | |
10320 | COREFILE=trad-core.lo | |
10321 | TRAD_HEADER='"hosts/tahoe.h"' | |
10322 | ;; | |
de6e5e1a NC |
10323 | vax-*-netbsd* | vax-*-openbsd*) |
10324 | COREFILE=netbsd-core.lo | |
10325 | ;; | |
252b5132 RH |
10326 | vax-*-ultrix2*) |
10327 | COREFILE=trad-core.lo | |
10328 | TRAD_HEADER='"hosts/vaxult2.h"' | |
10329 | ;; | |
10330 | vax-*-ultrix*) | |
10331 | COREFILE=trad-core.lo | |
10332 | TRAD_HEADER='"hosts/vaxult2.h"' | |
10333 | ;; | |
ed84e695 | 10334 | vax-*-linux-*) |
f8fc3443 NC |
10335 | COREFILE=trad-core.lo |
10336 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
10337 | ;; | |
252b5132 RH |
10338 | vax-*-*) |
10339 | COREFILE=trad-core.lo | |
10340 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
10341 | ;; | |
85cfd8d3 MK |
10342 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
10343 | COREFILE=netbsd-core.lo | |
10344 | ;; | |
252b5132 RH |
10345 | esac |
10346 | ||
10347 | case "$COREFILE" in | |
10348 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
10349 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
10350 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
10351 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
10352 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
10353 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
10354 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
10355 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
10356 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
10357 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
10358 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
10359 | esac | |
10360 | ||
10361 | # ELF corefile support has several flavors, but all of | |
10362 | # them use something called <sys/procfs.h> | |
5464f5a1 NN |
10363 | |
10364 | for ac_header in sys/procfs.h | |
252b5132 | 10365 | do |
5464f5a1 NN |
10366 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10367 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10368 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10369 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10370 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10372 | fi | |
10373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10374 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10375 | else | |
10376 | # Is the header compilable? | |
10377 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10378 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10379 | cat >conftest.$ac_ext <<_ACEOF | |
10380 | /* confdefs.h. */ | |
10381 | _ACEOF | |
10382 | cat confdefs.h >>conftest.$ac_ext | |
10383 | cat >>conftest.$ac_ext <<_ACEOF | |
10384 | /* end confdefs.h. */ | |
10385 | $ac_includes_default | |
10386 | #include <$ac_header> | |
10387 | _ACEOF | |
10388 | rm -f conftest.$ac_objext | |
10389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10390 | (eval $ac_compile) 2>conftest.er1 | |
10391 | ac_status=$? | |
10392 | grep -v '^ *+' conftest.er1 >conftest.err | |
10393 | rm -f conftest.er1 | |
10394 | cat conftest.err >&5 | |
10395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10396 | (exit $ac_status); } && | |
8fb84ecc AC |
10397 | { ac_try='test -z "$ac_c_werror_flag" |
10398 | || test ! -s conftest.err' | |
5464f5a1 NN |
10399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10400 | (eval $ac_try) 2>&5 | |
10401 | ac_status=$? | |
10402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10403 | (exit $ac_status); }; } && | |
10404 | { ac_try='test -s conftest.$ac_objext' | |
10405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10406 | (eval $ac_try) 2>&5 | |
10407 | ac_status=$? | |
10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10409 | (exit $ac_status); }; }; then | |
10410 | ac_header_compiler=yes | |
10411 | else | |
10412 | echo "$as_me: failed program was:" >&5 | |
10413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10414 | ||
10415 | ac_header_compiler=no | |
10416 | fi | |
10417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10418 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10419 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10420 | ||
10421 | # Is the header present? | |
10422 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10423 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10424 | cat >conftest.$ac_ext <<_ACEOF | |
10425 | /* confdefs.h. */ | |
10426 | _ACEOF | |
10427 | cat confdefs.h >>conftest.$ac_ext | |
10428 | cat >>conftest.$ac_ext <<_ACEOF | |
10429 | /* end confdefs.h. */ | |
10430 | #include <$ac_header> | |
10431 | _ACEOF | |
10432 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10433 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10434 | ac_status=$? | |
10435 | grep -v '^ *+' conftest.er1 >conftest.err | |
10436 | rm -f conftest.er1 | |
10437 | cat conftest.err >&5 | |
10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10439 | (exit $ac_status); } >/dev/null; then | |
10440 | if test -s conftest.err; then | |
10441 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10442 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10443 | else | |
10444 | ac_cpp_err= | |
10445 | fi | |
252b5132 | 10446 | else |
5464f5a1 | 10447 | ac_cpp_err=yes |
252b5132 | 10448 | fi |
5464f5a1 NN |
10449 | if test -z "$ac_cpp_err"; then |
10450 | ac_header_preproc=yes | |
10451 | else | |
10452 | echo "$as_me: failed program was:" >&5 | |
10453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10454 | ||
10455 | ac_header_preproc=no | |
252b5132 | 10456 | fi |
5464f5a1 NN |
10457 | rm -f conftest.err conftest.$ac_ext |
10458 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10459 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10460 | ||
10461 | # So? What about this header? | |
10462 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10463 | yes:no: ) | |
10464 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10465 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10466 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10467 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10468 | ac_header_preproc=yes | |
10469 | ;; | |
10470 | no:yes:* ) | |
10471 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10472 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10473 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10474 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10475 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10476 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10477 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10478 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10480 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10481 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10482 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10483 | ( | |
10484 | cat <<\_ASBOX | |
10485 | ## ------------------------------------------ ## | |
10486 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10487 | ## ------------------------------------------ ## | |
10488 | _ASBOX | |
10489 | ) | | |
10490 | sed "s/^/$as_me: WARNING: /" >&2 | |
10491 | ;; | |
10492 | esac | |
10493 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10495 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 10497 | else |
5464f5a1 NN |
10498 | eval "$as_ac_Header=\$ac_header_preproc" |
10499 | fi | |
10500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10501 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10502 | ||
252b5132 | 10503 | fi |
5464f5a1 NN |
10504 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10505 | cat >>confdefs.h <<_ACEOF | |
10506 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10507 | _ACEOF | |
10508 | ||
10509 | fi | |
10510 | ||
252b5132 RH |
10511 | done |
10512 | ||
10513 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
5464f5a1 NN |
10514 | echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5 |
10515 | echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
10516 | if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then | |
10517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10518 | else | |
10519 | cat >conftest.$ac_ext <<_ACEOF | |
10520 | /* confdefs.h. */ | |
10521 | _ACEOF | |
10522 | cat confdefs.h >>conftest.$ac_ext | |
10523 | cat >>conftest.$ac_ext <<_ACEOF | |
10524 | /* end confdefs.h. */ | |
7ee38065 MS |
10525 | |
10526 | #define _SYSCALL32 | |
252b5132 | 10527 | #include <sys/procfs.h> |
5464f5a1 NN |
10528 | int |
10529 | main () | |
10530 | { | |
252b5132 | 10531 | prstatus_t avar |
5464f5a1 NN |
10532 | ; |
10533 | return 0; | |
10534 | } | |
10535 | _ACEOF | |
10536 | rm -f conftest.$ac_objext | |
10537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10538 | (eval $ac_compile) 2>conftest.er1 | |
10539 | ac_status=$? | |
10540 | grep -v '^ *+' conftest.er1 >conftest.err | |
10541 | rm -f conftest.er1 | |
10542 | cat conftest.err >&5 | |
10543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10544 | (exit $ac_status); } && | |
8fb84ecc AC |
10545 | { ac_try='test -z "$ac_c_werror_flag" |
10546 | || test ! -s conftest.err' | |
5464f5a1 NN |
10547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10548 | (eval $ac_try) 2>&5 | |
10549 | ac_status=$? | |
10550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10551 | (exit $ac_status); }; } && | |
10552 | { ac_try='test -s conftest.$ac_objext' | |
10553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10554 | (eval $ac_try) 2>&5 | |
10555 | ac_status=$? | |
10556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10557 | (exit $ac_status); }; }; then | |
252b5132 RH |
10558 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
10559 | else | |
5464f5a1 NN |
10560 | echo "$as_me: failed program was:" >&5 |
10561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10562 | ||
10563 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
10564 | ||
252b5132 | 10565 | fi |
5464f5a1 | 10566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10567 | fi |
10568 | ||
10569 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
5464f5a1 NN |
10570 | |
10571 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10572 | #define HAVE_PRSTATUS_T 1 |
5464f5a1 | 10573 | _ACEOF |
252b5132 RH |
10574 | |
10575 | fi | |
5464f5a1 NN |
10576 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 |
10577 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 | |
252b5132 | 10578 | |
5464f5a1 NN |
10579 | echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5 |
10580 | echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
10581 | if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then | |
10582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10583 | else |
5464f5a1 NN |
10584 | cat >conftest.$ac_ext <<_ACEOF |
10585 | /* confdefs.h. */ | |
10586 | _ACEOF | |
10587 | cat confdefs.h >>conftest.$ac_ext | |
10588 | cat >>conftest.$ac_ext <<_ACEOF | |
10589 | /* end confdefs.h. */ | |
7ee38065 MS |
10590 | |
10591 | #define _SYSCALL32 | |
10592 | #include <sys/procfs.h> | |
5464f5a1 NN |
10593 | int |
10594 | main () | |
10595 | { | |
7ee38065 | 10596 | prstatus32_t avar |
5464f5a1 NN |
10597 | ; |
10598 | return 0; | |
10599 | } | |
10600 | _ACEOF | |
10601 | rm -f conftest.$ac_objext | |
10602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10603 | (eval $ac_compile) 2>conftest.er1 | |
10604 | ac_status=$? | |
10605 | grep -v '^ *+' conftest.er1 >conftest.err | |
10606 | rm -f conftest.er1 | |
10607 | cat conftest.err >&5 | |
10608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10609 | (exit $ac_status); } && | |
8fb84ecc AC |
10610 | { ac_try='test -z "$ac_c_werror_flag" |
10611 | || test ! -s conftest.err' | |
5464f5a1 NN |
10612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10613 | (eval $ac_try) 2>&5 | |
10614 | ac_status=$? | |
10615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10616 | (exit $ac_status); }; } && | |
10617 | { ac_try='test -s conftest.$ac_objext' | |
10618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10619 | (eval $ac_try) 2>&5 | |
10620 | ac_status=$? | |
10621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10622 | (exit $ac_status); }; }; then | |
7ee38065 MS |
10623 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
10624 | else | |
5464f5a1 NN |
10625 | echo "$as_me: failed program was:" >&5 |
10626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10627 | ||
10628 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
10629 | ||
7ee38065 | 10630 | fi |
5464f5a1 | 10631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
10632 | fi |
10633 | ||
10634 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
5464f5a1 NN |
10635 | |
10636 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 10637 | #define HAVE_PRSTATUS32_T 1 |
5464f5a1 | 10638 | _ACEOF |
7ee38065 MS |
10639 | |
10640 | fi | |
5464f5a1 NN |
10641 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 |
10642 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 | |
7ee38065 | 10643 | |
5464f5a1 NN |
10644 | echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
10645 | echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
10646 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then | |
10647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10648 | else |
5464f5a1 NN |
10649 | cat >conftest.$ac_ext <<_ACEOF |
10650 | /* confdefs.h. */ | |
10651 | _ACEOF | |
10652 | cat confdefs.h >>conftest.$ac_ext | |
10653 | cat >>conftest.$ac_ext <<_ACEOF | |
10654 | /* end confdefs.h. */ | |
7ee38065 MS |
10655 | |
10656 | #define _SYSCALL32 | |
252b5132 | 10657 | #include <sys/procfs.h> |
5464f5a1 NN |
10658 | int |
10659 | main () | |
10660 | { | |
252b5132 | 10661 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
10662 | ; |
10663 | return 0; | |
10664 | } | |
10665 | _ACEOF | |
10666 | rm -f conftest.$ac_objext | |
10667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10668 | (eval $ac_compile) 2>conftest.er1 | |
10669 | ac_status=$? | |
10670 | grep -v '^ *+' conftest.er1 >conftest.err | |
10671 | rm -f conftest.er1 | |
10672 | cat conftest.err >&5 | |
10673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10674 | (exit $ac_status); } && | |
8fb84ecc AC |
10675 | { ac_try='test -z "$ac_c_werror_flag" |
10676 | || test ! -s conftest.err' | |
5464f5a1 NN |
10677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10678 | (eval $ac_try) 2>&5 | |
10679 | ac_status=$? | |
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10681 | (exit $ac_status); }; } && | |
10682 | { ac_try='test -s conftest.$ac_objext' | |
10683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10684 | (eval $ac_try) 2>&5 | |
10685 | ac_status=$? | |
10686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10687 | (exit $ac_status); }; }; then | |
252b5132 RH |
10688 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
10689 | else | |
5464f5a1 NN |
10690 | echo "$as_me: failed program was:" >&5 |
10691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10692 | ||
10693 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
10694 | ||
252b5132 | 10695 | fi |
5464f5a1 | 10696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10697 | fi |
10698 | ||
10699 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
5464f5a1 NN |
10700 | |
10701 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10702 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
5464f5a1 | 10703 | _ACEOF |
252b5132 RH |
10704 | |
10705 | fi | |
5464f5a1 NN |
10706 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 |
10707 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 | |
252b5132 | 10708 | |
5464f5a1 NN |
10709 | echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
10710 | echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
10711 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then | |
10712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10713 | else |
5464f5a1 NN |
10714 | cat >conftest.$ac_ext <<_ACEOF |
10715 | /* confdefs.h. */ | |
10716 | _ACEOF | |
10717 | cat confdefs.h >>conftest.$ac_ext | |
10718 | cat >>conftest.$ac_ext <<_ACEOF | |
10719 | /* end confdefs.h. */ | |
7ee38065 MS |
10720 | |
10721 | #define _SYSCALL32 | |
10722 | #include <sys/procfs.h> | |
5464f5a1 NN |
10723 | int |
10724 | main () | |
10725 | { | |
7ee38065 | 10726 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
10727 | ; |
10728 | return 0; | |
10729 | } | |
10730 | _ACEOF | |
10731 | rm -f conftest.$ac_objext | |
10732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10733 | (eval $ac_compile) 2>conftest.er1 | |
10734 | ac_status=$? | |
10735 | grep -v '^ *+' conftest.er1 >conftest.err | |
10736 | rm -f conftest.er1 | |
10737 | cat conftest.err >&5 | |
10738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10739 | (exit $ac_status); } && | |
8fb84ecc AC |
10740 | { ac_try='test -z "$ac_c_werror_flag" |
10741 | || test ! -s conftest.err' | |
5464f5a1 NN |
10742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10743 | (eval $ac_try) 2>&5 | |
10744 | ac_status=$? | |
10745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10746 | (exit $ac_status); }; } && | |
10747 | { ac_try='test -s conftest.$ac_objext' | |
10748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10749 | (eval $ac_try) 2>&5 | |
10750 | ac_status=$? | |
10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10752 | (exit $ac_status); }; }; then | |
7ee38065 MS |
10753 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
10754 | else | |
5464f5a1 NN |
10755 | echo "$as_me: failed program was:" >&5 |
10756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10757 | ||
10758 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
10759 | ||
7ee38065 | 10760 | fi |
5464f5a1 | 10761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
10762 | fi |
10763 | ||
10764 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
5464f5a1 NN |
10765 | |
10766 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 10767 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
5464f5a1 | 10768 | _ACEOF |
7ee38065 MS |
10769 | |
10770 | fi | |
5464f5a1 NN |
10771 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 |
10772 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 | |
7ee38065 | 10773 | |
5464f5a1 NN |
10774 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
10775 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
10776 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
10777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10778 | else |
5464f5a1 NN |
10779 | cat >conftest.$ac_ext <<_ACEOF |
10780 | /* confdefs.h. */ | |
10781 | _ACEOF | |
10782 | cat confdefs.h >>conftest.$ac_ext | |
10783 | cat >>conftest.$ac_ext <<_ACEOF | |
10784 | /* end confdefs.h. */ | |
7ee38065 MS |
10785 | |
10786 | #define _SYSCALL32 | |
252b5132 | 10787 | #include <sys/procfs.h> |
5464f5a1 NN |
10788 | int |
10789 | main () | |
10790 | { | |
252b5132 | 10791 | pstatus_t avar |
5464f5a1 NN |
10792 | ; |
10793 | return 0; | |
10794 | } | |
10795 | _ACEOF | |
10796 | rm -f conftest.$ac_objext | |
10797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10798 | (eval $ac_compile) 2>conftest.er1 | |
10799 | ac_status=$? | |
10800 | grep -v '^ *+' conftest.er1 >conftest.err | |
10801 | rm -f conftest.er1 | |
10802 | cat conftest.err >&5 | |
10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10804 | (exit $ac_status); } && | |
8fb84ecc AC |
10805 | { ac_try='test -z "$ac_c_werror_flag" |
10806 | || test ! -s conftest.err' | |
5464f5a1 NN |
10807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10808 | (eval $ac_try) 2>&5 | |
10809 | ac_status=$? | |
10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10811 | (exit $ac_status); }; } && | |
10812 | { ac_try='test -s conftest.$ac_objext' | |
10813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10814 | (eval $ac_try) 2>&5 | |
10815 | ac_status=$? | |
10816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10817 | (exit $ac_status); }; }; then | |
252b5132 RH |
10818 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
10819 | else | |
5464f5a1 NN |
10820 | echo "$as_me: failed program was:" >&5 |
10821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10822 | ||
10823 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
10824 | ||
252b5132 | 10825 | fi |
5464f5a1 | 10826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10827 | fi |
10828 | ||
10829 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
5464f5a1 NN |
10830 | |
10831 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10832 | #define HAVE_PSTATUS_T 1 |
5464f5a1 | 10833 | _ACEOF |
252b5132 RH |
10834 | |
10835 | fi | |
5464f5a1 NN |
10836 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
10837 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
252b5132 | 10838 | |
5464f5a1 NN |
10839 | echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5 |
10840 | echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
10841 | if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then | |
10842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 10843 | else |
5464f5a1 NN |
10844 | cat >conftest.$ac_ext <<_ACEOF |
10845 | /* confdefs.h. */ | |
10846 | _ACEOF | |
10847 | cat confdefs.h >>conftest.$ac_ext | |
10848 | cat >>conftest.$ac_ext <<_ACEOF | |
10849 | /* end confdefs.h. */ | |
f572a39d AM |
10850 | |
10851 | #define _SYSCALL32 | |
10852 | #include <sys/procfs.h> | |
5464f5a1 NN |
10853 | int |
10854 | main () | |
10855 | { | |
f572a39d | 10856 | pxstatus_t avar |
5464f5a1 NN |
10857 | ; |
10858 | return 0; | |
10859 | } | |
10860 | _ACEOF | |
10861 | rm -f conftest.$ac_objext | |
10862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10863 | (eval $ac_compile) 2>conftest.er1 | |
10864 | ac_status=$? | |
10865 | grep -v '^ *+' conftest.er1 >conftest.err | |
10866 | rm -f conftest.er1 | |
10867 | cat conftest.err >&5 | |
10868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10869 | (exit $ac_status); } && | |
8fb84ecc AC |
10870 | { ac_try='test -z "$ac_c_werror_flag" |
10871 | || test ! -s conftest.err' | |
5464f5a1 NN |
10872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10873 | (eval $ac_try) 2>&5 | |
10874 | ac_status=$? | |
10875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10876 | (exit $ac_status); }; } && | |
10877 | { ac_try='test -s conftest.$ac_objext' | |
10878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10879 | (eval $ac_try) 2>&5 | |
10880 | ac_status=$? | |
10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10882 | (exit $ac_status); }; }; then | |
f572a39d AM |
10883 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
10884 | else | |
5464f5a1 NN |
10885 | echo "$as_me: failed program was:" >&5 |
10886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10887 | ||
10888 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
10889 | ||
f572a39d | 10890 | fi |
5464f5a1 | 10891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
10892 | fi |
10893 | ||
10894 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
5464f5a1 NN |
10895 | |
10896 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 10897 | #define HAVE_PXSTATUS_T 1 |
5464f5a1 | 10898 | _ACEOF |
f572a39d AM |
10899 | |
10900 | fi | |
5464f5a1 NN |
10901 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 |
10902 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 | |
f572a39d | 10903 | |
5464f5a1 NN |
10904 | echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5 |
10905 | echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
10906 | if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then | |
10907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10908 | else |
5464f5a1 NN |
10909 | cat >conftest.$ac_ext <<_ACEOF |
10910 | /* confdefs.h. */ | |
10911 | _ACEOF | |
10912 | cat confdefs.h >>conftest.$ac_ext | |
10913 | cat >>conftest.$ac_ext <<_ACEOF | |
10914 | /* end confdefs.h. */ | |
7ee38065 MS |
10915 | |
10916 | #define _SYSCALL32 | |
10917 | #include <sys/procfs.h> | |
5464f5a1 NN |
10918 | int |
10919 | main () | |
10920 | { | |
7ee38065 | 10921 | pstatus32_t avar |
5464f5a1 NN |
10922 | ; |
10923 | return 0; | |
10924 | } | |
10925 | _ACEOF | |
10926 | rm -f conftest.$ac_objext | |
10927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10928 | (eval $ac_compile) 2>conftest.er1 | |
10929 | ac_status=$? | |
10930 | grep -v '^ *+' conftest.er1 >conftest.err | |
10931 | rm -f conftest.er1 | |
10932 | cat conftest.err >&5 | |
10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10934 | (exit $ac_status); } && | |
8fb84ecc AC |
10935 | { ac_try='test -z "$ac_c_werror_flag" |
10936 | || test ! -s conftest.err' | |
5464f5a1 NN |
10937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10938 | (eval $ac_try) 2>&5 | |
10939 | ac_status=$? | |
10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10941 | (exit $ac_status); }; } && | |
10942 | { ac_try='test -s conftest.$ac_objext' | |
10943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10944 | (eval $ac_try) 2>&5 | |
10945 | ac_status=$? | |
10946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10947 | (exit $ac_status); }; }; then | |
7ee38065 MS |
10948 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
10949 | else | |
5464f5a1 NN |
10950 | echo "$as_me: failed program was:" >&5 |
10951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10952 | ||
10953 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
10954 | ||
7ee38065 | 10955 | fi |
5464f5a1 | 10956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
10957 | fi |
10958 | ||
10959 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
5464f5a1 NN |
10960 | |
10961 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 10962 | #define HAVE_PSTATUS32_T 1 |
5464f5a1 | 10963 | _ACEOF |
7ee38065 MS |
10964 | |
10965 | fi | |
5464f5a1 NN |
10966 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 |
10967 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 | |
7ee38065 | 10968 | |
5464f5a1 NN |
10969 | echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5 |
10970 | echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
10971 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then | |
10972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10973 | else |
5464f5a1 NN |
10974 | cat >conftest.$ac_ext <<_ACEOF |
10975 | /* confdefs.h. */ | |
10976 | _ACEOF | |
10977 | cat confdefs.h >>conftest.$ac_ext | |
10978 | cat >>conftest.$ac_ext <<_ACEOF | |
10979 | /* end confdefs.h. */ | |
7ee38065 MS |
10980 | |
10981 | #define _SYSCALL32 | |
252b5132 | 10982 | #include <sys/procfs.h> |
5464f5a1 NN |
10983 | int |
10984 | main () | |
10985 | { | |
252b5132 | 10986 | prpsinfo_t avar |
5464f5a1 NN |
10987 | ; |
10988 | return 0; | |
10989 | } | |
10990 | _ACEOF | |
10991 | rm -f conftest.$ac_objext | |
10992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10993 | (eval $ac_compile) 2>conftest.er1 | |
10994 | ac_status=$? | |
10995 | grep -v '^ *+' conftest.er1 >conftest.err | |
10996 | rm -f conftest.er1 | |
10997 | cat conftest.err >&5 | |
10998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10999 | (exit $ac_status); } && | |
8fb84ecc AC |
11000 | { ac_try='test -z "$ac_c_werror_flag" |
11001 | || test ! -s conftest.err' | |
5464f5a1 NN |
11002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11003 | (eval $ac_try) 2>&5 | |
11004 | ac_status=$? | |
11005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11006 | (exit $ac_status); }; } && | |
11007 | { ac_try='test -s conftest.$ac_objext' | |
11008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11009 | (eval $ac_try) 2>&5 | |
11010 | ac_status=$? | |
11011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11012 | (exit $ac_status); }; }; then | |
252b5132 RH |
11013 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
11014 | else | |
5464f5a1 NN |
11015 | echo "$as_me: failed program was:" >&5 |
11016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11017 | ||
11018 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
11019 | ||
252b5132 | 11020 | fi |
5464f5a1 | 11021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11022 | fi |
11023 | ||
11024 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
5464f5a1 NN |
11025 | |
11026 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11027 | #define HAVE_PRPSINFO_T 1 |
5464f5a1 | 11028 | _ACEOF |
252b5132 RH |
11029 | |
11030 | fi | |
5464f5a1 NN |
11031 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 |
11032 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 | |
252b5132 | 11033 | |
5464f5a1 NN |
11034 | echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5 |
11035 | echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
11036 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then | |
11037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 11038 | else |
5464f5a1 NN |
11039 | cat >conftest.$ac_ext <<_ACEOF |
11040 | /* confdefs.h. */ | |
11041 | _ACEOF | |
11042 | cat confdefs.h >>conftest.$ac_ext | |
11043 | cat >>conftest.$ac_ext <<_ACEOF | |
11044 | /* end confdefs.h. */ | |
7ee38065 MS |
11045 | |
11046 | #define _SYSCALL32 | |
11047 | #include <sys/procfs.h> | |
5464f5a1 NN |
11048 | int |
11049 | main () | |
11050 | { | |
7ee38065 | 11051 | prpsinfo32_t avar |
5464f5a1 NN |
11052 | ; |
11053 | return 0; | |
11054 | } | |
11055 | _ACEOF | |
11056 | rm -f conftest.$ac_objext | |
11057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11058 | (eval $ac_compile) 2>conftest.er1 | |
11059 | ac_status=$? | |
11060 | grep -v '^ *+' conftest.er1 >conftest.err | |
11061 | rm -f conftest.er1 | |
11062 | cat conftest.err >&5 | |
11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11064 | (exit $ac_status); } && | |
8fb84ecc AC |
11065 | { ac_try='test -z "$ac_c_werror_flag" |
11066 | || test ! -s conftest.err' | |
5464f5a1 NN |
11067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11068 | (eval $ac_try) 2>&5 | |
11069 | ac_status=$? | |
11070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11071 | (exit $ac_status); }; } && | |
11072 | { ac_try='test -s conftest.$ac_objext' | |
11073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11074 | (eval $ac_try) 2>&5 | |
11075 | ac_status=$? | |
11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11077 | (exit $ac_status); }; }; then | |
7ee38065 MS |
11078 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
11079 | else | |
5464f5a1 NN |
11080 | echo "$as_me: failed program was:" >&5 |
11081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11082 | ||
11083 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
11084 | ||
7ee38065 | 11085 | fi |
5464f5a1 | 11086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
11087 | fi |
11088 | ||
11089 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
5464f5a1 NN |
11090 | |
11091 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 11092 | #define HAVE_PRPSINFO32_T 1 |
5464f5a1 | 11093 | _ACEOF |
7ee38065 MS |
11094 | |
11095 | fi | |
5464f5a1 NN |
11096 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 |
11097 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 | |
7ee38065 | 11098 | |
5464f5a1 NN |
11099 | echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5 |
11100 | echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
11101 | if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then | |
11102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11103 | else |
5464f5a1 NN |
11104 | cat >conftest.$ac_ext <<_ACEOF |
11105 | /* confdefs.h. */ | |
11106 | _ACEOF | |
11107 | cat confdefs.h >>conftest.$ac_ext | |
11108 | cat >>conftest.$ac_ext <<_ACEOF | |
11109 | /* end confdefs.h. */ | |
7ee38065 MS |
11110 | |
11111 | #define _SYSCALL32 | |
252b5132 | 11112 | #include <sys/procfs.h> |
5464f5a1 NN |
11113 | int |
11114 | main () | |
11115 | { | |
252b5132 | 11116 | psinfo_t avar |
5464f5a1 NN |
11117 | ; |
11118 | return 0; | |
11119 | } | |
11120 | _ACEOF | |
11121 | rm -f conftest.$ac_objext | |
11122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11123 | (eval $ac_compile) 2>conftest.er1 | |
11124 | ac_status=$? | |
11125 | grep -v '^ *+' conftest.er1 >conftest.err | |
11126 | rm -f conftest.er1 | |
11127 | cat conftest.err >&5 | |
11128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11129 | (exit $ac_status); } && | |
8fb84ecc AC |
11130 | { ac_try='test -z "$ac_c_werror_flag" |
11131 | || test ! -s conftest.err' | |
5464f5a1 NN |
11132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11133 | (eval $ac_try) 2>&5 | |
11134 | ac_status=$? | |
11135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11136 | (exit $ac_status); }; } && | |
11137 | { ac_try='test -s conftest.$ac_objext' | |
11138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11139 | (eval $ac_try) 2>&5 | |
11140 | ac_status=$? | |
11141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11142 | (exit $ac_status); }; }; then | |
252b5132 RH |
11143 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
11144 | else | |
5464f5a1 NN |
11145 | echo "$as_me: failed program was:" >&5 |
11146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11147 | ||
11148 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
11149 | ||
252b5132 | 11150 | fi |
5464f5a1 | 11151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11152 | fi |
11153 | ||
11154 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
5464f5a1 NN |
11155 | |
11156 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11157 | #define HAVE_PSINFO_T 1 |
5464f5a1 | 11158 | _ACEOF |
252b5132 RH |
11159 | |
11160 | fi | |
5464f5a1 NN |
11161 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 |
11162 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 | |
252b5132 | 11163 | |
5464f5a1 NN |
11164 | echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5 |
11165 | echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
11166 | if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then | |
11167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 11168 | else |
5464f5a1 NN |
11169 | cat >conftest.$ac_ext <<_ACEOF |
11170 | /* confdefs.h. */ | |
11171 | _ACEOF | |
11172 | cat confdefs.h >>conftest.$ac_ext | |
11173 | cat >>conftest.$ac_ext <<_ACEOF | |
11174 | /* end confdefs.h. */ | |
7ee38065 MS |
11175 | |
11176 | #define _SYSCALL32 | |
11177 | #include <sys/procfs.h> | |
5464f5a1 NN |
11178 | int |
11179 | main () | |
11180 | { | |
7ee38065 | 11181 | psinfo32_t avar |
5464f5a1 NN |
11182 | ; |
11183 | return 0; | |
11184 | } | |
11185 | _ACEOF | |
11186 | rm -f conftest.$ac_objext | |
11187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11188 | (eval $ac_compile) 2>conftest.er1 | |
11189 | ac_status=$? | |
11190 | grep -v '^ *+' conftest.er1 >conftest.err | |
11191 | rm -f conftest.er1 | |
11192 | cat conftest.err >&5 | |
11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11194 | (exit $ac_status); } && | |
8fb84ecc AC |
11195 | { ac_try='test -z "$ac_c_werror_flag" |
11196 | || test ! -s conftest.err' | |
5464f5a1 NN |
11197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11198 | (eval $ac_try) 2>&5 | |
11199 | ac_status=$? | |
11200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11201 | (exit $ac_status); }; } && | |
11202 | { ac_try='test -s conftest.$ac_objext' | |
11203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11204 | (eval $ac_try) 2>&5 | |
11205 | ac_status=$? | |
11206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11207 | (exit $ac_status); }; }; then | |
7ee38065 MS |
11208 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
11209 | else | |
5464f5a1 NN |
11210 | echo "$as_me: failed program was:" >&5 |
11211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11212 | ||
11213 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
11214 | ||
7ee38065 | 11215 | fi |
5464f5a1 | 11216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
11217 | fi |
11218 | ||
11219 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
5464f5a1 NN |
11220 | |
11221 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 11222 | #define HAVE_PSINFO32_T 1 |
5464f5a1 | 11223 | _ACEOF |
7ee38065 MS |
11224 | |
11225 | fi | |
5464f5a1 NN |
11226 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 |
11227 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 | |
7ee38065 | 11228 | |
5464f5a1 NN |
11229 | echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5 |
11230 | echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11231 | if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then | |
11232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11233 | else |
5464f5a1 NN |
11234 | cat >conftest.$ac_ext <<_ACEOF |
11235 | /* confdefs.h. */ | |
11236 | _ACEOF | |
11237 | cat confdefs.h >>conftest.$ac_ext | |
11238 | cat >>conftest.$ac_ext <<_ACEOF | |
11239 | /* end confdefs.h. */ | |
7ee38065 MS |
11240 | |
11241 | #define _SYSCALL32 | |
252b5132 | 11242 | #include <sys/procfs.h> |
5464f5a1 NN |
11243 | int |
11244 | main () | |
11245 | { | |
252b5132 | 11246 | lwpstatus_t avar |
5464f5a1 NN |
11247 | ; |
11248 | return 0; | |
11249 | } | |
11250 | _ACEOF | |
11251 | rm -f conftest.$ac_objext | |
11252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11253 | (eval $ac_compile) 2>conftest.er1 | |
11254 | ac_status=$? | |
11255 | grep -v '^ *+' conftest.er1 >conftest.err | |
11256 | rm -f conftest.er1 | |
11257 | cat conftest.err >&5 | |
11258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11259 | (exit $ac_status); } && | |
8fb84ecc AC |
11260 | { ac_try='test -z "$ac_c_werror_flag" |
11261 | || test ! -s conftest.err' | |
5464f5a1 NN |
11262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11263 | (eval $ac_try) 2>&5 | |
11264 | ac_status=$? | |
11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11266 | (exit $ac_status); }; } && | |
11267 | { ac_try='test -s conftest.$ac_objext' | |
11268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11269 | (eval $ac_try) 2>&5 | |
11270 | ac_status=$? | |
11271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11272 | (exit $ac_status); }; }; then | |
252b5132 RH |
11273 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
11274 | else | |
5464f5a1 NN |
11275 | echo "$as_me: failed program was:" >&5 |
11276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11277 | ||
11278 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
11279 | ||
252b5132 | 11280 | fi |
5464f5a1 | 11281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11282 | fi |
11283 | ||
11284 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
5464f5a1 NN |
11285 | |
11286 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11287 | #define HAVE_LWPSTATUS_T 1 |
5464f5a1 | 11288 | _ACEOF |
252b5132 RH |
11289 | |
11290 | fi | |
5464f5a1 NN |
11291 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 |
11292 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 | |
252b5132 | 11293 | |
5464f5a1 NN |
11294 | echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5 |
11295 | echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11296 | if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then | |
11297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 11298 | else |
5464f5a1 NN |
11299 | cat >conftest.$ac_ext <<_ACEOF |
11300 | /* confdefs.h. */ | |
11301 | _ACEOF | |
11302 | cat confdefs.h >>conftest.$ac_ext | |
11303 | cat >>conftest.$ac_ext <<_ACEOF | |
11304 | /* end confdefs.h. */ | |
f572a39d AM |
11305 | |
11306 | #define _SYSCALL32 | |
11307 | #include <sys/procfs.h> | |
5464f5a1 NN |
11308 | int |
11309 | main () | |
11310 | { | |
f572a39d | 11311 | lwpxstatus_t avar |
5464f5a1 NN |
11312 | ; |
11313 | return 0; | |
11314 | } | |
11315 | _ACEOF | |
11316 | rm -f conftest.$ac_objext | |
11317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11318 | (eval $ac_compile) 2>conftest.er1 | |
11319 | ac_status=$? | |
11320 | grep -v '^ *+' conftest.er1 >conftest.err | |
11321 | rm -f conftest.er1 | |
11322 | cat conftest.err >&5 | |
11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11324 | (exit $ac_status); } && | |
8fb84ecc AC |
11325 | { ac_try='test -z "$ac_c_werror_flag" |
11326 | || test ! -s conftest.err' | |
5464f5a1 NN |
11327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11328 | (eval $ac_try) 2>&5 | |
11329 | ac_status=$? | |
11330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11331 | (exit $ac_status); }; } && | |
11332 | { ac_try='test -s conftest.$ac_objext' | |
11333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11334 | (eval $ac_try) 2>&5 | |
11335 | ac_status=$? | |
11336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11337 | (exit $ac_status); }; }; then | |
f572a39d AM |
11338 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
11339 | else | |
5464f5a1 NN |
11340 | echo "$as_me: failed program was:" >&5 |
11341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11342 | ||
11343 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
11344 | ||
f572a39d | 11345 | fi |
5464f5a1 | 11346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
11347 | fi |
11348 | ||
11349 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
5464f5a1 NN |
11350 | |
11351 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 11352 | #define HAVE_LWPXSTATUS_T 1 |
5464f5a1 | 11353 | _ACEOF |
f572a39d AM |
11354 | |
11355 | fi | |
5464f5a1 NN |
11356 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 |
11357 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 | |
f572a39d | 11358 | |
5464f5a1 NN |
11359 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
11360 | echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 | |
11361 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then | |
11362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11363 | else |
5464f5a1 NN |
11364 | cat >conftest.$ac_ext <<_ACEOF |
11365 | /* confdefs.h. */ | |
11366 | _ACEOF | |
11367 | cat confdefs.h >>conftest.$ac_ext | |
11368 | cat >>conftest.$ac_ext <<_ACEOF | |
11369 | /* end confdefs.h. */ | |
7ee38065 MS |
11370 | |
11371 | #define _SYSCALL32 | |
252b5132 | 11372 | #include <sys/procfs.h> |
5464f5a1 NN |
11373 | int |
11374 | main () | |
11375 | { | |
252b5132 | 11376 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
5464f5a1 NN |
11377 | ; |
11378 | return 0; | |
11379 | } | |
11380 | _ACEOF | |
11381 | rm -f conftest.$ac_objext | |
11382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11383 | (eval $ac_compile) 2>conftest.er1 | |
11384 | ac_status=$? | |
11385 | grep -v '^ *+' conftest.er1 >conftest.err | |
11386 | rm -f conftest.er1 | |
11387 | cat conftest.err >&5 | |
11388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11389 | (exit $ac_status); } && | |
8fb84ecc AC |
11390 | { ac_try='test -z "$ac_c_werror_flag" |
11391 | || test ! -s conftest.err' | |
5464f5a1 NN |
11392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11393 | (eval $ac_try) 2>&5 | |
11394 | ac_status=$? | |
11395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11396 | (exit $ac_status); }; } && | |
11397 | { ac_try='test -s conftest.$ac_objext' | |
11398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11399 | (eval $ac_try) 2>&5 | |
11400 | ac_status=$? | |
11401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11402 | (exit $ac_status); }; }; then | |
252b5132 RH |
11403 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
11404 | else | |
5464f5a1 NN |
11405 | echo "$as_me: failed program was:" >&5 |
11406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11407 | ||
11408 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
11409 | ||
252b5132 | 11410 | fi |
5464f5a1 | 11411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11412 | fi |
11413 | ||
11414 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
5464f5a1 NN |
11415 | |
11416 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11417 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
5464f5a1 | 11418 | _ACEOF |
252b5132 RH |
11419 | |
11420 | fi | |
5464f5a1 NN |
11421 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 |
11422 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 | |
252b5132 | 11423 | |
5464f5a1 NN |
11424 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
11425 | echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 | |
11426 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then | |
11427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11428 | else |
5464f5a1 NN |
11429 | cat >conftest.$ac_ext <<_ACEOF |
11430 | /* confdefs.h. */ | |
11431 | _ACEOF | |
11432 | cat confdefs.h >>conftest.$ac_ext | |
11433 | cat >>conftest.$ac_ext <<_ACEOF | |
11434 | /* end confdefs.h. */ | |
7ee38065 MS |
11435 | |
11436 | #define _SYSCALL32 | |
252b5132 | 11437 | #include <sys/procfs.h> |
5464f5a1 NN |
11438 | int |
11439 | main () | |
11440 | { | |
252b5132 | 11441 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
5464f5a1 NN |
11442 | ; |
11443 | return 0; | |
11444 | } | |
11445 | _ACEOF | |
11446 | rm -f conftest.$ac_objext | |
11447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11448 | (eval $ac_compile) 2>conftest.er1 | |
11449 | ac_status=$? | |
11450 | grep -v '^ *+' conftest.er1 >conftest.err | |
11451 | rm -f conftest.er1 | |
11452 | cat conftest.err >&5 | |
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11454 | (exit $ac_status); } && | |
8fb84ecc AC |
11455 | { ac_try='test -z "$ac_c_werror_flag" |
11456 | || test ! -s conftest.err' | |
5464f5a1 NN |
11457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11458 | (eval $ac_try) 2>&5 | |
11459 | ac_status=$? | |
11460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11461 | (exit $ac_status); }; } && | |
11462 | { ac_try='test -s conftest.$ac_objext' | |
11463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11464 | (eval $ac_try) 2>&5 | |
11465 | ac_status=$? | |
11466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11467 | (exit $ac_status); }; }; then | |
252b5132 RH |
11468 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
11469 | else | |
5464f5a1 NN |
11470 | echo "$as_me: failed program was:" >&5 |
11471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11472 | ||
11473 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
11474 | ||
252b5132 | 11475 | fi |
5464f5a1 | 11476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11477 | fi |
11478 | ||
11479 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
5464f5a1 NN |
11480 | |
11481 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11482 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
5464f5a1 | 11483 | _ACEOF |
252b5132 RH |
11484 | |
11485 | fi | |
5464f5a1 NN |
11486 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 |
11487 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 | |
252b5132 | 11488 | |
5464f5a1 NN |
11489 | echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5 |
11490 | echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11491 | if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then | |
11492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e3c976c4 | 11493 | else |
5464f5a1 NN |
11494 | cat >conftest.$ac_ext <<_ACEOF |
11495 | /* confdefs.h. */ | |
11496 | _ACEOF | |
11497 | cat confdefs.h >>conftest.$ac_ext | |
11498 | cat >>conftest.$ac_ext <<_ACEOF | |
11499 | /* end confdefs.h. */ | |
7ee38065 MS |
11500 | |
11501 | #define _SYSCALL32 | |
e3c976c4 | 11502 | #include <sys/procfs.h> |
5464f5a1 NN |
11503 | int |
11504 | main () | |
11505 | { | |
e3c976c4 | 11506 | win32_pstatus_t avar |
5464f5a1 NN |
11507 | ; |
11508 | return 0; | |
11509 | } | |
11510 | _ACEOF | |
11511 | rm -f conftest.$ac_objext | |
11512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11513 | (eval $ac_compile) 2>conftest.er1 | |
11514 | ac_status=$? | |
11515 | grep -v '^ *+' conftest.er1 >conftest.err | |
11516 | rm -f conftest.er1 | |
11517 | cat conftest.err >&5 | |
11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11519 | (exit $ac_status); } && | |
8fb84ecc AC |
11520 | { ac_try='test -z "$ac_c_werror_flag" |
11521 | || test ! -s conftest.err' | |
5464f5a1 NN |
11522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11523 | (eval $ac_try) 2>&5 | |
11524 | ac_status=$? | |
11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11526 | (exit $ac_status); }; } && | |
11527 | { ac_try='test -s conftest.$ac_objext' | |
11528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11529 | (eval $ac_try) 2>&5 | |
11530 | ac_status=$? | |
11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11532 | (exit $ac_status); }; }; then | |
e3c976c4 ILT |
11533 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
11534 | else | |
5464f5a1 NN |
11535 | echo "$as_me: failed program was:" >&5 |
11536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11537 | ||
11538 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
11539 | ||
e3c976c4 | 11540 | fi |
5464f5a1 | 11541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11542 | fi |
11543 | ||
e3c976c4 | 11544 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
5464f5a1 NN |
11545 | |
11546 | cat >>confdefs.h <<\_ACEOF | |
e3c976c4 | 11547 | #define HAVE_WIN32_PSTATUS_T 1 |
5464f5a1 | 11548 | _ACEOF |
16e9c715 NC |
11549 | |
11550 | fi | |
5464f5a1 NN |
11551 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 |
11552 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 | |
e3c976c4 ILT |
11553 | |
11554 | fi | |
11555 | fi | |
16e9c715 | 11556 | |
b3baf5d0 | 11557 | |
6be7c12c | 11558 | if test -n "$TRAD_HEADER"; then |
5464f5a1 NN |
11559 | |
11560 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 11561 | #define TRAD_HEADER $TRAD_HEADER |
5464f5a1 | 11562 | _ACEOF |
252b5132 | 11563 | |
3f9b03b5 | 11564 | fi |
252b5132 RH |
11565 | |
11566 | # Horrible hacks to build DLLs on Windows. | |
11567 | WIN32LDFLAGS= | |
11568 | WIN32LIBADD= | |
11569 | case "${host}" in | |
11570 | *-*-cygwin*) | |
11571 | if test "$enable_shared" = "yes"; then | |
11572 | WIN32LDFLAGS="-no-undefined" | |
11573 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
11574 | fi | |
11575 | ;; | |
78be1d6e | 11576 | *-*-linux*) |
39691762 L |
11577 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on |
11578 | # libiberty.a. | |
ca51bfff L |
11579 | case "${host}" in |
11580 | mips*-*-linux*) | |
11581 | # Linux/MIPS uses PIC by default. | |
11582 | if test "$enable_shared" = "yes"; then | |
11583 | WIN32LIBADD="-L../libiberty -liberty" | |
11584 | fi | |
11585 | ;; | |
11586 | *) | |
66e25bab | 11587 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
bb2a49f2 | 11588 | if test -n "$x"; then |
ca51bfff L |
11589 | WIN32LIBADD="-L../libiberty/pic -liberty" |
11590 | fi | |
11591 | ;; | |
11592 | esac | |
39691762 | 11593 | ;; |
252b5132 RH |
11594 | esac |
11595 | ||
6be7c12c AO |
11596 | |
11597 | ||
252b5132 RH |
11598 | # target stuff: |
11599 | ||
11600 | # Canonicalize the secondary target names. | |
11601 | if test -n "$enable_targets" ; then | |
11602 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
11603 | do | |
6d83c84b | 11604 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
11605 | if test -n "$result" ; then |
11606 | canon_targets="$canon_targets $result" | |
11607 | else | |
11608 | # Allow targets that config.sub doesn't recognize, like "all". | |
11609 | canon_targets="$canon_targets $targ" | |
11610 | fi | |
11611 | done | |
11612 | fi | |
11613 | ||
11614 | all_targets=false | |
11615 | defvec= | |
11616 | selvecs= | |
08f74004 | 11617 | assocvecs= |
252b5132 RH |
11618 | selarchs= |
11619 | TDEFINES= | |
11620 | for targ in $target $canon_targets | |
11621 | do | |
11622 | if test "x$targ" = "xall"; then | |
11623 | all_targets=true | |
08f74004 | 11624 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
11625 | else |
11626 | . $srcdir/config.bfd | |
11627 | if test "x$targ" = "x$target"; then | |
11628 | defvec=$targ_defvec | |
11629 | fi | |
11630 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
11631 | selarchs="$selarchs $targ_archs" | |
11632 | TDEFINES="$TDEFINES $targ_cflags" | |
11633 | fi | |
11634 | done | |
11635 | ||
6be7c12c | 11636 | |
252b5132 RH |
11637 | # This processing still needs to be done if we're to decide properly whether |
11638 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
11639 | # the default or any other explicitly requested target requires it; it | |
11640 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 11641 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
11642 | # used. |
11643 | ||
11644 | # uniq the default and selected vectors in all the configured targets. | |
11645 | f="" | |
11646 | for i in $selvecs ; do | |
11647 | case " $f " in | |
11648 | *" $i "*) ;; | |
11649 | *) f="$f $i" ;; | |
11650 | esac | |
11651 | done | |
11652 | selvecs="$f" | |
11653 | ||
6be7c12c | 11654 | |
08f74004 AM |
11655 | # uniq the associated vectors in all the configured targets. |
11656 | f="" | |
11657 | for i in $assocvecs ; do | |
11658 | case " $f " in | |
11659 | *" $i "*) ;; | |
11660 | *) f="$f $i" ;; | |
11661 | esac | |
11662 | done | |
11663 | assocvecs="$f" | |
11664 | ||
11665 | ||
252b5132 RH |
11666 | # uniq the architectures in all the configured targets. |
11667 | f="" | |
11668 | for i in $selarchs ; do | |
11669 | case " $f " in | |
11670 | *" $i "*) ;; | |
11671 | *) f="$f $i" ;; | |
11672 | esac | |
11673 | done | |
11674 | selarchs="$f" | |
11675 | ||
11676 | # Target backend .o files. | |
11677 | tb= | |
11678 | ||
65765700 | 11679 | elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
11680 | |
11681 | for vec in $selvecs | |
11682 | do | |
69263e90 | 11683 | target_size=32 |
252b5132 RH |
11684 | case "$vec" in |
11685 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
11686 | # with the two vector lists in targets.c. For the same reason, |
11687 | # use one entry per line, even though this leads to long lines. | |
252b5132 RH |
11688 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; |
11689 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; | |
341ca622 | 11690 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
11691 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
11692 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
11693 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 11694 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
11695 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
11696 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
11697 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
11698 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
11699 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
11700 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
11701 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
11702 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
11703 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
11704 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
11705 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
11706 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
11707 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 11708 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
dc810e39 | 11709 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
73c3cd1c | 11710 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 11711 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
dc810e39 | 11712 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 11713 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
7f266840 | 11714 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
e5a52504 | 11715 | bfd_elf32_bigarm_symbian_vec) |
7f266840 | 11716 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
4e7fd91e PB |
11717 | bfd_elf32_bigarm_vxworks_vec) |
11718 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; | |
c6e90b02 | 11719 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
0949843d | 11720 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 11721 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
5464f5a1 | 11722 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
11723 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
11724 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 11725 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
252b5132 | 11726 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 11727 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 11728 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
e01b0e69 | 11729 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 11730 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 11731 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 11732 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 11733 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
b6821651 AM |
11734 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; |
11735 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;; | |
9d751335 | 11736 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 11737 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 11738 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
dc810e39 | 11739 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
fcf12726 | 11740 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; |
cf88bb9f | 11741 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 11742 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
252b5132 | 11743 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 11744 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 11745 | bfd_elf32_littlearm_symbian_vec) |
7f266840 | 11746 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
4e7fd91e PB |
11747 | bfd_elf32_littlearm_vxworks_vec) |
11748 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; | |
7f266840 | 11749 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
c6e90b02 | 11750 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
252b5132 | 11751 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
11752 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
11753 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
11754 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
11755 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
11756 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
11757 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
11758 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
11759 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
11760 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
11761 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; | |
11762 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
2469cfa2 | 11763 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
8a397dad TS |
11764 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
11765 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
11766 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
11767 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
b3baf5d0 | 11768 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 11769 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
11770 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
11771 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
b6821651 AM |
11772 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; |
11773 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; | |
a85d7ed0 | 11774 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
eb1e0e80 NC |
11775 | # FIXME: We include cofflink.lo not because it's needed for |
11776 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
11777 | # which needs it but does not list it. Should be fixed in right place. | |
9cba27b2 JT |
11778 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
11779 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
2bc3c89a AM |
11780 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
11781 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
11782 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
11783 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
b6821651 AM |
11784 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; |
11785 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
11786 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; | |
85fbca6a | 11787 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;; |
b6821651 AM |
11788 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
11789 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
11790 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
252b5132 | 11791 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;; |
c6e90b02 TS |
11792 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
11793 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 11794 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 11795 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 11796 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 11797 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
e0001a05 NC |
11798 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
11799 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 11800 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
11801 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
11802 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 11803 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
dc810e39 AM |
11804 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
11805 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
dc810e39 | 11806 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
fcf12726 | 11807 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
11808 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
11809 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 11810 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
3c3bdf30 | 11811 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
11812 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
11813 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
11814 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | |
341ca622 AM |
11815 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
11816 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
11817 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
11818 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
11819 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
11820 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
dc810e39 | 11821 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;; |
c6e90b02 TS |
11822 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
11823 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
dc810e39 | 11824 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
3c3bdf30 | 11825 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
11826 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
11827 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
11828 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
11829 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 11830 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 11831 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 11832 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 11833 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
11834 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
11835 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
11836 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
11837 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
11838 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
11839 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
11840 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
11841 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
11842 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
11843 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
11844 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
11845 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
11846 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; | |
11847 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
11848 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
11849 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
11850 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
11851 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 11852 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
11853 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
11854 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
11855 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
11856 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
11857 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
11858 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
11859 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
11860 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
11861 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
11862 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
11863 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
11864 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
11865 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
11866 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; | |
11867 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; | |
11868 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; | |
252b5132 RH |
11869 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
11870 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 11871 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 11872 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
7499d566 | 11873 | maxqcoff_vec) tb="$tb coff-maxq.lo" ;; |
93509525 KD |
11874 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
11875 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
11876 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
277d1b5e ILT |
11877 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
11878 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
11879 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
11880 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
11881 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
11882 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 11883 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 11884 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 11885 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 11886 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 11887 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 11888 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 11889 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 11890 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
11891 | pef_vec) tb="$tb pef.lo" ;; |
11892 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 11893 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
6768c14a | 11894 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 11895 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 11896 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 11897 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 11898 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 11899 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 11900 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 11901 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 11902 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
11903 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
11904 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 11905 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 11906 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
11907 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
11908 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
11909 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
11910 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
11911 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 11912 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 11913 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
11914 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
11915 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
11916 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
11917 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
11918 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
11919 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
11920 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
11921 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 11922 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 11923 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 11924 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 11925 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 11926 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 11927 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 11928 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 11929 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 11930 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 11931 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 11932 | versados_vec) tb="$tb versados.lo" ;; |
dc810e39 | 11933 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; |
252b5132 RH |
11934 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; |
11935 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
11936 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
11937 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; | |
11938 | ||
341ca622 AM |
11939 | # These appear out of order in targets.c |
11940 | srec_vec) tb="$tb srec.lo" ;; | |
11941 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
11942 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
11943 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
11944 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
11945 | ||
252b5132 | 11946 | "") ;; |
5464f5a1 NN |
11947 | *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5 |
11948 | echo "$as_me: error: *** unknown target vector $vec" >&2;} | |
11949 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 11950 | esac |
69263e90 AM |
11951 | |
11952 | if test ${target_size} = 64; then | |
11953 | target64=true | |
11954 | fi | |
11955 | if test x"${vec}" = x"${defvec}"; then | |
11956 | bfd_default_target_size=${target_size} | |
11957 | fi | |
252b5132 RH |
11958 | done |
11959 | ||
11960 | # Target architecture .o files. | |
11961 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
11962 | # filesystems. | |
11963 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` | |
11964 | ||
11965 | # Weed out duplicate .o files. | |
11966 | f="" | |
11967 | for i in $tb ; do | |
11968 | case " $f " in | |
11969 | *" $i "*) ;; | |
11970 | *) f="$f $i" ;; | |
11971 | esac | |
11972 | done | |
11973 | tb="$f" | |
11974 | ||
11975 | f="" | |
11976 | for i in $ta ; do | |
11977 | case " $f " in | |
11978 | *" $i "*) ;; | |
11979 | *) f="$f $i" ;; | |
11980 | esac | |
11981 | done | |
11982 | ta="$f" | |
11983 | ||
11984 | bfd_backends="$tb" | |
11985 | bfd_machines="$ta" | |
11986 | ||
11987 | if test x${all_targets} = xtrue ; then | |
11988 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
11989 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
11990 | selvecs= | |
11991 | havevecs= | |
11992 | selarchs= | |
08f74004 AM |
11993 | test -n "$assocvecs" && |
11994 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
11995 | else # all_targets is true |
11996 | # Only set these if they will be nonempty, for the clever echo. | |
11997 | havevecs= | |
08f74004 | 11998 | assocvecs= |
252b5132 RH |
11999 | test -n "$selvecs" && |
12000 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
12001 | test -n "$selvecs" && | |
12002 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
12003 | test -n "$selarchs" && | |
12004 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
12005 | fi # all_targets is true | |
12006 | ||
12007 | case ${host64}-${target64}-${want64} in | |
12008 | *true*) | |
12009 | wordsize=64 | |
2858ef35 | 12010 | bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)' |
252b5132 | 12011 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 12012 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
5464f5a1 NN |
12013 | { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5 |
12014 | echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
12015 | { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
12016 | echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
252b5132 | 12017 | fi |
966abd70 HPN |
12018 | if test -n "$GCC" ; then |
12019 | bad_64bit_gcc=no; | |
5464f5a1 NN |
12020 | echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5 |
12021 | echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6 | |
966abd70 | 12022 | # Add more tests for gcc versions with non-working 64-bit support here. |
5464f5a1 NN |
12023 | cat >conftest.$ac_ext <<_ACEOF |
12024 | /* confdefs.h. */ | |
12025 | _ACEOF | |
12026 | cat confdefs.h >>conftest.$ac_ext | |
12027 | cat >>conftest.$ac_ext <<_ACEOF | |
12028 | /* end confdefs.h. */ | |
966abd70 | 12029 | :__GNUC__:__GNUC_MINOR__:__i386__: |
5464f5a1 | 12030 | _ACEOF |
966abd70 | 12031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 12032 | $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then |
966abd70 | 12033 | bad_64bit_gcc=yes; |
5464f5a1 NN |
12034 | echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5 |
12035 | echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6 | |
966abd70 | 12036 | else |
5464f5a1 NN |
12037 | echo "$as_me:$LINENO: result: no" >&5 |
12038 | echo "${ECHO_T}no" >&6 | |
966abd70 HPN |
12039 | fi |
12040 | rm -f conftest* | |
12041 | ||
12042 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 NN |
12043 | { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5 |
12044 | echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;} | |
12045 | { (exit 1); exit 1; }; } | |
966abd70 HPN |
12046 | fi |
12047 | fi | |
252b5132 RH |
12048 | ;; |
12049 | false-false-false) | |
12050 | wordsize=32 | |
2858ef35 | 12051 | bfd_libs='$(BFD32_LIBS)' |
252b5132 RH |
12052 | all_backends='$(BFD32_BACKENDS)' |
12053 | ;; | |
12054 | esac | |
12055 | ||
6be7c12c AO |
12056 | |
12057 | ||
12058 | ||
12059 | ||
12060 | ||
69263e90 | 12061 | |
2858ef35 | 12062 | |
1012372a AC |
12063 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
12064 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
12065 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
12066 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
12067 | # upward compatible. | |
5464f5a1 NN |
12068 | |
12069 | ||
12070 | ||
12071 | ||
1012372a AC |
12072 | for ac_func in ftello ftello64 fseeko fseeko64 |
12073 | do | |
5464f5a1 NN |
12074 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12075 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12076 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12077 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12079 | else | |
12080 | cat >conftest.$ac_ext <<_ACEOF | |
12081 | /* confdefs.h. */ | |
12082 | _ACEOF | |
12083 | cat confdefs.h >>conftest.$ac_ext | |
12084 | cat >>conftest.$ac_ext <<_ACEOF | |
12085 | /* end confdefs.h. */ | |
12086 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12087 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12088 | #define $ac_func innocuous_$ac_func | |
12089 | ||
1012372a | 12090 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
12091 | which can conflict with char $ac_func (); below. |
12092 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12093 | <limits.h> exists even on freestanding compilers. */ | |
12094 | ||
12095 | #ifdef __STDC__ | |
12096 | # include <limits.h> | |
12097 | #else | |
12098 | # include <assert.h> | |
12099 | #endif | |
1012372a | 12100 | |
5464f5a1 | 12101 | #undef $ac_func |
1012372a | 12102 | |
5464f5a1 NN |
12103 | /* Override any gcc2 internal prototype to avoid an error. */ |
12104 | #ifdef __cplusplus | |
12105 | extern "C" | |
12106 | { | |
12107 | #endif | |
12108 | /* We use char because int might match the return type of a gcc2 | |
12109 | builtin and then its argument prototype would still apply. */ | |
12110 | char $ac_func (); | |
1012372a AC |
12111 | /* The GNU C library defines this for functions which it implements |
12112 | to always fail with ENOSYS. Some functions are actually named | |
12113 | something starting with __ and the normal name is an alias. */ | |
12114 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12115 | choke me | |
12116 | #else | |
5464f5a1 NN |
12117 | char (*f) () = $ac_func; |
12118 | #endif | |
12119 | #ifdef __cplusplus | |
12120 | } | |
1012372a AC |
12121 | #endif |
12122 | ||
5464f5a1 NN |
12123 | int |
12124 | main () | |
12125 | { | |
12126 | return f != $ac_func; | |
12127 | ; | |
12128 | return 0; | |
12129 | } | |
12130 | _ACEOF | |
12131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12133 | (eval $ac_link) 2>conftest.er1 | |
12134 | ac_status=$? | |
12135 | grep -v '^ *+' conftest.er1 >conftest.err | |
12136 | rm -f conftest.er1 | |
12137 | cat conftest.err >&5 | |
12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12139 | (exit $ac_status); } && | |
8fb84ecc AC |
12140 | { ac_try='test -z "$ac_c_werror_flag" |
12141 | || test ! -s conftest.err' | |
5464f5a1 NN |
12142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12143 | (eval $ac_try) 2>&5 | |
12144 | ac_status=$? | |
12145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12146 | (exit $ac_status); }; } && | |
12147 | { ac_try='test -s conftest$ac_exeext' | |
12148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12149 | (eval $ac_try) 2>&5 | |
12150 | ac_status=$? | |
12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12152 | (exit $ac_status); }; }; then | |
12153 | eval "$as_ac_var=yes" | |
12154 | else | |
12155 | echo "$as_me: failed program was:" >&5 | |
12156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12157 | ||
12158 | eval "$as_ac_var=no" | |
12159 | fi | |
12160 | rm -f conftest.err conftest.$ac_objext \ | |
12161 | conftest$ac_exeext conftest.$ac_ext | |
12162 | fi | |
12163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12164 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12165 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12166 | cat >>confdefs.h <<_ACEOF | |
12167 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12168 | _ACEOF | |
1012372a | 12169 | |
1012372a AC |
12170 | fi |
12171 | done | |
12172 | ||
1012372a | 12173 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then |
5464f5a1 NN |
12174 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
12175 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 | |
12176 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
12177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1012372a AC |
12178 | else |
12179 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. | |
5464f5a1 NN |
12180 | cat >conftest.$ac_ext <<_ACEOF |
12181 | /* confdefs.h. */ | |
12182 | _ACEOF | |
12183 | cat confdefs.h >>conftest.$ac_ext | |
12184 | cat >>conftest.$ac_ext <<_ACEOF | |
12185 | /* end confdefs.h. */ | |
1012372a AC |
12186 | #include "confdefs.h" |
12187 | #include <sys/types.h> | |
12188 | ||
12189 | ||
5464f5a1 NN |
12190 | int |
12191 | main () | |
12192 | { | |
1012372a | 12193 | switch (0) case 0: case (sizeof (off_t) == $ac_size):; |
5464f5a1 NN |
12194 | ; |
12195 | return 0; | |
12196 | } | |
12197 | _ACEOF | |
12198 | rm -f conftest.$ac_objext | |
12199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12200 | (eval $ac_compile) 2>conftest.er1 | |
12201 | ac_status=$? | |
12202 | grep -v '^ *+' conftest.er1 >conftest.err | |
12203 | rm -f conftest.er1 | |
12204 | cat conftest.err >&5 | |
12205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12206 | (exit $ac_status); } && | |
8fb84ecc AC |
12207 | { ac_try='test -z "$ac_c_werror_flag" |
12208 | || test ! -s conftest.err' | |
5464f5a1 NN |
12209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12210 | (eval $ac_try) 2>&5 | |
12211 | ac_status=$? | |
12212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12213 | (exit $ac_status); }; } && | |
12214 | { ac_try='test -s conftest.$ac_objext' | |
12215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12216 | (eval $ac_try) 2>&5 | |
12217 | ac_status=$? | |
12218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12219 | (exit $ac_status); }; }; then | |
1012372a AC |
12220 | ac_cv_sizeof_off_t=$ac_size |
12221 | else | |
5464f5a1 NN |
12222 | echo "$as_me: failed program was:" >&5 |
12223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12224 | ||
1012372a | 12225 | fi |
5464f5a1 | 12226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1012372a AC |
12227 | if test x$ac_cv_sizeof_off_t != x ; then break; fi |
12228 | done | |
12229 | ||
12230 | fi | |
12231 | ||
12232 | if test x$ac_cv_sizeof_off_t = x ; then | |
5464f5a1 NN |
12233 | { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5 |
12234 | echo "$as_me: error: cannot determine a size for off_t" >&2;} | |
12235 | { (exit 1); exit 1; }; } | |
1012372a | 12236 | fi |
5464f5a1 NN |
12237 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
12238 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 | |
12239 | ||
12240 | cat >>confdefs.h <<_ACEOF | |
1012372a | 12241 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
5464f5a1 | 12242 | _ACEOF |
1012372a AC |
12243 | |
12244 | ||
1012372a | 12245 | fi |
5464f5a1 NN |
12246 | echo "$as_me:$LINENO: checking file_ptr type" >&5 |
12247 | echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6 | |
ccba357f AM |
12248 | bfd_file_ptr="long" |
12249 | bfd_ufile_ptr="unsigned long" | |
12250 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
12251 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
12252 | bfd_file_ptr=BFD_HOST_64_BIT |
12253 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
12254 | fi | |
5464f5a1 NN |
12255 | echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5 |
12256 | echo "${ECHO_T}$bfd_file_ptr" >&6 | |
1012372a AC |
12257 | |
12258 | ||
12259 | ||
12260 | ||
252b5132 RH |
12261 | tdefaults="" |
12262 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
12263 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 12264 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 RH |
12265 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
12266 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
12267 | ||
6be7c12c | 12268 | |
5464f5a1 NN |
12269 | |
12270 | ||
12271 | for ac_header in stdlib.h unistd.h | |
252b5132 | 12272 | do |
5464f5a1 NN |
12273 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12275 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12277 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12279 | fi | |
12280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12281 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12282 | else | |
12283 | # Is the header compilable? | |
12284 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12286 | cat >conftest.$ac_ext <<_ACEOF | |
12287 | /* confdefs.h. */ | |
12288 | _ACEOF | |
12289 | cat confdefs.h >>conftest.$ac_ext | |
12290 | cat >>conftest.$ac_ext <<_ACEOF | |
12291 | /* end confdefs.h. */ | |
12292 | $ac_includes_default | |
12293 | #include <$ac_header> | |
12294 | _ACEOF | |
12295 | rm -f conftest.$ac_objext | |
12296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12297 | (eval $ac_compile) 2>conftest.er1 | |
12298 | ac_status=$? | |
12299 | grep -v '^ *+' conftest.er1 >conftest.err | |
12300 | rm -f conftest.er1 | |
12301 | cat conftest.err >&5 | |
12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12303 | (exit $ac_status); } && | |
8fb84ecc AC |
12304 | { ac_try='test -z "$ac_c_werror_flag" |
12305 | || test ! -s conftest.err' | |
5464f5a1 NN |
12306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12307 | (eval $ac_try) 2>&5 | |
12308 | ac_status=$? | |
12309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12310 | (exit $ac_status); }; } && | |
12311 | { ac_try='test -s conftest.$ac_objext' | |
12312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12313 | (eval $ac_try) 2>&5 | |
12314 | ac_status=$? | |
12315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12316 | (exit $ac_status); }; }; then | |
12317 | ac_header_compiler=yes | |
12318 | else | |
12319 | echo "$as_me: failed program was:" >&5 | |
12320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12321 | ||
12322 | ac_header_compiler=no | |
12323 | fi | |
12324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12325 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12326 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12327 | ||
12328 | # Is the header present? | |
12329 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12330 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12331 | cat >conftest.$ac_ext <<_ACEOF | |
12332 | /* confdefs.h. */ | |
12333 | _ACEOF | |
12334 | cat confdefs.h >>conftest.$ac_ext | |
12335 | cat >>conftest.$ac_ext <<_ACEOF | |
12336 | /* end confdefs.h. */ | |
12337 | #include <$ac_header> | |
12338 | _ACEOF | |
12339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12341 | ac_status=$? | |
12342 | grep -v '^ *+' conftest.er1 >conftest.err | |
12343 | rm -f conftest.er1 | |
12344 | cat conftest.err >&5 | |
12345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12346 | (exit $ac_status); } >/dev/null; then | |
12347 | if test -s conftest.err; then | |
12348 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12349 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12350 | else | |
12351 | ac_cpp_err= | |
12352 | fi | |
252b5132 | 12353 | else |
5464f5a1 | 12354 | ac_cpp_err=yes |
252b5132 | 12355 | fi |
5464f5a1 NN |
12356 | if test -z "$ac_cpp_err"; then |
12357 | ac_header_preproc=yes | |
12358 | else | |
12359 | echo "$as_me: failed program was:" >&5 | |
12360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12361 | ||
12362 | ac_header_preproc=no | |
252b5132 | 12363 | fi |
5464f5a1 NN |
12364 | rm -f conftest.err conftest.$ac_ext |
12365 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12366 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12367 | ||
12368 | # So? What about this header? | |
12369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12370 | yes:no: ) | |
12371 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12372 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12373 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12374 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12375 | ac_header_preproc=yes | |
12376 | ;; | |
12377 | no:yes:* ) | |
12378 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12379 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12380 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12381 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12382 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12383 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12384 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12385 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12388 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12389 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12390 | ( | |
12391 | cat <<\_ASBOX | |
12392 | ## ------------------------------------------ ## | |
12393 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12394 | ## ------------------------------------------ ## | |
12395 | _ASBOX | |
12396 | ) | | |
12397 | sed "s/^/$as_me: WARNING: /" >&2 | |
12398 | ;; | |
12399 | esac | |
12400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 12404 | else |
5464f5a1 NN |
12405 | eval "$as_ac_Header=\$ac_header_preproc" |
12406 | fi | |
12407 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12408 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12409 | ||
12410 | fi | |
12411 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12412 | cat >>confdefs.h <<_ACEOF | |
12413 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12414 | _ACEOF | |
12415 | ||
252b5132 | 12416 | fi |
5464f5a1 | 12417 | |
252b5132 RH |
12418 | done |
12419 | ||
5464f5a1 | 12420 | |
252b5132 RH |
12421 | for ac_func in getpagesize |
12422 | do | |
5464f5a1 NN |
12423 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12424 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12425 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12426 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12428 | else | |
12429 | cat >conftest.$ac_ext <<_ACEOF | |
12430 | /* confdefs.h. */ | |
12431 | _ACEOF | |
12432 | cat confdefs.h >>conftest.$ac_ext | |
12433 | cat >>conftest.$ac_ext <<_ACEOF | |
12434 | /* end confdefs.h. */ | |
12435 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12436 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12437 | #define $ac_func innocuous_$ac_func | |
12438 | ||
252b5132 | 12439 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
12440 | which can conflict with char $ac_func (); below. |
12441 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12442 | <limits.h> exists even on freestanding compilers. */ | |
12443 | ||
12444 | #ifdef __STDC__ | |
12445 | # include <limits.h> | |
12446 | #else | |
12447 | # include <assert.h> | |
12448 | #endif | |
6be7c12c | 12449 | |
5464f5a1 | 12450 | #undef $ac_func |
252b5132 | 12451 | |
5464f5a1 NN |
12452 | /* Override any gcc2 internal prototype to avoid an error. */ |
12453 | #ifdef __cplusplus | |
12454 | extern "C" | |
12455 | { | |
12456 | #endif | |
12457 | /* We use char because int might match the return type of a gcc2 | |
12458 | builtin and then its argument prototype would still apply. */ | |
12459 | char $ac_func (); | |
252b5132 RH |
12460 | /* The GNU C library defines this for functions which it implements |
12461 | to always fail with ENOSYS. Some functions are actually named | |
12462 | something starting with __ and the normal name is an alias. */ | |
12463 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12464 | choke me | |
12465 | #else | |
5464f5a1 NN |
12466 | char (*f) () = $ac_func; |
12467 | #endif | |
12468 | #ifdef __cplusplus | |
12469 | } | |
252b5132 RH |
12470 | #endif |
12471 | ||
5464f5a1 NN |
12472 | int |
12473 | main () | |
12474 | { | |
12475 | return f != $ac_func; | |
12476 | ; | |
12477 | return 0; | |
12478 | } | |
12479 | _ACEOF | |
12480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12482 | (eval $ac_link) 2>conftest.er1 | |
12483 | ac_status=$? | |
12484 | grep -v '^ *+' conftest.er1 >conftest.err | |
12485 | rm -f conftest.er1 | |
12486 | cat conftest.err >&5 | |
12487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12488 | (exit $ac_status); } && | |
8fb84ecc AC |
12489 | { ac_try='test -z "$ac_c_werror_flag" |
12490 | || test ! -s conftest.err' | |
5464f5a1 NN |
12491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12492 | (eval $ac_try) 2>&5 | |
12493 | ac_status=$? | |
12494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12495 | (exit $ac_status); }; } && | |
12496 | { ac_try='test -s conftest$ac_exeext' | |
12497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12498 | (eval $ac_try) 2>&5 | |
12499 | ac_status=$? | |
12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12501 | (exit $ac_status); }; }; then | |
12502 | eval "$as_ac_var=yes" | |
12503 | else | |
12504 | echo "$as_me: failed program was:" >&5 | |
12505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12506 | ||
12507 | eval "$as_ac_var=no" | |
12508 | fi | |
12509 | rm -f conftest.err conftest.$ac_objext \ | |
12510 | conftest$ac_exeext conftest.$ac_ext | |
12511 | fi | |
12512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12513 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12514 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12515 | cat >>confdefs.h <<_ACEOF | |
12516 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12517 | _ACEOF | |
252b5132 | 12518 | |
252b5132 RH |
12519 | fi |
12520 | done | |
12521 | ||
5464f5a1 NN |
12522 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
12523 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
12524 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
12525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
12526 | else |
12527 | if test "$cross_compiling" = yes; then | |
12528 | ac_cv_func_mmap_fixed_mapped=no | |
12529 | else | |
5464f5a1 NN |
12530 | cat >conftest.$ac_ext <<_ACEOF |
12531 | /* confdefs.h. */ | |
12532 | _ACEOF | |
12533 | cat confdefs.h >>conftest.$ac_ext | |
12534 | cat >>conftest.$ac_ext <<_ACEOF | |
12535 | /* end confdefs.h. */ | |
12536 | $ac_includes_default | |
12537 | /* malloc might have been renamed as rpl_malloc. */ | |
12538 | #undef malloc | |
6be7c12c | 12539 | |
252b5132 RH |
12540 | /* Thanks to Mike Haertel and Jim Avera for this test. |
12541 | Here is a matrix of mmap possibilities: | |
12542 | mmap private not fixed | |
12543 | mmap private fixed at somewhere currently unmapped | |
12544 | mmap private fixed at somewhere already mapped | |
12545 | mmap shared not fixed | |
12546 | mmap shared fixed at somewhere currently unmapped | |
12547 | mmap shared fixed at somewhere already mapped | |
12548 | For private mappings, we should verify that changes cannot be read() | |
12549 | back from the file, nor mmap's back from the file at a different | |
12550 | address. (There have been systems where private was not correctly | |
12551 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 12552 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
12553 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
12554 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 12555 | propagated back to all the places they're supposed to be. |
252b5132 RH |
12556 | |
12557 | Grep wants private fixed already mapped. | |
12558 | The main things grep needs to know about mmap are: | |
12559 | * does it exist and is it safe to write into the mmap'd area | |
12560 | * how to use it (BSD variants) */ | |
5464f5a1 | 12561 | |
252b5132 RH |
12562 | #include <fcntl.h> |
12563 | #include <sys/mman.h> | |
12564 | ||
5464f5a1 NN |
12565 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
12566 | char *malloc (); | |
12567 | #endif | |
6be7c12c | 12568 | |
5464f5a1 NN |
12569 | /* This mess was copied from the GNU getpagesize.h. */ |
12570 | #if !HAVE_GETPAGESIZE | |
252b5132 | 12571 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 12572 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
12573 | # define HAVE_SYS_PARAM_H 1 |
12574 | # endif | |
12575 | ||
12576 | # ifdef _SC_PAGESIZE | |
12577 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
12578 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 12579 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
12580 | # include <sys/param.h> |
12581 | # ifdef EXEC_PAGESIZE | |
12582 | # define getpagesize() EXEC_PAGESIZE | |
12583 | # else /* no EXEC_PAGESIZE */ | |
12584 | # ifdef NBPG | |
12585 | # define getpagesize() NBPG * CLSIZE | |
12586 | # ifndef CLSIZE | |
12587 | # define CLSIZE 1 | |
12588 | # endif /* no CLSIZE */ | |
12589 | # else /* no NBPG */ | |
12590 | # ifdef NBPC | |
12591 | # define getpagesize() NBPC | |
12592 | # else /* no NBPC */ | |
12593 | # ifdef PAGESIZE | |
12594 | # define getpagesize() PAGESIZE | |
12595 | # endif /* PAGESIZE */ | |
12596 | # endif /* no NBPC */ | |
12597 | # endif /* no NBPG */ | |
12598 | # endif /* no EXEC_PAGESIZE */ | |
12599 | # else /* no HAVE_SYS_PARAM_H */ | |
12600 | # define getpagesize() 8192 /* punt totally */ | |
12601 | # endif /* no HAVE_SYS_PARAM_H */ | |
12602 | # endif /* no _SC_PAGESIZE */ | |
12603 | ||
5464f5a1 NN |
12604 | #endif /* no HAVE_GETPAGESIZE */ |
12605 | ||
12606 | int | |
12607 | main () | |
12608 | { | |
12609 | char *data, *data2, *data3; | |
12610 | int i, pagesize; | |
12611 | int fd; | |
12612 | ||
12613 | pagesize = getpagesize (); | |
12614 | ||
12615 | /* First, make a file with some known garbage in it. */ | |
12616 | data = (char *) malloc (pagesize); | |
12617 | if (!data) | |
12618 | exit (1); | |
12619 | for (i = 0; i < pagesize; ++i) | |
12620 | *(data + i) = rand (); | |
12621 | umask (0); | |
12622 | fd = creat ("conftest.mmap", 0600); | |
12623 | if (fd < 0) | |
12624 | exit (1); | |
12625 | if (write (fd, data, pagesize) != pagesize) | |
12626 | exit (1); | |
12627 | close (fd); | |
12628 | ||
12629 | /* Next, try to mmap the file at a fixed address which already has | |
12630 | something else allocated at it. If we can, also make sure that | |
12631 | we see the same garbage. */ | |
12632 | fd = open ("conftest.mmap", O_RDWR); | |
12633 | if (fd < 0) | |
12634 | exit (1); | |
12635 | data2 = (char *) malloc (2 * pagesize); | |
12636 | if (!data2) | |
12637 | exit (1); | |
12638 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
12639 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
12640 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
12641 | exit (1); | |
12642 | for (i = 0; i < pagesize; ++i) | |
12643 | if (*(data + i) != *(data2 + i)) | |
12644 | exit (1); | |
12645 | ||
12646 | /* Finally, make sure that changes to the mapped area do not | |
12647 | percolate back to the file as seen by read(). (This is a bug on | |
12648 | some variants of i386 svr4.0.) */ | |
12649 | for (i = 0; i < pagesize; ++i) | |
12650 | *(data2 + i) = *(data2 + i) + 1; | |
12651 | data3 = (char *) malloc (pagesize); | |
12652 | if (!data3) | |
12653 | exit (1); | |
12654 | if (read (fd, data3, pagesize) != pagesize) | |
12655 | exit (1); | |
12656 | for (i = 0; i < pagesize; ++i) | |
12657 | if (*(data + i) != *(data3 + i)) | |
12658 | exit (1); | |
12659 | close (fd); | |
12660 | exit (0); | |
12661 | } | |
12662 | _ACEOF | |
12663 | rm -f conftest$ac_exeext | |
12664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12665 | (eval $ac_link) 2>&5 | |
12666 | ac_status=$? | |
12667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12668 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12670 | (eval $ac_try) 2>&5 | |
12671 | ac_status=$? | |
12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12673 | (exit $ac_status); }; }; then | |
12674 | ac_cv_func_mmap_fixed_mapped=yes | |
12675 | else | |
12676 | echo "$as_me: program exited with status $ac_status" >&5 | |
12677 | echo "$as_me: failed program was:" >&5 | |
12678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12679 | ||
12680 | ( exit $ac_status ) | |
12681 | ac_cv_func_mmap_fixed_mapped=no | |
12682 | fi | |
12683 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12684 | fi | |
12685 | fi | |
12686 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
12687 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
12688 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
12689 | ||
12690 | cat >>confdefs.h <<\_ACEOF | |
12691 | #define HAVE_MMAP 1 | |
12692 | _ACEOF | |
12693 | ||
12694 | fi | |
12695 | rm -f conftest.mmap | |
12696 | ||
12697 | ||
12698 | ||
12699 | for ac_func in madvise mprotect | |
12700 | do | |
12701 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12702 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12703 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12704 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12706 | else | |
12707 | cat >conftest.$ac_ext <<_ACEOF | |
12708 | /* confdefs.h. */ | |
12709 | _ACEOF | |
12710 | cat confdefs.h >>conftest.$ac_ext | |
12711 | cat >>conftest.$ac_ext <<_ACEOF | |
12712 | /* end confdefs.h. */ | |
12713 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12714 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12715 | #define $ac_func innocuous_$ac_func | |
12716 | ||
12717 | /* System header to define __stub macros and hopefully few prototypes, | |
12718 | which can conflict with char $ac_func (); below. | |
12719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12720 | <limits.h> exists even on freestanding compilers. */ | |
12721 | ||
12722 | #ifdef __STDC__ | |
12723 | # include <limits.h> | |
12724 | #else | |
12725 | # include <assert.h> | |
12726 | #endif | |
12727 | ||
12728 | #undef $ac_func | |
12729 | ||
12730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12731 | #ifdef __cplusplus | |
12732 | extern "C" | |
12733 | { | |
12734 | #endif | |
12735 | /* We use char because int might match the return type of a gcc2 | |
12736 | builtin and then its argument prototype would still apply. */ | |
12737 | char $ac_func (); | |
12738 | /* The GNU C library defines this for functions which it implements | |
12739 | to always fail with ENOSYS. Some functions are actually named | |
12740 | something starting with __ and the normal name is an alias. */ | |
12741 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12742 | choke me | |
12743 | #else | |
12744 | char (*f) () = $ac_func; | |
12745 | #endif | |
12746 | #ifdef __cplusplus | |
12747 | } | |
12748 | #endif | |
12749 | ||
12750 | int | |
12751 | main () | |
12752 | { | |
12753 | return f != $ac_func; | |
12754 | ; | |
12755 | return 0; | |
12756 | } | |
12757 | _ACEOF | |
12758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12760 | (eval $ac_link) 2>conftest.er1 | |
12761 | ac_status=$? | |
12762 | grep -v '^ *+' conftest.er1 >conftest.err | |
12763 | rm -f conftest.er1 | |
12764 | cat conftest.err >&5 | |
12765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12766 | (exit $ac_status); } && | |
8fb84ecc AC |
12767 | { ac_try='test -z "$ac_c_werror_flag" |
12768 | || test ! -s conftest.err' | |
5464f5a1 NN |
12769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12770 | (eval $ac_try) 2>&5 | |
12771 | ac_status=$? | |
12772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12773 | (exit $ac_status); }; } && | |
12774 | { ac_try='test -s conftest$ac_exeext' | |
12775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12776 | (eval $ac_try) 2>&5 | |
12777 | ac_status=$? | |
12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12779 | (exit $ac_status); }; }; then | |
12780 | eval "$as_ac_var=yes" | |
12781 | else | |
12782 | echo "$as_me: failed program was:" >&5 | |
12783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12784 | ||
12785 | eval "$as_ac_var=no" | |
12786 | fi | |
12787 | rm -f conftest.err conftest.$ac_objext \ | |
12788 | conftest$ac_exeext conftest.$ac_ext | |
12789 | fi | |
12790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12791 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12792 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12793 | cat >>confdefs.h <<_ACEOF | |
12794 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12795 | _ACEOF | |
12796 | ||
12797 | fi | |
12798 | done | |
12799 | ||
12800 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
12801 | true+yes ) | |
12802 | cat >>confdefs.h <<\_ACEOF | |
12803 | #define USE_MMAP 1 | |
12804 | _ACEOF | |
12805 | ;; | |
12806 | esac | |
12807 | ||
12808 | rm -f doc/config.status | |
12809 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" | |
12810 | ||
12811 | ac_config_commands="$ac_config_commands default" | |
12812 | ||
12813 | cat >confcache <<\_ACEOF | |
12814 | # This file is a shell script that caches the results of configure | |
12815 | # tests run on this system so they can be shared between configure | |
12816 | # scripts and configure runs, see configure's option --config-cache. | |
12817 | # It is not useful on other systems. If it contains results you don't | |
12818 | # want to keep, you may remove or edit it. | |
12819 | # | |
12820 | # config.status only pays attention to the cache file if you give it | |
12821 | # the --recheck option to rerun configure. | |
12822 | # | |
12823 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12824 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12825 | # following values. | |
12826 | ||
12827 | _ACEOF | |
12828 | ||
12829 | # The following way of writing the cache mishandles newlines in values, | |
12830 | # but we know of no workaround that is simple, portable, and efficient. | |
12831 | # So, don't put newlines in cache variables' values. | |
12832 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12833 | # and sets the high bit in the cache file unless we assign to the vars. | |
12834 | { | |
12835 | (set) 2>&1 | | |
12836 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12837 | *ac_space=\ *) | |
12838 | # `set' does not quote correctly, so add quotes (double-quote | |
12839 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12840 | sed -n \ | |
12841 | "s/'/'\\\\''/g; | |
12842 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12843 | ;; | |
12844 | *) | |
12845 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12846 | sed -n \ | |
12847 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
12848 | ;; | |
12849 | esac; | |
12850 | } | | |
12851 | sed ' | |
12852 | t clear | |
12853 | : clear | |
12854 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12855 | t end | |
12856 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12857 | : end' >>confcache | |
12858 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
12859 | if test -w $cache_file; then | |
12860 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
12861 | cat confcache >$cache_file | |
12862 | else | |
12863 | echo "not updating unwritable cache $cache_file" | |
12864 | fi | |
12865 | fi | |
12866 | rm -f confcache | |
12867 | ||
12868 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12869 | # Let make expand exec_prefix. | |
12870 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12871 | ||
12872 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
12873 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12874 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12875 | # (actually we leave an empty line to preserve line numbers). | |
12876 | if test "x$srcdir" = x.; then | |
12877 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12878 | s/:*\$(srcdir):*/:/; | |
12879 | s/:*\${srcdir}:*/:/; | |
12880 | s/:*@srcdir@:*/:/; | |
12881 | s/^\([^=]*=[ ]*\):*/\1/; | |
12882 | s/:*$//; | |
12883 | s/^[^=]*=[ ]*$//; | |
12884 | }' | |
12885 | fi | |
12886 | ||
12887 | DEFS=-DHAVE_CONFIG_H | |
12888 | ||
12889 | ac_libobjs= | |
12890 | ac_ltlibobjs= | |
12891 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12892 | # 1. Remove the extension, and $U if already installed. | |
12893 | ac_i=`echo "$ac_i" | | |
12894 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
12895 | # 2. Add them. | |
12896 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
12897 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
12898 | done | |
12899 | LIBOBJS=$ac_libobjs | |
12900 | ||
12901 | LTLIBOBJS=$ac_ltlibobjs | |
12902 | ||
12903 | ||
f5385ebf AM |
12904 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
12905 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
12906 | Usually this means the macro was only invoked conditionally." >&5 | |
12907 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
12908 | Usually this means the macro was only invoked conditionally." >&2;} | |
12909 | { (exit 1); exit 1; }; } | |
12910 | fi | |
12911 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
12912 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
12913 | Usually this means the macro was only invoked conditionally." >&5 | |
12914 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
12915 | Usually this means the macro was only invoked conditionally." >&2;} | |
12916 | { (exit 1); exit 1; }; } | |
12917 | fi | |
12918 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
12919 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
12920 | Usually this means the macro was only invoked conditionally." >&5 | |
12921 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
12922 | Usually this means the macro was only invoked conditionally." >&2;} | |
12923 | { (exit 1); exit 1; }; } | |
12924 | fi | |
12925 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then | |
12926 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
12927 | Usually this means the macro was only invoked conditionally." >&5 | |
12928 | echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
12929 | Usually this means the macro was only invoked conditionally." >&2;} | |
12930 | { (exit 1); exit 1; }; } | |
12931 | fi | |
5464f5a1 NN |
12932 | |
12933 | : ${CONFIG_STATUS=./config.status} | |
12934 | ac_clean_files_save=$ac_clean_files | |
12935 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
12936 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
12937 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
12938 | cat >$CONFIG_STATUS <<_ACEOF | |
12939 | #! $SHELL | |
12940 | # Generated by $as_me. | |
12941 | # Run this file to recreate the current configuration. | |
12942 | # Compiler output produced by configure, useful for debugging | |
12943 | # configure, is in config.log if it exists. | |
12944 | ||
12945 | debug=false | |
12946 | ac_cs_recheck=false | |
12947 | ac_cs_silent=false | |
12948 | SHELL=\${CONFIG_SHELL-$SHELL} | |
12949 | _ACEOF | |
12950 | ||
12951 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12952 | ## --------------------- ## | |
12953 | ## M4sh Initialization. ## | |
12954 | ## --------------------- ## | |
12955 | ||
12956 | # Be Bourne compatible | |
12957 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12958 | emulate sh | |
12959 | NULLCMD=: | |
12960 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
12961 | # is contrary to our usage. Disable this feature. | |
12962 | alias -g '${1+"$@"}'='"$@"' | |
12963 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
12964 | set -o posix | |
12965 | fi | |
12966 | DUALCASE=1; export DUALCASE # for MKS sh | |
12967 | ||
12968 | # Support unset when possible. | |
12969 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
12970 | as_unset=unset | |
12971 | else | |
12972 | as_unset=false | |
12973 | fi | |
12974 | ||
12975 | ||
12976 | # Work around bugs in pre-3.0 UWIN ksh. | |
12977 | $as_unset ENV MAIL MAILPATH | |
12978 | PS1='$ ' | |
12979 | PS2='> ' | |
12980 | PS4='+ ' | |
12981 | ||
12982 | # NLS nuisances. | |
12983 | for as_var in \ | |
12984 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
12985 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
12986 | LC_TELEPHONE LC_TIME | |
12987 | do | |
12988 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
12989 | eval $as_var=C; export $as_var | |
12990 | else | |
12991 | $as_unset $as_var | |
12992 | fi | |
12993 | done | |
12994 | ||
12995 | # Required to use basename. | |
12996 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
12997 | as_expr=expr | |
12998 | else | |
12999 | as_expr=false | |
13000 | fi | |
13001 | ||
13002 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
13003 | as_basename=basename | |
13004 | else | |
13005 | as_basename=false | |
13006 | fi | |
252b5132 | 13007 | |
6be7c12c | 13008 | |
5464f5a1 NN |
13009 | # Name of the executable. |
13010 | as_me=`$as_basename "$0" || | |
13011 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13012 | X"$0" : 'X\(//\)$' \| \ | |
13013 | X"$0" : 'X\(/\)$' \| \ | |
13014 | . : '\(.\)' 2>/dev/null || | |
13015 | echo X/"$0" | | |
13016 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
13017 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
13018 | /^X\/\(\/\).*/{ s//\1/; q; } | |
13019 | s/.*/./; q'` | |
13020 | ||
13021 | ||
13022 | # PATH needs CR, and LINENO needs CR and PATH. | |
13023 | # Avoid depending upon Character Ranges. | |
13024 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13025 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13026 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13027 | as_cr_digits='0123456789' | |
13028 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13029 | ||
13030 | # The user is always right. | |
13031 | if test "${PATH_SEPARATOR+set}" != set; then | |
13032 | echo "#! /bin/sh" >conf$$.sh | |
13033 | echo "exit 0" >>conf$$.sh | |
13034 | chmod +x conf$$.sh | |
13035 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13036 | PATH_SEPARATOR=';' | |
13037 | else | |
13038 | PATH_SEPARATOR=: | |
13039 | fi | |
13040 | rm -f conf$$.sh | |
13041 | fi | |
13042 | ||
13043 | ||
13044 | as_lineno_1=$LINENO | |
13045 | as_lineno_2=$LINENO | |
13046 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
13047 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13048 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
13049 | # Find who we are. Look in the path if we contain no path at all | |
13050 | # relative or not. | |
13051 | case $0 in | |
13052 | *[\\/]* ) as_myself=$0 ;; | |
13053 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13054 | for as_dir in $PATH | |
13055 | do | |
13056 | IFS=$as_save_IFS | |
13057 | test -z "$as_dir" && as_dir=. | |
13058 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13059 | done | |
13060 | ||
13061 | ;; | |
13062 | esac | |
13063 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13064 | # in which case we are not to be found in the path. | |
13065 | if test "x$as_myself" = x; then | |
13066 | as_myself=$0 | |
13067 | fi | |
13068 | if test ! -f "$as_myself"; then | |
13069 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
13070 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
13071 | { (exit 1); exit 1; }; } | |
13072 | fi | |
13073 | case $CONFIG_SHELL in | |
13074 | '') | |
13075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13076 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
13077 | do | |
13078 | IFS=$as_save_IFS | |
13079 | test -z "$as_dir" && as_dir=. | |
13080 | for as_base in sh bash ksh sh5; do | |
13081 | case $as_dir in | |
13082 | /*) | |
13083 | if ("$as_dir/$as_base" -c ' | |
13084 | as_lineno_1=$LINENO | |
13085 | as_lineno_2=$LINENO | |
13086 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
13087 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13088 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
13089 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
13090 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
13091 | CONFIG_SHELL=$as_dir/$as_base | |
13092 | export CONFIG_SHELL | |
13093 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
13094 | fi;; | |
13095 | esac | |
13096 | done | |
13097 | done | |
13098 | ;; | |
13099 | esac | |
13100 | ||
13101 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
13102 | # uniformly replaced by the line number. The first 'sed' inserts a | |
13103 | # line-number line before each line; the second 'sed' does the real | |
13104 | # work. The second script uses 'N' to pair each line-number line | |
13105 | # with the numbered line, and appends trailing '-' during | |
13106 | # substitution so that $LINENO is not a special case at line end. | |
13107 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
13108 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
13109 | sed '=' <$as_myself | | |
13110 | sed ' | |
13111 | N | |
13112 | s,$,-, | |
13113 | : loop | |
13114 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
13115 | t loop | |
13116 | s,-$,, | |
13117 | s,^['$as_cr_digits']*\n,, | |
13118 | ' >$as_me.lineno && | |
13119 | chmod +x $as_me.lineno || | |
13120 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
13121 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
13122 | { (exit 1); exit 1; }; } | |
13123 | ||
13124 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13125 | # (the dirname of $[0] is not the place where we might find the | |
13126 | # original and so on. Autoconf is especially sensible to this). | |
13127 | . ./$as_me.lineno | |
13128 | # Exit status is that of the last command. | |
13129 | exit | |
252b5132 | 13130 | } |
6be7c12c | 13131 | |
5464f5a1 NN |
13132 | |
13133 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
13134 | *c*,-n*) ECHO_N= ECHO_C=' | |
13135 | ' ECHO_T=' ' ;; | |
13136 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
13137 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
13138 | esac | |
13139 | ||
13140 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
13141 | as_expr=expr | |
252b5132 | 13142 | else |
5464f5a1 | 13143 | as_expr=false |
252b5132 | 13144 | fi |
5464f5a1 NN |
13145 | |
13146 | rm -f conf$$ conf$$.exe conf$$.file | |
13147 | echo >conf$$.file | |
13148 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13149 | # We could just check for DJGPP; but this test a) works b) is more generic | |
13150 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
13151 | if test -f conf$$.exe; then | |
13152 | # Don't use ln at all; we don't have any links | |
13153 | as_ln_s='cp -p' | |
13154 | else | |
13155 | as_ln_s='ln -s' | |
13156 | fi | |
13157 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13158 | as_ln_s=ln | |
13159 | else | |
13160 | as_ln_s='cp -p' | |
252b5132 | 13161 | fi |
5464f5a1 | 13162 | rm -f conf$$ conf$$.exe conf$$.file |
6be7c12c | 13163 | |
5464f5a1 NN |
13164 | if mkdir -p . 2>/dev/null; then |
13165 | as_mkdir_p=: | |
13166 | else | |
13167 | test -d ./-p && rmdir ./-p | |
13168 | as_mkdir_p=false | |
252b5132 | 13169 | fi |
b3baf5d0 | 13170 | |
5464f5a1 | 13171 | as_executable_p="test -f" |
252b5132 | 13172 | |
5464f5a1 NN |
13173 | # Sed expression to map a string onto a valid CPP name. |
13174 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
252b5132 | 13175 | |
5464f5a1 NN |
13176 | # Sed expression to map a string onto a valid variable name. |
13177 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6be7c12c | 13178 | |
252b5132 | 13179 | |
5464f5a1 NN |
13180 | # IFS |
13181 | # We need space, tab and new line, in precisely that order. | |
13182 | as_nl=' | |
13183 | ' | |
13184 | IFS=" $as_nl" | |
252b5132 | 13185 | |
5464f5a1 NN |
13186 | # CDPATH. |
13187 | $as_unset CDPATH | |
13188 | ||
13189 | exec 6>&1 | |
13190 | ||
13191 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
13192 | # report actual input values of CONFIG_FILES etc. instead of their | |
13193 | # values after options handling. Logging --version etc. is OK. | |
13194 | exec 5>>config.log | |
13195 | { | |
13196 | echo | |
13197 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13198 | ## Running $as_me. ## | |
13199 | _ASBOX | |
13200 | } >&5 | |
13201 | cat >&5 <<_CSEOF | |
13202 | ||
13203 | This file was extended by $as_me, which was | |
13204 | generated by GNU Autoconf 2.59. Invocation command line was | |
13205 | ||
13206 | CONFIG_FILES = $CONFIG_FILES | |
13207 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13208 | CONFIG_LINKS = $CONFIG_LINKS | |
13209 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13210 | $ $0 $@ | |
13211 | ||
13212 | _CSEOF | |
13213 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
13214 | echo >&5 | |
13215 | _ACEOF | |
13216 | ||
13217 | # Files that config.status was made for. | |
13218 | if test -n "$ac_config_files"; then | |
13219 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6be7c12c | 13220 | fi |
5464f5a1 NN |
13221 | |
13222 | if test -n "$ac_config_headers"; then | |
13223 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6be7c12c | 13224 | fi |
252b5132 | 13225 | |
5464f5a1 NN |
13226 | if test -n "$ac_config_links"; then |
13227 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 | 13228 | fi |
252b5132 | 13229 | |
5464f5a1 NN |
13230 | if test -n "$ac_config_commands"; then |
13231 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
13232 | fi | |
252b5132 | 13233 | |
5464f5a1 NN |
13234 | cat >>$CONFIG_STATUS <<\_ACEOF |
13235 | ||
13236 | ac_cs_usage="\ | |
13237 | \`$as_me' instantiates files from templates according to the | |
13238 | current configuration. | |
13239 | ||
13240 | Usage: $0 [OPTIONS] [FILE]... | |
13241 | ||
13242 | -h, --help print this help, then exit | |
13243 | -V, --version print version number, then exit | |
13244 | -q, --quiet do not print progress messages | |
13245 | -d, --debug don't remove temporary files | |
13246 | --recheck update $as_me by reconfiguring in the same conditions | |
13247 | --file=FILE[:TEMPLATE] | |
13248 | instantiate the configuration file FILE | |
13249 | --header=FILE[:TEMPLATE] | |
13250 | instantiate the configuration header FILE | |
13251 | ||
13252 | Configuration files: | |
13253 | $config_files | |
13254 | ||
13255 | Configuration headers: | |
13256 | $config_headers | |
13257 | ||
13258 | Configuration commands: | |
13259 | $config_commands | |
13260 | ||
13261 | Report bugs to <bug-autoconf@gnu.org>." | |
13262 | _ACEOF | |
13263 | ||
13264 | cat >>$CONFIG_STATUS <<_ACEOF | |
13265 | ac_cs_version="\\ | |
13266 | config.status | |
13267 | configured by $0, generated by GNU Autoconf 2.59, | |
13268 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
13269 | ||
13270 | Copyright (C) 2003 Free Software Foundation, Inc. | |
13271 | This config.status script is free software; the Free Software Foundation | |
13272 | gives unlimited permission to copy, distribute and modify it." | |
13273 | srcdir=$srcdir | |
13274 | INSTALL="$INSTALL" | |
13275 | _ACEOF | |
13276 | ||
13277 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13278 | # If no file are specified by the user, then we need to provide default | |
13279 | # value. By we need to know if files were specified by the user. | |
13280 | ac_need_defaults=: | |
13281 | while test $# != 0 | |
13282 | do | |
13283 | case $1 in | |
13284 | --*=*) | |
13285 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
13286 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
13287 | ac_shift=: | |
6be7c12c | 13288 | ;; |
5464f5a1 NN |
13289 | -*) |
13290 | ac_option=$1 | |
13291 | ac_optarg=$2 | |
13292 | ac_shift=shift | |
6be7c12c | 13293 | ;; |
5464f5a1 NN |
13294 | *) # This is not an option, so the user has probably given explicit |
13295 | # arguments. | |
13296 | ac_option=$1 | |
13297 | ac_need_defaults=false;; | |
13298 | esac | |
252b5132 | 13299 | |
5464f5a1 NN |
13300 | case $ac_option in |
13301 | # Handling of the options. | |
13302 | _ACEOF | |
13303 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13304 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13305 | ac_cs_recheck=: ;; | |
13306 | --version | --vers* | -V ) | |
13307 | echo "$ac_cs_version"; exit 0 ;; | |
13308 | --he | --h) | |
13309 | # Conflict between --help and --header | |
13310 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
13311 | Try \`$0 --help' for more information." >&5 | |
13312 | echo "$as_me: error: ambiguous option: $1 | |
13313 | Try \`$0 --help' for more information." >&2;} | |
13314 | { (exit 1); exit 1; }; };; | |
13315 | --help | --hel | -h ) | |
13316 | echo "$ac_cs_usage"; exit 0 ;; | |
13317 | --debug | --d* | -d ) | |
13318 | debug=: ;; | |
13319 | --file | --fil | --fi | --f ) | |
13320 | $ac_shift | |
13321 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
13322 | ac_need_defaults=false;; | |
13323 | --header | --heade | --head | --hea ) | |
13324 | $ac_shift | |
13325 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
13326 | ac_need_defaults=false;; | |
13327 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13328 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13329 | ac_cs_silent=: ;; | |
6be7c12c | 13330 | |
5464f5a1 NN |
13331 | # This is an error. |
13332 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
13333 | Try \`$0 --help' for more information." >&5 | |
13334 | echo "$as_me: error: unrecognized option: $1 | |
13335 | Try \`$0 --help' for more information." >&2;} | |
13336 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 13337 | |
5464f5a1 | 13338 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 13339 | |
5464f5a1 NN |
13340 | esac |
13341 | shift | |
13342 | done | |
6be7c12c | 13343 | |
5464f5a1 | 13344 | ac_configure_extra_args= |
252b5132 | 13345 | |
5464f5a1 NN |
13346 | if $ac_cs_silent; then |
13347 | exec 6>/dev/null | |
13348 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13349 | fi | |
6be7c12c | 13350 | |
5464f5a1 NN |
13351 | _ACEOF |
13352 | cat >>$CONFIG_STATUS <<_ACEOF | |
13353 | if \$ac_cs_recheck; then | |
13354 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
13355 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
13356 | fi | |
13357 | ||
13358 | _ACEOF | |
13359 | ||
13360 | cat >>$CONFIG_STATUS <<_ACEOF | |
6be7c12c | 13361 | # |
5464f5a1 | 13362 | # INIT-COMMANDS section. |
6be7c12c | 13363 | # |
b3baf5d0 | 13364 | |
f5385ebf | 13365 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
5464f5a1 NN |
13366 | |
13367 | ||
13368 | _ACEOF | |
13369 | ||
13370 | ||
13371 | ||
13372 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13373 | for ac_config_target in $ac_config_targets | |
252b5132 | 13374 | do |
5464f5a1 NN |
13375 | case "$ac_config_target" in |
13376 | # Handling of arguments. | |
13377 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13378 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
13379 | "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
13380 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
f5385ebf | 13381 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
5464f5a1 NN |
13382 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
13383 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
13384 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
13385 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
13386 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
13387 | esac |
13388 | done | |
13389 | ||
5464f5a1 NN |
13390 | # If the user did not use the arguments to specify the items to instantiate, |
13391 | # then the envvar interface is used. Set only those that are not. | |
13392 | # We use the long form for the default assignment because of an extremely | |
13393 | # bizarre bug on SunOS 4.1.3. | |
13394 | if $ac_need_defaults; then | |
13395 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13396 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13397 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13398 | fi | |
13399 | ||
13400 | # Have a temporary directory for convenience. Make it in the build tree | |
13401 | # simply because there is no reason to put it here, and in addition, | |
13402 | # creating and moving files from /tmp can sometimes cause problems. | |
13403 | # Create a temporary directory, and hook for its removal unless debugging. | |
13404 | $debug || | |
13405 | { | |
13406 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
13407 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
13408 | } | |
b3baf5d0 | 13409 | |
5464f5a1 | 13410 | # Create a (secure) tmp directory for tmp files. |
b3baf5d0 | 13411 | |
5464f5a1 NN |
13412 | { |
13413 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
13414 | test -n "$tmp" && test -d "$tmp" | |
13415 | } || | |
13416 | { | |
13417 | tmp=./confstat$$-$RANDOM | |
13418 | (umask 077 && mkdir $tmp) | |
13419 | } || | |
13420 | { | |
13421 | echo "$me: cannot create a temporary directory in ." >&2 | |
13422 | { (exit 1); exit 1; } | |
13423 | } | |
13424 | ||
13425 | _ACEOF | |
13426 | ||
13427 | cat >>$CONFIG_STATUS <<_ACEOF | |
13428 | ||
13429 | # | |
13430 | # CONFIG_FILES section. | |
13431 | # | |
b3baf5d0 | 13432 | |
5464f5a1 NN |
13433 | # No need to generate the scripts if there are no CONFIG_FILES. |
13434 | # This happens for instance when ./config.status config.h | |
13435 | if test -n "\$CONFIG_FILES"; then | |
13436 | # Protect against being on the right side of a sed subst in config.status. | |
13437 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
13438 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
13439 | s,@SHELL@,$SHELL,;t t | |
13440 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
13441 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
13442 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
13443 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
13444 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
13445 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
13446 | s,@exec_prefix@,$exec_prefix,;t t | |
13447 | s,@prefix@,$prefix,;t t | |
13448 | s,@program_transform_name@,$program_transform_name,;t t | |
13449 | s,@bindir@,$bindir,;t t | |
13450 | s,@sbindir@,$sbindir,;t t | |
13451 | s,@libexecdir@,$libexecdir,;t t | |
13452 | s,@datadir@,$datadir,;t t | |
13453 | s,@sysconfdir@,$sysconfdir,;t t | |
13454 | s,@sharedstatedir@,$sharedstatedir,;t t | |
13455 | s,@localstatedir@,$localstatedir,;t t | |
13456 | s,@libdir@,$libdir,;t t | |
13457 | s,@includedir@,$includedir,;t t | |
13458 | s,@oldincludedir@,$oldincludedir,;t t | |
13459 | s,@infodir@,$infodir,;t t | |
13460 | s,@mandir@,$mandir,;t t | |
13461 | s,@build_alias@,$build_alias,;t t | |
13462 | s,@host_alias@,$host_alias,;t t | |
13463 | s,@target_alias@,$target_alias,;t t | |
13464 | s,@DEFS@,$DEFS,;t t | |
13465 | s,@ECHO_C@,$ECHO_C,;t t | |
13466 | s,@ECHO_N@,$ECHO_N,;t t | |
13467 | s,@ECHO_T@,$ECHO_T,;t t | |
13468 | s,@LIBS@,$LIBS,;t t | |
13469 | s,@build@,$build,;t t | |
13470 | s,@build_cpu@,$build_cpu,;t t | |
13471 | s,@build_vendor@,$build_vendor,;t t | |
13472 | s,@build_os@,$build_os,;t t | |
13473 | s,@host@,$host,;t t | |
13474 | s,@host_cpu@,$host_cpu,;t t | |
13475 | s,@host_vendor@,$host_vendor,;t t | |
13476 | s,@host_os@,$host_os,;t t | |
13477 | s,@target@,$target,;t t | |
13478 | s,@target_cpu@,$target_cpu,;t t | |
13479 | s,@target_vendor@,$target_vendor,;t t | |
13480 | s,@target_os@,$target_os,;t t | |
13481 | s,@CC@,$CC,;t t | |
13482 | s,@CFLAGS@,$CFLAGS,;t t | |
13483 | s,@LDFLAGS@,$LDFLAGS,;t t | |
13484 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
13485 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
13486 | s,@EXEEXT@,$EXEEXT,;t t | |
13487 | s,@OBJEXT@,$OBJEXT,;t t | |
13488 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
13489 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
13490 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
f5385ebf | 13491 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
5464f5a1 NN |
13492 | s,@PACKAGE@,$PACKAGE,;t t |
13493 | s,@VERSION@,$VERSION,;t t | |
13494 | s,@ACLOCAL@,$ACLOCAL,;t t | |
13495 | s,@AUTOCONF@,$AUTOCONF,;t t | |
13496 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
13497 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
13498 | s,@MAKEINFO@,$MAKEINFO,;t t | |
f5385ebf AM |
13499 | s,@install_sh@,$install_sh,;t t |
13500 | s,@STRIP@,$STRIP,;t t | |
13501 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
13502 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
13503 | s,@mkdir_p@,$mkdir_p,;t t | |
13504 | s,@AWK@,$AWK,;t t | |
5464f5a1 | 13505 | s,@SET_MAKE@,$SET_MAKE,;t t |
f5385ebf AM |
13506 | s,@am__leading_dot@,$am__leading_dot,;t t |
13507 | s,@AMTAR@,$AMTAR,;t t | |
13508 | s,@am__tar@,$am__tar,;t t | |
13509 | s,@am__untar@,$am__untar,;t t | |
13510 | s,@DEPDIR@,$DEPDIR,;t t | |
13511 | s,@am__include@,$am__include,;t t | |
13512 | s,@am__quote@,$am__quote,;t t | |
13513 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
13514 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
13515 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
13516 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
13517 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
13518 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
5464f5a1 NN |
13519 | s,@AR@,$AR,;t t |
13520 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
13521 | s,@RANLIB@,$RANLIB,;t t | |
13522 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
13523 | s,@LN_S@,$LN_S,;t t | |
5464f5a1 NN |
13524 | s,@LIBTOOL@,$LIBTOOL,;t t |
13525 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
9e9b66a9 | 13526 | s,@NO_WERROR@,$NO_WERROR,;t t |
5464f5a1 NN |
13527 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
13528 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
13529 | s,@MAINT@,$MAINT,;t t | |
13530 | s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t | |
13531 | s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t | |
24443139 AS |
13532 | s,@host_noncanonical@,$host_noncanonical,;t t |
13533 | s,@target_noncanonical@,$target_noncanonical,;t t | |
5464f5a1 NN |
13534 | s,@bfdlibdir@,$bfdlibdir,;t t |
13535 | s,@bfdincludedir@,$bfdincludedir,;t t | |
13536 | s,@CPP@,$CPP,;t t | |
13537 | s,@EGREP@,$EGREP,;t t | |
13538 | s,@ALLOCA@,$ALLOCA,;t t | |
13539 | s,@USE_NLS@,$USE_NLS,;t t | |
13540 | s,@MSGFMT@,$MSGFMT,;t t | |
13541 | s,@GMSGFMT@,$GMSGFMT,;t t | |
13542 | s,@XGETTEXT@,$XGETTEXT,;t t | |
13543 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
13544 | s,@CATALOGS@,$CATALOGS,;t t | |
13545 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
13546 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
13547 | s,@GMOFILES@,$GMOFILES,;t t | |
13548 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
13549 | s,@INTLDEPS@,$INTLDEPS,;t t | |
13550 | s,@INTLLIBS@,$INTLLIBS,;t t | |
13551 | s,@INTLOBJS@,$INTLOBJS,;t t | |
13552 | s,@POFILES@,$POFILES,;t t | |
13553 | s,@POSUB@,$POSUB,;t t | |
13554 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
13555 | s,@GT_NO@,$GT_NO,;t t | |
13556 | s,@GT_YES@,$GT_YES,;t t | |
13557 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
13558 | s,@l@,$l,;t t | |
13559 | s,@HDEFINES@,$HDEFINES,;t t | |
13560 | s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t | |
13561 | s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t | |
13562 | s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t | |
13563 | s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t | |
13564 | s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t | |
13565 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
13566 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
13567 | s,@COREFILE@,$COREFILE,;t t | |
13568 | s,@COREFLAG@,$COREFLAG,;t t | |
13569 | s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t | |
13570 | s,@WIN32LIBADD@,$WIN32LIBADD,;t t | |
13571 | s,@TDEFINES@,$TDEFINES,;t t | |
13572 | s,@wordsize@,$wordsize,;t t | |
13573 | s,@bfd_libs@,$bfd_libs,;t t | |
13574 | s,@all_backends@,$all_backends,;t t | |
13575 | s,@bfd_backends@,$bfd_backends,;t t | |
13576 | s,@bfd_machines@,$bfd_machines,;t t | |
13577 | s,@bfd_default_target_size@,$bfd_default_target_size,;t t | |
13578 | s,@bfd_file_ptr@,$bfd_file_ptr,;t t | |
13579 | s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t | |
13580 | s,@tdefaults@,$tdefaults,;t t | |
13581 | s,@LIBOBJS@,$LIBOBJS,;t t | |
13582 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 13583 | CEOF |
252b5132 | 13584 | |
5464f5a1 NN |
13585 | _ACEOF |
13586 | ||
13587 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13588 | # Split the substitutions into bite-sized pieces for seds with | |
13589 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13590 | ac_max_sed_lines=48 | |
13591 | ac_sed_frag=1 # Number of current file. | |
13592 | ac_beg=1 # First line for current file. | |
13593 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
13594 | ac_more_lines=: | |
13595 | ac_sed_cmds= | |
13596 | while $ac_more_lines; do | |
13597 | if test $ac_beg -gt 1; then | |
13598 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 13599 | else |
5464f5a1 NN |
13600 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
13601 | fi | |
13602 | if test ! -s $tmp/subs.frag; then | |
13603 | ac_more_lines=false | |
13604 | else | |
13605 | # The purpose of the label and of the branching condition is to | |
13606 | # speed up the sed processing (if there are no `@' at all, there | |
13607 | # is no need to browse any of the substitutions). | |
13608 | # These are the two extra sed commands mentioned above. | |
13609 | (echo ':t | |
13610 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
13611 | if test -z "$ac_sed_cmds"; then | |
13612 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
13613 | else | |
13614 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
13615 | fi | |
13616 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
13617 | ac_beg=$ac_end | |
13618 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 13619 | fi |
5464f5a1 NN |
13620 | done |
13621 | if test -z "$ac_sed_cmds"; then | |
13622 | ac_sed_cmds=cat | |
252b5132 | 13623 | fi |
5464f5a1 | 13624 | fi # test -n "$CONFIG_FILES" |
6be7c12c | 13625 | |
5464f5a1 NN |
13626 | _ACEOF |
13627 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13628 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 13629 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
13630 | case $ac_file in |
13631 | - | *:- | *:-:* ) # input from stdin | |
13632 | cat >$tmp/stdin | |
13633 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13634 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13635 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13636 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13637 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
13638 | esac |
13639 | ||
5464f5a1 NN |
13640 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
13641 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
13642 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13643 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13644 | X"$ac_file" : 'X\(//\)$' \| \ | |
13645 | X"$ac_file" : 'X\(/\)' \| \ | |
13646 | . : '\(.\)' 2>/dev/null || | |
13647 | echo X"$ac_file" | | |
13648 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13649 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13650 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13651 | /^X\(\/\).*/{ s//\1/; q; } | |
13652 | s/.*/./; q'` | |
13653 | { if $as_mkdir_p; then | |
13654 | mkdir -p "$ac_dir" | |
252b5132 | 13655 | else |
5464f5a1 NN |
13656 | as_dir="$ac_dir" |
13657 | as_dirs= | |
13658 | while test ! -d "$as_dir"; do | |
13659 | as_dirs="$as_dir $as_dirs" | |
13660 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
13661 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13662 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13663 | X"$as_dir" : 'X\(//\)$' \| \ | |
13664 | X"$as_dir" : 'X\(/\)' \| \ | |
13665 | . : '\(.\)' 2>/dev/null || | |
13666 | echo X"$as_dir" | | |
13667 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13668 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13669 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13670 | /^X\(\/\).*/{ s//\1/; q; } | |
13671 | s/.*/./; q'` | |
13672 | done | |
13673 | test ! -n "$as_dirs" || mkdir $as_dirs | |
13674 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13675 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
13676 | { (exit 1); exit 1; }; }; } | |
13677 | ||
13678 | ac_builddir=. | |
13679 | ||
13680 | if test "$ac_dir" != .; then | |
13681 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
13682 | # A "../" for each directory in $ac_dir_suffix. | |
13683 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
13684 | else | |
13685 | ac_dir_suffix= ac_top_builddir= | |
13686 | fi | |
252b5132 | 13687 | |
5464f5a1 NN |
13688 | case $srcdir in |
13689 | .) # No --srcdir option. We are building in place. | |
13690 | ac_srcdir=. | |
13691 | if test -z "$ac_top_builddir"; then | |
13692 | ac_top_srcdir=. | |
13693 | else | |
13694 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
13695 | fi ;; | |
13696 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
13697 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13698 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 13699 | *) # Relative path. |
5464f5a1 NN |
13700 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
13701 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
13702 | esac | |
252b5132 | 13703 | |
5464f5a1 NN |
13704 | # Do not use `cd foo && pwd` to compute absolute paths, because |
13705 | # the directories may not exist. | |
13706 | case `pwd` in | |
13707 | .) ac_abs_builddir="$ac_dir";; | |
13708 | *) | |
13709 | case "$ac_dir" in | |
13710 | .) ac_abs_builddir=`pwd`;; | |
13711 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
13712 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
13713 | esac;; | |
13714 | esac | |
13715 | case $ac_abs_builddir in | |
13716 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13717 | *) | |
13718 | case ${ac_top_builddir}. in | |
13719 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
13720 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13721 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
13722 | esac;; | |
13723 | esac | |
13724 | case $ac_abs_builddir in | |
13725 | .) ac_abs_srcdir=$ac_srcdir;; | |
13726 | *) | |
13727 | case $ac_srcdir in | |
13728 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
13729 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
13730 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
13731 | esac;; | |
13732 | esac | |
13733 | case $ac_abs_builddir in | |
13734 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13735 | *) | |
13736 | case $ac_top_srcdir in | |
13737 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
13738 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13739 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
13740 | esac;; | |
13741 | esac | |
252b5132 | 13742 | |
5464f5a1 NN |
13743 | |
13744 | case $INSTALL in | |
13745 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13746 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
6be7c12c | 13747 | esac |
252b5132 | 13748 | |
8fb84ecc AC |
13749 | if test x"$ac_file" != x-; then |
13750 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
13751 | echo "$as_me: creating $ac_file" >&6;} | |
13752 | rm -f "$ac_file" | |
13753 | fi | |
5464f5a1 NN |
13754 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13755 | # use $as_me), people would be surprised to read: | |
13756 | # /* config.h. Generated by config.status. */ | |
13757 | if test x"$ac_file" = x-; then | |
13758 | configure_input= | |
13759 | else | |
13760 | configure_input="$ac_file. " | |
13761 | fi | |
13762 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
13763 | sed 's,.*/,,'` by configure." | |
13764 | ||
13765 | # First look for the input files in the build tree, otherwise in the | |
13766 | # src tree. | |
13767 | ac_file_inputs=`IFS=: | |
13768 | for f in $ac_file_in; do | |
13769 | case $f in | |
13770 | -) echo $tmp/stdin ;; | |
13771 | [\\/$]*) | |
13772 | # Absolute (can't be DOS-style, as IFS=:) | |
13773 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13774 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13775 | { (exit 1); exit 1; }; } | |
13776 | echo "$f";; | |
13777 | *) # Relative | |
13778 | if test -f "$f"; then | |
13779 | # Build tree | |
13780 | echo "$f" | |
13781 | elif test -f "$srcdir/$f"; then | |
13782 | # Source tree | |
13783 | echo "$srcdir/$f" | |
13784 | else | |
13785 | # /dev/null tree | |
13786 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13787 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13788 | { (exit 1); exit 1; }; } | |
13789 | fi;; | |
13790 | esac | |
13791 | done` || { (exit 1); exit 1; } | |
5464f5a1 NN |
13792 | _ACEOF |
13793 | cat >>$CONFIG_STATUS <<_ACEOF | |
13794 | sed "$ac_vpsub | |
13795 | $extrasub | |
13796 | _ACEOF | |
13797 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13798 | :t | |
13799 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13800 | s,@configure_input@,$configure_input,;t t | |
13801 | s,@srcdir@,$ac_srcdir,;t t | |
13802 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
13803 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
13804 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
13805 | s,@builddir@,$ac_builddir,;t t | |
13806 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
13807 | s,@top_builddir@,$ac_top_builddir,;t t | |
13808 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
13809 | s,@INSTALL@,$ac_INSTALL,;t t | |
13810 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
13811 | rm -f $tmp/stdin | |
13812 | if test x"$ac_file" != x-; then | |
13813 | mv $tmp/out $ac_file | |
13814 | else | |
13815 | cat $tmp/out | |
13816 | rm -f $tmp/out | |
13817 | fi | |
13818 | ||
13819 | done | |
13820 | _ACEOF | |
13821 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13822 | ||
13823 | # | |
13824 | # CONFIG_HEADER section. | |
13825 | # | |
252b5132 RH |
13826 | |
13827 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13828 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13829 | # | |
13830 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5464f5a1 NN |
13831 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
13832 | ac_dB='[ ].*$,\1#\2' | |
13833 | ac_dC=' ' | |
13834 | ac_dD=',;t' | |
13835 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13836 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13837 | ac_uB='$,\1#\2define\3' | |
252b5132 | 13838 | ac_uC=' ' |
5464f5a1 NN |
13839 | ac_uD=',;t' |
13840 | ||
13841 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 13842 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
13843 | case $ac_file in |
13844 | - | *:- | *:-:* ) # input from stdin | |
13845 | cat >$tmp/stdin | |
13846 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13847 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13848 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13849 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13850 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
13851 | esac |
13852 | ||
5464f5a1 NN |
13853 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
13854 | echo "$as_me: creating $ac_file" >&6;} | |
13855 | ||
13856 | # First look for the input files in the build tree, otherwise in the | |
13857 | # src tree. | |
13858 | ac_file_inputs=`IFS=: | |
13859 | for f in $ac_file_in; do | |
13860 | case $f in | |
13861 | -) echo $tmp/stdin ;; | |
13862 | [\\/$]*) | |
13863 | # Absolute (can't be DOS-style, as IFS=:) | |
13864 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13865 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13866 | { (exit 1); exit 1; }; } | |
13867 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
13868 | echo "$f";; | |
13869 | *) # Relative | |
13870 | if test -f "$f"; then | |
13871 | # Build tree | |
13872 | echo "$f" | |
13873 | elif test -f "$srcdir/$f"; then | |
13874 | # Source tree | |
13875 | echo "$srcdir/$f" | |
13876 | else | |
13877 | # /dev/null tree | |
13878 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
13879 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
13880 | { (exit 1); exit 1; }; } | |
13881 | fi;; | |
13882 | esac | |
13883 | done` || { (exit 1); exit 1; } | |
13884 | # Remove the trailing spaces. | |
13885 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
13886 | ||
13887 | _ACEOF | |
13888 | ||
13889 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
13890 | # `conftest.undefs', that substitutes the proper values into | |
13891 | # config.h.in to produce config.h. The first handles `#define' | |
13892 | # templates, and the second `#undef' templates. | |
13893 | # And first: Protect against being on the right side of a sed subst in | |
13894 | # config.status. Protect against being in an unquoted here document | |
13895 | # in config.status. | |
13896 | rm -f conftest.defines conftest.undefs | |
13897 | # Using a here document instead of a string reduces the quoting nightmare. | |
13898 | # Putting comments in sed scripts is not portable. | |
13899 | # | |
13900 | # `end' is used to avoid that the second main sed command (meant for | |
13901 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
13902 | # See the Autoconf documentation for `clear'. | |
13903 | cat >confdef2sed.sed <<\_ACEOF | |
13904 | s/[\\&,]/\\&/g | |
13905 | s,[\\$`],\\&,g | |
13906 | t clear | |
13907 | : clear | |
13908 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
13909 | t end | |
13910 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
13911 | : end | |
13912 | _ACEOF | |
13913 | # If some macros were called several times there might be several times | |
13914 | # the same #defines, which is useless. Nevertheless, we may not want to | |
13915 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
13916 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
13917 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
13918 | rm -f confdef2sed.sed | |
252b5132 RH |
13919 | |
13920 | # This sed command replaces #undef with comments. This is necessary, for | |
13921 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13922 | # on some systems where configure will not decide to define it. | |
5464f5a1 NN |
13923 | cat >>conftest.undefs <<\_ACEOF |
13924 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
13925 | _ACEOF | |
13926 | ||
13927 | # Break up conftest.defines because some shells have a limit on the size | |
13928 | # of here documents, and old seds have small limits too (100 cmds). | |
13929 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
13930 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
13931 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
13932 | echo ' :' >>$CONFIG_STATUS | |
13933 | rm -f conftest.tail | |
13934 | while grep . conftest.defines >/dev/null | |
13935 | do | |
13936 | # Write a limited-size here document to $tmp/defines.sed. | |
13937 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
13938 | # Speed up: don't consider the non `#define' lines. | |
13939 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
13940 | # Work around the forget-to-reset-the-flag bug. | |
13941 | echo 't clr' >>$CONFIG_STATUS | |
13942 | echo ': clr' >>$CONFIG_STATUS | |
13943 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
13944 | echo 'CEOF | |
13945 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
13946 | rm -f $tmp/in | |
13947 | mv $tmp/out $tmp/in | |
13948 | ' >>$CONFIG_STATUS | |
13949 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
13950 | rm -f conftest.defines | |
13951 | mv conftest.tail conftest.defines | |
13952 | done | |
13953 | rm -f conftest.defines | |
13954 | echo ' fi # grep' >>$CONFIG_STATUS | |
13955 | echo >>$CONFIG_STATUS | |
252b5132 | 13956 | |
5464f5a1 NN |
13957 | # Break up conftest.undefs because some shells have a limit on the size |
13958 | # of here documents, and old seds have small limits too (100 cmds). | |
13959 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 13960 | rm -f conftest.tail |
5464f5a1 | 13961 | while grep . conftest.undefs >/dev/null |
252b5132 | 13962 | do |
5464f5a1 NN |
13963 | # Write a limited-size here document to $tmp/undefs.sed. |
13964 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
13965 | # Speed up: don't consider the non `#undef' | |
13966 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
13967 | # Work around the forget-to-reset-the-flag bug. | |
13968 | echo 't clr' >>$CONFIG_STATUS | |
13969 | echo ': clr' >>$CONFIG_STATUS | |
13970 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 13971 | echo 'CEOF |
5464f5a1 NN |
13972 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
13973 | rm -f $tmp/in | |
13974 | mv $tmp/out $tmp/in | |
13975 | ' >>$CONFIG_STATUS | |
13976 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
13977 | rm -f conftest.undefs | |
13978 | mv conftest.tail conftest.undefs | |
252b5132 | 13979 | done |
5464f5a1 NN |
13980 | rm -f conftest.undefs |
13981 | ||
13982 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13983 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13984 | # use $as_me), people would be surprised to read: | |
13985 | # /* config.h. Generated by config.status. */ | |
13986 | if test x"$ac_file" = x-; then | |
13987 | echo "/* Generated by configure. */" >$tmp/config.h | |
13988 | else | |
13989 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
13990 | fi | |
13991 | cat $tmp/in >>$tmp/config.h | |
13992 | rm -f $tmp/in | |
13993 | if test x"$ac_file" != x-; then | |
13994 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
13995 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
13996 | echo "$as_me: $ac_file is unchanged" >&6;} | |
13997 | else | |
13998 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
13999 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14000 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14001 | X"$ac_file" : 'X\(//\)$' \| \ | |
14002 | X"$ac_file" : 'X\(/\)' \| \ | |
14003 | . : '\(.\)' 2>/dev/null || | |
14004 | echo X"$ac_file" | | |
14005 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14006 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14007 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14008 | /^X\(\/\).*/{ s//\1/; q; } | |
14009 | s/.*/./; q'` | |
14010 | { if $as_mkdir_p; then | |
14011 | mkdir -p "$ac_dir" | |
252b5132 | 14012 | else |
5464f5a1 NN |
14013 | as_dir="$ac_dir" |
14014 | as_dirs= | |
14015 | while test ! -d "$as_dir"; do | |
14016 | as_dirs="$as_dir $as_dirs" | |
14017 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14018 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14019 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14020 | X"$as_dir" : 'X\(//\)$' \| \ | |
14021 | X"$as_dir" : 'X\(/\)' \| \ | |
14022 | . : '\(.\)' 2>/dev/null || | |
14023 | echo X"$as_dir" | | |
14024 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14025 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14026 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14027 | /^X\(\/\).*/{ s//\1/; q; } | |
14028 | s/.*/./; q'` | |
14029 | done | |
14030 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14031 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
14032 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
14033 | { (exit 1); exit 1; }; }; } | |
14034 | ||
14035 | rm -f $ac_file | |
14036 | mv $tmp/config.h $ac_file | |
252b5132 | 14037 | fi |
5464f5a1 NN |
14038 | else |
14039 | cat $tmp/config.h | |
14040 | rm -f $tmp/config.h | |
252b5132 | 14041 | fi |
f5385ebf AM |
14042 | # Compute $ac_file's index in $config_headers. |
14043 | _am_stamp_count=1 | |
14044 | for _am_header in $config_headers :; do | |
14045 | case $_am_header in | |
14046 | $ac_file | $ac_file:* ) | |
14047 | break ;; | |
14048 | * ) | |
14049 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14050 | esac | |
14051 | done | |
14052 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
14053 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14054 | X$ac_file : 'X\(//\)[^/]' \| \ | |
14055 | X$ac_file : 'X\(//\)$' \| \ | |
14056 | X$ac_file : 'X\(/\)' \| \ | |
14057 | . : '\(.\)' 2>/dev/null || | |
14058 | echo X$ac_file | | |
14059 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14060 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14061 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14062 | /^X\(\/\).*/{ s//\1/; q; } | |
14063 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
5464f5a1 NN |
14064 | done |
14065 | _ACEOF | |
14066 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 14067 | |
5464f5a1 NN |
14068 | # |
14069 | # CONFIG_COMMANDS section. | |
14070 | # | |
14071 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
14072 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
14073 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14074 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
14075 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14076 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
14077 | X"$ac_dest" : 'X\(//\)$' \| \ | |
14078 | X"$ac_dest" : 'X\(/\)' \| \ | |
14079 | . : '\(.\)' 2>/dev/null || | |
14080 | echo X"$ac_dest" | | |
14081 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14082 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14083 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14084 | /^X\(\/\).*/{ s//\1/; q; } | |
14085 | s/.*/./; q'` | |
14086 | { if $as_mkdir_p; then | |
14087 | mkdir -p "$ac_dir" | |
14088 | else | |
14089 | as_dir="$ac_dir" | |
14090 | as_dirs= | |
14091 | while test ! -d "$as_dir"; do | |
14092 | as_dirs="$as_dir $as_dirs" | |
14093 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14094 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14095 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14096 | X"$as_dir" : 'X\(//\)$' \| \ | |
14097 | X"$as_dir" : 'X\(/\)' \| \ | |
14098 | . : '\(.\)' 2>/dev/null || | |
14099 | echo X"$as_dir" | | |
14100 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14101 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14102 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14103 | /^X\(\/\).*/{ s//\1/; q; } | |
14104 | s/.*/./; q'` | |
14105 | done | |
14106 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14107 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
14108 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
14109 | { (exit 1); exit 1; }; }; } | |
b3baf5d0 | 14110 | |
5464f5a1 | 14111 | ac_builddir=. |
b3baf5d0 | 14112 | |
5464f5a1 NN |
14113 | if test "$ac_dir" != .; then |
14114 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
14115 | # A "../" for each directory in $ac_dir_suffix. | |
14116 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
14117 | else | |
14118 | ac_dir_suffix= ac_top_builddir= | |
14119 | fi | |
14120 | ||
14121 | case $srcdir in | |
14122 | .) # No --srcdir option. We are building in place. | |
14123 | ac_srcdir=. | |
14124 | if test -z "$ac_top_builddir"; then | |
14125 | ac_top_srcdir=. | |
14126 | else | |
14127 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
14128 | fi ;; | |
14129 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
14130 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14131 | ac_top_srcdir=$srcdir ;; | |
14132 | *) # Relative path. | |
14133 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
14134 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
14135 | esac | |
14136 | ||
14137 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
14138 | # the directories may not exist. | |
14139 | case `pwd` in | |
14140 | .) ac_abs_builddir="$ac_dir";; | |
14141 | *) | |
14142 | case "$ac_dir" in | |
14143 | .) ac_abs_builddir=`pwd`;; | |
14144 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
14145 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
14146 | esac;; | |
14147 | esac | |
14148 | case $ac_abs_builddir in | |
14149 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14150 | *) | |
14151 | case ${ac_top_builddir}. in | |
14152 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
14153 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14154 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
14155 | esac;; | |
14156 | esac | |
14157 | case $ac_abs_builddir in | |
14158 | .) ac_abs_srcdir=$ac_srcdir;; | |
14159 | *) | |
14160 | case $ac_srcdir in | |
14161 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
14162 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
14163 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
14164 | esac;; | |
14165 | esac | |
14166 | case $ac_abs_builddir in | |
14167 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14168 | *) | |
14169 | case $ac_top_srcdir in | |
14170 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
14171 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14172 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
14173 | esac;; | |
14174 | esac | |
14175 | ||
14176 | ||
14177 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
14178 | echo "$as_me: executing $ac_dest commands" >&6;} | |
14179 | case $ac_dest in | |
f5385ebf AM |
14180 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
14181 | # Strip MF so we end up with the name of the file. | |
14182 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14183 | # Check whether this is an Automake generated Makefile or not. | |
14184 | # We used to match only the files named `Makefile.in', but | |
14185 | # some people rename them; so instead we look at the file content. | |
14186 | # Grep'ing the first line is not enough: some people post-process | |
14187 | # each Makefile.in and add a new line on top of each file to say so. | |
14188 | # So let's grep whole file. | |
14189 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
14190 | dirpart=`(dirname "$mf") 2>/dev/null || | |
14191 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14192 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14193 | X"$mf" : 'X\(//\)$' \| \ | |
14194 | X"$mf" : 'X\(/\)' \| \ | |
14195 | . : '\(.\)' 2>/dev/null || | |
14196 | echo X"$mf" | | |
14197 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14198 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14199 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14200 | /^X\(\/\).*/{ s//\1/; q; } | |
14201 | s/.*/./; q'` | |
14202 | else | |
14203 | continue | |
14204 | fi | |
14205 | # Extract the definition of DEPDIR, am__include, and am__quote | |
14206 | # from the Makefile without running `make'. | |
14207 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14208 | test -z "$DEPDIR" && continue | |
14209 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14210 | test -z "am__include" && continue | |
14211 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14212 | # When using ansi2knr, U may be empty or an underscore; expand it | |
14213 | U=`sed -n 's/^U = //p' < "$mf"` | |
14214 | # Find all dependency output files, they are included files with | |
14215 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14216 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14217 | # expansion. | |
14218 | for file in `sed -n " | |
14219 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14220 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14221 | # Make sure the directory exists. | |
14222 | test -f "$dirpart/$file" && continue | |
14223 | fdir=`(dirname "$file") 2>/dev/null || | |
14224 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14225 | X"$file" : 'X\(//\)[^/]' \| \ | |
14226 | X"$file" : 'X\(//\)$' \| \ | |
14227 | X"$file" : 'X\(/\)' \| \ | |
14228 | . : '\(.\)' 2>/dev/null || | |
14229 | echo X"$file" | | |
14230 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14231 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14232 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14233 | /^X\(\/\).*/{ s//\1/; q; } | |
14234 | s/.*/./; q'` | |
14235 | { if $as_mkdir_p; then | |
14236 | mkdir -p $dirpart/$fdir | |
14237 | else | |
14238 | as_dir=$dirpart/$fdir | |
14239 | as_dirs= | |
14240 | while test ! -d "$as_dir"; do | |
14241 | as_dirs="$as_dir $as_dirs" | |
14242 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14243 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14244 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14245 | X"$as_dir" : 'X\(//\)$' \| \ | |
14246 | X"$as_dir" : 'X\(/\)' \| \ | |
14247 | . : '\(.\)' 2>/dev/null || | |
14248 | echo X"$as_dir" | | |
14249 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14250 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14251 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14252 | /^X\(\/\).*/{ s//\1/; q; } | |
14253 | s/.*/./; q'` | |
14254 | done | |
14255 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14256 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
14257 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
14258 | { (exit 1); exit 1; }; }; } | |
14259 | ||
14260 | # echo "creating $dirpart/$file" | |
14261 | echo '# dummy' > "$dirpart/$file" | |
14262 | done | |
14263 | done | |
14264 | ;; | |
5464f5a1 NN |
14265 | default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;; |
14266 | esac | |
14267 | done | |
14268 | _ACEOF | |
14269 | ||
14270 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14271 | ||
14272 | { (exit 0); exit 0; } | |
14273 | _ACEOF | |
252b5132 | 14274 | chmod +x $CONFIG_STATUS |
5464f5a1 NN |
14275 | ac_clean_files=$ac_clean_files_save |
14276 | ||
14277 | ||
14278 | # configure is writing to config.log, and then calls config.status. | |
14279 | # config.status does its own redirection, appending to config.log. | |
14280 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14281 | # by configure, so config.status won't be able to write to it; its | |
14282 | # output is simply discarded. So we exec the FD to /dev/null, | |
14283 | # effectively closing config.log, so it can be properly (re)opened and | |
14284 | # appended to by config.status. When coming back to configure, we | |
14285 | # need to make the FD available again. | |
14286 | if test "$no_create" != yes; then | |
14287 | ac_cs_success=: | |
14288 | ac_config_status_args= | |
14289 | test "$silent" = yes && | |
14290 | ac_config_status_args="$ac_config_status_args --quiet" | |
14291 | exec 5>/dev/null | |
14292 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14293 | exec 5>>config.log | |
14294 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14295 | # would make configure fail if this is the last instruction. | |
14296 | $ac_cs_success || { (exit 1); exit 1; } | |
14297 | fi | |
252b5132 | 14298 | |
55c80943 | 14299 |